Skip to content

v0.46.0

Latest

Choose a tag to compare

@nnabeyang nnabeyang released this 29 Nov 01:26
· 25 commits to main since this release
0.46.0
a66f3ae

Updates

  • Format ranges of the text that a person types into. SVGStyledText is the text of a text element with the attributes of its runs, which Element.styledText reads and setStyledText(_:) writes. setTextAttribute(_:to:in:) and textAttributes(in:) format a range of the edited text, or the characters typed next, and typed characters take the attributes of the characters around them. With allowsEditingTextAttributes, the edit menu and the keyboard toggle bold, italic and underline.
  • Drag the handles of the selection of a turned text, and from the knob outside the line of a text that isn't turned, with the system loupe. The edit menu offers Cut and Copy only with a selection, and Select only with a caret, as a text view does.
  • Draw the lines of a text-decoration shorthand that has a style, a color or a thickness, as CSS Text Decoration 4 defines it, instead of treating the value as invalid.
  • Read the font shorthand, which sets the style, the weight, the size and the family of the font.
  • Scale the dashes of a stroke and the start offset of a text path by pathLength.
  • Move along the d property of the path that mpath references, also from the style attribute and the style sheets, and use keyPoints in a paced animateMotion.

Fixes

  • Keep the caret and the selection of edited text where the text is when the view changes its size, and keep the selection when the keyboard has an autocorrection.
  • Read the references of url() in quotes, and without the whitespace around them, for the paints, clip-path, mask, marker and filter.
  • Fill with gradients and patterns by the fill rule of the shape, so that a shape with the evenodd rule doesn't paint the parts that the rule leaves out.