Skip to content

v0.4.0

Choose a tag to compare

@meyfa meyfa released this 13 Oct 13:25

Features

  • SVGNode subclasses expose their tag name through SVGNode::getName() (19a0828)
  • SVGNode subclasses can be constructed with attribute arrays through static SVGNode::constructFromAttributes() (302f0e7)
  • Add SVGReader: well-behaved parsing class (d24184c)
    • Use SVGReader for SVGImage's parsing functions (dbbb51a)
  • Rewrite serialization process: implement SVGWriter (0208eca)
    • POTENTIALLY BREAKING: SVGNode::toXMLString(), and therefore also ::addAttributesToXMLString() and ::addStylesToXMLString(), are removed
    • SVGNode::getSerializableAttributes() and SVGNode::getSerializableStyles() are added.
    • SVGWriter class is added for performing the actual serialization. It is used in SVGImage::toXMLString().

Fixes

  • Every attribute is parsed as a style (fixed because of SVGReader)

Style

  • Exclude default SVG namespace from parameter (b2a26c0)
  • Make including 'xmlns:' in namespaces optional (627756b)