@tawaship/pixi-animate-runtime 0.0.0-stage → 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.
Files changed (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +462 -2
  3. package/bin/pixi-animate-runtime.js +27 -0
  4. package/dist/generator.cjs.js +1056 -0
  5. package/dist/generator.cjs.js.map +1 -0
  6. package/dist/pixi-animate-runtime.cjs.js +3742 -0
  7. package/dist/pixi-animate-runtime.cjs.js.map +1 -0
  8. package/dist/pixi-animate-runtime.esm.js +3677 -0
  9. package/dist/pixi-animate-runtime.esm.js.map +1 -0
  10. package/dist/pixi-animate-runtime.js +3744 -0
  11. package/dist/pixi-animate-runtime.js.map +1 -0
  12. package/dist-skills/animate-data-converter-guide/SKILL.md +86 -0
  13. package/dist-skills/pixi-animate-runtime-guide/SKILL.md +146 -0
  14. package/package.json +70 -4
  15. package/tools/pixi-animate-runtime.bat +8 -0
  16. package/types/generator/generator/cli.d.ts +17 -0
  17. package/types/generator/generator/converter-version.d.ts +7 -0
  18. package/types/generator/generator/generate.d.ts +33 -0
  19. package/types/generator/generator/index.d.ts +6 -0
  20. package/types/generator/generator/plan.d.ts +87 -0
  21. package/types/generator/player/data.d.ts +141 -0
  22. package/types/generator/player/ease.d.ts +11 -0
  23. package/types/generator/player/semver.d.ts +27 -0
  24. package/types/generator/player/version.d.ts +2 -0
  25. package/types/player/animate-container.d.ts +73 -0
  26. package/types/player/content.d.ts +181 -0
  27. package/types/player/data.d.ts +141 -0
  28. package/types/player/display.d.ts +192 -0
  29. package/types/player/ease.d.ts +11 -0
  30. package/types/player/events.d.ts +60 -0
  31. package/types/player/geom.d.ts +19 -0
  32. package/types/player/index.d.ts +20 -0
  33. package/types/player/loader.d.ts +53 -0
  34. package/types/player/movieclip.d.ts +191 -0
  35. package/types/player/objects.d.ts +320 -0
  36. package/types/player/semver.d.ts +27 -0
  37. package/types/player/transform.d.ts +32 -0
  38. package/types/player/version.d.ts +2 -0
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Semantic version numbers and ranges, as far as the version checks of
3
+ * definitions and runtime content need them: versions are MAJOR.MINOR.PATCH,
4
+ * and ranges are written as npm writes them (`1.2.3`, `1.x`, `^1.2.0`,
5
+ * `~1.2.0`, `>=1.0.0 <2.0.0`, `0.x || 1.x`). Pre-release tags are not handled.
6
+ */
7
+ type TVersion = [number, number, number];
8
+ /** A version as its three numbers, or null when it is not MAJOR.MINOR.PATCH */
9
+ export declare function parseVersion(text: string): TVersion | null;
10
+ /** -1, 0 or 1 as a is lower than, the same as or higher than b (both have to be versions) */
11
+ export declare function compareVersions(a: string, b: string): number;
12
+ /** Whether a version is in a range (npm's notation, see above); a range not understood throws */
13
+ export declare function satisfies(version: string, range: string): boolean;
14
+ /**
15
+ * Whether data a reader is given can be read: `error` when its writer's
16
+ * version is outside the range the reader reads, `warning` when it is in the
17
+ * range but newer than the version the reader knows of (the data may hold
18
+ * what the reader does not know and leaves out). Both null when it reads.
19
+ */
20
+ export interface IVersionCheck {
21
+ error: string | null;
22
+ warning: string | null;
23
+ /** With an error: whether the writer is newer than the reader (update the reader) or older (write the data again) */
24
+ newer: boolean;
25
+ }
26
+ export declare function checkVersion(version: string, range: string, known: string): IVersionCheck;
27
+ export {};
@@ -0,0 +1,32 @@
1
+ import * as PIXI from 'pixi.js';
2
+ /**
3
+ * A Pixi Transform whose rotation and skew follow createjs.
4
+ *
5
+ * - The createjs values (degrees) are kept as written, so that reading them
6
+ * back gives exactly what was written (a degrees -> radians -> degrees round
7
+ * trip does not)
8
+ * - Pixi's own fields carry the same values in Pixi's terms (rotation in
9
+ * radians, skew.x = -skewX, skew.y = skewY, all in radians), so code that
10
+ * uses the Pixi node sees consistent values. A write made through Pixi
11
+ * (node.rotation, node.skew) is taken over as the new createjs value
12
+ * - The local matrix is built the createjs way: skew x (rotation x scale),
13
+ * i.e. the object is rotated first and then skewed. Pixi composes rotation
14
+ * and skew the other way round (skewed, then rotated as a whole); the two
15
+ * agree only while the rotation is 0 or skewX equals skewY. Published
16
+ * content is the reference, so createjs's composition is used
17
+ */
18
+ export declare class CjsTransform extends PIXI.Transform {
19
+ /** createjs rotation, in degrees */
20
+ degRotation: number;
21
+ /** createjs skewX / skewY, in degrees */
22
+ degSkewX: number;
23
+ degSkewY: number;
24
+ /** The radians last written to the Pixi fields for the values above */
25
+ private _radRotation;
26
+ private _radSkewX;
27
+ private _radSkewY;
28
+ setRotation(degrees: number): void;
29
+ setSkewX(degrees: number): void;
30
+ setSkewY(degrees: number): void;
31
+ protected updateSkew(): void;
32
+ }
@@ -0,0 +1,2 @@
1
+ /** The version of this package (written in from package.json when the package is built) */
2
+ export declare const VERSION: string;