Skip to content

Releases: pixijs-userland/animate

2.0.0-rc2

02 Apr 03:16
Compare
Choose a tag to compare
2.0.0-rc2 Pre-release
Pre-release
  • Improved asset upgrade script
    • Fixes .shapes.json files referenced in the assets.
    • Now an NPM recognized script, so you can run npx pixi-animate-upgrade <options>.
    • Added an output format that automatically imports & runs setup(), and exports library items by name.
  • Added script for creating Typescript definitions (.d.ts files) for Pixi Animate asset files.
    • npx pixi-animate-type-assets <paths to your files>
  • Removed the v1-asset-shim and instead rolled it into a new bundle, pixi-animate-legacy.js (in the /dist/ folder with the other IIFE bundle).

v2.0.0-rc1

18 Mar 17:18
Compare
Choose a tag to compare
v2.0.0-rc1 Pre-release
Pre-release

First release candidate for version 2

Breaking changes:

  • Dropped support for PixiJS v4, now supports v5
  • The PIXI.animate namespace is no longer added to the window (and the PIXI namespace is no longer required). If you would like to use the namespace, use the IIFE build located in pixi-animate/dist/pixi-animate.js.
    • The ambient type declarations to describe that namespace are now in pixi-animate/dist/pixi-animate-ambient.d.ts
  • Instead of mixing into the PixiJS display object classes, subclasses are now provided in the library for the added and shorthand methods (PIXI.animate.Container, etc).
  • Graphics.c() is no longer a shorthand for closePath() (it overrode the setColorTransform() shorthand). Instead, the shorthand is cp().
  • Because PixiJS Graphics class has lost its addHole() method, there is no longer an h() shorthand either. Instead, the beginHole() and endHole() methods are supported with bh() and eh() shorthands.
  • The SymbolLoader plugin for Loader no longer exists, so individual images are no longer added to PIXI's global texture cache by resource name, and shape assets are no longer added to a global shape cache.
  • The global ShapesCache object has been dropped from the pixi-animate API.
  • load() no longer has so many variants allowed. Instead, the first argument is always the scene that you want to load, followed by either a callback or an options object. If using the legacy shim, pass in the constructor for the main scene MovieClip, as you did in v1.
    • createInstance now defaults to false, instead of true, when calling load().
  • The expected asset format is now a contained module (require() or import()) based one where you must call a setup function and provide a reference to the pixi-animate library.
    • To use v1 assets, you can include the pixi-animate/v1-asset-shim.js file in your project, which will update the PIXI and PIXI.animate namespaces with the appropriate changes so that old assets will work (you will have to ensure that the PIXI and PIXI.animate namespaces are set up correctly). You may have to use the pixijs-legacy build, the shim in combination with the standard build hasn't been tested.
    • If you want to update to the new asset format, a node script is provided to replace v1 assets with their v2 equivalent: pixi-animate/scripts/assetConversion.js. See the readme for usage.
      • In this release, the script does not update graphics shape data for the closePath/hole changes mentioned above - you'll have to do that manually.

Other changes

  • Source code is now written in Typescript, so type declarations are built automatically.

v1.3.5

12 Jun 14:58
Compare
Choose a tag to compare

Added

  • Added createInstance property to LoadOptions to allow disabling of automatic stage instantiation. This property defaults to true to keep behavior consistent with previous versions. #92

1.3.4

10 Apr 19:52
Compare
Choose a tag to compare

Fixed

  • Typings and Docs fixes (#84), (#90), (#87)
  • Update documentation website link (#83)
  • Fix frame actions on first frame getting skipped on loop (#72)
  • Correct recalculation of current time on MovieClip FPS change (#89)
  • Animator: prevent overshooting end frame (#86)

Changed

  • MovieClips now respond to changes to SharedTicker.speed (#82)

Added

  • Support no stage option with the load function (#81)

Contributors

1.3.3

08 Jan 01:45
Compare
Choose a tag to compare

Fixed

  • Calling next() if resource.data doesn't exist in SymbolLoader #53
  • Use resource.texture instead of Texture.fromFrame #75

Added

  • Adds additional loader and metadata params for PIXI.animate.load #74

Contributors

1.3.2

12 May 00:00
Compare
Choose a tag to compare

Changed

1.3.1

26 Jan 21:58
Compare
Choose a tag to compare

Changed

  • Better support for Browserify/Webpack usage of PixiAnimate by making the “main” entry point “lib/index.js” (unbundled modules) instead of “dist/pixi-animate.min.js” (Browserify bundle)

1.3.0

18 Jan 16:48
Compare
Choose a tag to compare

Fixed

  • Added an overload for Animator.play() to d.ts files #37

Added

  • Creates PIXI.animate.Scene object which extends PIXI.Application to create for much simpler setup code. #38

1.1.2

08 Jan 19:41
Compare
Choose a tag to compare

Fixed

  • Adds pixi.js to devDependencies to support NPM v3
  • Don't redefine PIXI.animate #36

1.1.1

19 Dec 15:24
Compare
Choose a tag to compare

Fixed

  • Added missing ambient.d.ts to release.