@eva/plugin-renderer-spine 2.0.1-beta.9 → 2.0.2-beta.0

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.
@@ -4,11 +4,70 @@ import { SpineParams } from '@eva/spine-base';
4
4
  import { SpineSystem as SpineSystem_2 } from '@eva/spine-base';
5
5
  export { PixiSpine }
6
6
 
7
+ /**
8
+ * Spine 骨骼动画组件(pixi-spine 4.2 版本)
9
+ *
10
+ * 此组件继承自 `@eva/spine-base` 的 Spine 基类,使用 pixi-spine 4.2 版本。
11
+ * 适用于需要使用 Spine 4.2 格式骨骼动画的场景。
12
+ *
13
+ * 详细的 API 文档和使用示例请参考 `@eva/spine-base` 中的 Spine 类。
14
+ *
15
+ * @see {@link @eva/spine-base.Spine} 基类文档
16
+ * @see {@link SpineSystem} 配套系统
17
+ *
18
+ * @example
19
+ * ```typescript
20
+ * import { Spine } from '@eva/plugin-renderer-spine';
21
+ *
22
+ * const character = new GameObject('character');
23
+ * const spine = new Spine({
24
+ * resource: 'heroSpine',
25
+ * animationName: 'idle',
26
+ * autoPlay: true,
27
+ * });
28
+ * character.addComponent(spine);
29
+ * ```
30
+ */
7
31
  export declare class Spine extends Spine_2 {
8
32
  }
9
33
  export { SpineParams }
10
34
 
35
+ /**
36
+ * Spine 骨骼动画渲染系统(pixi-spine 4.2 版本)
37
+ *
38
+ * 此系统继承自 `@eva/spine-base` 的 SpineSystem 基类,使用 pixi-spine 4.2 版本。
39
+ * 负责管理所有 Spine 组件的骨架创建、动画更新和资源管理。
40
+ *
41
+ * 适用于需要使用 Spine 4.2 格式骨骼动画的场景。
42
+ *
43
+ * 详细的 API 文档请参考 `@eva/spine-base` 中的 SpineSystem 类。
44
+ *
45
+ * @see {@link @eva/spine-base.SpineSystem} 基类文档
46
+ * @see {@link Spine} 配套组件
47
+ *
48
+ * @example
49
+ * ```typescript
50
+ * import { Game } from '@eva/eva.js';
51
+ * import { RendererSystem } from '@eva/plugin-renderer';
52
+ * import { SpineSystem } from '@eva/plugin-renderer-spine';
53
+ *
54
+ * const game = new Game({
55
+ * systems: [
56
+ * new RendererSystem({
57
+ * canvas: document.getElementById('canvas'),
58
+ * width: 750,
59
+ * height: 1000,
60
+ * }),
61
+ * new SpineSystem(),
62
+ * ],
63
+ * });
64
+ * ```
65
+ */
11
66
  export declare class SpineSystem extends SpineSystem_2 {
67
+ /**
68
+ * 初始化系统,注入 pixi-spine 4.2 版本
69
+ * @override
70
+ */
12
71
  init(): void;
13
72
  }
14
73