Skip to content

Releases: yoxjames/svg4kt

0.1.0

07 Jun 20:44

Choose a tag to compare

  • 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.
  • 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 instance 0x00111111 and 0x111111 are the same number but different colors. Therefore, you now must declare the
    format: SvgColor.Hex.RGB(0x111111) vs SvgColor.Hex.RGBA(0x00111111)
  • Added an Unsafe color 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

18 Apr 18:16

Choose a tag to compare

  • Removed BasicShape from clipPath attribute. 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 SvgColor type and replaced the string typing on numerous attributes that use color.
  • Added a SvgPaint type and used that on some attributes.
  • Added a SvgId type to be used with id attributes and added lots of convenience methods to take care of id
    resources and url to ID resources.

0.1.0-alpha.2

22 Mar 23:46

Choose a tag to compare

0.1.0-alpha.2 Pre-release
Pre-release
  • 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 convenience url(...) function to call the constructor as this
    matches SVG's url call quite well.
  • Added convenience method to repeatDur so repeatDur can be called with a Duration (ex repeatDur(10.seconds))
  • Added convenience method to dur so dur can be called with a Duration (ex dur(10.seconds))
  • DelayedTagConsumer will now throw if you attempt to set elements after starting a child element.
    • This mirrors the behavior of kotlinx-html but 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 any Appendable SVG builder.
    • This does not affect DOM based builders

0.1.0-alpha.1

15 Mar 20:58

Choose a tag to compare

0.1.0-alpha.1 Pre-release
Pre-release

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!