framer-motion 12.24.0 → 12.24.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.
@@ -3672,6 +3672,15 @@ function buildSVGPath(attrs, length, spacing = 1, offset = 0, useDashCase = true
3672
3672
  attrs[keys.array] = `${pathLength} ${pathSpacing}`;
3673
3673
  }
3674
3674
 
3675
+ /**
3676
+ * CSS Motion Path properties that should remain as CSS styles on SVG elements.
3677
+ */
3678
+ const cssMotionPathProperties = [
3679
+ "offsetDistance",
3680
+ "offsetPath",
3681
+ "offsetRotate",
3682
+ "offsetAnchor",
3683
+ ];
3675
3684
  /**
3676
3685
  * Build SVG visual attributes, like cx and style.transform
3677
3686
  */
@@ -3712,6 +3721,12 @@ function buildSVGAttrs(state, { attrX, attrY, attrScale, pathLength, pathSpacing
3712
3721
  style.transformBox = styleProp?.transformBox ?? "fill-box";
3713
3722
  delete attrs.transformBox;
3714
3723
  }
3724
+ for (const key of cssMotionPathProperties) {
3725
+ if (attrs[key] !== undefined) {
3726
+ style[key] = attrs[key];
3727
+ delete attrs[key];
3728
+ }
3729
+ }
3715
3730
  // Render attrX/attrY/attrScale as attributes
3716
3731
  if (attrX !== undefined)
3717
3732
  attrs.x = attrX;
@@ -6303,4 +6318,4 @@ exports.useIsPresent = useIsPresent;
6303
6318
  exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
6304
6319
  exports.usePresence = usePresence;
6305
6320
  exports.visualElementStore = visualElementStore;
6306
- //# sourceMappingURL=feature-bundle-DhbxBqkJ.js.map
6321
+ //# sourceMappingURL=feature-bundle-DRMwxyzS.js.map