Skip to content

v1.0.0

Compare
Choose a tag to compare
@bitspittle bitspittle released this 29 Oct 17:41
· 209 commits to main since this release

Announcing: the first stable release of Kotter 馃帀 馃帀 馃帀

At this point, Kotter provides a core API for writing dynamic CLIs that is:


Outside of documentation changes, there were a handful of API changes that snuck in since v1.0.0-rc3, gaps I noticed when poring over the API docs:

  • TextAnims no longer implement CharSequence.
    • The original decision was causing its API to expose additional properties that were unnecessarily confusing (e.g. length means the length of the text for that frame, not the length of the animation.)
    • If, after upgrading, you get a compile error that text(myTextAnim) in your project, simply right-click on it and import the new extension method that fixes it. Or, change it to text("$myTextAnim") as another alternative.
  • Added a new shiftRight { ... } method, which takes any text rendered in the block and prepends all lines with spaces.
  • Added the minWidth property to the justified method
    • So you can now do justified(CENTER, minWidth = 10) { text("Hi") }
  • Animation changes
    • Allow pausing animations via the paused property
    • Provide the looping parameter when creating animations, so that you can define one-shot animations.
    • Added a few other properties for querying the state of animations: totalDuration, isRunning, and lastFrame
  • Fixed a crash in the virtual terminal you could get clicking on a blank line.