Skip to content

v0.3.0

Choose a tag to compare

@meyfa meyfa released this 09 Oct 11:51

Features

  • "SVGRasterizer: Eliminating the clunky SVGRenderingHelper" (#6)
    • Add SVGRasterizer class (1ee2e2e)
    • Add SVGRenderer class + shape subclasses (3314e25, 55fc100, 0616b00, 9298045, 62923e0)
    • Add SVGPathParser for parsing d attribute (7a007b2)
    • Add classes for approximating paths and their curves (ebccdc1, 943527a)
    • POTENTIALLY BREAKING: Remove SVGRenderingHelper (27e913f)
    • POTENTIALLY BREAKING: Implement SVGNode::rasterize() instead of ::draw() (1dd4fb9)
  • Add autoloader.php as Composer alternative (f126b27)
  • Omit trailing semicolons in generated styles (97396ae)

Fixes

  • Fix attributes not added to SVGGroup's XML output (57adfff)
  • Fix path's d attribute included in parsed styles

Style

  • Add SVGNode::addStylesToXMLString(), reducing amount of duplicated code (0d73475)
  • Make COLOR_ RegEx strings in SVG.php constants (88671cc)
  • Make polygon/-line subclasses of SVGPolygonalShape, reducing amount of duplicated code (ca8c0a2)
  • Remove obsolete offset arguments from SVGNode::draw() (dfe51c4, 2f817a9) (invalidated by 1dd4fb9)
  • Introduce type hinting in a few places (05f82dd, 1631f8b)