@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),
|
|
36044
|
-
|
|
36045
|
-
const
|
|
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:
|
|
36048
|
-
height:
|
|
36049
|
-
left:
|
|
36050
|
-
top:
|
|
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) {
|