motion-v 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
@@ -49,7 +49,6 @@ function createStyles(keyframes) {
49
49
  const SVG_STYLE_TO_ATTRIBUTES = {
50
50
  "fill": true,
51
51
  "stroke": true,
52
- "stroke-width": true,
53
52
  "opacity": true,
54
53
  "fill-opacity": true,
55
54
  "stroke-opacity": true,
@@ -94,7 +93,7 @@ function camelToKebab(str) {
94
93
  return str.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
95
94
  }
96
95
  function buildSVGPath(attrs, length, spacing = 1, offset = 0) {
97
- attrs.pathLength = 1;
96
+ attrs["path-length"] = 1;
98
97
  attrs["stroke-dashoffset"] = px.transform(-offset);
99
98
  const pathLength = px.transform(length);
100
99
  const pathSpacing = px.transform(spacing);
@@ -112,7 +111,7 @@ function convertSvgStyleToAttributes(keyframes) {
112
111
  styleProps[key] = keyframes[key];
113
112
  }
114
113
  }
115
- if (attributes["path-length"]) {
114
+ if (attributes["path-length"] !== void 0) {
116
115
  buildSVGPath(attributes, attributes["path-length"], attributes["path-spacing"], attributes["path-offset"]);
117
116
  }
118
117
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "motion-v",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.4",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",