@esotericsoftware/spine-core 4.0.15 → 4.0.19
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/dist/Animation.d.ts +363 -363
- package/dist/Animation.js +1969 -1950
- package/dist/AnimationState.d.ts +396 -396
- package/dist/AnimationState.js +1083 -959
- package/dist/AnimationStateData.d.ts +51 -51
- package/dist/AnimationStateData.js +72 -70
- package/dist/AssetManagerBase.d.ts +74 -72
- package/dist/AssetManagerBase.js +304 -303
- package/dist/AtlasAttachmentLoader.d.ts +51 -51
- package/dist/AtlasAttachmentLoader.js +75 -74
- package/dist/Bone.d.ts +138 -138
- package/dist/Bone.js +340 -334
- package/dist/BoneData.d.ts +72 -72
- package/dist/BoneData.js +82 -74
- package/dist/ConstraintData.d.ts +35 -35
- package/dist/ConstraintData.js +36 -36
- package/dist/Event.d.ts +44 -44
- package/dist/Event.js +49 -42
- package/dist/EventData.d.ts +41 -41
- package/dist/EventData.js +44 -37
- package/dist/IkConstraint.d.ts +64 -64
- package/dist/IkConstraint.js +291 -285
- package/dist/IkConstraintData.d.ts +54 -54
- package/dist/IkConstraintData.js +56 -54
- package/dist/PathConstraint.d.ts +71 -71
- package/dist/PathConstraint.js +475 -469
- package/dist/PathConstraintData.d.ts +80 -80
- package/dist/PathConstraintData.js +84 -70
- package/dist/Skeleton.d.ts +158 -158
- package/dist/Skeleton.js +589 -571
- package/dist/SkeletonBinary.d.ts +67 -67
- package/dist/SkeletonBinary.js +1095 -1094
- package/dist/SkeletonBounds.d.ts +77 -77
- package/dist/SkeletonBounds.js +218 -218
- package/dist/SkeletonClipping.d.ts +50 -50
- package/dist/SkeletonClipping.js +323 -323
- package/dist/SkeletonData.d.ts +114 -114
- package/dist/SkeletonData.js +190 -167
- package/dist/SkeletonJson.d.ts +51 -51
- package/dist/SkeletonJson.js +917 -916
- package/dist/Skin.d.ts +71 -71
- package/dist/Skin.js +203 -201
- package/dist/Slot.d.ts +72 -72
- package/dist/Slot.js +107 -94
- package/dist/SlotData.d.ts +57 -57
- package/dist/SlotData.js +68 -55
- package/dist/Texture.d.ts +69 -69
- package/dist/Texture.js +72 -72
- package/dist/TextureAtlas.d.ts +65 -65
- package/dist/TextureAtlas.js +267 -246
- package/dist/TransformConstraint.d.ts +60 -60
- package/dist/TransformConstraint.js +246 -240
- package/dist/TransformConstraintData.d.ts +60 -60
- package/dist/TransformConstraintData.js +62 -60
- package/dist/Triangulator.d.ts +43 -43
- package/dist/Triangulator.js +243 -243
- package/dist/Updatable.d.ts +37 -37
- package/dist/Updatable.js +29 -29
- package/dist/Utils.d.ts +168 -168
- package/dist/Utils.js +403 -403
- package/dist/VertexEffect.d.ts +35 -35
- package/dist/VertexEffect.js +29 -29
- package/dist/attachments/Attachment.d.ts +71 -71
- package/dist/attachments/Attachment.js +148 -140
- package/dist/attachments/AttachmentLoader.d.ts +53 -53
- package/dist/attachments/AttachmentLoader.js +29 -29
- package/dist/attachments/BoundingBoxAttachment.d.ts +40 -40
- package/dist/attachments/BoundingBoxAttachment.js +47 -47
- package/dist/attachments/ClippingAttachment.d.ts +42 -42
- package/dist/attachments/ClippingAttachment.js +51 -48
- package/dist/attachments/MeshAttachment.d.ts +74 -74
- package/dist/attachments/MeshAttachment.js +181 -160
- package/dist/attachments/PathAttachment.d.ts +47 -47
- package/dist/attachments/PathAttachment.js +59 -57
- package/dist/attachments/PointAttachment.d.ts +48 -48
- package/dist/attachments/PointAttachment.js +66 -63
- package/dist/attachments/RegionAttachment.d.ts +108 -108
- package/dist/attachments/RegionAttachment.js +201 -197
- package/dist/attachments/index.d.ts +8 -8
- package/dist/attachments/index.js +8 -8
- package/dist/iife/spine-core.js +170 -9
- package/dist/iife/spine-core.js.map +2 -2
- package/dist/iife/spine-core.min.js +2 -2
- package/dist/index.d.ts +42 -42
- package/dist/index.js +42 -42
- package/dist/polyfills.d.ts +29 -29
- package/dist/polyfills.js +38 -38
- package/dist/vertexeffects/JitterEffect.d.ts +39 -39
- package/dist/vertexeffects/JitterEffect.js +45 -45
- package/dist/vertexeffects/SwirlEffect.d.ts +44 -44
- package/dist/vertexeffects/SwirlEffect.js +60 -60
- package/package.json +32 -32
|
@@ -1,80 +1,80 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
* Spine Runtimes License Agreement
|
|
3
|
-
* Last updated January 1, 2020. Replaces all prior versions.
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2013-2020, 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 { BoneData } from "./BoneData";
|
|
30
|
-
import { ConstraintData } from "./ConstraintData";
|
|
31
|
-
import { SlotData } from "./SlotData";
|
|
32
|
-
/** Stores the setup pose for a {@link PathConstraint}.
|
|
33
|
-
*
|
|
34
|
-
* See [path constraints](http://esotericsoftware.com/spine-path-constraints) in the Spine User Guide. */
|
|
35
|
-
export declare class PathConstraintData extends ConstraintData {
|
|
36
|
-
/** The bones that will be modified by this path constraint. */
|
|
37
|
-
bones: BoneData[];
|
|
38
|
-
/** The slot whose path attachment will be used to constrained the bones. */
|
|
39
|
-
target: SlotData;
|
|
40
|
-
/** The mode for positioning the first bone on the path. */
|
|
41
|
-
positionMode: PositionMode;
|
|
42
|
-
/** The mode for positioning the bones after the first bone on the path. */
|
|
43
|
-
spacingMode: SpacingMode;
|
|
44
|
-
/** The mode for adjusting the rotation of the bones. */
|
|
45
|
-
rotateMode: RotateMode;
|
|
46
|
-
/** An offset added to the constrained bone rotation. */
|
|
47
|
-
offsetRotation: number;
|
|
48
|
-
/** The position along the path. */
|
|
49
|
-
position: number;
|
|
50
|
-
/** The spacing between bones. */
|
|
51
|
-
spacing: number;
|
|
52
|
-
mixRotate: number;
|
|
53
|
-
mixX: number;
|
|
54
|
-
mixY: number;
|
|
55
|
-
constructor(name: string);
|
|
56
|
-
}
|
|
57
|
-
/** Controls how the first bone is positioned along the path.
|
|
58
|
-
*
|
|
59
|
-
* See [position](http://esotericsoftware.com/spine-path-constraints#Position) in the Spine User Guide. */
|
|
60
|
-
export declare enum PositionMode {
|
|
61
|
-
Fixed = 0,
|
|
62
|
-
Percent = 1
|
|
63
|
-
}
|
|
64
|
-
/** Controls how bones after the first bone are positioned along the path.
|
|
65
|
-
*
|
|
66
|
-
* See [spacing](http://esotericsoftware.com/spine-path-constraints#Spacing) in the Spine User Guide. */
|
|
67
|
-
export declare enum SpacingMode {
|
|
68
|
-
Length = 0,
|
|
69
|
-
Fixed = 1,
|
|
70
|
-
Percent = 2,
|
|
71
|
-
Proportional = 3
|
|
72
|
-
}
|
|
73
|
-
/** Controls how bones are rotated, translated, and scaled to match the path.
|
|
74
|
-
*
|
|
75
|
-
* See [rotate mix](http://esotericsoftware.com/spine-path-constraints#Rotate-mix) in the Spine User Guide. */
|
|
76
|
-
export declare enum RotateMode {
|
|
77
|
-
Tangent = 0,
|
|
78
|
-
Chain = 1,
|
|
79
|
-
ChainScale = 2
|
|
80
|
-
}
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* Spine Runtimes License Agreement
|
|
3
|
+
* Last updated January 1, 2020. Replaces all prior versions.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2013-2020, 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 { BoneData } from "./BoneData";
|
|
30
|
+
import { ConstraintData } from "./ConstraintData";
|
|
31
|
+
import { SlotData } from "./SlotData";
|
|
32
|
+
/** Stores the setup pose for a {@link PathConstraint}.
|
|
33
|
+
*
|
|
34
|
+
* See [path constraints](http://esotericsoftware.com/spine-path-constraints) in the Spine User Guide. */
|
|
35
|
+
export declare class PathConstraintData extends ConstraintData {
|
|
36
|
+
/** The bones that will be modified by this path constraint. */
|
|
37
|
+
bones: BoneData[];
|
|
38
|
+
/** The slot whose path attachment will be used to constrained the bones. */
|
|
39
|
+
target: SlotData;
|
|
40
|
+
/** The mode for positioning the first bone on the path. */
|
|
41
|
+
positionMode: PositionMode;
|
|
42
|
+
/** The mode for positioning the bones after the first bone on the path. */
|
|
43
|
+
spacingMode: SpacingMode;
|
|
44
|
+
/** The mode for adjusting the rotation of the bones. */
|
|
45
|
+
rotateMode: RotateMode;
|
|
46
|
+
/** An offset added to the constrained bone rotation. */
|
|
47
|
+
offsetRotation: number;
|
|
48
|
+
/** The position along the path. */
|
|
49
|
+
position: number;
|
|
50
|
+
/** The spacing between bones. */
|
|
51
|
+
spacing: number;
|
|
52
|
+
mixRotate: number;
|
|
53
|
+
mixX: number;
|
|
54
|
+
mixY: number;
|
|
55
|
+
constructor(name: string);
|
|
56
|
+
}
|
|
57
|
+
/** Controls how the first bone is positioned along the path.
|
|
58
|
+
*
|
|
59
|
+
* See [position](http://esotericsoftware.com/spine-path-constraints#Position) in the Spine User Guide. */
|
|
60
|
+
export declare enum PositionMode {
|
|
61
|
+
Fixed = 0,
|
|
62
|
+
Percent = 1
|
|
63
|
+
}
|
|
64
|
+
/** Controls how bones after the first bone are positioned along the path.
|
|
65
|
+
*
|
|
66
|
+
* See [spacing](http://esotericsoftware.com/spine-path-constraints#Spacing) in the Spine User Guide. */
|
|
67
|
+
export declare enum SpacingMode {
|
|
68
|
+
Length = 0,
|
|
69
|
+
Fixed = 1,
|
|
70
|
+
Percent = 2,
|
|
71
|
+
Proportional = 3
|
|
72
|
+
}
|
|
73
|
+
/** Controls how bones are rotated, translated, and scaled to match the path.
|
|
74
|
+
*
|
|
75
|
+
* See [rotate mix](http://esotericsoftware.com/spine-path-constraints#Rotate-mix) in the Spine User Guide. */
|
|
76
|
+
export declare enum RotateMode {
|
|
77
|
+
Tangent = 0,
|
|
78
|
+
Chain = 1,
|
|
79
|
+
ChainScale = 2
|
|
80
|
+
}
|
|
@@ -1,70 +1,84 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
* Spine Runtimes License Agreement
|
|
3
|
-
* Last updated January 1, 2020. Replaces all prior versions.
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) 2013-2020, 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 { ConstraintData } from "./ConstraintData";
|
|
30
|
-
/** Stores the setup pose for a {@link PathConstraint}.
|
|
31
|
-
*
|
|
32
|
-
* See [path constraints](http://esotericsoftware.com/spine-path-constraints) in the Spine User Guide. */
|
|
33
|
-
export class PathConstraintData extends ConstraintData {
|
|
34
|
-
constructor(name) {
|
|
35
|
-
super(name, 0, false);
|
|
36
|
-
/** The bones that will be modified by this path constraint. */
|
|
37
|
-
this.bones = new Array();
|
|
38
|
-
|
|
39
|
-
this.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
/******************************************************************************
|
|
2
|
+
* Spine Runtimes License Agreement
|
|
3
|
+
* Last updated January 1, 2020. Replaces all prior versions.
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) 2013-2020, 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 { ConstraintData } from "./ConstraintData";
|
|
30
|
+
/** Stores the setup pose for a {@link PathConstraint}.
|
|
31
|
+
*
|
|
32
|
+
* See [path constraints](http://esotericsoftware.com/spine-path-constraints) in the Spine User Guide. */
|
|
33
|
+
export class PathConstraintData extends ConstraintData {
|
|
34
|
+
constructor(name) {
|
|
35
|
+
super(name, 0, false);
|
|
36
|
+
/** The bones that will be modified by this path constraint. */
|
|
37
|
+
this.bones = new Array();
|
|
38
|
+
/** The slot whose path attachment will be used to constrained the bones. */
|
|
39
|
+
this.target = null;
|
|
40
|
+
/** The mode for positioning the first bone on the path. */
|
|
41
|
+
this.positionMode = null;
|
|
42
|
+
/** The mode for positioning the bones after the first bone on the path. */
|
|
43
|
+
this.spacingMode = null;
|
|
44
|
+
/** The mode for adjusting the rotation of the bones. */
|
|
45
|
+
this.rotateMode = null;
|
|
46
|
+
/** An offset added to the constrained bone rotation. */
|
|
47
|
+
this.offsetRotation = 0;
|
|
48
|
+
/** The position along the path. */
|
|
49
|
+
this.position = 0;
|
|
50
|
+
/** The spacing between bones. */
|
|
51
|
+
this.spacing = 0;
|
|
52
|
+
this.mixRotate = 0;
|
|
53
|
+
this.mixX = 0;
|
|
54
|
+
this.mixY = 0;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
/** Controls how the first bone is positioned along the path.
|
|
58
|
+
*
|
|
59
|
+
* See [position](http://esotericsoftware.com/spine-path-constraints#Position) in the Spine User Guide. */
|
|
60
|
+
export var PositionMode;
|
|
61
|
+
(function (PositionMode) {
|
|
62
|
+
PositionMode[PositionMode["Fixed"] = 0] = "Fixed";
|
|
63
|
+
PositionMode[PositionMode["Percent"] = 1] = "Percent";
|
|
64
|
+
})(PositionMode || (PositionMode = {}));
|
|
65
|
+
/** Controls how bones after the first bone are positioned along the path.
|
|
66
|
+
*
|
|
67
|
+
* See [spacing](http://esotericsoftware.com/spine-path-constraints#Spacing) in the Spine User Guide. */
|
|
68
|
+
export var SpacingMode;
|
|
69
|
+
(function (SpacingMode) {
|
|
70
|
+
SpacingMode[SpacingMode["Length"] = 0] = "Length";
|
|
71
|
+
SpacingMode[SpacingMode["Fixed"] = 1] = "Fixed";
|
|
72
|
+
SpacingMode[SpacingMode["Percent"] = 2] = "Percent";
|
|
73
|
+
SpacingMode[SpacingMode["Proportional"] = 3] = "Proportional";
|
|
74
|
+
})(SpacingMode || (SpacingMode = {}));
|
|
75
|
+
/** Controls how bones are rotated, translated, and scaled to match the path.
|
|
76
|
+
*
|
|
77
|
+
* See [rotate mix](http://esotericsoftware.com/spine-path-constraints#Rotate-mix) in the Spine User Guide. */
|
|
78
|
+
export var RotateMode;
|
|
79
|
+
(function (RotateMode) {
|
|
80
|
+
RotateMode[RotateMode["Tangent"] = 0] = "Tangent";
|
|
81
|
+
RotateMode[RotateMode["Chain"] = 1] = "Chain";
|
|
82
|
+
RotateMode[RotateMode["ChainScale"] = 2] = "ChainScale";
|
|
83
|
+
})(RotateMode || (RotateMode = {}));
|
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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