presenter 0.7.0 → 0.7.1
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/export.js +21 -21
- package/dist/export.mjs +559 -523
- package/dist/presenter.js +2 -2
- package/dist/presenter.mjs +723 -687
- package/dist/renderer/browser-canvas/utils/clipToPath.d.ts +7 -0
- package/dist/utils/objects/circle/getCircleInsetFillPath.d.ts +7 -0
- package/dist/utils/objects/rectangle/getRectangleInsetFillPath.d.ts +7 -0
- package/package.json +3 -2
package/dist/presenter.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Dt = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
const
|
|
2
|
+
var jt = (n, e, t) => e in n ? Dt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var I = (n, e, t) => jt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
const u0 = {
|
|
5
5
|
/** Represents an animated change in an object's properties. */
|
|
6
6
|
ANIMATE: "Animate",
|
|
7
7
|
/** Represents a pause in the animation timeline. */
|
|
@@ -9,13 +9,13 @@ const l0 = {
|
|
|
9
9
|
/** Represents an immediate update to an object's properties without animation. */
|
|
10
10
|
UPDATE: "Update"
|
|
11
11
|
};
|
|
12
|
-
function
|
|
12
|
+
function Ut(n) {
|
|
13
13
|
return n * n * n;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function zt(n) {
|
|
16
16
|
return --n * n * n + 1;
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ht(n) {
|
|
19
19
|
return ((n *= 2) <= 1 ? n * n * n : (n -= 2) * n * n + 2) / 2;
|
|
20
20
|
}
|
|
21
21
|
var J0 = 1.70158;
|
|
@@ -33,7 +33,7 @@ var J0 = 1.70158;
|
|
|
33
33
|
}
|
|
34
34
|
return t.overshoot = n, t;
|
|
35
35
|
})(J0);
|
|
36
|
-
var
|
|
36
|
+
var $t = (function n(e) {
|
|
37
37
|
e = +e;
|
|
38
38
|
function t(o) {
|
|
39
39
|
return ((o *= 2) < 1 ? o * o * ((e + 1) * o - e) : (o -= 2) * o * ((e + 1) * o + e) + 2) / 2;
|
|
@@ -42,19 +42,19 @@ var Ht = (function n(e) {
|
|
|
42
42
|
})(J0);
|
|
43
43
|
const tt = {
|
|
44
44
|
LINEAR: (n) => n,
|
|
45
|
-
CUBIC:
|
|
46
|
-
CUBIC_IN:
|
|
47
|
-
CUBIC_OUT:
|
|
48
|
-
BACK_IN_OUT:
|
|
49
|
-
},
|
|
45
|
+
CUBIC: Ht,
|
|
46
|
+
CUBIC_IN: Ut,
|
|
47
|
+
CUBIC_OUT: zt,
|
|
48
|
+
BACK_IN_OUT: $t.overshoot(0.8)
|
|
49
|
+
}, Wt = tt.LINEAR;
|
|
50
50
|
function et(n, e, t = {}) {
|
|
51
51
|
return {
|
|
52
|
-
type:
|
|
52
|
+
type: u0.ANIMATE,
|
|
53
53
|
object: n,
|
|
54
54
|
props: e,
|
|
55
55
|
delay: 0,
|
|
56
56
|
duration: 1e3,
|
|
57
|
-
easing:
|
|
57
|
+
easing: Wt,
|
|
58
58
|
block: !1,
|
|
59
59
|
interpolators: null,
|
|
60
60
|
isKey: !1,
|
|
@@ -62,36 +62,36 @@ function et(n, e, t = {}) {
|
|
|
62
62
|
...typeof t == "number" ? { duration: t } : t
|
|
63
63
|
};
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function hn(n, e = {}) {
|
|
66
66
|
return et(n, { opacity: 1 }, {
|
|
67
67
|
duration: 500,
|
|
68
68
|
easing: tt.CUBIC,
|
|
69
69
|
...typeof e == "number" ? { duration: e } : e
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function ln(n, e = {}) {
|
|
73
73
|
return et(n, { opacity: 0 }, {
|
|
74
74
|
duration: 500,
|
|
75
75
|
easing: tt.CUBIC,
|
|
76
76
|
...typeof e == "number" ? { duration: e } : e
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Ct(n, e) {
|
|
80
80
|
return {
|
|
81
|
-
type:
|
|
81
|
+
type: u0.UPDATE,
|
|
82
82
|
isKey: !1,
|
|
83
83
|
object: n,
|
|
84
84
|
props: e,
|
|
85
85
|
shortcut: null
|
|
86
86
|
};
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function cn(n) {
|
|
89
|
+
return Ct(n, { opacity: 0 });
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function un(n) {
|
|
92
|
+
return Ct(n, { opacity: 1 });
|
|
93
93
|
}
|
|
94
|
-
const
|
|
94
|
+
const n0 = {
|
|
95
95
|
TOP_LEFT: "TopLeft",
|
|
96
96
|
TOP: "Top",
|
|
97
97
|
TOP_RIGHT: "TopRight",
|
|
@@ -101,8 +101,8 @@ const e0 = {
|
|
|
101
101
|
BOTTOM_LEFT: "BottomLeft",
|
|
102
102
|
BOTTOM: "Bottom",
|
|
103
103
|
BOTTOM_RIGHT: "BottomRight"
|
|
104
|
-
},
|
|
105
|
-
function
|
|
104
|
+
}, h0 = n0.TOP_LEFT;
|
|
105
|
+
function Y(n, e = 0, t = 0, o = 1) {
|
|
106
106
|
if (typeof n == "string") {
|
|
107
107
|
const i = n.replace("#", ""), a = parseInt(i, 16);
|
|
108
108
|
return isNaN(a) ? (console.warn("Invalid hex color format:", n), K) : i.length === 6 ? {
|
|
@@ -131,18 +131,18 @@ function X(n, e = 0, t = 0, o = 1) {
|
|
|
131
131
|
...n
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
134
|
+
Y.BLACK = Y(0, 0, 0);
|
|
135
|
+
Y.BLUE = Y(0, 0, 255);
|
|
136
|
+
Y.GREEN = Y(0, 255, 0);
|
|
137
|
+
Y.RED = Y(255, 0, 0);
|
|
138
|
+
Y.TRANSPARENT = Y(0, 0, 0, 0);
|
|
139
|
+
Y.WHITE = Y(255, 255, 255);
|
|
140
140
|
const K = { red: 0, green: 0, blue: 0, alpha: 1 };
|
|
141
|
-
function
|
|
141
|
+
function Et(n = null) {
|
|
142
142
|
return {
|
|
143
143
|
content: null,
|
|
144
144
|
setup: null,
|
|
145
|
-
anchor:
|
|
145
|
+
anchor: n0.TOP_LEFT,
|
|
146
146
|
height: 0,
|
|
147
147
|
width: 0,
|
|
148
148
|
x: 0,
|
|
@@ -150,22 +150,22 @@ function Ct(n = null) {
|
|
|
150
150
|
...n
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function St(n, e = null) {
|
|
154
154
|
return n.alpha * (e ?? 1);
|
|
155
155
|
}
|
|
156
156
|
function E0(n, e = null) {
|
|
157
|
-
const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(
|
|
157
|
+
const { red: t, green: o, blue: i } = n, a = t << 16 | o << 8 | i, s = Math.round(St(n, e) * 255);
|
|
158
158
|
return `#${a.toString(16).padStart(6, "0")}${s !== 255 ? s.toString(16).padStart(2, "0") : ""}`;
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function fn(n = null) {
|
|
161
161
|
const {
|
|
162
162
|
url: e = "https://wikipedia.org/",
|
|
163
|
-
backgroundColor: t =
|
|
163
|
+
backgroundColor: t = Y.TRANSPARENT,
|
|
164
164
|
borderColor: o = K,
|
|
165
165
|
borderWidth: i = 0,
|
|
166
166
|
pointerEvents: a = "auto",
|
|
167
167
|
scale: s = 1,
|
|
168
|
-
anchor: r =
|
|
168
|
+
anchor: r = h0,
|
|
169
169
|
height: h = 1e3,
|
|
170
170
|
width: c = 1e3,
|
|
171
171
|
x: f = 0,
|
|
@@ -173,7 +173,7 @@ function ln(n = null) {
|
|
|
173
173
|
} = n || {}, l = document.createElement("iframe");
|
|
174
174
|
l.src = e, l.style.backgroundColor = E0(t), l.style.border = i > 0 ? `${i}px solid ${E0(o)}` : "none", l.style.pointerEvents = a;
|
|
175
175
|
const u = (100 / s).toFixed(3) + "%";
|
|
176
|
-
return l.style.height = i === 0 ? u : `calc(${u} - ${i * 2}px)`, l.style.width = i === 0 ? u : `calc(${u} - ${i * 2}px)`, l.style.transform = `scale(${s})`, l.style.transformOrigin = "top left",
|
|
176
|
+
return l.style.height = i === 0 ? u : `calc(${u} - ${i * 2}px)`, l.style.width = i === 0 ? u : `calc(${u} - ${i * 2}px)`, l.style.transform = `scale(${s})`, l.style.transformOrigin = "top left", Et({
|
|
177
177
|
content: l,
|
|
178
178
|
anchor: r,
|
|
179
179
|
height: h,
|
|
@@ -182,19 +182,19 @@ function ln(n = null) {
|
|
|
182
182
|
y: x
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
const
|
|
185
|
+
const d0 = {
|
|
186
186
|
LEFT: "left",
|
|
187
187
|
CENTER: "center",
|
|
188
188
|
RIGHT: "right"
|
|
189
|
-
}, Yt =
|
|
190
|
-
function
|
|
189
|
+
}, Yt = d0.LEFT;
|
|
190
|
+
function s0(n, e) {
|
|
191
191
|
throw new Error("Unexpected value: " + n);
|
|
192
192
|
}
|
|
193
|
-
function
|
|
193
|
+
function gn(n = null) {
|
|
194
194
|
const {
|
|
195
|
-
alignment: e =
|
|
195
|
+
alignment: e = d0.LEFT,
|
|
196
196
|
scale: t = 1,
|
|
197
|
-
anchor: o =
|
|
197
|
+
anchor: o = h0,
|
|
198
198
|
height: i = 1e3,
|
|
199
199
|
width: a = 1e3,
|
|
200
200
|
x: s = 0,
|
|
@@ -203,17 +203,17 @@ function cn(n = null) {
|
|
|
203
203
|
function h(c) {
|
|
204
204
|
const f = document.createElement("video");
|
|
205
205
|
switch (f.autoplay = !0, f.style.transform = `scale(${t})`, e) {
|
|
206
|
-
case
|
|
206
|
+
case d0.LEFT:
|
|
207
207
|
f.style.transformOrigin = "top left";
|
|
208
208
|
break;
|
|
209
|
-
case
|
|
209
|
+
case d0.CENTER:
|
|
210
210
|
f.style.transformOrigin = "top center";
|
|
211
211
|
break;
|
|
212
|
-
case
|
|
212
|
+
case d0.RIGHT:
|
|
213
213
|
f.style.transformOrigin = "top right";
|
|
214
214
|
break;
|
|
215
215
|
default:
|
|
216
|
-
|
|
216
|
+
s0(e);
|
|
217
217
|
}
|
|
218
218
|
c.appendChild(f);
|
|
219
219
|
const x = {
|
|
@@ -233,7 +233,7 @@ function cn(n = null) {
|
|
|
233
233
|
f.srcObject.getTracks().forEach((u) => u.stop()), f.style.display = "none", f.srcObject = null;
|
|
234
234
|
};
|
|
235
235
|
}
|
|
236
|
-
return
|
|
236
|
+
return Et({
|
|
237
237
|
content: null,
|
|
238
238
|
setup: h,
|
|
239
239
|
anchor: o,
|
|
@@ -256,16 +256,16 @@ const H = {
|
|
|
256
256
|
SLIDE_OBJECT: "SlideObject",
|
|
257
257
|
TEXT: "Text"
|
|
258
258
|
};
|
|
259
|
-
function
|
|
259
|
+
function l0(n) {
|
|
260
260
|
return {
|
|
261
261
|
objectType: H.SLIDE_OBJECT,
|
|
262
262
|
opacity: 1,
|
|
263
263
|
...n
|
|
264
264
|
};
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function pn(n = null) {
|
|
267
267
|
const { arrowheadSize: e, width: t = 10, ...o } = n || {}, i = e ?? t * 4;
|
|
268
|
-
return
|
|
268
|
+
return l0({
|
|
269
269
|
objectType: H.ARROW,
|
|
270
270
|
arrowheadSize: i,
|
|
271
271
|
color: K,
|
|
@@ -282,10 +282,10 @@ function un(n = null) {
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
const Xt = 50;
|
|
285
|
-
function
|
|
286
|
-
return
|
|
285
|
+
function dn(n = null) {
|
|
286
|
+
return l0({
|
|
287
287
|
objectType: H.CIRCLE,
|
|
288
|
-
anchor:
|
|
288
|
+
anchor: h0,
|
|
289
289
|
borderColor: K,
|
|
290
290
|
borderWidth: 0,
|
|
291
291
|
drawn: 1,
|
|
@@ -296,10 +296,10 @@ function fn(n = null) {
|
|
|
296
296
|
...n
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
return
|
|
299
|
+
function st(n, e = null) {
|
|
300
|
+
return l0({
|
|
301
301
|
objectType: H.GROUP,
|
|
302
|
-
anchor:
|
|
302
|
+
anchor: h0,
|
|
303
303
|
height: 0,
|
|
304
304
|
objects: n,
|
|
305
305
|
previewColor: null,
|
|
@@ -314,9 +314,9 @@ function ot(n, e = null) {
|
|
|
314
314
|
...e
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function xn(n) {
|
|
318
318
|
const {
|
|
319
|
-
anchor: e =
|
|
319
|
+
anchor: e = h0,
|
|
320
320
|
cols: t = 1,
|
|
321
321
|
rows: o = 1,
|
|
322
322
|
gapX: i = 0,
|
|
@@ -335,7 +335,7 @@ function gn(n) {
|
|
|
335
335
|
for (let L = 0; L < t; L++) {
|
|
336
336
|
const S = f(M, L), P = typeof s == "function" ? s(M, L) : s, F = typeof r == "function" ? r(M, L) : r;
|
|
337
337
|
C.push(S), S != null && l.push(
|
|
338
|
-
|
|
338
|
+
st([S], {
|
|
339
339
|
x: u,
|
|
340
340
|
y: A
|
|
341
341
|
})
|
|
@@ -344,7 +344,7 @@ function gn(n) {
|
|
|
344
344
|
x.push(C), A += E + a;
|
|
345
345
|
}
|
|
346
346
|
return {
|
|
347
|
-
grid:
|
|
347
|
+
grid: st(l, {
|
|
348
348
|
x: h,
|
|
349
349
|
y: c,
|
|
350
350
|
height: A - a,
|
|
@@ -354,10 +354,10 @@ function gn(n) {
|
|
|
354
354
|
objects: x
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
return
|
|
357
|
+
function yn(n = null) {
|
|
358
|
+
return l0({
|
|
359
359
|
objectType: H.IMAGE,
|
|
360
|
-
anchor:
|
|
360
|
+
anchor: h0,
|
|
361
361
|
height: 100,
|
|
362
362
|
imageId: "",
|
|
363
363
|
rounding: 0,
|
|
@@ -368,8 +368,8 @@ function pn(n = null) {
|
|
|
368
368
|
...n
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
return
|
|
371
|
+
function vn(n = null) {
|
|
372
|
+
return l0({
|
|
373
373
|
objectType: H.LINE,
|
|
374
374
|
color: K,
|
|
375
375
|
drawn: 1,
|
|
@@ -383,10 +383,10 @@ function dn(n = null) {
|
|
|
383
383
|
...n
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
return
|
|
386
|
+
function wn(n, e = null) {
|
|
387
|
+
return l0({
|
|
388
388
|
objectType: H.MASK,
|
|
389
|
-
anchor:
|
|
389
|
+
anchor: h0,
|
|
390
390
|
height: 100,
|
|
391
391
|
objects: n,
|
|
392
392
|
preview: !1,
|
|
@@ -396,11 +396,11 @@ function xn(n, e = null) {
|
|
|
396
396
|
...e
|
|
397
397
|
});
|
|
398
398
|
}
|
|
399
|
-
var Gt = Object.defineProperty,
|
|
399
|
+
var Gt = Object.defineProperty, k = (n, e) => Gt(n, "name", { value: e, configurable: !0 }), P0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Zt = /([astvzqmhlc])([^astvzqmhlc]*)/gi, Kt = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi, Vt = k((n) => {
|
|
400
400
|
const e = (n && n.length > 0 ? n : "M0,0").match(Zt);
|
|
401
401
|
if (!e) throw new Error(`No path elements found in string ${n}`);
|
|
402
402
|
return e.reduce((t, o) => {
|
|
403
|
-
let i = o.charAt(0), a = i.toLowerCase(), s =
|
|
403
|
+
let i = o.charAt(0), a = i.toLowerCase(), s = Qt(o.substring(1));
|
|
404
404
|
if (a === "m" && s.length > 2 && (t.push([i, ...s.splice(0, 2)]), a = "l", i = i === "m" ? "l" : "L"), a.toLowerCase() === "a" && (s.length === 5 || s.length === 6)) {
|
|
405
405
|
const r = o.substring(1).trim().split(" ");
|
|
406
406
|
s = [Number(r[0]), Number(r[1]), Number(r[2]), Number(r[3].charAt(0)), Number(r[3].charAt(1)), Number(r[3].substring(2)), Number(r[4])];
|
|
@@ -415,51 +415,51 @@ var Gt = Object.defineProperty, O = (n, e) => Gt(n, "name", { value: e, configur
|
|
|
415
415
|
}
|
|
416
416
|
return t;
|
|
417
417
|
}, []);
|
|
418
|
-
}, "default"),
|
|
419
|
-
const e = n.match(
|
|
418
|
+
}, "default"), Qt = k((n) => {
|
|
419
|
+
const e = n.match(Kt);
|
|
420
420
|
return e ? e.map(Number) : [];
|
|
421
|
-
}, "parseValues"),
|
|
421
|
+
}, "parseValues"), w0, V = (w0 = class {
|
|
422
422
|
constructor(e, t, o, i) {
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
423
|
+
I(this, "x0");
|
|
424
|
+
I(this, "x1");
|
|
425
|
+
I(this, "y0");
|
|
426
|
+
I(this, "y1");
|
|
427
|
+
I(this, "getTotalLength", k(() => Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2)), "getTotalLength"));
|
|
428
|
+
I(this, "getPointAtLength", k((e) => {
|
|
429
429
|
let t = e / Math.sqrt(Math.pow(this.x0 - this.x1, 2) + Math.pow(this.y0 - this.y1, 2));
|
|
430
430
|
t = Number.isNaN(t) ? 1 : t;
|
|
431
431
|
const o = (this.x1 - this.x0) * t, i = (this.y1 - this.y0) * t;
|
|
432
432
|
return { x: this.x0 + o, y: this.y0 + i };
|
|
433
433
|
}, "getPointAtLength"));
|
|
434
|
-
|
|
434
|
+
I(this, "getTangentAtLength", k((e) => {
|
|
435
435
|
const t = Math.sqrt((this.x1 - this.x0) * (this.x1 - this.x0) + (this.y1 - this.y0) * (this.y1 - this.y0));
|
|
436
436
|
return { x: (this.x1 - this.x0) / t, y: (this.y1 - this.y0) / t };
|
|
437
437
|
}, "getTangentAtLength"));
|
|
438
|
-
|
|
438
|
+
I(this, "getPropertiesAtLength", k((e) => {
|
|
439
439
|
const t = this.getPointAtLength(e), o = this.getTangentAtLength(e);
|
|
440
440
|
return { x: t.x, y: t.y, tangentX: o.x, tangentY: o.y };
|
|
441
441
|
}, "getPropertiesAtLength"));
|
|
442
442
|
this.x0 = e, this.x1 = t, this.y0 = o, this.y1 = i;
|
|
443
443
|
}
|
|
444
|
-
},
|
|
444
|
+
}, k(w0, "LinearPosition"), w0), A0, at = (A0 = class {
|
|
445
445
|
constructor(e, t, o, i, a, s, r, h, c) {
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
446
|
+
I(this, "x0");
|
|
447
|
+
I(this, "y0");
|
|
448
|
+
I(this, "rx");
|
|
449
|
+
I(this, "ry");
|
|
450
|
+
I(this, "xAxisRotate");
|
|
451
|
+
I(this, "LargeArcFlag");
|
|
452
|
+
I(this, "SweepFlag");
|
|
453
|
+
I(this, "x1");
|
|
454
|
+
I(this, "y1");
|
|
455
|
+
I(this, "length");
|
|
456
|
+
I(this, "getTotalLength", k(() => this.length, "getTotalLength"));
|
|
457
|
+
I(this, "getPointAtLength", k((e) => {
|
|
458
458
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
459
|
-
const t =
|
|
459
|
+
const t = ht({ x: this.x0, y: this.y0 }, this.rx, this.ry, this.xAxisRotate, this.LargeArcFlag, this.SweepFlag, { x: this.x1, y: this.y1 }, e / this.length);
|
|
460
460
|
return { x: t.x, y: t.y };
|
|
461
461
|
}, "getPointAtLength"));
|
|
462
|
-
|
|
462
|
+
I(this, "getTangentAtLength", k((e) => {
|
|
463
463
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
464
464
|
const t = 0.05, o = this.getPointAtLength(e);
|
|
465
465
|
let i;
|
|
@@ -467,74 +467,74 @@ var Gt = Object.defineProperty, O = (n, e) => Gt(n, "name", { value: e, configur
|
|
|
467
467
|
const a = i.x - o.x, s = i.y - o.y, r = Math.sqrt(a * a + s * s);
|
|
468
468
|
return e < this.length - t ? { x: -a / r, y: -s / r } : { x: a / r, y: s / r };
|
|
469
469
|
}, "getTangentAtLength"));
|
|
470
|
-
|
|
470
|
+
I(this, "getPropertiesAtLength", k((e) => {
|
|
471
471
|
const t = this.getTangentAtLength(e), o = this.getPointAtLength(e);
|
|
472
472
|
return { x: o.x, y: o.y, tangentX: t.x, tangentY: t.y };
|
|
473
473
|
}, "getPropertiesAtLength"));
|
|
474
474
|
this.x0 = e, this.y0 = t, this.rx = o, this.ry = i, this.xAxisRotate = a, this.LargeArcFlag = s, this.SweepFlag = r, this.x1 = h, this.y1 = c;
|
|
475
|
-
const f =
|
|
476
|
-
return
|
|
475
|
+
const f = Jt(300, function(x) {
|
|
476
|
+
return ht({ x: e, y: t }, o, i, a, s, r, { x: h, y: c }, x);
|
|
477
477
|
});
|
|
478
478
|
this.length = f.arcLength;
|
|
479
479
|
}
|
|
480
|
-
},
|
|
481
|
-
e = Math.abs(e), t = Math.abs(t), o =
|
|
482
|
-
const h =
|
|
480
|
+
}, k(A0, "Arc"), A0), ht = k((n, e, t, o, i, a, s, r) => {
|
|
481
|
+
e = Math.abs(e), t = Math.abs(t), o = t1(o, 360);
|
|
482
|
+
const h = e1(o);
|
|
483
483
|
if (n.x === s.x && n.y === s.y) return { x: n.x, y: n.y, ellipticalArcAngle: 0 };
|
|
484
484
|
if (e === 0 || t === 0) return { x: 0, y: 0, ellipticalArcAngle: 0 };
|
|
485
485
|
const c = (n.x - s.x) / 2, f = (n.y - s.y) / 2, x = { x: Math.cos(h) * c + Math.sin(h) * f, y: -Math.sin(h) * c + Math.cos(h) * f }, l = Math.pow(x.x, 2) / Math.pow(e, 2) + Math.pow(x.y, 2) / Math.pow(t, 2);
|
|
486
486
|
l > 1 && (e = Math.sqrt(l) * e, t = Math.sqrt(l) * t);
|
|
487
487
|
let u = (Math.pow(e, 2) * Math.pow(t, 2) - Math.pow(e, 2) * Math.pow(x.y, 2) - Math.pow(t, 2) * Math.pow(x.x, 2)) / (Math.pow(e, 2) * Math.pow(x.y, 2) + Math.pow(t, 2) * Math.pow(x.x, 2));
|
|
488
488
|
u = u < 0 ? 0 : u;
|
|
489
|
-
const A = (i !== a ? 1 : -1) * Math.sqrt(u), y = A * (e * x.y / t), M = A * (-t * x.x / e), C = { x: Math.cos(h) * y - Math.sin(h) * M + (n.x + s.x) / 2, y: Math.sin(h) * y + Math.cos(h) * M + (n.y + s.y) / 2 }, E = { x: (x.x - y) / e, y: (x.y - M) / t }, L =
|
|
490
|
-
let S =
|
|
489
|
+
const A = (i !== a ? 1 : -1) * Math.sqrt(u), y = A * (e * x.y / t), M = A * (-t * x.x / e), C = { x: Math.cos(h) * y - Math.sin(h) * M + (n.x + s.x) / 2, y: Math.sin(h) * y + Math.cos(h) * M + (n.y + s.y) / 2 }, E = { x: (x.x - y) / e, y: (x.y - M) / t }, L = ct({ x: 1, y: 0 }, E);
|
|
490
|
+
let S = ct(E, { x: (-x.x - y) / e, y: (-x.y - M) / t });
|
|
491
491
|
!a && S > 0 ? S -= 2 * Math.PI : a && S < 0 && (S += 2 * Math.PI), S %= 2 * Math.PI;
|
|
492
492
|
const P = L + S * r, F = e * Math.cos(P), z = t * Math.sin(P);
|
|
493
493
|
return { x: Math.cos(h) * F - Math.sin(h) * z + C.x, y: Math.sin(h) * F + Math.cos(h) * z + C.y, ellipticalArcStartAngle: L, ellipticalArcEndAngle: L + S, ellipticalArcAngle: P, ellipticalArcCenter: C, resultantRx: e, resultantRy: t };
|
|
494
|
-
}, "pointOnEllipticalArc"),
|
|
494
|
+
}, "pointOnEllipticalArc"), Jt = k((n, e) => {
|
|
495
495
|
n = n ?? 500;
|
|
496
496
|
let t = 0;
|
|
497
497
|
const o = [], i = [];
|
|
498
498
|
let a, s = e(0);
|
|
499
499
|
for (let r = 0; r < n; r++) {
|
|
500
|
-
const h =
|
|
501
|
-
a = e(h), t +=
|
|
500
|
+
const h = n1(r * (1 / n), 0, 1);
|
|
501
|
+
a = e(h), t += lt(s, a), i.push([s, a]), o.push({ t: h, arcLength: t }), s = a;
|
|
502
502
|
}
|
|
503
|
-
return a = e(1), i.push([s, a]), t +=
|
|
504
|
-
}, "approximateArcLengthOfCurve"),
|
|
503
|
+
return a = e(1), i.push([s, a]), t += lt(s, a), o.push({ t: 1, arcLength: t }), { arcLength: t, arcLengthMap: o, approximationLines: i };
|
|
504
|
+
}, "approximateArcLengthOfCurve"), t1 = k((n, e) => (n % e + e) % e, "mod"), e1 = k((n) => n * (Math.PI / 180), "toRadians"), lt = k((n, e) => Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2)), "distance"), n1 = k((n, e, t) => Math.min(Math.max(n, e), t), "clamp"), ct = k((n, e) => {
|
|
505
505
|
const t = n.x * e.x + n.y * e.y, o = Math.sqrt((Math.pow(n.x, 2) + Math.pow(n.y, 2)) * (Math.pow(e.x, 2) + Math.pow(e.y, 2)));
|
|
506
506
|
return (n.x * e.y - n.y * e.x < 0 ? -1 : 1) * Math.acos(t / o);
|
|
507
|
-
}, "angleBetween"), n1 = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], r1 = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], i1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], o1 = O((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), s1 = O((n, e, t) => St([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), a1 = O((n, e, t) => {
|
|
507
|
+
}, "angleBetween"), r1 = [[], [], [-0.5773502691896257, 0.5773502691896258], [0, -0.7745966692414833, 0.7745966692414833], [-0.33998104358485626, 0.33998104358485626, -0.8611363115940526, 0.8611363115940526], [0, -0.5384693101056831, 0.5384693101056831, -0.906179845938664, 0.906179845938664], [0.6612093864662645, -0.6612093864662645, -0.2386191860831969, 0.2386191860831969, -0.932469514203152, 0.932469514203152], [0, 0.4058451513773972, -0.4058451513773972, -0.7415311855993945, 0.7415311855993945, -0.9491079123427585, 0.9491079123427585], [-0.1834346424956498, 0.1834346424956498, -0.525532409916329, 0.525532409916329, -0.7966664774136267, 0.7966664774136267, -0.9602898564975363, 0.9602898564975363], [0, -0.8360311073266358, 0.8360311073266358, -0.9681602395076261, 0.9681602395076261, -0.3242534234038089, 0.3242534234038089, -0.6133714327005904, 0.6133714327005904], [-0.14887433898163122, 0.14887433898163122, -0.4333953941292472, 0.4333953941292472, -0.6794095682990244, 0.6794095682990244, -0.8650633666889845, 0.8650633666889845, -0.9739065285171717, 0.9739065285171717], [0, -0.26954315595234496, 0.26954315595234496, -0.5190961292068118, 0.5190961292068118, -0.7301520055740494, 0.7301520055740494, -0.8870625997680953, 0.8870625997680953, -0.978228658146057, 0.978228658146057], [-0.1252334085114689, 0.1252334085114689, -0.3678314989981802, 0.3678314989981802, -0.5873179542866175, 0.5873179542866175, -0.7699026741943047, 0.7699026741943047, -0.9041172563704749, 0.9041172563704749, -0.9815606342467192, 0.9815606342467192], [0, -0.2304583159551348, 0.2304583159551348, -0.44849275103644687, 0.44849275103644687, -0.6423493394403402, 0.6423493394403402, -0.8015780907333099, 0.8015780907333099, -0.9175983992229779, 0.9175983992229779, -0.9841830547185881, 0.9841830547185881], [-0.10805494870734367, 0.10805494870734367, -0.31911236892788974, 0.31911236892788974, -0.5152486363581541, 0.5152486363581541, -0.6872929048116855, 0.6872929048116855, -0.827201315069765, 0.827201315069765, -0.9284348836635735, 0.9284348836635735, -0.9862838086968123, 0.9862838086968123], [0, -0.20119409399743451, 0.20119409399743451, -0.3941513470775634, 0.3941513470775634, -0.5709721726085388, 0.5709721726085388, -0.7244177313601701, 0.7244177313601701, -0.8482065834104272, 0.8482065834104272, -0.937273392400706, 0.937273392400706, -0.9879925180204854, 0.9879925180204854], [-0.09501250983763744, 0.09501250983763744, -0.2816035507792589, 0.2816035507792589, -0.45801677765722737, 0.45801677765722737, -0.6178762444026438, 0.6178762444026438, -0.755404408355003, 0.755404408355003, -0.8656312023878318, 0.8656312023878318, -0.9445750230732326, 0.9445750230732326, -0.9894009349916499, 0.9894009349916499], [0, -0.17848418149584785, 0.17848418149584785, -0.3512317634538763, 0.3512317634538763, -0.5126905370864769, 0.5126905370864769, -0.6576711592166907, 0.6576711592166907, -0.7815140038968014, 0.7815140038968014, -0.8802391537269859, 0.8802391537269859, -0.9506755217687678, 0.9506755217687678, -0.9905754753144174, 0.9905754753144174], [-0.0847750130417353, 0.0847750130417353, -0.2518862256915055, 0.2518862256915055, -0.41175116146284263, 0.41175116146284263, -0.5597708310739475, 0.5597708310739475, -0.6916870430603532, 0.6916870430603532, -0.8037049589725231, 0.8037049589725231, -0.8926024664975557, 0.8926024664975557, -0.9558239495713977, 0.9558239495713977, -0.9915651684209309, 0.9915651684209309], [0, -0.16035864564022537, 0.16035864564022537, -0.31656409996362983, 0.31656409996362983, -0.46457074137596094, 0.46457074137596094, -0.600545304661681, 0.600545304661681, -0.7209661773352294, 0.7209661773352294, -0.8227146565371428, 0.8227146565371428, -0.9031559036148179, 0.9031559036148179, -0.96020815213483, 0.96020815213483, -0.9924068438435844, 0.9924068438435844], [-0.07652652113349734, 0.07652652113349734, -0.22778585114164507, 0.22778585114164507, -0.37370608871541955, 0.37370608871541955, -0.5108670019508271, 0.5108670019508271, -0.636053680726515, 0.636053680726515, -0.7463319064601508, 0.7463319064601508, -0.8391169718222188, 0.8391169718222188, -0.912234428251326, 0.912234428251326, -0.9639719272779138, 0.9639719272779138, -0.9931285991850949, 0.9931285991850949], [0, -0.1455618541608951, 0.1455618541608951, -0.2880213168024011, 0.2880213168024011, -0.4243421202074388, 0.4243421202074388, -0.5516188358872198, 0.5516188358872198, -0.6671388041974123, 0.6671388041974123, -0.7684399634756779, 0.7684399634756779, -0.8533633645833173, 0.8533633645833173, -0.9200993341504008, 0.9200993341504008, -0.9672268385663063, 0.9672268385663063, -0.9937521706203895, 0.9937521706203895], [-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992], [0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522], [-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]], i1 = [[], [], [1, 1], [0.8888888888888888, 0.5555555555555556, 0.5555555555555556], [0.6521451548625461, 0.6521451548625461, 0.34785484513745385, 0.34785484513745385], [0.5688888888888889, 0.47862867049936647, 0.47862867049936647, 0.23692688505618908, 0.23692688505618908], [0.3607615730481386, 0.3607615730481386, 0.46791393457269104, 0.46791393457269104, 0.17132449237917036, 0.17132449237917036], [0.4179591836734694, 0.3818300505051189, 0.3818300505051189, 0.27970539148927664, 0.27970539148927664, 0.1294849661688697, 0.1294849661688697], [0.362683783378362, 0.362683783378362, 0.31370664587788727, 0.31370664587788727, 0.22238103445337448, 0.22238103445337448, 0.10122853629037626, 0.10122853629037626], [0.3302393550012598, 0.1806481606948574, 0.1806481606948574, 0.08127438836157441, 0.08127438836157441, 0.31234707704000286, 0.31234707704000286, 0.26061069640293544, 0.26061069640293544], [0.29552422471475287, 0.29552422471475287, 0.26926671930999635, 0.26926671930999635, 0.21908636251598204, 0.21908636251598204, 0.1494513491505806, 0.1494513491505806, 0.06667134430868814, 0.06667134430868814], [0.2729250867779006, 0.26280454451024665, 0.26280454451024665, 0.23319376459199048, 0.23319376459199048, 0.18629021092773426, 0.18629021092773426, 0.1255803694649046, 0.1255803694649046, 0.05566856711617366, 0.05566856711617366], [0.24914704581340277, 0.24914704581340277, 0.2334925365383548, 0.2334925365383548, 0.20316742672306592, 0.20316742672306592, 0.16007832854334622, 0.16007832854334622, 0.10693932599531843, 0.10693932599531843, 0.04717533638651183, 0.04717533638651183], [0.2325515532308739, 0.22628318026289723, 0.22628318026289723, 0.2078160475368885, 0.2078160475368885, 0.17814598076194574, 0.17814598076194574, 0.13887351021978725, 0.13887351021978725, 0.09212149983772845, 0.09212149983772845, 0.04048400476531588, 0.04048400476531588], [0.2152638534631578, 0.2152638534631578, 0.2051984637212956, 0.2051984637212956, 0.18553839747793782, 0.18553839747793782, 0.15720316715819355, 0.15720316715819355, 0.12151857068790319, 0.12151857068790319, 0.08015808715976021, 0.08015808715976021, 0.03511946033175186, 0.03511946033175186], [0.2025782419255613, 0.19843148532711158, 0.19843148532711158, 0.1861610000155622, 0.1861610000155622, 0.16626920581699392, 0.16626920581699392, 0.13957067792615432, 0.13957067792615432, 0.10715922046717194, 0.10715922046717194, 0.07036604748810812, 0.07036604748810812, 0.03075324199611727, 0.03075324199611727], [0.1894506104550685, 0.1894506104550685, 0.18260341504492358, 0.18260341504492358, 0.16915651939500254, 0.16915651939500254, 0.14959598881657674, 0.14959598881657674, 0.12462897125553388, 0.12462897125553388, 0.09515851168249279, 0.09515851168249279, 0.062253523938647894, 0.062253523938647894, 0.027152459411754096, 0.027152459411754096], [0.17944647035620653, 0.17656270536699264, 0.17656270536699264, 0.16800410215645004, 0.16800410215645004, 0.15404576107681028, 0.15404576107681028, 0.13513636846852548, 0.13513636846852548, 0.11188384719340397, 0.11188384719340397, 0.08503614831717918, 0.08503614831717918, 0.0554595293739872, 0.0554595293739872, 0.02414830286854793, 0.02414830286854793], [0.1691423829631436, 0.1691423829631436, 0.16427648374583273, 0.16427648374583273, 0.15468467512626524, 0.15468467512626524, 0.14064291467065065, 0.14064291467065065, 0.12255520671147846, 0.12255520671147846, 0.10094204410628717, 0.10094204410628717, 0.07642573025488905, 0.07642573025488905, 0.0497145488949698, 0.0497145488949698, 0.02161601352648331, 0.02161601352648331], [0.1610544498487837, 0.15896884339395434, 0.15896884339395434, 0.15276604206585967, 0.15276604206585967, 0.1426067021736066, 0.1426067021736066, 0.12875396253933621, 0.12875396253933621, 0.11156664554733399, 0.11156664554733399, 0.09149002162245, 0.09149002162245, 0.06904454273764123, 0.06904454273764123, 0.0448142267656996, 0.0448142267656996, 0.019461788229726478, 0.019461788229726478], [0.15275338713072584, 0.15275338713072584, 0.14917298647260374, 0.14917298647260374, 0.14209610931838204, 0.14209610931838204, 0.13168863844917664, 0.13168863844917664, 0.11819453196151841, 0.11819453196151841, 0.10193011981724044, 0.10193011981724044, 0.08327674157670475, 0.08327674157670475, 0.06267204833410907, 0.06267204833410907, 0.04060142980038694, 0.04060142980038694, 0.017614007139152118, 0.017614007139152118], [0.14608113364969041, 0.14452440398997005, 0.14452440398997005, 0.13988739479107315, 0.13988739479107315, 0.13226893863333747, 0.13226893863333747, 0.12183141605372853, 0.12183141605372853, 0.10879729916714838, 0.10879729916714838, 0.09344442345603386, 0.09344442345603386, 0.0761001136283793, 0.0761001136283793, 0.057134425426857205, 0.057134425426857205, 0.036953789770852494, 0.036953789770852494, 0.016017228257774335, 0.016017228257774335], [0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722], [0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771], [0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]], o1 = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]], s1 = k((n, e, t) => ({ x: (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], y: (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3] }), "cubicPoint"), a1 = k((n, e, t) => It([3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])], [3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])], t), "cubicDerivative"), h1 = k((n, e, t) => {
|
|
508
508
|
let o, i;
|
|
509
509
|
const a = t / 2;
|
|
510
510
|
o = 0;
|
|
511
|
-
for (let s = 0; s < 20; s++) i = a *
|
|
511
|
+
for (let s = 0; s < 20; s++) i = a * r1[20][s] + a, o += i1[20][s] * _t(n, e, i);
|
|
512
512
|
return a * o;
|
|
513
|
-
}, "getCubicArcLength"),
|
|
513
|
+
}, "getCubicArcLength"), It = k((n, e, t) => ({ x: (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], y: (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2] }), "quadraticPoint"), l1 = k((n, e, t) => {
|
|
514
514
|
t === void 0 && (t = 1);
|
|
515
515
|
const o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), h = 4 * (o * a + i * s), c = a * a + s * s;
|
|
516
516
|
if (r === 0) return t * Math.sqrt(Math.pow(n[2] - n[0], 2) + Math.pow(e[2] - e[0], 2));
|
|
517
517
|
const f = h / (2 * r), x = t + f, l = c / r - f * f, u = x * x + l > 0 ? Math.sqrt(x * x + l) : 0, A = f * f + l > 0 ? Math.sqrt(f * f + l) : 0, y = f + Math.sqrt(f * f + l) !== 0 && (x + u) / (f + A) !== 0 ? l * Math.log(Math.abs((x + u) / (f + A))) : 0;
|
|
518
518
|
return Math.sqrt(r) / 2 * (x * u - f * A + y);
|
|
519
|
-
}, "getQuadraticArcLength"),
|
|
519
|
+
}, "getQuadraticArcLength"), c1 = k((n, e, t) => ({ x: 2 * (1 - t) * (n[1] - n[0]) + 2 * t * (n[2] - n[1]), y: 2 * (1 - t) * (e[1] - e[0]) + 2 * t * (e[2] - e[1]) }), "quadraticDerivative");
|
|
520
520
|
function _t(n, e, t) {
|
|
521
|
-
const o =
|
|
521
|
+
const o = Y0(1, t, n), i = Y0(1, t, e), a = o * o + i * i;
|
|
522
522
|
return Math.sqrt(a);
|
|
523
523
|
}
|
|
524
|
-
|
|
525
|
-
var
|
|
524
|
+
k(_t, "BFunc");
|
|
525
|
+
var Y0 = k((n, e, t) => {
|
|
526
526
|
const o = t.length - 1;
|
|
527
527
|
let i, a;
|
|
528
528
|
if (o === 0) return 0;
|
|
529
529
|
if (n === 0) {
|
|
530
530
|
a = 0;
|
|
531
|
-
for (let s = 0; s <= o; s++) a +=
|
|
531
|
+
for (let s = 0; s <= o; s++) a += o1[o][s] * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
|
|
532
532
|
return a;
|
|
533
533
|
}
|
|
534
534
|
i = new Array(o);
|
|
535
535
|
for (let s = 0; s < o; s++) i[s] = o * (t[s + 1] - t[s]);
|
|
536
|
-
return
|
|
537
|
-
}, "getDerivative"), F0 =
|
|
536
|
+
return Y0(n - 1, e, i);
|
|
537
|
+
}, "getDerivative"), F0 = k((n, e, t) => {
|
|
538
538
|
let o = 1, i = n / e, a = (n - t(i)) / e, s = 0;
|
|
539
539
|
for (; o > 1e-3; ) {
|
|
540
540
|
const r = t(i + a), h = Math.abs(n - r) / e;
|
|
@@ -546,69 +546,69 @@ var X0 = O((n, e, t) => {
|
|
|
546
546
|
if (s++, s > 500) break;
|
|
547
547
|
}
|
|
548
548
|
return i;
|
|
549
|
-
}, "t2length"),
|
|
549
|
+
}, "t2length"), m0, i0 = (m0 = class {
|
|
550
550
|
constructor(e, t, o, i, a, s, r, h) {
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
551
|
+
I(this, "a");
|
|
552
|
+
I(this, "b");
|
|
553
|
+
I(this, "c");
|
|
554
|
+
I(this, "d");
|
|
555
|
+
I(this, "length");
|
|
556
|
+
I(this, "getArcLength");
|
|
557
|
+
I(this, "getPoint");
|
|
558
|
+
I(this, "getDerivative");
|
|
559
|
+
I(this, "getTotalLength", k(() => this.length, "getTotalLength"));
|
|
560
|
+
I(this, "getPointAtLength", k((e) => {
|
|
561
561
|
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = F0(e, this.length, (a) => this.getArcLength(t, o, a));
|
|
562
562
|
return this.getPoint(t, o, i);
|
|
563
563
|
}, "getPointAtLength"));
|
|
564
|
-
|
|
564
|
+
I(this, "getTangentAtLength", k((e) => {
|
|
565
565
|
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = F0(e, this.length, (h) => this.getArcLength(t, o, h)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
|
|
566
566
|
let r;
|
|
567
567
|
return r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 }, r;
|
|
568
568
|
}, "getTangentAtLength"));
|
|
569
|
-
|
|
569
|
+
I(this, "getPropertiesAtLength", k((e) => {
|
|
570
570
|
const t = [this.a.x, this.b.x, this.c.x, this.d.x], o = [this.a.y, this.b.y, this.c.y, this.d.y], i = F0(e, this.length, (c) => this.getArcLength(t, o, c)), a = this.getDerivative(t, o, i), s = Math.sqrt(a.x * a.x + a.y * a.y);
|
|
571
571
|
let r;
|
|
572
572
|
r = s > 0 ? { x: a.x / s, y: a.y / s } : { x: 0, y: 0 };
|
|
573
573
|
const h = this.getPoint(t, o, i);
|
|
574
574
|
return { x: h.x, y: h.y, tangentX: r.x, tangentY: r.y };
|
|
575
575
|
}, "getPropertiesAtLength"));
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && h !== void 0 ? (this.getArcLength =
|
|
576
|
+
I(this, "getC", k(() => this.c, "getC"));
|
|
577
|
+
I(this, "getD", k(() => this.d, "getD"));
|
|
578
|
+
this.a = { x: e, y: t }, this.b = { x: o, y: i }, this.c = { x: a, y: s }, r !== void 0 && h !== void 0 ? (this.getArcLength = h1, this.getPoint = s1, this.getDerivative = a1, this.d = { x: r, y: h }) : (this.getArcLength = l1, this.getPoint = It, this.getDerivative = c1, this.d = { x: 0, y: 0 }), this.length = this.getArcLength([this.a.x, this.b.x, this.c.x, this.d.x], [this.a.y, this.b.y, this.c.y, this.d.y], 1);
|
|
579
579
|
}
|
|
580
|
-
},
|
|
580
|
+
}, k(m0, "Bezier"), m0), b0, u1 = (b0 = class {
|
|
581
581
|
constructor(e) {
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
582
|
+
I(this, "length", 0);
|
|
583
|
+
I(this, "partial_lengths", []);
|
|
584
|
+
I(this, "functions", []);
|
|
585
|
+
I(this, "initial_point", null);
|
|
586
|
+
I(this, "getPartAtLength", k((e) => {
|
|
587
587
|
e < 0 ? e = 0 : e > this.length && (e = this.length);
|
|
588
588
|
let t = this.partial_lengths.length - 1;
|
|
589
589
|
for (; this.partial_lengths[t] >= e && t > 0; ) t--;
|
|
590
590
|
return t++, { fraction: e - this.partial_lengths[t - 1], i: t };
|
|
591
591
|
}, "getPartAtLength"));
|
|
592
|
-
|
|
593
|
-
|
|
592
|
+
I(this, "getTotalLength", k(() => this.length, "getTotalLength"));
|
|
593
|
+
I(this, "getPointAtLength", k((e) => {
|
|
594
594
|
const t = this.getPartAtLength(e), o = this.functions[t.i];
|
|
595
595
|
if (o) return o.getPointAtLength(t.fraction);
|
|
596
596
|
if (this.initial_point) return this.initial_point;
|
|
597
597
|
throw new Error("Wrong function at this part.");
|
|
598
598
|
}, "getPointAtLength"));
|
|
599
|
-
|
|
599
|
+
I(this, "getTangentAtLength", k((e) => {
|
|
600
600
|
const t = this.getPartAtLength(e), o = this.functions[t.i];
|
|
601
601
|
if (o) return o.getTangentAtLength(t.fraction);
|
|
602
602
|
if (this.initial_point) return { x: 0, y: 0 };
|
|
603
603
|
throw new Error("Wrong function at this part.");
|
|
604
604
|
}, "getTangentAtLength"));
|
|
605
|
-
|
|
605
|
+
I(this, "getPropertiesAtLength", k((e) => {
|
|
606
606
|
const t = this.getPartAtLength(e), o = this.functions[t.i];
|
|
607
607
|
if (o) return o.getPropertiesAtLength(t.fraction);
|
|
608
608
|
if (this.initial_point) return { x: this.initial_point.x, y: this.initial_point.y, tangentX: 0, tangentY: 0 };
|
|
609
609
|
throw new Error("Wrong function at this part.");
|
|
610
610
|
}, "getPropertiesAtLength"));
|
|
611
|
-
|
|
611
|
+
I(this, "getParts", k(() => {
|
|
612
612
|
const e = [];
|
|
613
613
|
for (let t = 0; t < this.functions.length; t++) if (this.functions[t] !== null) {
|
|
614
614
|
this.functions[t] = this.functions[t];
|
|
@@ -617,7 +617,7 @@ var X0 = O((n, e, t) => {
|
|
|
617
617
|
}
|
|
618
618
|
return e;
|
|
619
619
|
}, "getParts"));
|
|
620
|
-
const t = Array.isArray(e) ? e :
|
|
620
|
+
const t = Array.isArray(e) ? e : Vt(e);
|
|
621
621
|
let o, i = [0, 0], a = [0, 0], s = [0, 0];
|
|
622
622
|
for (let r = 0; r < t.length; r++) {
|
|
623
623
|
if (t[r][0] === "M") i = [t[r][1], t[r][2]], s = [i[0], i[1]], this.functions.push(null), r === 0 && (this.initial_point = { x: t[r][1], y: t[r][2] });
|
|
@@ -629,83 +629,83 @@ var X0 = O((n, e, t) => {
|
|
|
629
629
|
else if (t[r][0] === "V") this.length += Math.abs(i[1] - t[r][1]), this.functions.push(new V(i[0], i[0], i[1], t[r][1])), i[1] = t[r][1];
|
|
630
630
|
else if (t[r][0] === "v") this.length += Math.abs(t[r][1]), this.functions.push(new V(i[0], i[0], i[1], i[1] + t[r][1])), i[1] = t[r][1] + i[1];
|
|
631
631
|
else if (t[r][0] === "z" || t[r][0] === "Z") this.length += Math.sqrt(Math.pow(s[0] - i[0], 2) + Math.pow(s[1] - i[1], 2)), this.functions.push(new V(i[0], s[0], i[1], s[1])), i = [s[0], s[1]];
|
|
632
|
-
else if (t[r][0] === "C") o = new
|
|
633
|
-
else if (t[r][0] === "c") o = new
|
|
632
|
+
else if (t[r][0] === "C") o = new i0(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], t[r][5], t[r][6]), this.length += o.getTotalLength(), i = [t[r][5], t[r][6]], this.functions.push(o);
|
|
633
|
+
else if (t[r][0] === "c") o = new i0(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], i[0] + t[r][5], i[1] + t[r][6]), o.getTotalLength() > 0 ? (this.length += o.getTotalLength(), this.functions.push(o), i = [t[r][5] + i[0], t[r][6] + i[1]]) : this.functions.push(new V(i[0], i[0], i[1], i[1]));
|
|
634
634
|
else if (t[r][0] === "S") {
|
|
635
635
|
if (r > 0 && ["C", "c", "S", "s"].indexOf(t[r - 1][0]) > -1) {
|
|
636
636
|
if (o) {
|
|
637
637
|
const h = o.getC();
|
|
638
|
-
o = new
|
|
638
|
+
o = new i0(i[0], i[1], 2 * i[0] - h.x, 2 * i[1] - h.y, t[r][1], t[r][2], t[r][3], t[r][4]);
|
|
639
639
|
}
|
|
640
|
-
} else o = new
|
|
640
|
+
} else o = new i0(i[0], i[1], i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4]);
|
|
641
641
|
o && (this.length += o.getTotalLength(), i = [t[r][3], t[r][4]], this.functions.push(o));
|
|
642
642
|
} else if (t[r][0] === "s") {
|
|
643
643
|
if (r > 0 && ["C", "c", "S", "s"].indexOf(t[r - 1][0]) > -1) {
|
|
644
644
|
if (o) {
|
|
645
645
|
const h = o.getC(), c = o.getD();
|
|
646
|
-
o = new
|
|
646
|
+
o = new i0(i[0], i[1], i[0] + c.x - h.x, i[1] + c.y - h.y, i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
|
|
647
647
|
}
|
|
648
|
-
} else o = new
|
|
648
|
+
} else o = new i0(i[0], i[1], i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4]);
|
|
649
649
|
o && (this.length += o.getTotalLength(), i = [t[r][3] + i[0], t[r][4] + i[1]], this.functions.push(o));
|
|
650
650
|
} else if (t[r][0] === "Q") {
|
|
651
651
|
if (i[0] === t[r][1] && i[1] === t[r][2]) {
|
|
652
652
|
const h = new V(t[r][1], t[r][3], t[r][2], t[r][4]);
|
|
653
653
|
this.length += h.getTotalLength(), this.functions.push(h);
|
|
654
|
-
} else o = new
|
|
654
|
+
} else o = new i0(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
|
|
655
655
|
i = [t[r][3], t[r][4]], a = [t[r][1], t[r][2]];
|
|
656
656
|
} else if (t[r][0] === "q") {
|
|
657
|
-
if (t[r][1] !== 0 || t[r][2] !== 0) o = new
|
|
657
|
+
if (t[r][1] !== 0 || t[r][2] !== 0) o = new i0(i[0], i[1], i[0] + t[r][1], i[1] + t[r][2], i[0] + t[r][3], i[1] + t[r][4], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
|
|
658
658
|
else {
|
|
659
659
|
const h = new V(i[0] + t[r][1], i[0] + t[r][3], i[1] + t[r][2], i[1] + t[r][4]);
|
|
660
660
|
this.length += h.getTotalLength(), this.functions.push(h);
|
|
661
661
|
}
|
|
662
662
|
a = [i[0] + t[r][1], i[1] + t[r][2]], i = [t[r][3] + i[0], t[r][4] + i[1]];
|
|
663
663
|
} else if (t[r][0] === "T") {
|
|
664
|
-
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new
|
|
664
|
+
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new i0(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], t[r][1], t[r][2], void 0, void 0), this.functions.push(o), this.length += o.getTotalLength();
|
|
665
665
|
else {
|
|
666
666
|
const h = new V(i[0], t[r][1], i[1], t[r][2]);
|
|
667
667
|
this.functions.push(h), this.length += h.getTotalLength();
|
|
668
668
|
}
|
|
669
669
|
a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1], t[r][2]];
|
|
670
670
|
} else if (t[r][0] === "t") {
|
|
671
|
-
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new
|
|
671
|
+
if (r > 0 && ["Q", "q", "T", "t"].indexOf(t[r - 1][0]) > -1) o = new i0(i[0], i[1], 2 * i[0] - a[0], 2 * i[1] - a[1], i[0] + t[r][1], i[1] + t[r][2], void 0, void 0), this.length += o.getTotalLength(), this.functions.push(o);
|
|
672
672
|
else {
|
|
673
673
|
const h = new V(i[0], i[0] + t[r][1], i[1], i[1] + t[r][2]);
|
|
674
674
|
this.length += h.getTotalLength(), this.functions.push(h);
|
|
675
675
|
}
|
|
676
676
|
a = [2 * i[0] - a[0], 2 * i[1] - a[1]], i = [t[r][1] + i[0], t[r][2] + i[1]];
|
|
677
677
|
} else if (t[r][0] === "A") {
|
|
678
|
-
const h = new
|
|
678
|
+
const h = new at(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, t[r][6], t[r][7]);
|
|
679
679
|
this.length += h.getTotalLength(), i = [t[r][6], t[r][7]], this.functions.push(h);
|
|
680
680
|
} else if (t[r][0] === "a") {
|
|
681
|
-
const h = new
|
|
681
|
+
const h = new at(i[0], i[1], t[r][1], t[r][2], t[r][3], t[r][4] === 1, t[r][5] === 1, i[0] + t[r][6], i[1] + t[r][7]);
|
|
682
682
|
this.length += h.getTotalLength(), i = [i[0] + t[r][6], i[1] + t[r][7]], this.functions.push(h);
|
|
683
683
|
}
|
|
684
684
|
this.partial_lengths.push(this.length);
|
|
685
685
|
}
|
|
686
686
|
}
|
|
687
|
-
},
|
|
687
|
+
}, k(b0, "SVGPathProperties"), b0), M0, X0 = (M0 = class {
|
|
688
688
|
constructor(e) {
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
if (this.inst = new
|
|
696
|
-
}
|
|
697
|
-
},
|
|
698
|
-
function
|
|
689
|
+
I(this, "inst");
|
|
690
|
+
I(this, "getTotalLength", k(() => this.inst.getTotalLength(), "getTotalLength"));
|
|
691
|
+
I(this, "getPointAtLength", k((e) => this.inst.getPointAtLength(e), "getPointAtLength"));
|
|
692
|
+
I(this, "getTangentAtLength", k((e) => this.inst.getTangentAtLength(e), "getTangentAtLength"));
|
|
693
|
+
I(this, "getPropertiesAtLength", k((e) => this.inst.getPropertiesAtLength(e), "getPropertiesAtLength"));
|
|
694
|
+
I(this, "getParts", k(() => this.inst.getParts(), "getParts"));
|
|
695
|
+
if (this.inst = new u1(e), !(this instanceof X0)) return new X0(e);
|
|
696
|
+
}
|
|
697
|
+
}, k(M0, "_svgPathProperties"), M0);
|
|
698
|
+
function f1(n = Y.BLACK) {
|
|
699
699
|
return { ...n, alpha: 0 };
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
const { path: e, height: t = 100, width: o = 100, viewboxHeight: i, viewboxWidth: a, ...s } = n ?? {}, r = e ?? "M 0 0 L 100 100", c = new
|
|
703
|
-
return
|
|
701
|
+
function An(n = null) {
|
|
702
|
+
const { path: e, height: t = 100, width: o = 100, viewboxHeight: i, viewboxWidth: a, ...s } = n ?? {}, r = e ?? "M 0 0 L 100 100", c = new X0(r).getTotalLength();
|
|
703
|
+
return l0({
|
|
704
704
|
objectType: H.PATH,
|
|
705
|
-
anchor:
|
|
705
|
+
anchor: h0,
|
|
706
706
|
color: K,
|
|
707
707
|
drawn: 1,
|
|
708
|
-
fill:
|
|
708
|
+
fill: f1(),
|
|
709
709
|
isRounded: !1,
|
|
710
710
|
height: t,
|
|
711
711
|
path: r,
|
|
@@ -719,8 +719,8 @@ function yn(n = null) {
|
|
|
719
719
|
...s
|
|
720
720
|
});
|
|
721
721
|
}
|
|
722
|
-
function
|
|
723
|
-
return
|
|
722
|
+
function mn(n = null) {
|
|
723
|
+
return l0({
|
|
724
724
|
objectType: H.POLYGON,
|
|
725
725
|
borderColor: K,
|
|
726
726
|
borderWidth: 0,
|
|
@@ -734,10 +734,10 @@ function vn(n = null) {
|
|
|
734
734
|
...n
|
|
735
735
|
});
|
|
736
736
|
}
|
|
737
|
-
function
|
|
738
|
-
return
|
|
737
|
+
function bn(n = null) {
|
|
738
|
+
return l0({
|
|
739
739
|
objectType: H.RECTANGLE,
|
|
740
|
-
anchor:
|
|
740
|
+
anchor: h0,
|
|
741
741
|
borderColor: K,
|
|
742
742
|
borderWidth: 0,
|
|
743
743
|
drawn: 1,
|
|
@@ -750,11 +750,11 @@ function wn(n = null) {
|
|
|
750
750
|
...n
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
|
-
const
|
|
753
|
+
const g1 = {
|
|
754
754
|
NORMAL: "normal",
|
|
755
755
|
ITALIC: "italic",
|
|
756
756
|
OBLIQUE: "oblique"
|
|
757
|
-
},
|
|
757
|
+
}, p1 = g1.NORMAL, d1 = {
|
|
758
758
|
THIN: 100,
|
|
759
759
|
EXTRA_LIGHT: 200,
|
|
760
760
|
LIGHT: 300,
|
|
@@ -764,130 +764,130 @@ const f1 = {
|
|
|
764
764
|
BOLD: 700,
|
|
765
765
|
EXTRA_BOLD: 800,
|
|
766
766
|
BLACK: 900
|
|
767
|
-
},
|
|
767
|
+
}, x1 = d1.NORMAL, y1 = {
|
|
768
768
|
color: K,
|
|
769
769
|
fontFamily: "sans-serif",
|
|
770
770
|
fontSize: 100,
|
|
771
|
-
fontStyle:
|
|
772
|
-
fontWeight:
|
|
771
|
+
fontStyle: p1,
|
|
772
|
+
fontWeight: x1,
|
|
773
773
|
ligatures: !1
|
|
774
774
|
};
|
|
775
|
-
function
|
|
775
|
+
function kt(n) {
|
|
776
776
|
return typeof n == "string" ? [[{ text: n }]] : n.map((e) => e.map((t) => typeof t == "string" ? { text: t } : t));
|
|
777
777
|
}
|
|
778
|
-
function
|
|
779
|
-
return
|
|
778
|
+
function v1(n) {
|
|
779
|
+
return kt(n).reduce(
|
|
780
780
|
(t, o) => t + o.reduce((i, a) => i + a.text.length, 0),
|
|
781
781
|
0
|
|
782
782
|
);
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
return
|
|
784
|
+
function w1(n = "", e = null) {
|
|
785
|
+
return l0({
|
|
786
786
|
objectType: H.TEXT,
|
|
787
787
|
alignment: Yt,
|
|
788
|
-
anchor:
|
|
788
|
+
anchor: h0,
|
|
789
789
|
length: null,
|
|
790
790
|
lineSpacing: 1,
|
|
791
791
|
text: n,
|
|
792
792
|
x: 0,
|
|
793
793
|
y: 0,
|
|
794
|
-
...
|
|
794
|
+
...y1,
|
|
795
795
|
...e
|
|
796
796
|
});
|
|
797
797
|
}
|
|
798
|
-
|
|
798
|
+
w1.writeOn = (n, e = {}) => et(
|
|
799
799
|
n,
|
|
800
800
|
{
|
|
801
|
-
length:
|
|
801
|
+
length: v1(n.text)
|
|
802
802
|
},
|
|
803
803
|
e
|
|
804
804
|
);
|
|
805
|
-
let
|
|
806
|
-
function
|
|
807
|
-
if (
|
|
808
|
-
|
|
805
|
+
let Z = null;
|
|
806
|
+
function A1({ presentation: n, onNavigateToSlide: e }) {
|
|
807
|
+
if (Z !== null && !Z.closed) {
|
|
808
|
+
Z.focus();
|
|
809
809
|
return;
|
|
810
810
|
}
|
|
811
|
-
if (
|
|
811
|
+
if (Z = window.open("", "Navigator", "width=300,height=500,left=20,top=50"), Z === null) {
|
|
812
812
|
console.error("Failed to open navigator window.");
|
|
813
813
|
return;
|
|
814
814
|
}
|
|
815
|
-
const t =
|
|
816
|
-
|
|
817
|
-
(o.key === "Escape" || o.key === "`") && (
|
|
815
|
+
const t = m1(n, e);
|
|
816
|
+
Z.document.title = n.title, Z.document.body.appendChild(t), Z.addEventListener("keyup", (o) => {
|
|
817
|
+
(o.key === "Escape" || o.key === "`") && (Z == null || Z.close(), Z = null);
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
|
-
function
|
|
820
|
+
function m1(n, e) {
|
|
821
821
|
const t = document.createElement("div");
|
|
822
822
|
return t.style.fontFamily = "Arial, sans-serif", n.slides.forEach((o, i) => {
|
|
823
|
-
const a =
|
|
823
|
+
const a = b1(o, i);
|
|
824
824
|
a.style.cursor = "pointer", a.addEventListener("click", (s) => {
|
|
825
|
-
s.shiftKey && (
|
|
825
|
+
s.shiftKey && (Z == null || Z.close()), e(i);
|
|
826
826
|
}), t.appendChild(a);
|
|
827
827
|
}), t;
|
|
828
828
|
}
|
|
829
|
-
function
|
|
829
|
+
function b1(n, e) {
|
|
830
830
|
const t = document.createElement("div");
|
|
831
831
|
return t.style.marginBottom = "8px", t.style.padding = "8px", t.style.backgroundColor = "#eceed7", t.style.borderRadius = "4px", t.style.userSelect = "none", t.innerHTML = `${e + 1}: ` + (n.title.length > 0 ? n.title : `Slide ${e + 1}`), t;
|
|
832
832
|
}
|
|
833
|
-
function
|
|
833
|
+
function a0(n = null) {
|
|
834
834
|
return {
|
|
835
835
|
height: 0,
|
|
836
836
|
width: 0,
|
|
837
837
|
...n
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
const
|
|
841
|
-
function
|
|
840
|
+
const M1 = a0({ width: 0, height: 0 });
|
|
841
|
+
function L1(n = null) {
|
|
842
842
|
return {
|
|
843
|
-
backgroundColor:
|
|
843
|
+
backgroundColor: Y.WHITE,
|
|
844
844
|
slides: [],
|
|
845
845
|
title: "Presentation",
|
|
846
|
-
size:
|
|
846
|
+
size: a0({ width: 3840, height: 2160 }),
|
|
847
847
|
resources: {
|
|
848
848
|
images: {}
|
|
849
849
|
},
|
|
850
850
|
...n
|
|
851
851
|
};
|
|
852
852
|
}
|
|
853
|
-
function
|
|
853
|
+
function T1(n) {
|
|
854
854
|
const e = Array.isArray(n) ? n : [n];
|
|
855
855
|
let t = 0, o = 0;
|
|
856
856
|
for (const i of e)
|
|
857
857
|
switch (i.type) {
|
|
858
|
-
case
|
|
858
|
+
case u0.PAUSE:
|
|
859
859
|
t += i.duration;
|
|
860
860
|
break;
|
|
861
|
-
case
|
|
861
|
+
case u0.ANIMATE:
|
|
862
862
|
o = Math.max(o, t + i.delay + i.duration), i.block && (t += i.delay + i.duration);
|
|
863
863
|
break;
|
|
864
|
-
case
|
|
864
|
+
case u0.UPDATE:
|
|
865
865
|
break;
|
|
866
866
|
default:
|
|
867
|
-
|
|
867
|
+
s0(i);
|
|
868
868
|
}
|
|
869
869
|
return o;
|
|
870
870
|
}
|
|
871
871
|
function nt(n, e = null) {
|
|
872
|
-
const { red: t, green: o, blue: i } = n, a =
|
|
872
|
+
const { red: t, green: o, blue: i } = n, a = St(n, e);
|
|
873
873
|
return `rgba(${t}, ${o}, ${i}, ${a})`;
|
|
874
874
|
}
|
|
875
|
-
function
|
|
875
|
+
function P1(n) {
|
|
876
876
|
return n === document.body;
|
|
877
877
|
}
|
|
878
|
-
function
|
|
878
|
+
function C1(n, e) {
|
|
879
879
|
const t = document.createElement("div");
|
|
880
|
-
if (t.style.width = "100%", t.style.aspectRatio = `${n.size.width} / ${n.size.height}`, t.style.position = "relative", t.style.top = "50%", t.style.transform = "translateY(-50%)", t.style.marginLeft = "auto", t.style.marginRight = "auto",
|
|
880
|
+
if (t.style.width = "100%", t.style.aspectRatio = `${n.size.width} / ${n.size.height}`, t.style.position = "relative", t.style.top = "50%", t.style.transform = "translateY(-50%)", t.style.marginLeft = "auto", t.style.marginRight = "auto", P1(e)) {
|
|
881
881
|
t.style.overflowY = "clip", document.title = n.title, document.documentElement.style.height = "100%", document.body.style.margin = "0", document.body.style.height = "100%", document.body.style.width = "100%", document.body.style.backgroundColor = "#000000";
|
|
882
882
|
const o = n.size.height / n.size.width;
|
|
883
|
-
|
|
883
|
+
ut(t, o), window.matchMedia(`(min-aspect-ratio: ${n.size.width} / ${n.size.height})`).addEventListener("change", () => ut(t, o));
|
|
884
884
|
}
|
|
885
885
|
return t;
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function ut(n, e) {
|
|
888
888
|
window.innerHeight / window.innerWidth > e ? (n.style.width = "100%", n.style.height = "auto") : (n.style.width = "auto", n.style.height = "100%");
|
|
889
889
|
}
|
|
890
|
-
const
|
|
890
|
+
const E1 = {
|
|
891
891
|
check: (n) => typeof n == "object" && n !== null && typeof n.red == "number" && typeof n.green == "number" && typeof n.blue == "number" && typeof n.alpha == "number",
|
|
892
892
|
interpolate: (n, e, t) => ({
|
|
893
893
|
red: Math.round(n.red + (e.red - n.red) * t),
|
|
@@ -895,23 +895,23 @@ const C1 = {
|
|
|
895
895
|
blue: Math.round(n.blue + (e.blue - n.blue) * t),
|
|
896
896
|
alpha: n.alpha + (e.alpha - n.alpha) * t
|
|
897
897
|
})
|
|
898
|
-
},
|
|
898
|
+
}, S1 = {
|
|
899
899
|
check: (n) => !0,
|
|
900
900
|
interpolate: (n, e) => e
|
|
901
|
-
},
|
|
901
|
+
}, I1 = {
|
|
902
902
|
check: (n) => typeof n == "number",
|
|
903
903
|
interpolate: (n, e, t) => n + (e - n) * t
|
|
904
|
-
},
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
904
|
+
}, ft = [
|
|
905
|
+
I1,
|
|
906
|
+
E1,
|
|
907
|
+
S1
|
|
908
908
|
];
|
|
909
909
|
function _1(n, e, t, o = null) {
|
|
910
910
|
if (t === 0)
|
|
911
911
|
return n;
|
|
912
912
|
if (t === 1)
|
|
913
913
|
return { ...n, ...e };
|
|
914
|
-
const i = o != null ? [...o, ...
|
|
914
|
+
const i = o != null ? [...o, ...ft] : ft, a = {};
|
|
915
915
|
for (const s in e) {
|
|
916
916
|
const r = n[s], h = e[s];
|
|
917
917
|
for (const c of i)
|
|
@@ -926,7 +926,7 @@ function _1(n, e, t, o = null) {
|
|
|
926
926
|
}
|
|
927
927
|
return { ...n, ...a };
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function gt(n, e, t = null) {
|
|
930
930
|
if (e === null)
|
|
931
931
|
return;
|
|
932
932
|
const o = Array.isArray(e) ? e : [e];
|
|
@@ -935,7 +935,7 @@ function ft(n, e, t = null) {
|
|
|
935
935
|
if (t !== null && i > t)
|
|
936
936
|
break;
|
|
937
937
|
switch (a.type) {
|
|
938
|
-
case
|
|
938
|
+
case u0.ANIMATE: {
|
|
939
939
|
const s = n.get(a.object);
|
|
940
940
|
if (s === void 0)
|
|
941
941
|
break;
|
|
@@ -957,7 +957,7 @@ function ft(n, e, t = null) {
|
|
|
957
957
|
}), a.block && (i += a.delay + a.duration);
|
|
958
958
|
break;
|
|
959
959
|
}
|
|
960
|
-
case
|
|
960
|
+
case u0.UPDATE: {
|
|
961
961
|
const s = n.get(a.object);
|
|
962
962
|
if (s === void 0)
|
|
963
963
|
break;
|
|
@@ -967,15 +967,15 @@ function ft(n, e, t = null) {
|
|
|
967
967
|
});
|
|
968
968
|
break;
|
|
969
969
|
}
|
|
970
|
-
case
|
|
970
|
+
case u0.PAUSE:
|
|
971
971
|
i += a.duration;
|
|
972
972
|
break;
|
|
973
973
|
default:
|
|
974
|
-
|
|
974
|
+
s0(a);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function k1(n) {
|
|
979
979
|
return "objects" in n ? n.objects.filter((e) => "objectType" in e) : [];
|
|
980
980
|
}
|
|
981
981
|
function O1({
|
|
@@ -986,7 +986,7 @@ function O1({
|
|
|
986
986
|
const o = /* @__PURE__ */ new Map();
|
|
987
987
|
function i(s) {
|
|
988
988
|
o.set(s, s);
|
|
989
|
-
for (const r of
|
|
989
|
+
for (const r of k1(s))
|
|
990
990
|
i(r);
|
|
991
991
|
}
|
|
992
992
|
for (const s of n.objects)
|
|
@@ -994,15 +994,15 @@ function O1({
|
|
|
994
994
|
const a = t === null ? e : e - 1;
|
|
995
995
|
for (let s = 0; s < a; s++) {
|
|
996
996
|
const r = n.animations[s] ?? null;
|
|
997
|
-
|
|
997
|
+
gt(o, r);
|
|
998
998
|
}
|
|
999
999
|
if (t !== null && e > 0) {
|
|
1000
1000
|
const s = n.animations[e - 1] ?? null;
|
|
1001
|
-
|
|
1001
|
+
gt(o, s, t);
|
|
1002
1002
|
}
|
|
1003
1003
|
return o;
|
|
1004
1004
|
}
|
|
1005
|
-
function
|
|
1005
|
+
function F1(n) {
|
|
1006
1006
|
var o;
|
|
1007
1007
|
const { slides: e } = n, t = {
|
|
1008
1008
|
// First build of first slide
|
|
@@ -1041,8 +1041,8 @@ function R0(n, e, t, o) {
|
|
|
1041
1041
|
else
|
|
1042
1042
|
n[e] = { slideIndex: t, buildIndex: o };
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
t.shortcuts =
|
|
1044
|
+
function R1(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigator: s }) {
|
|
1045
|
+
t.shortcuts = F1(n), e.addEventListener("mousemove", () => {
|
|
1046
1046
|
e.style.cursor = "auto";
|
|
1047
1047
|
}), e.addEventListener("keyup", (r) => {
|
|
1048
1048
|
if (r.code === "Escape") {
|
|
@@ -1077,26 +1077,26 @@ function F1(n, e, t, { onNext: o, onPrevious: i, onRenderSlide: a, onShowNavigat
|
|
|
1077
1077
|
}
|
|
1078
1078
|
});
|
|
1079
1079
|
}
|
|
1080
|
-
const
|
|
1081
|
-
function
|
|
1082
|
-
const t = localStorage.getItem(
|
|
1080
|
+
const p0 = "presenterState";
|
|
1081
|
+
function N1(n, e) {
|
|
1082
|
+
const t = localStorage.getItem(p0);
|
|
1083
1083
|
if (t === null)
|
|
1084
1084
|
return null;
|
|
1085
1085
|
if (e === null)
|
|
1086
|
-
return localStorage.removeItem(
|
|
1086
|
+
return localStorage.removeItem(p0), null;
|
|
1087
1087
|
let o;
|
|
1088
1088
|
try {
|
|
1089
1089
|
o = JSON.parse(t);
|
|
1090
1090
|
} catch (c) {
|
|
1091
|
-
return console.error("Failed to parse presentation state from localStorage:", c), localStorage.removeItem(
|
|
1091
|
+
return console.error("Failed to parse presentation state from localStorage:", c), localStorage.removeItem(p0), null;
|
|
1092
1092
|
}
|
|
1093
1093
|
const { title: i, timestamp: a } = o;
|
|
1094
1094
|
let { slideIndex: s, buildIndex: r } = o;
|
|
1095
1095
|
if (typeof i != "string" || typeof s != "number" || typeof r != "number" || typeof a != "number" || i !== n.title || Date.now() - a > 1e3 * 60 * e)
|
|
1096
|
-
return localStorage.removeItem(
|
|
1096
|
+
return localStorage.removeItem(p0), null;
|
|
1097
1097
|
s > n.slides.length - 1 && (s = n.slides.length - 1, r = 0);
|
|
1098
1098
|
const h = n.slides[s];
|
|
1099
|
-
return h === void 0 ? (localStorage.removeItem(
|
|
1099
|
+
return h === void 0 ? (localStorage.removeItem(p0), null) : (r > h.animations.length && (r = h.animations.length), {
|
|
1100
1100
|
title: i,
|
|
1101
1101
|
slideIndex: s,
|
|
1102
1102
|
buildIndex: r
|
|
@@ -1104,11 +1104,11 @@ function R1(n, e) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
function q1({ title: n, slideIndex: e, buildIndex: t }) {
|
|
1106
1106
|
localStorage.setItem(
|
|
1107
|
-
|
|
1107
|
+
p0,
|
|
1108
1108
|
JSON.stringify({ title: n, slideIndex: e, buildIndex: t, timestamp: Date.now() })
|
|
1109
1109
|
);
|
|
1110
1110
|
}
|
|
1111
|
-
const
|
|
1111
|
+
const pt = Object.freeze({
|
|
1112
1112
|
canvas: null,
|
|
1113
1113
|
extrasContainer: null,
|
|
1114
1114
|
mountedExtrasCleanups: [],
|
|
@@ -1121,33 +1121,33 @@ const gt = Object.freeze({
|
|
|
1121
1121
|
textCommand: null,
|
|
1122
1122
|
shortcuts: {}
|
|
1123
1123
|
}
|
|
1124
|
-
}),
|
|
1124
|
+
}), Q = {
|
|
1125
1125
|
Browser: "browser",
|
|
1126
1126
|
Node: "node"
|
|
1127
1127
|
};
|
|
1128
|
-
function
|
|
1128
|
+
function B1(n, e) {
|
|
1129
1129
|
e.context.clearRect(0, 0, n.width, n.height);
|
|
1130
1130
|
}
|
|
1131
1131
|
function D1(n) {
|
|
1132
1132
|
const e = document.createElement("canvas");
|
|
1133
1133
|
return e.setAttribute("width", n.width.toString()), e.setAttribute("height", n.height.toString()), e.style.position = "absolute", e.style.width = "100%", e;
|
|
1134
1134
|
}
|
|
1135
|
-
const
|
|
1135
|
+
const f0 = {
|
|
1136
1136
|
Browser: "browser",
|
|
1137
1137
|
Node: "node"
|
|
1138
1138
|
};
|
|
1139
|
-
function
|
|
1139
|
+
function j1(n) {
|
|
1140
1140
|
const e = new Path2D(n);
|
|
1141
1141
|
return {
|
|
1142
|
-
type:
|
|
1142
|
+
type: f0.Browser,
|
|
1143
1143
|
path: e
|
|
1144
1144
|
};
|
|
1145
1145
|
}
|
|
1146
|
-
function
|
|
1146
|
+
function U1(n) {
|
|
1147
1147
|
const { drawn: e, startX: t, startY: o, endX: i, endY: a, arrowheadSize: s, isArrowheadFilled: r, isDrawnFromCenter: h } = n, c = { x: t, y: o }, f = { x: i, y: a }, x = Math.atan2(f.y - c.y, f.x - c.x), l = { x: c.x + (f.x - c.x) / 2, y: c.y + (f.y - c.y) / 2 }, u = f.x - c.x, A = f.y - c.y, M = Math.hypot(u, A) * e, C = Math.cos(x), E = Math.sin(x), L = h ? { x: l.x - C * M / 2, y: l.y - E * M / 2 } : c, S = h ? { x: l.x + C * M / 2, y: l.y + E * M / 2 } : { x: c.x + C * M, y: c.y + E * M }, P = r ? Math.PI / 6 : Math.PI / 4.5, F = M < s * 2 ? M / 2 : s, z = {
|
|
1148
1148
|
x: S.x - F * Math.cos(x - P),
|
|
1149
1149
|
y: S.y - F * Math.sin(x - P)
|
|
1150
|
-
},
|
|
1150
|
+
}, G = {
|
|
1151
1151
|
x: S.x - F * Math.cos(x + P),
|
|
1152
1152
|
y: S.y - F * Math.sin(x + P)
|
|
1153
1153
|
}, j = {
|
|
@@ -1159,11 +1159,11 @@ function j1(n) {
|
|
|
1159
1159
|
};
|
|
1160
1160
|
return {
|
|
1161
1161
|
arrowPoints: [L, S],
|
|
1162
|
-
arrowheadPoints: [z, S,
|
|
1162
|
+
arrowheadPoints: [z, S, G],
|
|
1163
1163
|
doubledArrowheadPoints: [j, L, $]
|
|
1164
1164
|
};
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function x0({
|
|
1167
1167
|
ctx: n,
|
|
1168
1168
|
color: e,
|
|
1169
1169
|
drawn: t = null,
|
|
@@ -1190,34 +1190,34 @@ function p0({
|
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
1192
|
switch (n.type) {
|
|
1193
|
-
case
|
|
1194
|
-
s.type ===
|
|
1193
|
+
case Q.Browser:
|
|
1194
|
+
s.type === f0.Browser ? n.context.stroke(s.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1195
1195
|
break;
|
|
1196
|
-
case
|
|
1197
|
-
s.type ===
|
|
1196
|
+
case Q.Node:
|
|
1197
|
+
s.type === f0.Node ? n.context.stroke(s.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1198
1198
|
break;
|
|
1199
1199
|
default:
|
|
1200
|
-
|
|
1200
|
+
s0(n);
|
|
1201
1201
|
}
|
|
1202
1202
|
}
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function y0({ ctx: n, path: e, color: t, opacity: o = null }) {
|
|
1205
1205
|
if (n.context.fillStyle = nt(t, o), e === void 0) {
|
|
1206
1206
|
n.context.fill();
|
|
1207
1207
|
return;
|
|
1208
1208
|
}
|
|
1209
1209
|
switch (n.type) {
|
|
1210
|
-
case
|
|
1211
|
-
e.type ===
|
|
1210
|
+
case Q.Browser:
|
|
1211
|
+
e.type === f0.Browser ? n.context.fill(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1212
1212
|
break;
|
|
1213
|
-
case
|
|
1214
|
-
e.type ===
|
|
1213
|
+
case Q.Node:
|
|
1214
|
+
e.type === f0.Node ? n.context.fill(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1215
1215
|
break;
|
|
1216
1216
|
default:
|
|
1217
|
-
|
|
1217
|
+
s0(n);
|
|
1218
1218
|
}
|
|
1219
1219
|
}
|
|
1220
|
-
function
|
|
1220
|
+
function N0(n, e) {
|
|
1221
1221
|
const t = e(), o = n[0];
|
|
1222
1222
|
if (o === void 0)
|
|
1223
1223
|
return { path: t, length: 0 };
|
|
@@ -1232,7 +1232,7 @@ function q0(n, e) {
|
|
|
1232
1232
|
}
|
|
1233
1233
|
return { path: t, length: i };
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1235
|
+
const z1 = ({
|
|
1236
1236
|
ctx: n,
|
|
1237
1237
|
object: e,
|
|
1238
1238
|
opacity: t,
|
|
@@ -1241,35 +1241,35 @@ const U1 = ({
|
|
|
1241
1241
|
const i = e.opacity * t;
|
|
1242
1242
|
if (i === 0 || e.drawn === 0)
|
|
1243
1243
|
return;
|
|
1244
|
-
const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } =
|
|
1245
|
-
if (
|
|
1244
|
+
const { arrowPoints: a, arrowheadPoints: s, doubledArrowheadPoints: r } = U1(e), { path: h } = N0(a, o), { path: c } = N0(s, o);
|
|
1245
|
+
if (x0({
|
|
1246
1246
|
color: e.color,
|
|
1247
1247
|
ctx: n,
|
|
1248
1248
|
path: h,
|
|
1249
1249
|
opacity: i,
|
|
1250
1250
|
width: e.width
|
|
1251
|
-
}), e.isArrowheadFilled && (c.path.closePath(),
|
|
1251
|
+
}), e.isArrowheadFilled && (c.path.closePath(), y0({
|
|
1252
1252
|
ctx: n,
|
|
1253
1253
|
path: c,
|
|
1254
1254
|
color: e.color,
|
|
1255
1255
|
opacity: i
|
|
1256
|
-
})),
|
|
1256
|
+
})), x0({
|
|
1257
1257
|
color: e.color,
|
|
1258
1258
|
ctx: n,
|
|
1259
1259
|
path: c,
|
|
1260
1260
|
opacity: i,
|
|
1261
1261
|
width: e.width
|
|
1262
1262
|
}), e.isArrowheadDoubled) {
|
|
1263
|
-
const { path: f } =
|
|
1263
|
+
const { path: f } = N0(
|
|
1264
1264
|
r,
|
|
1265
1265
|
o
|
|
1266
1266
|
);
|
|
1267
|
-
e.isArrowheadFilled && (f.path.closePath(),
|
|
1267
|
+
e.isArrowheadFilled && (f.path.closePath(), y0({
|
|
1268
1268
|
ctx: n,
|
|
1269
1269
|
path: f,
|
|
1270
1270
|
color: e.color,
|
|
1271
1271
|
opacity: i
|
|
1272
|
-
})),
|
|
1272
|
+
})), x0({
|
|
1273
1273
|
color: e.color,
|
|
1274
1274
|
ctx: n,
|
|
1275
1275
|
path: f,
|
|
@@ -1278,13 +1278,32 @@ const U1 = ({
|
|
|
1278
1278
|
});
|
|
1279
1279
|
}
|
|
1280
1280
|
};
|
|
1281
|
-
function
|
|
1281
|
+
function H1(n, e) {
|
|
1282
|
+
const t = n.radius - n.borderWidth / 2;
|
|
1283
|
+
if (t <= 0)
|
|
1284
|
+
return;
|
|
1285
|
+
const o = e(), i = -Math.PI / 2;
|
|
1286
|
+
return o.path.arc(n.x, n.y, t, i, i + 2 * Math.PI), o;
|
|
1287
|
+
}
|
|
1288
|
+
function $1(n, e) {
|
|
1282
1289
|
const t = e(), o = -Math.PI / 2;
|
|
1283
1290
|
t.path.arc(n.x, n.y, n.radius, o, o + 2 * Math.PI);
|
|
1284
1291
|
const i = 2 * Math.PI * n.radius;
|
|
1285
1292
|
return { path: t, length: i };
|
|
1286
1293
|
}
|
|
1287
|
-
|
|
1294
|
+
function Ot(n, e) {
|
|
1295
|
+
switch (n.type) {
|
|
1296
|
+
case Q.Browser:
|
|
1297
|
+
e.type === f0.Browser ? n.context.clip(e.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1298
|
+
break;
|
|
1299
|
+
case Q.Node:
|
|
1300
|
+
e.type === f0.Node ? n.context.clip(e.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1301
|
+
break;
|
|
1302
|
+
default:
|
|
1303
|
+
s0(n);
|
|
1304
|
+
}
|
|
1305
|
+
}
|
|
1306
|
+
const W1 = ({
|
|
1288
1307
|
ctx: n,
|
|
1289
1308
|
object: e,
|
|
1290
1309
|
opacity: t,
|
|
@@ -1293,13 +1312,13 @@ const H1 = ({
|
|
|
1293
1312
|
const i = e.opacity * t;
|
|
1294
1313
|
if (i === 0 || e.drawn === 0 && e.fill.alpha === 0)
|
|
1295
1314
|
return;
|
|
1296
|
-
const { path: a, length: s } =
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
path: a,
|
|
1300
|
-
|
|
1301
|
-
opacity: i
|
|
1302
|
-
|
|
1315
|
+
const { path: a, length: s } = $1(e, o);
|
|
1316
|
+
if (i < 1 && e.borderWidth > 0) {
|
|
1317
|
+
const r = H1(e, o);
|
|
1318
|
+
r !== void 0 && (n.context.save(), Ot(n, r), y0({ ctx: n, path: a, color: e.fill, opacity: i }), n.context.restore());
|
|
1319
|
+
} else
|
|
1320
|
+
y0({ ctx: n, path: a, color: e.fill, opacity: i });
|
|
1321
|
+
x0({
|
|
1303
1322
|
color: e.borderColor,
|
|
1304
1323
|
ctx: n,
|
|
1305
1324
|
drawn: e.drawn,
|
|
@@ -1309,84 +1328,84 @@ const H1 = ({
|
|
|
1309
1328
|
width: e.borderWidth
|
|
1310
1329
|
});
|
|
1311
1330
|
};
|
|
1312
|
-
function
|
|
1331
|
+
function W(n = null) {
|
|
1313
1332
|
return {
|
|
1314
1333
|
x: 0,
|
|
1315
1334
|
y: 0,
|
|
1316
1335
|
...n
|
|
1317
1336
|
};
|
|
1318
1337
|
}
|
|
1319
|
-
const
|
|
1320
|
-
function
|
|
1338
|
+
const Y1 = W();
|
|
1339
|
+
function o0(n = null) {
|
|
1321
1340
|
return {
|
|
1322
|
-
origin:
|
|
1323
|
-
size:
|
|
1341
|
+
origin: Y1,
|
|
1342
|
+
size: M1,
|
|
1324
1343
|
...n
|
|
1325
1344
|
};
|
|
1326
1345
|
}
|
|
1327
|
-
|
|
1328
|
-
function
|
|
1346
|
+
o0();
|
|
1347
|
+
function v0(n, e, t) {
|
|
1329
1348
|
const { x: o, y: i } = n, { width: a, height: s } = t;
|
|
1330
1349
|
switch (e) {
|
|
1331
|
-
case
|
|
1332
|
-
return
|
|
1333
|
-
origin:
|
|
1350
|
+
case n0.TOP_LEFT:
|
|
1351
|
+
return o0({
|
|
1352
|
+
origin: W({ x: o, y: i }),
|
|
1334
1353
|
size: t
|
|
1335
1354
|
});
|
|
1336
|
-
case
|
|
1337
|
-
return
|
|
1338
|
-
origin:
|
|
1355
|
+
case n0.TOP:
|
|
1356
|
+
return o0({
|
|
1357
|
+
origin: W({ x: o - a / 2, y: i }),
|
|
1339
1358
|
size: t
|
|
1340
1359
|
});
|
|
1341
|
-
case
|
|
1342
|
-
return
|
|
1343
|
-
origin:
|
|
1360
|
+
case n0.TOP_RIGHT:
|
|
1361
|
+
return o0({
|
|
1362
|
+
origin: W({ x: o - a, y: i }),
|
|
1344
1363
|
size: t
|
|
1345
1364
|
});
|
|
1346
|
-
case
|
|
1347
|
-
return
|
|
1348
|
-
origin:
|
|
1365
|
+
case n0.LEFT:
|
|
1366
|
+
return o0({
|
|
1367
|
+
origin: W({ x: o, y: i - s / 2 }),
|
|
1349
1368
|
size: t
|
|
1350
1369
|
});
|
|
1351
|
-
case
|
|
1352
|
-
return
|
|
1353
|
-
origin:
|
|
1370
|
+
case n0.CENTER:
|
|
1371
|
+
return o0({
|
|
1372
|
+
origin: W({ x: o - a / 2, y: i - s / 2 }),
|
|
1354
1373
|
size: t
|
|
1355
1374
|
});
|
|
1356
|
-
case
|
|
1357
|
-
return
|
|
1358
|
-
origin:
|
|
1375
|
+
case n0.RIGHT:
|
|
1376
|
+
return o0({
|
|
1377
|
+
origin: W({ x: o - a, y: i - s / 2 }),
|
|
1359
1378
|
size: t
|
|
1360
1379
|
});
|
|
1361
|
-
case
|
|
1362
|
-
return
|
|
1363
|
-
origin:
|
|
1380
|
+
case n0.BOTTOM_LEFT:
|
|
1381
|
+
return o0({
|
|
1382
|
+
origin: W({ x: o, y: i - s }),
|
|
1364
1383
|
size: t
|
|
1365
1384
|
});
|
|
1366
|
-
case
|
|
1367
|
-
return
|
|
1368
|
-
origin:
|
|
1385
|
+
case n0.BOTTOM:
|
|
1386
|
+
return o0({
|
|
1387
|
+
origin: W({ x: o - a / 2, y: i - s }),
|
|
1369
1388
|
size: t
|
|
1370
1389
|
});
|
|
1371
|
-
case
|
|
1372
|
-
return
|
|
1373
|
-
origin:
|
|
1390
|
+
case n0.BOTTOM_RIGHT:
|
|
1391
|
+
return o0({
|
|
1392
|
+
origin: W({ x: o - a, y: i - s }),
|
|
1374
1393
|
size: t
|
|
1375
1394
|
});
|
|
1376
1395
|
default:
|
|
1377
|
-
|
|
1396
|
+
s0(e);
|
|
1378
1397
|
}
|
|
1379
1398
|
}
|
|
1380
|
-
const
|
|
1399
|
+
const X1 = ({
|
|
1381
1400
|
ctx: n,
|
|
1382
1401
|
object: e,
|
|
1383
1402
|
renderObject: t,
|
|
1384
1403
|
opacity: o
|
|
1385
1404
|
}) => {
|
|
1386
|
-
const i =
|
|
1387
|
-
|
|
1405
|
+
const i = v0(
|
|
1406
|
+
W({ x: e.x, y: e.y }),
|
|
1388
1407
|
e.anchor,
|
|
1389
|
-
|
|
1408
|
+
a0({
|
|
1390
1409
|
width: e.width * e.scale,
|
|
1391
1410
|
height: e.height * e.scale
|
|
1392
1411
|
})
|
|
@@ -1398,7 +1417,7 @@ const Y1 = ({
|
|
|
1398
1417
|
e.previewColor !== null && (n.context.fillStyle = E0(e.previewColor), n.context.fillRect(0, 0, e.width, e.height)), n.context.translate(s, r), n.context.rotate(-a * Math.PI / 180), n.context.translate(-s, -r), e.rotateOriginPreviewSize > 0 && (n.context.fillStyle = "red", n.context.beginPath(), n.context.arc(s, r, e.rotateOriginPreviewSize, 0, 2 * Math.PI), n.context.fill()), n.context.scale(1 / e.scale, 1 / e.scale), n.context.translate(-i.origin.x, -i.origin.y);
|
|
1399
1418
|
}
|
|
1400
1419
|
};
|
|
1401
|
-
function
|
|
1420
|
+
function rt(n, e, t, o, i = 0) {
|
|
1402
1421
|
const a = o();
|
|
1403
1422
|
a.path.moveTo(n.x + t, n.y), a.path.lineTo(n.x + e.width - t, n.y), a.path.arcTo(
|
|
1404
1423
|
n.x + e.width,
|
|
@@ -1422,43 +1441,43 @@ function Ot(n, e, t, o, i = 0) {
|
|
|
1422
1441
|
const s = 2 * (e.width + e.height - 4 * t) + 2 * Math.PI * t + i;
|
|
1423
1442
|
return { path: a, length: s };
|
|
1424
1443
|
}
|
|
1425
|
-
const
|
|
1444
|
+
const G0 = {
|
|
1426
1445
|
Browser: "browser",
|
|
1427
1446
|
Node: "node"
|
|
1428
|
-
},
|
|
1447
|
+
}, G1 = ({
|
|
1429
1448
|
ctx: n,
|
|
1430
1449
|
imageById: e,
|
|
1431
1450
|
object: t,
|
|
1432
1451
|
opacity: o,
|
|
1433
1452
|
createPath2D: i
|
|
1434
1453
|
}) => {
|
|
1435
|
-
const a =
|
|
1436
|
-
|
|
1454
|
+
const a = v0(
|
|
1455
|
+
W({ x: t.x, y: t.y }),
|
|
1437
1456
|
t.anchor,
|
|
1438
|
-
|
|
1457
|
+
a0({ width: t.width, height: t.height })
|
|
1439
1458
|
), s = e[t.imageId];
|
|
1440
1459
|
if (s !== void 0) {
|
|
1441
1460
|
if (n.context.save(), t.rounding > 0) {
|
|
1442
|
-
const r =
|
|
1461
|
+
const r = rt(
|
|
1443
1462
|
a.origin,
|
|
1444
1463
|
a.size,
|
|
1445
1464
|
t.rounding,
|
|
1446
1465
|
i
|
|
1447
1466
|
);
|
|
1448
1467
|
switch (n.type) {
|
|
1449
|
-
case
|
|
1450
|
-
r.path.type ===
|
|
1468
|
+
case Q.Browser:
|
|
1469
|
+
r.path.type === f0.Browser ? n.context.clip(r.path.path) : console.warn("Attempted to use Node Path2D in Browser Canvas context");
|
|
1451
1470
|
break;
|
|
1452
|
-
case
|
|
1453
|
-
r.path.type ===
|
|
1471
|
+
case Q.Node:
|
|
1472
|
+
r.path.type === f0.Node ? n.context.clip(r.path.path) : console.warn("Attempted to use Browser Path2D in Node Canvas context");
|
|
1454
1473
|
break;
|
|
1455
1474
|
default:
|
|
1456
|
-
|
|
1475
|
+
s0(n);
|
|
1457
1476
|
}
|
|
1458
1477
|
}
|
|
1459
1478
|
switch (n.context.globalAlpha = o * t.opacity, n.context.imageSmoothingEnabled = t.smooth, n.type) {
|
|
1460
|
-
case
|
|
1461
|
-
s.type ===
|
|
1479
|
+
case Q.Browser:
|
|
1480
|
+
s.type === G0.Browser ? n.context.drawImage(
|
|
1462
1481
|
s.image,
|
|
1463
1482
|
a.origin.x,
|
|
1464
1483
|
a.origin.y,
|
|
@@ -1466,8 +1485,8 @@ const Z0 = {
|
|
|
1466
1485
|
a.size.height
|
|
1467
1486
|
) : console.warn("Attempted to use Node Image in Browser Canvas context");
|
|
1468
1487
|
break;
|
|
1469
|
-
case
|
|
1470
|
-
s.type ===
|
|
1488
|
+
case Q.Node:
|
|
1489
|
+
s.type === G0.Node ? n.context.drawImage(
|
|
1471
1490
|
s.image,
|
|
1472
1491
|
a.origin.x,
|
|
1473
1492
|
a.origin.y,
|
|
@@ -1476,18 +1495,18 @@ const Z0 = {
|
|
|
1476
1495
|
) : console.warn("Attempted to use Browser Image in Node Canvas context");
|
|
1477
1496
|
break;
|
|
1478
1497
|
default:
|
|
1479
|
-
|
|
1498
|
+
s0(n);
|
|
1480
1499
|
}
|
|
1481
1500
|
n.context.restore();
|
|
1482
1501
|
}
|
|
1483
1502
|
};
|
|
1484
|
-
function
|
|
1503
|
+
function Z1(n, e) {
|
|
1485
1504
|
const t = e();
|
|
1486
1505
|
t.path.moveTo(n.startX, n.startY), t.path.lineTo(n.endX, n.endY);
|
|
1487
1506
|
const o = Math.hypot(n.endX - n.startX, n.endY - n.startY);
|
|
1488
1507
|
return { path: t, length: o };
|
|
1489
1508
|
}
|
|
1490
|
-
const
|
|
1509
|
+
const K1 = ({
|
|
1491
1510
|
ctx: n,
|
|
1492
1511
|
object: e,
|
|
1493
1512
|
opacity: t,
|
|
@@ -1496,8 +1515,8 @@ const Z1 = ({
|
|
|
1496
1515
|
const i = e.opacity * t;
|
|
1497
1516
|
if (i === 0 || e.drawn === 0)
|
|
1498
1517
|
return;
|
|
1499
|
-
const { path: a, length: s } =
|
|
1500
|
-
|
|
1518
|
+
const { path: a, length: s } = Z1(e, o);
|
|
1519
|
+
x0({
|
|
1501
1520
|
color: e.color,
|
|
1502
1521
|
ctx: n,
|
|
1503
1522
|
drawn: e.drawn,
|
|
@@ -1508,23 +1527,23 @@ const Z1 = ({
|
|
|
1508
1527
|
opacity: i,
|
|
1509
1528
|
width: e.width
|
|
1510
1529
|
});
|
|
1511
|
-
},
|
|
1530
|
+
}, V1 = ({
|
|
1512
1531
|
ctx: n,
|
|
1513
1532
|
object: e,
|
|
1514
1533
|
opacity: t,
|
|
1515
1534
|
renderObject: o
|
|
1516
1535
|
}) => {
|
|
1517
1536
|
n.context.save();
|
|
1518
|
-
const i =
|
|
1519
|
-
|
|
1537
|
+
const i = v0(
|
|
1538
|
+
W({ x: e.x, y: e.y }),
|
|
1520
1539
|
e.anchor,
|
|
1521
|
-
|
|
1540
|
+
a0({ width: e.width, height: e.height })
|
|
1522
1541
|
);
|
|
1523
|
-
e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = E0(
|
|
1542
|
+
e.preview && (n.context.lineWidth = 4, n.context.strokeStyle = E0(Y.RED), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.stroke()), n.context.beginPath(), n.context.rect(i.origin.x, i.origin.y, i.size.width, i.size.height), n.context.closePath(), n.context.clip();
|
|
1524
1543
|
for (const a of e.objects)
|
|
1525
1544
|
o(a, t * e.opacity);
|
|
1526
1545
|
n.context.restore();
|
|
1527
|
-
},
|
|
1546
|
+
}, Q1 = ({
|
|
1528
1547
|
ctx: n,
|
|
1529
1548
|
object: e,
|
|
1530
1549
|
opacity: t,
|
|
@@ -1533,17 +1552,17 @@ const Z1 = ({
|
|
|
1533
1552
|
const i = e.opacity * t;
|
|
1534
1553
|
if (i === 0 || e.drawn === 0 && e.fill.alpha === 0)
|
|
1535
1554
|
return;
|
|
1536
|
-
const { origin: a } =
|
|
1537
|
-
|
|
1555
|
+
const { origin: a } = v0(
|
|
1556
|
+
W({ x: e.x, y: e.y }),
|
|
1538
1557
|
e.anchor,
|
|
1539
|
-
|
|
1558
|
+
a0({ width: e.width, height: e.height })
|
|
1540
1559
|
), s = o(e.path);
|
|
1541
|
-
n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight),
|
|
1560
|
+
n.context.save(), n.context.translate(a.x, a.y), n.context.scale(e.width / e.viewboxWidth, e.height / e.viewboxHeight), y0({
|
|
1542
1561
|
ctx: n,
|
|
1543
1562
|
path: s,
|
|
1544
1563
|
color: e.fill,
|
|
1545
1564
|
opacity: i
|
|
1546
|
-
}),
|
|
1565
|
+
}), x0({
|
|
1547
1566
|
color: e.color,
|
|
1548
1567
|
ctx: n,
|
|
1549
1568
|
drawn: e.drawn,
|
|
@@ -1554,7 +1573,7 @@ const Z1 = ({
|
|
|
1554
1573
|
width: e.strokeWidth
|
|
1555
1574
|
}), n.context.restore();
|
|
1556
1575
|
};
|
|
1557
|
-
function
|
|
1576
|
+
function J1(n, e) {
|
|
1558
1577
|
const t = e(), o = n.points, i = o[0];
|
|
1559
1578
|
if (i === void 0)
|
|
1560
1579
|
return { path: t, length: 0 };
|
|
@@ -1575,7 +1594,7 @@ function V1(n, e) {
|
|
|
1575
1594
|
);
|
|
1576
1595
|
return a += r, { path: t, length: a };
|
|
1577
1596
|
}
|
|
1578
|
-
const
|
|
1597
|
+
const te = ({
|
|
1579
1598
|
ctx: n,
|
|
1580
1599
|
object: e,
|
|
1581
1600
|
opacity: t,
|
|
@@ -1584,13 +1603,13 @@ const Q1 = ({
|
|
|
1584
1603
|
const i = e.opacity * t;
|
|
1585
1604
|
if (i === 0 || e.drawn === 0 && e.fill.alpha === 0)
|
|
1586
1605
|
return;
|
|
1587
|
-
const { path: a, length: s } =
|
|
1588
|
-
|
|
1606
|
+
const { path: a, length: s } = J1(e, o);
|
|
1607
|
+
y0({
|
|
1589
1608
|
ctx: n,
|
|
1590
1609
|
path: a,
|
|
1591
1610
|
color: e.fill,
|
|
1592
1611
|
opacity: i
|
|
1593
|
-
}),
|
|
1612
|
+
}), x0({
|
|
1594
1613
|
color: e.borderColor,
|
|
1595
1614
|
ctx: n,
|
|
1596
1615
|
drawn: e.drawn,
|
|
@@ -1600,14 +1619,31 @@ const Q1 = ({
|
|
|
1600
1619
|
width: e.borderWidth
|
|
1601
1620
|
});
|
|
1602
1621
|
};
|
|
1603
|
-
function
|
|
1604
|
-
const { origin:
|
|
1605
|
-
|
|
1622
|
+
function ee(n, e) {
|
|
1623
|
+
const t = n.borderWidth / 2, { origin: o, size: i } = v0(
|
|
1624
|
+
W({ x: n.x, y: n.y }),
|
|
1606
1625
|
n.anchor,
|
|
1607
|
-
|
|
1626
|
+
a0({ width: n.width, height: n.height })
|
|
1627
|
+
), a = i.width - n.borderWidth, s = i.height - n.borderWidth;
|
|
1628
|
+
if (a <= 0 || s <= 0)
|
|
1629
|
+
return;
|
|
1630
|
+
const r = W({ x: o.x + t, y: o.y + t }), h = a0({ width: a, height: s }), c = Math.max(
|
|
1631
|
+
0,
|
|
1632
|
+
Math.min(n.rounding - t, Math.min(a, s) / 2)
|
|
1633
|
+
);
|
|
1634
|
+
if (c > 0)
|
|
1635
|
+
return rt(r, h, c, e).path;
|
|
1636
|
+
const f = e();
|
|
1637
|
+
return f.path.moveTo(r.x, r.y), f.path.lineTo(r.x + a, r.y), f.path.lineTo(r.x + a, r.y + s), f.path.lineTo(r.x, r.y + s), f.path.closePath(), f;
|
|
1638
|
+
}
|
|
1639
|
+
function ne(n, e) {
|
|
1640
|
+
const { origin: t, size: o } = v0(
|
|
1641
|
+
W({ x: n.x, y: n.y }),
|
|
1642
|
+
n.anchor,
|
|
1643
|
+
a0({ width: n.width, height: n.height })
|
|
1608
1644
|
), i = Math.max(0, Math.min(n.rounding, Math.min(o.width, o.height) / 2)), a = Math.min(n.borderWidth * 2, o.width - i);
|
|
1609
1645
|
if (i > 0)
|
|
1610
|
-
return
|
|
1646
|
+
return rt(t, o, i, e, a);
|
|
1611
1647
|
{
|
|
1612
1648
|
const s = e();
|
|
1613
1649
|
s.path.moveTo(t.x, t.y), s.path.lineTo(t.x + o.width, t.y), s.path.lineTo(t.x + o.width, t.y + o.height), s.path.lineTo(t.x, t.y + o.height), s.path.lineTo(t.x, t.y), s.path.lineTo(t.x + a, t.y);
|
|
@@ -1615,7 +1651,7 @@ function J1(n, e) {
|
|
|
1615
1651
|
return { path: s, length: r };
|
|
1616
1652
|
}
|
|
1617
1653
|
}
|
|
1618
|
-
const
|
|
1654
|
+
const re = ({
|
|
1619
1655
|
ctx: n,
|
|
1620
1656
|
object: e,
|
|
1621
1657
|
opacity: t,
|
|
@@ -1624,13 +1660,13 @@ const te = ({
|
|
|
1624
1660
|
const i = e.opacity * t;
|
|
1625
1661
|
if (i === 0 || e.drawn === 0 && e.fill.alpha === 0)
|
|
1626
1662
|
return;
|
|
1627
|
-
const { path: a, length: s } =
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
path: a,
|
|
1631
|
-
|
|
1632
|
-
opacity: i
|
|
1633
|
-
|
|
1663
|
+
const { path: a, length: s } = ne(e, o);
|
|
1664
|
+
if (i < 1 && e.borderWidth > 0) {
|
|
1665
|
+
const r = ee(e, o);
|
|
1666
|
+
r !== void 0 && (n.context.save(), Ot(n, r), y0({ ctx: n, path: a, color: e.fill, opacity: i }), n.context.restore());
|
|
1667
|
+
} else
|
|
1668
|
+
y0({ ctx: n, path: a, color: e.fill, opacity: i });
|
|
1669
|
+
x0({
|
|
1634
1670
|
color: e.borderColor,
|
|
1635
1671
|
ctx: n,
|
|
1636
1672
|
drawn: e.drawn,
|
|
@@ -1640,7 +1676,7 @@ const te = ({
|
|
|
1640
1676
|
width: e.borderWidth
|
|
1641
1677
|
});
|
|
1642
1678
|
};
|
|
1643
|
-
function
|
|
1679
|
+
function ie(n) {
|
|
1644
1680
|
return {
|
|
1645
1681
|
color: n.color,
|
|
1646
1682
|
fontFamily: n.fontFamily,
|
|
@@ -1650,7 +1686,7 @@ function ee(n) {
|
|
|
1650
1686
|
ligatures: n.ligatures
|
|
1651
1687
|
};
|
|
1652
1688
|
}
|
|
1653
|
-
function
|
|
1689
|
+
function oe(n, e = 1) {
|
|
1654
1690
|
const t = Math.max(...n.map((a) => a.reduce((s, r) => s + r.width, 0)));
|
|
1655
1691
|
let o = 0, i = 0;
|
|
1656
1692
|
for (let a = 0; a < n.length; a++) {
|
|
@@ -1665,34 +1701,34 @@ function ne(n, e = 1) {
|
|
|
1665
1701
|
width: t
|
|
1666
1702
|
};
|
|
1667
1703
|
}
|
|
1668
|
-
function
|
|
1704
|
+
function se(n) {
|
|
1669
1705
|
return {
|
|
1670
1706
|
width: n.width,
|
|
1671
1707
|
height: n.fontBoundingBoxAscent
|
|
1672
1708
|
};
|
|
1673
1709
|
}
|
|
1674
|
-
function
|
|
1675
|
-
n.context.fillStyle = nt(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${e.fontSize}px ${e.fontFamily}`, n.type ===
|
|
1710
|
+
function Ft(n, e, t = 1) {
|
|
1711
|
+
n.context.fillStyle = nt(e.color, t), n.context.font = `${e.fontStyle} ${e.fontWeight} ${e.fontSize}px ${e.fontFamily}`, n.type === Q.Browser ? n.context.textRendering = e.ligatures ? "optimizeLegibility" : "optimizeSpeed" : n.context.fontVariant = e.ligatures ? "common-ligatures" : "no-common-ligatures";
|
|
1676
1712
|
}
|
|
1677
|
-
function
|
|
1713
|
+
function ae(n, e, t) {
|
|
1678
1714
|
const o = [];
|
|
1679
1715
|
for (const i of n) {
|
|
1680
1716
|
const a = [];
|
|
1681
1717
|
for (const s of i) {
|
|
1682
1718
|
const { text: r, ...h } = s, c = { ...e, ...h };
|
|
1683
|
-
|
|
1719
|
+
Ft(t, c);
|
|
1684
1720
|
const f = t.context.measureText(r);
|
|
1685
|
-
a.push(
|
|
1721
|
+
a.push(se(f));
|
|
1686
1722
|
}
|
|
1687
1723
|
o.push(a);
|
|
1688
1724
|
}
|
|
1689
1725
|
return o;
|
|
1690
1726
|
}
|
|
1691
|
-
const
|
|
1727
|
+
const he = ({ ctx: n, object: e, opacity: t }) => {
|
|
1692
1728
|
const o = e.opacity * t;
|
|
1693
1729
|
if (o === 0)
|
|
1694
1730
|
return;
|
|
1695
|
-
const { length: i } = e, a =
|
|
1731
|
+
const { length: i } = e, a = kt(e.text), s = ie(e), r = ae(a, s, n), h = oe(r, e.lineSpacing), c = v0(W({ x: e.x, y: e.y }), e.anchor, h);
|
|
1696
1732
|
let f = c.origin.x, x = c.origin.y, l = 0, u = 0;
|
|
1697
1733
|
for (let A = 0; A < a.length; A++) {
|
|
1698
1734
|
const y = a[A], M = r[A];
|
|
@@ -1702,17 +1738,17 @@ const oe = ({ ctx: n, object: e, opacity: t }) => {
|
|
|
1702
1738
|
}
|
|
1703
1739
|
const C = M.reduce((L, S) => L + S.width, 0), E = M.length === 0 ? u : M.reduce((L, S) => Math.max(L, S.height), 0);
|
|
1704
1740
|
switch (e.alignment) {
|
|
1705
|
-
case
|
|
1741
|
+
case d0.LEFT:
|
|
1706
1742
|
f = c.origin.x;
|
|
1707
1743
|
break;
|
|
1708
|
-
case
|
|
1744
|
+
case d0.CENTER:
|
|
1709
1745
|
f = c.origin.x + (c.size.width - C) / 2;
|
|
1710
1746
|
break;
|
|
1711
|
-
case
|
|
1747
|
+
case d0.RIGHT:
|
|
1712
1748
|
f = c.origin.x + (c.size.width - C);
|
|
1713
1749
|
break;
|
|
1714
1750
|
default:
|
|
1715
|
-
|
|
1751
|
+
s0(e.alignment);
|
|
1716
1752
|
break;
|
|
1717
1753
|
}
|
|
1718
1754
|
x += E + u * (e.lineSpacing - 1), u = E;
|
|
@@ -1723,42 +1759,42 @@ const oe = ({ ctx: n, object: e, opacity: t }) => {
|
|
|
1723
1759
|
continue;
|
|
1724
1760
|
}
|
|
1725
1761
|
const { text: F, ...z } = S;
|
|
1726
|
-
let
|
|
1762
|
+
let G;
|
|
1727
1763
|
if (i !== null && l + F.length > i) {
|
|
1728
|
-
const
|
|
1729
|
-
|
|
1764
|
+
const r0 = i - l;
|
|
1765
|
+
G = F.slice(0, r0);
|
|
1730
1766
|
}
|
|
1731
|
-
const j =
|
|
1767
|
+
const j = G ?? F;
|
|
1732
1768
|
l += j.length;
|
|
1733
1769
|
const $ = { ...s, ...z };
|
|
1734
|
-
|
|
1770
|
+
Ft(n, $, o), n.context.fillText(j, f, x), f += P.width;
|
|
1735
1771
|
}
|
|
1736
1772
|
}
|
|
1737
|
-
},
|
|
1738
|
-
[H.ARROW]:
|
|
1739
|
-
[H.CIRCLE]:
|
|
1740
|
-
[H.GROUP]:
|
|
1741
|
-
[H.IMAGE]:
|
|
1742
|
-
[H.LINE]:
|
|
1743
|
-
[H.MASK]:
|
|
1744
|
-
[H.PATH]:
|
|
1745
|
-
[H.POLYGON]:
|
|
1746
|
-
[H.RECTANGLE]:
|
|
1773
|
+
}, le = {
|
|
1774
|
+
[H.ARROW]: z1,
|
|
1775
|
+
[H.CIRCLE]: W1,
|
|
1776
|
+
[H.GROUP]: X1,
|
|
1777
|
+
[H.IMAGE]: G1,
|
|
1778
|
+
[H.LINE]: K1,
|
|
1779
|
+
[H.MASK]: V1,
|
|
1780
|
+
[H.PATH]: Q1,
|
|
1781
|
+
[H.POLYGON]: te,
|
|
1782
|
+
[H.RECTANGLE]: re,
|
|
1747
1783
|
[H.SLIDE_OBJECT]: () => {
|
|
1748
1784
|
},
|
|
1749
|
-
[H.TEXT]:
|
|
1785
|
+
[H.TEXT]: he
|
|
1750
1786
|
};
|
|
1751
|
-
function
|
|
1787
|
+
function ce(n) {
|
|
1752
1788
|
const e = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
1753
1789
|
return e.setAttribute("viewBox", `0 0 ${n.width} ${n.height}`), e.style.backgroundColor = "transparent", e.style.position = "absolute", e.style.width = "100%", e;
|
|
1754
1790
|
}
|
|
1755
|
-
function
|
|
1791
|
+
function ue(n, e) {
|
|
1756
1792
|
if (n === null)
|
|
1757
1793
|
return null;
|
|
1758
|
-
const t =
|
|
1759
|
-
|
|
1794
|
+
const t = v0(
|
|
1795
|
+
W({ x: e.x, y: e.y }),
|
|
1760
1796
|
e.anchor,
|
|
1761
|
-
|
|
1797
|
+
a0({ width: e.width, height: e.height })
|
|
1762
1798
|
), o = document.createElementNS("http://www.w3.org/2000/svg", "foreignObject");
|
|
1763
1799
|
o.setAttribute("x", t.origin.x.toString()), o.setAttribute("y", t.origin.y.toString()), o.setAttribute("width", e.width.toString()), o.setAttribute("height", e.height.toString());
|
|
1764
1800
|
const i = e.content;
|
|
@@ -1772,7 +1808,7 @@ function he(n, e) {
|
|
|
1772
1808
|
a !== null && a(), n.removeChild(o);
|
|
1773
1809
|
};
|
|
1774
1810
|
}
|
|
1775
|
-
async function
|
|
1811
|
+
async function fe(n) {
|
|
1776
1812
|
if (Object.keys(n).length === 0)
|
|
1777
1813
|
return {};
|
|
1778
1814
|
const e = {}, t = (i) => new Promise((a, s) => {
|
|
@@ -1785,37 +1821,37 @@ async function le(n) {
|
|
|
1785
1821
|
}), o = Object.entries(n).map(async ([i, a]) => {
|
|
1786
1822
|
const s = await t(a);
|
|
1787
1823
|
e[i] = {
|
|
1788
|
-
type:
|
|
1824
|
+
type: G0.Browser,
|
|
1789
1825
|
image: s
|
|
1790
1826
|
};
|
|
1791
1827
|
});
|
|
1792
1828
|
return await Promise.all(o), e;
|
|
1793
1829
|
}
|
|
1794
|
-
class
|
|
1830
|
+
class Mn {
|
|
1795
1831
|
constructor(e) {
|
|
1796
1832
|
const { objectRenderers: t, ...o } = e;
|
|
1797
1833
|
this.props = {
|
|
1798
|
-
presentation:
|
|
1834
|
+
presentation: L1(),
|
|
1799
1835
|
element: document.body,
|
|
1800
1836
|
objectRenderers: {
|
|
1801
|
-
...
|
|
1837
|
+
...le,
|
|
1802
1838
|
...t
|
|
1803
1839
|
},
|
|
1804
1840
|
cacheDurationMinutes: 15,
|
|
1805
1841
|
...o
|
|
1806
|
-
}, this.state = { ...
|
|
1842
|
+
}, this.state = { ...pt };
|
|
1807
1843
|
}
|
|
1808
1844
|
/** Starts the presentation. */
|
|
1809
1845
|
async present() {
|
|
1810
|
-
const { presentation: e, element: t } = this.props, o = D1(e.size), i =
|
|
1846
|
+
const { presentation: e, element: t } = this.props, o = D1(e.size), i = ce(e.size);
|
|
1811
1847
|
this.state = {
|
|
1812
|
-
...
|
|
1813
|
-
imageById: await
|
|
1848
|
+
...pt,
|
|
1849
|
+
imageById: await fe(e.resources.images),
|
|
1814
1850
|
canvas: o,
|
|
1815
1851
|
extrasContainer: i
|
|
1816
1852
|
};
|
|
1817
|
-
const a =
|
|
1818
|
-
|
|
1853
|
+
const a = C1(e, t);
|
|
1854
|
+
R1(e, t, this.state.shortcutState, {
|
|
1819
1855
|
onNext: (r) => this.next(r),
|
|
1820
1856
|
onPrevious: (r) => this.previous(r),
|
|
1821
1857
|
onRenderSlide: (r, h) => {
|
|
@@ -1824,12 +1860,12 @@ class An {
|
|
|
1824
1860
|
buildIndex: this.state.buildIndex
|
|
1825
1861
|
}, this.renderSlide(r ?? this.state.slideIndex, h);
|
|
1826
1862
|
},
|
|
1827
|
-
onShowNavigator: () =>
|
|
1863
|
+
onShowNavigator: () => A1({
|
|
1828
1864
|
presentation: e,
|
|
1829
1865
|
onNavigateToSlide: (r) => this.renderSlide(r)
|
|
1830
1866
|
})
|
|
1831
1867
|
}), t.replaceChildren(), a.appendChild(o), a.appendChild(i), t.appendChild(a);
|
|
1832
|
-
const s =
|
|
1868
|
+
const s = N1(e, this.props.cacheDurationMinutes);
|
|
1833
1869
|
s !== null ? this.renderSlide(s.slideIndex, s.buildIndex) : this.renderSlide(0);
|
|
1834
1870
|
}
|
|
1835
1871
|
renderSlide(e, t = 0, o = null) {
|
|
@@ -1843,7 +1879,7 @@ class An {
|
|
|
1843
1879
|
A();
|
|
1844
1880
|
this.state.mountedExtrasCleanups = [];
|
|
1845
1881
|
for (const A of c.extras) {
|
|
1846
|
-
const y =
|
|
1882
|
+
const y = ue(this.state.extrasContainer, A);
|
|
1847
1883
|
y !== null && this.state.mountedExtrasCleanups.push(y);
|
|
1848
1884
|
}
|
|
1849
1885
|
}
|
|
@@ -1851,10 +1887,10 @@ class An {
|
|
|
1851
1887
|
if (f === null)
|
|
1852
1888
|
return;
|
|
1853
1889
|
const x = {
|
|
1854
|
-
type:
|
|
1890
|
+
type: Q.Browser,
|
|
1855
1891
|
context: f
|
|
1856
1892
|
};
|
|
1857
|
-
|
|
1893
|
+
B1(s, x);
|
|
1858
1894
|
const l = O1({
|
|
1859
1895
|
slide: c,
|
|
1860
1896
|
buildIndex: t,
|
|
@@ -1869,7 +1905,7 @@ class An {
|
|
|
1869
1905
|
object: C,
|
|
1870
1906
|
opacity: y,
|
|
1871
1907
|
renderObject: u,
|
|
1872
|
-
createPath2D:
|
|
1908
|
+
createPath2D: j1
|
|
1873
1909
|
});
|
|
1874
1910
|
}
|
|
1875
1911
|
for (const A of c.objects)
|
|
@@ -1883,7 +1919,7 @@ class An {
|
|
|
1883
1919
|
return;
|
|
1884
1920
|
const r = s.animations[a];
|
|
1885
1921
|
if (r !== void 0 && !e) {
|
|
1886
|
-
const h = performance.now(), c =
|
|
1922
|
+
const h = performance.now(), c = T1(r), f = (x) => {
|
|
1887
1923
|
const l = x - h;
|
|
1888
1924
|
l < c ? (this.renderSlide(i, a + 1, l), this.state.currentAnimationId = requestAnimationFrame(f)) : this.renderSlide(i, a + 1, null);
|
|
1889
1925
|
};
|
|
@@ -1901,15 +1937,15 @@ class An {
|
|
|
1901
1937
|
this.renderSlide(0, 0);
|
|
1902
1938
|
}
|
|
1903
1939
|
}
|
|
1904
|
-
function
|
|
1940
|
+
function Ln(n = 1e3) {
|
|
1905
1941
|
return {
|
|
1906
|
-
type:
|
|
1942
|
+
type: u0.PAUSE,
|
|
1907
1943
|
isKey: !1,
|
|
1908
1944
|
duration: n,
|
|
1909
1945
|
shortcut: null
|
|
1910
1946
|
};
|
|
1911
1947
|
}
|
|
1912
|
-
function
|
|
1948
|
+
function Tn(n = null) {
|
|
1913
1949
|
return {
|
|
1914
1950
|
objects: [],
|
|
1915
1951
|
animations: [],
|
|
@@ -1922,32 +1958,32 @@ function bn(n = null) {
|
|
|
1922
1958
|
...n
|
|
1923
1959
|
};
|
|
1924
1960
|
}
|
|
1925
|
-
function
|
|
1961
|
+
function Pn(n, e = {}) {
|
|
1926
1962
|
return {
|
|
1927
1963
|
...e,
|
|
1928
1964
|
text: n
|
|
1929
1965
|
};
|
|
1930
1966
|
}
|
|
1931
|
-
function
|
|
1967
|
+
function Cn(n = Y.BLACK) {
|
|
1932
1968
|
return { ...n, alpha: 1 };
|
|
1933
1969
|
}
|
|
1934
|
-
function
|
|
1970
|
+
function ge(n) {
|
|
1935
1971
|
for (var e = -1, t = n.length, o, i = n[t - 1], a = 0; ++e < t; )
|
|
1936
1972
|
o = i, i = n[e], a += o[1] * i[0] - o[0] * i[1];
|
|
1937
1973
|
return a / 2;
|
|
1938
1974
|
}
|
|
1939
|
-
function
|
|
1975
|
+
function pe(n) {
|
|
1940
1976
|
for (var e = -1, t = n.length, o = n[t - 1], i, a, s = o[0], r = o[1], h = 0; ++e < t; )
|
|
1941
1977
|
i = s, a = r, o = n[e], s = o[0], r = o[1], i -= s, a -= r, h += Math.sqrt(i * i + a * a);
|
|
1942
1978
|
return h;
|
|
1943
1979
|
}
|
|
1944
|
-
function
|
|
1980
|
+
function de(n) {
|
|
1945
1981
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
1946
1982
|
}
|
|
1947
|
-
var
|
|
1948
|
-
function
|
|
1949
|
-
if (
|
|
1950
|
-
|
|
1983
|
+
var q0, dt;
|
|
1984
|
+
function xe() {
|
|
1985
|
+
if (dt) return q0;
|
|
1986
|
+
dt = 1;
|
|
1951
1987
|
var n = { a: 7, c: 6, h: 1, l: 2, m: 2, r: 4, q: 4, s: 4, t: 2, v: 1, z: 0 }, e = [
|
|
1952
1988
|
5760,
|
|
1953
1989
|
6158,
|
|
@@ -2092,7 +2128,7 @@ function ge() {
|
|
|
2092
2128
|
}
|
|
2093
2129
|
x(u);
|
|
2094
2130
|
}
|
|
2095
|
-
return
|
|
2131
|
+
return q0 = function(A) {
|
|
2096
2132
|
var y = new r(A), M = y.max;
|
|
2097
2133
|
for (h(y); y.index < M && !y.err.length; )
|
|
2098
2134
|
l(y);
|
|
@@ -2100,12 +2136,12 @@ function ge() {
|
|
|
2100
2136
|
err: y.err,
|
|
2101
2137
|
segments: y.result
|
|
2102
2138
|
};
|
|
2103
|
-
},
|
|
2139
|
+
}, q0;
|
|
2104
2140
|
}
|
|
2105
|
-
var
|
|
2106
|
-
function
|
|
2107
|
-
if (
|
|
2108
|
-
|
|
2141
|
+
var B0, xt;
|
|
2142
|
+
function Rt() {
|
|
2143
|
+
if (xt) return B0;
|
|
2144
|
+
xt = 1;
|
|
2109
2145
|
function n(t, o) {
|
|
2110
2146
|
return [
|
|
2111
2147
|
t[0] * o[0] + t[2] * o[1],
|
|
@@ -2150,13 +2186,13 @@ function Ft() {
|
|
|
2150
2186
|
t * a[0] + o * a[2] + (i ? 0 : a[4]),
|
|
2151
2187
|
t * a[1] + o * a[3] + (i ? 0 : a[5])
|
|
2152
2188
|
]) : [t, o];
|
|
2153
|
-
},
|
|
2189
|
+
}, B0 = e, B0;
|
|
2154
2190
|
}
|
|
2155
|
-
var
|
|
2156
|
-
function
|
|
2157
|
-
if (
|
|
2158
|
-
|
|
2159
|
-
var n =
|
|
2191
|
+
var D0, yt;
|
|
2192
|
+
function ye() {
|
|
2193
|
+
if (yt) return D0;
|
|
2194
|
+
yt = 1;
|
|
2195
|
+
var n = Rt(), e = {
|
|
2160
2196
|
matrix: !0,
|
|
2161
2197
|
scale: !0,
|
|
2162
2198
|
rotate: !0,
|
|
@@ -2164,7 +2200,7 @@ function pe() {
|
|
|
2164
2200
|
skewX: !0,
|
|
2165
2201
|
skewY: !0
|
|
2166
2202
|
}, t = /\s*(matrix|translate|scale|rotate|skewX|skewY)\s*\(\s*(.+?)\s*\)[\s,]*/, o = /[\s,]+/;
|
|
2167
|
-
return
|
|
2203
|
+
return D0 = function(a) {
|
|
2168
2204
|
var s = new n(), r, h;
|
|
2169
2205
|
return a.split(t).forEach(function(c) {
|
|
2170
2206
|
if (c.length) {
|
|
@@ -2196,12 +2232,12 @@ function pe() {
|
|
|
2196
2232
|
}
|
|
2197
2233
|
}
|
|
2198
2234
|
}), s;
|
|
2199
|
-
},
|
|
2235
|
+
}, D0;
|
|
2200
2236
|
}
|
|
2201
|
-
var j0,
|
|
2202
|
-
function
|
|
2203
|
-
if (
|
|
2204
|
-
|
|
2237
|
+
var j0, vt;
|
|
2238
|
+
function ve() {
|
|
2239
|
+
if (vt) return j0;
|
|
2240
|
+
vt = 1;
|
|
2205
2241
|
var n = Math.PI * 2;
|
|
2206
2242
|
function e(i, a, s, r) {
|
|
2207
2243
|
var h = i * r - a * s < 0 ? -1 : 1, c = i * s + a * r;
|
|
@@ -2210,8 +2246,8 @@ function de() {
|
|
|
2210
2246
|
function t(i, a, s, r, h, c, f, x, l, u) {
|
|
2211
2247
|
var A = u * (i - s) / 2 + l * (a - r) / 2, y = -l * (i - s) / 2 + u * (a - r) / 2, M = f * f, C = x * x, E = A * A, L = y * y, S = M * C - M * L - C * E;
|
|
2212
2248
|
S < 0 && (S = 0), S /= M * L + C * E, S = Math.sqrt(S) * (h === c ? -1 : 1);
|
|
2213
|
-
var P = S * f / x * y, F = S * -x / f * A, z = u * P - l * F + (i + s) / 2,
|
|
2214
|
-
return c === 0 &&
|
|
2249
|
+
var P = S * f / x * y, F = S * -x / f * A, z = u * P - l * F + (i + s) / 2, G = l * P + u * F + (a + r) / 2, j = (A - P) / f, $ = (y - F) / x, r0 = (-A - P) / f, g0 = (-y - F) / x, c0 = e(1, 0, j, $), J = e(j, $, r0, g0);
|
|
2250
|
+
return c === 0 && J > 0 && (J -= n), c === 1 && J < 0 && (J += n), [z, G, c0, J];
|
|
2215
2251
|
}
|
|
2216
2252
|
function o(i, a) {
|
|
2217
2253
|
var s = 1.3333333333333333 * Math.tan(a / 4), r = Math.cos(i), h = Math.sin(i), c = Math.cos(i + a), f = Math.sin(i + a);
|
|
@@ -2228,23 +2264,23 @@ function de() {
|
|
|
2228
2264
|
E > 1 && (x *= Math.sqrt(E), l *= Math.sqrt(E));
|
|
2229
2265
|
var L = t(a, s, r, h, c, f, x, l, A, y), S = [], P = L[2], F = L[3], z = Math.max(Math.ceil(Math.abs(F) / (n / 4)), 1);
|
|
2230
2266
|
F /= z;
|
|
2231
|
-
for (var
|
|
2267
|
+
for (var G = 0; G < z; G++)
|
|
2232
2268
|
S.push(o(P, F)), P += F;
|
|
2233
2269
|
return S.map(function(j) {
|
|
2234
2270
|
for (var $ = 0; $ < j.length; $ += 2) {
|
|
2235
|
-
var
|
|
2236
|
-
|
|
2237
|
-
var
|
|
2238
|
-
j[$ + 0] =
|
|
2271
|
+
var r0 = j[$ + 0], g0 = j[$ + 1];
|
|
2272
|
+
r0 *= x, g0 *= l;
|
|
2273
|
+
var c0 = y * r0 - A * g0, J = A * r0 + y * g0;
|
|
2274
|
+
j[$ + 0] = c0 + L[0], j[$ + 1] = J + L[1];
|
|
2239
2275
|
}
|
|
2240
2276
|
return j;
|
|
2241
2277
|
});
|
|
2242
2278
|
}, j0;
|
|
2243
2279
|
}
|
|
2244
|
-
var U0,
|
|
2245
|
-
function
|
|
2246
|
-
if (
|
|
2247
|
-
|
|
2280
|
+
var U0, wt;
|
|
2281
|
+
function we() {
|
|
2282
|
+
if (wt) return U0;
|
|
2283
|
+
wt = 1;
|
|
2248
2284
|
var n = 1e-10, e = Math.PI / 180;
|
|
2249
2285
|
function t(o, i, a) {
|
|
2250
2286
|
if (!(this instanceof t))
|
|
@@ -2270,11 +2306,11 @@ function xe() {
|
|
|
2270
2306
|
return this.rx < n * this.ry || this.ry < n * this.rx;
|
|
2271
2307
|
}, U0 = t, U0;
|
|
2272
2308
|
}
|
|
2273
|
-
var z0,
|
|
2274
|
-
function
|
|
2275
|
-
if (
|
|
2276
|
-
|
|
2277
|
-
var n =
|
|
2309
|
+
var z0, At;
|
|
2310
|
+
function Ae() {
|
|
2311
|
+
if (At) return z0;
|
|
2312
|
+
At = 1;
|
|
2313
|
+
var n = xe(), e = ye(), t = Rt(), o = ve(), i = we();
|
|
2278
2314
|
function a(s) {
|
|
2279
2315
|
if (!(this instanceof a))
|
|
2280
2316
|
return new a(s);
|
|
@@ -2494,18 +2530,18 @@ function ye() {
|
|
|
2494
2530
|
}), this;
|
|
2495
2531
|
}, z0 = a, z0;
|
|
2496
2532
|
}
|
|
2497
|
-
var H0,
|
|
2498
|
-
function
|
|
2499
|
-
return
|
|
2533
|
+
var H0, mt;
|
|
2534
|
+
function me() {
|
|
2535
|
+
return mt || (mt = 1, H0 = Ae()), H0;
|
|
2500
2536
|
}
|
|
2501
|
-
var
|
|
2502
|
-
const
|
|
2503
|
-
var $0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 },
|
|
2504
|
-
function
|
|
2537
|
+
var be = me();
|
|
2538
|
+
const Me = /* @__PURE__ */ de(be);
|
|
2539
|
+
var $0 = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, Le = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
|
|
2540
|
+
function Te(n) {
|
|
2505
2541
|
var e = [];
|
|
2506
|
-
return n.replace(
|
|
2542
|
+
return n.replace(Le, function(t, o, i) {
|
|
2507
2543
|
var a = o.toLowerCase();
|
|
2508
|
-
for (i =
|
|
2544
|
+
for (i = Ce(i), a === "m" && i.length > 2 && (e.push([o].concat(i.splice(0, 2))), a = "l", o = o === "m" ? "l" : "L"); i.length >= 0; ) {
|
|
2509
2545
|
if (i.length === $0[a])
|
|
2510
2546
|
return i.unshift(o), e.push(i);
|
|
2511
2547
|
if (i.length < $0[a])
|
|
@@ -2514,19 +2550,19 @@ function be(n) {
|
|
|
2514
2550
|
}
|
|
2515
2551
|
}), e;
|
|
2516
2552
|
}
|
|
2517
|
-
var
|
|
2518
|
-
function
|
|
2519
|
-
var e = n.match(
|
|
2553
|
+
var Pe = /-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/ig;
|
|
2554
|
+
function Ce(n) {
|
|
2555
|
+
var e = n.match(Pe);
|
|
2520
2556
|
return e ? e.map(Number) : [];
|
|
2521
2557
|
}
|
|
2522
|
-
function
|
|
2523
|
-
return new
|
|
2558
|
+
function e0(n, e, t, o, i, a, s, r) {
|
|
2559
|
+
return new Z0(n, e, t, o, i, a, s, r);
|
|
2524
2560
|
}
|
|
2525
|
-
function
|
|
2526
|
-
this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength =
|
|
2561
|
+
function Z0(n, e, t, o, i, a, s, r) {
|
|
2562
|
+
this.a = { x: n, y: e }, this.b = { x: t, y: o }, this.c = { x: i, y: a }, this.d = { x: s, y: r }, s != null && r !== null && r !== void 0 ? (this.getArcLength = qe, this.getPoint = Ie, this.getDerivative = Se) : (this.getArcLength = _e, this.getPoint = Nt, this.getDerivative = Ee), this.init();
|
|
2527
2563
|
}
|
|
2528
|
-
|
|
2529
|
-
constructor:
|
|
2564
|
+
Z0.prototype = {
|
|
2565
|
+
constructor: Z0,
|
|
2530
2566
|
init: function() {
|
|
2531
2567
|
this.length = this.getArcLength(
|
|
2532
2568
|
[this.a.x, this.b.x, this.c.x, this.d.x],
|
|
@@ -2537,7 +2573,7 @@ W0.prototype = {
|
|
|
2537
2573
|
return this.length;
|
|
2538
2574
|
},
|
|
2539
2575
|
getPointAtLength: function(n) {
|
|
2540
|
-
var e =
|
|
2576
|
+
var e = W0(
|
|
2541
2577
|
n,
|
|
2542
2578
|
this.length,
|
|
2543
2579
|
this.getArcLength,
|
|
@@ -2551,7 +2587,7 @@ W0.prototype = {
|
|
|
2551
2587
|
);
|
|
2552
2588
|
},
|
|
2553
2589
|
getTangentAtLength: function(n) {
|
|
2554
|
-
var e =
|
|
2590
|
+
var e = W0(
|
|
2555
2591
|
n,
|
|
2556
2592
|
this.length,
|
|
2557
2593
|
this.getArcLength,
|
|
@@ -2565,7 +2601,7 @@ W0.prototype = {
|
|
|
2565
2601
|
return o > 0 ? i = { x: t.x / o, y: t.y / o } : i = { x: 0, y: 0 }, i;
|
|
2566
2602
|
},
|
|
2567
2603
|
getPropertiesAtLength: function(n) {
|
|
2568
|
-
var e =
|
|
2604
|
+
var e = W0(
|
|
2569
2605
|
n,
|
|
2570
2606
|
this.length,
|
|
2571
2607
|
this.getArcLength,
|
|
@@ -2585,36 +2621,36 @@ W0.prototype = {
|
|
|
2585
2621
|
return { x: a.x, y: a.y, tangentX: i.x, tangentY: i.y };
|
|
2586
2622
|
}
|
|
2587
2623
|
};
|
|
2588
|
-
function
|
|
2624
|
+
function Ee(n, e, t) {
|
|
2589
2625
|
return {
|
|
2590
2626
|
x: (1 - t) * 2 * (n[1] - n[0]) + t * 2 * (n[2] - n[1]),
|
|
2591
2627
|
y: (1 - t) * 2 * (e[1] - e[0]) + t * 2 * (e[2] - e[1])
|
|
2592
2628
|
};
|
|
2593
2629
|
}
|
|
2594
|
-
function
|
|
2595
|
-
var o =
|
|
2630
|
+
function Se(n, e, t) {
|
|
2631
|
+
var o = Nt(
|
|
2596
2632
|
[3 * (n[1] - n[0]), 3 * (n[2] - n[1]), 3 * (n[3] - n[2])],
|
|
2597
2633
|
[3 * (e[1] - e[0]), 3 * (e[2] - e[1]), 3 * (e[3] - e[2])],
|
|
2598
2634
|
t
|
|
2599
2635
|
);
|
|
2600
2636
|
return o;
|
|
2601
2637
|
}
|
|
2602
|
-
function
|
|
2638
|
+
function W0(n, e, t, o, i) {
|
|
2603
2639
|
for (var a = 1, s = n / e, r = (n - t(o, i, s)) / e; a > 1e-3; ) {
|
|
2604
2640
|
var h = t(o, i, s + r), c = t(o, i, s - r), f = Math.abs(n - h) / e, x = Math.abs(n - c) / e;
|
|
2605
2641
|
f < a ? (a = f, s += r) : x < a ? (a = x, s -= r) : r /= 2;
|
|
2606
2642
|
}
|
|
2607
2643
|
return s;
|
|
2608
2644
|
}
|
|
2609
|
-
function
|
|
2645
|
+
function Nt(n, e, t) {
|
|
2610
2646
|
var o = (1 - t) * (1 - t) * n[0] + 2 * (1 - t) * t * n[1] + t * t * n[2], i = (1 - t) * (1 - t) * e[0] + 2 * (1 - t) * t * e[1] + t * t * e[2];
|
|
2611
2647
|
return { x: o, y: i };
|
|
2612
2648
|
}
|
|
2613
|
-
function
|
|
2649
|
+
function Ie(n, e, t) {
|
|
2614
2650
|
var o = (1 - t) * (1 - t) * (1 - t) * n[0] + 3 * (1 - t) * (1 - t) * t * n[1] + 3 * (1 - t) * t * t * n[2] + t * t * t * n[3], i = (1 - t) * (1 - t) * (1 - t) * e[0] + 3 * (1 - t) * (1 - t) * t * e[1] + 3 * (1 - t) * t * t * e[2] + t * t * t * e[3];
|
|
2615
2651
|
return { x: o, y: i };
|
|
2616
2652
|
}
|
|
2617
|
-
function
|
|
2653
|
+
function _e(n, e, t) {
|
|
2618
2654
|
t === void 0 && (t = 1);
|
|
2619
2655
|
var o = n[0] - 2 * n[1] + n[2], i = e[0] - 2 * e[1] + e[2], a = 2 * n[1] - 2 * n[0], s = 2 * e[1] - 2 * e[0], r = 4 * (o * o + i * i), h = 4 * (o * a + i * s), c = a * a + s * s;
|
|
2620
2656
|
if (r === 0)
|
|
@@ -2624,7 +2660,7 @@ function Ee(n, e, t) {
|
|
|
2624
2660
|
(l + Math.sqrt(l * l + u)) / (f + Math.sqrt(f * f + u))
|
|
2625
2661
|
)));
|
|
2626
2662
|
}
|
|
2627
|
-
var
|
|
2663
|
+
var ke = [
|
|
2628
2664
|
[],
|
|
2629
2665
|
[],
|
|
2630
2666
|
[-0.5773502691896257, 0.5773502691896257],
|
|
@@ -2650,7 +2686,7 @@ var Se = [
|
|
|
2650
2686
|
[-0.06973927331972223, 0.06973927331972223, -0.20786042668822127, 0.20786042668822127, -0.34193582089208424, 0.34193582089208424, -0.469355837986757, 0.469355837986757, -0.5876404035069116, 0.5876404035069116, -0.6944872631866827, 0.6944872631866827, -0.7878168059792081, 0.7878168059792081, -0.8658125777203002, 0.8658125777203002, -0.926956772187174, 0.926956772187174, -0.9700604978354287, 0.9700604978354287, -0.9942945854823992, 0.9942945854823992],
|
|
2651
2687
|
[0, -0.1332568242984661, 0.1332568242984661, -0.26413568097034495, 0.26413568097034495, -0.3903010380302908, 0.3903010380302908, -0.5095014778460075, 0.5095014778460075, -0.6196098757636461, 0.6196098757636461, -0.7186613631319502, 0.7186613631319502, -0.8048884016188399, 0.8048884016188399, -0.8767523582704416, 0.8767523582704416, -0.9329710868260161, 0.9329710868260161, -0.9725424712181152, 0.9725424712181152, -0.9947693349975522, 0.9947693349975522],
|
|
2652
2688
|
[-0.06405689286260563, 0.06405689286260563, -0.1911188674736163, 0.1911188674736163, -0.3150426796961634, 0.3150426796961634, -0.4337935076260451, 0.4337935076260451, -0.5454214713888396, 0.5454214713888396, -0.6480936519369755, 0.6480936519369755, -0.7401241915785544, 0.7401241915785544, -0.820001985973903, 0.820001985973903, -0.8864155270044011, 0.8864155270044011, -0.9382745520027328, 0.9382745520027328, -0.9747285559713095, 0.9747285559713095, -0.9951872199970213, 0.9951872199970213]
|
|
2653
|
-
],
|
|
2689
|
+
], Oe = [
|
|
2654
2690
|
[],
|
|
2655
2691
|
[],
|
|
2656
2692
|
[1, 1],
|
|
@@ -2676,9 +2712,9 @@ var Se = [
|
|
|
2676
2712
|
[0.13925187285563198, 0.13925187285563198, 0.13654149834601517, 0.13654149834601517, 0.13117350478706238, 0.13117350478706238, 0.12325237681051242, 0.12325237681051242, 0.11293229608053922, 0.11293229608053922, 0.10041414444288096, 0.10041414444288096, 0.08594160621706773, 0.08594160621706773, 0.06979646842452049, 0.06979646842452049, 0.052293335152683286, 0.052293335152683286, 0.03377490158481415, 0.03377490158481415, 0.0146279952982722, 0.0146279952982722],
|
|
2677
2713
|
[0.13365457218610619, 0.1324620394046966, 0.1324620394046966, 0.12890572218808216, 0.12890572218808216, 0.12304908430672953, 0.12304908430672953, 0.11499664022241136, 0.11499664022241136, 0.10489209146454141, 0.10489209146454141, 0.09291576606003515, 0.09291576606003515, 0.07928141177671895, 0.07928141177671895, 0.06423242140852585, 0.06423242140852585, 0.04803767173108467, 0.04803767173108467, 0.030988005856979445, 0.030988005856979445, 0.013411859487141771, 0.013411859487141771],
|
|
2678
2714
|
[0.12793819534675216, 0.12793819534675216, 0.1258374563468283, 0.1258374563468283, 0.12167047292780339, 0.12167047292780339, 0.1155056680537256, 0.1155056680537256, 0.10744427011596563, 0.10744427011596563, 0.09761865210411388, 0.09761865210411388, 0.08619016153195327, 0.08619016153195327, 0.0733464814110803, 0.0733464814110803, 0.05929858491543678, 0.05929858491543678, 0.04427743881741981, 0.04427743881741981, 0.028531388628933663, 0.028531388628933663, 0.0123412297999872, 0.0123412297999872]
|
|
2679
|
-
],
|
|
2680
|
-
function
|
|
2681
|
-
return
|
|
2715
|
+
], Fe = [[1], [1, 1], [1, 2, 1], [1, 3, 3, 1]];
|
|
2716
|
+
function Re(n, e) {
|
|
2717
|
+
return Fe[n][e];
|
|
2682
2718
|
}
|
|
2683
2719
|
function K0(n, e, t) {
|
|
2684
2720
|
var o = t.length - 1, i, a, s;
|
|
@@ -2686,7 +2722,7 @@ function K0(n, e, t) {
|
|
|
2686
2722
|
return 0;
|
|
2687
2723
|
if (n === 0) {
|
|
2688
2724
|
for (a = 0, s = 0; s <= o; s++)
|
|
2689
|
-
a +=
|
|
2725
|
+
a += Re(o, s) * Math.pow(1 - e, o - s) * Math.pow(e, s) * t[s];
|
|
2690
2726
|
return a;
|
|
2691
2727
|
} else {
|
|
2692
2728
|
for (i = new Array(o), s = 0; s < o; s++)
|
|
@@ -2694,34 +2730,34 @@ function K0(n, e, t) {
|
|
|
2694
2730
|
return K0(n - 1, e, i);
|
|
2695
2731
|
}
|
|
2696
2732
|
}
|
|
2697
|
-
function
|
|
2733
|
+
function Ne(n, e, t) {
|
|
2698
2734
|
var o = K0(1, t, n), i = K0(1, t, e), a = o * o + i * i;
|
|
2699
2735
|
return Math.sqrt(a);
|
|
2700
2736
|
}
|
|
2701
|
-
function
|
|
2737
|
+
function qe(n, e, t) {
|
|
2702
2738
|
var o, i, a, s;
|
|
2703
2739
|
t === void 0 && (t = 1);
|
|
2704
2740
|
var r = 20;
|
|
2705
2741
|
for (o = t / 2, i = 0, a = 0; a < r; a++)
|
|
2706
|
-
s = o *
|
|
2742
|
+
s = o * ke[r][a] + o, i += Oe[r][a] * Ne(n, e, s);
|
|
2707
2743
|
return o * i;
|
|
2708
2744
|
}
|
|
2709
2745
|
var C0 = Math.PI * 2;
|
|
2710
|
-
function
|
|
2746
|
+
function bt(n, e, t, o) {
|
|
2711
2747
|
var i = n * o - e * t < 0 ? -1 : 1, a = n * t + e * o;
|
|
2712
2748
|
return a > 1 && (a = 1), a < -1 && (a = -1), i * Math.acos(a);
|
|
2713
2749
|
}
|
|
2714
|
-
function
|
|
2750
|
+
function Be(n, e, t, o, i, a, s, r, h, c) {
|
|
2715
2751
|
var f = c * (n - t) / 2 + h * (e - o) / 2, x = -h * (n - t) / 2 + c * (e - o) / 2, l = s * s, u = r * r, A = f * f, y = x * x, M = l * u - l * y - u * A;
|
|
2716
2752
|
M < 0 && (M = 0), M /= l * y + u * A, M = Math.sqrt(M) * (i === a ? -1 : 1);
|
|
2717
|
-
var C = M * s / r * x, E = M * -r / s * f, L = c * C - h * E + (n + t) / 2, S = h * C + c * E + (e + o) / 2, P = (f - C) / s, F = (x - E) / r, z = (-f - C) / s,
|
|
2753
|
+
var C = M * s / r * x, E = M * -r / s * f, L = c * C - h * E + (n + t) / 2, S = h * C + c * E + (e + o) / 2, P = (f - C) / s, F = (x - E) / r, z = (-f - C) / s, G = (-x - E) / r, j = bt(1, 0, P, F), $ = bt(P, F, z, G);
|
|
2718
2754
|
return a === 0 && $ > 0 && ($ -= C0), a === 1 && $ < 0 && ($ += C0), [L, S, j, $];
|
|
2719
2755
|
}
|
|
2720
|
-
function
|
|
2756
|
+
function De(n, e) {
|
|
2721
2757
|
var t = 1.3333333333333333 * Math.tan(e / 4), o = Math.cos(n), i = Math.sin(n), a = Math.cos(n + e), s = Math.sin(n + e);
|
|
2722
2758
|
return [o, i, o - i * t, i + o * t, a + s * t, s - a * t, a, s];
|
|
2723
2759
|
}
|
|
2724
|
-
function
|
|
2760
|
+
function je(n, e, t, o, i, a, s, r, h) {
|
|
2725
2761
|
var c = Math.sin(i * C0 / 360), f = Math.cos(i * C0 / 360), x = f * (n - r) / 2 + c * (e - h) / 2, l = -c * (n - r) / 2 + f * (e - h) / 2;
|
|
2726
2762
|
if (x === 0 && l === 0)
|
|
2727
2763
|
return [];
|
|
@@ -2730,27 +2766,27 @@ function Ne(n, e, t, o, i, a, s, r, h) {
|
|
|
2730
2766
|
t = Math.abs(t), o = Math.abs(o);
|
|
2731
2767
|
var u = x * x / (t * t) + l * l / (o * o);
|
|
2732
2768
|
u > 1 && (t *= Math.sqrt(u), o *= Math.sqrt(u));
|
|
2733
|
-
var A =
|
|
2769
|
+
var A = Be(n, e, r, h, a, s, t, o, c, f), y = [], M = A[2], C = A[3], E = Math.max(Math.ceil(Math.abs(C) / (C0 / 4)), 1);
|
|
2734
2770
|
C /= E;
|
|
2735
2771
|
for (var L = 0; L < E; L++)
|
|
2736
|
-
y.push(
|
|
2772
|
+
y.push(De(M, C)), M += C;
|
|
2737
2773
|
return y.map(function(S) {
|
|
2738
2774
|
for (var P = 0; P < S.length; P += 2) {
|
|
2739
2775
|
var F = S[P + 0], z = S[P + 1];
|
|
2740
2776
|
F *= t, z *= o;
|
|
2741
|
-
var
|
|
2742
|
-
S[P + 0] =
|
|
2777
|
+
var G = f * F - c * z, j = c * F + f * z;
|
|
2778
|
+
S[P + 0] = G + A[0], S[P + 1] = j + A[1];
|
|
2743
2779
|
}
|
|
2744
2780
|
return S;
|
|
2745
2781
|
});
|
|
2746
2782
|
}
|
|
2747
|
-
function
|
|
2783
|
+
function Mt(n, e, t, o, i, a, s, r, h) {
|
|
2748
2784
|
return new V0(n, e, t, o, i, a, s, r, h);
|
|
2749
2785
|
}
|
|
2750
2786
|
function V0(n, e, t, o, i, a, s, r, h) {
|
|
2751
|
-
var c = 0, f = [], x = [], l =
|
|
2787
|
+
var c = 0, f = [], x = [], l = je(n, e, t, o, i, a, s, r, h);
|
|
2752
2788
|
l.forEach(function(u) {
|
|
2753
|
-
var A = new
|
|
2789
|
+
var A = new e0(u[0], u[1], u[2], u[3], u[4], u[5], u[6], u[7]), y = A.getTotalLength();
|
|
2754
2790
|
c += y, f.push(y), x.push(A);
|
|
2755
2791
|
}), this.length = c, this.partialLengths = f, this.curves = x;
|
|
2756
2792
|
}
|
|
@@ -2784,7 +2820,7 @@ V0.prototype = {
|
|
|
2784
2820
|
return { x: t.x, y: t.y, tangentX: e.x, tangentY: e.y };
|
|
2785
2821
|
}
|
|
2786
2822
|
};
|
|
2787
|
-
function
|
|
2823
|
+
function t0(n, e, t, o) {
|
|
2788
2824
|
return new S0(n, e, t, o);
|
|
2789
2825
|
}
|
|
2790
2826
|
function S0(n, e, t, o) {
|
|
@@ -2805,13 +2841,13 @@ S0.prototype.getPropertiesAtLength = function(n) {
|
|
|
2805
2841
|
var e = this.getPointAtLength(n), t = this.getTangentAtLength();
|
|
2806
2842
|
return { x: e.x, y: e.y, tangentX: t.x, tangentY: t.y };
|
|
2807
2843
|
};
|
|
2808
|
-
function
|
|
2844
|
+
function Ue(n) {
|
|
2809
2845
|
var e = 0, t = [], o = [];
|
|
2810
2846
|
function i(s) {
|
|
2811
2847
|
if (!s)
|
|
2812
2848
|
return null;
|
|
2813
|
-
for (var r =
|
|
2814
|
-
r[l][0] === "M" ? (h = [r[l][1], r[l][2]], x = [h[0], h[1]], o.push(null)) : r[l][0] === "m" ? (h = [r[l][1] + h[0], r[l][2] + h[1]], x = [h[0], h[1]], o.push(null)) : r[l][0] === "L" ? (e = e + Math.sqrt(Math.pow(h[0] - r[l][1], 2) + Math.pow(h[1] - r[l][2], 2)), o.push(new
|
|
2849
|
+
for (var r = Te(s), h = [0, 0], c = [0, 0], f, x, l = 0; l < r.length; l++)
|
|
2850
|
+
r[l][0] === "M" ? (h = [r[l][1], r[l][2]], x = [h[0], h[1]], o.push(null)) : r[l][0] === "m" ? (h = [r[l][1] + h[0], r[l][2] + h[1]], x = [h[0], h[1]], o.push(null)) : r[l][0] === "L" ? (e = e + Math.sqrt(Math.pow(h[0] - r[l][1], 2) + Math.pow(h[1] - r[l][2], 2)), o.push(new t0(h[0], r[l][1], h[1], r[l][2])), h = [r[l][1], r[l][2]]) : r[l][0] === "l" ? (e = e + Math.sqrt(Math.pow(r[l][1], 2) + Math.pow(r[l][2], 2)), o.push(new t0(h[0], r[l][1] + h[0], h[1], r[l][2] + h[1])), h = [r[l][1] + h[0], r[l][2] + h[1]]) : r[l][0] === "H" ? (e = e + Math.abs(h[0] - r[l][1]), o.push(new t0(h[0], r[l][1], h[1], h[1])), h[0] = r[l][1]) : r[l][0] === "h" ? (e = e + Math.abs(r[l][1]), o.push(new t0(h[0], h[0] + r[l][1], h[1], h[1])), h[0] = r[l][1] + h[0]) : r[l][0] === "V" ? (e = e + Math.abs(h[1] - r[l][1]), o.push(new t0(h[0], h[0], h[1], r[l][1])), h[1] = r[l][1]) : r[l][0] === "v" ? (e = e + Math.abs(r[l][1]), o.push(new t0(h[0], h[0], h[1], h[1] + r[l][1])), h[1] = r[l][1] + h[1]) : r[l][0] === "z" || r[l][0] === "Z" ? (e = e + Math.sqrt(Math.pow(x[0] - h[0], 2) + Math.pow(x[1] - h[1], 2)), o.push(new t0(h[0], x[0], h[1], x[1])), h = [x[0], x[1]]) : r[l][0] === "C" ? (f = new e0(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], r[l][6]), e = e + f.getTotalLength(), h = [r[l][5], r[l][6]], o.push(f)) : r[l][0] === "c" ? (f = new e0(h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4], h[0] + r[l][5], h[1] + r[l][6]), e = e + f.getTotalLength(), h = [r[l][5] + h[0], r[l][6] + h[1]], o.push(f)) : r[l][0] === "S" ? (l > 0 && ["C", "c", "S", "s"].indexOf(r[l - 1][0]) > -1 ? f = new e0(h[0], h[1], 2 * h[0] - r[l - 1][r[l - 1].length - 4], 2 * h[1] - r[l - 1][r[l - 1].length - 3], r[l][1], r[l][2], r[l][3], r[l][4]) : f = new e0(h[0], h[1], h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4]), e = e + f.getTotalLength(), h = [r[l][3], r[l][4]], o.push(f)) : r[l][0] === "s" ? (l > 0 && ["C", "c", "S", "s"].indexOf(r[l - 1][0]) > -1 ? f = new e0(h[0], h[1], h[0] + f.d.x - f.c.x, h[1] + f.d.y - f.c.y, h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]) : f = new e0(h[0], h[1], h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]), e = e + f.getTotalLength(), h = [r[l][3] + h[0], r[l][4] + h[1]], o.push(f)) : r[l][0] === "Q" ? (h[0] != r[l][1] && h[1] != r[l][2] ? f = new e0(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4]) : f = new t0(r[l][1], r[l][3], r[l][2], r[l][4]), e = e + f.getTotalLength(), o.push(f), h = [r[l][3], r[l][4]], c = [r[l][1], r[l][2]]) : r[l][0] === "q" ? (r[l][1] == 0 && r[l][2] == 0 ? f = new t0(h[0] + r[l][1], h[0] + r[l][3], h[1] + r[l][2], h[1] + r[l][4]) : f = new e0(h[0], h[1], h[0] + r[l][1], h[1] + r[l][2], h[0] + r[l][3], h[1] + r[l][4]), e = e + f.getTotalLength(), c = [h[0] + r[l][1], h[1] + r[l][2]], h = [r[l][3] + h[0], r[l][4] + h[1]], o.push(f)) : r[l][0] === "T" ? (l > 0 && ["Q", "q", "T", "t"].indexOf(r[l - 1][0]) > -1 ? f = new e0(h[0], h[1], 2 * h[0] - c[0], 2 * h[1] - c[1], r[l][1], r[l][2]) : f = new t0(h[0], r[l][1], h[1], r[l][2]), o.push(f), e = e + f.getTotalLength(), c = [2 * h[0] - c[0], 2 * h[1] - c[1]], h = [r[l][1], r[l][2]]) : r[l][0] === "t" ? (l > 0 && ["Q", "q", "T", "t"].indexOf(r[l - 1][0]) > -1 ? f = new e0(h[0], h[1], 2 * h[0] - c[0], 2 * h[1] - c[1], h[0] + r[l][1], h[1] + r[l][2]) : f = new t0(h[0], h[0] + r[l][1], h[1], h[1] + r[l][2]), e = e + f.getTotalLength(), c = [2 * h[0] - c[0], 2 * h[1] - c[1]], h = [r[l][1] + h[0], r[l][2] + h[0]], o.push(f)) : r[l][0] === "A" ? (f = new Mt(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], r[l][6], r[l][7]), e = e + f.getTotalLength(), h = [r[l][6], r[l][7]], o.push(f)) : r[l][0] === "a" && (f = new Mt(h[0], h[1], r[l][1], r[l][2], r[l][3], r[l][4], r[l][5], h[0] + r[l][6], h[1] + r[l][7]), e = e + f.getTotalLength(), h = [h[0] + r[l][6], h[1] + r[l][7]], o.push(f)), t.push(e);
|
|
2815
2851
|
return i;
|
|
2816
2852
|
}
|
|
2817
2853
|
i.getTotalLength = function() {
|
|
@@ -2834,28 +2870,28 @@ function De(n) {
|
|
|
2834
2870
|
};
|
|
2835
2871
|
return i(n);
|
|
2836
2872
|
}
|
|
2837
|
-
function
|
|
2873
|
+
function k0(n, e) {
|
|
2838
2874
|
return Math.sqrt((n[0] - e[0]) * (n[0] - e[0]) + (n[1] - e[1]) * (n[1] - e[1]));
|
|
2839
2875
|
}
|
|
2840
2876
|
function qt(n, e, t) {
|
|
2841
2877
|
return [n[0] + (e[0] - n[0]) * t, n[1] + (e[1] - n[1]) * t];
|
|
2842
2878
|
}
|
|
2843
|
-
function
|
|
2844
|
-
return
|
|
2879
|
+
function ze(n, e) {
|
|
2880
|
+
return k0(n, e) < 1e-9;
|
|
2845
2881
|
}
|
|
2846
|
-
function
|
|
2847
|
-
let o = n.map((i, a) =>
|
|
2882
|
+
function He(n, e, t) {
|
|
2883
|
+
let o = n.map((i, a) => $e(i, e[a]));
|
|
2848
2884
|
return function(i) {
|
|
2849
2885
|
let a = o.map((s) => s(i));
|
|
2850
|
-
return t ?
|
|
2886
|
+
return t ? Xe(a) : a;
|
|
2851
2887
|
};
|
|
2852
2888
|
}
|
|
2853
|
-
function
|
|
2889
|
+
function $e(n, e) {
|
|
2854
2890
|
return function(t) {
|
|
2855
2891
|
return n.map((o, i) => o + t * (e[i] - o));
|
|
2856
2892
|
};
|
|
2857
2893
|
}
|
|
2858
|
-
function
|
|
2894
|
+
function _0(n) {
|
|
2859
2895
|
return typeof n == "number" && isFinite(n);
|
|
2860
2896
|
}
|
|
2861
2897
|
const Q0 = `All shapes must be supplied as arrays of [x, y] points or an SVG path string (https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d).
|
|
@@ -2863,20 +2899,20 @@ Example valid ways of supplying a shape would be:
|
|
|
2863
2899
|
[[0, 0], [10, 0], [10, 10]]
|
|
2864
2900
|
"M0,0 L10,0 L10,10Z"
|
|
2865
2901
|
`;
|
|
2866
|
-
function
|
|
2867
|
-
return new
|
|
2902
|
+
function We(n) {
|
|
2903
|
+
return new Me(n).abs();
|
|
2868
2904
|
}
|
|
2869
|
-
function
|
|
2905
|
+
function Ye(n) {
|
|
2870
2906
|
return n.toString().split("M").map((e, t) => (e = e.trim(), t && e ? "M" + e : e)).filter((e) => e);
|
|
2871
2907
|
}
|
|
2872
|
-
function
|
|
2908
|
+
function Xe(n) {
|
|
2873
2909
|
return "M" + n.join("L") + "Z";
|
|
2874
2910
|
}
|
|
2875
|
-
function
|
|
2876
|
-
let t =
|
|
2877
|
-
return
|
|
2911
|
+
function Ge(n, e) {
|
|
2912
|
+
let t = We(n);
|
|
2913
|
+
return Ze(t) || Ke(t, e);
|
|
2878
2914
|
}
|
|
2879
|
-
function
|
|
2915
|
+
function Ze(n) {
|
|
2880
2916
|
let e = n.segments || [], t = [];
|
|
2881
2917
|
if (!e.length || e[0][0] !== "M")
|
|
2882
2918
|
return !1;
|
|
@@ -2895,11 +2931,11 @@ function Xe(n) {
|
|
|
2895
2931
|
}
|
|
2896
2932
|
return t.length ? { ring: t } : !1;
|
|
2897
2933
|
}
|
|
2898
|
-
function
|
|
2899
|
-
let t =
|
|
2934
|
+
function Ke(n, e) {
|
|
2935
|
+
let t = Ye(n)[0], o = [], i, a, s = 3;
|
|
2900
2936
|
if (!t)
|
|
2901
2937
|
throw new TypeError(Q0);
|
|
2902
|
-
a =
|
|
2938
|
+
a = Ve(t), i = a.getTotalLength(), e && _0(e) && e > 0 && (s = Math.max(s, Math.ceil(i / e)));
|
|
2903
2939
|
for (let r = 0; r < s; r++) {
|
|
2904
2940
|
let h = a.getPointAtLength(i * r / s);
|
|
2905
2941
|
o.push([h.x, h.y]);
|
|
@@ -2909,20 +2945,20 @@ function Ge(n, e) {
|
|
|
2909
2945
|
skipBisect: !0
|
|
2910
2946
|
};
|
|
2911
2947
|
}
|
|
2912
|
-
function
|
|
2948
|
+
function Ve(n) {
|
|
2913
2949
|
if (typeof window < "u" && window && window.document)
|
|
2914
2950
|
try {
|
|
2915
2951
|
let e = window.document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
2916
2952
|
return e.setAttributeNS(null, "d", n), e;
|
|
2917
2953
|
} catch {
|
|
2918
2954
|
}
|
|
2919
|
-
return
|
|
2955
|
+
return Ue(n);
|
|
2920
2956
|
}
|
|
2921
|
-
function
|
|
2922
|
-
const t = n.length + e, o =
|
|
2957
|
+
function Lt(n, e) {
|
|
2958
|
+
const t = n.length + e, o = pe(n) / e;
|
|
2923
2959
|
let i = 0, a = 0, s = o / 2;
|
|
2924
2960
|
for (; n.length < t; ) {
|
|
2925
|
-
let r = n[i], h = n[(i + 1) % n.length], c =
|
|
2961
|
+
let r = n[i], h = n[(i + 1) % n.length], c = k0(r, h);
|
|
2926
2962
|
if (s <= a + c) {
|
|
2927
2963
|
n.splice(i + 1, 0, c ? qt(r, h, (s - a) / c) : r.slice(0)), s += o;
|
|
2928
2964
|
continue;
|
|
@@ -2930,70 +2966,70 @@ function Mt(n, e) {
|
|
|
2930
2966
|
a += c, i++;
|
|
2931
2967
|
}
|
|
2932
2968
|
}
|
|
2933
|
-
function
|
|
2969
|
+
function Qe(n, e = 1 / 0) {
|
|
2934
2970
|
for (let t = 0; t < n.length; t++) {
|
|
2935
2971
|
let o = n[t], i = t === n.length - 1 ? n[0] : n[t + 1];
|
|
2936
|
-
for (;
|
|
2972
|
+
for (; k0(o, i) > e; )
|
|
2937
2973
|
i = qt(o, i, 0.5), n.splice(t + 1, 0, i);
|
|
2938
2974
|
}
|
|
2939
2975
|
}
|
|
2940
|
-
function
|
|
2976
|
+
function Tt(n, e) {
|
|
2941
2977
|
let t, o, i;
|
|
2942
2978
|
if (typeof n == "string") {
|
|
2943
|
-
let a =
|
|
2979
|
+
let a = Ge(n, e);
|
|
2944
2980
|
n = a.ring, i = a.skipBisect;
|
|
2945
2981
|
} else if (!Array.isArray(n))
|
|
2946
2982
|
throw new TypeError(Q0);
|
|
2947
|
-
if (t = n.slice(0), !
|
|
2983
|
+
if (t = n.slice(0), !Je(t))
|
|
2948
2984
|
throw new TypeError(Q0);
|
|
2949
|
-
return t.length > 1 &&
|
|
2985
|
+
return t.length > 1 && ze(t[0], t[t.length - 1]) && t.pop(), o = ge(t), o > 0 && t.reverse(), !i && e && _0(e) && e > 0 && Qe(t, e), t;
|
|
2950
2986
|
}
|
|
2951
|
-
function
|
|
2987
|
+
function Je(n) {
|
|
2952
2988
|
return n.every(function(e) {
|
|
2953
|
-
return Array.isArray(e) && e.length >= 2 &&
|
|
2989
|
+
return Array.isArray(e) && e.length >= 2 && _0(e[0]) && _0(e[1]);
|
|
2954
2990
|
});
|
|
2955
2991
|
}
|
|
2956
|
-
function
|
|
2992
|
+
function tn(n, e) {
|
|
2957
2993
|
let t = n.length, o = 1 / 0, i, a, s;
|
|
2958
2994
|
for (let r = 0; r < t; r++)
|
|
2959
2995
|
a = 0, e.forEach(function(h, c) {
|
|
2960
|
-
let f =
|
|
2996
|
+
let f = k0(n[(r + c) % t], h);
|
|
2961
2997
|
a += f * f;
|
|
2962
2998
|
}), a < o && (o = a, i = r);
|
|
2963
2999
|
i && (s = n.splice(0, i), n.splice(n.length, 0, ...s));
|
|
2964
3000
|
}
|
|
2965
|
-
function
|
|
2966
|
-
let i =
|
|
3001
|
+
function en(n, e, { maxSegmentLength: t = 10, string: o = !0 } = {}) {
|
|
3002
|
+
let i = Tt(n, t), a = Tt(e, t), s = nn(i, a, o);
|
|
2967
3003
|
return !o || typeof n != "string" && typeof e != "string" ? s : (r) => r < 1e-4 && typeof n == "string" ? n : 1 - r < 1e-4 && typeof e == "string" ? e : s(r);
|
|
2968
3004
|
}
|
|
2969
|
-
function
|
|
3005
|
+
function nn(n, e, t) {
|
|
2970
3006
|
let o;
|
|
2971
|
-
return o = n.length - e.length,
|
|
3007
|
+
return o = n.length - e.length, Lt(n, o < 0 ? o * -1 : 0), Lt(e, o > 0 ? o : 0), tn(n, e), He(n, e, t);
|
|
2972
3008
|
}
|
|
2973
|
-
var
|
|
2974
|
-
function
|
|
2975
|
-
if (
|
|
2976
|
-
|
|
3009
|
+
var I0 = { exports: {} }, Pt;
|
|
3010
|
+
function rn() {
|
|
3011
|
+
if (Pt) return I0.exports;
|
|
3012
|
+
Pt = 1, I0.exports = n, I0.exports.default = n;
|
|
2977
3013
|
function n(g, d, p) {
|
|
2978
3014
|
p = p || 2;
|
|
2979
3015
|
var v = d && d.length, w = v ? d[0] * p : g.length, m = e(g, 0, w, p, !0), b = [];
|
|
2980
3016
|
if (!m || m.next === m.prev) return b;
|
|
2981
|
-
var T,
|
|
3017
|
+
var T, O, _, U, B, R, X;
|
|
2982
3018
|
if (v && (m = h(g, d, m, p)), g.length > 80 * p) {
|
|
2983
|
-
T =
|
|
2984
|
-
for (var
|
|
2985
|
-
|
|
2986
|
-
|
|
3019
|
+
T = _ = g[0], O = U = g[1];
|
|
3020
|
+
for (var D = p; D < w; D += p)
|
|
3021
|
+
B = g[D], R = g[D + 1], B < T && (T = B), R < O && (O = R), B > _ && (_ = B), R > U && (U = R);
|
|
3022
|
+
X = Math.max(_ - T, U - O), X = X !== 0 ? 32767 / X : 0;
|
|
2987
3023
|
}
|
|
2988
|
-
return o(m, b, p, T,
|
|
3024
|
+
return o(m, b, p, T, O, X, 0), b;
|
|
2989
3025
|
}
|
|
2990
3026
|
function e(g, d, p, v, w) {
|
|
2991
3027
|
var m, b;
|
|
2992
|
-
if (w ===
|
|
2993
|
-
for (m = d; m < p; m += v) b =
|
|
3028
|
+
if (w === O0(g, d, p, v) > 0)
|
|
3029
|
+
for (m = d; m < p; m += v) b = g0(m, g[m], g[m + 1], b);
|
|
2994
3030
|
else
|
|
2995
|
-
for (m = p - v; m >= d; m -= v) b =
|
|
2996
|
-
return b && S(b, b.next) && (
|
|
3031
|
+
for (m = p - v; m >= d; m -= v) b = g0(m, g[m], g[m + 1], b);
|
|
3032
|
+
return b && S(b, b.next) && (c0(b), b = b.next), b;
|
|
2997
3033
|
}
|
|
2998
3034
|
function t(g, d) {
|
|
2999
3035
|
if (!g) return g;
|
|
@@ -3001,7 +3037,7 @@ function tn() {
|
|
|
3001
3037
|
var p = g, v;
|
|
3002
3038
|
do
|
|
3003
3039
|
if (v = !1, !p.steiner && (S(p, p.next) || L(p.prev, p, p.next) === 0)) {
|
|
3004
|
-
if (
|
|
3040
|
+
if (c0(p), p = d = p.prev, p === p.next) break;
|
|
3005
3041
|
v = !0;
|
|
3006
3042
|
} else
|
|
3007
3043
|
p = p.next;
|
|
@@ -3011,12 +3047,12 @@ function tn() {
|
|
|
3011
3047
|
function o(g, d, p, v, w, m, b) {
|
|
3012
3048
|
if (g) {
|
|
3013
3049
|
!b && m && u(g, v, w, m);
|
|
3014
|
-
for (var T = g,
|
|
3015
|
-
if (
|
|
3016
|
-
d.push(
|
|
3050
|
+
for (var T = g, O, _; g.prev !== g.next; ) {
|
|
3051
|
+
if (O = g.prev, _ = g.next, m ? a(g, v, w, m) : i(g)) {
|
|
3052
|
+
d.push(O.i / p | 0), d.push(g.i / p | 0), d.push(_.i / p | 0), c0(g), g = _.next, T = _.next;
|
|
3017
3053
|
continue;
|
|
3018
3054
|
}
|
|
3019
|
-
if (g =
|
|
3055
|
+
if (g = _, g === T) {
|
|
3020
3056
|
b ? b === 1 ? (g = s(t(g), d, p), o(g, d, p, v, w, m, 2)) : b === 2 && r(g, d, p, v, w, m) : o(t(g), d, p, v, w, m, 1);
|
|
3021
3057
|
break;
|
|
3022
3058
|
}
|
|
@@ -3026,26 +3062,26 @@ function tn() {
|
|
|
3026
3062
|
function i(g) {
|
|
3027
3063
|
var d = g.prev, p = g, v = g.next;
|
|
3028
3064
|
if (L(d, p, v) >= 0) return !1;
|
|
3029
|
-
for (var w = d.x, m = p.x, b = v.x, T = d.y,
|
|
3030
|
-
if (
|
|
3031
|
-
|
|
3065
|
+
for (var w = d.x, m = p.x, b = v.x, T = d.y, O = p.y, _ = v.y, U = w < m ? w < b ? w : b : m < b ? m : b, B = T < O ? T < _ ? T : _ : O < _ ? O : _, R = w > m ? w > b ? w : b : m > b ? m : b, X = T > O ? T > _ ? T : _ : O > _ ? O : _, D = v.next; D !== d; ) {
|
|
3066
|
+
if (D.x >= U && D.x <= R && D.y >= B && D.y <= X && C(w, T, m, O, b, _, D.x, D.y) && L(D.prev, D, D.next) >= 0) return !1;
|
|
3067
|
+
D = D.next;
|
|
3032
3068
|
}
|
|
3033
3069
|
return !0;
|
|
3034
3070
|
}
|
|
3035
3071
|
function a(g, d, p, v) {
|
|
3036
3072
|
var w = g.prev, m = g, b = g.next;
|
|
3037
3073
|
if (L(w, m, b) >= 0) return !1;
|
|
3038
|
-
for (var T = w.x,
|
|
3039
|
-
if (
|
|
3040
|
-
|
|
3074
|
+
for (var T = w.x, O = m.x, _ = b.x, U = w.y, B = m.y, R = b.y, X = T < O ? T < _ ? T : _ : O < _ ? O : _, D = U < B ? U < R ? U : R : B < R ? B : R, L0 = T > O ? T > _ ? T : _ : O > _ ? O : _, T0 = U > B ? U > R ? U : R : B > R ? B : R, it = y(X, D, d, p, v), ot = y(L0, T0, d, p, v), N = g.prevZ, q = g.nextZ; N && N.z >= it && q && q.z <= ot; ) {
|
|
3075
|
+
if (N.x >= X && N.x <= L0 && N.y >= D && N.y <= T0 && N !== w && N !== b && C(T, U, O, B, _, R, N.x, N.y) && L(N.prev, N, N.next) >= 0 || (N = N.prevZ, q.x >= X && q.x <= L0 && q.y >= D && q.y <= T0 && q !== w && q !== b && C(T, U, O, B, _, R, q.x, q.y) && L(q.prev, q, q.next) >= 0)) return !1;
|
|
3076
|
+
q = q.nextZ;
|
|
3041
3077
|
}
|
|
3042
|
-
for (;
|
|
3043
|
-
if (
|
|
3044
|
-
|
|
3078
|
+
for (; N && N.z >= it; ) {
|
|
3079
|
+
if (N.x >= X && N.x <= L0 && N.y >= D && N.y <= T0 && N !== w && N !== b && C(T, U, O, B, _, R, N.x, N.y) && L(N.prev, N, N.next) >= 0) return !1;
|
|
3080
|
+
N = N.prevZ;
|
|
3045
3081
|
}
|
|
3046
|
-
for (;
|
|
3047
|
-
if (
|
|
3048
|
-
|
|
3082
|
+
for (; q && q.z <= ot; ) {
|
|
3083
|
+
if (q.x >= X && q.x <= L0 && q.y >= D && q.y <= T0 && q !== w && q !== b && C(T, U, O, B, _, R, q.x, q.y) && L(q.prev, q, q.next) >= 0) return !1;
|
|
3084
|
+
q = q.nextZ;
|
|
3049
3085
|
}
|
|
3050
3086
|
return !0;
|
|
3051
3087
|
}
|
|
@@ -3053,7 +3089,7 @@ function tn() {
|
|
|
3053
3089
|
var v = g;
|
|
3054
3090
|
do {
|
|
3055
3091
|
var w = v.prev, m = v.next.next;
|
|
3056
|
-
!S(w, m) && P(w, v, v.next, m) && j(w, m) && j(m, w) && (d.push(w.i / p | 0), d.push(v.i / p | 0), d.push(m.i / p | 0),
|
|
3092
|
+
!S(w, m) && P(w, v, v.next, m) && j(w, m) && j(m, w) && (d.push(w.i / p | 0), d.push(v.i / p | 0), d.push(m.i / p | 0), c0(v), c0(v.next), v = g = m), v = v.next;
|
|
3057
3093
|
} while (v !== g);
|
|
3058
3094
|
return t(v);
|
|
3059
3095
|
}
|
|
@@ -3062,8 +3098,8 @@ function tn() {
|
|
|
3062
3098
|
do {
|
|
3063
3099
|
for (var T = b.next.next; T !== b.prev; ) {
|
|
3064
3100
|
if (b.i !== T.i && E(b, T)) {
|
|
3065
|
-
var
|
|
3066
|
-
b = t(b, b.next),
|
|
3101
|
+
var O = r0(b, T);
|
|
3102
|
+
b = t(b, b.next), O = t(O, O.next), o(b, d, p, v, w, m, 0), o(O, d, p, v, w, m, 0);
|
|
3067
3103
|
return;
|
|
3068
3104
|
}
|
|
3069
3105
|
T = T.next;
|
|
@@ -3072,9 +3108,9 @@ function tn() {
|
|
|
3072
3108
|
} while (b !== g);
|
|
3073
3109
|
}
|
|
3074
3110
|
function h(g, d, p, v) {
|
|
3075
|
-
var w = [], m, b, T,
|
|
3111
|
+
var w = [], m, b, T, O, _;
|
|
3076
3112
|
for (m = 0, b = d.length; m < b; m++)
|
|
3077
|
-
T = d[m] * v,
|
|
3113
|
+
T = d[m] * v, O = m < b - 1 ? d[m + 1] * v : g.length, _ = e(g, T, O, v, !1), _ === _.next && (_.steiner = !0), w.push(M(_));
|
|
3078
3114
|
for (w.sort(c), m = 0; m < w.length; m++)
|
|
3079
3115
|
p = f(w[m], p);
|
|
3080
3116
|
return p;
|
|
@@ -3086,7 +3122,7 @@ function tn() {
|
|
|
3086
3122
|
var p = x(g, d);
|
|
3087
3123
|
if (!p)
|
|
3088
3124
|
return d;
|
|
3089
|
-
var v =
|
|
3125
|
+
var v = r0(p, g);
|
|
3090
3126
|
return t(v, v.next), t(p, p.next);
|
|
3091
3127
|
}
|
|
3092
3128
|
function x(g, d) {
|
|
@@ -3100,11 +3136,11 @@ function tn() {
|
|
|
3100
3136
|
p = p.next;
|
|
3101
3137
|
} while (p !== d);
|
|
3102
3138
|
if (!b) return null;
|
|
3103
|
-
var
|
|
3139
|
+
var O = b, _ = b.x, U = b.y, B = 1 / 0, R;
|
|
3104
3140
|
p = b;
|
|
3105
3141
|
do
|
|
3106
|
-
v >= p.x && p.x >=
|
|
3107
|
-
while (p !==
|
|
3142
|
+
v >= p.x && p.x >= _ && v !== p.x && C(w < U ? v : m, w, _, U, w < U ? m : v, w, p.x, p.y) && (R = Math.abs(w - p.y) / (v - p.x), j(p, g) && (R < B || R === B && (p.x > b.x || p.x === b.x && l(b, p))) && (b = p, B = R)), p = p.next;
|
|
3143
|
+
while (p !== O);
|
|
3108
3144
|
return b;
|
|
3109
3145
|
}
|
|
3110
3146
|
function l(g, d) {
|
|
@@ -3118,16 +3154,16 @@ function tn() {
|
|
|
3118
3154
|
w.prevZ.nextZ = null, w.prevZ = null, A(w);
|
|
3119
3155
|
}
|
|
3120
3156
|
function A(g) {
|
|
3121
|
-
var d, p, v, w, m, b, T,
|
|
3157
|
+
var d, p, v, w, m, b, T, O, _ = 1;
|
|
3122
3158
|
do {
|
|
3123
3159
|
for (p = g, g = null, m = null, b = 0; p; ) {
|
|
3124
|
-
for (b++, v = p, T = 0, d = 0; d <
|
|
3160
|
+
for (b++, v = p, T = 0, d = 0; d < _ && (T++, v = v.nextZ, !!v); d++)
|
|
3125
3161
|
;
|
|
3126
|
-
for (
|
|
3127
|
-
T !== 0 && (
|
|
3162
|
+
for (O = _; T > 0 || O > 0 && v; )
|
|
3163
|
+
T !== 0 && (O === 0 || !v || p.z <= v.z) ? (w = p, p = p.nextZ, T--) : (w = v, v = v.nextZ, O--), m ? m.nextZ = w : g = w, w.prevZ = m, m = w;
|
|
3128
3164
|
p = v;
|
|
3129
3165
|
}
|
|
3130
|
-
m.nextZ = null,
|
|
3166
|
+
m.nextZ = null, _ *= 2;
|
|
3131
3167
|
} while (b > 1);
|
|
3132
3168
|
return g;
|
|
3133
3169
|
}
|
|
@@ -3145,7 +3181,7 @@ function tn() {
|
|
|
3145
3181
|
return (w - b) * (d - T) >= (g - b) * (m - T) && (g - b) * (v - T) >= (p - b) * (d - T) && (p - b) * (m - T) >= (w - b) * (v - T);
|
|
3146
3182
|
}
|
|
3147
3183
|
function E(g, d) {
|
|
3148
|
-
return g.next.i !== d.i && g.prev.i !== d.i && !
|
|
3184
|
+
return g.next.i !== d.i && g.prev.i !== d.i && !G(g, d) && // dones't intersect other edges
|
|
3149
3185
|
(j(g, d) && j(d, g) && $(g, d) && // locally visible
|
|
3150
3186
|
(L(g.prev, g, d.prev) || L(g, d.prev, d)) || // does not create opposite-facing sectors
|
|
3151
3187
|
S(g, d) && L(g.prev, g, g.next) > 0 && L(d.prev, d, d.next) > 0);
|
|
@@ -3166,7 +3202,7 @@ function tn() {
|
|
|
3166
3202
|
function z(g) {
|
|
3167
3203
|
return g > 0 ? 1 : g < 0 ? -1 : 0;
|
|
3168
3204
|
}
|
|
3169
|
-
function
|
|
3205
|
+
function G(g, d) {
|
|
3170
3206
|
var p = g;
|
|
3171
3207
|
do {
|
|
3172
3208
|
if (p.i !== g.i && p.next.i !== g.i && p.i !== d.i && p.next.i !== d.i && P(p, p.next, g, d)) return !0;
|
|
@@ -3184,37 +3220,37 @@ function tn() {
|
|
|
3184
3220
|
while (p !== g);
|
|
3185
3221
|
return v;
|
|
3186
3222
|
}
|
|
3187
|
-
function
|
|
3188
|
-
var p = new
|
|
3223
|
+
function r0(g, d) {
|
|
3224
|
+
var p = new J(g.i, g.x, g.y), v = new J(d.i, d.x, d.y), w = g.next, m = d.prev;
|
|
3189
3225
|
return g.next = d, d.prev = g, p.next = w, w.prev = p, v.next = p, p.prev = v, m.next = v, v.prev = m, v;
|
|
3190
3226
|
}
|
|
3191
|
-
function
|
|
3192
|
-
var w = new
|
|
3227
|
+
function g0(g, d, p, v) {
|
|
3228
|
+
var w = new J(g, d, p);
|
|
3193
3229
|
return v ? (w.next = v.next, w.prev = v, v.next.prev = w, v.next = w) : (w.prev = w, w.next = w), w;
|
|
3194
3230
|
}
|
|
3195
|
-
function
|
|
3231
|
+
function c0(g) {
|
|
3196
3232
|
g.next.prev = g.prev, g.prev.next = g.next, g.prevZ && (g.prevZ.nextZ = g.nextZ), g.nextZ && (g.nextZ.prevZ = g.prevZ);
|
|
3197
3233
|
}
|
|
3198
|
-
function
|
|
3234
|
+
function J(g, d, p) {
|
|
3199
3235
|
this.i = g, this.x = d, this.y = p, this.prev = null, this.next = null, this.z = 0, this.prevZ = null, this.nextZ = null, this.steiner = !1;
|
|
3200
3236
|
}
|
|
3201
3237
|
n.deviation = function(g, d, p, v) {
|
|
3202
|
-
var w = d && d.length, m = w ? d[0] * p : g.length, b = Math.abs(
|
|
3238
|
+
var w = d && d.length, m = w ? d[0] * p : g.length, b = Math.abs(O0(g, 0, m, p));
|
|
3203
3239
|
if (w)
|
|
3204
|
-
for (var T = 0,
|
|
3205
|
-
var
|
|
3206
|
-
b -= Math.abs(
|
|
3240
|
+
for (var T = 0, O = d.length; T < O; T++) {
|
|
3241
|
+
var _ = d[T] * p, U = T < O - 1 ? d[T + 1] * p : g.length;
|
|
3242
|
+
b -= Math.abs(O0(g, _, U, p));
|
|
3207
3243
|
}
|
|
3208
|
-
var
|
|
3244
|
+
var B = 0;
|
|
3209
3245
|
for (T = 0; T < v.length; T += 3) {
|
|
3210
|
-
var R = v[T] * p,
|
|
3211
|
-
|
|
3212
|
-
(g[R] - g[
|
|
3246
|
+
var R = v[T] * p, X = v[T + 1] * p, D = v[T + 2] * p;
|
|
3247
|
+
B += Math.abs(
|
|
3248
|
+
(g[R] - g[D]) * (g[X + 1] - g[R + 1]) - (g[R] - g[X]) * (g[D + 1] - g[R + 1])
|
|
3213
3249
|
);
|
|
3214
3250
|
}
|
|
3215
|
-
return b === 0 &&
|
|
3251
|
+
return b === 0 && B === 0 ? 0 : Math.abs((B - b) / b);
|
|
3216
3252
|
};
|
|
3217
|
-
function
|
|
3253
|
+
function O0(g, d, p, v) {
|
|
3218
3254
|
for (var w = 0, m = d, b = p - v; m < p; m += v)
|
|
3219
3255
|
w += (g[b] - g[m]) * (g[m + 1] + g[b + 1]), b = m;
|
|
3220
3256
|
return w;
|
|
@@ -3226,14 +3262,14 @@ function tn() {
|
|
|
3226
3262
|
w > 0 && (v += g[w - 1].length, p.holes.push(v));
|
|
3227
3263
|
}
|
|
3228
3264
|
return p;
|
|
3229
|
-
},
|
|
3265
|
+
}, I0.exports;
|
|
3230
3266
|
}
|
|
3231
|
-
|
|
3232
|
-
function
|
|
3267
|
+
rn();
|
|
3268
|
+
function Bt(n, e) {
|
|
3233
3269
|
return n < e ? -1 : n > e ? 1 : n >= e ? 0 : NaN;
|
|
3234
3270
|
}
|
|
3235
|
-
function
|
|
3236
|
-
return n.length === 1 && (n =
|
|
3271
|
+
function on(n) {
|
|
3272
|
+
return n.length === 1 && (n = sn(n)), {
|
|
3237
3273
|
left: function(e, t, o, i) {
|
|
3238
3274
|
for (o == null && (o = 0), i == null && (i = e.length); o < i; ) {
|
|
3239
3275
|
var a = o + i >>> 1;
|
|
@@ -3250,31 +3286,31 @@ function en(n) {
|
|
|
3250
3286
|
}
|
|
3251
3287
|
};
|
|
3252
3288
|
}
|
|
3253
|
-
function
|
|
3289
|
+
function sn(n) {
|
|
3254
3290
|
return function(e, t) {
|
|
3255
|
-
return
|
|
3291
|
+
return Bt(n(e), t);
|
|
3256
3292
|
};
|
|
3257
3293
|
}
|
|
3258
|
-
|
|
3259
|
-
function
|
|
3260
|
-
const o =
|
|
3294
|
+
on(Bt);
|
|
3295
|
+
function En(n, e, t = 3) {
|
|
3296
|
+
const o = en(n, e, { maxSegmentLength: t });
|
|
3261
3297
|
return {
|
|
3262
3298
|
check: (i) => typeof i == "string",
|
|
3263
3299
|
interpolate: (i, a, s) => o(s)
|
|
3264
3300
|
};
|
|
3265
3301
|
}
|
|
3266
|
-
function
|
|
3302
|
+
function Sn(n) {
|
|
3267
3303
|
const e = (o) => n.width * o, t = (o) => n.height * o;
|
|
3268
3304
|
return {
|
|
3269
3305
|
scaleX: e,
|
|
3270
3306
|
scaleY: t,
|
|
3271
|
-
position: (o, i) =>
|
|
3307
|
+
position: (o, i) => W({
|
|
3272
3308
|
x: e(o),
|
|
3273
3309
|
y: t(i)
|
|
3274
3310
|
})
|
|
3275
3311
|
};
|
|
3276
3312
|
}
|
|
3277
|
-
function
|
|
3313
|
+
function In(n) {
|
|
3278
3314
|
const e = [];
|
|
3279
3315
|
if (n.isAllKey) {
|
|
3280
3316
|
for (let t = 0; t <= n.animations.length; t++)
|
|
@@ -3286,47 +3322,47 @@ function Cn(n) {
|
|
|
3286
3322
|
}), n.isEndKey && e[e.length - 1] !== n.animations.length && e.push(n.animations.length), e;
|
|
3287
3323
|
}
|
|
3288
3324
|
export {
|
|
3289
|
-
|
|
3290
|
-
|
|
3325
|
+
d0 as Alignment,
|
|
3326
|
+
n0 as Anchor,
|
|
3291
3327
|
et as Animate,
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3328
|
+
pn as Arrow,
|
|
3329
|
+
Mn as BrowserCanvasRenderer,
|
|
3330
|
+
dn as Circle,
|
|
3331
|
+
Y as Color,
|
|
3296
3332
|
tt as Easing,
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3333
|
+
hn as FadeIn,
|
|
3334
|
+
ln as FadeOut,
|
|
3335
|
+
g1 as FontStyle,
|
|
3336
|
+
d1 as FontWeight,
|
|
3337
|
+
xn as Grid,
|
|
3338
|
+
st as Group,
|
|
3339
|
+
cn as Hide,
|
|
3340
|
+
fn as IFrame,
|
|
3341
|
+
yn as Image,
|
|
3342
|
+
vn as Line,
|
|
3343
|
+
wn as Mask,
|
|
3308
3344
|
H as ObjectType,
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3345
|
+
Cn as Opaque,
|
|
3346
|
+
An as Path,
|
|
3347
|
+
Ln as Pause,
|
|
3348
|
+
mn as Polygon,
|
|
3349
|
+
W as Position,
|
|
3350
|
+
L1 as Presentation,
|
|
3351
|
+
bn as Rectangle,
|
|
3352
|
+
gn as ScreenCapture,
|
|
3353
|
+
un as Show,
|
|
3354
|
+
a0 as Size,
|
|
3355
|
+
Tn as Slide,
|
|
3356
|
+
l0 as SlideObject,
|
|
3357
|
+
Et as SlideWebExtra,
|
|
3358
|
+
w1 as Text,
|
|
3359
|
+
Pn as TextUnit,
|
|
3360
|
+
f1 as Transparent,
|
|
3361
|
+
Ct as Update,
|
|
3362
|
+
In as getKeySlideBuildIndices,
|
|
3363
|
+
Sn as getSizingFunctions,
|
|
3364
|
+
En as getSmoothPathInterpolator,
|
|
3365
|
+
v1 as getTextContentLength,
|
|
3366
|
+
E1 as interpolateColor,
|
|
3367
|
+
I1 as interpolateNumber
|
|
3332
3368
|
};
|