exodeui-vanilla 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 CHANGED
@@ -686,6 +686,7 @@ export declare interface ExodeUICanvasOptions extends Omit<ExodeCanvasOptions, '
686
686
  export declare class ExodeUIEngine {
687
687
  private artboard;
688
688
  private objectStates;
689
+ private extrusionPoses;
689
690
  private trailHistories;
690
691
  private physicsEngine;
691
692
  private physicsFx;
@@ -734,6 +735,10 @@ export declare class ExodeUIEngine {
734
735
  pixelRatio: number | null;
735
736
  private getPixelRatio;
736
737
  private lastHoveredObjectId;
738
+ /** Physics contacts that started during the last step, dispatched to 'Collision' rules after it. */
739
+ private pendingCollisions;
740
+ /** The other body while a 'Collision' event is being dispatched (null for every other event). */
741
+ private collisionOtherId;
737
742
  private _lastPointerPos;
738
743
  private _prevPointerPos;
739
744
  private _mouseDelta;
@@ -755,6 +760,8 @@ export declare class ExodeUIEngine {
755
760
  };
756
761
  private _totalScroll;
757
762
  private draggingBehaviors;
763
+ /** Scene physics makes un-configured shapes bodies only while no object has opted in. */
764
+ private sceneDefaultsAllBodies;
758
765
  private dragStartPointer;
759
766
  private dragStartPositions;
760
767
  private isMouseDown;
@@ -974,6 +981,14 @@ export declare class ExodeUIEngine {
974
981
  private solveConstraints;
975
982
  private getGlobalTransform;
976
983
  private globalToLocal;
984
+ /**
985
+ * The same exact solve as the editor, so the two can't disagree. It blends from the FK
986
+ * pose, so Strength 0 is pure FK: `ikPoses` remembers the pose under the last solve, which
987
+ * is replaced whenever an animation writes a new rotation.
988
+ */
989
+ private ikPoses;
990
+ private solveTwoBoneIK;
991
+ private getBoneTipWorld;
977
992
  private solveIK;
978
993
  private computeSpring;
979
994
  handlePointerInput(type: string, canvasX: number, canvasY: number, canvasWidth: number, canvasHeight: number, pointerId?: number): void;
@@ -1006,6 +1021,10 @@ export declare class ExodeUIEngine {
1006
1021
  setObjectField(id: string, key: string, value: any): void;
1007
1022
  /** Resize an object and rebuild its physics body in place (for weights that grow with data). */
1008
1023
  resizeBody(id: string, width: number, height: number): void;
1024
+ /** Dispatch a physics contact to `selfId`'s 'Collision' rules, with `otherId` as the body it hit. */
1025
+ private fireCollision;
1026
+ /** A rule's `collisionWith` matches the other body itself or any group it sits in; empty matches anything. */
1027
+ private collisionMatches;
1009
1028
  private fireEventForObject;
1010
1029
  private fireAnalyticsEvent;
1011
1030
  private getAnimationDuration;
@@ -1075,6 +1094,10 @@ export declare class ExodeUIEngine {
1075
1094
  private calculateTransform;
1076
1095
  private mapFontWeight;
1077
1096
  private drawTextDecoration;
1097
+ /** The mesh for an extruded group whose pose has been animated or bound, else null (its children hold the rest pose). */
1098
+ private getExtrusionPose;
1099
+ /** Faces are sorted back to front and centred on the group, matching what the editor draws. */
1100
+ private drawExtrusionPose;
1078
1101
  private renderObject;
1079
1102
  private applyLightTrailUnderlay;
1080
1103
  private applyOuterGlowUnderlay;
@@ -1089,6 +1112,12 @@ export declare class ExodeUIEngine {
1089
1112
  private applyObjectTransform;
1090
1113
  private applyCustomEffect;
1091
1114
  private applyPatternGrid;
1115
+ /**
1116
+ * CSS-style inset shadows: `style.effects` entries of
1117
+ * `{ type: 'InnerShadow', color, opacity, blur, offsetX, offsetY }`.
1118
+ * A ring (large rect minus the shape) casts its shadow into the clipped shape.
1119
+ */
1120
+ private applyInnerShadowOverlay;
1092
1121
  private applyInnerGlowOverlay;
1093
1122
  private applyArtEffectOverlay;
1094
1123
  /** Helper: shift the hue of a hex/hsl color by degrees, return as hsla */