exodeui-angular 1.0.0 → 1.0.1
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/index.d.ts +29 -0
- package/dist/index.js +33 -28
- package/dist/index.mjs +7515 -6589
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -697,6 +697,7 @@ export declare class ExodeUICanvasComponent implements OnInit, AfterViewInit, On
|
|
|
697
697
|
export declare class ExodeUIEngine {
|
|
698
698
|
private artboard;
|
|
699
699
|
private objectStates;
|
|
700
|
+
private extrusionPoses;
|
|
700
701
|
private trailHistories;
|
|
701
702
|
private physicsEngine;
|
|
702
703
|
private physicsFx;
|
|
@@ -745,6 +746,10 @@ export declare class ExodeUIEngine {
|
|
|
745
746
|
pixelRatio: number | null;
|
|
746
747
|
private getPixelRatio;
|
|
747
748
|
private lastHoveredObjectId;
|
|
749
|
+
/** Physics contacts that started during the last step, dispatched to 'Collision' rules after it. */
|
|
750
|
+
private pendingCollisions;
|
|
751
|
+
/** The other body while a 'Collision' event is being dispatched (null for every other event). */
|
|
752
|
+
private collisionOtherId;
|
|
748
753
|
private _lastPointerPos;
|
|
749
754
|
private _prevPointerPos;
|
|
750
755
|
private _mouseDelta;
|
|
@@ -766,6 +771,8 @@ export declare class ExodeUIEngine {
|
|
|
766
771
|
};
|
|
767
772
|
private _totalScroll;
|
|
768
773
|
private draggingBehaviors;
|
|
774
|
+
/** Scene physics makes un-configured shapes bodies only while no object has opted in. */
|
|
775
|
+
private sceneDefaultsAllBodies;
|
|
769
776
|
private dragStartPointer;
|
|
770
777
|
private dragStartPositions;
|
|
771
778
|
private isMouseDown;
|
|
@@ -985,6 +992,14 @@ export declare class ExodeUIEngine {
|
|
|
985
992
|
private solveConstraints;
|
|
986
993
|
private getGlobalTransform;
|
|
987
994
|
private globalToLocal;
|
|
995
|
+
/**
|
|
996
|
+
* The same exact solve as the editor, so the two can't disagree. It blends from the FK
|
|
997
|
+
* pose, so Strength 0 is pure FK: `ikPoses` remembers the pose under the last solve, which
|
|
998
|
+
* is replaced whenever an animation writes a new rotation.
|
|
999
|
+
*/
|
|
1000
|
+
private ikPoses;
|
|
1001
|
+
private solveTwoBoneIK;
|
|
1002
|
+
private getBoneTipWorld;
|
|
988
1003
|
private solveIK;
|
|
989
1004
|
private computeSpring;
|
|
990
1005
|
handlePointerInput(type: string, canvasX: number, canvasY: number, canvasWidth: number, canvasHeight: number, pointerId?: number): void;
|
|
@@ -1017,6 +1032,10 @@ export declare class ExodeUIEngine {
|
|
|
1017
1032
|
setObjectField(id: string, key: string, value: any): void;
|
|
1018
1033
|
/** Resize an object and rebuild its physics body in place (for weights that grow with data). */
|
|
1019
1034
|
resizeBody(id: string, width: number, height: number): void;
|
|
1035
|
+
/** Dispatch a physics contact to `selfId`'s 'Collision' rules, with `otherId` as the body it hit. */
|
|
1036
|
+
private fireCollision;
|
|
1037
|
+
/** A rule's `collisionWith` matches the other body itself or any group it sits in; empty matches anything. */
|
|
1038
|
+
private collisionMatches;
|
|
1020
1039
|
private fireEventForObject;
|
|
1021
1040
|
private fireAnalyticsEvent;
|
|
1022
1041
|
private getAnimationDuration;
|
|
@@ -1086,6 +1105,10 @@ export declare class ExodeUIEngine {
|
|
|
1086
1105
|
private calculateTransform;
|
|
1087
1106
|
private mapFontWeight;
|
|
1088
1107
|
private drawTextDecoration;
|
|
1108
|
+
/** The mesh for an extruded group whose pose has been animated or bound, else null (its children hold the rest pose). */
|
|
1109
|
+
private getExtrusionPose;
|
|
1110
|
+
/** Faces are sorted back to front and centred on the group, matching what the editor draws. */
|
|
1111
|
+
private drawExtrusionPose;
|
|
1089
1112
|
private renderObject;
|
|
1090
1113
|
private applyLightTrailUnderlay;
|
|
1091
1114
|
private applyOuterGlowUnderlay;
|
|
@@ -1100,6 +1123,12 @@ export declare class ExodeUIEngine {
|
|
|
1100
1123
|
private applyObjectTransform;
|
|
1101
1124
|
private applyCustomEffect;
|
|
1102
1125
|
private applyPatternGrid;
|
|
1126
|
+
/**
|
|
1127
|
+
* CSS-style inset shadows: `style.effects` entries of
|
|
1128
|
+
* `{ type: 'InnerShadow', color, opacity, blur, offsetX, offsetY }`.
|
|
1129
|
+
* A ring (large rect minus the shape) casts its shadow into the clipped shape.
|
|
1130
|
+
*/
|
|
1131
|
+
private applyInnerShadowOverlay;
|
|
1103
1132
|
private applyInnerGlowOverlay;
|
|
1104
1133
|
private applyArtEffectOverlay;
|
|
1105
1134
|
/** Helper: shift the hue of a hex/hsl color by degrees, return as hsla */
|