@tawaship/pixim-animate-runtime 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ description: Use this skill whenever the user asks to create, edit, or debug con
5
5
 
6
6
  # @tawaship/pixi-animate-runtime development skill
7
7
 
8
- Supported versions: **`^0.1.0`** (written against `0.1.0`).
8
+ Supported versions: **`^0.1.0`** (written against `0.1.1`).
9
9
 
10
10
  First determine the installed version (`node_modules/@tawaship/pixi-animate-runtime/package.json`). If it is outside the supported range, **treat the type definitions in node_modules as authoritative** and follow them wherever they disagree with this skill.
11
11
 
@@ -102,7 +102,7 @@ loadContentAsync({ id: 'COMPOSITION_ID', basepath: 'assets/animates/generated/'
102
102
 
103
103
  - `addCreatejs(instance)` / `addCreatejsAt(instance, index)` put an instance on the container; a movie clip plays from its first frame. `removeCreatejs(instance)` takes it off and it stops
104
104
  - Content plays at its published frame rate whatever the display's refresh rate
105
- - `speed`: playback speed (`1` = published frame rate, `0` stops)
105
+ - `speed`: playback speed (`1` = published frame rate, `0` stops; a value below `0` is taken as `0`, nothing plays backward)
106
106
  - `overSpeed` (default `true`): when the display runs slower than the content, one tick may play several frames. `false` plays at most one frame per tick
107
107
  - `smooth` (default `true`): frames follow a steady clock, so small variations of the frame time do not make the playing uneven (no frame on one tick, two on the next); it still keeps to the real time. Leave it on unless the user asks for the pixi-animate-container behavior (`false`)
108
108
  - To play on a container of another PixiJS framework, use `new AnimateController(container)`; it has the same `addCreatejs`, `handleTick`, `speed`, `overSpeed`, `smooth`
@@ -5,7 +5,7 @@ description: Use this skill whenever the user asks to create, edit, or debug con
5
5
 
6
6
  # @tawaship/pixim-animate-runtime development skill
7
7
 
8
- Supported versions: **`^0.1.0`** (written against `0.1.0`).
8
+ Supported versions: **`^0.1.0`** (written against `0.1.1`).
9
9
 
10
10
  First determine the installed version (`node_modules/@tawaship/pixim-animate-runtime/package.json`). If it is outside the supported range, **treat the type definitions in node_modules as authoritative** and follow them wherever they disagree with this skill.
11
11
 
@@ -94,7 +94,7 @@ The Pixim content's own options apply to runtime content files and images as to
94
94
  ### 4. AnimateContainer
95
95
 
96
96
  - `addCreatejs(instance)` / `addCreatejsAt(instance, index)` / `removeCreatejs(instance)`; a movie clip put on again starts from its first frame
97
- - `speed` (`1` = published frame rate, `0` stops), `overSpeed` (default `true`; `false` plays at most one frame per application frame), `smooth` (default `true`; even playing when the frame time varies a little, as in pixi-animate-runtime-guide)
97
+ - `speed` (`1` = published frame rate, `0` stops; below `0` is taken as `0`), `overSpeed` (default `true`; `false` plays at most one frame per application frame), `smooth` (default `true`; even playing when the frame time varies a little, as in pixi-animate-runtime-guide)
98
98
  - `taskEnabled = false` stops playing. The container's `task` is free for your own use: clearing it does not stop playing
99
99
 
100
100
  ## Coming from pixim-animate-container
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tawaship/pixim-animate-runtime",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Plays Adobe Animate HTML5 Canvas content in Pixim.js: loads runtime content generated by @tawaship/pixi-animate-runtime as a Pixim content asset.",
5
5
  "main": "dist/pixim-animate-runtime.cjs.js",
6
6
  "module": "dist/pixim-animate-runtime.esm.js",
@@ -15,7 +15,7 @@ import { DisplayObject } from '@tawaship/pixi-animate-runtime';
15
15
  export declare class AnimateContainer extends Container {
16
16
  private readonly _controller;
17
17
  constructor();
18
- /** Playback speed (1 is the content's own frame rate) */
18
+ /** Playback speed (1 is the content's own frame rate, 0 stops; a value below 0 is taken as 0) */
19
19
  get speed(): number;
20
20
  set speed(value: number);
21
21
  /** Whether one frame of the application may play more than one frame of a root (when the display runs slower than the content) */