@safe-engine/pixi 8.1.4 → 8.2.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.
Files changed (164) hide show
  1. package/README.md +9 -3
  2. package/dist/@types/index.d.ts +2 -0
  3. package/dist/@types/safex.d.ts +168 -0
  4. package/dist/app.d.ts +1 -2
  5. package/dist/app.d.ts.map +1 -1
  6. package/dist/app.js +25 -24
  7. package/dist/base/EnhancedComponent.d.ts +25 -0
  8. package/dist/base/EnhancedComponent.d.ts.map +1 -0
  9. package/dist/base/EnhancedComponent.js +26 -0
  10. package/dist/base/gworld.d.ts +8 -0
  11. package/dist/base/gworld.d.ts.map +1 -0
  12. package/dist/base/gworld.js +16 -0
  13. package/dist/base/index.d.ts +4 -0
  14. package/dist/base/index.d.ts.map +1 -0
  15. package/dist/base/index.js +3 -0
  16. package/dist/base/utils.d.ts +6 -0
  17. package/dist/base/utils.d.ts.map +1 -0
  18. package/dist/base/utils.js +3 -0
  19. package/dist/collider/CollideComponent.d.ts +63 -0
  20. package/dist/collider/CollideComponent.d.ts.map +1 -0
  21. package/dist/collider/CollideComponent.js +236 -0
  22. package/dist/collider/CollideSystem.d.ts +26 -0
  23. package/dist/collider/CollideSystem.d.ts.map +1 -0
  24. package/dist/collider/CollideSystem.js +159 -0
  25. package/dist/collider/helper/Intersection.d.ts +7 -0
  26. package/dist/collider/helper/Intersection.d.ts.map +1 -0
  27. package/dist/collider/helper/Intersection.js +111 -0
  28. package/dist/collider/helper/utils.d.ts +3 -0
  29. package/dist/collider/helper/utils.d.ts.map +1 -0
  30. package/dist/collider/helper/utils.js +11 -0
  31. package/dist/collider/index.d.ts +3 -0
  32. package/dist/collider/index.d.ts.map +1 -0
  33. package/dist/collider/index.js +2 -0
  34. package/dist/components/BaseComponent.d.ts +6 -5
  35. package/dist/components/BaseComponent.d.ts.map +1 -1
  36. package/dist/components/BaseComponent.js +7 -9
  37. package/dist/components/GUIComponent.d.ts +22 -19
  38. package/dist/components/GUIComponent.d.ts.map +1 -1
  39. package/dist/components/GUIComponent.js +27 -44
  40. package/dist/components/NoRenderComponent.d.ts +33 -0
  41. package/dist/components/NodeComp.d.ts +13 -13
  42. package/dist/components/NodeComp.d.ts.map +1 -1
  43. package/dist/components/NodeComp.js +32 -28
  44. package/dist/components/RenderComponent.d.ts +7 -6
  45. package/dist/components/Scene.d.ts +2 -3
  46. package/dist/components/Scene.d.ts.map +1 -1
  47. package/dist/components/Scene.js +6 -10
  48. package/dist/core/Color.d.ts +1 -0
  49. package/dist/core/Color.d.ts.map +1 -1
  50. package/dist/core/Color.js +3 -6
  51. package/dist/core/LoadingBar.js +10 -15
  52. package/dist/core/NodePool.d.ts +9 -0
  53. package/dist/core/NodePool.d.ts.map +1 -0
  54. package/dist/core/NodePool.js +24 -0
  55. package/dist/core/Size.js +1 -4
  56. package/dist/core/director.d.ts +3 -0
  57. package/dist/core/director.d.ts.map +1 -0
  58. package/dist/core/director.js +7 -0
  59. package/dist/core/math.d.ts +4 -0
  60. package/dist/core/math.d.ts.map +1 -0
  61. package/dist/core/math.js +10 -0
  62. package/dist/dragonbones/DragonBonesComponent.d.ts +17 -0
  63. package/dist/dragonbones/DragonBonesComponent.d.ts.map +1 -0
  64. package/dist/dragonbones/DragonBonesComponent.js +18 -0
  65. package/dist/dragonbones/DragonBonesSystem.d.ts +6 -0
  66. package/dist/dragonbones/DragonBonesSystem.d.ts.map +1 -0
  67. package/dist/dragonbones/DragonBonesSystem.js +29 -0
  68. package/dist/dragonbones/index.d.ts +3 -0
  69. package/dist/dragonbones/index.d.ts.map +1 -0
  70. package/dist/dragonbones/index.js +2 -0
  71. package/dist/gui/GUIComponent.d.ts +99 -0
  72. package/dist/gui/GUIComponent.d.ts.map +1 -0
  73. package/dist/gui/GUIComponent.js +123 -0
  74. package/dist/{systems → gui}/GUISystem.d.ts +1 -1
  75. package/dist/gui/GUISystem.d.ts.map +1 -0
  76. package/dist/gui/GUISystem.js +100 -0
  77. package/dist/helper/html-text-parser.d.ts +19 -29
  78. package/dist/helper/html-text-parser.d.ts.map +1 -1
  79. package/dist/helper/html-text-parser.js +57 -346
  80. package/dist/helper/utils.d.ts +2 -3
  81. package/dist/helper/utils.d.ts.map +1 -1
  82. package/dist/helper/utils.js +18 -23
  83. package/dist/index.d.ts +16 -6
  84. package/dist/index.d.ts.map +1 -1
  85. package/dist/index.js +22 -28
  86. package/dist/norender/NoRenderComponent.d.ts +33 -0
  87. package/dist/norender/NoRenderComponent.d.ts.map +1 -0
  88. package/dist/norender/NoRenderComponent.js +50 -0
  89. package/dist/norender/NoRenderSystem.d.ts +5 -0
  90. package/dist/norender/NoRenderSystem.d.ts.map +1 -0
  91. package/dist/norender/NoRenderSystem.js +57 -0
  92. package/dist/planck/PhysicsComponent.d.ts +37 -0
  93. package/dist/planck/PhysicsComponent.d.ts.map +1 -0
  94. package/dist/planck/PhysicsComponent.js +52 -0
  95. package/dist/planck/PhysicsSprite.d.ts +16 -0
  96. package/dist/planck/PhysicsSprite.d.ts.map +1 -0
  97. package/dist/planck/PhysicsSprite.js +31 -0
  98. package/dist/planck/PhysicsSystem.d.ts +20 -0
  99. package/dist/planck/PhysicsSystem.d.ts.map +1 -0
  100. package/dist/planck/PhysicsSystem.js +187 -0
  101. package/dist/planck/index.d.ts +4 -0
  102. package/dist/planck/index.d.ts.map +1 -0
  103. package/dist/planck/index.js +3 -0
  104. package/dist/render/RenderComponent.d.ts +52 -0
  105. package/dist/render/RenderComponent.d.ts.map +1 -0
  106. package/dist/render/RenderComponent.js +104 -0
  107. package/dist/render/RenderSystem.d.ts.map +1 -0
  108. package/dist/render/RenderSystem.js +65 -0
  109. package/dist/spine/SpineComponent.d.ts +10 -0
  110. package/dist/spine/SpineComponent.d.ts.map +1 -0
  111. package/dist/spine/SpineComponent.js +3 -0
  112. package/dist/spine/SpineSystem.d.ts +5 -0
  113. package/dist/spine/SpineSystem.d.ts.map +1 -0
  114. package/dist/spine/SpineSystem.js +25 -0
  115. package/dist/spine/index.d.ts +3 -0
  116. package/dist/spine/index.d.ts.map +1 -0
  117. package/dist/spine/index.js +2 -0
  118. package/dist/spine/lib/BatchableSpineSlot.d.ts +59 -0
  119. package/dist/spine/lib/BatchableSpineSlot.d.ts.map +1 -0
  120. package/dist/spine/lib/BatchableSpineSlot.js +86 -0
  121. package/dist/spine/lib/Spine.d.ts +239 -0
  122. package/dist/spine/lib/Spine.d.ts.map +1 -0
  123. package/dist/spine/lib/Spine.js +628 -0
  124. package/dist/spine/lib/SpineDebugRenderer.d.ts +109 -0
  125. package/dist/spine/lib/SpineDebugRenderer.d.ts.map +1 -0
  126. package/dist/spine/lib/SpineDebugRenderer.js +474 -0
  127. package/dist/spine/lib/SpinePipe.d.ts +49 -0
  128. package/dist/spine/lib/SpinePipe.d.ts.map +1 -0
  129. package/dist/spine/lib/SpinePipe.js +148 -0
  130. package/dist/spine/lib/SpineTexture.d.ts +45 -0
  131. package/dist/spine/lib/SpineTexture.d.ts.map +1 -0
  132. package/dist/spine/lib/SpineTexture.js +114 -0
  133. package/dist/spine/lib/assets/atlasLoader.d.ts +34 -0
  134. package/dist/spine/lib/assets/atlasLoader.d.ts.map +1 -0
  135. package/dist/spine/lib/assets/atlasLoader.js +122 -0
  136. package/dist/spine/lib/assets/skeletonLoader.d.ts +30 -0
  137. package/dist/spine/lib/assets/skeletonLoader.d.ts.map +1 -0
  138. package/dist/spine/lib/assets/skeletonLoader.js +70 -0
  139. package/dist/spine/lib/darktint/DarkTintBatchGeometry.d.ts +33 -0
  140. package/dist/spine/lib/darktint/DarkTintBatchGeometry.d.ts.map +1 -0
  141. package/dist/spine/lib/darktint/DarkTintBatchGeometry.js +84 -0
  142. package/dist/spine/lib/darktint/DarkTintBatcher.d.ts +50 -0
  143. package/dist/spine/lib/darktint/DarkTintBatcher.d.ts.map +1 -0
  144. package/dist/spine/lib/darktint/DarkTintBatcher.js +131 -0
  145. package/dist/spine/lib/darktint/DarkTintShader.d.ts +33 -0
  146. package/dist/spine/lib/darktint/DarkTintShader.d.ts.map +1 -0
  147. package/dist/spine/lib/darktint/DarkTintShader.js +59 -0
  148. package/dist/spine/lib/darktint/darkTintBit.d.ts +51 -0
  149. package/dist/spine/lib/darktint/darkTintBit.d.ts.map +1 -0
  150. package/dist/spine/lib/darktint/darkTintBit.js +75 -0
  151. package/dist/spine/lib/index.d.ts +42 -0
  152. package/dist/spine/lib/index.d.ts.map +1 -0
  153. package/dist/spine/lib/index.js +41 -0
  154. package/dist/spine/lib/require-shim.d.ts +33 -0
  155. package/dist/spine/lib/require-shim.d.ts.map +1 -0
  156. package/dist/spine/lib/require-shim.js +38 -0
  157. package/package.json +13 -9
  158. package/dist/components/RenderComponent.d.ts.map +0 -1
  159. package/dist/components/RenderComponent.js +0 -58
  160. package/dist/systems/GUISystem.d.ts.map +0 -1
  161. package/dist/systems/GUISystem.js +0 -90
  162. package/dist/systems/RenderSystem.d.ts.map +0 -1
  163. package/dist/systems/RenderSystem.js +0 -67
  164. /package/dist/{systems → render}/RenderSystem.d.ts +0 -0
@@ -0,0 +1,148 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ import { collectAllRenderables, extensions, ExtensionType, } from 'pixi.js';
30
+ import { BatchableSpineSlot } from './BatchableSpineSlot.js';
31
+ import { MeshAttachment, RegionAttachment } from '@esotericsoftware/spine-core';
32
+ const spineBlendModeMap = {
33
+ 0: 'normal',
34
+ 1: 'add',
35
+ 2: 'multiply',
36
+ 3: 'screen'
37
+ };
38
+ // eslint-disable-next-line max-len
39
+ export class SpinePipe {
40
+ constructor(renderer) {
41
+ this.gpuSpineData = {};
42
+ this._destroyRenderableBound = this.destroyRenderable.bind(this);
43
+ this.renderer = renderer;
44
+ }
45
+ validateRenderable(spine) {
46
+ spine._validateAndTransformAttachments();
47
+ // if spine attachments have changed or destroyed, we need to rebuild the batch!
48
+ if (spine.spineAttachmentsDirty) {
49
+ return true;
50
+ }
51
+ // if the textures have changed, we need to rebuild the batch, but only if the texture is not already in the batch
52
+ else if (spine.spineTexturesDirty) {
53
+ // loop through and see if the textures have changed..
54
+ const drawOrder = spine.skeleton.drawOrder;
55
+ const gpuSpine = this.gpuSpineData[spine.uid];
56
+ for (let i = 0, n = drawOrder.length; i < n; i++) {
57
+ const slot = drawOrder[i];
58
+ const attachment = slot.getAttachment();
59
+ if (attachment instanceof RegionAttachment || attachment instanceof MeshAttachment) {
60
+ const cacheData = spine._getCachedData(slot, attachment);
61
+ const batchableSpineSlot = gpuSpine.slotBatches[cacheData.id];
62
+ const texture = cacheData.texture;
63
+ if (texture !== batchableSpineSlot.texture) {
64
+ if (!batchableSpineSlot._batcher.checkAndUpdateTexture(batchableSpineSlot, texture)) {
65
+ return true;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ return false;
72
+ }
73
+ addRenderable(spine, instructionSet) {
74
+ var _a, _b;
75
+ const gpuSpine = this._getSpineData(spine);
76
+ const batcher = this.renderer.renderPipes.batch;
77
+ const drawOrder = spine.skeleton.drawOrder;
78
+ const roundPixels = (this.renderer._roundPixels | spine._roundPixels);
79
+ spine._validateAndTransformAttachments();
80
+ spine.spineAttachmentsDirty = false;
81
+ spine.spineTexturesDirty = false;
82
+ for (let i = 0, n = drawOrder.length; i < n; i++) {
83
+ const slot = drawOrder[i];
84
+ const attachment = slot.getAttachment();
85
+ const blendMode = spineBlendModeMap[slot.data.blendMode];
86
+ if (attachment instanceof RegionAttachment || attachment instanceof MeshAttachment) {
87
+ const cacheData = spine._getCachedData(slot, attachment);
88
+ const batchableSpineSlot = (_a = gpuSpine.slotBatches)[_b = cacheData.id] || (_a[_b] = new BatchableSpineSlot());
89
+ batchableSpineSlot.setData(spine, cacheData, blendMode, roundPixels);
90
+ if (!cacheData.skipRender) {
91
+ batcher.addToBatch(batchableSpineSlot, instructionSet);
92
+ }
93
+ }
94
+ const containerAttachment = spine._slotsObject[slot.data.name];
95
+ if (containerAttachment) {
96
+ const container = containerAttachment.container;
97
+ container.includeInBuild = true;
98
+ collectAllRenderables(container, instructionSet, this.renderer);
99
+ container.includeInBuild = false;
100
+ }
101
+ }
102
+ }
103
+ updateRenderable(spine) {
104
+ var _a;
105
+ const gpuSpine = this.gpuSpineData[spine.uid];
106
+ spine._validateAndTransformAttachments();
107
+ spine.spineAttachmentsDirty = false;
108
+ spine.spineTexturesDirty = false;
109
+ const drawOrder = spine.skeleton.drawOrder;
110
+ for (let i = 0, n = drawOrder.length; i < n; i++) {
111
+ const slot = drawOrder[i];
112
+ const attachment = slot.getAttachment();
113
+ if (attachment instanceof RegionAttachment || attachment instanceof MeshAttachment) {
114
+ const cacheData = spine._getCachedData(slot, attachment);
115
+ if (!cacheData.skipRender) {
116
+ const batchableSpineSlot = gpuSpine.slotBatches[spine._getCachedData(slot, attachment).id];
117
+ (_a = batchableSpineSlot._batcher) === null || _a === void 0 ? void 0 : _a.updateElement(batchableSpineSlot);
118
+ }
119
+ }
120
+ }
121
+ }
122
+ destroyRenderable(spine) {
123
+ this.gpuSpineData[spine.uid] = null;
124
+ spine.off('destroyed', this._destroyRenderableBound);
125
+ }
126
+ destroy() {
127
+ this.gpuSpineData = null;
128
+ this.renderer = null;
129
+ }
130
+ _getSpineData(spine) {
131
+ return this.gpuSpineData[spine.uid] || this._initMeshData(spine);
132
+ }
133
+ _initMeshData(spine) {
134
+ this.gpuSpineData[spine.uid] = { slotBatches: {} };
135
+ spine.on('destroyed', this._destroyRenderableBound);
136
+ return this.gpuSpineData[spine.uid];
137
+ }
138
+ }
139
+ /** @ignore */
140
+ SpinePipe.extension = {
141
+ type: [
142
+ ExtensionType.WebGLPipes,
143
+ ExtensionType.WebGPUPipes,
144
+ ExtensionType.CanvasPipes,
145
+ ],
146
+ name: 'spine',
147
+ };
148
+ extensions.add(SpinePipe);
@@ -0,0 +1,45 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ import { Texture as PixiTexture } from 'pixi.js';
30
+ import { BlendMode, Texture, TextureFilter, TextureWrap } from '@esotericsoftware/spine-core';
31
+ import type { BLEND_MODES, TextureSource } from 'pixi.js';
32
+ export declare class SpineTexture extends Texture {
33
+ private static readonly textureMap;
34
+ static from(texture: TextureSource): SpineTexture;
35
+ readonly texture: PixiTexture;
36
+ private constructor();
37
+ setFilters(minFilter: TextureFilter, magFilter: TextureFilter): void;
38
+ setWraps(uWrap: TextureWrap, vWrap: TextureWrap): void;
39
+ dispose(): void;
40
+ private static toPixiMipMap;
41
+ private static toPixiTextureFilter;
42
+ private static toPixiTextureWrap;
43
+ static toPixiBlending(blend: BlendMode): BLEND_MODES;
44
+ }
45
+ //# sourceMappingURL=SpineTexture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SpineTexture.d.ts","sourceRoot":"","sources":["../../../src/spine/lib/SpineTexture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,SAAS,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAc,aAAa,EAAa,MAAM,SAAS,CAAC;AAEjF,qBAAa,YAAa,SAAQ,OAAO;IACxC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAA4E;WAEhG,IAAI,CAAE,OAAO,EAAE,aAAa,GAAG,YAAY;IAQzD,SAAgB,OAAO,EAAE,WAAW,CAAC;IAErC,OAAO;IAMA,UAAU,CAAE,SAAS,EAAE,aAAa,EAAE,SAAS,EAAE,aAAa,GAAG,IAAI;IASrE,QAAQ,CAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI;IAOvD,OAAO,IAAK,IAAI;IAKvB,OAAO,CAAC,MAAM,CAAC,YAAY;IAiB3B,OAAO,CAAC,MAAM,CAAC,mBAAmB;IAiBlC,OAAO,CAAC,MAAM,CAAC,iBAAiB;WAgBlB,cAAc,CAAE,KAAK,EAAE,SAAS,GAAG,WAAW;CAkB5D"}
@@ -0,0 +1,114 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ import { Texture as PixiTexture } from 'pixi.js';
30
+ import { BlendMode, Texture, TextureFilter, TextureWrap } from '@esotericsoftware/spine-core';
31
+ export class SpineTexture extends Texture {
32
+ static from(texture) {
33
+ if (SpineTexture.textureMap.has(texture)) {
34
+ return SpineTexture.textureMap.get(texture);
35
+ }
36
+ return new SpineTexture(texture);
37
+ }
38
+ constructor(image) {
39
+ // Todo: maybe add error handling if you feed a video texture to spine?
40
+ super(image.resource);
41
+ this.texture = PixiTexture.from(image);
42
+ }
43
+ setFilters(minFilter, magFilter) {
44
+ const style = this.texture.source.style;
45
+ style.minFilter = SpineTexture.toPixiTextureFilter(minFilter);
46
+ style.magFilter = SpineTexture.toPixiTextureFilter(magFilter);
47
+ this.texture.source.autoGenerateMipmaps = SpineTexture.toPixiMipMap(minFilter);
48
+ this.texture.source.updateMipmaps();
49
+ }
50
+ setWraps(uWrap, vWrap) {
51
+ const style = this.texture.source.style;
52
+ style.addressModeU = SpineTexture.toPixiTextureWrap(uWrap);
53
+ style.addressModeV = SpineTexture.toPixiTextureWrap(vWrap);
54
+ }
55
+ dispose() {
56
+ // I am not entirely sure about this...
57
+ this.texture.destroy();
58
+ }
59
+ static toPixiMipMap(filter) {
60
+ switch (filter) {
61
+ case TextureFilter.Nearest:
62
+ case TextureFilter.Linear:
63
+ return false;
64
+ case TextureFilter.MipMapNearestLinear:
65
+ case TextureFilter.MipMapNearestNearest:
66
+ case TextureFilter.MipMapLinearLinear: // TextureFilter.MipMapLinearLinear == TextureFilter.MipMap
67
+ case TextureFilter.MipMapLinearNearest:
68
+ return true;
69
+ default:
70
+ throw new Error(`Unknown texture filter: ${String(filter)}`);
71
+ }
72
+ }
73
+ static toPixiTextureFilter(filter) {
74
+ switch (filter) {
75
+ case TextureFilter.Nearest:
76
+ case TextureFilter.MipMapNearestLinear:
77
+ case TextureFilter.MipMapNearestNearest:
78
+ return 'nearest';
79
+ case TextureFilter.Linear:
80
+ case TextureFilter.MipMapLinearLinear: // TextureFilter.MipMapLinearLinear == TextureFilter.MipMap
81
+ case TextureFilter.MipMapLinearNearest:
82
+ return 'linear';
83
+ default:
84
+ throw new Error(`Unknown texture filter: ${String(filter)}`);
85
+ }
86
+ }
87
+ static toPixiTextureWrap(wrap) {
88
+ switch (wrap) {
89
+ case TextureWrap.ClampToEdge:
90
+ return 'clamp-to-edge';
91
+ case TextureWrap.MirroredRepeat:
92
+ return 'mirror-repeat';
93
+ case TextureWrap.Repeat:
94
+ return 'repeat';
95
+ default:
96
+ throw new Error(`Unknown texture wrap: ${String(wrap)}`);
97
+ }
98
+ }
99
+ static toPixiBlending(blend) {
100
+ switch (blend) {
101
+ case BlendMode.Normal:
102
+ return 'normal';
103
+ case BlendMode.Additive:
104
+ return 'add';
105
+ case BlendMode.Multiply:
106
+ return 'multiply';
107
+ case BlendMode.Screen:
108
+ return 'screen';
109
+ default:
110
+ throw new Error(`Unknown blendMode: ${String(blend)}`);
111
+ }
112
+ }
113
+ }
114
+ SpineTexture.textureMap = new Map();
@@ -0,0 +1,34 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ import { TextureSource } from 'pixi.js';
30
+ export interface ISpineAtlasMetadata {
31
+ imageMetadata?: any;
32
+ images?: TextureSource | string | Record<string, TextureSource | string>;
33
+ }
34
+ //# sourceMappingURL=atlasLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"atlasLoader.d.ts","sourceRoot":"","sources":["../../../../src/spine/lib/assets/atlasLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,EAQN,aAAa,EACb,MAAM,SAAS,CAAC;AAiHjB,MAAM,WAAW,mBAAmB;IAEnC,aAAa,CAAC,EAAE,GAAG,CAAC;IAGpB,MAAM,CAAC,EAAE,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAAC,CAAC;CACzE"}
@@ -0,0 +1,122 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
30
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31
+ return new (P || (P = Promise))(function (resolve, reject) {
32
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
33
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
34
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
35
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
36
+ });
37
+ };
38
+ import { checkExtension, DOMAdapter, extensions, ExtensionType, LoaderParserPriority, path, Resolver, TextureSource } from 'pixi.js';
39
+ import { SpineTexture } from '../SpineTexture.js';
40
+ import { TextureAtlas } from '@esotericsoftware/spine-core';
41
+ const spineTextureAtlasLoader = {
42
+ extension: ExtensionType.Asset,
43
+ resolver: {
44
+ test: (value) => checkExtension(value, ".atlas"),
45
+ parse: (value) => {
46
+ var _a, _b, _c;
47
+ const split = value.split('.');
48
+ return {
49
+ resolution: parseFloat((_c = (_b = (_a = Resolver.RETINA_PREFIX) === null || _a === void 0 ? void 0 : _a.exec(value)) === null || _b === void 0 ? void 0 : _b[1]) !== null && _c !== void 0 ? _c : '1'),
50
+ format: split[split.length - 2],
51
+ src: value,
52
+ };
53
+ },
54
+ },
55
+ loader: {
56
+ extension: {
57
+ type: ExtensionType.LoadParser,
58
+ priority: LoaderParserPriority.Normal,
59
+ name: 'spineTextureAtlasLoader',
60
+ },
61
+ test(url) {
62
+ return checkExtension(url, '.atlas');
63
+ },
64
+ load(url) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const response = yield DOMAdapter.get().fetch(url);
67
+ const txt = yield response.text();
68
+ return txt;
69
+ });
70
+ },
71
+ testParse(asset, options) {
72
+ const isExtensionRight = checkExtension(options.src, '.atlas');
73
+ const isString = typeof asset === 'string';
74
+ return Promise.resolve(isExtensionRight && isString);
75
+ },
76
+ unload(atlas) {
77
+ atlas.dispose();
78
+ },
79
+ parse(asset, options, loader) {
80
+ return __awaiter(this, void 0, void 0, function* () {
81
+ const metadata = options.data || {};
82
+ let basePath = path.dirname(options.src);
83
+ if (basePath && basePath.lastIndexOf('/') !== basePath.length - 1) {
84
+ basePath += '/';
85
+ }
86
+ // Retval is going to be a texture atlas. However we need to wait for it's callback to resolve this promise.
87
+ const retval = new TextureAtlas(asset);
88
+ // If the user gave me only one texture, that one is assumed to be the "first" texture in the atlas
89
+ if (metadata.images instanceof TextureSource || typeof metadata.images === 'string') {
90
+ const pixiTexture = metadata.images;
91
+ metadata.images = {};
92
+ metadata.images[retval.pages[0].name] = pixiTexture;
93
+ }
94
+ // we will wait for all promises for the textures at the same time at the end.
95
+ const textureLoadingPromises = [];
96
+ // fill the pages
97
+ for (const page of retval.pages) {
98
+ const pageName = page.name;
99
+ const providedPage = (metadata === null || metadata === void 0 ? void 0 : metadata.images) ? metadata.images[pageName] : undefined;
100
+ if (providedPage instanceof TextureSource) {
101
+ page.setTexture(SpineTexture.from(providedPage));
102
+ }
103
+ else {
104
+ // eslint-disable-next-line max-len
105
+ const url = providedPage !== null && providedPage !== void 0 ? providedPage : path.normalize([...basePath.split(path.sep), pageName].join(path.sep));
106
+ const assetsToLoadIn = {
107
+ src: url,
108
+ data: Object.assign(Object.assign({}, metadata.imageMetadata), { alphaMode: page.pma ? 'premultiplied-alpha' : 'premultiply-alpha-on-upload' })
109
+ };
110
+ const pixiPromise = loader.load(assetsToLoadIn).then((texture) => {
111
+ page.setTexture(SpineTexture.from(texture.source));
112
+ });
113
+ textureLoadingPromises.push(pixiPromise);
114
+ }
115
+ }
116
+ yield Promise.all(textureLoadingPromises);
117
+ return retval;
118
+ });
119
+ },
120
+ },
121
+ };
122
+ extensions.add(spineTextureAtlasLoader);
@@ -0,0 +1,30 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ export {};
30
+ //# sourceMappingURL=skeletonLoader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeletonLoader.d.ts","sourceRoot":"","sources":["../../../../src/spine/lib/assets/skeletonLoader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E"}
@@ -0,0 +1,70 @@
1
+ /** ****************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
30
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31
+ return new (P || (P = Promise))(function (resolve, reject) {
32
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
33
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
34
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
35
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
36
+ });
37
+ };
38
+ import { checkExtension, DOMAdapter, extensions, ExtensionType, LoaderParserPriority } from 'pixi.js';
39
+ function isJson(resource) {
40
+ return Object.prototype.hasOwnProperty.call(resource, 'bones');
41
+ }
42
+ function isBuffer(resource) {
43
+ return resource instanceof Uint8Array;
44
+ }
45
+ const spineLoaderExtension = {
46
+ extension: ExtensionType.Asset,
47
+ loader: {
48
+ extension: {
49
+ type: ExtensionType.LoadParser,
50
+ priority: LoaderParserPriority.Normal,
51
+ name: 'spineSkeletonLoader',
52
+ },
53
+ test(url) {
54
+ return checkExtension(url, '.skel');
55
+ },
56
+ load(url) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ const response = yield DOMAdapter.get().fetch(url);
59
+ const buffer = new Uint8Array(yield response.arrayBuffer());
60
+ return buffer;
61
+ });
62
+ },
63
+ testParse(asset, options) {
64
+ const isJsonSpineModel = checkExtension(options.src, '.json') && isJson(asset);
65
+ const isBinarySpineModel = checkExtension(options.src, '.skel') && isBuffer(asset);
66
+ return Promise.resolve(isJsonSpineModel || isBinarySpineModel);
67
+ },
68
+ },
69
+ };
70
+ extensions.add(spineLoaderExtension);
@@ -0,0 +1,33 @@
1
+ /******************************************************************************
2
+ * Spine Runtimes License Agreement
3
+ * Last updated July 28, 2023. Replaces all prior versions.
4
+ *
5
+ * Copyright (c) 2013-2023, Esoteric Software LLC
6
+ *
7
+ * Integration of the Spine Runtimes into software or otherwise creating
8
+ * derivative works of the Spine Runtimes is permitted under the terms and
9
+ * conditions of Section 2 of the Spine Editor License Agreement:
10
+ * http://esotericsoftware.com/spine-editor-license
11
+ *
12
+ * Otherwise, it is permitted to integrate the Spine Runtimes into software or
13
+ * otherwise create derivative works of the Spine Runtimes (collectively,
14
+ * "Products"), provided that each user of the Products must obtain their own
15
+ * Spine Editor license and redistribution of the Products in any form must
16
+ * include this license and copyright notice.
17
+ *
18
+ * THE SPINE RUNTIMES ARE PROVIDED BY ESOTERIC SOFTWARE LLC "AS IS" AND ANY
19
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ * DISCLAIMED. IN NO EVENT SHALL ESOTERIC SOFTWARE LLC BE LIABLE FOR ANY
22
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES,
24
+ * BUSINESS INTERRUPTION, OR LOSS OF USE, DATA, OR PROFITS) HOWEVER CAUSED AND
25
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THE
27
+ * SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+ *****************************************************************************/
29
+ import { Geometry } from 'pixi.js';
30
+ export declare class DarkTintBatchGeometry extends Geometry {
31
+ constructor();
32
+ }
33
+ //# sourceMappingURL=DarkTintBatchGeometry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DarkTintBatchGeometry.d.ts","sourceRoot":"","sources":["../../../../src/spine/lib/darktint/DarkTintBatchGeometry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,EAAuB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxD,qBAAa,qBAAsB,SAAQ,QAAQ;;CAwDlD"}