@galacean/engine-spine 0.0.0-experimental-2024071602 → 0.0.0-experimental-2024071801
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/README.md +2 -2
- 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 +15 -5
- package/types/cypress.config.d.ts +2 -0
- package/types/e2e/case/.mockForE2E.d.ts +3 -0
- package/types/e2e/case/mix-and-match.d.ts +1 -0
- package/types/e2e/case/raptor.d.ts +1 -0
- package/types/e2e/case/spine-boy.d.ts +1 -0
- package/types/e2e/config.d.ts +19 -0
- package/types/e2e/support/commands.d.ts +8 -0
- package/types/e2e/support/e2e.d.ts +1 -0
- package/types/e2e/tests/index.cy.d.ts +1 -0
- package/types/example/main.d.ts +1 -0
- package/types/example/outline.d.ts +11 -0
- package/types/jest.setup.d.ts +5 -0
- package/types/src/SpineAnimationRenderer.d.ts +213 -0
- package/types/src/SpineGenerator.d.ts +37 -0
- package/types/src/SpineMaterial.d.ts +6 -0
- package/types/src/index.d.ts +7 -0
- package/types/src/loader/EditorSpineAtlasLoader.d.ts +6 -0
- package/types/src/loader/LoaderUtils.d.ts +18 -0
- package/types/src/loader/SkeletonDataResource.d.ts +12 -0
- package/types/src/loader/SpineLoader.d.ts +29 -0
- package/types/src/util/BlendMode.d.ts +4 -0
- package/types/src/util/BufferReader.d.ts +10 -0
- package/types/src/util/ClearablePool.d.ts +8 -0
- package/types/src/util/ReturnablePool.d.ts +8 -0
- package/types/tests/SpineAnimation.test.d.ts +1 -0
- package/types/tests/SpineGenerator.test.d.ts +1 -0
- package/types/tests/SpineMaterial.test.d.ts +1 -0
- package/types/tests/loader/EditorSpineAtlasLoader.test.d.ts +1 -0
- package/types/tests/loader/SkeletonDataResource.test.d.ts +1 -0
- package/types/tests/loader/SpineLoader.test.d.ts +1 -0
- package/types/tests/loader/loaderUtil.test.d.ts +0 -0
- package/types/tests/testUtils.d.ts +3 -0
- package/types/tests/util/BlendMode.test.d.ts +1 -0
- package/types/tests/util/BufferReader.test.d.ts +1 -0
- package/types/tests/util/ClearablePool.test.d.ts +1 -0
- package/types/tests/util/ReturnablePool.test.d.ts +1 -0
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ Spine runtime for [Galacean engine](https://github.com/galacean/engine).
|
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import {
|
|
21
|
+
import { SpineAnimationRenderer } from '@galacean/engine-spine';
|
|
22
22
|
|
|
23
23
|
// init oasis
|
|
24
24
|
addSpine();
|
|
@@ -31,7 +31,7 @@ async function addSpine() {
|
|
|
31
31
|
},
|
|
32
32
|
);
|
|
33
33
|
rootEntity.addChild(spineEntity);
|
|
34
|
-
const spineAnimation = spineEntity.getComponent(
|
|
34
|
+
const spineAnimation = spineEntity.getComponent(SpineAnimationRenderer);
|
|
35
35
|
spineAnimation.state.setAnimation(0, 'walk', true);
|
|
36
36
|
}
|
|
37
37
|
```
|