Commits on Aug 10, 2012
  1. Updated builds.

    committed Aug 10, 2012
  2. Number formatter fixes.

    Don't try to format illegal dates this will crash one way or the other. Also, be robust about trailing zeros when parsing dates.
    committed Aug 10, 2012
Commits on Aug 7, 2012
  1. Adding support for dashed lines.

    All stroked paths now support dash patterns. This is mostly useful for rules and lines but for completeness I have added dashes support to all shapes.
    Given that Protovis is a little inconsistent with it's property names I have picked `lineDash` to harmonize with other stroke attributes: `lineJoin` and `lineWidth`. This makes `strokeStyle` the odd one out. It would probably be better to rename that to `lineColor` and `fillStyle` to `fillColor`.
    committed Jul 18, 2012
  2. Replacing load sequence test with script processing test.

    The load sequence test was trying to test too many things and it doesn't work reliably in mordern browsers and so either the test is broken or the things it is testing are. Either case - it needs redoing and preferably in more simple and transparent steps.
    committed Jul 18, 2012
  3. Switching unit tests to QUnit.

    committed Jul 18, 2012
  4. Use polyfill of Array.isArray rather than a pv method.

    The initial approach was an oversight that's been eating at me ever since it was originally made.
    committed Mar 21, 2012
  5. Docs can be built with npm's jsdoc package.

    This is the final step to a complete node.js build. Everything works with node/npm and a few package installs.
    Install jsdoc with npm:  `npm install jsdoc -g`
    committed Dec 10, 2011
  6. Fixing lint complaints.

    committed Oct 19, 2011
  7. Number formatter supports and uses round half away from zero.

    This adds a setting to the number formatter, and indeed a different
    default, to choose how numbers are rounded. I am breaking compatibility
    because I strongly feel that this is a better default (least surprise
    for users reading the visuzlization's numbers).
    I have some reservations with the name of the method setting function,
    and generally about how this is done. I think it would be better and
    generally more useful to add an unbiased rounding implementation (round
    half to even) to the pv space: `pv.round`.
    committed Oct 19, 2011
  8. Nearly complete date formatting and parsing.

    The formatting and parsing implementaion is now more complete than
    most non-os implementations around.
    What is still missing:
    Week of year + day of week (other than ISO 8601). These are the only
    parts of the spec that require effort without any expectation of usage.
    Timezones are ignored. Formatter wasn't time-zone complete to begin with,
    though strangely not using UTC functions. I've locked it to consistent
    UTC output. The parser should eventually support reading basic offsets
    and shifting date accordingly.
    committed Oct 19, 2011
  9. Faster (x2) number formatting.

    This adds a "memoized" regular expression compilation function
    which speeds up number parsing a tiny bit (although this
    isn't a big concern). Number parsing requires much more work to
    make it fast (and work correctly with negative numbers).
    This also adds a test and fixes a case where pre/suffix
    wasn't wrapped around fraction part of negative numbers.
    committed Oct 14, 2011
  10. Use `Array(3)` rather than `new Array(3)`.

    Linters complain about this because `new Array(3) !== [3]`. It is good practice
    to reduces ambiguity when we can so we'll go by the gospel of Crockford here.
    committed Oct 14, 2011
  11. Adding a "mini" build option

    This allows building/deploying a stripped down version of the library
    that only includes the core (discarding layouts and geo). For a lot
    of visualizations (most basic line and bar charts) the mini version
    is more than sufficient.
    committed Oct 13, 2011
  12. Don't swallow event errors.

    committed Oct 6, 2011
  13. Use correct title tags for title attribute.

    Protovis has been using a hack to get titles to work with non-compilant
    browsers. The browsers have since cought up and all respect and
    display title elements correctly.
    committed Oct 3, 2011
  14. Substituting instanceof with class tests.

    This allows Protovis to handle objects from differenct contexts from itself.
    This is useful for running it in a Nodejs environment.
    committed Oct 3, 2011
  15. Resolving everything that the linter complained about.

    I ran JSHint with some reasonable settings. Most of these were really minor
    but I did catch a few odd things. In a few places I had to resolve code constructs
    that I found perfectly valid, but we can't have everything.
    committed Oct 3, 2011
  16. Creating a merge baseline.

    committed Aug 7, 2012
Commits on Aug 3, 2010
  1. @mbostock

    Fix a bug with `linkDegree` accumulation.

    The `linkDegree` of each node needs to be reset in `buildImplied`, rather when
    the `nodes` property is set.
    mbostock committed Aug 3, 2010
  2. @mbostock
Commits on Jun 16, 2010
  1. @cryos

    Fixed the line endings for these tests.

    These two files had Windows line endings - converted to Unix line
    endings (as present in all other files).
    cryos committed Jun 16, 2010
Commits on Jun 13, 2010
  1. @mbostock

    Restore default mark index after transition start.

    Transitions with panels changing visibility still doesn't work quite right,
    though. When a panel exits, we currently override the panel instance using the
    exit prototype, but don't override all of the children accordingly.
    mbostock committed Jun 13, 2010
Commits on Jun 12, 2010
  1. @mbostock

    Rename shapeAngle, shapeRadius and shapeSize.

    These properties replace angle, radius and size, respectively, for dots. The new
    names avoid collision with forthcoming support for polar coordinates. The use of
    the "shape" prefix is consistent with other mark-specific properties, such as
    textAngle and textStyle.
    mbostock committed Jun 12, 2010
  2. @mbostock

    Rename protovis-{d,r}3.3.js.

    mbostock committed Jun 12, 2010
  3. @mbostock

    Fix two more implied positions.

    mbostock committed Jun 12, 2010
  4. @mbostock

    Fix test for grid layout.

    mbostock committed Jun 12, 2010
  5. @mbostock
  6. @mbostock

    Tweak anchor logic, again.

    Having properties with side-effects is bad. Previously, the default anchor data
    property had a side-effect of wiring up the target instances. This broke if the
    data property was overridden, so now we do this as part of build instead. This
    commit also eliminates the need for an anchorTarget() method, as the target
    attribute is now set correctly when extending from an anchor. I've retained the
    method for now but marked it as deprecated.
    mbostock committed Jun 12, 2010
  7. @mbostock
Commits on Jun 11, 2010
  1. @mbostock

    Center implied position.

    Previously, if both positional properties on a given dimension (e.g., left and
    right) were undefined, the left and top properties were implicitly 0. Thus, the
    implicit default position was the top-left corner of the panel. Now the center
    of the panel is used instead. For example, now wedges can be added to panels
    without needing to center them explicitly.
    mbostock committed Jun 11, 2010