@cliquify.me/timeline 5.0.11 → 5.0.13
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/dist/index.es.js +138 -136
- package/dist/index.umd.js +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -103,7 +103,7 @@ class Ma extends Wt {
|
|
|
103
103
|
}
|
|
104
104
|
class jl {
|
|
105
105
|
}
|
|
106
|
-
class
|
|
106
|
+
class El extends jl {
|
|
107
107
|
testPrecision(t, e) {
|
|
108
108
|
const s = "precision ".concat(e, ` float;
|
|
109
109
|
void main(){}`), r = t.createShader(t.FRAGMENT_SHADER);
|
|
@@ -117,13 +117,13 @@ void main(){}`), r = t.createShader(t.FRAGMENT_SHADER);
|
|
|
117
117
|
return !!this.maxTextureSize && this.maxTextureSize >= t;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
const
|
|
120
|
+
const Il = {};
|
|
121
121
|
let ro;
|
|
122
|
-
const Ht = () => ro || (ro = { document, window, isTouchSupported: "ontouchstart" in window || "ontouchstart" in document || window && window.navigator && window.navigator.maxTouchPoints > 0, WebGLProbe: new
|
|
123
|
-
}, copyPasteData:
|
|
122
|
+
const Ht = () => ro || (ro = { document, window, isTouchSupported: "ontouchstart" in window || "ontouchstart" in document || window && window.navigator && window.navigator.maxTouchPoints > 0, WebGLProbe: new El(), dispose() {
|
|
123
|
+
}, copyPasteData: Il }), ms = () => Ht().document, Ks = () => Ht().window, Da = () => {
|
|
124
124
|
var i;
|
|
125
125
|
return Math.max((i = P.devicePixelRatio) !== null && i !== void 0 ? i : Ks().devicePixelRatio, 1);
|
|
126
|
-
},
|
|
126
|
+
}, Es = new class {
|
|
127
127
|
constructor() {
|
|
128
128
|
b(this, "boundsOfCurveCache", {}), this.charWidthsCache = /* @__PURE__ */ new Map();
|
|
129
129
|
}
|
|
@@ -145,7 +145,7 @@ const Ht = () => ro || (ro = { document, window, isTouchSupported: "ontouchstart
|
|
|
145
145
|
}(), Gi = "6.9.0";
|
|
146
146
|
function Le() {
|
|
147
147
|
}
|
|
148
|
-
const Te = Math.PI / 2, he = 2 * Math.PI, _n = Math.PI / 180, gt = Object.freeze([1, 0, 0, 1, 0, 0]), Tn = 16, me = 0.4477152502, j = "center", L = "left", pt = "top", Ni = "bottom", q = "right", mt = "none", xn = /\r?\n/, ja = "moving", ri = "scaling",
|
|
148
|
+
const Te = Math.PI / 2, he = 2 * Math.PI, _n = Math.PI / 180, gt = Object.freeze([1, 0, 0, 1, 0, 0]), Tn = 16, me = 0.4477152502, j = "center", L = "left", pt = "top", Ni = "bottom", q = "right", mt = "none", xn = /\r?\n/, ja = "moving", ri = "scaling", Ea = "rotating", Sn = "rotate", Ia = "skewing", Xs = "resizing", Pa = "modifyPoly", Pl = "modifyPath", Wr = "changed", ii = "scale", ft = "scaleX", _t = "scaleY", vs = "skewX", ys = "skewY", et = "fill", vt = "stroke", Xr = "modified", Ke = "json", Ci = "svg", k = new class {
|
|
149
149
|
constructor() {
|
|
150
150
|
this[Ke] = /* @__PURE__ */ new Map(), this[Ci] = /* @__PURE__ */ new Map();
|
|
151
151
|
}
|
|
@@ -512,7 +512,7 @@ class La extends Al {
|
|
|
512
512
|
return this[t];
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function Is(i) {
|
|
516
516
|
return Ks().requestAnimationFrame(i);
|
|
517
517
|
}
|
|
518
518
|
function Fa(i) {
|
|
@@ -781,7 +781,7 @@ Resulting to default behavior: removing object from previous canvas and adding t
|
|
|
781
781
|
this.nextRenderHandle = 0, this.renderAll();
|
|
782
782
|
}
|
|
783
783
|
requestRenderAll() {
|
|
784
|
-
this.nextRenderHandle || this.disposed || this.destroyed || (this.nextRenderHandle =
|
|
784
|
+
this.nextRenderHandle || this.disposed || this.destroyed || (this.nextRenderHandle = Is(() => this.renderAndReset()));
|
|
785
785
|
}
|
|
786
786
|
calcViewportBoundaries() {
|
|
787
787
|
const t = this.width, e = this.height, s = bt(this.viewportTransform), r = lt({ x: 0, y: 0 }, s), n = lt({ x: t, y: e }, s), o = r.min(n), a = r.max(n);
|
|
@@ -1054,7 +1054,7 @@ const Bl = ["touchstart", "touchmove", "touchend"], Na = (i) => {
|
|
|
1054
1054
|
}, $i = (i, t, e) => {
|
|
1055
1055
|
const s = tr(t, e);
|
|
1056
1056
|
return fs(i, $(s, i.calcOwnMatrix())), s;
|
|
1057
|
-
},
|
|
1057
|
+
}, En = (i, t) => {
|
|
1058
1058
|
var e;
|
|
1059
1059
|
const { transform: { target: s } } = t;
|
|
1060
1060
|
(e = s.canvas) === null || e === void 0 || e.fire("object:".concat(i), v(v({}, t), {}, { target: s })), s.fire(i, t);
|
|
@@ -1065,7 +1065,7 @@ function Ka(i) {
|
|
|
1065
1065
|
function co(i) {
|
|
1066
1066
|
return 0.5 - Z(i);
|
|
1067
1067
|
}
|
|
1068
|
-
const Pt = (i, t) => i[t],
|
|
1068
|
+
const Pt = (i, t) => i[t], In = (i, t, e, s) => ({ e: i, transform: t, pointer: new _(e, s) });
|
|
1069
1069
|
function Ja(i, t) {
|
|
1070
1070
|
const e = i.getTotalAngle() + Vt(Math.atan2(t.y, t.x)) + 360;
|
|
1071
1071
|
return Math.round(e % 360 / 45);
|
|
@@ -1081,7 +1081,7 @@ function ci(i, t, e, s, r) {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
const Za = (i, t, e, s) => {
|
|
1083
1083
|
const { target: r, offsetX: n, offsetY: o } = t, a = e - n, c = s - o, h = !Pt(r, "lockMovementX") && r.left !== a, l = !Pt(r, "lockMovementY") && r.top !== c;
|
|
1084
|
-
return h && r.set(L, a), l && r.set(pt, c), (h || l) &&
|
|
1084
|
+
return h && r.set(L, a), l && r.set(pt, c), (h || l) && En(ja, In(i, t, e, s)), h || l;
|
|
1085
1085
|
}, Vr = (i) => i.replace(/\s+/g, " "), ho = { aliceblue: "#F0F8FF", antiquewhite: "#FAEBD7", aqua: "#0FF", aquamarine: "#7FFFD4", azure: "#F0FFFF", beige: "#F5F5DC", bisque: "#FFE4C4", black: "#000", blanchedalmond: "#FFEBCD", blue: "#00F", blueviolet: "#8A2BE2", brown: "#A52A2A", burlywood: "#DEB887", cadetblue: "#5F9EA0", chartreuse: "#7FFF00", chocolate: "#D2691E", coral: "#FF7F50", cornflowerblue: "#6495ED", cornsilk: "#FFF8DC", crimson: "#DC143C", cyan: "#0FF", darkblue: "#00008B", darkcyan: "#008B8B", darkgoldenrod: "#B8860B", darkgray: "#A9A9A9", darkgrey: "#A9A9A9", darkgreen: "#006400", darkkhaki: "#BDB76B", darkmagenta: "#8B008B", darkolivegreen: "#556B2F", darkorange: "#FF8C00", darkorchid: "#9932CC", darkred: "#8B0000", darksalmon: "#E9967A", darkseagreen: "#8FBC8F", darkslateblue: "#483D8B", darkslategray: "#2F4F4F", darkslategrey: "#2F4F4F", darkturquoise: "#00CED1", darkviolet: "#9400D3", deeppink: "#FF1493", deepskyblue: "#00BFFF", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1E90FF", firebrick: "#B22222", floralwhite: "#FFFAF0", forestgreen: "#228B22", fuchsia: "#F0F", gainsboro: "#DCDCDC", ghostwhite: "#F8F8FF", gold: "#FFD700", goldenrod: "#DAA520", gray: "#808080", grey: "#808080", green: "#008000", greenyellow: "#ADFF2F", honeydew: "#F0FFF0", hotpink: "#FF69B4", indianred: "#CD5C5C", indigo: "#4B0082", ivory: "#FFFFF0", khaki: "#F0E68C", lavender: "#E6E6FA", lavenderblush: "#FFF0F5", lawngreen: "#7CFC00", lemonchiffon: "#FFFACD", lightblue: "#ADD8E6", lightcoral: "#F08080", lightcyan: "#E0FFFF", lightgoldenrodyellow: "#FAFAD2", lightgray: "#D3D3D3", lightgrey: "#D3D3D3", lightgreen: "#90EE90", lightpink: "#FFB6C1", lightsalmon: "#FFA07A", lightseagreen: "#20B2AA", lightskyblue: "#87CEFA", lightslategray: "#789", lightslategrey: "#789", lightsteelblue: "#B0C4DE", lightyellow: "#FFFFE0", lime: "#0F0", limegreen: "#32CD32", linen: "#FAF0E6", magenta: "#F0F", maroon: "#800000", mediumaquamarine: "#66CDAA", mediumblue: "#0000CD", mediumorchid: "#BA55D3", mediumpurple: "#9370DB", mediumseagreen: "#3CB371", mediumslateblue: "#7B68EE", mediumspringgreen: "#00FA9A", mediumturquoise: "#48D1CC", mediumvioletred: "#C71585", midnightblue: "#191970", mintcream: "#F5FFFA", mistyrose: "#FFE4E1", moccasin: "#FFE4B5", navajowhite: "#FFDEAD", navy: "#000080", oldlace: "#FDF5E6", olive: "#808000", olivedrab: "#6B8E23", orange: "#FFA500", orangered: "#FF4500", orchid: "#DA70D6", palegoldenrod: "#EEE8AA", palegreen: "#98FB98", paleturquoise: "#AFEEEE", palevioletred: "#DB7093", papayawhip: "#FFEFD5", peachpuff: "#FFDAB9", peru: "#CD853F", pink: "#FFC0CB", plum: "#DDA0DD", powderblue: "#B0E0E6", purple: "#800080", rebeccapurple: "#639", red: "#F00", rosybrown: "#BC8F8F", royalblue: "#4169E1", saddlebrown: "#8B4513", salmon: "#FA8072", sandybrown: "#F4A460", seagreen: "#2E8B57", seashell: "#FFF5EE", sienna: "#A0522D", silver: "#C0C0C0", skyblue: "#87CEEB", slateblue: "#6A5ACD", slategray: "#708090", slategrey: "#708090", snow: "#FFFAFA", springgreen: "#00FF7F", steelblue: "#4682B4", tan: "#D2B48C", teal: "#008080", thistle: "#D8BFD8", tomato: "#FF6347", turquoise: "#40E0D0", violet: "#EE82EE", wheat: "#F5DEB3", white: "#FFF", whitesmoke: "#F5F5F5", yellow: "#FF0", yellowgreen: "#9ACD32" }, Oi = (i, t, e) => (e < 0 && (e += 1), e > 1 && (e -= 1), e < 1 / 6 ? i + 6 * (t - i) * e : e < 0.5 ? t : e < 2 / 3 ? i + (t - i) * (2 / 3 - e) * 6 : i), lo = (i, t, e, s) => {
|
|
1086
1086
|
i /= 255, t /= 255, e /= 255;
|
|
1087
1087
|
const r = Math.max(i, t, e), n = Math.min(i, t, e);
|
|
@@ -1306,11 +1306,11 @@ function hi(i) {
|
|
|
1306
1306
|
}
|
|
1307
1307
|
const We = "textDecorationThickness", ec = ["fontSize", "fontWeight", "fontFamily", "fontStyle"], sc = ["underline", "overline", "linethrough"], rc = [...ec, "lineHeight", "text", "charSpacing", "textAlign", "styles", "path", "pathStartOffset", "pathSide", "pathAlign"], ic = [...rc, ...sc, "textBackgroundColor", "direction", We], zl = [...ec, ...sc, vt, "strokeWidth", et, "deltaY", "textBackgroundColor", We], Hl = { _reNewline: xn, _reSpacesAndTabs: /[ \t\r]/g, _reSpaceAndTab: /[ \t\r]/, _reWords: /\S+/g, fontSize: 40, fontWeight: "normal", fontFamily: "Times New Roman", underline: !1, overline: !1, linethrough: !1, textAlign: L, fontStyle: "normal", lineHeight: 1.16, textBackgroundColor: "", stroke: null, shadow: null, path: void 0, pathStartOffset: 0, pathSide: L, pathAlign: "baseline", charSpacing: 0, deltaY: 0, direction: "ltr", CACHE_FONT_SIZE: 400, MIN_TEXT_WIDTH: 2, superscript: { size: 0.6, baseline: -0.35 }, subscript: { size: 0.6, baseline: 0.11 }, _fontSizeFraction: 0.222, offsets: { underline: 0.1, linethrough: -0.28167, overline: -0.81333 }, _fontSizeMult: 1.13, [We]: 66.667 }, Bt = "justify", Gr = "justify-left", As = "justify-right", Ls = "justify-center";
|
|
1308
1308
|
var fo, po, mo;
|
|
1309
|
-
const
|
|
1309
|
+
const Et = String.raw(fo || (fo = Jt(["[-+]?(?:d*.d+|d+.?)(?:[eE][-+]?d+)?"], ["[-+]?(?:\\d*\\.\\d+|\\d+\\.?)(?:[eE][-+]?\\d+)?"]))), ki = String.raw(po || (po = Jt(["(?:s*,?s+|s*,s*)"], ["(?:\\s*,?\\s+|\\s*,\\s*)"]))), Yl = new RegExp("(normal|italic)?\\s*(normal|small-caps)?\\s*(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)?\\s*(" + Et + "(?:px|cm|mm|em|pt|pc|in)*)(?:\\/(normal|" + Et + "))?\\s+(.*)"), Vl = { cx: L, x: L, r: "radius", cy: pt, y: pt, display: "visible", visibility: "visible", transform: "transformMatrix", "fill-opacity": "fillOpacity", "fill-rule": "fillRule", "font-family": "fontFamily", "font-size": "fontSize", "font-style": "fontStyle", "font-weight": "fontWeight", "letter-spacing": "charSpacing", "paint-order": "paintFirst", "stroke-dasharray": "strokeDashArray", "stroke-dashoffset": "strokeDashOffset", "stroke-linecap": "strokeLineCap", "stroke-linejoin": "strokeLineJoin", "stroke-miterlimit": "strokeMiterLimit", "stroke-opacity": "strokeOpacity", "stroke-width": "strokeWidth", "text-decoration": "textDecoration", "text-anchor": "textAnchor", opacity: "opacity", "clip-path": "clipPath", "clip-rule": "clipRule", "vector-effect": "strokeUniform", "image-rendering": "imageSmoothing", "text-decoration-thickness": We }, Mi = "font-size", Di = "clip-path";
|
|
1310
1310
|
hi(["path", "circle", "polygon", "polyline", "ellipse", "rect", "line", "image", "text"]);
|
|
1311
1311
|
hi(["symbol", "image", "marker", "pattern", "view", "svg"]);
|
|
1312
1312
|
const vo = hi(["symbol", "g", "a", "svg", "clipPath", "defs"]);
|
|
1313
|
-
new RegExp(String.raw(mo || (mo = Jt(["^s*(", ")", "(", ")", "(", ")", "(", ")s*$"], ["^\\s*(", ")", "(", ")", "(", ")", "(", ")\\s*$"])),
|
|
1313
|
+
new RegExp(String.raw(mo || (mo = Jt(["^s*(", ")", "(", ")", "(", ")", "(", ")s*$"], ["^\\s*(", ")", "(", ")", "(", ")", "(", ")\\s*$"])), Et, ki, Et, ki, Et, ki, Et));
|
|
1314
1314
|
const Gl = new _(1, 0), nc = new _(), Pn = (i, t) => i.rotate(t), Nr = (i, t) => new _(t).subtract(i), Ur = (i) => i.distanceFrom(nc), $r = (i, t) => Math.atan2(cs(i, t), ac(i, t)), oc = (i) => $r(Gl, i), li = (i) => i.eq(nc) ? i : i.scalarDivide(Ur(i)), An = function(i) {
|
|
1315
1315
|
let t = !(arguments.length > 1 && arguments[1] !== void 0) || arguments[1];
|
|
1316
1316
|
return li(new _(-i.y, i.x).scalarMultiply(t ? 1 : -1));
|
|
@@ -1318,7 +1318,7 @@ const Gl = new _(1, 0), nc = new _(), Pn = (i, t) => i.rotate(t), Nr = (i, t) =>
|
|
|
1318
1318
|
if (i.eq(t) || i.eq(e)) return !0;
|
|
1319
1319
|
const s = cs(t, e), r = cs(t, i), n = cs(e, i);
|
|
1320
1320
|
return s >= 0 ? r >= 0 && n <= 0 : !(r <= 0 && n >= 0);
|
|
1321
|
-
}, yo = "(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?", bo = new RegExp("(?:\\s|^)" + yo + yo + "(" +
|
|
1321
|
+
}, yo = "(-?\\d+(?:\\.\\d*)?(?:px)?(?:\\s?|$))?", bo = new RegExp("(?:\\s|^)" + yo + yo + "(" + Et + "?(?:px)?)?(?:\\s?|$)(?:$|\\s)");
|
|
1322
1322
|
class ae {
|
|
1323
1323
|
constructor(t) {
|
|
1324
1324
|
const e = typeof t == "string" ? ae.parseShadow(t) : t;
|
|
@@ -1406,13 +1406,13 @@ class Ln {
|
|
|
1406
1406
|
const t = (e) => {
|
|
1407
1407
|
this._state === "pending" && (this.startTime = e || +/* @__PURE__ */ new Date(), this._state = "running", this._onStart(), this.tick(this.startTime));
|
|
1408
1408
|
};
|
|
1409
|
-
this.register(), this.delay > 0 ? setTimeout(() =>
|
|
1409
|
+
this.register(), this.delay > 0 ? setTimeout(() => Is(t), this.delay) : Is(t);
|
|
1410
1410
|
}
|
|
1411
1411
|
tick(t) {
|
|
1412
1412
|
const e = (t || +/* @__PURE__ */ new Date()) - this.startTime, s = Math.min(e, this.duration);
|
|
1413
1413
|
this.durationProgress = s / this.duration;
|
|
1414
1414
|
const { value: r, valueProgress: n } = this.calculate(s);
|
|
1415
|
-
this.value = Object.freeze(r), this.valueProgress = n, this._state !== "aborted" && (this._abort(this.value, this.valueProgress, this.durationProgress) ? (this._state = "aborted", this.unregister()) : e >= this.duration ? (this.durationProgress = this.valueProgress = 1, this._onChange(this.endValue, this.valueProgress, this.durationProgress), this._state = "completed", this._onComplete(this.endValue, this.valueProgress, this.durationProgress), this.unregister()) : (this._onChange(this.value, this.valueProgress, this.durationProgress),
|
|
1415
|
+
this.value = Object.freeze(r), this.valueProgress = n, this._state !== "aborted" && (this._abort(this.value, this.valueProgress, this.durationProgress) ? (this._state = "aborted", this.unregister()) : e >= this.duration ? (this.durationProgress = this.valueProgress = 1, this._onChange(this.endValue, this.valueProgress, this.durationProgress), this._state = "completed", this._onComplete(this.endValue, this.valueProgress, this.durationProgress), this.unregister()) : (this._onChange(this.value, this.valueProgress, this.durationProgress), Is(this.tick)));
|
|
1416
1416
|
}
|
|
1417
1417
|
register() {
|
|
1418
1418
|
zr.push(this);
|
|
@@ -1446,12 +1446,12 @@ class Ql extends Ln {
|
|
|
1446
1446
|
return { value: e, valueProgress: Math.abs((e[0] - this.startValue[0]) / this.byValue[0]) };
|
|
1447
1447
|
}
|
|
1448
1448
|
}
|
|
1449
|
-
const tu = ["startValue", "endValue", "easing", "onChange", "onComplete", "abort"], eu = (i, t, e, s) => t + e * (1 - Math.cos(i / s * Te)),
|
|
1449
|
+
const tu = ["startValue", "endValue", "easing", "onChange", "onComplete", "abort"], eu = (i, t, e, s) => t + e * (1 - Math.cos(i / s * Te)), Ei = (i) => i && ((t, e, s) => i(new F(t).toRgba(), e, s));
|
|
1450
1450
|
class su extends Ln {
|
|
1451
1451
|
constructor(t) {
|
|
1452
1452
|
let { startValue: e, endValue: s, easing: r = eu, onChange: n, onComplete: o, abort: a } = t, c = V(t, tu);
|
|
1453
1453
|
const h = new F(e).getSource(), l = new F(s).getSource();
|
|
1454
|
-
super(v(v({}, c), {}, { startValue: h, byValue: l.map((u, d) => u - h[d]), easing: r, onChange:
|
|
1454
|
+
super(v(v({}, c), {}, { startValue: h, byValue: l.map((u, d) => u - h[d]), easing: r, onChange: Ei(n), onComplete: Ei(o), abort: Ei(a) }));
|
|
1455
1455
|
}
|
|
1456
1456
|
calculate(t) {
|
|
1457
1457
|
const [e, s, r, n] = this.startValue.map((a, c) => this.easing(t, a, this.byValue[c], this.duration, c)), o = [...[e, s, r].map(Math.round), Xe(0, n, 1)];
|
|
@@ -1747,7 +1747,7 @@ let Qt = class Fr extends ru {
|
|
|
1747
1747
|
_limitCacheSize(t) {
|
|
1748
1748
|
const e = t.width, s = t.height, r = P.maxCacheSideLimit, n = P.minCacheSideLimit;
|
|
1749
1749
|
if (e <= r && s <= r && e * s <= P.perfLimitSizeTotal) return e < n && (t.width = n), s < n && (t.height = n), t;
|
|
1750
|
-
const o = e / s, [a, c] =
|
|
1750
|
+
const o = e / s, [a, c] = Es.limitDimsByArea(o), h = Xe(n, a, r), l = Xe(n, c, r);
|
|
1751
1751
|
return e > h && (t.zoomX /= e / h, t.width = h, t.capped = !0), s > l && (t.zoomY /= s / l, t.height = l, t.capped = !0), t;
|
|
1752
1752
|
}
|
|
1753
1753
|
_getCacheCanvasDimensions() {
|
|
@@ -2041,9 +2041,9 @@ let Qt = class Fr extends ru {
|
|
|
2041
2041
|
toObject() {
|
|
2042
2042
|
const t = (arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : []).concat(Fr.customProperties, this.constructor.customProperties || []);
|
|
2043
2043
|
let e;
|
|
2044
|
-
const s = P.NUM_FRACTION_DIGITS, { clipPath: r, fill: n, stroke: o, shadow: a, strokeDashArray: c, left: h, top: l, originX: u, originY: d, width: g, height: f, strokeWidth: p, strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: w, scaleX: C, scaleY: O, angle: D, flipX: M, flipY:
|
|
2044
|
+
const s = P.NUM_FRACTION_DIGITS, { clipPath: r, fill: n, stroke: o, shadow: a, strokeDashArray: c, left: h, top: l, originX: u, originY: d, width: g, height: f, strokeWidth: p, strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: w, scaleX: C, scaleY: O, angle: D, flipX: M, flipY: I, opacity: tt, visible: rt, backgroundColor: X, fillRule: B, paintFirst: A, globalCompositeOperation: at, skewX: it, skewY: ct } = this;
|
|
2045
2045
|
r && !r.excludeFromExport && (e = r.toObject(t.concat("inverted", "absolutePositioned")));
|
|
2046
|
-
const z = (Zt) => W(Zt, s), Rt = v(v({}, Ve(this, t)), {}, { type: this.constructor.type, version: Gi, originX: u, originY: d, left: z(h), top: z(l), width: z(g), height: z(f), fill: io(n) ? n.toObject() : n, stroke: io(o) ? o.toObject() : o, strokeWidth: z(p), strokeDashArray: c && c.concat(), strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: z(w), scaleX: z(C), scaleY: z(O), angle: z(D), flipX: M, flipY:
|
|
2046
|
+
const z = (Zt) => W(Zt, s), Rt = v(v({}, Ve(this, t)), {}, { type: this.constructor.type, version: Gi, originX: u, originY: d, left: z(h), top: z(l), width: z(g), height: z(f), fill: io(n) ? n.toObject() : n, stroke: io(o) ? o.toObject() : o, strokeWidth: z(p), strokeDashArray: c && c.concat(), strokeLineCap: m, strokeDashOffset: y, strokeLineJoin: T, strokeUniform: S, strokeMiterLimit: z(w), scaleX: z(C), scaleY: z(O), angle: z(D), flipX: M, flipY: I, opacity: z(tt), shadow: a && a.toObject(), visible: rt, backgroundColor: X, fillRule: B, paintFirst: A, globalCompositeOperation: at, skewX: z(it), skewY: z(ct) }, e ? { clipPath: e } : null);
|
|
2047
2047
|
return this.includeDefaultValues ? Rt : this._removeDefaultValues(Rt);
|
|
2048
2048
|
}
|
|
2049
2049
|
toDatalessObject(t) {
|
|
@@ -2071,7 +2071,7 @@ let Qt = class Fr extends ru {
|
|
|
2071
2071
|
b(Qt, "stateProperties", Nl), b(Qt, "cacheProperties", le), b(Qt, "ownDefaults", Ul), b(Qt, "type", "FabricObject"), b(Qt, "colorProperties", [et, vt, "backgroundColor"]), b(Qt, "customProperties", []), k.setClass(Qt), k.setClass(Qt, "object");
|
|
2072
2072
|
const Oe = (i, t, e) => (s, r, n, o) => {
|
|
2073
2073
|
const a = t(s, r, n, o);
|
|
2074
|
-
return a &&
|
|
2074
|
+
return a && En(i, v(v({}, In(s, r, n, o)), e)), a;
|
|
2075
2075
|
};
|
|
2076
2076
|
function Ge(i) {
|
|
2077
2077
|
return (t, e, s, r) => {
|
|
@@ -2142,7 +2142,7 @@ class N {
|
|
|
2142
2142
|
((r = r || {}).cornerStyle || n.cornerStyle) === "circle" ? lc.call(this, t, e, s, r, n) : uc.call(this, t, e, s, r, n);
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
const dc = (i, t, e) => e.lockRotation ? Yr : t.cursorStyle, gc = Oe(
|
|
2145
|
+
const dc = (i, t, e) => e.lockRotation ? Yr : t.cursorStyle, gc = Oe(Ea, Ge((i, t, e, s) => {
|
|
2146
2146
|
let { target: r, ex: n, ey: o, theta: a, originX: c, originY: h } = t;
|
|
2147
2147
|
const l = r.translateToOriginPoint(r.getRelativeCenterPoint(), c, h);
|
|
2148
2148
|
if (Pt(r, "lockRotation")) return !1;
|
|
@@ -2189,18 +2189,18 @@ function Rn(i, t, e, s) {
|
|
|
2189
2189
|
const f = n.scaleX, p = n.scaleY;
|
|
2190
2190
|
return o ? (o === "x" && n.set(ft, h), o === "y" && n.set(_t, l)) : (!Pt(n, "lockScalingX") && n.set(ft, h), !Pt(n, "lockScalingY") && n.set(_t, l)), f !== n.scaleX || p !== n.scaleY;
|
|
2191
2191
|
}
|
|
2192
|
-
const ks = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s))), mc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "x" }))), vc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "y" }))), au = ["target", "ex", "ey", "skewingSide"],
|
|
2192
|
+
const ks = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s))), mc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "x" }))), vc = Oe(ri, Ge((i, t, e, s) => Rn(i, t, e, s, { by: "y" }))), au = ["target", "ex", "ey", "skewingSide"], Ii = { x: { counterAxis: "y", scale: ft, skew: vs, lockSkewing: "lockSkewingX", origin: "originX", flip: "flipX" }, y: { counterAxis: "x", scale: _t, skew: ys, lockSkewing: "lockSkewingY", origin: "originY", flip: "flipY" } }, cu = ["ns", "nesw", "ew", "nwse"], yc = (i, t, e) => {
|
|
2193
2193
|
if (t.x !== 0 && Pt(e, "lockSkewingY") || t.y !== 0 && Pt(e, "lockSkewingX")) return Yr;
|
|
2194
2194
|
const s = Ja(e, t) % 4;
|
|
2195
2195
|
return "".concat(cu[s], "-resize");
|
|
2196
2196
|
};
|
|
2197
2197
|
function bc(i, t, e, s, r) {
|
|
2198
|
-
const { target: n } = e, { counterAxis: o, origin: a, lockSkewing: c, skew: h, flip: l } =
|
|
2198
|
+
const { target: n } = e, { counterAxis: o, origin: a, lockSkewing: c, skew: h, flip: l } = Ii[i];
|
|
2199
2199
|
if (Pt(n, c)) return !1;
|
|
2200
|
-
const { origin: u, flip: d } =
|
|
2201
|
-
return Oe(
|
|
2202
|
-
let { target: M, ex:
|
|
2203
|
-
const { skew: B } =
|
|
2200
|
+
const { origin: u, flip: d } = Ii[o], g = Z(e[u]) * (n[d] ? -1 : 1), f = -Math.sign(g) * (n[l] ? -1 : 1), p = 0.5 * -((n[h] === 0 && ci(e, j, j, s, r)[i] > 0 || n[h] > 0 ? 1 : -1) * f) + 0.5;
|
|
2201
|
+
return Oe(Ia, Ge((y, T, S, w) => function(C, O, D) {
|
|
2202
|
+
let { target: M, ex: I, ey: tt, skewingSide: rt } = O, X = V(O, au);
|
|
2203
|
+
const { skew: B } = Ii[C], A = D.subtract(new _(I, tt)).divide(new _(M.scaleX, M.scaleY))[C], at = M[B], it = X[B], ct = Math.tan(U(it)), z = C === "y" ? M._getTransformedDimensions({ scaleX: 1, scaleY: 1, skewX: 0 }).x : M._getTransformedDimensions({ scaleX: 1, scaleY: 1 }).y, Rt = 2 * A * rt / Math.max(z, 1) + ct, Zt = Vt(Math.atan(Rt));
|
|
2204
2204
|
M.set(B, Zt);
|
|
2205
2205
|
const or = at !== M[B];
|
|
2206
2206
|
if (or && C === "y") {
|
|
@@ -2217,7 +2217,7 @@ function ui(i, t) {
|
|
|
2217
2217
|
const Ms = (i, t, e) => {
|
|
2218
2218
|
const s = ui(i, e);
|
|
2219
2219
|
return t.x === 0 ? s ? vs : _t : t.y === 0 ? s ? ys : ft : "";
|
|
2220
|
-
},
|
|
2220
|
+
}, Ie = (i, t, e) => ui(i, e) ? yc(0, t, e) : Ze(i, t, e), Zi = (i, t, e, s) => ui(i, t.target) ? Tc(i, t, e, s) : mc(i, t, e, s), Qi = (i, t, e, s) => ui(i, t.target) ? _c(i, t, e, s) : vc(i, t, e, s), Bn = () => ({ ml: new N({ x: -0.5, y: 0, cursorStyleHandler: Ie, actionHandler: Zi, getActionName: Ms }), mr: new N({ x: 0.5, y: 0, cursorStyleHandler: Ie, actionHandler: Zi, getActionName: Ms }), mb: new N({ x: 0, y: 0.5, cursorStyleHandler: Ie, actionHandler: Qi, getActionName: Ms }), mt: new N({ x: 0, y: -0.5, cursorStyleHandler: Ie, actionHandler: Qi, getActionName: Ms }), tl: new N({ x: -0.5, y: -0.5, cursorStyleHandler: Ze, actionHandler: ks }), tr: new N({ x: 0.5, y: -0.5, cursorStyleHandler: Ze, actionHandler: ks }), bl: new N({ x: -0.5, y: 0.5, cursorStyleHandler: Ze, actionHandler: ks }), br: new N({ x: 0.5, y: 0.5, cursorStyleHandler: Ze, actionHandler: ks }), mtr: new N({ x: 0, y: -0.5, actionHandler: gc, cursorStyleHandler: dc, offsetY: -40, withConnection: !0, actionName: Sn }) }), xc = () => ({ mr: new N({ x: 0.5, y: 0, actionHandler: Ji, cursorStyleHandler: Ie, actionName: Xs }), ml: new N({ x: -0.5, y: 0, actionHandler: Ji, cursorStyleHandler: Ie, actionName: Xs }) }), Sc = () => v(v({}, Bn()), xc());
|
|
2221
2221
|
class Hs extends Qt {
|
|
2222
2222
|
static getDefaults() {
|
|
2223
2223
|
return v(v({}, super.getDefaults()), Hs.ownDefaults);
|
|
@@ -2602,9 +2602,9 @@ function gu(i, t) {
|
|
|
2602
2602
|
const fu = (i) => {
|
|
2603
2603
|
var t;
|
|
2604
2604
|
return (t = Vl[i]) !== null && t !== void 0 ? t : i;
|
|
2605
|
-
}, pu = new RegExp("(".concat(
|
|
2605
|
+
}, pu = new RegExp("(".concat(Et, ")"), "gi"), mu = (i) => Vr(i.replace(pu, " $1 ").replace(/,/gi, " "));
|
|
2606
2606
|
var wo, Co, Oo, ko, Mo, Do, jo;
|
|
2607
|
-
const dt = "(".concat(
|
|
2607
|
+
const dt = "(".concat(Et, ")"), vu = String.raw(wo || (wo = Jt(["(skewX)(", ")"], ["(skewX)\\(", "\\)"])), dt), yu = String.raw(Co || (Co = Jt(["(skewY)(", ")"], ["(skewY)\\(", "\\)"])), dt), bu = String.raw(Oo || (Oo = Jt(["(rotate)(", "(?: ", " ", ")?)"], ["(rotate)\\(", "(?: ", " ", ")?\\)"])), dt, dt, dt), _u = String.raw(ko || (ko = Jt(["(scale)(", "(?: ", ")?)"], ["(scale)\\(", "(?: ", ")?\\)"])), dt, dt), Tu = String.raw(Mo || (Mo = Jt(["(translate)(", "(?: ", ")?)"], ["(translate)\\(", "(?: ", ")?\\)"])), dt, dt), xu = String.raw(Do || (Do = Jt(["(matrix)(", " ", " ", " ", " ", " ", ")"], ["(matrix)\\(", " ", " ", " ", " ", " ", "\\)"])), dt, dt, dt, dt, dt, dt), Xn = "(?:".concat(xu, "|").concat(Tu, "|").concat(bu, "|").concat(_u, "|").concat(vu, "|").concat(yu, ")"), Su = "(?:".concat(Xn, "*)"), wu = String.raw(jo || (jo = Jt(["^s*(?:", "?)s*$"], ["^\\s*(?:", "?)\\s*$"])), Su), Cu = new RegExp(wu), Ou = new RegExp(Xn), ku = new RegExp(Xn, "g");
|
|
2608
2608
|
function tn(i) {
|
|
2609
2609
|
const t = [];
|
|
2610
2610
|
if (!(i = mu(i).replace(/\s*([()])\s*/gi, "$1")) || i && !Cu.test(i)) return [...gt];
|
|
@@ -2671,7 +2671,7 @@ function ju(i, t) {
|
|
|
2671
2671
|
t[s.trim().toLowerCase()] = r.trim();
|
|
2672
2672
|
});
|
|
2673
2673
|
}
|
|
2674
|
-
function
|
|
2674
|
+
function Eu(i) {
|
|
2675
2675
|
const t = {}, e = i.getAttribute("style");
|
|
2676
2676
|
return e && (typeof e == "string" ? ju(e, t) : function(s, r) {
|
|
2677
2677
|
Object.entries(s).forEach((n) => {
|
|
@@ -2680,7 +2680,7 @@ function Iu(i) {
|
|
|
2680
2680
|
});
|
|
2681
2681
|
}(e, t)), t;
|
|
2682
2682
|
}
|
|
2683
|
-
const
|
|
2683
|
+
const Iu = { stroke: "strokeOpacity", fill: "fillOpacity" };
|
|
2684
2684
|
function ue(i, t, e) {
|
|
2685
2685
|
if (!i) return {};
|
|
2686
2686
|
let s, r = {}, n = Tn;
|
|
@@ -2692,7 +2692,7 @@ function ue(i, t, e) {
|
|
|
2692
2692
|
let l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, u = {};
|
|
2693
2693
|
for (const d in l) gu(h, d.split(" ")) && (u = v(v({}, u), l[d]));
|
|
2694
2694
|
return u;
|
|
2695
|
-
}(i, e)),
|
|
2695
|
+
}(i, e)), Eu(i));
|
|
2696
2696
|
o[Di] && i.setAttribute(Di, o[Di]), o[Mi] && (s = Fe(o[Mi], n), o[Mi] = "".concat(s));
|
|
2697
2697
|
const a = {};
|
|
2698
2698
|
for (const h in o) {
|
|
@@ -2703,7 +2703,7 @@ function ue(i, t, e) {
|
|
|
2703
2703
|
const c = v(v({}, r), a);
|
|
2704
2704
|
return vo.test(i.nodeName) ? c : function(h) {
|
|
2705
2705
|
const l = ht.getDefaults();
|
|
2706
|
-
return Object.entries(
|
|
2706
|
+
return Object.entries(Iu).forEach((u) => {
|
|
2707
2707
|
let [d, g] = u;
|
|
2708
2708
|
if (h[g] === void 0 || h[d] === "") return;
|
|
2709
2709
|
if (h[d] === void 0) {
|
|
@@ -2716,7 +2716,7 @@ function ue(i, t, e) {
|
|
|
2716
2716
|
}), h;
|
|
2717
2717
|
}(c);
|
|
2718
2718
|
}
|
|
2719
|
-
const Pu = ["left", "top", "width", "height", "visible"],
|
|
2719
|
+
const Pu = ["left", "top", "width", "height", "visible"], Ec = ["rx", "ry"];
|
|
2720
2720
|
class Q extends ht {
|
|
2721
2721
|
static getDefaults() {
|
|
2722
2722
|
return v(v({}, super.getDefaults()), Q.ownDefaults);
|
|
@@ -2734,7 +2734,7 @@ class Q extends ht {
|
|
|
2734
2734
|
}
|
|
2735
2735
|
toObject() {
|
|
2736
2736
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
|
2737
|
-
return super.toObject([...
|
|
2737
|
+
return super.toObject([...Ec, ...t]);
|
|
2738
2738
|
}
|
|
2739
2739
|
_toSVG() {
|
|
2740
2740
|
const { width: t, height: e, rx: s, ry: r } = this;
|
|
@@ -2746,8 +2746,8 @@ class Q extends ht {
|
|
|
2746
2746
|
return new this(v(v(v({}, e), l), {}, { left: n, top: o, width: a, height: c, visible: !!(h && a && c) }));
|
|
2747
2747
|
}
|
|
2748
2748
|
}
|
|
2749
|
-
b(Q, "type", "Rect"), b(Q, "cacheProperties", [...le, ...
|
|
2750
|
-
const re = "initialization", qr = "added", zn = "removed", Kr = "imperative",
|
|
2749
|
+
b(Q, "type", "Rect"), b(Q, "cacheProperties", [...le, ...Ec]), b(Q, "ownDefaults", { rx: 0, ry: 0 }), b(Q, "ATTRIBUTE_NAMES", [...ke, "x", "y", "rx", "ry", "width", "height"]), k.setClass(Q), k.setSVGClass(Q);
|
|
2750
|
+
const re = "initialization", qr = "added", zn = "removed", Kr = "imperative", Ic = (i, t) => {
|
|
2751
2751
|
const { strokeUniform: e, strokeWidth: s, width: r, height: n, group: o } = t, a = o && o !== i ? tr(o.calcTransformMatrix(), i.calcTransformMatrix()) : null, c = a ? t.getRelativeCenterPoint().transform(a) : t.getRelativeCenterPoint(), h = !t.isStrokeAccountedForInDimensions(), l = e && h ? qa(new _(s, s), void 0, i.calcTransformMatrix()) : wn, u = !e && h ? s : 0, d = ai(r + u, n + u, ni([a, t.calcOwnMatrix()], !0)).add(l).scalarDivide(2);
|
|
2752
2752
|
return [c.subtract(d), c.add(d)];
|
|
2753
2753
|
};
|
|
@@ -2770,7 +2770,7 @@ class fi {
|
|
|
2770
2770
|
const { type: s, target: r } = e;
|
|
2771
2771
|
if (s === Kr && e.overrides) return e.overrides;
|
|
2772
2772
|
if (t.length === 0) return;
|
|
2773
|
-
const { left: n, top: o, width: a, height: c } = Xt(t.map((u) =>
|
|
2773
|
+
const { left: n, top: o, width: a, height: c } = Xt(t.map((u) => Ic(r, u)).reduce((u, d) => u.concat(d), [])), h = new _(a, c), l = new _(n, o).add(h.scalarDivide(2));
|
|
2774
2774
|
if (s === re) {
|
|
2775
2775
|
const u = this.getInitialSize(e, { size: h, center: l });
|
|
2776
2776
|
return { center: l, relativeCorrection: new _(0, 0), size: u };
|
|
@@ -2801,7 +2801,7 @@ class Ys {
|
|
|
2801
2801
|
}
|
|
2802
2802
|
attachHandlers(t, e) {
|
|
2803
2803
|
const { target: s } = e;
|
|
2804
|
-
return [Xr, ja, Xs,
|
|
2804
|
+
return [Xr, ja, Xs, Ea, ri, Ia, Wr, Pa, Pl].map((r) => t.on(r, (n) => this.performLayout(r === Xr ? { type: "object_modified", trigger: r, e: n, target: s } : { type: "object_modifying", trigger: r, e: n, target: s })));
|
|
2805
2805
|
}
|
|
2806
2806
|
subscribe(t, e) {
|
|
2807
2807
|
this.unsubscribe(t, e);
|
|
@@ -3051,23 +3051,23 @@ class zt extends Aa(ht) {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
}
|
|
3053
3053
|
b(zt, "type", "Group"), b(zt, "ownDefaults", { strokeWidth: 0, subTargetCheck: !1, interactive: !1 }), k.setClass(zt);
|
|
3054
|
-
const Ac = (i, t) => Math.min(t.width / i.width, t.height / i.height), Lc = (i, t) => Math.max(t.width / i.width, t.height / i.height), sn = "\\s*,?\\s*", Cs = "".concat(sn, "(").concat(
|
|
3054
|
+
const Ac = (i, t) => Math.min(t.width / i.width, t.height / i.height), Lc = (i, t) => Math.max(t.width / i.width, t.height / i.height), sn = "\\s*,?\\s*", Cs = "".concat(sn, "(").concat(Et, ")"), Bu = "".concat(Cs).concat(Cs).concat(Cs).concat(sn, "([01])").concat(sn, "([01])").concat(Cs).concat(Cs), Wu = { m: "l", M: "L" }, Xu = (i, t, e, s, r, n, o, a, c, h, l) => {
|
|
3055
3055
|
const u = At(i), d = Lt(i), g = At(t), f = Lt(t), p = e * r * g - s * n * f + o, m = s * r * g + e * n * f + a;
|
|
3056
3056
|
return ["C", h + c * (-e * r * d - s * n * u), l + c * (-s * r * d + e * n * u), p + c * (e * r * f + s * n * g), m + c * (s * r * f - e * n * g), p, m];
|
|
3057
|
-
},
|
|
3057
|
+
}, Eo = (i, t, e, s) => {
|
|
3058
3058
|
const r = Math.atan2(t, i), n = Math.atan2(s, e);
|
|
3059
3059
|
return n >= r ? n - r : 2 * Math.PI - (r - n);
|
|
3060
3060
|
};
|
|
3061
3061
|
function rn(i, t, e, s, r, n, o, a) {
|
|
3062
3062
|
let c;
|
|
3063
|
-
if (P.cachesBoundsOfCurve && (c = [...arguments].join(),
|
|
3063
|
+
if (P.cachesBoundsOfCurve && (c = [...arguments].join(), Es.boundsOfCurveCache[c])) return Es.boundsOfCurveCache[c];
|
|
3064
3064
|
const h = Math.sqrt, l = Math.abs, u = [], d = [[0, 0], [0, 0]];
|
|
3065
3065
|
let g = 6 * i - 12 * e + 6 * r, f = -3 * i + 9 * e - 9 * r + 3 * o, p = 3 * e - 3 * i;
|
|
3066
3066
|
for (let w = 0; w < 2; ++w) {
|
|
3067
3067
|
if (w > 0 && (g = 6 * t - 12 * s + 6 * n, f = -3 * t + 9 * s - 9 * n + 3 * a, p = 3 * s - 3 * t), l(f) < 1e-12) {
|
|
3068
3068
|
if (l(g) < 1e-12) continue;
|
|
3069
|
-
const
|
|
3070
|
-
0 <
|
|
3069
|
+
const I = -p / g;
|
|
3070
|
+
0 < I && I < 1 && u.push(I);
|
|
3071
3071
|
continue;
|
|
3072
3072
|
}
|
|
3073
3073
|
const C = g * g - 4 * p * f;
|
|
@@ -3085,25 +3085,25 @@ function rn(i, t, e, s, r, n, o, a) {
|
|
|
3085
3085
|
}
|
|
3086
3086
|
d[0][y] = i, d[1][y] = t, d[0][y + 1] = o, d[1][y + 1] = a;
|
|
3087
3087
|
const S = [new _(Math.min(...d[0]), Math.min(...d[1])), new _(Math.max(...d[0]), Math.max(...d[1]))];
|
|
3088
|
-
return P.cachesBoundsOfCurve && (
|
|
3088
|
+
return P.cachesBoundsOfCurve && (Es.boundsOfCurveCache[c] = S), S;
|
|
3089
3089
|
}
|
|
3090
3090
|
const zu = (i, t, e) => {
|
|
3091
3091
|
let [s, r, n, o, a, c, h, l] = e;
|
|
3092
3092
|
const u = ((d, g, f, p, m, y, T) => {
|
|
3093
3093
|
if (f === 0 || p === 0) return [];
|
|
3094
3094
|
let S = 0, w = 0, C = 0;
|
|
3095
|
-
const O = Math.PI, D = T * _n, M = Lt(D),
|
|
3095
|
+
const O = Math.PI, D = T * _n, M = Lt(D), I = At(D), tt = 0.5 * (-I * d - M * g), rt = 0.5 * (-I * g + M * d), X = f ** 2, B = p ** 2, A = rt ** 2, at = tt ** 2, it = X * B - X * A - B * at;
|
|
3096
3096
|
let ct = Math.abs(f), z = Math.abs(p);
|
|
3097
3097
|
if (it < 0) {
|
|
3098
3098
|
const pe = Math.sqrt(1 - it / (X * B));
|
|
3099
3099
|
ct *= pe, z *= pe;
|
|
3100
3100
|
} else C = (m === y ? -1 : 1) * Math.sqrt(it / (X * A + B * at));
|
|
3101
|
-
const Rt = C * ct * rt / z, Zt = -C * z * tt / ct, or =
|
|
3102
|
-
let xs =
|
|
3101
|
+
const Rt = C * ct * rt / z, Zt = -C * z * tt / ct, or = I * Rt - M * Zt + 0.5 * d, Si = M * Rt + I * Zt + 0.5 * g;
|
|
3102
|
+
let xs = Eo(1, 0, (tt - Rt) / ct, (rt - Zt) / z), fe = Eo((tt - Rt) / ct, (rt - Zt) / z, (-tt - Rt) / ct, (-rt - Zt) / z);
|
|
3103
3103
|
y === 0 && fe > 0 ? fe -= 2 * O : y === 1 && fe < 0 && (fe += 2 * O);
|
|
3104
3104
|
const ar = Math.ceil(Math.abs(fe / O * 2)), Me = [], Ss = fe / ar, kl = 8 / 3 * Math.sin(Ss / 4) * Math.sin(Ss / 4) / Math.sin(Ss / 2);
|
|
3105
3105
|
let wi = xs + Ss;
|
|
3106
|
-
for (let pe = 0; pe < ar; pe++) Me[pe] = Xu(xs, wi,
|
|
3106
|
+
for (let pe = 0; pe < ar; pe++) Me[pe] = Xu(xs, wi, I, M, ct, z, or, Si, kl, S, w), S = Me[pe][5], w = Me[pe][6], xs = wi, wi += Ss;
|
|
3107
3107
|
return Me;
|
|
3108
3108
|
})(h - i, l - t, r, n, a, c, o);
|
|
3109
3109
|
for (let d = 0, g = u.length; d < g; d++) u[d][1] += i, u[d][2] += t, u[d][3] += i, u[d][4] += t, u[d][5] += i, u[d][6] += t;
|
|
@@ -3180,7 +3180,7 @@ const zu = (i, t, e) => {
|
|
|
3180
3180
|
}, Vu = (i, t, e, s, r, n) => (o) => {
|
|
3181
3181
|
const a = 1 - o, c = 2 * (a * (e - i) + o * (r - e)), h = 2 * (a * (s - t) + o * (n - s));
|
|
3182
3182
|
return Math.atan2(h, c);
|
|
3183
|
-
},
|
|
3183
|
+
}, Io = (i, t, e) => {
|
|
3184
3184
|
let s = new _(t, e), r = 0;
|
|
3185
3185
|
for (let n = 1; n <= 100; n += 1) {
|
|
3186
3186
|
const o = i(n / 100);
|
|
@@ -3205,10 +3205,10 @@ const zu = (i, t, e) => {
|
|
|
3205
3205
|
e = l, e.length = Jr(r, n, h[1], h[2]), r = h[1], n = h[2];
|
|
3206
3206
|
break;
|
|
3207
3207
|
case "C":
|
|
3208
|
-
t = Rc(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e = l, e.iterator = t, e.angleFinder = Hu(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e.length =
|
|
3208
|
+
t = Rc(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e = l, e.iterator = t, e.angleFinder = Hu(r, n, h[1], h[2], h[3], h[4], h[5], h[6]), e.length = Io(t, r, n), r = h[5], n = h[6];
|
|
3209
3209
|
break;
|
|
3210
3210
|
case "Q":
|
|
3211
|
-
t = Yu(r, n, h[1], h[2], h[3], h[4]), e = l, e.iterator = t, e.angleFinder = Vu(r, n, h[1], h[2], h[3], h[4]), e.length =
|
|
3211
|
+
t = Yu(r, n, h[1], h[2], h[3], h[4]), e = l, e.iterator = t, e.angleFinder = Vu(r, n, h[1], h[2], h[3], h[4]), e.length = Io(t, r, n), r = h[3], n = h[4];
|
|
3212
3212
|
break;
|
|
3213
3213
|
case "Z":
|
|
3214
3214
|
e = l, e.destX = o, e.destY = a, e.length = Jr(r, n, o, a), r = o, n = a;
|
|
@@ -3231,7 +3231,7 @@ const zu = (i, t, e) => {
|
|
|
3231
3231
|
case "Q":
|
|
3232
3232
|
return Gu(r, t);
|
|
3233
3233
|
}
|
|
3234
|
-
}, Nu = new RegExp("[mzlhvcsqta][^mzlhvcsqta]*", "gi"), Po = new RegExp(Bu, "g"), Uu = new RegExp(
|
|
3234
|
+
}, Nu = new RegExp("[mzlhvcsqta][^mzlhvcsqta]*", "gi"), Po = new RegExp(Bu, "g"), Uu = new RegExp(Et, "gi"), $u = { m: 2, l: 2, h: 1, v: 1, c: 6, s: 4, q: 4, t: 2, a: 7 }, Hc = (i) => {
|
|
3235
3235
|
var t;
|
|
3236
3236
|
const e = [], s = (t = i.match(Nu)) !== null && t !== void 0 ? t : [];
|
|
3237
3237
|
for (const r of s) {
|
|
@@ -3330,7 +3330,7 @@ var Yn = Object.freeze({ __proto__: null, addTransformToObject: Ua, animate: Fn,
|
|
|
3330
3330
|
}, multiplyTransformMatrices: $, multiplyTransformMatrixArray: ni, parsePath: Hc, parsePreserveAspectRatioAttribute: Qa, parseUnit: Fe, pick: Ve, projectStrokeOnPoints: kc, qrDecompose: us, radiansToDegrees: Vt, removeFromArray: De, removeTransformFromObject: (i, t) => {
|
|
3331
3331
|
const e = bt(t), s = $(e, i.calcOwnMatrix());
|
|
3332
3332
|
fs(i, s);
|
|
3333
|
-
}, removeTransformMatrixForSvgParsing: Zu, request: Ju, requestAnimFrame:
|
|
3333
|
+
}, removeTransformMatrixForSvgParsing: Zu, request: Ju, requestAnimFrame: Is, resetObjectTransform: $a, rotatePoint: (i, t, e) => i.rotate(e, t), rotateVector: Pn, saveObjectTransform: jn, sendObjectToPlane: $i, sendPointToPlane: oe, sendVectorToPlane: qa, setStyle: Zr, sin: Lt, sizeAfterTransform: ai, string: du, stylesFromArray: jc, stylesToArray: Dc, toBlob: On, toDataURL: Cn, toFixed: W, transformPath: (i, t, e) => (e && (t = $(t, [1, 0, 0, 1, -e.x, -e.y])), i.map((s) => {
|
|
3334
3334
|
const r = [...s];
|
|
3335
3335
|
for (let n = 1; n < s.length - 1; n += 2) {
|
|
3336
3336
|
const { x: o, y: a } = lt({ x: s[n], y: s[n + 1] }, t);
|
|
@@ -4151,10 +4151,10 @@ class Pi {
|
|
|
4151
4151
|
}
|
|
4152
4152
|
b(Pi, "type", "Pattern"), k.setClass(Pi), k.setClass(Pi, "pattern");
|
|
4153
4153
|
const ld = ["path", "left", "top"], ud = ["d"];
|
|
4154
|
-
class
|
|
4154
|
+
class Ee extends ht {
|
|
4155
4155
|
constructor(t) {
|
|
4156
4156
|
let e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, { path: s, left: r, top: n } = e, o = V(e, ld);
|
|
4157
|
-
super(), Object.assign(this,
|
|
4157
|
+
super(), Object.assign(this, Ee.ownDefaults), this.setOptions(o), this._setPath(t || [], !0), typeof r == "number" && this.set(L, r), typeof n == "number" && this.set(pt, n);
|
|
4158
4158
|
}
|
|
4159
4159
|
_setPath(t, e) {
|
|
4160
4160
|
this.path = Fc(Array.isArray(t) ? t : Hc(t)), this.setBoundingBox(e);
|
|
@@ -4258,7 +4258,7 @@ class Ie extends ht {
|
|
|
4258
4258
|
return new this(n, v(v(v({}, V(r, ud)), e), {}, { left: void 0, top: void 0 }));
|
|
4259
4259
|
}
|
|
4260
4260
|
}
|
|
4261
|
-
b(
|
|
4261
|
+
b(Ee, "type", "Path"), b(Ee, "cacheProperties", [...le, "path", "fillRule"]), b(Ee, "ATTRIBUTE_NAMES", [...ke, "d"]), k.setClass(Ee), k.setSVGClass(Ee);
|
|
4262
4262
|
const dd = ["left", "top", "radius"], qc = ["radius", "startAngle", "endAngle", "counterClockwise"];
|
|
4263
4263
|
class te extends ht {
|
|
4264
4264
|
static getDefaults() {
|
|
@@ -4719,7 +4719,7 @@ class ut extends Zc {
|
|
|
4719
4719
|
t.fillStyle = e, this._removeShadow(t);
|
|
4720
4720
|
}
|
|
4721
4721
|
_measureChar(t, e, s, r) {
|
|
4722
|
-
const n =
|
|
4722
|
+
const n = Es.getFontCache(e), o = this._getFontDeclaration(e), a = s + t, c = s && o === this._getFontDeclaration(r), h = e.fontSize / this.CACHE_FONT_SIZE;
|
|
4723
4723
|
let l, u, d, g;
|
|
4724
4724
|
if (s && n.has(s) && (d = n.get(s)), n.has(t) && (g = l = n.get(t)), c && n.has(a) && (u = n.get(a), g = u - d), l === void 0 || d === void 0 || u === void 0) {
|
|
4725
4725
|
const f = function() {
|
|
@@ -4891,7 +4891,7 @@ class ut extends Zc {
|
|
|
4891
4891
|
const d = this._textLines[h], g = u / this.lineHeight, f = this._getLineLeftOffset(h);
|
|
4892
4892
|
let p = 0, m = 0, y = this.getValueOfPropertyAt(h, 0, e), T = this.getValueOfPropertyAt(h, 0, et), S = this.getValueOfPropertyAt(h, 0, We), w = y, C = T, O = S;
|
|
4893
4893
|
const D = s + g * (1 - this._fontSizeFraction);
|
|
4894
|
-
let M = this.getHeightOfChar(h, 0),
|
|
4894
|
+
let M = this.getHeightOfChar(h, 0), I = this.getValueOfPropertyAt(h, 0, "deltaY");
|
|
4895
4895
|
for (let X = 0, B = d.length; X < B; X++) {
|
|
4896
4896
|
const A = this.__charBounds[h][X];
|
|
4897
4897
|
w = this.getValueOfPropertyAt(h, X, e), C = this.getValueOfPropertyAt(h, X, et), O = this.getValueOfPropertyAt(h, X, We);
|
|
@@ -4899,16 +4899,16 @@ class ut extends Zc {
|
|
|
4899
4899
|
if (n && w && C) {
|
|
4900
4900
|
const ct = this.fontSize * O / 1e3;
|
|
4901
4901
|
t.save(), t.fillStyle = T, t.translate(A.renderLeft, A.renderTop), t.rotate(A.angle), t.fillRect(-A.kernedWidth / 2, c * at + it - a * ct, A.kernedWidth, ct), t.restore();
|
|
4902
|
-
} else if ((w !== y || C !== T || at !== M || O !== S || it !==
|
|
4902
|
+
} else if ((w !== y || C !== T || at !== M || O !== S || it !== I) && m > 0) {
|
|
4903
4903
|
const ct = this.fontSize * S / 1e3;
|
|
4904
4904
|
let z = r + f + p;
|
|
4905
|
-
this.direction === "rtl" && (z = this.width - z - m), y && T && S && (t.fillStyle = T, t.fillRect(z, D + c * M +
|
|
4905
|
+
this.direction === "rtl" && (z = this.width - z - m), y && T && S && (t.fillStyle = T, t.fillRect(z, D + c * M + I - a * ct, m, ct)), p = A.left, m = A.width, y = w, S = O, T = C, M = at, I = it;
|
|
4906
4906
|
} else m += A.kernedWidth;
|
|
4907
4907
|
}
|
|
4908
4908
|
let tt = r + f + p;
|
|
4909
4909
|
this.direction === "rtl" && (tt = this.width - tt - m), t.fillStyle = C;
|
|
4910
4910
|
const rt = this.fontSize * O / 1e3;
|
|
4911
|
-
w && C && O && t.fillRect(tt, D + c * M +
|
|
4911
|
+
w && C && O && t.fillRect(tt, D + c * M + I - a * rt, m - o, rt), s += u;
|
|
4912
4912
|
}
|
|
4913
4913
|
this._removeShadow(t);
|
|
4914
4914
|
}
|
|
@@ -5879,7 +5879,7 @@ class Ro extends fi {
|
|
|
5879
5879
|
calcLayoutResult(t, e) {
|
|
5880
5880
|
const { target: s } = t, { clipPath: r, group: n } = s;
|
|
5881
5881
|
if (!r || !this.shouldPerformLayout(t)) return;
|
|
5882
|
-
const { width: o, height: a } = Xt(
|
|
5882
|
+
const { width: o, height: a } = Xt(Ic(s, r)), c = new _(o, a);
|
|
5883
5883
|
if (r.absolutePositioned)
|
|
5884
5884
|
return { center: oe(r.getRelativeCenterPoint(), void 0, n ? n.calcTransformMatrix() : void 0), size: c };
|
|
5885
5885
|
{
|
|
@@ -6248,7 +6248,7 @@ function jd(i, t, e, s) {
|
|
|
6248
6248
|
const S = m.subtract(c.pathOffset).transform(c.calcOwnMatrix()).subtract(y);
|
|
6249
6249
|
return c.left -= S.x, c.top -= S.y, c.set("dirty", !0), !0;
|
|
6250
6250
|
})(r, e, s, n, o);
|
|
6251
|
-
return
|
|
6251
|
+
return En(this.actionName, v(v({}, In(i, t, e, s)), {}, { commandIndex: n, pointIndex: o })), a;
|
|
6252
6252
|
}
|
|
6253
6253
|
class ih extends N {
|
|
6254
6254
|
constructor(t) {
|
|
@@ -6259,7 +6259,7 @@ class ih extends N {
|
|
|
6259
6259
|
super.render(t, e, s, o, n);
|
|
6260
6260
|
}
|
|
6261
6261
|
}
|
|
6262
|
-
class
|
|
6262
|
+
class Ed extends ih {
|
|
6263
6263
|
constructor(t) {
|
|
6264
6264
|
super(t);
|
|
6265
6265
|
}
|
|
@@ -6274,7 +6274,7 @@ class Id extends ih {
|
|
|
6274
6274
|
t.lineTo(d.x, d.y), t.stroke(), t.restore(), super.render(t, e, s, r, n);
|
|
6275
6275
|
}
|
|
6276
6276
|
}
|
|
6277
|
-
const mr = (i, t, e, s, r, n) => new (e ?
|
|
6277
|
+
const mr = (i, t, e, s, r, n) => new (e ? Ed : ih)(v(v({ commandIndex: i, pointIndex: t, actionName: "modifyPath", positionHandler: Dd, actionHandler: jd, connectToCommandIndex: r, connectToPointIndex: n }, s), e ? s.controlPointStyle : s.pointStyle));
|
|
6278
6278
|
var _s = Object.freeze({ __proto__: null, changeWidth: Ji, createObjectDefaultControls: Bn, createPathControls: function(i) {
|
|
6279
6279
|
let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
6280
6280
|
const e = {};
|
|
@@ -6295,8 +6295,8 @@ var _s = Object.freeze({ __proto__: null, changeWidth: Ji, createObjectDefaultCo
|
|
|
6295
6295
|
const e = {};
|
|
6296
6296
|
for (let s = 0; s < (typeof i == "number" ? i : i.points.length); s++) e["p".concat(s)] = new N(v({ actionName: eh, positionHandler: Wo(s), actionHandler: Xo(s) }, t));
|
|
6297
6297
|
return e;
|
|
6298
|
-
}, createPolyPositionHandler: Wo, createResizeControls: xc, createTextboxDefaultControls: Sc, dragHandler: Za, factoryPolyActionHandler: rh, getLocalPoint: ci, polyActionHandler: sh, renderCircleControl: lc, renderSquareControl: uc, rotationStyleHandler: dc, rotationWithSnapping: gc, scaleCursorStyleHandler: Ze, scaleOrSkewActionName: Ms, scaleSkewCursorStyleHandler:
|
|
6299
|
-
const mi = (i) => i.webgl !== void 0, Vn = "precision highp float",
|
|
6298
|
+
}, createPolyPositionHandler: Wo, createResizeControls: xc, createTextboxDefaultControls: Sc, dragHandler: Za, factoryPolyActionHandler: rh, getLocalPoint: ci, polyActionHandler: sh, renderCircleControl: lc, renderSquareControl: uc, rotationStyleHandler: dc, rotationWithSnapping: gc, scaleCursorStyleHandler: Ze, scaleOrSkewActionName: Ms, scaleSkewCursorStyleHandler: Ie, scalingEqually: ks, scalingX: mc, scalingXOrSkewingY: Zi, scalingY: vc, scalingYOrSkewingX: Qi, skewCursorStyleHandler: yc, skewHandlerX: _c, skewHandlerY: Tc, wrapWithFireEvent: Oe, wrapWithFixedAnchor: Ge });
|
|
6299
|
+
const mi = (i) => i.webgl !== void 0, Vn = "precision highp float", Id = `
|
|
6300
6300
|
`.concat(Vn, `;
|
|
6301
6301
|
varying vec2 vTexCoord;
|
|
6302
6302
|
uniform sampler2D uTexture;
|
|
@@ -6312,7 +6312,7 @@ class st {
|
|
|
6312
6312
|
Object.assign(this, this.constructor.defaults, t);
|
|
6313
6313
|
}
|
|
6314
6314
|
getFragmentSource() {
|
|
6315
|
-
return
|
|
6315
|
+
return Id;
|
|
6316
6316
|
}
|
|
6317
6317
|
getVertexSource() {
|
|
6318
6318
|
return `
|
|
@@ -7310,21 +7310,21 @@ class Dr extends st {
|
|
|
7310
7310
|
lanczosResize(t, e, s, r, n) {
|
|
7311
7311
|
const o = t.imageData.data, a = t.ctx.createImageData(r, n), c = a.data, h = this.lanczosCreate(this.lanczosLobes), l = this.rcpScaleX, u = this.rcpScaleY, d = 2 / this.rcpScaleX, g = 2 / this.rcpScaleY, f = Math.ceil(l * this.lanczosLobes / 2), p = Math.ceil(u * this.lanczosLobes / 2), m = {}, y = { x: 0, y: 0 }, T = { x: 0, y: 0 };
|
|
7312
7312
|
return function S(w) {
|
|
7313
|
-
let C, O, D, M,
|
|
7313
|
+
let C, O, D, M, I, tt, rt, X, B, A, at;
|
|
7314
7314
|
for (y.x = (w + 0.5) * l, T.x = Math.floor(y.x), C = 0; C < n; C++) {
|
|
7315
|
-
for (y.y = (C + 0.5) * u, T.y = Math.floor(y.y),
|
|
7315
|
+
for (y.y = (C + 0.5) * u, T.y = Math.floor(y.y), I = 0, tt = 0, rt = 0, X = 0, B = 0, O = T.x - f; O <= T.x + f; O++) if (!(O < 0 || O >= e)) {
|
|
7316
7316
|
A = Math.floor(1e3 * Math.abs(O - y.x)), m[A] || (m[A] = {});
|
|
7317
|
-
for (let it = T.y - p; it <= T.y + p; it++) it < 0 || it >= s || (at = Math.floor(1e3 * Math.abs(it - y.y)), m[A][at] || (m[A][at] = h(Math.sqrt(Math.pow(A * d, 2) + Math.pow(at * g, 2)) / 1e3)), D = m[A][at], D > 0 && (M = 4 * (it * e + O),
|
|
7317
|
+
for (let it = T.y - p; it <= T.y + p; it++) it < 0 || it >= s || (at = Math.floor(1e3 * Math.abs(it - y.y)), m[A][at] || (m[A][at] = h(Math.sqrt(Math.pow(A * d, 2) + Math.pow(at * g, 2)) / 1e3)), D = m[A][at], D > 0 && (M = 4 * (it * e + O), I += D, tt += D * o[M], rt += D * o[M + 1], X += D * o[M + 2], B += D * o[M + 3]));
|
|
7318
7318
|
}
|
|
7319
|
-
M = 4 * (C * r + w), c[M] = tt /
|
|
7319
|
+
M = 4 * (C * r + w), c[M] = tt / I, c[M + 1] = rt / I, c[M + 2] = X / I, c[M + 3] = B / I;
|
|
7320
7320
|
}
|
|
7321
7321
|
return ++w < r ? S(w) : a;
|
|
7322
7322
|
}(0);
|
|
7323
7323
|
}
|
|
7324
7324
|
bilinearFiltering(t, e, s, r, n) {
|
|
7325
7325
|
let o, a, c, h, l, u, d, g, f, p, m, y, T, S = 0;
|
|
7326
|
-
const w = this.rcpScaleX, C = this.rcpScaleY, O = 4 * (e - 1), D = t.imageData.data, M = t.ctx.createImageData(r, n),
|
|
7327
|
-
for (d = 0; d < n; d++) for (g = 0; g < r; g++) for (l = Math.floor(w * g), u = Math.floor(C * d), f = w * g - l, p = C * d - u, T = 4 * (u * e + l), m = 0; m < 4; m++) o = D[T + m], a = D[T + 4 + m], c = D[T + O + m], h = D[T + O + 4 + m], y = o * (1 - f) * (1 - p) + a * f * (1 - p) + c * p * (1 - f) + h * f * p,
|
|
7326
|
+
const w = this.rcpScaleX, C = this.rcpScaleY, O = 4 * (e - 1), D = t.imageData.data, M = t.ctx.createImageData(r, n), I = M.data;
|
|
7327
|
+
for (d = 0; d < n; d++) for (g = 0; g < r; g++) for (l = Math.floor(w * g), u = Math.floor(C * d), f = w * g - l, p = C * d - u, T = 4 * (u * e + l), m = 0; m < 4; m++) o = D[T + m], a = D[T + 4 + m], c = D[T + O + m], h = D[T + O + 4 + m], y = o * (1 - f) * (1 - p) + a * f * (1 - p) + c * p * (1 - f) + h * f * p, I[S++] = y;
|
|
7328
7328
|
return M;
|
|
7329
7329
|
}
|
|
7330
7330
|
hermiteFastResize(t, e, s, r, n) {
|
|
@@ -7334,7 +7334,7 @@ class Dr extends st {
|
|
|
7334
7334
|
let m = 0, y = 0, T = 0, S = 0, w = 0, C = 0, O = 0;
|
|
7335
7335
|
const D = (g + 0.5) * a;
|
|
7336
7336
|
for (let M = Math.floor(g * a); M < (g + 1) * a; M++) {
|
|
7337
|
-
const
|
|
7337
|
+
const I = Math.abs(D - (M + 0.5)) / h, tt = (f + 0.5) * o, rt = I * I;
|
|
7338
7338
|
for (let X = Math.floor(f * o); X < (f + 1) * o; X++) {
|
|
7339
7339
|
let B = Math.abs(tt - (X + 0.5)) / c;
|
|
7340
7340
|
const A = Math.sqrt(rt + B * B);
|
|
@@ -7381,7 +7381,7 @@ class jr extends st {
|
|
|
7381
7381
|
}
|
|
7382
7382
|
}
|
|
7383
7383
|
b(jr, "type", "Saturation"), b(jr, "defaults", { saturation: 0 }), b(jr, "uniformLocations", ["uSaturation"]), k.setClass(jr);
|
|
7384
|
-
class
|
|
7384
|
+
class Er extends st {
|
|
7385
7385
|
getFragmentSource() {
|
|
7386
7386
|
return `
|
|
7387
7387
|
precision highp float;
|
|
@@ -7415,7 +7415,7 @@ class Ir extends st {
|
|
|
7415
7415
|
return this.vibrance === 0;
|
|
7416
7416
|
}
|
|
7417
7417
|
}
|
|
7418
|
-
b(
|
|
7418
|
+
b(Er, "type", "Vibrance"), b(Er, "defaults", { vibrance: 0 }), b(Er, "uniformLocations", ["uVibrance"]), k.setClass(Er);
|
|
7419
7419
|
function Gt(i, t, e, s, r) {
|
|
7420
7420
|
const a = r.canvas;
|
|
7421
7421
|
if (!a) return;
|
|
@@ -7608,9 +7608,9 @@ const Nd = {
|
|
|
7608
7608
|
center: 0,
|
|
7609
7609
|
bottom: 0.5,
|
|
7610
7610
|
right: 0.5
|
|
7611
|
-
},
|
|
7611
|
+
}, E = (i) => typeof i == "string" ? Nd[i] : i - 0.5, ze = "center", sr = "left", Ay = "top", Ly = "bottom", rr = "right", Fy = "none";
|
|
7612
7612
|
function ir(i) {
|
|
7613
|
-
return
|
|
7613
|
+
return E(i.originX) === E(ze) && E(i.originY) === E(ze);
|
|
7614
7614
|
}
|
|
7615
7615
|
function vi(i) {
|
|
7616
7616
|
return (t, e, s, r) => {
|
|
@@ -7645,7 +7645,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
|
|
|
7645
7645
|
e,
|
|
7646
7646
|
s
|
|
7647
7647
|
);
|
|
7648
|
-
if (
|
|
7648
|
+
if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
|
|
7649
7649
|
let { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
|
|
7650
7650
|
Math.abs(r.x * a / n.scaleX) - o
|
|
7651
7651
|
);
|
|
@@ -7699,7 +7699,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
|
|
|
7699
7699
|
e,
|
|
7700
7700
|
s
|
|
7701
7701
|
);
|
|
7702
|
-
if (
|
|
7702
|
+
if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
|
|
7703
7703
|
const { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
|
|
7704
7704
|
Math.abs(r.x * a / n.scaleX) - o
|
|
7705
7705
|
), l = t.corner === "ml";
|
|
@@ -7728,7 +7728,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
|
|
|
7728
7728
|
e,
|
|
7729
7729
|
s
|
|
7730
7730
|
);
|
|
7731
|
-
if (
|
|
7731
|
+
if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
|
|
7732
7732
|
const { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
|
|
7733
7733
|
Math.abs(r.x * a / n.scaleX) - o
|
|
7734
7734
|
), l = R(
|
|
@@ -7750,7 +7750,7 @@ const Rr = (i) => Object.keys(i).reduce((t, e) => {
|
|
|
7750
7750
|
e,
|
|
7751
7751
|
s
|
|
7752
7752
|
);
|
|
7753
|
-
if (
|
|
7753
|
+
if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
|
|
7754
7754
|
let { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
|
|
7755
7755
|
Math.abs(r.x * a / n.scaleX) - o
|
|
7756
7756
|
);
|
|
@@ -7895,7 +7895,7 @@ const { wrapWithFireEvent: dg, getLocalPoint: gg } = _s, fg = (i, t, e, s) => {
|
|
|
7895
7895
|
e,
|
|
7896
7896
|
s
|
|
7897
7897
|
);
|
|
7898
|
-
if (
|
|
7898
|
+
if (E(t.originX) === E(ze) || E(t.originX) === E(rr) && r.x < 0 || E(t.originX) === E(sr) && r.x > 0) {
|
|
7899
7899
|
let { target: n } = t, o = n.strokeWidth / (n.strokeUniform ? n.scaleX : 1), a = ir(t) ? 2 : 1, c = n.width, h = Math.ceil(
|
|
7900
7900
|
Math.abs(r.x * a / n.scaleX) - o
|
|
7901
7901
|
);
|
|
@@ -8283,9 +8283,9 @@ function jg(i) {
|
|
|
8283
8283
|
;
|
|
8284
8284
|
return t;
|
|
8285
8285
|
}
|
|
8286
|
-
var
|
|
8287
|
-
function
|
|
8288
|
-
return i && i.slice(0, jg(i) + 1).replace(
|
|
8286
|
+
var Eg = /^\s+/;
|
|
8287
|
+
function Ig(i) {
|
|
8288
|
+
return i && i.slice(0, jg(i) + 1).replace(Eg, "");
|
|
8289
8289
|
}
|
|
8290
8290
|
function Kt(i) {
|
|
8291
8291
|
var t = typeof i;
|
|
@@ -8303,7 +8303,7 @@ function $o(i) {
|
|
|
8303
8303
|
}
|
|
8304
8304
|
if (typeof i != "string")
|
|
8305
8305
|
return i === 0 ? i : +i;
|
|
8306
|
-
i =
|
|
8306
|
+
i = Ig(i);
|
|
8307
8307
|
var e = Ag.test(i);
|
|
8308
8308
|
return e || Lg.test(i) ? Fg(i.slice(2), e ? 2 : 8) : Pg.test(i) ? Uo : +i;
|
|
8309
8309
|
}
|
|
@@ -8478,9 +8478,9 @@ var ph = Object.prototype, xf = ph.hasOwnProperty, Sf = ph.propertyIsEnumerable,
|
|
|
8478
8478
|
function wf() {
|
|
8479
8479
|
return !1;
|
|
8480
8480
|
}
|
|
8481
|
-
var mh = typeof exports == "object" && exports && !exports.nodeType && exports, Qo = mh && typeof module == "object" && module && !module.nodeType && module, Cf = Qo && Qo.exports === mh, ta = Cf ? Ft.Buffer : void 0, Of = ta ? ta.isBuffer : void 0, ti = Of || wf, kf = "[object Arguments]", Mf = "[object Array]", Df = "[object Boolean]", jf = "[object Date]",
|
|
8481
|
+
var mh = typeof exports == "object" && exports && !exports.nodeType && exports, Qo = mh && typeof module == "object" && module && !module.nodeType && module, Cf = Qo && Qo.exports === mh, ta = Cf ? Ft.Buffer : void 0, Of = ta ? ta.isBuffer : void 0, ti = Of || wf, kf = "[object Arguments]", Mf = "[object Array]", Df = "[object Boolean]", jf = "[object Date]", Ef = "[object Error]", If = "[object Function]", Pf = "[object Map]", Af = "[object Number]", Lf = "[object Object]", Ff = "[object RegExp]", Rf = "[object Set]", Bf = "[object String]", Wf = "[object WeakMap]", Xf = "[object ArrayBuffer]", zf = "[object DataView]", Hf = "[object Float32Array]", Yf = "[object Float64Array]", Vf = "[object Int8Array]", Gf = "[object Int16Array]", Nf = "[object Int32Array]", Uf = "[object Uint8Array]", $f = "[object Uint8ClampedArray]", qf = "[object Uint16Array]", Kf = "[object Uint32Array]", Y = {};
|
|
8482
8482
|
Y[Hf] = Y[Yf] = Y[Vf] = Y[Gf] = Y[Nf] = Y[Uf] = Y[$f] = Y[qf] = Y[Kf] = !0;
|
|
8483
|
-
Y[kf] = Y[Mf] = Y[Xf] = Y[Df] = Y[zf] = Y[jf] = Y[
|
|
8483
|
+
Y[kf] = Y[Mf] = Y[Xf] = Y[Df] = Y[zf] = Y[jf] = Y[Ef] = Y[If] = Y[Pf] = Y[Af] = Y[Lf] = Y[Ff] = Y[Rf] = Y[Bf] = Y[Wf] = !1;
|
|
8484
8484
|
function Jf(i) {
|
|
8485
8485
|
return Ce(i) && Un(i.length) && !!Y[Ts(i)];
|
|
8486
8486
|
}
|
|
@@ -8629,10 +8629,10 @@ function jp(i) {
|
|
|
8629
8629
|
var t = _i(this, i).delete(i);
|
|
8630
8630
|
return this.size -= t ? 1 : 0, t;
|
|
8631
8631
|
}
|
|
8632
|
-
function
|
|
8632
|
+
function Ep(i) {
|
|
8633
8633
|
return _i(this, i).get(i);
|
|
8634
8634
|
}
|
|
8635
|
-
function
|
|
8635
|
+
function Ip(i) {
|
|
8636
8636
|
return _i(this, i).has(i);
|
|
8637
8637
|
}
|
|
8638
8638
|
function Pp(i, t) {
|
|
@@ -8648,8 +8648,8 @@ function ge(i) {
|
|
|
8648
8648
|
}
|
|
8649
8649
|
ge.prototype.clear = Mp;
|
|
8650
8650
|
ge.prototype.delete = jp;
|
|
8651
|
-
ge.prototype.get =
|
|
8652
|
-
ge.prototype.has =
|
|
8651
|
+
ge.prototype.get = Ep;
|
|
8652
|
+
ge.prototype.has = Ip;
|
|
8653
8653
|
ge.prototype.set = Pp;
|
|
8654
8654
|
var Ap = "Expected a function";
|
|
8655
8655
|
function Kn(i, t) {
|
|
@@ -8826,7 +8826,7 @@ function bm(i, t) {
|
|
|
8826
8826
|
var e = Qn(i.buffer);
|
|
8827
8827
|
return new i.constructor(e, i.byteOffset, i.length);
|
|
8828
8828
|
}
|
|
8829
|
-
var _m = "[object Boolean]", Tm = "[object Date]", xm = "[object Map]", Sm = "[object Number]", wm = "[object RegExp]", Cm = "[object Set]", Om = "[object String]", km = "[object Symbol]", Mm = "[object ArrayBuffer]", Dm = "[object DataView]", jm = "[object Float32Array]",
|
|
8829
|
+
var _m = "[object Boolean]", Tm = "[object Date]", xm = "[object Map]", Sm = "[object Number]", wm = "[object RegExp]", Cm = "[object Set]", Om = "[object String]", km = "[object Symbol]", Mm = "[object ArrayBuffer]", Dm = "[object DataView]", jm = "[object Float32Array]", Em = "[object Float64Array]", Im = "[object Int8Array]", Pm = "[object Int16Array]", Am = "[object Int32Array]", Lm = "[object Uint8Array]", Fm = "[object Uint8ClampedArray]", Rm = "[object Uint16Array]", Bm = "[object Uint32Array]";
|
|
8830
8830
|
function Wm(i, t, e) {
|
|
8831
8831
|
var s = i.constructor;
|
|
8832
8832
|
switch (t) {
|
|
@@ -8838,8 +8838,8 @@ function Wm(i, t, e) {
|
|
|
8838
8838
|
case Dm:
|
|
8839
8839
|
return pm(i);
|
|
8840
8840
|
case jm:
|
|
8841
|
-
case Im:
|
|
8842
8841
|
case Em:
|
|
8842
|
+
case Im:
|
|
8843
8843
|
case Pm:
|
|
8844
8844
|
case Am:
|
|
8845
8845
|
case Lm:
|
|
@@ -8982,7 +8982,7 @@ function Ov(i) {
|
|
|
8982
8982
|
e[++t] = s;
|
|
8983
8983
|
}), e;
|
|
8984
8984
|
}
|
|
8985
|
-
var kv = 1, Mv = 2, Dv = "[object Boolean]", jv = "[object Date]",
|
|
8985
|
+
var kv = 1, Mv = 2, Dv = "[object Boolean]", jv = "[object Date]", Ev = "[object Error]", Iv = "[object Map]", Pv = "[object Number]", Av = "[object RegExp]", Lv = "[object Set]", Fv = "[object String]", Rv = "[object Symbol]", Bv = "[object ArrayBuffer]", Wv = "[object DataView]", pa = Ot ? Ot.prototype : void 0, zi = pa ? pa.valueOf : void 0;
|
|
8986
8986
|
function Xv(i, t, e, s, r, n, o) {
|
|
8987
8987
|
switch (e) {
|
|
8988
8988
|
case Wv:
|
|
@@ -8995,12 +8995,12 @@ function Xv(i, t, e, s, r, n, o) {
|
|
|
8995
8995
|
case jv:
|
|
8996
8996
|
case Pv:
|
|
8997
8997
|
return Nn(+i, +t);
|
|
8998
|
-
case
|
|
8998
|
+
case Ev:
|
|
8999
8999
|
return i.name == t.name && i.message == t.message;
|
|
9000
9000
|
case Av:
|
|
9001
9001
|
case Fv:
|
|
9002
9002
|
return i == t + "";
|
|
9003
|
-
case
|
|
9003
|
+
case Iv:
|
|
9004
9004
|
var a = Cv;
|
|
9005
9005
|
case Lv:
|
|
9006
9006
|
var c = s & kv;
|
|
@@ -9050,11 +9050,11 @@ function Vv(i, t, e, s, r, n) {
|
|
|
9050
9050
|
}
|
|
9051
9051
|
return n.delete(i), n.delete(t), p;
|
|
9052
9052
|
}
|
|
9053
|
-
var Gv = 1, ma = "[object Arguments]", va = "[object Array]",
|
|
9053
|
+
var Gv = 1, ma = "[object Arguments]", va = "[object Array]", Ir = "[object Object]", Nv = Object.prototype, ya = Nv.hasOwnProperty;
|
|
9054
9054
|
function Uv(i, t, e, s, r, n) {
|
|
9055
9055
|
var o = qt(i), a = qt(t), c = o ? va : Dt(i), h = a ? va : Dt(t);
|
|
9056
|
-
c = c == ma ?
|
|
9057
|
-
var l = c ==
|
|
9056
|
+
c = c == ma ? Ir : c, h = h == ma ? Ir : h;
|
|
9057
|
+
var l = c == Ir, u = h == Ir, d = c == h;
|
|
9058
9058
|
if (d && ti(i)) {
|
|
9059
9059
|
if (!ti(t))
|
|
9060
9060
|
return !1;
|
|
@@ -9106,8 +9106,8 @@ function t0(i, t, e) {
|
|
|
9106
9106
|
return h = O, a = setTimeout(y, t), l ? g(O) : o;
|
|
9107
9107
|
}
|
|
9108
9108
|
function p(O) {
|
|
9109
|
-
var D = O - c, M = O - h,
|
|
9110
|
-
return u ? Qv(
|
|
9109
|
+
var D = O - c, M = O - h, I = t - D;
|
|
9110
|
+
return u ? Qv(I, n - M) : I;
|
|
9111
9111
|
}
|
|
9112
9112
|
function m(O) {
|
|
9113
9113
|
var D = O - c, M = O - h;
|
|
@@ -9594,7 +9594,7 @@ function v0(i) {
|
|
|
9594
9594
|
function y0(i) {
|
|
9595
9595
|
i.off("object:modified", jh);
|
|
9596
9596
|
}
|
|
9597
|
-
const
|
|
9597
|
+
const Eh = {
|
|
9598
9598
|
canvas: null,
|
|
9599
9599
|
enableGuideRedraw: !0,
|
|
9600
9600
|
isPointerOverHelperTrack: !1,
|
|
@@ -9615,11 +9615,11 @@ const Ih = {
|
|
|
9615
9615
|
initialTrackPoints: [],
|
|
9616
9616
|
updateItemsInTrack: null,
|
|
9617
9617
|
orderNormalTrack: !1
|
|
9618
|
-
}, K = () =>
|
|
9619
|
-
Object.assign(
|
|
9618
|
+
}, K = () => Eh, nt = (i) => {
|
|
9619
|
+
Object.assign(Eh, i);
|
|
9620
9620
|
}, xa = 10, xi = (i, t) => {
|
|
9621
9621
|
t.forEach((e) => e.isAlignmentAuxiliary && i.remove(e));
|
|
9622
|
-
},
|
|
9622
|
+
}, Ih = (i, t) => {
|
|
9623
9623
|
const e = [], s = [];
|
|
9624
9624
|
return t.getObjects().filter((r) => r.visible).forEach((r) => {
|
|
9625
9625
|
if (i.find((o) => o.id === r.id) || r.isAlignmentAuxiliary)
|
|
@@ -9765,7 +9765,7 @@ function Bh(i) {
|
|
|
9765
9765
|
c,
|
|
9766
9766
|
...t.getActiveObjects(),
|
|
9767
9767
|
...t.getObjects("Track", "Helper", "Transition", "Placeholder")
|
|
9768
|
-
], u =
|
|
9768
|
+
], u = Ih(l, t), d = Lh(c), g = Ph(u, d);
|
|
9769
9769
|
s && (xi(t, a), g.length && Ah(g, h, t), nt({ enableGuideRedraw: !1 }), setTimeout(() => nt({ enableGuideRedraw: !0 }), 50)), g.forEach((f) => {
|
|
9770
9770
|
f.orientation === "V" ? c.left = f.lineGuide + f.offset : c.top = f.lineGuide + f.offset;
|
|
9771
9771
|
});
|
|
@@ -9782,7 +9782,7 @@ function Xh(i) {
|
|
|
9782
9782
|
s,
|
|
9783
9783
|
...t.getActiveObjects(),
|
|
9784
9784
|
...t.getObjects("Track", "Helper", "Transition", "Placeholder")
|
|
9785
|
-
], h =
|
|
9785
|
+
], h = Ih(c, t), l = h.vertical.filter(
|
|
9786
9786
|
(g) => {
|
|
9787
9787
|
const f = g.val;
|
|
9788
9788
|
if (n === "ml")
|
|
@@ -10038,7 +10038,7 @@ function j0(i, t) {
|
|
|
10038
10038
|
const s = i.canvas.getActiveObject(), r = s.left + s.width / 2, n = t.left + t.width / 2;
|
|
10039
10039
|
return r < n ? t.left - s.width : (r > n, t.left + t.width);
|
|
10040
10040
|
}
|
|
10041
|
-
const
|
|
10041
|
+
const E0 = (i, t, e) => !(e < 0 || Vh(i, {
|
|
10042
10042
|
...t.getBoundingRect(),
|
|
10043
10043
|
left: e
|
|
10044
10044
|
})), Gh = (i) => {
|
|
@@ -10047,7 +10047,7 @@ const I0 = (i, t, e) => !(e < 0 || Vh(i, {
|
|
|
10047
10047
|
), r = i.type.toLowerCase();
|
|
10048
10048
|
return i instanceof we, e && (s == null ? void 0 : s.includes(r));
|
|
10049
10049
|
};
|
|
10050
|
-
function
|
|
10050
|
+
function I0(i) {
|
|
10051
10051
|
K().isPointerOverHelperTrack ? i.opacity = 0 : i.opacity = 1;
|
|
10052
10052
|
}
|
|
10053
10053
|
function P0() {
|
|
@@ -10074,7 +10074,7 @@ function A0(i) {
|
|
|
10074
10074
|
function L0(i, t, e, s) {
|
|
10075
10075
|
const n = i.canvas.getActiveObjects().map((l) => l.id), o = j0(i, t), a = e.filter(
|
|
10076
10076
|
(l) => !n.includes(l.id)
|
|
10077
|
-
), c =
|
|
10077
|
+
), c = E0(
|
|
10078
10078
|
a,
|
|
10079
10079
|
i,
|
|
10080
10080
|
o
|
|
@@ -10166,7 +10166,7 @@ const F0 = (i, t) => {
|
|
|
10166
10166
|
d.visible = !1;
|
|
10167
10167
|
return;
|
|
10168
10168
|
}
|
|
10169
|
-
f.setCoords(),
|
|
10169
|
+
f.setCoords(), I0(d);
|
|
10170
10170
|
let p = z0(
|
|
10171
10171
|
f,
|
|
10172
10172
|
n,
|
|
@@ -10633,7 +10633,7 @@ function sl(i) {
|
|
|
10633
10633
|
}
|
|
10634
10634
|
else {
|
|
10635
10635
|
const h = t.getScenePoint(i.e), l = R(
|
|
10636
|
-
h.x,
|
|
10636
|
+
h.x - 16,
|
|
10637
10637
|
t.tScale
|
|
10638
10638
|
), u = Vi(
|
|
10639
10639
|
s,
|
|
@@ -10676,18 +10676,19 @@ function sl(i) {
|
|
|
10676
10676
|
}
|
|
10677
10677
|
}
|
|
10678
10678
|
const ay = (i) => {
|
|
10679
|
+
var r;
|
|
10679
10680
|
const [t] = i, e = i.filter(
|
|
10680
|
-
(
|
|
10681
|
+
(n) => n.type !== "transition"
|
|
10681
10682
|
);
|
|
10682
|
-
let s = t.display.from;
|
|
10683
|
-
return e.map((
|
|
10684
|
-
const
|
|
10683
|
+
let s = ((r = t == null ? void 0 : t.display) == null ? void 0 : r.from) || 0;
|
|
10684
|
+
return e.map((n) => {
|
|
10685
|
+
const o = n.display.to - n.display.from, a = {
|
|
10685
10686
|
from: s,
|
|
10686
|
-
to: s +
|
|
10687
|
+
to: s + o
|
|
10687
10688
|
};
|
|
10688
|
-
return s =
|
|
10689
|
-
...
|
|
10690
|
-
display:
|
|
10689
|
+
return s = a.to, {
|
|
10690
|
+
...n,
|
|
10691
|
+
display: a
|
|
10691
10692
|
};
|
|
10692
10693
|
});
|
|
10693
10694
|
}, cy = (i, t) => {
|
|
@@ -10699,6 +10700,7 @@ const ay = (i) => {
|
|
|
10699
10700
|
const e = t.sort((o, a) => o.top - a.top);
|
|
10700
10701
|
if (e.length === 0) return 0;
|
|
10701
10702
|
const s = e[e.length - 1];
|
|
10703
|
+
if (!s || !i) return 0;
|
|
10702
10704
|
if (s.top + s.height <= i.top)
|
|
10703
10705
|
return e.length;
|
|
10704
10706
|
const r = i.top;
|
|
@@ -10821,27 +10823,27 @@ function gy(i) {
|
|
|
10821
10823
|
function fy(i) {
|
|
10822
10824
|
i.off("object:moving", al);
|
|
10823
10825
|
}
|
|
10824
|
-
let
|
|
10826
|
+
let It, to = !1;
|
|
10825
10827
|
function py(i, t) {
|
|
10826
10828
|
const e = i.canvas;
|
|
10827
10829
|
if (e.objectTypes.includes(i.type)) {
|
|
10828
|
-
|
|
10830
|
+
It || (It = i);
|
|
10829
10831
|
const r = i.top, n = i.height, o = i.left, a = i.width, c = t.x, h = t.y, l = Math.abs(h - (r + n / 2)) <= Ud;
|
|
10830
10832
|
Math.abs(c - o) <= Ho && l || Math.abs(c - o - a) <= Ho && l ? (e.hoverCornerItem = !0, i.hoverCursor = "ew-resize") : (e.hoverCornerItem = !1, i.hoverCursor = "move"), e.requestRenderAll();
|
|
10831
10833
|
}
|
|
10832
10834
|
}
|
|
10833
10835
|
function cl(i) {
|
|
10834
10836
|
const t = this, e = t.findTarget(i.e), s = t.getScenePoint(i.e);
|
|
10835
|
-
e && (e.isSelected &&
|
|
10837
|
+
e && (e.isSelected && It && (e.hoverCursor = "default"), py(e, s));
|
|
10836
10838
|
}
|
|
10837
10839
|
function hl() {
|
|
10838
|
-
|
|
10840
|
+
It && (It.lockMovementX = !1, It.lockMovementY = !1, It = void 0);
|
|
10839
10841
|
}
|
|
10840
10842
|
function ll(i) {
|
|
10841
|
-
|
|
10843
|
+
It && (to || It._renderControls(i.ctx));
|
|
10842
10844
|
}
|
|
10843
10845
|
function ul() {
|
|
10844
|
-
|
|
10846
|
+
It && (It = void 0, this.requestRenderAll());
|
|
10845
10847
|
}
|
|
10846
10848
|
function dl() {
|
|
10847
10849
|
to = !0;
|
|
@@ -11396,7 +11398,7 @@ const Dy = (i) => {
|
|
|
11396
11398
|
y < 0 && t[5] < y && (t[5] = y);
|
|
11397
11399
|
}
|
|
11398
11400
|
return t;
|
|
11399
|
-
},
|
|
11401
|
+
}, Ey = (i, t = {}) => (e) => {
|
|
11400
11402
|
const s = e.e;
|
|
11401
11403
|
s.target == i.upperCanvasEl && s.preventDefault();
|
|
11402
11404
|
const r = Math.floor(s.deltaY) != Math.ceil(s.deltaY);
|
|
@@ -11471,7 +11473,7 @@ const Dy = (i) => {
|
|
|
11471
11473
|
},
|
|
11472
11474
|
scrollSpace: e.scrollSpace ?? 0
|
|
11473
11475
|
};
|
|
11474
|
-
this._mouseWheelHandler =
|
|
11476
|
+
this._mouseWheelHandler = Ey(this, s), this.on("mouse:wheel", this._mouseWheelHandler), this._scrollbars = new My(this, s);
|
|
11475
11477
|
const r = e.offsetX ?? 0, n = e.offsetY ?? 0;
|
|
11476
11478
|
if (r !== 0 || n !== 0) {
|
|
11477
11479
|
const o = this.viewportTransform.slice(0);
|
|
@@ -11780,7 +11782,7 @@ export {
|
|
|
11780
11782
|
Rr as getDuration,
|
|
11781
11783
|
ir as isTransformCentered,
|
|
11782
11784
|
Xy as resize,
|
|
11783
|
-
|
|
11785
|
+
E as resolveOrigin,
|
|
11784
11786
|
ot as timeMsToUnits,
|
|
11785
11787
|
R as unitsToTimeMs,
|
|
11786
11788
|
Yn as util,
|