motion-v 0.13.1-alpha.1 → 0.13.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/cjs/index.js CHANGED
@@ -4585,19 +4585,15 @@ function buildSVGPath(attrs, length, spacing = 1, offset = 0) {
4585
4585
  function convertSvgStyleToAttributes(keyframes2) {
4586
4586
  const attributes = {};
4587
4587
  const styleProps = {};
4588
- let shouldBuildPath = false;
4589
4588
  for (const key in keyframes2) {
4590
4589
  if (key in SVG_STYLE_TO_ATTRIBUTES) {
4591
- if (key === "pathLength") {
4592
- shouldBuildPath = true;
4593
- }
4594
4590
  const value = keyframes2[key];
4595
4591
  attributes[key] = isMotionValue(value) ? value.get() : value;
4596
4592
  } else {
4597
4593
  styleProps[key] = keyframes2[key];
4598
4594
  }
4599
4595
  }
4600
- if (shouldBuildPath) {
4596
+ if (attributes.pathLength) {
4601
4597
  buildSVGPath(attributes, attributes.pathLength, attributes.pathSpacing, attributes.pathOffset);
4602
4598
  }
4603
4599
  return {
@@ -7977,8 +7973,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
7977
7973
  touchAction: props.drag === true ? "none" : `pan-${props.drag === "x" ? "y" : "x"}`
7978
7974
  });
7979
7975
  }
7980
- styleProps = createStyles(styleProps);
7981
- attrsProps.style = styleProps;
7976
+ attrsProps.style = createStyles(styleProps);
7982
7977
  return attrsProps;
7983
7978
  }
7984
7979
  const PrimitiveRef = vue.ref();
@@ -205,8 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
205
  touchAction: props.drag === true ? "none" : `pan-${props.drag === "x" ? "y" : "x"}`
206
206
  });
207
207
  }
208
- styleProps = createStyles(styleProps);
209
- attrsProps.style = styleProps;
208
+ attrsProps.style = createStyles(styleProps);
210
209
  return attrsProps;
211
210
  }
212
211
  const PrimitiveRef = ref();
@@ -100,19 +100,15 @@ function buildSVGPath(attrs, length, spacing = 1, offset = 0) {
100
100
  function convertSvgStyleToAttributes(keyframes) {
101
101
  const attributes = {};
102
102
  const styleProps = {};
103
- let shouldBuildPath = false;
104
103
  for (const key in keyframes) {
105
104
  if (key in SVG_STYLE_TO_ATTRIBUTES) {
106
- if (key === "pathLength") {
107
- shouldBuildPath = true;
108
- }
109
105
  const value = keyframes[key];
110
106
  attributes[key] = isMotionValue(value) ? value.get() : value;
111
107
  } else {
112
108
  styleProps[key] = keyframes[key];
113
109
  }
114
110
  }
115
- if (shouldBuildPath) {
111
+ if (attributes.pathLength) {
116
112
  buildSVGPath(attributes, attributes.pathLength, attributes.pathSpacing, attributes.pathOffset);
117
113
  }
118
114
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motion-v",
3
- "version": "0.13.1-alpha.1",
3
+ "version": "0.13.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",