@safe-engine/pixi 8.8.1 → 8.8.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/dist/app.d.ts +1 -0
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +20 -1
- package/dist/core/NodePool.d.ts +1 -1
- package/dist/core/Size.d.ts +0 -1
- package/dist/core/Size.d.ts.map +1 -1
- package/dist/dragonbones/DragonBonesComponent.d.ts +1 -1
- package/dist/dragonbones/DragonBonesComponent.d.ts.map +1 -1
- package/dist/dragonbones/DragonBonesComponent.js +1 -1
- package/dist/dragonbones/DragonBonesSystem.d.ts.map +1 -1
- package/dist/dragonbones/DragonBonesSystem.js +1 -1
- package/dist/dragonbones/db-pixi/PixiArmatureDisplay.d.ts +59 -0
- package/dist/dragonbones/db-pixi/PixiArmatureDisplay.d.ts.map +1 -0
- package/dist/dragonbones/db-pixi/PixiArmatureDisplay.js +180 -0
- package/dist/dragonbones/db-pixi/PixiFactory.d.ts +87 -0
- package/dist/dragonbones/db-pixi/PixiFactory.d.ts.map +1 -0
- package/dist/dragonbones/db-pixi/PixiFactory.js +159 -0
- package/dist/dragonbones/db-pixi/PixiSlot.d.ts +31 -0
- package/dist/dragonbones/db-pixi/PixiSlot.d.ts.map +1 -0
- package/dist/dragonbones/db-pixi/PixiSlot.js +332 -0
- package/dist/dragonbones/db-pixi/PixiTextureAtlasData.d.ts +38 -0
- package/dist/dragonbones/db-pixi/PixiTextureAtlasData.d.ts.map +1 -0
- package/dist/dragonbones/db-pixi/PixiTextureAtlasData.js +85 -0
- package/dist/dragonbones/db-pixi/index.d.ts +5 -0
- package/dist/dragonbones/db-pixi/index.d.ts.map +1 -0
- package/dist/dragonbones/db-pixi/index.js +4 -0
- package/dist/dragonbones/dragonBones/animation/Animation.d.ts +241 -0
- package/dist/dragonbones/dragonBones/animation/Animation.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/animation/Animation.js +692 -0
- package/dist/dragonbones/dragonBones/animation/AnimationState.d.ts +323 -0
- package/dist/dragonbones/dragonBones/animation/AnimationState.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/animation/AnimationState.js +1161 -0
- package/dist/dragonbones/dragonBones/animation/BaseTimelineState.d.ts +100 -0
- package/dist/dragonbones/dragonBones/animation/BaseTimelineState.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/animation/BaseTimelineState.js +479 -0
- package/dist/dragonbones/dragonBones/animation/IAnimatable.d.ts +38 -0
- package/dist/dragonbones/dragonBones/animation/IAnimatable.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/animation/IAnimatable.js +9 -0
- package/dist/dragonbones/dragonBones/animation/TimelineState.d.ts +159 -0
- package/dist/dragonbones/dragonBones/animation/TimelineState.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/animation/TimelineState.js +998 -0
- package/dist/dragonbones/dragonBones/animation/WorldClock.d.ts +74 -0
- package/dist/dragonbones/dragonBones/animation/WorldClock.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/animation/WorldClock.js +162 -0
- package/dist/dragonbones/dragonBones/armature/Armature.d.ts +314 -0
- package/dist/dragonbones/dragonBones/armature/Armature.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/Armature.js +650 -0
- package/dist/dragonbones/dragonBones/armature/Bone.d.ts +123 -0
- package/dist/dragonbones/dragonBones/armature/Bone.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/Bone.js +438 -0
- package/dist/dragonbones/dragonBones/armature/Constraint.d.ts +99 -0
- package/dist/dragonbones/dragonBones/armature/Constraint.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/Constraint.js +672 -0
- package/dist/dragonbones/dragonBones/armature/IArmatureProxy.d.ts +47 -0
- package/dist/dragonbones/dragonBones/armature/IArmatureProxy.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/IArmatureProxy.js +1 -0
- package/dist/dragonbones/dragonBones/armature/Slot.d.ts +357 -0
- package/dist/dragonbones/dragonBones/armature/Slot.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/Slot.js +1009 -0
- package/dist/dragonbones/dragonBones/armature/Surface.d.ts +41 -0
- package/dist/dragonbones/dragonBones/armature/Surface.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/Surface.js +463 -0
- package/dist/dragonbones/dragonBones/armature/TransformObject.d.ts +80 -0
- package/dist/dragonbones/dragonBones/armature/TransformObject.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/armature/TransformObject.js +77 -0
- package/dist/dragonbones/dragonBones/core/BaseObject.d.ts +53 -0
- package/dist/dragonbones/dragonBones/core/BaseObject.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/core/BaseObject.js +130 -0
- package/dist/dragonbones/dragonBones/core/DragonBones.d.ts +236 -0
- package/dist/dragonbones/dragonBones/core/DragonBones.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/core/DragonBones.js +61 -0
- package/dist/dragonbones/dragonBones/event/EventObject.d.ts +143 -0
- package/dist/dragonbones/dragonBones/event/EventObject.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/event/EventObject.js +99 -0
- package/dist/dragonbones/dragonBones/event/IEventDispatcher.d.ts +48 -0
- package/dist/dragonbones/dragonBones/event/IEventDispatcher.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/event/IEventDispatcher.js +1 -0
- package/dist/dragonbones/dragonBones/factory/BaseFactory.d.ts +292 -0
- package/dist/dragonbones/dragonBones/factory/BaseFactory.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/factory/BaseFactory.js +735 -0
- package/dist/dragonbones/dragonBones/geom/ColorTransform.d.ts +17 -0
- package/dist/dragonbones/dragonBones/geom/ColorTransform.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/geom/ColorTransform.js +33 -0
- package/dist/dragonbones/dragonBones/geom/Curve.d.ts +10 -0
- package/dist/dragonbones/dragonBones/geom/Curve.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/geom/Curve.js +26 -0
- package/dist/dragonbones/dragonBones/geom/Matrix.d.ts +105 -0
- package/dist/dragonbones/dragonBones/geom/Matrix.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/geom/Matrix.js +207 -0
- package/dist/dragonbones/dragonBones/geom/Point.d.ts +38 -0
- package/dist/dragonbones/dragonBones/geom/Point.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/geom/Point.js +31 -0
- package/dist/dragonbones/dragonBones/geom/Rectangle.d.ts +53 -0
- package/dist/dragonbones/dragonBones/geom/Rectangle.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/geom/Rectangle.js +37 -0
- package/dist/dragonbones/dragonBones/geom/Transform.d.ts +102 -0
- package/dist/dragonbones/dragonBones/geom/Transform.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/geom/Transform.js +170 -0
- package/dist/dragonbones/dragonBones/index.d.ts +37 -0
- package/dist/dragonbones/dragonBones/index.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/index.js +36 -0
- package/dist/dragonbones/dragonBones/model/AnimationConfig.d.ts +162 -0
- package/dist/dragonbones/dragonBones/model/AnimationConfig.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/AnimationConfig.js +81 -0
- package/dist/dragonbones/dragonBones/model/AnimationData.d.ts +174 -0
- package/dist/dragonbones/dragonBones/model/AnimationData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/AnimationData.js +256 -0
- package/dist/dragonbones/dragonBones/model/ArmatureData.d.ts +319 -0
- package/dist/dragonbones/dragonBones/model/ArmatureData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/ArmatureData.js +450 -0
- package/dist/dragonbones/dragonBones/model/BoundingBoxData.d.ts +188 -0
- package/dist/dragonbones/dragonBones/model/BoundingBoxData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/BoundingBoxData.js +500 -0
- package/dist/dragonbones/dragonBones/model/CanvasData.d.ts +15 -0
- package/dist/dragonbones/dragonBones/model/CanvasData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/CanvasData.js +17 -0
- package/dist/dragonbones/dragonBones/model/ConstraintData.d.ts +46 -0
- package/dist/dragonbones/dragonBones/model/ConstraintData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/ConstraintData.js +57 -0
- package/dist/dragonbones/dragonBones/model/DisplayData.d.ts +98 -0
- package/dist/dragonbones/dragonBones/model/DisplayData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/DisplayData.js +174 -0
- package/dist/dragonbones/dragonBones/model/DragonBonesData.d.ts +108 -0
- package/dist/dragonbones/dragonBones/model/DragonBonesData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/DragonBonesData.js +86 -0
- package/dist/dragonbones/dragonBones/model/SkinData.d.ts +40 -0
- package/dist/dragonbones/dragonBones/model/SkinData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/SkinData.js +68 -0
- package/dist/dragonbones/dragonBones/model/TextureAtlasData.d.ts +73 -0
- package/dist/dragonbones/dragonBones/model/TextureAtlasData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/TextureAtlasData.js +102 -0
- package/dist/dragonbones/dragonBones/model/UserData.d.ts +73 -0
- package/dist/dragonbones/dragonBones/model/UserData.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/model/UserData.js +101 -0
- package/dist/dragonbones/dragonBones/parser/BinaryDataParser.d.ts +29 -0
- package/dist/dragonbones/dragonBones/parser/BinaryDataParser.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/parser/BinaryDataParser.js +356 -0
- package/dist/dragonbones/dragonBones/parser/DataParser.d.ts +153 -0
- package/dist/dragonbones/dragonBones/parser/DataParser.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/parser/DataParser.js +283 -0
- package/dist/dragonbones/dragonBones/parser/ObjectDataParser.d.ts +130 -0
- package/dist/dragonbones/dragonBones/parser/ObjectDataParser.d.ts.map +1 -0
- package/dist/dragonbones/dragonBones/parser/ObjectDataParser.js +2098 -0
- package/dist/dragonbones/index.js +1 -1
- package/dist/helper/utils.js +1 -1
- package/package.json +3 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export declare class ColorTransform {
|
|
5
|
+
alphaMultiplier: number;
|
|
6
|
+
redMultiplier: number;
|
|
7
|
+
greenMultiplier: number;
|
|
8
|
+
blueMultiplier: number;
|
|
9
|
+
alphaOffset: number;
|
|
10
|
+
redOffset: number;
|
|
11
|
+
greenOffset: number;
|
|
12
|
+
blueOffset: number;
|
|
13
|
+
constructor(alphaMultiplier?: number, redMultiplier?: number, greenMultiplier?: number, blueMultiplier?: number, alphaOffset?: number, redOffset?: number, greenOffset?: number, blueOffset?: number);
|
|
14
|
+
copyFrom(value: ColorTransform): void;
|
|
15
|
+
identity(): void;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ColorTransform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorTransform.d.ts","sourceRoot":"","sources":["../../../../src/dragonbones/dragonBones/geom/ColorTransform.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,cAAc;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;gBAGxB,eAAe,GAAE,MAAY,EAC7B,aAAa,GAAE,MAAY,EAC3B,eAAe,GAAE,MAAY,EAC7B,cAAc,GAAE,MAAY,EAC5B,WAAW,GAAE,MAAU,EACvB,SAAS,GAAE,MAAU,EACrB,WAAW,GAAE,MAAU,EACvB,UAAU,GAAE,MAAU;IAYjB,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI;IAWrC,QAAQ,IAAI,IAAI;CAQxB"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
*/
|
|
4
|
+
export class ColorTransform {
|
|
5
|
+
constructor(alphaMultiplier = 1.0, redMultiplier = 1.0, greenMultiplier = 1.0, blueMultiplier = 1.0, alphaOffset = 0, redOffset = 0, greenOffset = 0, blueOffset = 0) {
|
|
6
|
+
this.alphaMultiplier = alphaMultiplier;
|
|
7
|
+
this.redMultiplier = redMultiplier;
|
|
8
|
+
this.greenMultiplier = greenMultiplier;
|
|
9
|
+
this.blueMultiplier = blueMultiplier;
|
|
10
|
+
this.alphaOffset = alphaOffset;
|
|
11
|
+
this.redOffset = redOffset;
|
|
12
|
+
this.greenOffset = greenOffset;
|
|
13
|
+
this.blueOffset = blueOffset;
|
|
14
|
+
}
|
|
15
|
+
copyFrom(value) {
|
|
16
|
+
this.alphaMultiplier = value.alphaMultiplier;
|
|
17
|
+
this.redMultiplier = value.redMultiplier;
|
|
18
|
+
this.greenMultiplier = value.greenMultiplier;
|
|
19
|
+
this.blueMultiplier = value.blueMultiplier;
|
|
20
|
+
this.alphaOffset = value.alphaOffset;
|
|
21
|
+
this.redOffset = value.redOffset;
|
|
22
|
+
this.greenOffset = value.greenOffset;
|
|
23
|
+
this.blueOffset = value.blueOffset;
|
|
24
|
+
}
|
|
25
|
+
identity() {
|
|
26
|
+
this.alphaMultiplier =
|
|
27
|
+
this.redMultiplier =
|
|
28
|
+
this.greenMultiplier =
|
|
29
|
+
this.blueMultiplier =
|
|
30
|
+
1.0;
|
|
31
|
+
this.alphaOffset = this.redOffset = this.greenOffset = this.blueOffset = 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare function cubicBezierPosition(x1: number, y1: number, cx1: number, cy1: number, cx2: number, cy2: number, x2: number, y2: number, t: number): {
|
|
2
|
+
x: number;
|
|
3
|
+
y: number;
|
|
4
|
+
};
|
|
5
|
+
export declare function cubicBezierTangent(x1: number, y1: number, cx1: number, cy1: number, cx2: number, cy2: number, x2: number, y2: number, t: number): {
|
|
6
|
+
x: number;
|
|
7
|
+
y: number;
|
|
8
|
+
tangent: number;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=Curve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Curve.d.ts","sourceRoot":"","sources":["../../../../src/dragonbones/dragonBones/geom/Curve.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,CACjC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EACxB,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EACxB,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EACtB,CAAC,EAAE,MAAM,GACR;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,CAW1B;AAED,wBAAgB,kBAAkB,CAChC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EACtB,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EACxB,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EACxB,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EACtB,CAAC,EAAE,MAAM,GACR;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAc3C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Cubic Bezier curve utilities
|
|
2
|
+
export function cubicBezierPosition(x1, y1, cx1, cy1, cx2, cy2, x2, y2, t) {
|
|
3
|
+
const mt = 1 - t;
|
|
4
|
+
const mt2 = mt * mt;
|
|
5
|
+
const t2 = t * t;
|
|
6
|
+
const a = mt2 * mt;
|
|
7
|
+
const b = mt2 * t * 3;
|
|
8
|
+
const c = mt * t2 * 3;
|
|
9
|
+
const d = t * t2;
|
|
10
|
+
const x = a * x1 + b * cx1 + c * cx2 + d * x2;
|
|
11
|
+
const y = a * y1 + b * cy1 + c * cy2 + d * y2;
|
|
12
|
+
return { x, y };
|
|
13
|
+
}
|
|
14
|
+
export function cubicBezierTangent(x1, y1, cx1, cy1, cx2, cy2, x2, y2, t) {
|
|
15
|
+
const pt = cubicBezierPosition(x1, y1, cx1, cy1, cx2, cy2, x2, y2, t);
|
|
16
|
+
// Derivative for tangent
|
|
17
|
+
const mt = 1 - t;
|
|
18
|
+
const dx = 3 * mt * mt * (cx1 - x1) +
|
|
19
|
+
6 * mt * t * (cx2 - cx1) +
|
|
20
|
+
3 * t * t * (x2 - cx2);
|
|
21
|
+
const dy = 3 * mt * mt * (cy1 - y1) +
|
|
22
|
+
6 * mt * t * (cy2 - cy1) +
|
|
23
|
+
3 * t * t * (y2 - cy2);
|
|
24
|
+
const tangent = Math.atan2(dy, dx);
|
|
25
|
+
return { x: pt.x, y: pt.y, tangent };
|
|
26
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - 2D Transform matrix.
|
|
3
|
+
* @version DragonBones 3.0
|
|
4
|
+
* @language en_US
|
|
5
|
+
*/
|
|
6
|
+
export declare class Matrix {
|
|
7
|
+
/**
|
|
8
|
+
* - The value that affects the positioning of pixels along the x axis when scaling or rotating an image.
|
|
9
|
+
* @default 1.0
|
|
10
|
+
* @version DragonBones 3.0
|
|
11
|
+
* @language en_US
|
|
12
|
+
*/
|
|
13
|
+
a: number;
|
|
14
|
+
/**
|
|
15
|
+
* - The value that affects the positioning of pixels along the y axis when rotating or skewing an image.
|
|
16
|
+
* @default 0.0
|
|
17
|
+
* @version DragonBones 3.0
|
|
18
|
+
* @language en_US
|
|
19
|
+
*/
|
|
20
|
+
b: number;
|
|
21
|
+
/**
|
|
22
|
+
* - The value that affects the positioning of pixels along the x axis when rotating or skewing an image.
|
|
23
|
+
* @default 0.0
|
|
24
|
+
* @version DragonBones 3.0
|
|
25
|
+
* @language en_US
|
|
26
|
+
*/
|
|
27
|
+
c: number;
|
|
28
|
+
/**
|
|
29
|
+
* - The value that affects the positioning of pixels along the y axis when scaling or rotating an image.
|
|
30
|
+
* @default 1.0
|
|
31
|
+
* @version DragonBones 3.0
|
|
32
|
+
* @language en_US
|
|
33
|
+
*/
|
|
34
|
+
d: number;
|
|
35
|
+
/**
|
|
36
|
+
* - The distance by which to translate each point along the x axis.
|
|
37
|
+
* @default 0.0
|
|
38
|
+
* @version DragonBones 3.0
|
|
39
|
+
* @language en_US
|
|
40
|
+
*/
|
|
41
|
+
tx: number;
|
|
42
|
+
/**
|
|
43
|
+
* - The distance by which to translate each point along the y axis.
|
|
44
|
+
* @default 0.0
|
|
45
|
+
* @version DragonBones 3.0
|
|
46
|
+
* @language en_US
|
|
47
|
+
*/
|
|
48
|
+
ty: number;
|
|
49
|
+
/**
|
|
50
|
+
* @private
|
|
51
|
+
*/
|
|
52
|
+
constructor(a?: number, b?: number, c?: number, d?: number, tx?: number, ty?: number);
|
|
53
|
+
toString(): string;
|
|
54
|
+
/**
|
|
55
|
+
* @private
|
|
56
|
+
*/
|
|
57
|
+
copyFrom(value: Matrix): Matrix;
|
|
58
|
+
/**
|
|
59
|
+
* @private
|
|
60
|
+
*/
|
|
61
|
+
copyFromArray(value: Array<number>, offset?: number): Matrix;
|
|
62
|
+
/**
|
|
63
|
+
* - Convert to unit matrix.
|
|
64
|
+
* The resulting matrix has the following properties: a=1, b=0, c=0, d=1, tx=0, ty=0.
|
|
65
|
+
* @version DragonBones 3.0
|
|
66
|
+
* @language en_US
|
|
67
|
+
*/
|
|
68
|
+
identity(): Matrix;
|
|
69
|
+
/**
|
|
70
|
+
* - Multiplies the current matrix with another matrix.
|
|
71
|
+
* @param value - The matrix that needs to be multiplied.
|
|
72
|
+
* @version DragonBones 3.0
|
|
73
|
+
* @language en_US
|
|
74
|
+
*/
|
|
75
|
+
concat(value: Matrix): Matrix;
|
|
76
|
+
/**
|
|
77
|
+
* - Convert to inverse matrix.
|
|
78
|
+
* @version DragonBones 3.0
|
|
79
|
+
* @language en_US
|
|
80
|
+
*/
|
|
81
|
+
invert(): Matrix;
|
|
82
|
+
/**
|
|
83
|
+
* - Apply a matrix transformation to a specific point.
|
|
84
|
+
* @param x - X coordinate.
|
|
85
|
+
* @param y - Y coordinate.
|
|
86
|
+
* @param result - The point after the transformation is applied.
|
|
87
|
+
* @param delta - Whether to ignore tx, ty's conversion to point.
|
|
88
|
+
* @version DragonBones 3.0
|
|
89
|
+
* @language en_US
|
|
90
|
+
*/
|
|
91
|
+
transformPoint(x: number, y: number, result: {
|
|
92
|
+
x: number;
|
|
93
|
+
y: number;
|
|
94
|
+
}, delta?: boolean): void;
|
|
95
|
+
/**
|
|
96
|
+
* @private
|
|
97
|
+
*/
|
|
98
|
+
transformRectangle(rectangle: {
|
|
99
|
+
x: number;
|
|
100
|
+
y: number;
|
|
101
|
+
width: number;
|
|
102
|
+
height: number;
|
|
103
|
+
}, delta?: boolean): void;
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=Matrix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Matrix.d.ts","sourceRoot":"","sources":["../../../../src/dragonbones/dragonBones/geom/Matrix.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,qBAAa,MAAM;IACjB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,EAAE,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACI,EAAE,EAAE,MAAM,CAAC;IAClB;;OAEG;gBAED,CAAC,GAAE,MAAY,EACf,CAAC,GAAE,MAAY,EACf,CAAC,GAAE,MAAY,EACf,CAAC,GAAE,MAAY,EACf,EAAE,GAAE,MAAY,EAChB,EAAE,GAAE,MAAY;IAUX,QAAQ,IAAI,MAAM;IAgBzB;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAUtC;;OAEG;IACI,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,GAAE,MAAU,GAAG,MAAM;IAUtE;;;;;OAKG;IACI,QAAQ,IAAI,MAAM;IAOzB;;;;;OAKG;IACI,MAAM,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IA+BpC;;;;OAIG;IACI,MAAM,IAAI,MAAM;IAyCvB;;;;;;;;OAQG;IACI,cAAc,CACnB,CAAC,EAAE,MAAM,EACT,CAAC,EAAE,MAAM,EACT,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAChC,KAAK,GAAE,OAAe,GACrB,IAAI;IASP;;OAEG;IACI,kBAAkB,CACvB,SAAS,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAClE,KAAK,GAAE,OAAe,GACrB,IAAI;CAoDR"}
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - 2D Transform matrix.
|
|
3
|
+
* @version DragonBones 3.0
|
|
4
|
+
* @language en_US
|
|
5
|
+
*/
|
|
6
|
+
export class Matrix {
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
constructor(a = 1.0, b = 0.0, c = 0.0, d = 1.0, tx = 0.0, ty = 0.0) {
|
|
11
|
+
this.a = a;
|
|
12
|
+
this.b = b;
|
|
13
|
+
this.c = c;
|
|
14
|
+
this.d = d;
|
|
15
|
+
this.tx = tx;
|
|
16
|
+
this.ty = ty;
|
|
17
|
+
}
|
|
18
|
+
toString() {
|
|
19
|
+
return ("[object dragonBones.Matrix] a:" +
|
|
20
|
+
this.a +
|
|
21
|
+
" b:" +
|
|
22
|
+
this.b +
|
|
23
|
+
" c:" +
|
|
24
|
+
this.c +
|
|
25
|
+
" d:" +
|
|
26
|
+
this.d +
|
|
27
|
+
" tx:" +
|
|
28
|
+
this.tx +
|
|
29
|
+
" ty:" +
|
|
30
|
+
this.ty);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
copyFrom(value) {
|
|
36
|
+
this.a = value.a;
|
|
37
|
+
this.b = value.b;
|
|
38
|
+
this.c = value.c;
|
|
39
|
+
this.d = value.d;
|
|
40
|
+
this.tx = value.tx;
|
|
41
|
+
this.ty = value.ty;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
copyFromArray(value, offset = 0) {
|
|
48
|
+
this.a = value[offset];
|
|
49
|
+
this.b = value[offset + 1];
|
|
50
|
+
this.c = value[offset + 2];
|
|
51
|
+
this.d = value[offset + 3];
|
|
52
|
+
this.tx = value[offset + 4];
|
|
53
|
+
this.ty = value[offset + 5];
|
|
54
|
+
return this;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* - Convert to unit matrix.
|
|
58
|
+
* The resulting matrix has the following properties: a=1, b=0, c=0, d=1, tx=0, ty=0.
|
|
59
|
+
* @version DragonBones 3.0
|
|
60
|
+
* @language en_US
|
|
61
|
+
*/
|
|
62
|
+
identity() {
|
|
63
|
+
this.a = this.d = 1.0;
|
|
64
|
+
this.b = this.c = 0.0;
|
|
65
|
+
this.tx = this.ty = 0.0;
|
|
66
|
+
return this;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* - Multiplies the current matrix with another matrix.
|
|
70
|
+
* @param value - The matrix that needs to be multiplied.
|
|
71
|
+
* @version DragonBones 3.0
|
|
72
|
+
* @language en_US
|
|
73
|
+
*/
|
|
74
|
+
concat(value) {
|
|
75
|
+
let aA = this.a * value.a;
|
|
76
|
+
let bA = 0.0;
|
|
77
|
+
let cA = 0.0;
|
|
78
|
+
let dA = this.d * value.d;
|
|
79
|
+
let txA = this.tx * value.a + value.tx;
|
|
80
|
+
let tyA = this.ty * value.d + value.ty;
|
|
81
|
+
if (this.b !== 0.0 || this.c !== 0.0) {
|
|
82
|
+
aA += this.b * value.c;
|
|
83
|
+
bA += this.b * value.d;
|
|
84
|
+
cA += this.c * value.a;
|
|
85
|
+
dA += this.c * value.b;
|
|
86
|
+
}
|
|
87
|
+
if (value.b !== 0.0 || value.c !== 0.0) {
|
|
88
|
+
bA += this.a * value.b;
|
|
89
|
+
cA += this.d * value.c;
|
|
90
|
+
txA += this.ty * value.c;
|
|
91
|
+
tyA += this.tx * value.b;
|
|
92
|
+
}
|
|
93
|
+
this.a = aA;
|
|
94
|
+
this.b = bA;
|
|
95
|
+
this.c = cA;
|
|
96
|
+
this.d = dA;
|
|
97
|
+
this.tx = txA;
|
|
98
|
+
this.ty = tyA;
|
|
99
|
+
return this;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* - Convert to inverse matrix.
|
|
103
|
+
* @version DragonBones 3.0
|
|
104
|
+
* @language en_US
|
|
105
|
+
*/
|
|
106
|
+
invert() {
|
|
107
|
+
let aA = this.a;
|
|
108
|
+
let bA = this.b;
|
|
109
|
+
let cA = this.c;
|
|
110
|
+
let dA = this.d;
|
|
111
|
+
const txA = this.tx;
|
|
112
|
+
const tyA = this.ty;
|
|
113
|
+
if (bA === 0.0 && cA === 0.0) {
|
|
114
|
+
this.b = this.c = 0.0;
|
|
115
|
+
if (aA === 0.0 || dA === 0.0) {
|
|
116
|
+
this.a = this.b = this.tx = this.ty = 0.0;
|
|
117
|
+
}
|
|
118
|
+
else {
|
|
119
|
+
aA = this.a = 1.0 / aA;
|
|
120
|
+
dA = this.d = 1.0 / dA;
|
|
121
|
+
this.tx = -aA * txA;
|
|
122
|
+
this.ty = -dA * tyA;
|
|
123
|
+
}
|
|
124
|
+
return this;
|
|
125
|
+
}
|
|
126
|
+
let determinant = aA * dA - bA * cA;
|
|
127
|
+
if (determinant === 0.0) {
|
|
128
|
+
this.a = this.d = 1.0;
|
|
129
|
+
this.b = this.c = 0.0;
|
|
130
|
+
this.tx = this.ty = 0.0;
|
|
131
|
+
return this;
|
|
132
|
+
}
|
|
133
|
+
determinant = 1.0 / determinant;
|
|
134
|
+
let k = (this.a = dA * determinant);
|
|
135
|
+
bA = this.b = -bA * determinant;
|
|
136
|
+
cA = this.c = -cA * determinant;
|
|
137
|
+
dA = this.d = aA * determinant;
|
|
138
|
+
this.tx = -(k * txA + cA * tyA);
|
|
139
|
+
this.ty = -(bA * txA + dA * tyA);
|
|
140
|
+
return this;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* - Apply a matrix transformation to a specific point.
|
|
144
|
+
* @param x - X coordinate.
|
|
145
|
+
* @param y - Y coordinate.
|
|
146
|
+
* @param result - The point after the transformation is applied.
|
|
147
|
+
* @param delta - Whether to ignore tx, ty's conversion to point.
|
|
148
|
+
* @version DragonBones 3.0
|
|
149
|
+
* @language en_US
|
|
150
|
+
*/
|
|
151
|
+
transformPoint(x, y, result, delta = false) {
|
|
152
|
+
result.x = this.a * x + this.c * y;
|
|
153
|
+
result.y = this.b * x + this.d * y;
|
|
154
|
+
if (!delta) {
|
|
155
|
+
result.x += this.tx;
|
|
156
|
+
result.y += this.ty;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* @private
|
|
161
|
+
*/
|
|
162
|
+
transformRectangle(rectangle, delta = false) {
|
|
163
|
+
const a = this.a;
|
|
164
|
+
const b = this.b;
|
|
165
|
+
const c = this.c;
|
|
166
|
+
const d = this.d;
|
|
167
|
+
const tx = delta ? 0.0 : this.tx;
|
|
168
|
+
const ty = delta ? 0.0 : this.ty;
|
|
169
|
+
const x = rectangle.x;
|
|
170
|
+
const y = rectangle.y;
|
|
171
|
+
const xMax = x + rectangle.width;
|
|
172
|
+
const yMax = y + rectangle.height;
|
|
173
|
+
let x0 = a * x + c * y + tx;
|
|
174
|
+
let y0 = b * x + d * y + ty;
|
|
175
|
+
let x1 = a * xMax + c * y + tx;
|
|
176
|
+
let y1 = b * xMax + d * y + ty;
|
|
177
|
+
let x2 = a * xMax + c * yMax + tx;
|
|
178
|
+
let y2 = b * xMax + d * yMax + ty;
|
|
179
|
+
let x3 = a * x + c * yMax + tx;
|
|
180
|
+
let y3 = b * x + d * yMax + ty;
|
|
181
|
+
let tmp = 0.0;
|
|
182
|
+
if (x0 > x1) {
|
|
183
|
+
tmp = x0;
|
|
184
|
+
x0 = x1;
|
|
185
|
+
x1 = tmp;
|
|
186
|
+
}
|
|
187
|
+
if (x2 > x3) {
|
|
188
|
+
tmp = x2;
|
|
189
|
+
x2 = x3;
|
|
190
|
+
x3 = tmp;
|
|
191
|
+
}
|
|
192
|
+
rectangle.x = Math.floor(x0 < x2 ? x0 : x2);
|
|
193
|
+
rectangle.width = Math.ceil((x1 > x3 ? x1 : x3) - rectangle.x);
|
|
194
|
+
if (y0 > y1) {
|
|
195
|
+
tmp = y0;
|
|
196
|
+
y0 = y1;
|
|
197
|
+
y1 = tmp;
|
|
198
|
+
}
|
|
199
|
+
if (y2 > y3) {
|
|
200
|
+
tmp = y2;
|
|
201
|
+
y2 = y3;
|
|
202
|
+
y3 = tmp;
|
|
203
|
+
}
|
|
204
|
+
rectangle.y = Math.floor(y0 < y2 ? y0 : y2);
|
|
205
|
+
rectangle.height = Math.ceil((y1 > y3 ? y1 : y3) - rectangle.y);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - The Point object represents a location in a two-dimensional coordinate system.
|
|
3
|
+
* @version DragonBones 3.0
|
|
4
|
+
* @language en_US
|
|
5
|
+
*/
|
|
6
|
+
export declare class Point {
|
|
7
|
+
/**
|
|
8
|
+
* - The horizontal coordinate.
|
|
9
|
+
* @default 0.0
|
|
10
|
+
* @version DragonBones 3.0
|
|
11
|
+
* @language en_US
|
|
12
|
+
*/
|
|
13
|
+
x: number;
|
|
14
|
+
/**
|
|
15
|
+
* - The vertical coordinate.
|
|
16
|
+
* @default 0.0
|
|
17
|
+
* @version DragonBones 3.0
|
|
18
|
+
* @language en_US
|
|
19
|
+
*/
|
|
20
|
+
y: number;
|
|
21
|
+
/**
|
|
22
|
+
* - Creates a new point. If you pass no parameters to this method, a point is created at (0,0).
|
|
23
|
+
* @param x - The horizontal coordinate.
|
|
24
|
+
* @param y - The vertical coordinate.
|
|
25
|
+
* @version DragonBones 3.0
|
|
26
|
+
* @language en_US
|
|
27
|
+
*/
|
|
28
|
+
constructor(x?: number, y?: number);
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
*/
|
|
32
|
+
copyFrom(value: Point): void;
|
|
33
|
+
/**
|
|
34
|
+
* @private
|
|
35
|
+
*/
|
|
36
|
+
clear(): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=Point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Point.d.ts","sourceRoot":"","sources":["../../../../src/dragonbones/dragonBones/geom/Point.ts"],"names":[],"mappings":"AAAA;;;;OAIO;AACH,qBAAa,KAAK;IACd;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;;OAMG;gBACgB,CAAC,GAAE,MAAY,EAAE,CAAC,GAAE,MAAY;IAInD;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAInC;;OAEG;IACI,KAAK,IAAI,IAAI;CAGvB"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - The Point object represents a location in a two-dimensional coordinate system.
|
|
3
|
+
* @version DragonBones 3.0
|
|
4
|
+
* @language en_US
|
|
5
|
+
*/
|
|
6
|
+
export class Point {
|
|
7
|
+
/**
|
|
8
|
+
* - Creates a new point. If you pass no parameters to this method, a point is created at (0,0).
|
|
9
|
+
* @param x - The horizontal coordinate.
|
|
10
|
+
* @param y - The vertical coordinate.
|
|
11
|
+
* @version DragonBones 3.0
|
|
12
|
+
* @language en_US
|
|
13
|
+
*/
|
|
14
|
+
constructor(x = 0.0, y = 0.0) {
|
|
15
|
+
this.x = x;
|
|
16
|
+
this.y = y;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
copyFrom(value) {
|
|
22
|
+
this.x = value.x;
|
|
23
|
+
this.y = value.y;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @private
|
|
27
|
+
*/
|
|
28
|
+
clear() {
|
|
29
|
+
this.x = this.y = 0.0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - A Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its
|
|
3
|
+
* width and its height.<br/>
|
|
4
|
+
* The x, y, width, and height properties of the Rectangle class are independent of each other; changing the value of
|
|
5
|
+
* one property has no effect on the others. However, the right and bottom properties are integrally related to those
|
|
6
|
+
* four properties. For example, if you change the value of the right property, the value of the width property changes;
|
|
7
|
+
* if you change the bottom property, the value of the height property changes.
|
|
8
|
+
* @version DragonBones 3.0
|
|
9
|
+
* @language en_US
|
|
10
|
+
*/
|
|
11
|
+
export declare class Rectangle {
|
|
12
|
+
/**
|
|
13
|
+
* - The x coordinate of the top-left corner of the rectangle.
|
|
14
|
+
* @default 0.0
|
|
15
|
+
* @version DragonBones 3.0
|
|
16
|
+
* @language en_US
|
|
17
|
+
*/
|
|
18
|
+
x: number;
|
|
19
|
+
/**
|
|
20
|
+
* - The y coordinate of the top-left corner of the rectangle.
|
|
21
|
+
* @default 0.0
|
|
22
|
+
* @version DragonBones 3.0
|
|
23
|
+
* @language en_US
|
|
24
|
+
*/
|
|
25
|
+
y: number;
|
|
26
|
+
/**
|
|
27
|
+
* - The width of the rectangle, in pixels.
|
|
28
|
+
* @default 0.0
|
|
29
|
+
* @version DragonBones 3.0
|
|
30
|
+
* @language en_US
|
|
31
|
+
*/
|
|
32
|
+
width: number;
|
|
33
|
+
/**
|
|
34
|
+
* - The height of the rectangle, in pixels.
|
|
35
|
+
* @default 0.0
|
|
36
|
+
* @version DragonBones 3.0
|
|
37
|
+
* @language en_US
|
|
38
|
+
*/
|
|
39
|
+
height: number;
|
|
40
|
+
/**
|
|
41
|
+
* @private
|
|
42
|
+
*/
|
|
43
|
+
constructor(x?: number, y?: number, width?: number, height?: number);
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
*/
|
|
47
|
+
copyFrom(value: Rectangle): void;
|
|
48
|
+
/**
|
|
49
|
+
* @private
|
|
50
|
+
*/
|
|
51
|
+
clear(): void;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=Rectangle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Rectangle.d.ts","sourceRoot":"","sources":["../../../../src/dragonbones/dragonBones/geom/Rectangle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;OASO;AACH,qBAAa,SAAS;IAClB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;;OAKG;IACI,KAAK,EAAE,MAAM,CAAC;IACrB;;;;;OAKG;IACI,MAAM,EAAE,MAAM,CAAC;IACtB;;OAEG;gBAEC,CAAC,GAAE,MAAY,EAAE,CAAC,GAAE,MAAY,EAChC,KAAK,GAAE,MAAY,EAAE,MAAM,GAAE,MAAY;IAO7C;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI;IAMvC;;OAEG;IACI,KAAK,IAAI,IAAI;CAIvB"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* - A Rectangle object is an area defined by its position, as indicated by its top-left corner point (x, y) and by its
|
|
3
|
+
* width and its height.<br/>
|
|
4
|
+
* The x, y, width, and height properties of the Rectangle class are independent of each other; changing the value of
|
|
5
|
+
* one property has no effect on the others. However, the right and bottom properties are integrally related to those
|
|
6
|
+
* four properties. For example, if you change the value of the right property, the value of the width property changes;
|
|
7
|
+
* if you change the bottom property, the value of the height property changes.
|
|
8
|
+
* @version DragonBones 3.0
|
|
9
|
+
* @language en_US
|
|
10
|
+
*/
|
|
11
|
+
export class Rectangle {
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
constructor(x = 0.0, y = 0.0, width = 0.0, height = 0.0) {
|
|
16
|
+
this.x = x;
|
|
17
|
+
this.y = y;
|
|
18
|
+
this.width = width;
|
|
19
|
+
this.height = height;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
copyFrom(value) {
|
|
25
|
+
this.x = value.x;
|
|
26
|
+
this.y = value.y;
|
|
27
|
+
this.width = value.width;
|
|
28
|
+
this.height = value.height;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @private
|
|
32
|
+
*/
|
|
33
|
+
clear() {
|
|
34
|
+
this.x = this.y = 0.0;
|
|
35
|
+
this.width = this.height = 0.0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { Matrix } from "./Matrix";
|
|
2
|
+
/**
|
|
3
|
+
* - 2D Transform.
|
|
4
|
+
* @version DragonBones 3.0
|
|
5
|
+
* @language en_US
|
|
6
|
+
*/
|
|
7
|
+
export declare class Transform {
|
|
8
|
+
/**
|
|
9
|
+
* @private
|
|
10
|
+
*/
|
|
11
|
+
static readonly PI: number;
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
static readonly PI_D: number;
|
|
16
|
+
/**
|
|
17
|
+
* @private
|
|
18
|
+
*/
|
|
19
|
+
static readonly PI_H: number;
|
|
20
|
+
/**
|
|
21
|
+
* @private
|
|
22
|
+
*/
|
|
23
|
+
static readonly PI_Q: number;
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
*/
|
|
27
|
+
static readonly RAD_DEG: number;
|
|
28
|
+
/**
|
|
29
|
+
* @private
|
|
30
|
+
*/
|
|
31
|
+
static readonly DEG_RAD: number;
|
|
32
|
+
/**
|
|
33
|
+
* @private
|
|
34
|
+
*/
|
|
35
|
+
static normalizeRadian(value: number): number;
|
|
36
|
+
/**
|
|
37
|
+
* - Horizontal translate.
|
|
38
|
+
* @version DragonBones 3.0
|
|
39
|
+
* @language en_US
|
|
40
|
+
*/
|
|
41
|
+
x: number;
|
|
42
|
+
/**
|
|
43
|
+
* - Vertical translate.
|
|
44
|
+
* @version DragonBones 3.0
|
|
45
|
+
* @language en_US
|
|
46
|
+
*/
|
|
47
|
+
y: number;
|
|
48
|
+
/**
|
|
49
|
+
* - Skew. (In radians)
|
|
50
|
+
* @version DragonBones 3.0
|
|
51
|
+
* @language en_US
|
|
52
|
+
*/
|
|
53
|
+
skew: number;
|
|
54
|
+
/**
|
|
55
|
+
* - rotation. (In radians)
|
|
56
|
+
* @version DragonBones 3.0
|
|
57
|
+
* @language en_US
|
|
58
|
+
*/
|
|
59
|
+
rotation: number;
|
|
60
|
+
/**
|
|
61
|
+
* - Horizontal Scaling.
|
|
62
|
+
* @version DragonBones 3.0
|
|
63
|
+
* @language en_US
|
|
64
|
+
*/
|
|
65
|
+
scaleX: number;
|
|
66
|
+
/**
|
|
67
|
+
* - Vertical scaling.
|
|
68
|
+
* @version DragonBones 3.0
|
|
69
|
+
* @language en_US
|
|
70
|
+
*/
|
|
71
|
+
scaleY: number;
|
|
72
|
+
/**
|
|
73
|
+
* @private
|
|
74
|
+
*/
|
|
75
|
+
constructor(x?: number, y?: number, skew?: number, rotation?: number, scaleX?: number, scaleY?: number);
|
|
76
|
+
toString(): string;
|
|
77
|
+
/**
|
|
78
|
+
* @private
|
|
79
|
+
*/
|
|
80
|
+
copyFrom(value: Transform): Transform;
|
|
81
|
+
/**
|
|
82
|
+
* @private
|
|
83
|
+
*/
|
|
84
|
+
identity(): Transform;
|
|
85
|
+
/**
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
add(value: Transform): Transform;
|
|
89
|
+
/**
|
|
90
|
+
* @private
|
|
91
|
+
*/
|
|
92
|
+
minus(value: Transform): Transform;
|
|
93
|
+
/**
|
|
94
|
+
* @private
|
|
95
|
+
*/
|
|
96
|
+
fromMatrix(matrix: Matrix): Transform;
|
|
97
|
+
/**
|
|
98
|
+
* @private
|
|
99
|
+
*/
|
|
100
|
+
toMatrix(matrix: Matrix): Transform;
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=Transform.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Transform.d.ts","sourceRoot":"","sources":["../../../../src/dragonbones/dragonBones/geom/Transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC;;;;GAIG;AACH,qBAAa,SAAS;IACpB;;OAEG;IACH,gBAAuB,EAAE,EAAE,MAAM,CAAW;IAC5C;;OAEG;IACH,gBAAuB,IAAI,EAAE,MAAM,CAAiB;IACpD;;OAEG;IACH,gBAAuB,IAAI,EAAE,MAAM,CAAiB;IACpD;;OAEG;IACH,gBAAuB,IAAI,EAAE,MAAM,CAAiB;IACpD;;OAEG;IACH,gBAAuB,OAAO,EAAE,MAAM,CAAmB;IACzD;;OAEG;IACH,gBAAuB,OAAO,EAAE,MAAM,CAAmB;IACzD;;OAEG;WACW,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM;IAMpD;;;;OAIG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACI,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACI,IAAI,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACI,QAAQ,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACI,MAAM,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACI,MAAM,EAAE,MAAM,CAAC;IACtB;;OAEG;gBAED,CAAC,GAAE,MAAY,EACf,CAAC,GAAE,MAAY,EACf,IAAI,GAAE,MAAY,EAClB,QAAQ,GAAE,MAAY,EACtB,MAAM,GAAE,MAAY,EACpB,MAAM,GAAE,MAAY;IAUf,QAAQ,IAAI,MAAM;IAgBzB;;OAEG;IACI,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAU5C;;OAEG;IACI,QAAQ,IAAI,SAAS;IAO5B;;OAEG;IACI,GAAG,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAUvC;;OAEG;IACI,KAAK,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAUzC;;OAEG;IACI,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;IAiC5C;;OAEG;IACI,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;CAgC3C"}
|