Skip to content

v0.5.0-beta

Latest
Compare
Choose a tag to compare
@guansss guansss released this 07 Dec 07:03
· 6 commits to master since this release

Dependencies (BREAKING)

  • Migrated to Pixi v7.
  • Upgraded Cubism 4 framework from R4 to R7. (see changelog in CubismWebFramework)
  • Changed peer dependency to entire pixi.js instead of individual @pixi/* packages. This should prevent version conflicts which cause duplicate Pixi instances to be bundled (as in #109).

Changes

  • BREAKING: Added "type": "module" to package.json. Most likely this won't change anything on the user side because web bundlers (Webpack, Vite, as far as I can tell) do not consider this field.
  • BREAKING: Moved model automation (update/hit-test/focus) into an Automator class. Now, to dynamically change the auto* options, for example autoUpdate, use model.automator.autoUpdate = true instead of model.autoUpdate = true.
  • Live2DModel.from()
    • Added checkMocConsistency option for moc data validation (introduced in Cubism 4 R7).
    • Added autoHitTest and autoFocus options to provide fine-grain controls of the old (deprecated) autoInteract option.
    • Added ticker option to allow passing a custom PIXI.Ticker instance.
    • Fixed an "unhandled Promise rejection" warning in the console when the texture fails to load.
    • Fixed a bug where the model's initial state is not deterministic and depends on the time it's instantiated.
  • Removed unexpected package gh-pages from dependencies in package.json.

Deprecations

  • Deprecated autoInteract option in favor of autoHitTest and autoFocus
  • Deprecated Live2DModel.registerTicker() in favor of the ticker option