@galacean/engine-spine 0.0.0-experimental-2024071901 → 0.0.0-experimental-engine-spine-20240821

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 (105) hide show
  1. package/README.md +6 -8
  2. package/dist/browser.js +1 -1
  3. package/dist/main.js +1 -1
  4. package/dist/main.js.map +1 -1
  5. package/dist/miniprogram.js +1 -1
  6. package/dist/module.js +1 -1
  7. package/dist/module.js.map +1 -1
  8. package/package.json +8 -62
  9. package/types/{src/SpineAnimationRenderer.d.ts → SpineAnimationRenderer.d.ts} +1 -1
  10. package/types/SpineGenerator.d.ts +7 -6
  11. package/types/index.d.ts +2 -2
  12. package/types/loader/EditorSpineAtlasLoader.d.ts +1 -1
  13. package/types/loader/LoaderUtils.d.ts +1 -1
  14. package/types/loader/SkeletonDataResource.d.ts +1 -1
  15. package/types/loader/SpineLoader.d.ts +1 -1
  16. package/types/spine-core/Animation.d.ts +378 -0
  17. package/types/spine-core/AnimationState.d.ts +365 -0
  18. package/types/spine-core/AnimationStateData.d.ts +23 -0
  19. package/types/spine-core/AssetManager.d.ts +36 -0
  20. package/types/spine-core/AtlasAttachmentLoader.d.ts +23 -0
  21. package/types/spine-core/BlendMode.d.ts +7 -0
  22. package/types/spine-core/Bone.d.ts +110 -0
  23. package/types/spine-core/BoneData.d.ts +44 -0
  24. package/types/spine-core/ConstraintData.d.ts +7 -0
  25. package/types/spine-core/Event.d.ts +16 -0
  26. package/types/spine-core/EventData.d.ts +13 -0
  27. package/types/spine-core/IkConstraint.d.ts +38 -0
  28. package/types/spine-core/IkConstraintData.d.ts +26 -0
  29. package/types/spine-core/PathConstraint.d.ts +46 -0
  30. package/types/spine-core/PathConstraintData.d.ts +52 -0
  31. package/types/spine-core/SharedAssetManager.d.ts +19 -0
  32. package/types/spine-core/Skeleton.d.ts +134 -0
  33. package/types/spine-core/SkeletonBinary.d.ts +49 -0
  34. package/types/spine-core/SkeletonBounds.d.ts +48 -0
  35. package/types/spine-core/SkeletonClipping.d.ts +22 -0
  36. package/types/spine-core/SkeletonData.d.ts +89 -0
  37. package/types/spine-core/SkeletonJson.d.ts +34 -0
  38. package/types/spine-core/Skin.d.ts +43 -0
  39. package/types/spine-core/Slot.d.ts +42 -0
  40. package/types/spine-core/SlotData.d.ts +23 -0
  41. package/types/spine-core/Texture.d.ts +43 -0
  42. package/types/spine-core/TextureAtlas.d.ts +30 -0
  43. package/types/spine-core/TransformConstraint.d.ts +36 -0
  44. package/types/spine-core/TransformConstraintData.d.ts +34 -0
  45. package/types/spine-core/Triangulator.d.ts +14 -0
  46. package/types/spine-core/Updatable.d.ts +9 -0
  47. package/types/spine-core/Utils.d.ts +124 -0
  48. package/types/spine-core/VertexEffect.d.ts +7 -0
  49. package/types/spine-core/attachments/Attachment.d.ts +43 -0
  50. package/types/spine-core/attachments/AttachmentLoader.d.ts +25 -0
  51. package/types/spine-core/attachments/AttachmentType.d.ts +9 -0
  52. package/types/spine-core/attachments/BoundingBoxAttachment.d.ts +12 -0
  53. package/types/spine-core/attachments/ClippingAttachment.d.ts +14 -0
  54. package/types/spine-core/attachments/MeshAttachment.d.ts +46 -0
  55. package/types/spine-core/attachments/PathAttachment.d.ts +19 -0
  56. package/types/spine-core/attachments/PointAttachment.d.ts +20 -0
  57. package/types/spine-core/attachments/RegionAttachment.d.ts +88 -0
  58. package/types/spine-core/index.d.ts +45 -0
  59. package/types/spine-core/vertexeffects/JitterEffect.d.ts +11 -0
  60. package/types/spine-core/vertexeffects/SwirlEffect.d.ts +16 -0
  61. package/types/util/BlendMode.d.ts +1 -1
  62. package/types/SpineAnimation.d.ts +0 -147
  63. package/types/core/MeshGenerator.d.ts +0 -43
  64. package/types/core/SpineGenerator.d.ts +0 -42
  65. package/types/core/SpineMesh.d.ts +0 -11
  66. package/types/core/SpinePrimitive.d.ts +0 -15
  67. package/types/cypress.config.d.ts +0 -2
  68. package/types/e2e/case/.mockForE2E.d.ts +0 -3
  69. package/types/e2e/case/raptor.d.ts +0 -1
  70. package/types/e2e/case/spine-boy.d.ts +0 -1
  71. package/types/e2e/config.d.ts +0 -19
  72. package/types/e2e/support/commands.d.ts +0 -8
  73. package/types/e2e/support/e2e.d.ts +0 -1
  74. package/types/e2e/tests/index.cy.d.ts +0 -1
  75. package/types/example/main.d.ts +0 -1
  76. package/types/example/outline.d.ts +0 -11
  77. package/types/jest.setup.d.ts +0 -5
  78. package/types/loader/BufferReader.d.ts +0 -9
  79. package/types/loader/EditorSkeletonDataLoader.d.ts +0 -6
  80. package/types/src/SpineGenerator.d.ts +0 -37
  81. package/types/src/SpineMaterial.d.ts +0 -6
  82. package/types/src/index.d.ts +0 -7
  83. package/types/src/loader/EditorSpineAtlasLoader.d.ts +0 -6
  84. package/types/src/loader/LoaderUtils.d.ts +0 -18
  85. package/types/src/loader/SkeletonDataResource.d.ts +0 -12
  86. package/types/src/loader/SpineLoader.d.ts +0 -29
  87. package/types/src/util/BlendMode.d.ts +0 -4
  88. package/types/src/util/BufferReader.d.ts +0 -10
  89. package/types/src/util/ClearablePool.d.ts +0 -8
  90. package/types/src/util/ReturnablePool.d.ts +0 -8
  91. package/types/tests/SpineAnimation.test.d.ts +0 -1
  92. package/types/tests/SpineGenerator.test.d.ts +0 -1
  93. package/types/tests/SpineMaterial.test.d.ts +0 -1
  94. package/types/tests/loader/EditorSpineAtlasLoader.test.d.ts +0 -1
  95. package/types/tests/loader/SkeletonDataResource.test.d.ts +0 -1
  96. package/types/tests/loader/SpineLoader.test.d.ts +0 -1
  97. package/types/tests/loader/loaderUtil.test.d.ts +0 -0
  98. package/types/tests/testUtils.d.ts +0 -3
  99. package/types/tests/util/BlendMode.test.d.ts +0 -1
  100. package/types/tests/util/BufferReader.test.d.ts +0 -1
  101. package/types/tests/util/ClearablePool.test.d.ts +0 -1
  102. package/types/tests/util/ReturnablePool.test.d.ts +0 -1
  103. package/types/types.d.ts +0 -4
  104. package/types/util/Cache.d.ts +0 -19
  105. /package/types/{e2e/case/mix-and-match.d.ts → spine-core/polyfills.d.ts} +0 -0
package/README.md CHANGED
@@ -18,23 +18,21 @@ Spine runtime for [Galacean engine](https://github.com/galacean/engine).
18
18
 
19
19
 
20
20
  ```typescript
21
- import { SpineAnimationRenderer } from '@galacean/engine-spine';
21
+ import { SpineAnimation } from '@galacean/engine-spine';
22
22
 
23
23
  // init oasis
24
24
  addSpine();
25
25
 
26
26
  async function addSpine() {
27
- const resource = await engine.resourceManager.load(
27
+ const spineEntity = await engine.resourceManager.load(
28
28
  {
29
- url: 'https://mdn.alipayobjects.com/huamei_kz4wfo/uri/file/as/2/kz4wfo/4/mp/yKbdfgijyLGzQDyQ/spineboy/spineboy.json',
29
+ url: 'https://sbfkcel.github.io/pixi-spine-debug/assets/spine/spineboy-pro.json',
30
30
  type: 'spine',
31
31
  },
32
32
  );
33
- const spineEntity = new Entity(engine);
34
- const spine = entity.addComponent(SpineAnimationRenderer);
35
- spine.resource = resource;
36
- spine.defaultState.animationName = 'walk';
37
33
  rootEntity.addChild(spineEntity);
34
+ const spineAnimation = spineEntity.getComponent(SpineAnimation);
35
+ spineAnimation.state.setAnimation(0, 'walk', true);
38
36
  }
39
37
  ```
40
38
 
@@ -78,4 +76,4 @@ Make sure to read the [Contributing Guide](.github/HOW_TO_CONTRIBUTE.md) before
78
76
  ## License
79
77
 
80
78
 
81
- The Galacean Engine is released under the [MIT](https://opensource.org/licenses/MIT) license. See LICENSE file.
79
+ The Oasis Engine is released under the [MIT](https://opensource.org/licenses/MIT) license. See LICENSE file.