v1.3.0
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
- Add support for
- 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 consideringviewport
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
- Typo on
- 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
andSvgChildNode
to ensure type consistency
- Add
- AVG
- Add
AvgElementNode
andAvgChildNode
to ensure type consistency
- Add
- XML
- Rename
name
property totagName
- Rename
- Parser
- Split
XmlParser
intoSvgParser
andAvgParser
- Split
- Others
- Split method in smaller methods to decrease complexity
- Move
ComposeProperty
to compose package - Rename
ComposeProperty
toComposeType
- Create
ComposeColor
type to represent theColor
class on Compose - Use
let
instead ofif
return - Use
const
instead hardcoded string - Method/parameter renaming
Others
- docs: improve ktdocs
Full Changelog: v1.2.0...v1.3.0