Releases: yoxjames/svg4kt
Releases · yoxjames/svg4kt
0.1.0
- Renamed library to svg4kt.
- I want to ensure this library is distinct from the company SVG4K as there is absolutely no connection between the
two.
- I want to ensure this library is distinct from the company SVG4K as there is absolutely no connection between the
- Bumped Kotlin to 2.4.0.
- Added KDocs to SVG Elements.
SvgColor.Hex(...)no longer takes a number. This was wrong from the beginning. SVG's hex colors are a format
For instance0x00111111and0x111111are the same number but different colors. Therefore, you now must declare the
format:SvgColor.Hex.RGB(0x111111)vsSvgColor.Hex.RGBA(0x00111111)- Added an
Unsafecolor type as there are a lot of color types, and I am not sure if I will ever support them all.
Almost feels like that should be its own full library. - Bumped Various Versions.
0.1.0-alpha.3
- Removed
BasicShapefromclipPathattribute. This really feels like mixing the CSS and SVG spec to me and I want
this library to be purely SVG. From what I can tell the SVG 1.1 spec only really supports FuncIRI notation. - Added a
SvgColortype and replaced the string typing on numerous attributes that use color. - Added a
SvgPainttype and used that on some attributes. - Added a
SvgIdtype to be used withidattributes and added lots of convenience methods to take care of id
resources and url to ID resources.
0.1.0-alpha.2
get()methods on svg attributes can no longer by called in Kotlin.- Previously they could throw. This should make it so that cannot happen if someone does this by mistake.
- Made
Url(...)'s constructor public and added a convenienceurl(...)function to call the constructor as this
matches SVG's url call quite well. - Added convenience method to
repeatDursorepeatDurcan be called with aDuration(exrepeatDur(10.seconds)) - Added convenience method to
dursodurcan be called with aDuration(exdur(10.seconds)) DelayedTagConsumerwill now throw if you attempt to set elements after starting a child element.- This mirrors the behavior of
kotlinx-htmlbut I'll be honest that I don't like it. - Prior to this change attributes would simply disappear if they were after a child element.
- This affects
svgString { ... }and anyAppendableSVG builder. - This does not affect DOM based builders
- This mirrors the behavior of
0.1.0-alpha.1
Initial Public Release
This is an alpha release so expect breaking changes in future releases. There may be bugs or issues due to the alpha status of this library. Feedback is welcome!