@galacean/engine-spine 1.1.0-beta.2 → 1.1.0-beta.3
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.
- package/dist/browser.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/miniprogram.js +1 -1
- package/dist/module.js +1 -1
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/SpineRenderer.d.ts +25 -0
- package/types/index.d.ts +9 -9
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Script, Entity } from "@galacean/engine";
|
|
2
|
+
import { SpineAnimation } from "./SpineAnimation";
|
|
3
|
+
export declare class SpineRenderer extends Script {
|
|
4
|
+
private _resource;
|
|
5
|
+
private _animationName;
|
|
6
|
+
private _loop;
|
|
7
|
+
private _autoPlay;
|
|
8
|
+
private _scale;
|
|
9
|
+
private _spineAnimation;
|
|
10
|
+
private _animationNames;
|
|
11
|
+
get resource(): Entity | null;
|
|
12
|
+
set resource(value: Entity | null);
|
|
13
|
+
get animationName(): string;
|
|
14
|
+
set animationName(name: string);
|
|
15
|
+
get loop(): boolean;
|
|
16
|
+
set loop(value: boolean);
|
|
17
|
+
get autoPlay(): boolean;
|
|
18
|
+
set autoPlay(value: boolean);
|
|
19
|
+
get scale(): number;
|
|
20
|
+
set scale(value: number);
|
|
21
|
+
get spineAnimation(): SpineAnimation;
|
|
22
|
+
onDestroy(): void;
|
|
23
|
+
play(name?: string, loop?: boolean): void;
|
|
24
|
+
private _removeResource;
|
|
25
|
+
}
|
package/types/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
export { SpineAnimation } from
|
|
4
|
-
export { AssetManager } from
|
|
5
|
-
export { Texture } from
|
|
6
|
-
export { TextureAtlas } from
|
|
7
|
-
export { AtlasAttachmentLoader } from
|
|
8
|
-
export { SkeletonJson } from
|
|
9
|
-
export { SkeletonBinary } from
|
|
1
|
+
import "./SpineLoader";
|
|
2
|
+
export { SpineRenderer } from "./SpineRenderer";
|
|
3
|
+
export { SpineAnimation } from "./SpineAnimation";
|
|
4
|
+
export { AssetManager } from "./spine-core/AssetManager";
|
|
5
|
+
export { Texture } from "./spine-core/Texture";
|
|
6
|
+
export { TextureAtlas } from "./spine-core/TextureAtlas";
|
|
7
|
+
export { AtlasAttachmentLoader } from "./spine-core/AtlasAttachmentLoader";
|
|
8
|
+
export { SkeletonJson } from "./spine-core/SkeletonJson";
|
|
9
|
+
export { SkeletonBinary } from "./spine-core/SkeletonBinary";
|
|
10
10
|
export declare const version = "__buildVersion";
|