Skip to content

Releases: jeremyckahn/shifty

3.0.3

25 Sep 14:45
Compare
Choose a tag to compare

This release exposes the NPM package version via VERSION.

3.0.2

25 Sep 14:36
Compare
Choose a tag to compare
3.0.2

3.0.1

03 Jul 15:10
Compare
Choose a tag to compare

This release exposes standardEasingFunctions.

See

3.0.0

02 Jul 23:07
Compare
Choose a tag to compare

In this release

Updated documentation site: https://jeremyckahn.github.io/shifty/doc/

  • Convert Shifty to be authored in TypeScript
  • Publish ES6 artifacts
  • Improve runtime performance
  • Remove Core build
  • Switch from JSDoc to TypeDoc
  • Fix various minor bugs

Breaking changes

  • Tweenable.formulas has been renamed to Tweenable.easing
  • tweenConfig.step has been removed in favor of tweenConfig.render (behavior and API is unchanged).
  • tweenConfig.attachment has been removed in favor of tweenConfig.data (behavior and API is unchanged).
  • Tweenable#tweenable has been removed.
  • Tweenable#set() is now Tweenable#setState.
  • Tweenable#get() is now Tweenable#state (a getter, not a method).
  • Tweenable#hasEnded() is now Tweenable#hasEnded (a getter, not a method).
  • Tweenable#isPlaying() is now Tweenable#isPlaying (a getter, not a method).
  • Tweenable#setScheduleFunction has been removed. The static method Tweenable.setScheduleFunction method should be used instead.
  • Render handler parameters have been reordered:
    • In v2, the function signature was (state: TweenState, data: Data, timeElapsed: number) => void
    • In v3, the function signature is (state: TweenState, timeElapsed: number, data: Data) => void
  • Scene#play() has been renamed to Scene#tween.
  • Scene#isPlaying() is now Scene#isPlaying (a getter, not a method).
  • Scene#playingTweenables() has been removed.
  • unsetBezierFunction has been removed.
  • Shifty "Core" build has been removed.

See

2.20.4

21 Mar 02:13
Compare
Choose a tag to compare

Contains #175, a fix for #175: Scene#resume will avoid calling Tweenable#resume for tweens that have ended.

2.20.3

18 Mar 17:26
Compare
Choose a tag to compare
2.20.3

2.20.1

18 Mar 17:18
Compare
Choose a tag to compare
2.20.1

Cubic Bezier array easing support

14 Jan 17:16
Compare
Choose a tag to compare

This release includes a new feature from @hoomanaskari (#171). Now you can specify an array of numbers to represent a cubic Bezier curve! Check out the updated API documentation for this feature:

Implement `Promise<unknown>`

06 Oct 14:49
Compare
Choose a tag to compare

This release contains #160, courtesy of @jspears. Thanks also to @arthuro555 for TypeScript guidance!

Add `shouldScheduleUpdate` method

07 Aug 03:18
Compare
Choose a tag to compare

This release fixes #156 by implementing shouldScheduleUpdate. It is recommended for use in projects that use both Shifty and Jest.

Thanks to @BoldBigflank for reporting this bug!