Skip to content

v0.45.0

Choose a tag to compare

@nnabeyang nnabeyang released this 26 Nov 10:04
· 89 commits to main since this release
0.45.0
57767a4

Updates

  • Add vector-effect: non-scaling-stroke, which strokes a shape as wide as its stroke-width in the coordinates of the view, whatever the transforms around it are. Its dashes, painted bounds and hit area follow that outline, and markers in units of the stroke width scale with it.
  • Paint with context-fill and context-stroke: the content of a marker with the fill and the stroke of the shape that references it, and the copy that a use element shows with the ones of the use element.
  • Draw a marker of the SVG document of a data: URL, such as marker-start="url(data:image/svg+xml;base64,…#m)", as Chrome and Firefox do.
  • Treat a negative component of the stdDeviation of feGaussianBlur and feDropShadow as 0, as Filter Effects does, so that a blur that's negative in one direction blurs in the other one.

Fixes

  • Read a font family without quotes, such as font-family="Helvetica Neue", as one family, rather than a family for each word, and a family in quotes, such as 'serif', as a family name rather than a generic family.
  • End the editing of a text at a tap just outside the rectangle around its caret and lines along its angle, at any scale of the view, so that a tap away from a turned text ends its editing.
  • Turn the caret and the selection of a turned text about their centers, so that the loupe shows at the caret, and keep the caret turned while it's dragged with the loupe.
  • svgData() doesn't write the elements that were created with names that aren't XML names, so that the written SVG can always be read again.