@woven-canvas/vue 1.7.1 → 1.7.2

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
@@ -17452,17 +17452,17 @@ function ot(n) {
17452
17452
  }
17453
17453
  function Cu(n, e, t) {
17454
17454
  if (!n.closest(".wov-block")) {
17455
- const h = n.getBoundingClientRect();
17456
- return { width: h.width, height: h.height, left: 0, top: 0 };
17455
+ const p = n.getBoundingClientRect();
17456
+ return { width: p.width, height: p.height, left: 0, top: 0 };
17457
17457
  }
17458
17458
  const r = n.getBoundingClientRect(), s = t.value.left, i = t.value.top, l = new DOMPoint(r.left + r.width / 2 - s, r.top + r.height / 2 - i), a = e.value.zoom, c = new DOMMatrix();
17459
17459
  c.translateSelf(-e.value.left * a, -e.value.top * a), c.scaleSelf(a, a), c.invertSelf();
17460
- const u = c.transformPoint(l), d = n.offsetWidth, f = n.offsetHeight;
17460
+ const u = c.transformPoint(l), d = getComputedStyle(n), f = parseFloat(d.width) || n.offsetWidth, h = parseFloat(d.height) || n.offsetHeight;
17461
17461
  return {
17462
- width: d,
17463
- height: f,
17464
- left: u.x - d / 2,
17465
- top: u.y - f / 2
17462
+ width: f,
17463
+ height: h,
17464
+ left: u.x - f / 2,
17465
+ top: u.y - h / 2
17466
17466
  };
17467
17467
  }
17468
17468
  const Yf = [