vega v5.12.3 Release Notes

Release Date: 2020-05-23 // almost 4 years ago
  • Notable Changes

    ๐Ÿš€ The previous Vega v5.12.0 release introduced changes to how SVG was generated, including the addition of an internal stylesheet. However, this leads to integration issues with downstream tools (including at least one popular SVG optimizer) that do not support stylesheet parsing. In addition, local performance tests indicate faster rendering in Chrome when using presentation attributes instead of CSS styling. This version (v5.12.3) now changes the SVG output to favor presentation attributes (fill="blue") over CSS style (style="fill: blue;").

    ๐Ÿ’… CSS styles have been removed in all but one case: the use of image-rendering for non-smoothed images, where browser differences require multiple style definitions to appease both Chrome and Firefox, something we can't express with presentation attributes alone. If and when Firefox properly supports image-rendering: pixelated we can consider dropping this last use of CSS.

    ๐Ÿ’… Note that external stylesheets can still be used to style Vega SVG content, and may now have higher specificity due to the use of attributes.

    ๐Ÿ”„ Changelog

    ๐Ÿš€ Changes from v5.12.2:

    monorepo

    • โšก๏ธ Update eslint config to flag trailing commas.

    vega

    • โž• Add initialization timing to test spec viewer page.
    • โœ‚ Remove dangling commas.
    • โšก๏ธ Update dev dependencies.

    vega-cli

    • โšก๏ธ Update SVG test cases.

    vega-format

    • โœ‚ Remove dangling commas.

    vega-geo

    • โœ‚ Remove dangling commas.

    vega-hierarchy

    • โœ‚ Remove dangling commas.

    ๐Ÿ“œ vega-parser

    • ๐Ÿ›  Fix trailing function argument commas in axis utils. (#2645, thanks @armanozak!)
    • โœ‚ Remove dangling commas.

    vega-projections-extended

    • โšก๏ธ Update dev dependencies.

    vega-scenegraph

    • ๐Ÿ’… Favor SVG presentation attributes over CSS style. (#2640)
    • ๐Ÿ›  Fix clipped group picking for canvas. (#2600)
    • โœ‚ Remove dangling commas, other code clean-up.

    vega-schema

    • โœ‚ Remove dangling commas.

    vega-time

    • โœ‚ Remove dangling commas.

    vega-transforms

    • โœ‚ Remove dangling commas.