@woven-canvas/vue 0.1.7 → 0.1.8

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/build/index.js CHANGED
@@ -36040,14 +36040,14 @@ function zp(t, e, n) {
36040
36040
  const S = t.getBoundingClientRect();
36041
36041
  return { width: S.width, height: S.height, left: 0, top: 0 };
36042
36042
  }
36043
- const s = window.getComputedStyle(r).transform, o = new DOMMatrix(s), i = Math.atan2(o.b, o.a), a = t.getBoundingClientRect(), l = new DOMPoint(a.left + a.width / 2, a.top + a.height / 2), c = e.value.left, u = e.value.top, d = e.value.zoom, f = new DOMMatrix();
36044
- f.translateSelf(-c * d, -u * d), f.scaleSelf(d, d), f.invertSelf();
36045
- const h = f.transformPoint(l), p = f.transformPoint(new DOMPoint(a.left, a.top)), m = f.transformPoint(new DOMPoint(a.right, a.bottom)), g = m.x - p.x, y = m.y - p.y, { width: v, height: b } = rF(g, y, -i), k = n.value.left, w = n.value.top;
36043
+ const s = window.getComputedStyle(r).transform, o = new DOMMatrix(s), i = Math.atan2(o.b, o.a), a = t.getBoundingClientRect(), l = n.value.left, c = n.value.top, u = new DOMPoint(a.left + a.width / 2 - l, a.top + a.height / 2 - c), d = e.value.left, f = e.value.top, h = e.value.zoom, p = new DOMMatrix();
36044
+ p.translateSelf(-d * h, -f * h), p.scaleSelf(h, h), p.invertSelf();
36045
+ const m = p.transformPoint(u), g = p.transformPoint(new DOMPoint(a.left - l, a.top - c)), y = p.transformPoint(new DOMPoint(a.right - l, a.bottom - c)), v = y.x - g.x, b = y.y - g.y, { width: k, height: w } = rF(v, b, -i);
36046
36046
  return {
36047
- width: v,
36048
- height: b,
36049
- left: h.x - v / 2 - k,
36050
- top: h.y - b / 2 - w
36047
+ width: k,
36048
+ height: w,
36049
+ left: m.x - k / 2,
36050
+ top: m.y - w / 2
36051
36051
  };
36052
36052
  }
36053
36053
  function sS(t) {