@flighthq/skeleton2d 0.5.1-next.920.da8f530 → 0.6.0
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 +2 -2
- package/dist/.tsbuildinfo.contract +1 -0
- package/dist/.tsbuildinfo.runtime +1 -0
- package/dist/Attachment2D.d.ts +6 -0
- package/dist/Attachment2D.d.ts.map +1 -0
- package/dist/Attachment2D.js +2 -0
- package/dist/Attachment2D.js.map +1 -0
- package/dist/AttachmentSkin2D.d.ts +11 -0
- package/dist/AttachmentSkin2D.d.ts.map +1 -0
- package/dist/AttachmentSkin2D.js +2 -0
- package/dist/AttachmentSkin2D.js.map +1 -0
- package/dist/Bone2D.d.ts +15 -0
- package/dist/Bone2D.d.ts.map +1 -0
- package/dist/Bone2D.js +2 -0
- package/dist/Bone2D.js.map +1 -0
- package/dist/BoundingBoxAttachment2DContract.d.ts +10 -0
- package/dist/BoundingBoxAttachment2DContract.d.ts.map +1 -0
- package/dist/BoundingBoxAttachment2DContract.js +2 -0
- package/dist/BoundingBoxAttachment2DContract.js.map +1 -0
- package/dist/ClippingAttachment2DContract.d.ts +12 -0
- package/dist/ClippingAttachment2DContract.d.ts.map +1 -0
- package/dist/ClippingAttachment2DContract.js +2 -0
- package/dist/ClippingAttachment2DContract.js.map +1 -0
- package/dist/MeshAttachment2D.d.ts +11 -0
- package/dist/MeshAttachment2D.d.ts.map +1 -0
- package/dist/MeshAttachment2D.js +2 -0
- package/dist/MeshAttachment2D.js.map +1 -0
- package/dist/PathAttachment2D.d.ts +13 -0
- package/dist/PathAttachment2D.d.ts.map +1 -0
- package/dist/PathAttachment2D.js +2 -0
- package/dist/PathAttachment2D.js.map +1 -0
- package/dist/PointAttachment2DContract.d.ts +9 -0
- package/dist/PointAttachment2DContract.d.ts.map +1 -0
- package/dist/PointAttachment2DContract.js +2 -0
- package/dist/PointAttachment2DContract.js.map +1 -0
- package/dist/RegionAttachment2DContract.d.ts +12 -0
- package/dist/RegionAttachment2DContract.d.ts.map +1 -0
- package/dist/RegionAttachment2DContract.js +2 -0
- package/dist/RegionAttachment2DContract.js.map +1 -0
- package/dist/Skeleton2DAnimationPath.d.ts +14 -0
- package/dist/Skeleton2DAnimationPath.d.ts.map +1 -0
- package/dist/Skeleton2DAnimationPath.js +48 -0
- package/dist/Skeleton2DAnimationPath.js.map +1 -0
- package/dist/Skeleton2DAnimationTargetBinder.d.ts +14 -0
- package/dist/Skeleton2DAnimationTargetBinder.d.ts.map +1 -0
- package/dist/Skeleton2DAnimationTargetBinder.js +2 -0
- package/dist/Skeleton2DAnimationTargetBinder.js.map +1 -0
- package/dist/Skeleton2DAnimationTargetContract.d.ts +9 -0
- package/dist/Skeleton2DAnimationTargetContract.d.ts.map +1 -0
- package/dist/Skeleton2DAnimationTargetContract.js +2 -0
- package/dist/Skeleton2DAnimationTargetContract.js.map +1 -0
- package/dist/Skeleton2DAnimationTargetKind.d.ts +9 -0
- package/dist/Skeleton2DAnimationTargetKind.d.ts.map +1 -0
- package/dist/Skeleton2DAnimationTargetKind.js +20 -0
- package/dist/Skeleton2DAnimationTargetKind.js.map +1 -0
- package/dist/Skeleton2DConstraintContract.d.ts +37 -0
- package/dist/Skeleton2DConstraintContract.d.ts.map +1 -0
- package/dist/Skeleton2DConstraintContract.js +10 -0
- package/dist/Skeleton2DConstraintContract.js.map +1 -0
- package/dist/Skeleton2DContract.d.ts +13 -0
- package/dist/Skeleton2DContract.d.ts.map +1 -0
- package/dist/Skeleton2DContract.js +2 -0
- package/dist/Skeleton2DContract.js.map +1 -0
- package/dist/Skeleton2DDeformAnimationTarget.d.ts +22 -0
- package/dist/Skeleton2DDeformAnimationTarget.d.ts.map +1 -0
- package/dist/Skeleton2DDeformAnimationTarget.js +2 -0
- package/dist/Skeleton2DDeformAnimationTarget.js.map +1 -0
- package/dist/Skeleton2DDeformLengthExplanation.d.ts +21 -0
- package/dist/Skeleton2DDeformLengthExplanation.d.ts.map +1 -0
- package/dist/Skeleton2DDeformLengthExplanation.js +2 -0
- package/dist/Skeleton2DDeformLengthExplanation.js.map +1 -0
- package/dist/Skeleton2DDrawOrderAnimationTarget.d.ts +28 -0
- package/dist/Skeleton2DDrawOrderAnimationTarget.d.ts.map +1 -0
- package/dist/Skeleton2DDrawOrderAnimationTarget.js +2 -0
- package/dist/Skeleton2DDrawOrderAnimationTarget.js.map +1 -0
- package/dist/Skeleton2DDrawOrderTimeline.d.ts +24 -0
- package/dist/Skeleton2DDrawOrderTimeline.d.ts.map +1 -0
- package/dist/Skeleton2DDrawOrderTimeline.js +2 -0
- package/dist/Skeleton2DDrawOrderTimeline.js.map +1 -0
- package/dist/Skeleton2DGuardsContract.d.ts +38 -0
- package/dist/Skeleton2DGuardsContract.d.ts.map +1 -0
- package/dist/Skeleton2DGuardsContract.js +2 -0
- package/dist/Skeleton2DGuardsContract.js.map +1 -0
- package/dist/Skeleton2DIkConstraint.d.ts +29 -0
- package/dist/Skeleton2DIkConstraint.d.ts.map +1 -0
- package/dist/Skeleton2DIkConstraint.js +2 -0
- package/dist/Skeleton2DIkConstraint.js.map +1 -0
- package/dist/Skeleton2DPathConstraint.d.ts +53 -0
- package/dist/Skeleton2DPathConstraint.d.ts.map +1 -0
- package/dist/Skeleton2DPathConstraint.js +14 -0
- package/dist/Skeleton2DPathConstraint.js.map +1 -0
- package/dist/Skeleton2DSlotAnimationTarget.d.ts +15 -0
- package/dist/Skeleton2DSlotAnimationTarget.d.ts.map +1 -0
- package/dist/Skeleton2DSlotAnimationTarget.js +18 -0
- package/dist/Skeleton2DSlotAnimationTarget.js.map +1 -0
- package/dist/Skeleton2DSlotDeform.d.ts +29 -0
- package/dist/Skeleton2DSlotDeform.d.ts.map +1 -0
- package/dist/Skeleton2DSlotDeform.js +2 -0
- package/dist/Skeleton2DSlotDeform.js.map +1 -0
- package/dist/Skeleton2DTransformConstraint.d.ts +37 -0
- package/dist/Skeleton2DTransformConstraint.d.ts.map +1 -0
- package/dist/Skeleton2DTransformConstraint.js +2 -0
- package/dist/Skeleton2DTransformConstraint.js.map +1 -0
- package/dist/Skin2DContract.d.ts +6 -0
- package/dist/Skin2DContract.d.ts.map +1 -0
- package/dist/Skin2DContract.js +2 -0
- package/dist/Skin2DContract.js.map +1 -0
- package/dist/Slot2D.d.ts +10 -0
- package/dist/Slot2D.d.ts.map +1 -0
- package/dist/Slot2D.js +2 -0
- package/dist/Slot2D.js.map +1 -0
- package/dist/TransformInherit2D.d.ts +7 -0
- package/dist/TransformInherit2D.d.ts.map +1 -0
- package/dist/TransformInherit2D.js +2 -0
- package/dist/TransformInherit2D.js.map +1 -0
- package/dist/TransformMode2D.d.ts +33 -0
- package/dist/TransformMode2D.d.ts.map +1 -0
- package/dist/TransformMode2D.js +21 -0
- package/dist/TransformMode2D.js.map +1 -0
- package/dist/applyAnimationClipToSkeleton2D.d.ts +2 -1
- package/dist/applyAnimationClipToSkeleton2D.d.ts.map +1 -1
- package/dist/applyAnimationClipToSkeleton2D.js +1 -1
- package/dist/applyAnimationClipToSkeleton2D.js.map +1 -1
- package/dist/boundingBoxAttachment2D.d.ts +1 -1
- package/dist/boundingBoxAttachment2D.d.ts.map +1 -1
- package/dist/boundingBoxAttachment2D.js +1 -1
- package/dist/boundingBoxAttachment2D.js.map +1 -1
- package/dist/clippingAttachment2D.d.ts +1 -1
- package/dist/clippingAttachment2D.d.ts.map +1 -1
- package/dist/clippingAttachment2D.js +1 -1
- package/dist/clippingAttachment2D.js.map +1 -1
- package/dist/contract.d.ts +24 -25
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +24 -25
- package/dist/contract.js.map +1 -1
- package/dist/contract.skeleton2d-types.d.ts +30 -0
- package/dist/contract.skeleton2d-types.d.ts.map +1 -0
- package/dist/contract.skeleton2d-types.js +32 -0
- package/dist/contract.skeleton2d-types.js.map +1 -0
- package/dist/deformAnimationTarget2D.d.ts.map +1 -1
- package/dist/deformAnimationTarget2D.js +3 -3
- package/dist/deformAnimationTarget2D.js.map +1 -1
- package/dist/deformMeshAttachment2D.d.ts +1 -1
- package/dist/deformMeshAttachment2D.d.ts.map +1 -1
- package/dist/deformMeshAttachment2D.js +1 -1
- package/dist/deformMeshAttachment2D.js.map +1 -1
- package/dist/deformPathAttachment2D.d.ts +2 -1
- package/dist/deformPathAttachment2D.d.ts.map +1 -1
- package/dist/deformPathAttachment2D.js +1 -1
- package/dist/deformPathAttachment2D.js.map +1 -1
- package/dist/enableSkeleton2DGuards.d.ts +4 -1
- package/dist/enableSkeleton2DGuards.d.ts.map +1 -1
- package/dist/enableSkeleton2DGuards.js +11 -9
- package/dist/enableSkeleton2DGuards.js.map +1 -1
- package/dist/explainSkeleton2DChannel.d.ts +2 -1
- package/dist/explainSkeleton2DChannel.d.ts.map +1 -1
- package/dist/explainSkeleton2DChannel.js.map +1 -1
- package/dist/explainSkeleton2DDeformLength.d.ts +1 -1
- package/dist/explainSkeleton2DDeformLength.d.ts.map +1 -1
- package/dist/ikConstraint2D.d.ts +1 -1
- package/dist/ikConstraint2D.d.ts.map +1 -1
- package/dist/ikConstraint2D.js +4 -5
- package/dist/ikConstraint2D.js.map +1 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -1
- package/dist/index.js.map +1 -1
- package/dist/pathConstraint2D.d.ts +1 -1
- package/dist/pathConstraint2D.d.ts.map +1 -1
- package/dist/pathConstraint2D.js +5 -6
- package/dist/pathConstraint2D.js.map +1 -1
- package/dist/pointAttachment2D.d.ts +2 -1
- package/dist/pointAttachment2D.d.ts.map +1 -1
- package/dist/pointAttachment2D.js +1 -2
- package/dist/pointAttachment2D.js.map +1 -1
- package/dist/regionAttachment2D.d.ts +1 -1
- package/dist/regionAttachment2D.d.ts.map +1 -1
- package/dist/regionAttachment2D.js +1 -2
- package/dist/regionAttachment2D.js.map +1 -1
- package/dist/skeleton2d.d.ts +4 -1
- package/dist/skeleton2d.d.ts.map +1 -1
- package/dist/skeleton2d.js +23 -5
- package/dist/skeleton2d.js.map +1 -1
- package/dist/skeleton2dAnimationTarget.d.ts +2 -1
- package/dist/skeleton2dAnimationTarget.d.ts.map +1 -1
- package/dist/skeleton2dAnimationTarget.js +14 -14
- package/dist/skeleton2dAnimationTarget.js.map +1 -1
- package/dist/skeleton2dConstants.d.ts +2 -0
- package/dist/skeleton2dConstants.d.ts.map +1 -0
- package/dist/skeleton2dConstants.js +3 -0
- package/dist/skeleton2dConstants.js.map +1 -0
- package/dist/skeleton2dConstraint.d.ts +1 -1
- package/dist/skeleton2dConstraint.d.ts.map +1 -1
- package/dist/skeleton2dDrawOrderTarget.d.ts +7 -4
- package/dist/skeleton2dDrawOrderTarget.d.ts.map +1 -1
- package/dist/skeleton2dDrawOrderTarget.js +5 -5
- package/dist/skeleton2dDrawOrderTarget.js.map +1 -1
- package/dist/skeleton2dGuards.d.ts +1 -1
- package/dist/skeleton2dGuards.d.ts.map +1 -1
- package/dist/skin2D.d.ts +2 -1
- package/dist/skin2D.d.ts.map +1 -1
- package/dist/skin2D.js +2 -2
- package/dist/skin2D.js.map +1 -1
- package/dist/skinAttachment2DPoints.d.ts +1 -1
- package/dist/skinAttachment2DPoints.d.ts.map +1 -1
- package/dist/skinAttachment2DPoints.js +2 -3
- package/dist/skinAttachment2DPoints.js.map +1 -1
- package/dist/slotDeform2D.d.ts +1 -1
- package/dist/slotDeform2D.d.ts.map +1 -1
- package/dist/transformConstraint2D.d.ts +1 -1
- package/dist/transformConstraint2D.d.ts.map +1 -1
- package/dist/transformConstraint2D.js +4 -5
- package/dist/transformConstraint2D.js.map +1 -1
- package/package.json +12 -11
- package/src/applyAnimationClipToSkeleton2D.test.ts +9 -10
- package/src/boundingBoxAttachment2D.test.ts +7 -7
- package/src/clippingAttachment2D.test.ts +6 -6
- package/src/deformAnimationTarget2D.test.ts +10 -10
- package/src/deformMeshAttachment2D.test.ts +10 -10
- package/src/deformPathAttachment2D.test.ts +13 -10
- package/src/enableSkeleton2DGuards.test.ts +17 -16
- package/src/explainSkeleton2DChannel.test.ts +5 -2
- package/src/explainSkeleton2DDeformLength.test.ts +3 -3
- package/src/ikConstraint2D.test.ts +7 -7
- package/src/pathConstraint2D.test.ts +20 -14
- package/src/pointAttachment2D.test.ts +6 -6
- package/src/regionAttachment2D.test.ts +6 -6
- package/src/skeleton2d.test.ts +26 -5
- package/src/skeleton2dAnimationTarget.test.ts +7 -7
- package/src/skeleton2dConstraint.test.ts +7 -7
- package/src/skeleton2dDrawOrderTarget.test.ts +5 -4
- package/src/skeleton2dGuards.test.ts +2 -3
- package/src/skin2D.test.ts +2 -2
- package/src/skinAttachment2DPoints.test.ts +6 -6
- package/src/slotDeform2D.test.ts +6 -6
- package/src/transformConstraint2D.test.ts +7 -7
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { Skeleton2DConstraint } from './Skeleton2DConstraintContract.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Copies a target bone's world transform onto other bones, channel by channel — the constraint behind a
|
|
4
|
+
* head that stays level however the neck turns, or a pair of wheels that share one rotation.
|
|
5
|
+
*
|
|
6
|
+
* Each channel has its OWN mix rather than sharing the constraint's, because copying only rotation while
|
|
7
|
+
* leaving position alone is the common case rather than the exception; the base `mix` scales all of them,
|
|
8
|
+
* so an animation can fade the whole constraint with one channel. A channel at 0 leaves that part of the
|
|
9
|
+
* bone exactly as animation posed it.
|
|
10
|
+
*
|
|
11
|
+
* The offsets are added to the copied value before mixing, in the target's own terms: `offsetRotation` and
|
|
12
|
+
* `offsetShearY` are degrees, `offsetX`/`offsetY` are the target's local units, and the scale offsets are
|
|
13
|
+
* added to the copied scale rather than multiplied into it (so 0 means "no change", matching how both
|
|
14
|
+
* formats author them).
|
|
15
|
+
*
|
|
16
|
+
* This is the WORLD-space form: the target's world transform is what gets copied. Spine's `local` and
|
|
17
|
+
* `relative` variants — copying local transforms, or adding rather than replacing — are a named deferral
|
|
18
|
+
* rather than a silent omission, and a constraint carrying no field for them cannot claim to honor them.
|
|
19
|
+
*/
|
|
20
|
+
export interface Skeleton2DTransformConstraint extends Skeleton2DConstraint {
|
|
21
|
+
boneIndices: readonly number[];
|
|
22
|
+
kind: 'Skeleton2D.TransformConstraint';
|
|
23
|
+
mixRotate: number;
|
|
24
|
+
mixScaleX: number;
|
|
25
|
+
mixScaleY: number;
|
|
26
|
+
mixShearY: number;
|
|
27
|
+
mixX: number;
|
|
28
|
+
mixY: number;
|
|
29
|
+
offsetRotation: number;
|
|
30
|
+
offsetScaleX: number;
|
|
31
|
+
offsetScaleY: number;
|
|
32
|
+
offsetShearY: number;
|
|
33
|
+
offsetX: number;
|
|
34
|
+
offsetY: number;
|
|
35
|
+
targetBoneIndex: number;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=Skeleton2DTransformConstraint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton2DTransformConstraint.d.ts","sourceRoot":"","sources":["../src/Skeleton2DTransformConstraint.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAE9E;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,6BAA8B,SAAQ,oBAAoB;IACzE,WAAW,EAAE,SAAS,MAAM,EAAE,CAAC;IAC/B,IAAI,EAAE,gCAAgC,CAAC;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton2DTransformConstraint.js","sourceRoot":"","sources":["../src/Skeleton2DTransformConstraint.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skin2DContract.d.ts","sourceRoot":"","sources":["../src/Skin2DContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAaxD,MAAM,WAAW,MAAO,SAAQ,MAAM;IACpC,eAAe,EAAE,WAAW,CAAC;IAC7B,UAAU,EAAE,YAAY,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skin2DContract.js","sourceRoot":"","sources":["../src/Skin2DContract.ts"],"names":[],"mappings":""}
|
package/dist/Slot2D.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Attachment2D } from './Attachment2D.ts';
|
|
2
|
+
import type { Skeleton2DSlotDeform } from './Skeleton2DSlotDeform.ts';
|
|
3
|
+
export interface Slot2D {
|
|
4
|
+
attachment?: Attachment2D | null;
|
|
5
|
+
deform?: Skeleton2DSlotDeform | null;
|
|
6
|
+
boneIndex: number;
|
|
7
|
+
color?: number;
|
|
8
|
+
name?: string | null;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Slot2D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slot2D.d.ts","sourceRoot":"","sources":["../src/Slot2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAStE,MAAM,WAAW,MAAM;IACrB,UAAU,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;IAGjC,MAAM,CAAC,EAAE,oBAAoB,GAAG,IAAI,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAElB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB"}
|
package/dist/Slot2D.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slot2D.js","sourceRoot":"","sources":["../src/Slot2D.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransformInherit2D.d.ts","sourceRoot":"","sources":["../src/TransformInherit2D.ts"],"names":[],"mappings":"AAgBA,MAAM,WAAW,kBAAkB;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransformInherit2D.js","sourceRoot":"","sources":["../src/TransformInherit2D.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare const TransformMode2D: {
|
|
2
|
+
Normal: {
|
|
3
|
+
reflection: true;
|
|
4
|
+
rotation: true;
|
|
5
|
+
scale: true;
|
|
6
|
+
translation: true;
|
|
7
|
+
};
|
|
8
|
+
OnlyTranslation: {
|
|
9
|
+
reflection: false;
|
|
10
|
+
rotation: false;
|
|
11
|
+
scale: false;
|
|
12
|
+
translation: true;
|
|
13
|
+
};
|
|
14
|
+
NoRotationOrReflection: {
|
|
15
|
+
reflection: false;
|
|
16
|
+
rotation: false;
|
|
17
|
+
scale: true;
|
|
18
|
+
translation: true;
|
|
19
|
+
};
|
|
20
|
+
NoScale: {
|
|
21
|
+
reflection: true;
|
|
22
|
+
rotation: true;
|
|
23
|
+
scale: false;
|
|
24
|
+
translation: true;
|
|
25
|
+
};
|
|
26
|
+
NoScaleOrReflection: {
|
|
27
|
+
reflection: false;
|
|
28
|
+
rotation: true;
|
|
29
|
+
scale: false;
|
|
30
|
+
translation: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=TransformMode2D.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransformMode2D.d.ts","sourceRoot":"","sources":["../src/TransformMode2D.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMkB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Named `TransformInherit2D` presets for the five Spine/DragonBones inherit modes — a one-token authoring
|
|
2
|
+
// vocabulary over the four-axis boolean model, not a distinct type. A caller who thinks in Spine terms
|
|
3
|
+
// writes `TransformMode2D.NoScale`; a caller who needs an arbitrary axis combination (e.g. a DragonBones
|
|
4
|
+
// bone that keeps rotation and scale but strips reflection) sets the `TransformInherit2D` booleans directly.
|
|
5
|
+
// The presets are module constants shared by reference, so a bone assigned a preset compares identity-equal
|
|
6
|
+
// to it (cloneSkeleton2D keeps the reference — the value is immutable by convention).
|
|
7
|
+
//
|
|
8
|
+
// Normal — inherit rotation + scale + reflection + translation (world = parent × local).
|
|
9
|
+
// OnlyTranslation — inherit translation only; rotation/scale come from the bone's own local setup
|
|
10
|
+
// (e.g. a held item that stays upright on a rotating arm).
|
|
11
|
+
// NoRotationOrReflection — inherit the parent's scale but strip its rotation and reflection.
|
|
12
|
+
// NoScale — inherit the parent's rotation and reflection but not its scale.
|
|
13
|
+
// NoScaleOrReflection — inherit the parent's rotation but neither its scale nor its reflection.
|
|
14
|
+
export const TransformMode2D = {
|
|
15
|
+
Normal: { reflection: true, rotation: true, scale: true, translation: true },
|
|
16
|
+
OnlyTranslation: { reflection: false, rotation: false, scale: false, translation: true },
|
|
17
|
+
NoRotationOrReflection: { reflection: false, rotation: false, scale: true, translation: true },
|
|
18
|
+
NoScale: { reflection: true, rotation: true, scale: false, translation: true },
|
|
19
|
+
NoScaleOrReflection: { reflection: false, rotation: true, scale: false, translation: true },
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=TransformMode2D.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TransformMode2D.js","sourceRoot":"","sources":["../src/TransformMode2D.ts"],"names":[],"mappings":"AAEA,0GAA0G;AAC1G,uGAAuG;AACvG,yGAAyG;AACzG,6GAA6G;AAC7G,4GAA4G;AAC5G,sFAAsF;AACtF,EAAE;AACF,2GAA2G;AAC3G,2GAA2G;AAC3G,sFAAsF;AACtF,+FAA+F;AAC/F,6FAA6F;AAC7F,qGAAqG;AACrG,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IAC5E,eAAe,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE;IACxF,sBAAsB,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE;IAC9F,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE;IAC9E,mBAAmB,EAAE,EAAE,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE;CAC/C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { AnimationClip
|
|
1
|
+
import type { AnimationClip } from '@flighthq/animation/contract';
|
|
2
|
+
import type { Skeleton2D } from './contract.skeleton2d-types.ts';
|
|
2
3
|
export declare function applyAnimationClipToSkeleton2D(clip: Readonly<AnimationClip>, setup: Readonly<Skeleton2D>, pose: Skeleton2D, time: number): void;
|
|
3
4
|
//# sourceMappingURL=applyAnimationClipToSkeleton2D.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyAnimationClipToSkeleton2D.d.ts","sourceRoot":"","sources":["../src/applyAnimationClipToSkeleton2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAA6B,MAAM,
|
|
1
|
+
{"version":3,"file":"applyAnimationClipToSkeleton2D.d.ts","sourceRoot":"","sources":["../src/applyAnimationClipToSkeleton2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAElE,OAAO,KAAK,EAAE,UAAU,EAA6B,MAAM,gCAAgC,CAAC;AA0B5F,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,QAAQ,CAAC,aAAa,CAAC,EAC7B,KAAK,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC3B,IAAI,EAAE,UAAU,EAChB,IAAI,EAAE,MAAM,GACX,IAAI,CAkBN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSkeleton2DAnimationTargetBinder } from './skeleton2dAnimationTarget';
|
|
1
|
+
import { getSkeleton2DAnimationTargetBinder } from './skeleton2dAnimationTarget.js';
|
|
2
2
|
// Poses `pose` from an AnimationClip at `time` by COMPOSING each channel's sampled value onto the
|
|
3
3
|
// corresponding `setup` bone — the 2D-skeletal analogue of @flighthq/scene3d's `applyAnimationClipToScene3D`,
|
|
4
4
|
// but relative rather than absolute. This mirrors Spine's SkeletonData(setup)/Skeleton(instance) split:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applyAnimationClipToSkeleton2D.js","sourceRoot":"","sources":["../src/applyAnimationClipToSkeleton2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applyAnimationClipToSkeleton2D.js","sourceRoot":"","sources":["../src/applyAnimationClipToSkeleton2D.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kCAAkC,EAAE,MAAM,gCAAgC,CAAC;AAEpF,kGAAkG;AAClG,8GAA8G;AAC9G,wGAAwG;AACxG,8GAA8G;AAC9G,yGAAyG;AACzG,2GAA2G;AAC3G,8GAA8G;AAC9G,yGAAyG;AACzG,EAAE;AACF,0GAA0G;AAC1G,yGAAyG;AACzG,0GAA0G;AAC1G,oDAAoD;AACpD,EAAE;AACF,2GAA2G;AAC3G,wGAAwG;AACxG,oGAAoG;AACpG,sCAAsC;AACtC,EAAE;AACF,yGAAyG;AACzG,yGAAyG;AACzG,yGAAyG;AACzG,wGAAwG;AACxG,MAAM,UAAU,8BAA8B,CAC5C,IAA6B,EAC7B,KAA2B,EAC3B,IAAgB,EAChB,IAAY;IAEZ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CACb,mHAAmH,CACpH,CAAC;IACJ,CAAC;IACD,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACzC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,MAAM,GAAG,OAAO,CAAC,SAA6C,CAAC;QACrE,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ;YAAE,SAAS;QAC5D,sGAAsG;QACtG,qGAAqG;QACrG,6EAA6E;QAC7E,MAAM,IAAI,GAAG,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,IAAI,KAAK,IAAI;YAAE,SAAS;QAC5B,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { BoundingBoxAttachment2D, Skeleton2D } from '
|
|
1
|
+
import type { BoundingBoxAttachment2D, Skeleton2D } from './contract.skeleton2d-types.ts';
|
|
2
2
|
export declare function computeSkeleton2DBoundingBoxAttachmentVertices(out: Float32Array, attachment: Readonly<BoundingBoxAttachment2D>, skeleton: Readonly<Skeleton2D>, boneIndex: number, deform?: Readonly<Float32Array> | null): void;
|
|
3
3
|
//# sourceMappingURL=boundingBoxAttachment2D.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boundingBoxAttachment2D.d.ts","sourceRoot":"","sources":["../src/boundingBoxAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"boundingBoxAttachment2D.d.ts","sourceRoot":"","sources":["../src/boundingBoxAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAY1F,wBAAgB,8CAA8C,CAC5D,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,QAAQ,CAAC,uBAAuB,CAAC,EAC7C,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAW,GAC3C,IAAI,CAUN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints';
|
|
1
|
+
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints.js';
|
|
2
2
|
// Produces a bounding box's world polygon as flat interleaved `[x0, y0, x1, y1, …]` in `out` (length
|
|
3
3
|
// ≥ 2 × attachment.pointCount), for hit testing and region queries. Requires
|
|
4
4
|
// `computeSkeleton2DWorldTransforms` to have filled `skeleton.worldMatrices`. Out-parameter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boundingBoxAttachment2D.js","sourceRoot":"","sources":["../src/boundingBoxAttachment2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"boundingBoxAttachment2D.js","sourceRoot":"","sources":["../src/boundingBoxAttachment2D.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,qGAAqG;AACrG,6EAA6E;AAC7E,6FAA6F;AAC7F,mBAAmB;AACnB,EAAE;AACF,yGAAyG;AACzG,0GAA0G;AAC1G,0GAA0G;AAC1G,aAAa;AACb,MAAM,UAAU,8CAA8C,CAC5D,GAAiB,EACjB,UAA6C,EAC7C,QAA8B,EAC9B,SAAiB,EACjB,MAAM,GAAkC,IAAI;IAE5C,8BAA8B,CAC5B,GAAG,EACH,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,QAAQ,EACnB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,yBAAyB,CAC1B,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ClippingAttachment2D, Skeleton2D } from '
|
|
1
|
+
import type { ClippingAttachment2D, Skeleton2D } from './contract.skeleton2d-types.ts';
|
|
2
2
|
export declare function computeSkeleton2DClippingAttachmentVertices(out: Float32Array, attachment: Readonly<ClippingAttachment2D>, skeleton: Readonly<Skeleton2D>, boneIndex: number, deform?: Readonly<Float32Array> | null): void;
|
|
3
3
|
export declare function getSkeleton2DClippingAttachmentSlotRange(attachment: Readonly<ClippingAttachment2D>, slotIndex: number, slotCount: number): {
|
|
4
4
|
end: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clippingAttachment2D.d.ts","sourceRoot":"","sources":["../src/clippingAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"clippingAttachment2D.d.ts","sourceRoot":"","sources":["../src/clippingAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAWvF,wBAAgB,2CAA2C,CACzD,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC1C,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAW,GAC3C,IAAI,CAUN;AASD,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAAC,EAC1C,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAChB;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAKhC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints';
|
|
1
|
+
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints.js';
|
|
2
2
|
// Produces a clipping polygon's world points as flat interleaved `[x0, y0, x1, y1, …]` in `out` (length
|
|
3
3
|
// ≥ 2 × attachment.pointCount). Requires `computeSkeleton2DWorldTransforms` to have filled
|
|
4
4
|
// `skeleton.worldMatrices`. Out-parameter, allocation-free.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clippingAttachment2D.js","sourceRoot":"","sources":["../src/clippingAttachment2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"clippingAttachment2D.js","sourceRoot":"","sources":["../src/clippingAttachment2D.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,wGAAwG;AACxG,2FAA2F;AAC3F,4DAA4D;AAC5D,EAAE;AACF,wGAAwG;AACxG,uGAAuG;AACvG,iFAAiF;AACjF,iEAAiE;AACjE,MAAM,UAAU,2CAA2C,CACzD,GAAiB,EACjB,UAA0C,EAC1C,QAA8B,EAC9B,SAAiB,EACjB,MAAM,GAAkC,IAAI;IAE5C,8BAA8B,CAC5B,GAAG,EACH,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,QAAQ,EACnB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,sBAAsB,CACvB,CAAC;AACJ,CAAC;AAED,wGAAwG;AACxG,4FAA4F;AAC5F,wGAAwG;AACxG,+DAA+D;AAC/D,EAAE;AACF,wGAAwG;AACxG,qGAAqG;AACrG,MAAM,UAAU,wCAAwC,CACtD,UAA0C,EAC1C,SAAiB,EACjB,SAAiB;IAEjB,MAAM,KAAK,GAAG,SAAS,GAAG,CAAC,CAAC;IAC5B,MAAM,QAAQ,GAAG,UAAU,CAAC,YAAY,CAAC;IACzC,MAAM,GAAG,GAAG,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;IAC7E,OAAO,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC;AAC9C,CAAC"}
|
package/dist/contract.d.ts
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export { initializeSkeleton2DDrawOrderAnimationTarget } from './skeleton2dDrawOrderTarget';
|
|
1
|
+
export * from './applyAnimationClipToSkeleton2D.ts';
|
|
2
|
+
export * from './boundingBoxAttachment2D.ts';
|
|
3
|
+
export * from './clippingAttachment2D.ts';
|
|
4
|
+
export * from './contract.skeleton2d-types.ts';
|
|
5
|
+
export * from './deformAnimationTarget2D.ts';
|
|
6
|
+
export * from './deformMeshAttachment2D.ts';
|
|
7
|
+
export * from './deformPathAttachment2D.ts';
|
|
8
|
+
export * from './enableSkeleton2DGuards.ts';
|
|
9
|
+
export * from './explainSkeleton2DChannel.ts';
|
|
10
|
+
export * from './explainSkeleton2DDeformLength.ts';
|
|
11
|
+
export * from './ikConstraint2D.ts';
|
|
12
|
+
export * from './pathConstraint2D.ts';
|
|
13
|
+
export * from './pointAttachment2D.ts';
|
|
14
|
+
export * from './regionAttachment2D.ts';
|
|
15
|
+
export * from './skeleton2d.ts';
|
|
16
|
+
export * from './skeleton2dAnimationTarget.ts';
|
|
17
|
+
export * from './skeleton2dConstants.ts';
|
|
18
|
+
export * from './skeleton2dConstraint.ts';
|
|
19
|
+
export * from './skeleton2dDrawOrderTarget.ts';
|
|
20
|
+
export * from './skeleton2dGuards.ts';
|
|
21
|
+
export * from './skin2D.ts';
|
|
22
|
+
export * from './skinAttachment2DPoints.ts';
|
|
23
|
+
export * from './slotDeform2D.ts';
|
|
24
|
+
export * from './transformConstraint2D.ts';
|
|
26
25
|
//# sourceMappingURL=contract.d.ts.map
|
package/dist/contract.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
|
package/dist/contract.js
CHANGED
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './
|
|
8
|
-
export * from './
|
|
9
|
-
export * from './
|
|
10
|
-
export * from './
|
|
11
|
-
export * from './
|
|
12
|
-
export * from './
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './
|
|
17
|
-
export * from './
|
|
18
|
-
export * from './
|
|
19
|
-
export * from './
|
|
20
|
-
export * from './
|
|
21
|
-
export * from './
|
|
22
|
-
export * from './
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export { initializeSkeleton2DDrawOrderAnimationTarget } from './skeleton2dDrawOrderTarget';
|
|
1
|
+
export * from './applyAnimationClipToSkeleton2D.js';
|
|
2
|
+
export * from './boundingBoxAttachment2D.js';
|
|
3
|
+
export * from './clippingAttachment2D.js';
|
|
4
|
+
export * from './contract.skeleton2d-types.js';
|
|
5
|
+
export * from './deformAnimationTarget2D.js';
|
|
6
|
+
export * from './deformMeshAttachment2D.js';
|
|
7
|
+
export * from './deformPathAttachment2D.js';
|
|
8
|
+
export * from './enableSkeleton2DGuards.js';
|
|
9
|
+
export * from './explainSkeleton2DChannel.js';
|
|
10
|
+
export * from './explainSkeleton2DDeformLength.js';
|
|
11
|
+
export * from './ikConstraint2D.js';
|
|
12
|
+
export * from './pathConstraint2D.js';
|
|
13
|
+
export * from './pointAttachment2D.js';
|
|
14
|
+
export * from './regionAttachment2D.js';
|
|
15
|
+
export * from './skeleton2d.js';
|
|
16
|
+
export * from './skeleton2dAnimationTarget.js';
|
|
17
|
+
export * from './skeleton2dConstants.js';
|
|
18
|
+
export * from './skeleton2dConstraint.js';
|
|
19
|
+
export * from './skeleton2dDrawOrderTarget.js';
|
|
20
|
+
export * from './skeleton2dGuards.js';
|
|
21
|
+
export * from './skin2D.js';
|
|
22
|
+
export * from './skinAttachment2DPoints.js';
|
|
23
|
+
export * from './slotDeform2D.js';
|
|
24
|
+
export * from './transformConstraint2D.js';
|
|
26
25
|
//# sourceMappingURL=contract.js.map
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export * from './Attachment2D.ts';
|
|
2
|
+
export * from './AttachmentSkin2D.ts';
|
|
3
|
+
export * from './Bone2D.ts';
|
|
4
|
+
export * from './BoundingBoxAttachment2DContract.ts';
|
|
5
|
+
export * from './ClippingAttachment2DContract.ts';
|
|
6
|
+
export * from './MeshAttachment2D.ts';
|
|
7
|
+
export * from './PathAttachment2D.ts';
|
|
8
|
+
export * from './PointAttachment2DContract.ts';
|
|
9
|
+
export * from './RegionAttachment2DContract.ts';
|
|
10
|
+
export * from './Skeleton2DContract.ts';
|
|
11
|
+
export * from './Skeleton2DAnimationPath.ts';
|
|
12
|
+
export * from './Skeleton2DAnimationTargetContract.ts';
|
|
13
|
+
export * from './Skeleton2DAnimationTargetBinder.ts';
|
|
14
|
+
export * from './Skeleton2DAnimationTargetKind.ts';
|
|
15
|
+
export * from './Skeleton2DConstraintContract.ts';
|
|
16
|
+
export * from './Skeleton2DDeformAnimationTarget.ts';
|
|
17
|
+
export * from './Skeleton2DDeformLengthExplanation.ts';
|
|
18
|
+
export * from './Skeleton2DDrawOrderAnimationTarget.ts';
|
|
19
|
+
export * from './Skeleton2DDrawOrderTimeline.ts';
|
|
20
|
+
export * from './Skeleton2DGuardsContract.ts';
|
|
21
|
+
export * from './Skeleton2DIkConstraint.ts';
|
|
22
|
+
export * from './Skeleton2DPathConstraint.ts';
|
|
23
|
+
export * from './Skeleton2DSlotAnimationTarget.ts';
|
|
24
|
+
export * from './Skeleton2DSlotDeform.ts';
|
|
25
|
+
export * from './Skeleton2DTransformConstraint.ts';
|
|
26
|
+
export * from './Skin2DContract.ts';
|
|
27
|
+
export * from './Slot2D.ts';
|
|
28
|
+
export * from './TransformInherit2D.ts';
|
|
29
|
+
export * from './TransformMode2D.ts';
|
|
30
|
+
//# sourceMappingURL=contract.skeleton2d-types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.skeleton2d-types.d.ts","sourceRoot":"","sources":["../src/contract.skeleton2d-types.ts"],"names":[],"mappings":"AAEA,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Acyclic contract-only entry for the rig, attachment, animation-target, and constraint
|
|
2
|
+
// contracts owned by Skeleton2D. Runtime modules are exported by the published contract.
|
|
3
|
+
export * from './Attachment2D.js';
|
|
4
|
+
export * from './AttachmentSkin2D.js';
|
|
5
|
+
export * from './Bone2D.js';
|
|
6
|
+
export * from './BoundingBoxAttachment2DContract.js';
|
|
7
|
+
export * from './ClippingAttachment2DContract.js';
|
|
8
|
+
export * from './MeshAttachment2D.js';
|
|
9
|
+
export * from './PathAttachment2D.js';
|
|
10
|
+
export * from './PointAttachment2DContract.js';
|
|
11
|
+
export * from './RegionAttachment2DContract.js';
|
|
12
|
+
export * from './Skeleton2DContract.js';
|
|
13
|
+
export * from './Skeleton2DAnimationPath.js';
|
|
14
|
+
export * from './Skeleton2DAnimationTargetContract.js';
|
|
15
|
+
export * from './Skeleton2DAnimationTargetBinder.js';
|
|
16
|
+
export * from './Skeleton2DAnimationTargetKind.js';
|
|
17
|
+
export * from './Skeleton2DConstraintContract.js';
|
|
18
|
+
export * from './Skeleton2DDeformAnimationTarget.js';
|
|
19
|
+
export * from './Skeleton2DDeformLengthExplanation.js';
|
|
20
|
+
export * from './Skeleton2DDrawOrderAnimationTarget.js';
|
|
21
|
+
export * from './Skeleton2DDrawOrderTimeline.js';
|
|
22
|
+
export * from './Skeleton2DGuardsContract.js';
|
|
23
|
+
export * from './Skeleton2DIkConstraint.js';
|
|
24
|
+
export * from './Skeleton2DPathConstraint.js';
|
|
25
|
+
export * from './Skeleton2DSlotAnimationTarget.js';
|
|
26
|
+
export * from './Skeleton2DSlotDeform.js';
|
|
27
|
+
export * from './Skeleton2DTransformConstraint.js';
|
|
28
|
+
export * from './Skin2DContract.js';
|
|
29
|
+
export * from './Slot2D.js';
|
|
30
|
+
export * from './TransformInherit2D.js';
|
|
31
|
+
export * from './TransformMode2D.js';
|
|
32
|
+
//# sourceMappingURL=contract.skeleton2d-types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract.skeleton2d-types.js","sourceRoot":"","sources":["../src/contract.skeleton2d-types.ts"],"names":[],"mappings":"AAAA,wFAAwF;AACxF,yFAAyF;AACzF,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wCAAwC,CAAC;AACvD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,sCAAsC,CAAC;AACrD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deformAnimationTarget2D.d.ts","sourceRoot":"","sources":["../src/deformAnimationTarget2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deformAnimationTarget2D.d.ts","sourceRoot":"","sources":["../src/deformAnimationTarget2D.ts"],"names":[],"mappings":"AAWA,wBAAgB,uCAAuC,IAAI,IAAI,CAE9D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sampleAnimationTrack } from '@flighthq/animation/contract';
|
|
2
|
-
import { Skeleton2DAnimationTargetKind } from '
|
|
3
|
-
import { registerSkeleton2DAnimationTargetBinder } from './skeleton2dAnimationTarget';
|
|
4
|
-
import { setSkeleton2DSlotDeform } from './slotDeform2D';
|
|
2
|
+
import { Skeleton2DAnimationTargetKind } from './contract.skeleton2d-types.js';
|
|
3
|
+
import { registerSkeleton2DAnimationTargetBinder } from './skeleton2dAnimationTarget.js';
|
|
4
|
+
import { setSkeleton2DSlotDeform } from './slotDeform2D.js';
|
|
5
5
|
// Opts a bundle into deform channels. Unlike the bone and slot binders — which are pre-entered because a
|
|
6
6
|
// bundle that shed them would leave the pose pass a silent no-op — a rig with no deform timeline should
|
|
7
7
|
// not carry this, so it registers explicitly like a constraint solver does.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deformAnimationTarget2D.js","sourceRoot":"","sources":["../src/deformAnimationTarget2D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"deformAnimationTarget2D.js","sourceRoot":"","sources":["../src/deformAnimationTarget2D.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAIpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC/E,OAAO,EAAE,uCAAuC,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,yGAAyG;AACzG,wGAAwG;AACxG,4EAA4E;AAC5E,MAAM,UAAU,uCAAuC;IACrD,uCAAuC,CAAC,6BAA6B,CAAC,MAAM,EAAE,2BAA2B,CAAC,CAAC;AAC7G,CAAC;AAED,uGAAuG;AACvG,gEAAgE;AAChE,EAAE;AACF,0GAA0G;AAC1G,2GAA2G;AAC3G,wGAAwG;AACxG,wCAAwC;AACxC,EAAE;AACF,2GAA2G;AAC3G,2CAA2C;AAC3C,SAAS,2BAA2B,CAClC,OAAmC,EACnC,MAA4B,EAC5B,IAAgB,EAChB,MAAe,EACf,IAAY;IAEZ,MAAM,YAAY,GAAG,MAAmD,CAAC;IACzE,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;IACzB,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO;IAClD,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;IACzC,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,GAAG,CAAC,IAAI,SAAS,IAAI,KAAK,CAAC,MAAM;QAAE,OAAO;IAExF,MAAM,UAAU,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC;IAC5C,IAAI,UAAU,IAAI,CAAC;QAAE,OAAO;IAC5B,IAAI,QAAQ,CAAC,MAAM,GAAG,UAAU;QAAE,QAAQ,GAAG,IAAI,YAAY,CAAC,UAAU,CAAC,CAAC;IAC1E,oBAAoB,CAAC,QAAQ,EAAE,OAAO,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACpD,wGAAwG;IACxG,sCAAsC;IACtC,uBAAuB,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,YAAY,CAAC,UAAU,IAAI,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC;AAC/G,CAAC;AAED,IAAI,QAAQ,GAAG,IAAI,YAAY,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { MeshAttachment2D, Skeleton2D } from '
|
|
1
|
+
import type { MeshAttachment2D, Skeleton2D } from './contract.skeleton2d-types.ts';
|
|
2
2
|
export declare function deformSkeleton2DMeshAttachment(out: Float32Array, attachment: Readonly<MeshAttachment2D>, skeleton: Readonly<Skeleton2D>, boneIndex: number, deform?: Readonly<Float32Array> | null): void;
|
|
3
3
|
//# sourceMappingURL=deformMeshAttachment2D.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deformMeshAttachment2D.d.ts","sourceRoot":"","sources":["../src/deformMeshAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deformMeshAttachment2D.d.ts","sourceRoot":"","sources":["../src/deformMeshAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AA2BnF,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,YAAY,EACjB,UAAU,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EACtC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAW,GAC3C,IAAI,CAUN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints';
|
|
1
|
+
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints.js';
|
|
2
2
|
// Deforms a MeshAttachment2D's vertices into flat interleaved world positions `[x0, y0, x1, y1, …]` in
|
|
3
3
|
// `out` (length ≥ 2 × attachment.vertexCount), for the display layer to draw. Requires
|
|
4
4
|
// `computeSkeleton2DWorldTransforms` to have filled `skeleton.worldMatrices`. Out-parameter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deformMeshAttachment2D.js","sourceRoot":"","sources":["../src/deformMeshAttachment2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deformMeshAttachment2D.js","sourceRoot":"","sources":["../src/deformMeshAttachment2D.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,uGAAuG;AACvG,uFAAuF;AACvF,6FAA6F;AAC7F,mBAAmB;AACnB,EAAE;AACF,2GAA2G;AAC3G,2GAA2G;AAC3G,mFAAmF;AACnF,iGAAiG;AACjG,4GAA4G;AAC5G,mFAAmF;AACnF,EAAE;AACF,oGAAoG;AACpG,wGAAwG;AACxG,kGAAkG;AAClG,wGAAwG;AACxG,2GAA2G;AAC3G,0GAA0G;AAC1G,yGAAyG;AACzG,4BAA4B;AAC5B,EAAE;AACF,0GAA0G;AAC1G,gGAAgG;AAChG,8CAA8C;AAC9C,MAAM,UAAU,8BAA8B,CAC5C,GAAiB,EACjB,UAAsC,EACtC,QAA8B,EAC9B,SAAiB,EACjB,MAAM,GAAkC,IAAI;IAE5C,8BAA8B,CAC5B,GAAG,EACH,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,QAAQ,EACnB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import type { Path
|
|
1
|
+
import type { Path } from '@flighthq/path/contract';
|
|
2
|
+
import type { PathAttachment2D, Skeleton2D } from './contract.skeleton2d-types.ts';
|
|
2
3
|
export declare function deformSkeleton2DPathAttachment(out: Path, attachment: Readonly<PathAttachment2D>, skeleton: Readonly<Skeleton2D>, boneIndex: number, deform?: Readonly<Float32Array> | null): void;
|
|
3
4
|
//# sourceMappingURL=deformPathAttachment2D.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deformPathAttachment2D.d.ts","sourceRoot":"","sources":["../src/deformPathAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deformPathAttachment2D.d.ts","sourceRoot":"","sources":["../src/deformPathAttachment2D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AA0BnF,wBAAgB,8BAA8B,CAC5C,GAAG,EAAE,IAAI,EACT,UAAU,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EACtC,QAAQ,EAAE,QAAQ,CAAC,UAAU,CAAC,EAC9B,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAW,GAC3C,IAAI,CAkBN"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints';
|
|
1
|
+
import { skinSkeleton2DAttachmentPoints } from './skinAttachment2DPoints.js';
|
|
2
2
|
// Deforms a PathAttachment2D into `out`, filling its `data` with world coordinates under the attachment's
|
|
3
3
|
// own verb stream. Requires `computeSkeleton2DWorldTransforms` to have filled `skeleton.worldMatrices`.
|
|
4
4
|
// Out-parameter; allocates only when `out`'s arrays have to grow to fit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deformPathAttachment2D.js","sourceRoot":"","sources":["../src/deformPathAttachment2D.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deformPathAttachment2D.js","sourceRoot":"","sources":["../src/deformPathAttachment2D.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAE7E,0GAA0G;AAC1G,wGAAwG;AACxG,yEAAyE;AACzE,EAAE;AACF,mGAAmG;AACnG,0GAA0G;AAC1G,sGAAsG;AACtG,6BAA6B;AAC7B,EAAE;AACF,qGAAqG;AACrG,mGAAmG;AACnG,wGAAwG;AACxG,oGAAoG;AACpG,2DAA2D;AAC3D,EAAE;AACF,yGAAyG;AACzG,oGAAoG;AACpG,yGAAyG;AACzG,kFAAkF;AAClF,EAAE;AACF,uGAAuG;AACvG,yGAAyG;AACzG,gDAAgD;AAChD,MAAM,UAAU,8BAA8B,CAC5C,GAAS,EACT,UAAsC,EACtC,QAA8B,EAC9B,SAAiB,EACjB,MAAM,GAAkC,IAAI;IAE5C,MAAM,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;IACrC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC;IACtB,MAAM,WAAW,GAAG,GAAG,CAAC,QAAQ,CAAC;IACjC,WAAW,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE;QAAE,WAAW,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IACvE,GAAG,CAAC,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC;IACjC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,UAAU,GAAG,CAAC,CAAC;IAExC,8BAA8B,CAC5B,IAAI,EACJ,UAAU,CAAC,IAAI,EACf,UAAU,CAAC,QAAQ,EACnB,QAAQ,EACR,SAAS,EACT,MAAM,EACN,kBAAkB,CACnB,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { LogState } from '@flighthq/log/contract';
|
|
1
2
|
export declare function disableSkeleton2DGuards(): void;
|
|
2
3
|
/**
|
|
3
4
|
* Installs the caller-facing skeleton guards (opt-in, dev-only). Idempotent.
|
|
@@ -17,6 +18,8 @@ export declare function disableSkeleton2DGuards(): void;
|
|
|
17
18
|
* The messages live here rather than beside the code that knows the fact, so a shipped build that never
|
|
18
19
|
* imports this module carries neither them nor `@flighthq/log`. Every case also has a `has*`/`explain*`
|
|
19
20
|
* query for a caller that wants the fact as data instead of a log line.
|
|
21
|
+
*
|
|
22
|
+
* Warnings go to the caller-owned `logState`, stamped with `nowMs`, the caller's clock reading at enable.
|
|
20
23
|
*/
|
|
21
|
-
export declare function enableSkeleton2DGuards(): void;
|
|
24
|
+
export declare function enableSkeleton2DGuards(logState: LogState, nowMs: number): void;
|
|
22
25
|
//# sourceMappingURL=enableSkeleton2DGuards.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enableSkeleton2DGuards.d.ts","sourceRoot":"","sources":["../src/enableSkeleton2DGuards.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"enableSkeleton2DGuards.d.ts","sourceRoot":"","sources":["../src/enableSkeleton2DGuards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAQvD,wBAAgB,uBAAuB,IAAI,IAAI,CAG9C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAG9E"}
|