Skip to content

v1.3.0

Compare
Choose a tag to compare
@github-actions github-actions released this 07 Jun 11:31
· 49 commits to main since this release

What's Changed

Adding support for Gradient and other improvements by @rafaeltonholo in #32, closing issue #5. Thanks @t-regbs for the report

Features

  • SVG
    • Add support for use node
    • Parse clip path child in a group to as clip path data
    • Apply transform attribute to generated paths
    • Add support for polyline element
    • Add support for polygon element
    • Add support for ellipse element
  • Icons
    • Flatten groups that have no parameters
    • Split icon in smaller chunks in case of a large icon
  • Others
    • Bounding box calculation
    • Added silent run flag
    • Add inherited attribute to search over parent tag in case of missing
    • Add gradient tag support for svg files
    • Add gradient support for avg files
    • Add defs tag support for svg files
    • Add compose brush color representation
    • Add avg gradient node and its dependencies

Fixes

  • SVG
    • width/height when 100% no considering viewport when available
    • Gradient color not accounting stop-opacity
    • Enable use element to look for href without namespace
  • K2
    • Conflicting projection in type alias expansion in intermediate type after k2 upgrade
  • Icons
    • Typo on strokeLineMiter
  • AVG
    • Add support for missing group parameters
  • Others
    • SVG group unit tests
    • Minify option not working
    • horizontal/vertical line transformation and rotation calculation

Chores

  • SVG
    • Add inherited values
  • Gradient
    • Adding new gradient examples
  • Others
    • Improve .editorconfig
    • Add get operator to Matrix

Refactors

  • Icons
    • Improve import logic for both path and group
  • SVG
    • Add SvgElementNode and SvgChildNode to ensure type consistency
  • AVG
    • Add AvgElementNode and AvgChildNode to ensure type consistency
  • XML
    • Rename name property to tagName
  • Parser
    • Split XmlParser into SvgParser and AvgParser
  • Others
    • Split method in smaller methods to decrease complexity
    • Move ComposeProperty to compose package
    • Rename ComposeProperty to ComposeType
    • Create ComposeColor type to represent the Color class on Compose
    • Use let instead of if return
    • Use const instead hardcoded string
    • Method/parameter renaming

Others

  • docs: improve ktdocs

Full Changelog: v1.2.0...v1.3.0