@frybynite/image-cloud 0.5.0 → 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.
@@ -757,10 +757,12 @@ declare class ImageCloud {
757
757
  /**
758
758
  * Create appropriate image loader based on config
759
759
  * Processes loaders array, merges shared config, wraps in CompositeLoader if needed
760
+ * Uses dynamic imports to trigger loader registration and enable tree-shaking
760
761
  */
761
762
  private createLoader;
762
763
  /**
763
764
  * Create a single loader from a LoaderEntry, merging shared config
765
+ * Uses dynamic imports to trigger loader registration and enable tree-shaking
764
766
  */
765
767
  private createLoaderFromEntry;
766
768
  /**
@@ -1567,6 +1569,21 @@ export declare class ZoomEngine {
1567
1569
  * @param fromDimensions - Optional starting dimensions (for mid-animation reversals)
1568
1570
  */
1569
1571
  private startUnfocusAnimation;
1572
+ /**
1573
+ * Capture the current visual state of an element mid-animation, BEFORE cancelling.
1574
+ *
1575
+ * The computed matrix.e/f include the -50%/-50% centering offset resolved to pixels.
1576
+ * buildDimensionZoomTransform prepends its own translate(-50%,-50%), so passing raw
1577
+ * matrix.e/f doubles the centering and produces the wrong starting position.
1578
+ *
1579
+ * This method extracts the PURE positional offset (pureX = matrix.e + 0.5*midWidth)
1580
+ * and commits width/height/transform to inline styles before the animation is cancelled,
1581
+ * preventing any visual snap.
1582
+ *
1583
+ * Must be called while the animation is still running (offsetWidth reflects animated size).
1584
+ * Caller is responsible for calling animationEngine.cancelAllAnimations() afterwards.
1585
+ */
1586
+ private captureMidAnimationState;
1570
1587
  /**
1571
1588
  * Handle animation completion
1572
1589
  */