@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.
- package/README.md +9 -3
- package/dist/@types/index.d.ts +2 -0
- package/dist/@types/safex.d.ts +168 -0
- package/dist/app.d.ts +1 -2
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +25 -24
- package/dist/base/EnhancedComponent.d.ts +25 -0
- package/dist/base/EnhancedComponent.d.ts.map +1 -0
- package/dist/base/EnhancedComponent.js +26 -0
- package/dist/base/gworld.d.ts +8 -0
- package/dist/base/gworld.d.ts.map +1 -0
- package/dist/base/gworld.js +16 -0
- package/dist/base/index.d.ts +4 -0
- package/dist/base/index.d.ts.map +1 -0
- package/dist/base/index.js +3 -0
- package/dist/base/utils.d.ts +6 -0
- package/dist/base/utils.d.ts.map +1 -0
- package/dist/base/utils.js +3 -0
- package/dist/collider/CollideComponent.d.ts +63 -0
- package/dist/collider/CollideComponent.d.ts.map +1 -0
- package/dist/collider/CollideComponent.js +236 -0
- package/dist/collider/CollideSystem.d.ts +26 -0
- package/dist/collider/CollideSystem.d.ts.map +1 -0
- package/dist/collider/CollideSystem.js +159 -0
- package/dist/collider/helper/Intersection.d.ts +7 -0
- package/dist/collider/helper/Intersection.d.ts.map +1 -0
- package/dist/collider/helper/Intersection.js +111 -0
- package/dist/collider/helper/utils.d.ts +3 -0
- package/dist/collider/helper/utils.d.ts.map +1 -0
- package/dist/collider/helper/utils.js +11 -0
- package/dist/collider/index.d.ts +3 -0
- package/dist/collider/index.d.ts.map +1 -0
- package/dist/collider/index.js +2 -0
- package/dist/components/BaseComponent.d.ts +6 -5
- package/dist/components/BaseComponent.d.ts.map +1 -1
- package/dist/components/BaseComponent.js +7 -9
- package/dist/components/GUIComponent.d.ts +22 -19
- package/dist/components/GUIComponent.d.ts.map +1 -1
- package/dist/components/GUIComponent.js +27 -44
- package/dist/components/NoRenderComponent.d.ts +33 -0
- package/dist/components/NodeComp.d.ts +13 -13
- package/dist/components/NodeComp.d.ts.map +1 -1
- package/dist/components/NodeComp.js +32 -28
- package/dist/components/RenderComponent.d.ts +7 -6
- package/dist/components/Scene.d.ts +2 -3
- package/dist/components/Scene.d.ts.map +1 -1
- package/dist/components/Scene.js +6 -10
- package/dist/core/Color.d.ts +1 -0
- package/dist/core/Color.d.ts.map +1 -1
- package/dist/core/Color.js +3 -6
- package/dist/core/LoadingBar.js +10 -15
- package/dist/core/NodePool.d.ts +9 -0
- package/dist/core/NodePool.d.ts.map +1 -0
- package/dist/core/NodePool.js +24 -0
- package/dist/core/Size.js +1 -4
- package/dist/core/director.d.ts +3 -0
- package/dist/core/director.d.ts.map +1 -0
- package/dist/core/director.js +7 -0
- package/dist/core/math.d.ts +4 -0
- package/dist/core/math.d.ts.map +1 -0
- package/dist/core/math.js +10 -0
- package/dist/dragonbones/DragonBonesComponent.d.ts +17 -0
- package/dist/dragonbones/DragonBonesComponent.d.ts.map +1 -0
- package/dist/dragonbones/DragonBonesComponent.js +18 -0
- package/dist/dragonbones/DragonBonesSystem.d.ts +6 -0
- package/dist/dragonbones/DragonBonesSystem.d.ts.map +1 -0
- package/dist/dragonbones/DragonBonesSystem.js +29 -0
- package/dist/dragonbones/index.d.ts +3 -0
- package/dist/dragonbones/index.d.ts.map +1 -0
- package/dist/dragonbones/index.js +2 -0
- package/dist/gui/GUIComponent.d.ts +99 -0
- package/dist/gui/GUIComponent.d.ts.map +1 -0
- package/dist/gui/GUIComponent.js +123 -0
- package/dist/{systems → gui}/GUISystem.d.ts +1 -1
- package/dist/gui/GUISystem.d.ts.map +1 -0
- package/dist/gui/GUISystem.js +100 -0
- package/dist/helper/html-text-parser.d.ts +19 -29
- package/dist/helper/html-text-parser.d.ts.map +1 -1
- package/dist/helper/html-text-parser.js +57 -346
- package/dist/helper/utils.d.ts +2 -3
- package/dist/helper/utils.d.ts.map +1 -1
- package/dist/helper/utils.js +18 -23
- package/dist/index.d.ts +16 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -28
- package/dist/norender/NoRenderComponent.d.ts +33 -0
- package/dist/norender/NoRenderComponent.d.ts.map +1 -0
- package/dist/norender/NoRenderComponent.js +50 -0
- package/dist/norender/NoRenderSystem.d.ts +5 -0
- package/dist/norender/NoRenderSystem.d.ts.map +1 -0
- package/dist/norender/NoRenderSystem.js +57 -0
- package/dist/planck/PhysicsComponent.d.ts +37 -0
- package/dist/planck/PhysicsComponent.d.ts.map +1 -0
- package/dist/planck/PhysicsComponent.js +52 -0
- package/dist/planck/PhysicsSprite.d.ts +16 -0
- package/dist/planck/PhysicsSprite.d.ts.map +1 -0
- package/dist/planck/PhysicsSprite.js +31 -0
- package/dist/planck/PhysicsSystem.d.ts +20 -0
- package/dist/planck/PhysicsSystem.d.ts.map +1 -0
- package/dist/planck/PhysicsSystem.js +187 -0
- package/dist/planck/index.d.ts +4 -0
- package/dist/planck/index.d.ts.map +1 -0
- package/dist/planck/index.js +3 -0
- package/dist/render/RenderComponent.d.ts +52 -0
- package/dist/render/RenderComponent.d.ts.map +1 -0
- package/dist/render/RenderComponent.js +104 -0
- package/dist/render/RenderSystem.d.ts.map +1 -0
- package/dist/render/RenderSystem.js +65 -0
- package/dist/spine/SpineComponent.d.ts +10 -0
- package/dist/spine/SpineComponent.d.ts.map +1 -0
- package/dist/spine/SpineComponent.js +3 -0
- package/dist/spine/SpineSystem.d.ts +5 -0
- package/dist/spine/SpineSystem.d.ts.map +1 -0
- package/dist/spine/SpineSystem.js +25 -0
- package/dist/spine/index.d.ts +3 -0
- package/dist/spine/index.d.ts.map +1 -0
- package/dist/spine/index.js +2 -0
- package/dist/spine/lib/BatchableSpineSlot.d.ts +59 -0
- package/dist/spine/lib/BatchableSpineSlot.d.ts.map +1 -0
- package/dist/spine/lib/BatchableSpineSlot.js +86 -0
- package/dist/spine/lib/Spine.d.ts +239 -0
- package/dist/spine/lib/Spine.d.ts.map +1 -0
- package/dist/spine/lib/Spine.js +628 -0
- package/dist/spine/lib/SpineDebugRenderer.d.ts +109 -0
- package/dist/spine/lib/SpineDebugRenderer.d.ts.map +1 -0
- package/dist/spine/lib/SpineDebugRenderer.js +474 -0
- package/dist/spine/lib/SpinePipe.d.ts +49 -0
- package/dist/spine/lib/SpinePipe.d.ts.map +1 -0
- package/dist/spine/lib/SpinePipe.js +148 -0
- package/dist/spine/lib/SpineTexture.d.ts +45 -0
- package/dist/spine/lib/SpineTexture.d.ts.map +1 -0
- package/dist/spine/lib/SpineTexture.js +114 -0
- package/dist/spine/lib/assets/atlasLoader.d.ts +34 -0
- package/dist/spine/lib/assets/atlasLoader.d.ts.map +1 -0
- package/dist/spine/lib/assets/atlasLoader.js +122 -0
- package/dist/spine/lib/assets/skeletonLoader.d.ts +30 -0
- package/dist/spine/lib/assets/skeletonLoader.d.ts.map +1 -0
- package/dist/spine/lib/assets/skeletonLoader.js +70 -0
- package/dist/spine/lib/darktint/DarkTintBatchGeometry.d.ts +33 -0
- package/dist/spine/lib/darktint/DarkTintBatchGeometry.d.ts.map +1 -0
- package/dist/spine/lib/darktint/DarkTintBatchGeometry.js +84 -0
- package/dist/spine/lib/darktint/DarkTintBatcher.d.ts +50 -0
- package/dist/spine/lib/darktint/DarkTintBatcher.d.ts.map +1 -0
- package/dist/spine/lib/darktint/DarkTintBatcher.js +131 -0
- package/dist/spine/lib/darktint/DarkTintShader.d.ts +33 -0
- package/dist/spine/lib/darktint/DarkTintShader.d.ts.map +1 -0
- package/dist/spine/lib/darktint/DarkTintShader.js +59 -0
- package/dist/spine/lib/darktint/darkTintBit.d.ts +51 -0
- package/dist/spine/lib/darktint/darkTintBit.d.ts.map +1 -0
- package/dist/spine/lib/darktint/darkTintBit.js +75 -0
- package/dist/spine/lib/index.d.ts +42 -0
- package/dist/spine/lib/index.d.ts.map +1 -0
- package/dist/spine/lib/index.js +41 -0
- package/dist/spine/lib/require-shim.d.ts +33 -0
- package/dist/spine/lib/require-shim.d.ts.map +1 -0
- package/dist/spine/lib/require-shim.js +38 -0
- package/package.json +13 -9
- package/dist/components/RenderComponent.d.ts.map +0 -1
- package/dist/components/RenderComponent.js +0 -58
- package/dist/systems/GUISystem.d.ts.map +0 -1
- package/dist/systems/GUISystem.js +0 -90
- package/dist/systems/RenderSystem.d.ts.map +0 -1
- package/dist/systems/RenderSystem.js +0 -67
- /package/dist/{systems → render}/RenderSystem.d.ts +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
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 { Buffer, BufferUsage, Geometry } from 'pixi.js';
|
|
30
|
+
const placeHolderBufferData = new Float32Array(1);
|
|
31
|
+
const placeHolderIndexData = new Uint32Array(1);
|
|
32
|
+
export class DarkTintBatchGeometry extends Geometry {
|
|
33
|
+
constructor() {
|
|
34
|
+
const vertexSize = 7;
|
|
35
|
+
const attributeBuffer = new Buffer({
|
|
36
|
+
data: placeHolderBufferData,
|
|
37
|
+
label: 'attribute-batch-buffer',
|
|
38
|
+
usage: BufferUsage.VERTEX | BufferUsage.COPY_DST,
|
|
39
|
+
shrinkToFit: false,
|
|
40
|
+
});
|
|
41
|
+
const indexBuffer = new Buffer({
|
|
42
|
+
data: placeHolderIndexData,
|
|
43
|
+
label: 'index-batch-buffer',
|
|
44
|
+
usage: BufferUsage.INDEX | BufferUsage.COPY_DST, // | BufferUsage.STATIC,
|
|
45
|
+
shrinkToFit: false,
|
|
46
|
+
});
|
|
47
|
+
const stride = vertexSize * 4;
|
|
48
|
+
super({
|
|
49
|
+
attributes: {
|
|
50
|
+
aPosition: {
|
|
51
|
+
buffer: attributeBuffer,
|
|
52
|
+
format: 'float32x2',
|
|
53
|
+
stride,
|
|
54
|
+
offset: 0,
|
|
55
|
+
},
|
|
56
|
+
aUV: {
|
|
57
|
+
buffer: attributeBuffer,
|
|
58
|
+
format: 'float32x2',
|
|
59
|
+
stride,
|
|
60
|
+
offset: 2 * 4,
|
|
61
|
+
},
|
|
62
|
+
aColor: {
|
|
63
|
+
buffer: attributeBuffer,
|
|
64
|
+
format: 'unorm8x4',
|
|
65
|
+
stride,
|
|
66
|
+
offset: 4 * 4,
|
|
67
|
+
},
|
|
68
|
+
aDarkColor: {
|
|
69
|
+
buffer: attributeBuffer,
|
|
70
|
+
format: 'unorm8x4',
|
|
71
|
+
stride,
|
|
72
|
+
offset: 5 * 4,
|
|
73
|
+
},
|
|
74
|
+
aTextureIdAndRound: {
|
|
75
|
+
buffer: attributeBuffer,
|
|
76
|
+
format: 'uint16x2',
|
|
77
|
+
stride,
|
|
78
|
+
offset: 6 * 4,
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
indexBuffer
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { Batcher, DefaultBatchableMeshElement, DefaultBatchableQuadElement, ExtensionType, Shader } from 'pixi.js';
|
|
30
|
+
import { DarkTintBatchGeometry } from './DarkTintBatchGeometry.js';
|
|
31
|
+
/** The default batcher is used to batch quads and meshes. */
|
|
32
|
+
export declare class DarkTintBatcher extends Batcher {
|
|
33
|
+
/** @ignore */
|
|
34
|
+
static extension: {
|
|
35
|
+
readonly type: readonly [ExtensionType.Batcher];
|
|
36
|
+
readonly name: "darkTint";
|
|
37
|
+
};
|
|
38
|
+
geometry: DarkTintBatchGeometry;
|
|
39
|
+
shader: Shader;
|
|
40
|
+
name: "darkTint";
|
|
41
|
+
/** The size of one attribute. 1 = 32 bit. x, y, u, v, color, darkColor, textureIdAndRound -> total = 7 */
|
|
42
|
+
vertexSize: number;
|
|
43
|
+
packAttributes(element: DefaultBatchableMeshElement & {
|
|
44
|
+
darkColor: number;
|
|
45
|
+
}, float32View: Float32Array, uint32View: Uint32Array, index: number, textureId: number): void;
|
|
46
|
+
packQuadAttributes(element: DefaultBatchableQuadElement & {
|
|
47
|
+
darkColor: number;
|
|
48
|
+
}, float32View: Float32Array, uint32View: Uint32Array, index: number, textureId: number): void;
|
|
49
|
+
}
|
|
50
|
+
//# sourceMappingURL=DarkTintBatcher.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarkTintBatcher.d.ts","sourceRoot":"","sources":["../../../../src/spine/lib/darktint/DarkTintBatcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,EACN,OAAO,EAEP,2BAA2B,EAC3B,2BAA2B,EAE3B,aAAa,EACb,MAAM,EACN,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAKnE,6DAA6D;AAC7D,qBAAa,eAAgB,SAAQ,OAAO;IAC3C,cAAc;IACd,OAAc,SAAS;;;MAKZ;IAEJ,QAAQ,wBAA+B;IACvC,MAAM,SAA2E;IACjF,IAAI,aAAkC;IAE7C,0GAA0G;IACnG,UAAU,SAAK;IAEf,cAAc,CACpB,OAAO,EAAE,2BAA2B,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,EAC5D,WAAW,EAAE,YAAY,EACzB,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM;IAyCX,kBAAkB,CACxB,OAAO,EAAE,2BAA2B,GAAG;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,EAC5D,WAAW,EAAE,YAAY,EACzB,UAAU,EAAE,WAAW,EACvB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM;CAwElB"}
|
|
@@ -0,0 +1,131 @@
|
|
|
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 { Batcher, Color, extensions, ExtensionType } from 'pixi.js';
|
|
30
|
+
import { DarkTintBatchGeometry } from './DarkTintBatchGeometry.js';
|
|
31
|
+
import { DarkTintShader } from './DarkTintShader.js';
|
|
32
|
+
let defaultShader = null;
|
|
33
|
+
/** The default batcher is used to batch quads and meshes. */
|
|
34
|
+
export class DarkTintBatcher extends Batcher {
|
|
35
|
+
constructor() {
|
|
36
|
+
super(...arguments);
|
|
37
|
+
this.geometry = new DarkTintBatchGeometry();
|
|
38
|
+
this.shader = defaultShader || (defaultShader = new DarkTintShader(this.maxTextures));
|
|
39
|
+
this.name = DarkTintBatcher.extension.name;
|
|
40
|
+
/** The size of one attribute. 1 = 32 bit. x, y, u, v, color, darkColor, textureIdAndRound -> total = 7 */
|
|
41
|
+
this.vertexSize = 7;
|
|
42
|
+
}
|
|
43
|
+
packAttributes(element, float32View, uint32View, index, textureId) {
|
|
44
|
+
const textureIdAndRound = (textureId << 16) | (element.roundPixels & 0xFFFF);
|
|
45
|
+
const wt = element.transform;
|
|
46
|
+
const a = wt.a;
|
|
47
|
+
const b = wt.b;
|
|
48
|
+
const c = wt.c;
|
|
49
|
+
const d = wt.d;
|
|
50
|
+
const tx = wt.tx;
|
|
51
|
+
const ty = wt.ty;
|
|
52
|
+
const { positions, uvs } = element;
|
|
53
|
+
const argb = element.color;
|
|
54
|
+
const worldAlpha = ((argb >> 24) & 0xFF) / 255;
|
|
55
|
+
const darkColor = Color.shared.setValue(element.darkColor).premultiply(worldAlpha, true).toPremultiplied(1, false);
|
|
56
|
+
const offset = element.attributeOffset;
|
|
57
|
+
const end = offset + element.attributeSize;
|
|
58
|
+
for (let i = offset; i < end; i++) {
|
|
59
|
+
const i2 = i * 2;
|
|
60
|
+
const x = positions[i2];
|
|
61
|
+
const y = positions[(i2) + 1];
|
|
62
|
+
float32View[index++] = (a * x) + (c * y) + tx;
|
|
63
|
+
float32View[index++] = (d * y) + (b * x) + ty;
|
|
64
|
+
float32View[index++] = uvs[i2];
|
|
65
|
+
float32View[index++] = uvs[(i2) + 1];
|
|
66
|
+
uint32View[index++] = argb;
|
|
67
|
+
uint32View[index++] = darkColor;
|
|
68
|
+
uint32View[index++] = textureIdAndRound;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
packQuadAttributes(element, float32View, uint32View, index, textureId) {
|
|
72
|
+
const texture = element.texture;
|
|
73
|
+
const wt = element.transform;
|
|
74
|
+
const a = wt.a;
|
|
75
|
+
const b = wt.b;
|
|
76
|
+
const c = wt.c;
|
|
77
|
+
const d = wt.d;
|
|
78
|
+
const tx = wt.tx;
|
|
79
|
+
const ty = wt.ty;
|
|
80
|
+
const bounds = element.bounds;
|
|
81
|
+
const w0 = bounds.maxX;
|
|
82
|
+
const w1 = bounds.minX;
|
|
83
|
+
const h0 = bounds.maxY;
|
|
84
|
+
const h1 = bounds.minY;
|
|
85
|
+
const uvs = texture.uvs;
|
|
86
|
+
// _ _ _ _
|
|
87
|
+
// a b g r
|
|
88
|
+
const argb = element.color;
|
|
89
|
+
const darkColor = element.darkColor;
|
|
90
|
+
const textureIdAndRound = (textureId << 16) | (element.roundPixels & 0xFFFF);
|
|
91
|
+
float32View[index + 0] = (a * w1) + (c * h1) + tx;
|
|
92
|
+
float32View[index + 1] = (d * h1) + (b * w1) + ty;
|
|
93
|
+
float32View[index + 2] = uvs.x0;
|
|
94
|
+
float32View[index + 3] = uvs.y0;
|
|
95
|
+
uint32View[index + 4] = argb;
|
|
96
|
+
uint32View[index + 5] = darkColor;
|
|
97
|
+
uint32View[index + 6] = textureIdAndRound;
|
|
98
|
+
// xy
|
|
99
|
+
float32View[index + 7] = (a * w0) + (c * h1) + tx;
|
|
100
|
+
float32View[index + 8] = (d * h1) + (b * w0) + ty;
|
|
101
|
+
float32View[index + 9] = uvs.x1;
|
|
102
|
+
float32View[index + 10] = uvs.y1;
|
|
103
|
+
uint32View[index + 11] = argb;
|
|
104
|
+
uint32View[index + 12] = darkColor;
|
|
105
|
+
uint32View[index + 13] = textureIdAndRound;
|
|
106
|
+
// xy
|
|
107
|
+
float32View[index + 14] = (a * w0) + (c * h0) + tx;
|
|
108
|
+
float32View[index + 15] = (d * h0) + (b * w0) + ty;
|
|
109
|
+
float32View[index + 16] = uvs.x2;
|
|
110
|
+
float32View[index + 17] = uvs.y2;
|
|
111
|
+
uint32View[index + 18] = argb;
|
|
112
|
+
uint32View[index + 19] = darkColor;
|
|
113
|
+
uint32View[index + 20] = textureIdAndRound;
|
|
114
|
+
// xy
|
|
115
|
+
float32View[index + 21] = (a * w1) + (c * h0) + tx;
|
|
116
|
+
float32View[index + 22] = (d * h0) + (b * w1) + ty;
|
|
117
|
+
float32View[index + 23] = uvs.x3;
|
|
118
|
+
float32View[index + 24] = uvs.y3;
|
|
119
|
+
uint32View[index + 25] = argb;
|
|
120
|
+
uint32View[index + 26] = darkColor;
|
|
121
|
+
uint32View[index + 27] = textureIdAndRound;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
/** @ignore */
|
|
125
|
+
DarkTintBatcher.extension = {
|
|
126
|
+
type: [
|
|
127
|
+
ExtensionType.Batcher,
|
|
128
|
+
],
|
|
129
|
+
name: 'darkTint',
|
|
130
|
+
};
|
|
131
|
+
extensions.add(DarkTintBatcher);
|
|
@@ -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 { Shader } from 'pixi.js';
|
|
30
|
+
export declare class DarkTintShader extends Shader {
|
|
31
|
+
constructor(maxTextures: number);
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=DarkTintShader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DarkTintShader.d.ts","sourceRoot":"","sources":["../../../../src/spine/lib/darktint/DarkTintShader.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,EAUN,MAAM,EACN,MAAM,SAAS,CAAC;AAGjB,qBAAa,cAAe,SAAQ,MAAM;gBAC5B,WAAW,EAAE,MAAM;CA6BhC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { colorBit, colorBitGl, compileHighShaderGlProgram, compileHighShaderGpuProgram, generateTextureBatchBit, generateTextureBatchBitGl, getBatchSamplersUniformGroup, roundPixelsBit, roundPixelsBitGl, Shader } from 'pixi.js';
|
|
30
|
+
import { darkTintBit, darkTintBitGl } from './darkTintBit.js';
|
|
31
|
+
export class DarkTintShader extends Shader {
|
|
32
|
+
constructor(maxTextures) {
|
|
33
|
+
const glProgram = compileHighShaderGlProgram({
|
|
34
|
+
name: 'dark-tint-batch',
|
|
35
|
+
bits: [
|
|
36
|
+
colorBitGl,
|
|
37
|
+
darkTintBitGl,
|
|
38
|
+
generateTextureBatchBitGl(maxTextures),
|
|
39
|
+
roundPixelsBitGl,
|
|
40
|
+
]
|
|
41
|
+
});
|
|
42
|
+
const gpuProgram = compileHighShaderGpuProgram({
|
|
43
|
+
name: 'dark-tint-batch',
|
|
44
|
+
bits: [
|
|
45
|
+
colorBit,
|
|
46
|
+
darkTintBit,
|
|
47
|
+
generateTextureBatchBit(maxTextures),
|
|
48
|
+
roundPixelsBit,
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
super({
|
|
52
|
+
glProgram,
|
|
53
|
+
gpuProgram,
|
|
54
|
+
resources: {
|
|
55
|
+
batchSamplers: getBatchSamplersUniformGroup(maxTextures),
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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 declare const darkTintBit: {
|
|
30
|
+
name: string;
|
|
31
|
+
vertex: {
|
|
32
|
+
header: string;
|
|
33
|
+
main: string;
|
|
34
|
+
};
|
|
35
|
+
fragment: {
|
|
36
|
+
header: string;
|
|
37
|
+
end: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export declare const darkTintBitGl: {
|
|
41
|
+
name: string;
|
|
42
|
+
vertex: {
|
|
43
|
+
header: string;
|
|
44
|
+
main: string;
|
|
45
|
+
};
|
|
46
|
+
fragment: {
|
|
47
|
+
header: string;
|
|
48
|
+
end: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=darkTintBit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"darkTintBit.d.ts","sourceRoot":"","sources":["../../../../src/spine/lib/darktint/darkTintBit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,eAAO,MAAM,WAAW;;;;;;;;;;CAwBvB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;CAqBzB,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 const darkTintBit = {
|
|
30
|
+
name: 'color-bit',
|
|
31
|
+
vertex: {
|
|
32
|
+
header: /* wgsl */ `
|
|
33
|
+
@in aDarkColor: vec4<f32>;
|
|
34
|
+
@out vDarkColor: vec4<f32>;
|
|
35
|
+
`,
|
|
36
|
+
main: /* wgsl */ `
|
|
37
|
+
vDarkColor = aDarkColor;
|
|
38
|
+
`
|
|
39
|
+
},
|
|
40
|
+
fragment: {
|
|
41
|
+
header: /* wgsl */ `
|
|
42
|
+
@in vDarkColor: vec4<f32>;
|
|
43
|
+
`,
|
|
44
|
+
end: /* wgsl */ `
|
|
45
|
+
|
|
46
|
+
let alpha = outColor.a * vColor.a;
|
|
47
|
+
let rgb = ((outColor.a - 1.0) * vDarkColor.a + 1.0 - outColor.rgb) * vDarkColor.rgb + outColor.rgb * vColor.rgb;
|
|
48
|
+
|
|
49
|
+
finalColor = vec4<f32>(rgb, alpha);
|
|
50
|
+
|
|
51
|
+
`
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
export const darkTintBitGl = {
|
|
55
|
+
name: 'color-bit',
|
|
56
|
+
vertex: {
|
|
57
|
+
header: /* glsl */ `
|
|
58
|
+
in vec4 aDarkColor;
|
|
59
|
+
out vec4 vDarkColor;
|
|
60
|
+
`,
|
|
61
|
+
main: /* glsl */ `
|
|
62
|
+
vDarkColor = aDarkColor;
|
|
63
|
+
`
|
|
64
|
+
},
|
|
65
|
+
fragment: {
|
|
66
|
+
header: /* glsl */ `
|
|
67
|
+
in vec4 vDarkColor;
|
|
68
|
+
`,
|
|
69
|
+
end: /* glsl */ `
|
|
70
|
+
|
|
71
|
+
finalColor.a = outColor.a * vColor.a;
|
|
72
|
+
finalColor.rgb = ((outColor.a - 1.0) * vDarkColor.a + 1.0 - outColor.rgb) * vDarkColor.rgb + outColor.rgb * vColor.rgb;
|
|
73
|
+
`
|
|
74
|
+
}
|
|
75
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/** ****************************************************************************
|
|
2
|
+
* Spine Runtimes License Agreement
|
|
3
|
+
* Last updated September 24, 2021. Replaces all prior versions.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2013-2021, 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
|
|
13
|
+
* or 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
|
|
27
|
+
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*****************************************************************************/
|
|
29
|
+
import './require-shim.js';
|
|
30
|
+
import './assets/atlasLoader.js';
|
|
31
|
+
import './assets/skeletonLoader.js';
|
|
32
|
+
import './darktint/DarkTintBatcher.js';
|
|
33
|
+
import './SpinePipe.js';
|
|
34
|
+
export * from './assets/atlasLoader.js';
|
|
35
|
+
export * from './assets/skeletonLoader.js';
|
|
36
|
+
export * from './require-shim.js';
|
|
37
|
+
export * from './Spine.js';
|
|
38
|
+
export * from './SpineDebugRenderer.js';
|
|
39
|
+
export * from './SpinePipe.js';
|
|
40
|
+
export * from './SpineTexture.js';
|
|
41
|
+
export * from '@esotericsoftware/spine-core';
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/spine/lib/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,mBAAmB,CAAC;AAC3B,OAAO,yBAAyB,CAAC;AACjC,OAAO,4BAA4B,CAAC;AACpC,OAAO,+BAA+B,CAAC;AACvC,OAAO,gBAAgB,CAAC;AAExB,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/** ****************************************************************************
|
|
2
|
+
* Spine Runtimes License Agreement
|
|
3
|
+
* Last updated September 24, 2021. Replaces all prior versions.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2013-2021, 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
|
|
13
|
+
* or 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
|
|
27
|
+
* THE SPINE RUNTIMES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
28
|
+
*****************************************************************************/
|
|
29
|
+
import './require-shim.js'; // Side effects add require pixi.js to global scope
|
|
30
|
+
import './assets/atlasLoader.js'; // Side effects install the loaders into pixi
|
|
31
|
+
import './assets/skeletonLoader.js'; // Side effects install the loaders into pixi
|
|
32
|
+
import './darktint/DarkTintBatcher.js'; // Side effects install the batcher into pixi
|
|
33
|
+
import './SpinePipe.js';
|
|
34
|
+
export * from './assets/atlasLoader.js';
|
|
35
|
+
export * from './assets/skeletonLoader.js';
|
|
36
|
+
export * from './require-shim.js';
|
|
37
|
+
export * from './Spine.js';
|
|
38
|
+
export * from './SpineDebugRenderer.js';
|
|
39
|
+
export * from './SpinePipe.js';
|
|
40
|
+
export * from './SpineTexture.js';
|
|
41
|
+
export * from '@esotericsoftware/spine-core';
|
|
@@ -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
|
+
declare global {
|
|
30
|
+
var PIXI: any;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=require-shim.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-shim.d.ts","sourceRoot":"","sources":["../../../src/spine/lib/require-shim.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;+EA2B+E;AAE/E,OAAO,CAAC,MAAM,CAAC;IAEb,IAAI,IAAI,EAAE,GAAG,CAAC;CACf;AAUD,OAAO,EAAG,CAAC"}
|