exodeui-svelte 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
@@ -580,6 +580,7 @@ export { ExodeUICanvas }
580
580
  export declare class ExodeUIEngine {
581
581
  private artboard;
582
582
  private objectStates;
583
+ private extrusionPoses;
583
584
  private trailHistories;
584
585
  private physicsEngine;
585
586
  private physicsFx;
@@ -628,6 +629,10 @@ export declare class ExodeUIEngine {
628
629
  pixelRatio: number | null;
629
630
  private getPixelRatio;
630
631
  private lastHoveredObjectId;
632
+ /** Physics contacts that started during the last step, dispatched to 'Collision' rules after it. */
633
+ private pendingCollisions;
634
+ /** The other body while a 'Collision' event is being dispatched (null for every other event). */
635
+ private collisionOtherId;
631
636
  private _lastPointerPos;
632
637
  private _prevPointerPos;
633
638
  private _mouseDelta;
@@ -649,6 +654,8 @@ export declare class ExodeUIEngine {
649
654
  };
650
655
  private _totalScroll;
651
656
  private draggingBehaviors;
657
+ /** Scene physics makes un-configured shapes bodies only while no object has opted in. */
658
+ private sceneDefaultsAllBodies;
652
659
  private dragStartPointer;
653
660
  private dragStartPositions;
654
661
  private isMouseDown;
@@ -868,6 +875,14 @@ export declare class ExodeUIEngine {
868
875
  private solveConstraints;
869
876
  private getGlobalTransform;
870
877
  private globalToLocal;
878
+ /**
879
+ * The same exact solve as the editor, so the two can't disagree. It blends from the FK
880
+ * pose, so Strength 0 is pure FK: `ikPoses` remembers the pose under the last solve, which
881
+ * is replaced whenever an animation writes a new rotation.
882
+ */
883
+ private ikPoses;
884
+ private solveTwoBoneIK;
885
+ private getBoneTipWorld;
871
886
  private solveIK;
872
887
  private computeSpring;
873
888
  handlePointerInput(type: string, canvasX: number, canvasY: number, canvasWidth: number, canvasHeight: number, pointerId?: number): void;
@@ -900,6 +915,10 @@ export declare class ExodeUIEngine {
900
915
  setObjectField(id: string, key: string, value: any): void;
901
916
  /** Resize an object and rebuild its physics body in place (for weights that grow with data). */
902
917
  resizeBody(id: string, width: number, height: number): void;
918
+ /** Dispatch a physics contact to `selfId`'s 'Collision' rules, with `otherId` as the body it hit. */
919
+ private fireCollision;
920
+ /** A rule's `collisionWith` matches the other body itself or any group it sits in; empty matches anything. */
921
+ private collisionMatches;
903
922
  private fireEventForObject;
904
923
  private fireAnalyticsEvent;
905
924
  private getAnimationDuration;
@@ -969,6 +988,10 @@ export declare class ExodeUIEngine {
969
988
  private calculateTransform;
970
989
  private mapFontWeight;
971
990
  private drawTextDecoration;
991
+ /** The mesh for an extruded group whose pose has been animated or bound, else null (its children hold the rest pose). */
992
+ private getExtrusionPose;
993
+ /** Faces are sorted back to front and centred on the group, matching what the editor draws. */
994
+ private drawExtrusionPose;
972
995
  private renderObject;
973
996
  private applyLightTrailUnderlay;
974
997
  private applyOuterGlowUnderlay;
@@ -983,6 +1006,12 @@ export declare class ExodeUIEngine {
983
1006
  private applyObjectTransform;
984
1007
  private applyCustomEffect;
985
1008
  private applyPatternGrid;
1009
+ /**
1010
+ * CSS-style inset shadows: `style.effects` entries of
1011
+ * `{ type: 'InnerShadow', color, opacity, blur, offsetX, offsetY }`.
1012
+ * A ring (large rect minus the shape) casts its shadow into the clipped shape.
1013
+ */
1014
+ private applyInnerShadowOverlay;
986
1015
  private applyInnerGlowOverlay;
987
1016
  private applyArtEffectOverlay;
988
1017
  /** Helper: shift the hue of a hex/hsl color by degrees, return as hsla */