v1.0.0
Announcing: the first stable release of Kotter 馃帀 馃帀 馃帀
At this point, Kotter provides a core API for writing dynamic CLIs that is:
- cross platform (linux, mac, win)
- fully featured
- well tested
- well documented (check out the extensive README or dive into the rich API docs)
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:
TextAnim
s no longer implementCharSequence
.- 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 totext("$myTextAnim")
as another alternative.
- The original decision was causing its API to expose additional properties that were unnecessarily confusing (e.g.
- Added a new
shiftRight { ... }
method, which takes any text rendered in the block and prepends all lines with spaces. - Added the
minWidth
property to thejustified
method- So you can now do
justified(CENTER, minWidth = 10) { text("Hi") }
- So you can now do
- 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
, andlastFrame
- Allow pausing animations via the
- Fixed a crash in the virtual terminal you could get clicking on a blank line.