svg-path-commander 2.1.6 → 2.1.7

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.
@@ -108,7 +108,11 @@ const Be = {
108
108
  s = s.rotate(0, 0, c);
109
109
  else if (i === "scale3d" && h.every((m) => !Number.isNaN(+m)) && h.some((m) => m !== 1))
110
110
  s = s.scale(c, a, u);
111
- else if (i === "scale" && !Number.isNaN(c) && c !== 1 && u === void 0) {
111
+ else if (
112
+ // prop === "scale" && !Number.isNaN(x) && x !== 1 && z === undefined
113
+ // prop === "scale" && !Number.isNaN(x) && [x, y].some((n) => n !== 1) &&
114
+ i === "scale" && !Number.isNaN(c) && (c !== 1 || a !== 1) && u === void 0
115
+ ) {
112
116
  const m = Number.isNaN(+a) ? c : a;
113
117
  s = s.scale(c, m, 1);
114
118
  } else if (i === "skew" && (c || !Number.isNaN(c) && a) && u === void 0)