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 supportsimage-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.