@galacean/engine-spine 0.0.0-experimental-engine-spine-caifu.1 → 0.0.0-experimental-engine-spine-4.2.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 (70) hide show
  1. package/README.md +64 -42
  2. package/dist/browser.js +1 -29
  3. package/dist/main.js +11747 -29
  4. package/dist/main.js.map +1 -1
  5. package/dist/miniprogram.js +11748 -29
  6. package/dist/module.js +11634 -29
  7. package/dist/module.js.map +1 -1
  8. package/package.json +20 -6
  9. package/types/index.d.ts +2 -5
  10. package/types/loader/LoaderUtils.d.ts +11 -17
  11. package/types/loader/SpineAtlasLoader.d.ts +7 -0
  12. package/types/loader/SpineLoader.d.ts +11 -25
  13. package/types/loader/SpineResource.d.ts +5 -4
  14. package/types/loader/SpineTexture.d.ts +13 -0
  15. package/types/loader/index.d.ts +4 -0
  16. package/types/{SpineAnimationRenderer.d.ts → renderer/SpineAnimationRenderer.d.ts} +45 -81
  17. package/types/{SpineGenerator.d.ts → renderer/SpineGenerator.d.ts} +12 -15
  18. package/types/renderer/index.d.ts +2 -0
  19. package/types/util/BlendMode.d.ts +1 -1
  20. package/types/loader/EditorSpineAtlasLoader.d.ts +0 -6
  21. package/types/loader/SkeletonDataResource.d.ts +0 -12
  22. package/types/spine-core/Animation.d.ts +0 -378
  23. package/types/spine-core/AnimationState.d.ts +0 -365
  24. package/types/spine-core/AnimationStateData.d.ts +0 -23
  25. package/types/spine-core/AssetManager.d.ts +0 -36
  26. package/types/spine-core/AtlasAttachmentLoader.d.ts +0 -23
  27. package/types/spine-core/BlendMode.d.ts +0 -7
  28. package/types/spine-core/Bone.d.ts +0 -110
  29. package/types/spine-core/BoneData.d.ts +0 -44
  30. package/types/spine-core/ConstraintData.d.ts +0 -7
  31. package/types/spine-core/Event.d.ts +0 -16
  32. package/types/spine-core/EventData.d.ts +0 -13
  33. package/types/spine-core/IkConstraint.d.ts +0 -38
  34. package/types/spine-core/IkConstraintData.d.ts +0 -26
  35. package/types/spine-core/PathConstraint.d.ts +0 -46
  36. package/types/spine-core/PathConstraintData.d.ts +0 -52
  37. package/types/spine-core/SharedAssetManager.d.ts +0 -19
  38. package/types/spine-core/Skeleton.d.ts +0 -134
  39. package/types/spine-core/SkeletonBinary.d.ts +0 -49
  40. package/types/spine-core/SkeletonBounds.d.ts +0 -48
  41. package/types/spine-core/SkeletonClipping.d.ts +0 -22
  42. package/types/spine-core/SkeletonData.d.ts +0 -89
  43. package/types/spine-core/SkeletonJson.d.ts +0 -34
  44. package/types/spine-core/Skin.d.ts +0 -43
  45. package/types/spine-core/Slot.d.ts +0 -42
  46. package/types/spine-core/SlotData.d.ts +0 -23
  47. package/types/spine-core/Texture.d.ts +0 -43
  48. package/types/spine-core/TextureAtlas.d.ts +0 -30
  49. package/types/spine-core/TransformConstraint.d.ts +0 -36
  50. package/types/spine-core/TransformConstraintData.d.ts +0 -34
  51. package/types/spine-core/Triangulator.d.ts +0 -14
  52. package/types/spine-core/Updatable.d.ts +0 -9
  53. package/types/spine-core/Utils.d.ts +0 -124
  54. package/types/spine-core/VertexEffect.d.ts +0 -7
  55. package/types/spine-core/attachments/Attachment.d.ts +0 -43
  56. package/types/spine-core/attachments/AttachmentLoader.d.ts +0 -25
  57. package/types/spine-core/attachments/AttachmentType.d.ts +0 -9
  58. package/types/spine-core/attachments/BoundingBoxAttachment.d.ts +0 -12
  59. package/types/spine-core/attachments/ClippingAttachment.d.ts +0 -14
  60. package/types/spine-core/attachments/MeshAttachment.d.ts +0 -46
  61. package/types/spine-core/attachments/PathAttachment.d.ts +0 -19
  62. package/types/spine-core/attachments/PointAttachment.d.ts +0 -20
  63. package/types/spine-core/attachments/RegionAttachment.d.ts +0 -88
  64. package/types/spine-core/index.d.ts +0 -45
  65. package/types/spine-core/polyfills.d.ts +0 -1
  66. package/types/spine-core/vertexeffects/JitterEffect.d.ts +0 -11
  67. package/types/spine-core/vertexeffects/SwirlEffect.d.ts +0 -16
  68. package/types/util/AttachmentTools.d.ts +0 -22
  69. package/types/util/BufferReader.d.ts +0 -10
  70. /package/types/{SpineMaterial.d.ts → renderer/SpineMaterial.d.ts} +0 -0
@@ -1,11 +0,0 @@
1
- import { VertexEffect } from "../VertexEffect";
2
- import { Skeleton } from "../Skeleton";
3
- import { Color, Vector2 } from "../Utils";
4
- export declare class JitterEffect implements VertexEffect {
5
- jitterX: number;
6
- jitterY: number;
7
- constructor(jitterX: number, jitterY: number);
8
- begin(skeleton: Skeleton): void;
9
- transform(position: Vector2, uv: Vector2, light: Color, dark: Color): void;
10
- end(): void;
11
- }
@@ -1,16 +0,0 @@
1
- import { VertexEffect } from "../VertexEffect";
2
- import { PowOut, Color, Vector2 } from "../Utils";
3
- import { Skeleton } from "../Skeleton";
4
- export declare class SwirlEffect implements VertexEffect {
5
- static interpolation: PowOut;
6
- centerX: number;
7
- centerY: number;
8
- radius: number;
9
- angle: number;
10
- private worldX;
11
- private worldY;
12
- constructor(radius: number);
13
- begin(skeleton: Skeleton): void;
14
- transform(position: Vector2, uv: Vector2, light: Color, dark: Color): void;
15
- end(): void;
16
- }
@@ -1,22 +0,0 @@
1
- import { Attachment, MeshAttachment, RegionAttachment, TextureAtlasRegion } from "@esotericsoftware/spine-core";
2
- /**
3
- * Creates a new `RegionAttachment` from a specified texture atlas region.
4
- *
5
- * @param region - The texture atlas region used to create the attachment.
6
- * @param attachmentName - The name of the new attachment.
7
- * @param scale - A scaling factor applied to the attachment's dimensions (default is 1).
8
- * @param rotation - The rotation angle of the attachment in degrees (default is 0).
9
- * @returns The created `RegionAttachment` with the passed in region.
10
- */
11
- export declare function createAttachmentFromRegion(region: TextureAtlasRegion, attachmentName: string, scale?: number, rotation?: number): RegionAttachment;
12
- /**
13
- * Clones an attachment (`RegionAttachment` or `MeshAttachment`) and applies a new texture atlas region.
14
- *
15
- * @param attachment - The attachment to clone (either `RegionAttachment` or `MeshAttachment`).
16
- * @param atlasRegion - The new texture atlas region to associate with the cloned attachment.
17
- * @param useOriginalRegionSize - Whether to retain the original region's size for the cloned attachment (default is `false`).
18
- * @param scale - A scaling factor applied to the dimensions of the cloned attachment (default is 1).
19
- * @param cloneMeshAsLinked - If `true`, clones a `MeshAttachment` as a linked mesh (default is `true`).
20
- * @returns The cloned attachment with the specified properties and the new texture region.
21
- */
22
- export declare function cloneAttachmentWithRegion(attachment: RegionAttachment | MeshAttachment, atlasRegion: TextureAtlasRegion, useOriginalRegionSize?: boolean, scale?: number, cloneMeshAsLinked?: boolean): Attachment;
@@ -1,10 +0,0 @@
1
- export declare class BufferReader {
2
- data: Uint8Array;
3
- private _dataView;
4
- private _position;
5
- constructor(data: Uint8Array, byteOffset?: number, byteLength?: number);
6
- nextUint16(): number;
7
- nextStr(): string;
8
- nextImageData(): Uint8Array;
9
- private decodeText;
10
- }