modern-canvas 0.14.2 → 0.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineProperty as
|
|
2
|
-
import { fonts as
|
|
3
|
-
import { extend as
|
|
4
|
-
import
|
|
5
|
-
import { Path2D as
|
|
6
|
-
import { Text as
|
|
7
|
-
const
|
|
1
|
+
import { defineProperty as ts, Observable as we, Reactivable as rs, parseColor as ai, property as h, isGradient as ni, isColorFillObject as Nr, clearUndef as ss, idGenerator as is, normalizeFill as li, isNone as V, normalizeBackground as ci, normalizeForeground as hi, normalizeOutline as ui, normalizeShadow as di, normalizeShape as fi, getDefaultStyle as pi, normalizeText as _i, normalizeTextContent as mi, getDefaultTextStyle as gi, getDefaultLayoutStyle as vi, RawWeakMap as bi } from "modern-idoc";
|
|
2
|
+
import { fonts as yi } from "modern-font";
|
|
3
|
+
import { extend as xi } from "colord";
|
|
4
|
+
import wi from "colord/plugins/names";
|
|
5
|
+
import { Path2D as At, Path2DSet as Pi, svgToDom as Ei, svgToPath2DSet as Si, Matrix3 as kr, BoundingBox as Kt } from "modern-path2d";
|
|
6
|
+
import { Text as Ti, Character as Ri } from "modern-text";
|
|
7
|
+
const dr = /* @__PURE__ */ new Map();
|
|
8
8
|
function b(r, e) {
|
|
9
9
|
return function(t) {
|
|
10
10
|
Object.defineProperty(t.prototype, "is", {
|
|
@@ -12,14 +12,14 @@ function b(r, e) {
|
|
|
12
12
|
enumerable: !0,
|
|
13
13
|
configurable: !0
|
|
14
14
|
}), e && Object.keys(e).forEach((s) => {
|
|
15
|
-
|
|
15
|
+
ts(t, s, {
|
|
16
16
|
fallback: e[s]
|
|
17
17
|
});
|
|
18
|
-
}),
|
|
18
|
+
}), dr.set(r, t);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
const t =
|
|
21
|
+
function uc(r = "node", e = {}) {
|
|
22
|
+
const t = dr.get(r);
|
|
23
23
|
if (!t)
|
|
24
24
|
throw new Error(`Failed to createNode, tag: ${r}`);
|
|
25
25
|
return new t().setProperties(e);
|
|
@@ -81,7 +81,7 @@ class B {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
B.start();
|
|
84
|
-
async function
|
|
84
|
+
async function os(r) {
|
|
85
85
|
return new Promise((e) => {
|
|
86
86
|
B.on(
|
|
87
87
|
() => {
|
|
@@ -91,12 +91,12 @@ async function is(r) {
|
|
|
91
91
|
);
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
function
|
|
94
|
+
const fr = Math.PI, z = fr * 2;
|
|
95
|
+
function Ur(r) {
|
|
96
96
|
return !(r & r - 1) && !!r;
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
function
|
|
98
|
+
const Ai = /([\w-]+)\((.+?)\)/g, Ci = /[^,]+/g, Oi = /([-e.\d]+)(.*)/;
|
|
99
|
+
function Br(r) {
|
|
100
100
|
return Array.isArray(r) ? r.map((e) => ({
|
|
101
101
|
name: e.name,
|
|
102
102
|
args: e.args.map((t) => ({
|
|
@@ -109,35 +109,35 @@ function Ur(r) {
|
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
111
|
function Et(r, e, t = {}) {
|
|
112
|
-
const s =
|
|
113
|
-
return s.length ? s :
|
|
112
|
+
const s = Lt(e, t);
|
|
113
|
+
return s.length ? s : as(r, e, t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Lt(r, e = {}) {
|
|
116
116
|
const t = [];
|
|
117
117
|
let s;
|
|
118
|
-
for (; (s =
|
|
118
|
+
for (; (s = Ai.exec(r)) !== null; ) {
|
|
119
119
|
const [, i, o] = s;
|
|
120
120
|
i && t.push({
|
|
121
121
|
name: i,
|
|
122
|
-
args:
|
|
122
|
+
args: Di(i, o, e)
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
return t;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Di(r, e, t = {}) {
|
|
128
128
|
const s = [];
|
|
129
129
|
let i, o = 0;
|
|
130
|
-
for (; (i =
|
|
130
|
+
for (; (i = Ci.exec(e)) !== null; )
|
|
131
131
|
s.push(
|
|
132
|
-
|
|
132
|
+
as(r, i[0], {
|
|
133
133
|
...t,
|
|
134
134
|
index: o++
|
|
135
135
|
})
|
|
136
136
|
);
|
|
137
137
|
return s;
|
|
138
138
|
}
|
|
139
|
-
function
|
|
140
|
-
const { width: s = 1, height: i = 1, index: o = 0 } = t, a = e.match(
|
|
139
|
+
function as(r, e, t = {}) {
|
|
140
|
+
const { width: s = 1, height: i = 1, index: o = 0 } = t, a = e.match(Oi), n = {
|
|
141
141
|
unit: a?.[2] ?? null,
|
|
142
142
|
value: e,
|
|
143
143
|
intValue: Number(a?.[1]),
|
|
@@ -183,32 +183,32 @@ function os(r, e, t = {}) {
|
|
|
183
183
|
}
|
|
184
184
|
return n;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
186
|
+
const Ii = "WebGL2RenderingContext" in globalThis, Mi = "ImageBitmap" in globalThis, Ni = "ResizeObserver" in globalThis, et = "PointerEvent" in globalThis, ki = "WheelEvent" in globalThis, dc = "MouseEvent" in globalThis, ve = "ontouchstart" in globalThis, Ui = "onclick" in globalThis, fc = "createImageBitmap" in globalThis, ns = "AudioContext" in globalThis, ls = "webkitAudioContext" in globalThis, cs = "OfflineAudioContext" in globalThis, Bi = "webkitOfflineAudioContext" in globalThis, Li = ns || ls, pr = typeof window < "u", Fi = typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0, hs = globalThis.devicePixelRatio || 1, us = (r) => r !== null && typeof r == "object" && r.nodeType === 1, zi = (r) => us(r) && r.tagName === "VIDEO", pc = (r) => us(r) && r.tagName === "IMG";
|
|
187
|
+
function Gi(r) {
|
|
188
188
|
return typeof r == "object" && r !== null && r.nodeType === 1 && r.tagName === "CANVAS";
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
190
|
+
function Vi(r) {
|
|
191
|
+
return Ii && r instanceof globalThis.WebGL2RenderingContext;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
193
|
+
function $i() {
|
|
194
|
+
if (pr)
|
|
195
195
|
return globalThis.document.createElement("canvas");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function Hi(r, e = globalThis.location) {
|
|
198
198
|
if (r.startsWith("data:"))
|
|
199
199
|
return "";
|
|
200
200
|
e = e || globalThis.location;
|
|
201
201
|
const t = new URL(r, document.baseURI);
|
|
202
202
|
return t.hostname !== e.hostname || t.port !== e.port || t.protocol !== e.protocol ? "anonymous" : "";
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
t === null && !e.startsWith("data:") ? r.crossOrigin =
|
|
204
|
+
function Xi(r, e, t) {
|
|
205
|
+
t === null && !e.startsWith("data:") ? r.crossOrigin = Hi(e) : t !== !1 && (r.crossOrigin = typeof t == "string" ? t : "anonymous");
|
|
206
206
|
}
|
|
207
|
-
let
|
|
207
|
+
let ji = 0;
|
|
208
208
|
function rt() {
|
|
209
|
-
return ++
|
|
209
|
+
return ++ji;
|
|
210
210
|
}
|
|
211
|
-
class
|
|
211
|
+
class Ft {
|
|
212
212
|
cursor;
|
|
213
213
|
// Event
|
|
214
214
|
bubbles = !1;
|
|
@@ -216,7 +216,7 @@ class Lt {
|
|
|
216
216
|
cancelable = !1;
|
|
217
217
|
composed = !1;
|
|
218
218
|
defaultPrevented = !1;
|
|
219
|
-
eventPhase =
|
|
219
|
+
eventPhase = Ft.prototype.NONE;
|
|
220
220
|
isTrusted = !1;
|
|
221
221
|
timeStamp = 0;
|
|
222
222
|
type = "";
|
|
@@ -245,7 +245,7 @@ class Lt {
|
|
|
245
245
|
throw new Error("initUIEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
class
|
|
248
|
+
class Wi extends Ft {
|
|
249
249
|
getModifierState(...e) {
|
|
250
250
|
throw new Error("getModifierState() is a legacy DOM API. It is not implemented in the Federated Events API.");
|
|
251
251
|
}
|
|
@@ -253,7 +253,7 @@ class ji extends Lt {
|
|
|
253
253
|
throw new Error("initKeyboardEvent() is a legacy DOM API. It is not implemented in the Federated Events API.");
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
class
|
|
256
|
+
class ds extends Ft {
|
|
257
257
|
client = { x: 0, y: 0 };
|
|
258
258
|
get clientX() {
|
|
259
259
|
return this.client.x;
|
|
@@ -316,7 +316,7 @@ class us extends Lt {
|
|
|
316
316
|
return this.global.y;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class qi extends ds {
|
|
320
320
|
width = 0;
|
|
321
321
|
height = 0;
|
|
322
322
|
isPrimary = !1;
|
|
@@ -327,7 +327,7 @@ class Wi extends us {
|
|
|
327
327
|
throw new Error("getPredictedEvents is not supported!");
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
class
|
|
330
|
+
class Yi extends ds {
|
|
331
331
|
static DOM_DELTA_PIXEL = 0;
|
|
332
332
|
DOM_DELTA_PIXEL = 0;
|
|
333
333
|
static DOM_DELTA_LINE = 1;
|
|
@@ -335,14 +335,14 @@ class qi extends us {
|
|
|
335
335
|
static DOM_DELTA_PAGE = 2;
|
|
336
336
|
DOM_DELTA_PAGE = 2;
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const Ki = {
|
|
339
339
|
touchstart: "pointerdown",
|
|
340
340
|
touchend: "pointerup",
|
|
341
341
|
touchendoutside: "pointerupoutside",
|
|
342
342
|
touchmove: "pointermove",
|
|
343
343
|
touchcancel: "pointercancel"
|
|
344
344
|
};
|
|
345
|
-
class
|
|
345
|
+
class Zi extends we {
|
|
346
346
|
/**
|
|
347
347
|
* Current event
|
|
348
348
|
*/
|
|
@@ -379,7 +379,7 @@ class Ki extends we {
|
|
|
379
379
|
const o = e.changedTouches[s];
|
|
380
380
|
typeof o.button > "u" && (o.button = 0), typeof o.buttons > "u" && (o.buttons = 1), typeof o.isPrimary > "u" && (o.isPrimary = e.touches.length === 1 && e.type === "touchstart"), typeof o.width > "u" && (o.width = o.radiusX || 1), typeof o.height > "u" && (o.height = o.radiusY || 1), typeof o.tiltX > "u" && (o.tiltX = 0), typeof o.tiltY > "u" && (o.tiltY = 0), typeof o.pointerType > "u" && (o.pointerType = "touch"), typeof o.pointerId > "u" && (o.pointerId = o.identifier || 0), typeof o.pressure > "u" && (o.pressure = o.force || 0.5), typeof o.twist > "u" && (o.twist = 0), typeof o.tangentialPressure > "u" && (o.tangentialPressure = 0), typeof o.layerX > "u" && (o.layerX = o.offsetX = o.clientX), typeof o.layerY > "u" && (o.layerY = o.offsetY = o.clientY), o.type = e.type, t.push(o);
|
|
381
381
|
}
|
|
382
|
-
else if (
|
|
382
|
+
else if (ki && e instanceof globalThis.WheelEvent)
|
|
383
383
|
t.push(e);
|
|
384
384
|
else if (et && e instanceof globalThis.PointerEvent)
|
|
385
385
|
t.push(e);
|
|
@@ -390,8 +390,8 @@ class Ki extends we {
|
|
|
390
390
|
return t;
|
|
391
391
|
}
|
|
392
392
|
_clonePointerEvent(e) {
|
|
393
|
-
const t = new
|
|
394
|
-
return t.nativeEvent = e, t.pointerId = e.pointerId, t.width = e.width, t.height = e.height, t.isPrimary = e.isPrimary, t.pointerType = e.pointerType, t.pressure = e.pressure, t.tangentialPressure = e.tangentialPressure, t.tiltX = e.tiltX, t.tiltY = e.tiltY, t.twist = e.twist, t.isTrusted = e.isTrusted, this._copyMouseEvent(t, e), this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.x = t.screen.x, t.global.y = t.screen.y, t.offset.x = t.screen.x, t.offset.y = t.screen.y, t.type === "pointerleave" ? t.type = "pointerout" : t.type.startsWith("mouse") ? t.type = t.type.replace("mouse", "pointer") : t.type.startsWith("touch") && (t.type =
|
|
393
|
+
const t = new qi();
|
|
394
|
+
return t.nativeEvent = e, t.pointerId = e.pointerId, t.width = e.width, t.height = e.height, t.isPrimary = e.isPrimary, t.pointerType = e.pointerType, t.pressure = e.pressure, t.tangentialPressure = e.tangentialPressure, t.tiltX = e.tiltX, t.tiltY = e.tiltY, t.twist = e.twist, t.isTrusted = e.isTrusted, this._copyMouseEvent(t, e), this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.x = t.screen.x, t.global.y = t.screen.y, t.offset.x = t.screen.x, t.offset.y = t.screen.y, t.type === "pointerleave" ? t.type = "pointerout" : t.type.startsWith("mouse") ? t.type = t.type.replace("mouse", "pointer") : t.type.startsWith("touch") && (t.type = Ki[t.type] || t.type), t;
|
|
395
395
|
}
|
|
396
396
|
_copyInputEvent(e, t) {
|
|
397
397
|
e.nativeEvent = t, e.bubbles = t.bubbles, e.cancelBubble = t.cancelBubble, e.cancelable = t.cancelable, e.composed = t.composed, e.currentTarget = t.currentTarget, e.defaultPrevented = t.defaultPrevented, e.eventPhase = t.eventPhase, e.isTrusted = t.isTrusted, e.returnValue = t.returnValue, e.srcElement = t.srcElement, e.timeStamp = t.timeStamp, e.type = t.type;
|
|
@@ -400,11 +400,11 @@ class Ki extends we {
|
|
|
400
400
|
this._copyInputEvent(e, t), e.altKey = t.altKey, e.button = t.button, e.buttons = t.buttons, e.client.x = t.clientX, e.client.y = t.clientY, e.ctrlKey = t.ctrlKey, e.metaKey = t.metaKey, e.movement.x = t.movementX, e.movement.y = t.movementY, e.page.x = t.pageX, e.page.y = t.pageY, e.relatedTarget = null, e.shiftKey = t.shiftKey;
|
|
401
401
|
}
|
|
402
402
|
_cloneWheelEvent(e) {
|
|
403
|
-
const t = new
|
|
403
|
+
const t = new Yi();
|
|
404
404
|
return this._copyMouseEvent(t, e), t.wheelDeltaY = e.wheelDeltaY, t.deltaX = e.deltaX, t.deltaY = e.deltaY, t.deltaZ = e.deltaZ, t.deltaMode = e.deltaMode, this.mapPositionToPoint(t.screen, e.clientX, e.clientY), t.global.x = t.screen.x, t.global.y = t.screen.y, t.offset.x = t.screen.x, t.offset.y = t.screen.y, t;
|
|
405
405
|
}
|
|
406
406
|
_cloneKeyboardEvent(e) {
|
|
407
|
-
const t = new
|
|
407
|
+
const t = new Wi();
|
|
408
408
|
return this._copyInputEvent(t, e), t.altKey = e.altKey, t.charCode = e.charCode, t.code = e.code, t.ctrlKey = e.ctrlKey, t.isComposing = e.isComposing, t.key = e.key, t.keyCode = e.keyCode, t.location = e.location, t.metaKey = e.metaKey, t.repeat = e.repeat, t.shiftKey = e.shiftKey, t;
|
|
409
409
|
}
|
|
410
410
|
setCursor(e = "default") {
|
|
@@ -498,7 +498,7 @@ class Ki extends we {
|
|
|
498
498
|
this.removeEventListeners(), super.destroy();
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
class Pe extends
|
|
501
|
+
class Pe extends rs {
|
|
502
502
|
instanceId = rt();
|
|
503
503
|
get json() {
|
|
504
504
|
return this.toJSON();
|
|
@@ -507,25 +507,25 @@ class Pe extends ts {
|
|
|
507
507
|
this.setProperties(e);
|
|
508
508
|
}
|
|
509
509
|
_nextTick() {
|
|
510
|
-
return
|
|
510
|
+
return os();
|
|
511
511
|
}
|
|
512
512
|
equal(e) {
|
|
513
513
|
return !!(e && this.instanceId === e.instanceId);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
class
|
|
516
|
+
class Ji extends Pe {
|
|
517
517
|
//
|
|
518
518
|
}
|
|
519
|
-
class he extends
|
|
519
|
+
class he extends Ji {
|
|
520
520
|
//
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
xi([wi]);
|
|
523
523
|
class oe {
|
|
524
524
|
get value() {
|
|
525
525
|
return this._value;
|
|
526
526
|
}
|
|
527
527
|
set value(e) {
|
|
528
|
-
this._colord =
|
|
528
|
+
this._colord = ai(e ?? "none");
|
|
529
529
|
}
|
|
530
530
|
get r8() {
|
|
531
531
|
return this._colord.rgba.r;
|
|
@@ -805,19 +805,19 @@ class ae extends we {
|
|
|
805
805
|
return this._array.slice();
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
class
|
|
808
|
+
class Qi extends ae {
|
|
809
809
|
constructor(e) {
|
|
810
810
|
super(4, 4, e);
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
const
|
|
813
|
+
const eo = fr / 180, _c = 180 / fr;
|
|
814
814
|
function ne(r, e, t) {
|
|
815
815
|
return Math.max(e, Math.min(r, t));
|
|
816
816
|
}
|
|
817
817
|
function A(r, e, t) {
|
|
818
818
|
return (1 - t) * r + t * e;
|
|
819
819
|
}
|
|
820
|
-
const
|
|
820
|
+
const mc = {
|
|
821
821
|
adaptive: !0,
|
|
822
822
|
maxLength: 10,
|
|
823
823
|
minSegments: 8,
|
|
@@ -830,12 +830,12 @@ const fc = {
|
|
|
830
830
|
return t < this.minSegments ? t = this.minSegments : t > this.maxSegments && (t = this.maxSegments), t;
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
|
-
class
|
|
833
|
+
class to extends ee {
|
|
834
834
|
constructor(e = 0, t = 0, s = 0, i = 0) {
|
|
835
835
|
super(4), this.set(e, t, s, i);
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
class
|
|
838
|
+
class fs extends ae {
|
|
839
839
|
constructor(e) {
|
|
840
840
|
super(4, 5, e);
|
|
841
841
|
}
|
|
@@ -1069,7 +1069,7 @@ class ds extends ae {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
toMatrix4() {
|
|
1071
1071
|
const e = this._array;
|
|
1072
|
-
return new
|
|
1072
|
+
return new Qi([
|
|
1073
1073
|
e[0],
|
|
1074
1074
|
e[1],
|
|
1075
1075
|
e[2],
|
|
@@ -1090,15 +1090,15 @@ class ds extends ae {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
toVector4() {
|
|
1092
1092
|
const e = this._array;
|
|
1093
|
-
return new
|
|
1093
|
+
return new to(e[4] / 255, e[9] / 255, e[14] / 255, e[19] / 255);
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
class
|
|
1096
|
+
class gc extends ae {
|
|
1097
1097
|
constructor(e) {
|
|
1098
1098
|
super(2, 2, e);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class
|
|
1101
|
+
class ps extends ae {
|
|
1102
1102
|
constructor(e) {
|
|
1103
1103
|
super(3, 3, e);
|
|
1104
1104
|
}
|
|
@@ -1140,7 +1140,7 @@ class fs extends ae {
|
|
|
1140
1140
|
]);
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
class
|
|
1143
|
+
class ro extends ps {
|
|
1144
1144
|
constructor(e = 0, t = 0, s = 0, i = 0, o = !1) {
|
|
1145
1145
|
super(), this._x = e, this._y = t, this._width = s, this._height = i, this._flipY = o, this._performUpdateArray();
|
|
1146
1146
|
}
|
|
@@ -1337,7 +1337,7 @@ class Fe {
|
|
|
1337
1337
|
};
|
|
1338
1338
|
}
|
|
1339
1339
|
}
|
|
1340
|
-
class I extends
|
|
1340
|
+
class I extends ps {
|
|
1341
1341
|
static _t2d = /* @__PURE__ */ new I();
|
|
1342
1342
|
premultiply(e) {
|
|
1343
1343
|
return e.multiply(this, this);
|
|
@@ -1505,17 +1505,17 @@ class I extends fs {
|
|
|
1505
1505
|
return { a: e, c: t, tx: s, b: i, d: o, ty: a, tz: n };
|
|
1506
1506
|
}
|
|
1507
1507
|
}
|
|
1508
|
-
class
|
|
1508
|
+
class vc extends ee {
|
|
1509
1509
|
constructor() {
|
|
1510
1510
|
super(3);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
var
|
|
1513
|
+
var so = Object.defineProperty, _s = (r, e, t, s) => {
|
|
1514
1514
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
1515
1515
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
1516
|
-
return i &&
|
|
1516
|
+
return i && so(e, t, i), i;
|
|
1517
1517
|
};
|
|
1518
|
-
class
|
|
1518
|
+
class _r extends Pe {
|
|
1519
1519
|
_starting = !1;
|
|
1520
1520
|
_nextDeltaTime = 0;
|
|
1521
1521
|
_startedProcess;
|
|
@@ -1545,14 +1545,14 @@ class pr extends Pe {
|
|
|
1545
1545
|
this.stop(), super.destroy();
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
|
|
1548
|
+
_s([
|
|
1549
1549
|
h({ fallback: 60 })
|
|
1550
|
-
],
|
|
1551
|
-
|
|
1550
|
+
], _r.prototype, "fps");
|
|
1551
|
+
_s([
|
|
1552
1552
|
h({ fallback: 1 })
|
|
1553
|
-
],
|
|
1553
|
+
], _r.prototype, "speed");
|
|
1554
1554
|
var it = /* @__PURE__ */ ((r) => (r[r.elementArrayBuffer = 34963] = "elementArrayBuffer", r[r.arrayBuffer = 34962] = "arrayBuffer", r[r.uniformBuffer = 35345] = "uniformBuffer", r))(it || {});
|
|
1555
|
-
class
|
|
1555
|
+
class io {
|
|
1556
1556
|
constructor(e) {
|
|
1557
1557
|
this.native = e;
|
|
1558
1558
|
}
|
|
@@ -1560,12 +1560,12 @@ class so {
|
|
|
1560
1560
|
byteLength = 0;
|
|
1561
1561
|
dirty = !0;
|
|
1562
1562
|
}
|
|
1563
|
-
var be = /* @__PURE__ */ ((r) => (r[r.mapRead = 1] = "mapRead", r[r.mapWrite = 2] = "mapWrite", r[r.copySrc = 4] = "copySrc", r[r.copyDst = 8] = "copyDst", r[r.index = 16] = "index", r[r.vertex = 32] = "vertex", r[r.uniform = 64] = "uniform", r[r.storage = 128] = "storage", r[r.indirect = 256] = "indirect", r[r.queryResolve = 512] = "queryResolve", r[r.static = 1024] = "static", r))(be || {}),
|
|
1563
|
+
var be = /* @__PURE__ */ ((r) => (r[r.mapRead = 1] = "mapRead", r[r.mapWrite = 2] = "mapWrite", r[r.copySrc = 4] = "copySrc", r[r.copyDst = 8] = "copyDst", r[r.index = 16] = "index", r[r.vertex = 32] = "vertex", r[r.uniform = 64] = "uniform", r[r.storage = 128] = "storage", r[r.indirect = 256] = "indirect", r[r.queryResolve = 512] = "queryResolve", r[r.static = 1024] = "static", r))(be || {}), oo = Object.defineProperty, ms = (r, e, t, s) => {
|
|
1564
1564
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
1565
1565
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
1566
|
-
return i &&
|
|
1566
|
+
return i && oo(e, t, i), i;
|
|
1567
1567
|
};
|
|
1568
|
-
class
|
|
1568
|
+
class mr extends rs {
|
|
1569
1569
|
screen = { x: 0, y: 0, width: 0, height: 0 };
|
|
1570
1570
|
_updateProperty(e, t, s) {
|
|
1571
1571
|
switch (super._updateProperty(e, t, s), e) {
|
|
@@ -1579,18 +1579,18 @@ class _r extends ts {
|
|
|
1579
1579
|
this.view && (this.view.width = Math.floor(e * this.pixelRatio), this.view.height = Math.floor(t * this.pixelRatio)), this.screen.width = e, this.screen.height = t, s && this.view && (this.view.style.width = `${e}px`, this.view.style.height = `${t}px`);
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
|
-
|
|
1583
|
-
h({ fallback:
|
|
1584
|
-
],
|
|
1585
|
-
|
|
1582
|
+
ms([
|
|
1583
|
+
h({ fallback: hs })
|
|
1584
|
+
], mr.prototype, "pixelRatio");
|
|
1585
|
+
ms([
|
|
1586
1586
|
h({ internal: !0 })
|
|
1587
|
-
],
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1590
|
-
let t =
|
|
1591
|
-
return t === void 0 && (
|
|
1587
|
+
], mr.prototype, "view");
|
|
1588
|
+
const Zt = /* @__PURE__ */ Object.create(null), Lr = /* @__PURE__ */ Object.create(null);
|
|
1589
|
+
function ao(r, e) {
|
|
1590
|
+
let t = Lr[r];
|
|
1591
|
+
return t === void 0 && (Zt[e] === void 0 && (Zt[e] = 1), Lr[r] = t = Zt[e]++), t;
|
|
1592
1592
|
}
|
|
1593
|
-
class
|
|
1593
|
+
class q {
|
|
1594
1594
|
get _gl() {
|
|
1595
1595
|
return this._renderer.gl;
|
|
1596
1596
|
}
|
|
@@ -1610,7 +1610,7 @@ class Z {
|
|
|
1610
1610
|
destroy() {
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
class
|
|
1613
|
+
class no extends q {
|
|
1614
1614
|
install(e) {
|
|
1615
1615
|
super.install(e), e.buffer = this;
|
|
1616
1616
|
}
|
|
@@ -1620,7 +1620,7 @@ class ao extends Z {
|
|
|
1620
1620
|
return this.glBuffers.get(e.instanceId) || this._createGlBuffer(e);
|
|
1621
1621
|
}
|
|
1622
1622
|
_createGlBuffer(e) {
|
|
1623
|
-
const t = this._gl, s = new
|
|
1623
|
+
const t = this._gl, s = new io(t.createBuffer());
|
|
1624
1624
|
let i = it.arrayBuffer;
|
|
1625
1625
|
return e.usage & be.index ? i = it.elementArrayBuffer : e.usage & be.uniform && (i = it.uniformBuffer), s.target = i, this.glBuffers.set(e.instanceId, s), this.buffers.get(e.instanceId) || ("on" in e && (e.on("updateProperty", (o) => {
|
|
1626
1626
|
switch (o) {
|
|
@@ -1659,11 +1659,11 @@ class ao extends Z {
|
|
|
1659
1659
|
super.reset(), this.buffers.clear(), this.glBuffers.clear();
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
let
|
|
1663
|
-
function
|
|
1664
|
-
return
|
|
1662
|
+
let Jt;
|
|
1663
|
+
function lo() {
|
|
1664
|
+
return Jt || (Jt = "mediump"), Jt;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function co(r, e, t) {
|
|
1667
1667
|
return e ? r : t ? (r = r.replace("out vec4 finalColor;", ""), `#ifdef GL_ES
|
|
1668
1668
|
#define in varying
|
|
1669
1669
|
#define finalColor gl_FragColor
|
|
@@ -1675,7 +1675,7 @@ ${r}`) : `#ifdef GL_ES
|
|
|
1675
1675
|
#endif
|
|
1676
1676
|
${r}`;
|
|
1677
1677
|
}
|
|
1678
|
-
function
|
|
1678
|
+
function ho(r, e, t) {
|
|
1679
1679
|
const s = t ? e.maxSupportedFragmentPrecision : e.maxSupportedVertexPrecision;
|
|
1680
1680
|
if (r.substring(0, 9) !== "precision") {
|
|
1681
1681
|
let i = t ? e.requestedFragmentPrecision : e.requestedVertexPrecision;
|
|
@@ -1685,26 +1685,26 @@ ${r}`;
|
|
|
1685
1685
|
return r.replace("precision highp", "precision mediump");
|
|
1686
1686
|
return r;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function uo(r, e) {
|
|
1689
1689
|
return e ? `#version 300 es
|
|
1690
1690
|
${r}` : r;
|
|
1691
1691
|
}
|
|
1692
|
-
const
|
|
1693
|
-
function
|
|
1692
|
+
const fo = {}, po = {};
|
|
1693
|
+
function _o(r, { name: e = "program" }, t = !0) {
|
|
1694
1694
|
e = e.replace(/\s+/g, "-"), e += t ? "-fragment" : "-vertex";
|
|
1695
|
-
const s = t ?
|
|
1695
|
+
const s = t ? fo : po;
|
|
1696
1696
|
return s[e] ? (s[e]++, e += `-${s[e]}`) : s[e] = 1, r.includes("#define SHADER_NAME") ? r : `${`#define SHADER_NAME ${e}`}
|
|
1697
1697
|
${r}`;
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1699
|
+
function mo(r, e) {
|
|
1700
1700
|
return e ? r.replace("#version 300 es", "") : r;
|
|
1701
1701
|
}
|
|
1702
|
-
const tt = /* @__PURE__ */ Object.create(null),
|
|
1703
|
-
stripVersion:
|
|
1704
|
-
ensurePrecision:
|
|
1705
|
-
addProgramDefines:
|
|
1706
|
-
setProgramName:
|
|
1707
|
-
insertVersion:
|
|
1702
|
+
const tt = /* @__PURE__ */ Object.create(null), Qt = {
|
|
1703
|
+
stripVersion: mo,
|
|
1704
|
+
ensurePrecision: ho,
|
|
1705
|
+
addProgramDefines: co,
|
|
1706
|
+
setProgramName: _o,
|
|
1707
|
+
insertVersion: uo
|
|
1708
1708
|
};
|
|
1709
1709
|
class nt {
|
|
1710
1710
|
static defaultOptions = {
|
|
@@ -1727,7 +1727,7 @@ class nt {
|
|
|
1727
1727
|
requestedFragmentPrecision: e.preferredFragmentPrecision,
|
|
1728
1728
|
requestedVertexPrecision: e.preferredVertexPrecision,
|
|
1729
1729
|
maxSupportedVertexPrecision: "highp",
|
|
1730
|
-
maxSupportedFragmentPrecision:
|
|
1730
|
+
maxSupportedFragmentPrecision: lo()
|
|
1731
1731
|
},
|
|
1732
1732
|
setProgramName: {
|
|
1733
1733
|
name: e.name
|
|
@@ -1735,10 +1735,10 @@ class nt {
|
|
|
1735
1735
|
addProgramDefines: i,
|
|
1736
1736
|
insertVersion: i
|
|
1737
1737
|
};
|
|
1738
|
-
Object.keys(
|
|
1738
|
+
Object.keys(Qt).forEach((a) => {
|
|
1739
1739
|
const n = o[a];
|
|
1740
|
-
t =
|
|
1741
|
-
}), this.fragment = t, this.vertex = s, this.transformFeedbackVaryings = e.transformFeedbackVaryings, this.id =
|
|
1740
|
+
t = Qt[a](t, n, !0), s = Qt[a](s, n, !1);
|
|
1741
|
+
}), this.fragment = t, this.vertex = s, this.transformFeedbackVaryings = e.transformFeedbackVaryings, this.id = ao(`${s}:${t}`, "GlProgram");
|
|
1742
1742
|
}
|
|
1743
1743
|
destroy() {
|
|
1744
1744
|
this.fragment = "", this.vertex = "", this.attributes = /* @__PURE__ */ Object.create(null), this.uniforms = /* @__PURE__ */ Object.create(null), this.transformFeedbackVaryings = void 0, this._cacheKey && delete tt[this._cacheKey];
|
|
@@ -1748,7 +1748,7 @@ class nt {
|
|
|
1748
1748
|
return tt[t] || (tt[t] = new nt(e), tt[t]._cacheKey = t), tt[t];
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
1751
|
-
const
|
|
1751
|
+
const Fr = {
|
|
1752
1752
|
uint8x2: { size: 2, stride: 2, normalized: !1 },
|
|
1753
1753
|
uint8x4: { size: 4, stride: 4, normalized: !1 },
|
|
1754
1754
|
sint8x2: { size: 2, stride: 2, normalized: !1 },
|
|
@@ -1780,16 +1780,16 @@ const Lr = {
|
|
|
1780
1780
|
sint32x3: { size: 3, stride: 12, normalized: !1 },
|
|
1781
1781
|
sint32x4: { size: 4, stride: 16, normalized: !1 }
|
|
1782
1782
|
};
|
|
1783
|
-
function
|
|
1784
|
-
return
|
|
1783
|
+
function Ct(r) {
|
|
1784
|
+
return Fr[r] ?? Fr.float32;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function er(r) {
|
|
1787
1787
|
const e = Array.from({ length: r });
|
|
1788
1788
|
for (let t = 0; t < e.length; t++)
|
|
1789
1789
|
e[t] = !1;
|
|
1790
1790
|
return e;
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function go(r, e) {
|
|
1793
1793
|
switch (r) {
|
|
1794
1794
|
case "float":
|
|
1795
1795
|
return 0;
|
|
@@ -1819,11 +1819,11 @@ function mo(r, e) {
|
|
|
1819
1819
|
case "bool":
|
|
1820
1820
|
return !1;
|
|
1821
1821
|
case "bvec2":
|
|
1822
|
-
return
|
|
1822
|
+
return er(2 * e);
|
|
1823
1823
|
case "bvec3":
|
|
1824
|
-
return
|
|
1824
|
+
return er(3 * e);
|
|
1825
1825
|
case "bvec4":
|
|
1826
|
-
return
|
|
1826
|
+
return er(4 * e);
|
|
1827
1827
|
case "mat2":
|
|
1828
1828
|
return new Float32Array([1, 0, 0, 1]);
|
|
1829
1829
|
case "mat3":
|
|
@@ -1833,13 +1833,13 @@ function mo(r, e) {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
return 0;
|
|
1835
1835
|
}
|
|
1836
|
-
class
|
|
1836
|
+
class vo {
|
|
1837
1837
|
constructor(e) {
|
|
1838
1838
|
this.native = e;
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
1841
|
let St;
|
|
1842
|
-
const
|
|
1842
|
+
const zr = {
|
|
1843
1843
|
FLOAT: "float",
|
|
1844
1844
|
FLOAT_VEC2: "vec2",
|
|
1845
1845
|
FLOAT_VEC3: "vec3",
|
|
@@ -1868,7 +1868,7 @@ const Fr = {
|
|
|
1868
1868
|
SAMPLER_2D_ARRAY: "sampler2DArray",
|
|
1869
1869
|
INT_SAMPLER_2D_ARRAY: "sampler2DArray",
|
|
1870
1870
|
UNSIGNED_INT_SAMPLER_2D_ARRAY: "sampler2DArray"
|
|
1871
|
-
},
|
|
1871
|
+
}, bo = {
|
|
1872
1872
|
float: "float32",
|
|
1873
1873
|
vec2: "float32x2",
|
|
1874
1874
|
vec3: "float32x3",
|
|
@@ -1886,22 +1886,22 @@ const Fr = {
|
|
|
1886
1886
|
bvec3: "uint32x3",
|
|
1887
1887
|
bvec4: "uint32x4"
|
|
1888
1888
|
};
|
|
1889
|
-
function
|
|
1889
|
+
function gs(r, e) {
|
|
1890
1890
|
if (!St) {
|
|
1891
|
-
const t = Object.keys(
|
|
1891
|
+
const t = Object.keys(zr);
|
|
1892
1892
|
St = {};
|
|
1893
1893
|
for (let s = 0; s < t.length; ++s) {
|
|
1894
1894
|
const i = t[s];
|
|
1895
|
-
St[r[i]] =
|
|
1895
|
+
St[r[i]] = zr[i];
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
1898
|
return St[e];
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const t =
|
|
1902
|
-
return
|
|
1900
|
+
function yo(r, e) {
|
|
1901
|
+
const t = gs(r, e);
|
|
1902
|
+
return bo[t] || "float32";
|
|
1903
1903
|
}
|
|
1904
|
-
class
|
|
1904
|
+
class xo extends q {
|
|
1905
1905
|
install(e) {
|
|
1906
1906
|
super.install(e), e.shader = this;
|
|
1907
1907
|
}
|
|
@@ -1922,7 +1922,7 @@ class yo extends Z {
|
|
|
1922
1922
|
return this.glProgramDatas.get(e.id) || this._createGlProgramData(e);
|
|
1923
1923
|
}
|
|
1924
1924
|
_createGlProgramData(e) {
|
|
1925
|
-
const t = this._gl, s = new
|
|
1925
|
+
const t = this._gl, s = new vo(t.createProgram());
|
|
1926
1926
|
this.glProgramDatas.set(e.id, s), this.useProgram(e);
|
|
1927
1927
|
const i = this._createGlShader(e.vertex, t.VERTEX_SHADER), o = this._createGlShader(e.fragment, t.FRAGMENT_SHADER);
|
|
1928
1928
|
if (t.attachShader(s.native, i), t.attachShader(s.native, o), t.linkProgram(s.native), !t.getProgramParameter(s.native, t.LINK_STATUS))
|
|
@@ -1932,11 +1932,11 @@ class yo extends Z {
|
|
|
1932
1932
|
const f = t.getActiveAttrib(s.native, d);
|
|
1933
1933
|
if (!f || f.name.startsWith("gl_"))
|
|
1934
1934
|
continue;
|
|
1935
|
-
const m =
|
|
1935
|
+
const m = yo(t, f.type);
|
|
1936
1936
|
a[f.name] = {
|
|
1937
1937
|
location: 0,
|
|
1938
1938
|
format: m,
|
|
1939
|
-
stride:
|
|
1939
|
+
stride: Ct(m).stride,
|
|
1940
1940
|
offset: 0,
|
|
1941
1941
|
instance: !1,
|
|
1942
1942
|
start: 0
|
|
@@ -1957,14 +1957,14 @@ class yo extends Z {
|
|
|
1957
1957
|
const f = t.getActiveUniform(s.native, d);
|
|
1958
1958
|
if (!f)
|
|
1959
1959
|
continue;
|
|
1960
|
-
const m = f.name.replace(/\[.*?\]$/, ""), p =
|
|
1960
|
+
const m = f.name.replace(/\[.*?\]$/, ""), p = gs(t, f.type), _ = f.size;
|
|
1961
1961
|
c[m] = {
|
|
1962
1962
|
name: m,
|
|
1963
1963
|
index: d,
|
|
1964
1964
|
type: p,
|
|
1965
1965
|
size: _,
|
|
1966
1966
|
isArray: !!f.name.match(/\[.*?\]$/),
|
|
1967
|
-
value:
|
|
1967
|
+
value: go(p, _)
|
|
1968
1968
|
};
|
|
1969
1969
|
}
|
|
1970
1970
|
return e.uniforms = c, t.deleteShader(i), t.deleteShader(o), s;
|
|
@@ -2061,7 +2061,7 @@ ${s.getShaderInfoLog(i)}`);
|
|
|
2061
2061
|
}
|
|
2062
2062
|
}
|
|
2063
2063
|
var lt = /* @__PURE__ */ ((r) => (r.normal = "normal", r.add = "add", r.multiply = "multiply", r.screen = "screen", r.none = "none", r.normalNpm = "normalNpm", r.addNpm = "add_npm", r.screenNpm = "screenNpm", r.srcIn = "srcIn", r.srcOut = "srcOut", r.srcAtop = "srcAtop", r.dstOver = "dstOver", r.dstIn = "dstIn", r.dstOut = "dstOut", r.dstAtop = "dstAtop", r.xor = "xor", r.subtract = "subtract", r))(lt || {});
|
|
2064
|
-
function
|
|
2064
|
+
function wo(r) {
|
|
2065
2065
|
return {
|
|
2066
2066
|
normal: [r.ONE, r.ONE_MINUS_SRC_ALPHA],
|
|
2067
2067
|
add: [r.ONE, r.ONE],
|
|
@@ -2134,7 +2134,7 @@ class ze {
|
|
|
2134
2134
|
}
|
|
2135
2135
|
}
|
|
2136
2136
|
ze._init();
|
|
2137
|
-
class
|
|
2137
|
+
class Po extends q {
|
|
2138
2138
|
install(e) {
|
|
2139
2139
|
super.install(e), e.state = this;
|
|
2140
2140
|
}
|
|
@@ -2145,7 +2145,7 @@ class wo extends Z {
|
|
|
2145
2145
|
blendModes;
|
|
2146
2146
|
defaultState = new ze({ blend: !0 });
|
|
2147
2147
|
onUpdateContext(e) {
|
|
2148
|
-
super.onUpdateContext(e), this.blendModes =
|
|
2148
|
+
super.onUpdateContext(e), this.blendModes = wo(e);
|
|
2149
2149
|
}
|
|
2150
2150
|
toggle(e, t) {
|
|
2151
2151
|
this._renderer.gl[t ? "enable" : "disable"](e);
|
|
@@ -2192,7 +2192,7 @@ class wo extends Z {
|
|
|
2192
2192
|
super.reset(), this.bind(this.defaultState), this._blendEq = !0, this.setBlendMode(lt.normal);
|
|
2193
2193
|
}
|
|
2194
2194
|
}
|
|
2195
|
-
class
|
|
2195
|
+
class Eo extends q {
|
|
2196
2196
|
install(e) {
|
|
2197
2197
|
super.install(e), e.batch2D = this;
|
|
2198
2198
|
}
|
|
@@ -2336,26 +2336,26 @@ ${Array.from({ length: e }, (l, c) => {
|
|
|
2336
2336
|
_.textures = g, _.textureLocationMap = v, w = 0, _.start = u;
|
|
2337
2337
|
for (let ge = S; ge <= O; ge++) {
|
|
2338
2338
|
const {
|
|
2339
|
-
indices:
|
|
2340
|
-
vertices:
|
|
2341
|
-
uvs:
|
|
2342
|
-
size:
|
|
2343
|
-
texture:
|
|
2344
|
-
blendMode:
|
|
2345
|
-
clipOutsideUv:
|
|
2346
|
-
roundPixels:
|
|
2339
|
+
indices: Or,
|
|
2340
|
+
vertices: jt,
|
|
2341
|
+
uvs: Dr = new Float32Array(0),
|
|
2342
|
+
size: Qs = { width: 0, height: 0 },
|
|
2343
|
+
texture: Ir,
|
|
2344
|
+
blendMode: Mr = lt.normal,
|
|
2345
|
+
clipOutsideUv: ei,
|
|
2346
|
+
roundPixels: ti
|
|
2347
2347
|
} = s[ge];
|
|
2348
|
-
S < ge && _.blendMode !==
|
|
2349
|
-
const { width:
|
|
2348
|
+
S < ge && _.blendMode !== Mr && (_.size = u - _.start, d.push(_), S = ge, _ = { id: ++f }, _.textures = g, _.start = u);
|
|
2349
|
+
const { width: Wt, height: qt } = Qs, ri = c / this._vertexSize, si = (Ir ? v.get(Ir) : 255) ?? 255, ii = ti ? 1 : 0, oi = ei ? 1 : 0;
|
|
2350
2350
|
let xt, wt;
|
|
2351
|
-
for (let
|
|
2352
|
-
xt =
|
|
2351
|
+
for (let Yt = jt.length, Q = 0; Q < Yt; Q += 2) {
|
|
2352
|
+
xt = Dr[Q], wt = Dr[Q + 1], Wt > 0 && qt > 0 && (xt = Math.ceil(xt * Wt) / Wt, wt = Math.ceil(wt * qt) / qt), a[c++] = jt[Q], a[c++] = jt[Q + 1], a[c++] = xt, a[c++] = wt;
|
|
2353
2353
|
const Pt = c * 4;
|
|
2354
|
-
n[Pt] =
|
|
2354
|
+
n[Pt] = si, n[Pt + 1] = oi, n[Pt + 2] = ii, n[Pt + 3] = 0, c++;
|
|
2355
2355
|
}
|
|
2356
|
-
for (let
|
|
2357
|
-
l[u++] =
|
|
2358
|
-
_.blendMode =
|
|
2356
|
+
for (let Yt = Or.length, Q = 0; Q < Yt; Q++)
|
|
2357
|
+
l[u++] = ri + Or[Q];
|
|
2358
|
+
_.blendMode = Mr;
|
|
2359
2359
|
}
|
|
2360
2360
|
S = O + 1, _.size = u - _.start, d.push(_), _ = { id: ++f }, g = [], v = /* @__PURE__ */ new Map();
|
|
2361
2361
|
}
|
|
@@ -2375,29 +2375,29 @@ ${Array.from({ length: e }, (l, c) => {
|
|
|
2375
2375
|
}
|
|
2376
2376
|
}
|
|
2377
2377
|
_getBufferData(e) {
|
|
2378
|
-
const t =
|
|
2378
|
+
const t = Gr(Math.ceil(e / 8)), s = Vr(t), i = t * 8;
|
|
2379
2379
|
this._attributeBuffer.length <= s && (this._indexBuffers.length = s + 1);
|
|
2380
2380
|
let o = this._attributeBuffer[i];
|
|
2381
2381
|
return o || (this._attributeBuffer[i] = o = new ArrayBuffer(i * this._vertexSize * 4)), o;
|
|
2382
2382
|
}
|
|
2383
2383
|
_getIndexBufferData(e) {
|
|
2384
|
-
const t =
|
|
2384
|
+
const t = Gr(Math.ceil(e / 12)), s = Vr(t), i = t * 12;
|
|
2385
2385
|
this._indexBuffers.length <= s && (this._indexBuffers.length = s + 1);
|
|
2386
2386
|
let o = this._indexBuffers[s];
|
|
2387
2387
|
return o || (this._indexBuffers[s] = o = new Uint32Array(i)), o;
|
|
2388
2388
|
}
|
|
2389
2389
|
}
|
|
2390
|
-
function
|
|
2390
|
+
function Gr(r) {
|
|
2391
2391
|
return r += r === 0 ? 1 : 0, --r, r |= r >>> 1, r |= r >>> 2, r |= r >>> 4, r |= r >>> 8, r |= r >>> 16, r + 1;
|
|
2392
2392
|
}
|
|
2393
|
-
function
|
|
2393
|
+
function Vr(r) {
|
|
2394
2394
|
let e = (r > 65535 ? 1 : 0) << 4;
|
|
2395
2395
|
r >>>= e;
|
|
2396
2396
|
let t = (r > 255 ? 1 : 0) << 3;
|
|
2397
2397
|
return r >>>= t, e |= t, t = (r > 15 ? 1 : 0) << 2, r >>>= t, e |= t, t = (r > 3 ? 1 : 0) << 1, r >>>= t, e |= t, e | r >> 1;
|
|
2398
2398
|
}
|
|
2399
2399
|
var D = /* @__PURE__ */ ((r) => (r[r.disabled = 0] = "disabled", r[r.renderingMaskAdd = 1] = "renderingMaskAdd", r[r.maskActive = 2] = "maskActive", r[r.inverseMaskActive = 3] = "inverseMaskActive", r[r.renderingMaskRemove = 4] = "renderingMaskRemove", r[r.none = 5] = "none", r))(D || {}), ot = /* @__PURE__ */ ((r) => (r[r.none = 0] = "none", r[r.color = 16384] = "color", r[r.stencil = 1024] = "stencil", r[r.depth = 256] = "depth", r[r.colorDepth = 16640] = "colorDepth", r[r.colorStencil = 17408] = "colorStencil", r[r.depthStencil = 1280] = "depthStencil", r[r.all = 17664] = "all", r))(ot || {});
|
|
2400
|
-
class
|
|
2400
|
+
class So extends q {
|
|
2401
2401
|
install(e) {
|
|
2402
2402
|
super.install(e), e.mask = this;
|
|
2403
2403
|
}
|
|
@@ -2414,7 +2414,7 @@ class Eo extends Z {
|
|
|
2414
2414
|
this.stack.push(s);
|
|
2415
2415
|
const i = this._renderer.renderTarget.current?.instanceId ?? -1;
|
|
2416
2416
|
let o = this._maskStackHash[i] ?? 0;
|
|
2417
|
-
"render" in t && (this._renderer.flush(), this._renderer.renderTarget.ensureDepthStencil(), this._renderer.stencil.bind(D.renderingMaskAdd, o), this._renderer.colorMask.bind(0), o++, t.render(this._renderer), this._renderer.flush(), this._renderer.stencil.bind(D.maskActive, o), this._renderer.colorMask.bind(15)), this._maskStackHash[i] = o;
|
|
2417
|
+
"x" in t ? this._renderer.scissor.push(t) : "render" in t && (this._renderer.flush(), this._renderer.renderTarget.ensureDepthStencil(), this._renderer.stencil.bind(D.renderingMaskAdd, o), this._renderer.colorMask.bind(0), o++, t.render(this._renderer), this._renderer.flush(), this._renderer.stencil.bind(D.maskActive, o), this._renderer.colorMask.bind(15)), this._maskStackHash[i] = o;
|
|
2418
2418
|
}
|
|
2419
2419
|
pop(e) {
|
|
2420
2420
|
const t = this.stack.pop();
|
|
@@ -2422,23 +2422,23 @@ class Eo extends Z {
|
|
|
2422
2422
|
return;
|
|
2423
2423
|
const { mask: s } = t, i = this._renderer.renderTarget.current?.instanceId ?? -1;
|
|
2424
2424
|
let o = this._maskStackHash[i] ?? 0;
|
|
2425
|
-
"render" in s && (this._renderer.flush(), o !== 0 ? this._renderer.stencil.bind(D.renderingMaskRemove, o) : (this._renderer.clear(ot.stencil), this._renderer.stencil.bind(D.disabled, o)), o--, s.render(this._renderer), this._renderer.flush(), this._renderer.stencil.bind(D.maskActive, o), this._renderer.colorMask.bind(15)), this._maskStackHash[i] = o;
|
|
2425
|
+
"x" in s && this._renderer.scissor.pop(), "render" in s && (this._renderer.flush(), o !== 0 ? this._renderer.stencil.bind(D.renderingMaskRemove, o) : (this._renderer.clear(ot.stencil), this._renderer.stencil.bind(D.disabled, o)), o--, s.render(this._renderer), this._renderer.flush(), this._renderer.stencil.bind(D.maskActive, o), this._renderer.colorMask.bind(15)), this._maskStackHash[i] = o;
|
|
2426
2426
|
}
|
|
2427
2427
|
}
|
|
2428
|
-
var
|
|
2429
|
-
class
|
|
2428
|
+
var ir = /* @__PURE__ */ ((r) => (r[r.RGBA = 6408] = "RGBA", r[r.RGB = 6407] = "RGB", r[r.RG = 33319] = "RG", r[r.RED = 6403] = "RED", r[r.RGBA_INTEGER = 36249] = "RGBA_INTEGER", r[r.RGB_INTEGER = 36248] = "RGB_INTEGER", r[r.RG_INTEGER = 33320] = "RG_INTEGER", r[r.RED_INTEGER = 36244] = "RED_INTEGER", r[r.ALPHA = 6406] = "ALPHA", r[r.LUMINANCE = 6409] = "LUMINANCE", r[r.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", r[r.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", r[r.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", r))(ir || {}), vs = /* @__PURE__ */ ((r) => (r[r.TEXTURE_2D = 3553] = "TEXTURE_2D", r[r.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", r[r.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", r[r.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", r[r.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", r[r.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", r[r.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", r[r.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", r))(vs || {}), y = /* @__PURE__ */ ((r) => (r[r.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", r[r.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", r[r.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", r[r.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", r[r.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", r[r.UNSIGNED_INT = 5125] = "UNSIGNED_INT", r[r.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", r[r.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", r[r.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", r[r.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", r[r.BYTE = 5120] = "BYTE", r[r.SHORT = 5122] = "SHORT", r[r.INT = 5124] = "INT", r[r.FLOAT = 5126] = "FLOAT", r[r.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", r[r.HALF_FLOAT = 36193] = "HALF_FLOAT", r))(y || {});
|
|
2429
|
+
class To {
|
|
2430
2430
|
constructor(e) {
|
|
2431
2431
|
this.native = e;
|
|
2432
2432
|
}
|
|
2433
|
-
target =
|
|
2433
|
+
target = vs.TEXTURE_2D;
|
|
2434
2434
|
width = -1;
|
|
2435
2435
|
height = -1;
|
|
2436
2436
|
mipmap = !1;
|
|
2437
2437
|
type = y.UNSIGNED_BYTE;
|
|
2438
|
-
internalFormat =
|
|
2439
|
-
format =
|
|
2438
|
+
internalFormat = ir.RGBA;
|
|
2439
|
+
format = ir.RGBA;
|
|
2440
2440
|
}
|
|
2441
|
-
function
|
|
2441
|
+
function Ro(r) {
|
|
2442
2442
|
return {
|
|
2443
2443
|
// 8-bit formats
|
|
2444
2444
|
r8unorm: r.RED,
|
|
@@ -2491,7 +2491,7 @@ function To(r) {
|
|
|
2491
2491
|
"depth32float-stencil8": r.DEPTH_STENCIL
|
|
2492
2492
|
};
|
|
2493
2493
|
}
|
|
2494
|
-
function
|
|
2494
|
+
function Ao(r, e) {
|
|
2495
2495
|
let t = {}, s = r.RGBA;
|
|
2496
2496
|
return r instanceof WebGLRenderingContext ? e.srgb && (t = {
|
|
2497
2497
|
"rgba8unorm-srgb": e.srgb.SRGB8_ALPHA8_EXT,
|
|
@@ -2615,7 +2615,7 @@ function Ro(r, e) {
|
|
|
2615
2615
|
} : {}
|
|
2616
2616
|
};
|
|
2617
2617
|
}
|
|
2618
|
-
function
|
|
2618
|
+
function Co(r) {
|
|
2619
2619
|
return {
|
|
2620
2620
|
// 8-bit formats
|
|
2621
2621
|
r8unorm: r.UNSIGNED_BYTE,
|
|
@@ -2668,7 +2668,7 @@ function Ao(r) {
|
|
|
2668
2668
|
"depth32float-stencil8": r.FLOAT_32_UNSIGNED_INT_24_8_REV
|
|
2669
2669
|
};
|
|
2670
2670
|
}
|
|
2671
|
-
const
|
|
2671
|
+
const Oo = {
|
|
2672
2672
|
linear: {
|
|
2673
2673
|
linear: 9987,
|
|
2674
2674
|
nearest: 9985
|
|
@@ -2677,10 +2677,10 @@ const Co = {
|
|
|
2677
2677
|
linear: 9986,
|
|
2678
2678
|
nearest: 9984
|
|
2679
2679
|
}
|
|
2680
|
-
},
|
|
2680
|
+
}, $r = {
|
|
2681
2681
|
linear: 9729,
|
|
2682
2682
|
nearest: 9728
|
|
2683
|
-
},
|
|
2683
|
+
}, Do = {
|
|
2684
2684
|
never: 512,
|
|
2685
2685
|
less: 513,
|
|
2686
2686
|
equal: 514,
|
|
@@ -2689,12 +2689,12 @@ const Co = {
|
|
|
2689
2689
|
"not-equal": 517,
|
|
2690
2690
|
"greater-equal": 518,
|
|
2691
2691
|
always: 519
|
|
2692
|
-
},
|
|
2692
|
+
}, tr = {
|
|
2693
2693
|
"clamp-to-edge": 33071,
|
|
2694
2694
|
repeat: 10497,
|
|
2695
2695
|
"mirror-repeat": 33648
|
|
2696
2696
|
};
|
|
2697
|
-
function
|
|
2697
|
+
function Io(r, e, t, s, i, o, a, n) {
|
|
2698
2698
|
const {
|
|
2699
2699
|
addressModeU: l = "repeat",
|
|
2700
2700
|
addressModeV: c = "repeat",
|
|
@@ -2706,23 +2706,23 @@ function Do(r, e, t, s, i, o, a, n) {
|
|
|
2706
2706
|
compare: _
|
|
2707
2707
|
} = r, g = o;
|
|
2708
2708
|
if (!n || l !== "repeat" || c !== "repeat" || u !== "repeat") {
|
|
2709
|
-
const v =
|
|
2709
|
+
const v = tr[a ? "clamp-to-edge" : l], w = tr[a ? "clamp-to-edge" : c], S = tr[a ? "clamp-to-edge" : u];
|
|
2710
2710
|
e[i](g, e.TEXTURE_WRAP_S, v), e[i](g, e.TEXTURE_WRAP_T, w), e.TEXTURE_WRAP_R && e[i](g, e.TEXTURE_WRAP_R, S);
|
|
2711
2711
|
}
|
|
2712
|
-
if ((!n || d !== "linear") && e[i](g, e.TEXTURE_MAG_FILTER,
|
|
2712
|
+
if ((!n || d !== "linear") && e[i](g, e.TEXTURE_MAG_FILTER, $r[d]), t) {
|
|
2713
2713
|
if (!n || m !== "linear") {
|
|
2714
|
-
const v =
|
|
2714
|
+
const v = Oo[f][m];
|
|
2715
2715
|
e[i](g, e.TEXTURE_MIN_FILTER, v);
|
|
2716
2716
|
}
|
|
2717
2717
|
} else
|
|
2718
|
-
e[i](g, e.TEXTURE_MIN_FILTER,
|
|
2718
|
+
e[i](g, e.TEXTURE_MIN_FILTER, $r[f]);
|
|
2719
2719
|
if (s && p > 1) {
|
|
2720
2720
|
const v = Math.min(p, e.getParameter(s.MAX_TEXTURE_MAX_ANISOTROPY_EXT));
|
|
2721
2721
|
e[i](g, s.TEXTURE_MAX_ANISOTROPY_EXT, v);
|
|
2722
2722
|
}
|
|
2723
|
-
_ && e[i](g, e.TEXTURE_COMPARE_FUNC,
|
|
2723
|
+
_ && e[i](g, e.TEXTURE_COMPARE_FUNC, Do[_]);
|
|
2724
2724
|
}
|
|
2725
|
-
const
|
|
2725
|
+
const Mo = {
|
|
2726
2726
|
id: "buffer",
|
|
2727
2727
|
upload: (r, e, t) => {
|
|
2728
2728
|
e.width === r.width || e.height === r.height ? t.texSubImage2D(
|
|
@@ -2747,7 +2747,7 @@ const Io = {
|
|
|
2747
2747
|
r.source
|
|
2748
2748
|
), e.width = r.width, e.height = r.height;
|
|
2749
2749
|
}
|
|
2750
|
-
},
|
|
2750
|
+
}, No = {
|
|
2751
2751
|
id: "image",
|
|
2752
2752
|
upload: (r, e, t, s) => {
|
|
2753
2753
|
const i = e.width, o = e.height, a = r.pixelWidth ?? r.width, n = r.pixelHeight ?? r.height, l = r.sourceWidth ?? a, c = r.sourceHeight ?? n;
|
|
@@ -2806,13 +2806,13 @@ const Io = {
|
|
|
2806
2806
|
r.source
|
|
2807
2807
|
), e.width = a, e.height = n;
|
|
2808
2808
|
}
|
|
2809
|
-
},
|
|
2810
|
-
buffer:
|
|
2811
|
-
image:
|
|
2809
|
+
}, ko = {
|
|
2810
|
+
buffer: Mo,
|
|
2811
|
+
image: No
|
|
2812
2812
|
};
|
|
2813
|
-
class
|
|
2813
|
+
class Uo extends q {
|
|
2814
2814
|
uploaders = {
|
|
2815
|
-
...
|
|
2815
|
+
...ko
|
|
2816
2816
|
};
|
|
2817
2817
|
textures = /* @__PURE__ */ new Map();
|
|
2818
2818
|
glTextures = /* @__PURE__ */ new Map();
|
|
@@ -2828,7 +2828,7 @@ class ko extends Z {
|
|
|
2828
2828
|
super.install(e), e.texture = this;
|
|
2829
2829
|
}
|
|
2830
2830
|
onUpdateContext(e) {
|
|
2831
|
-
super.onUpdateContext(e), Object.keys(this._mapFormatToInternalFormat).length || (this._mapFormatToInternalFormat =
|
|
2831
|
+
super.onUpdateContext(e), Object.keys(this._mapFormatToInternalFormat).length || (this._mapFormatToInternalFormat = Ao(e, this._renderer.extensions), this._mapFormatToType = Co(e), this._mapFormatToFormat = Ro(e)), this.maxTextureSize = e.getParameter(e.MAX_TEXTURE_SIZE), this.maxTextureImageUnits = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);
|
|
2832
2832
|
for (let t = 0; t < this.maxTextureImageUnits; t++)
|
|
2833
2833
|
this.unbind(t);
|
|
2834
2834
|
}
|
|
@@ -2836,7 +2836,7 @@ class ko extends Z {
|
|
|
2836
2836
|
return this.glTextures.get(e.instanceId) || this._createGlTexture(e);
|
|
2837
2837
|
}
|
|
2838
2838
|
_createGlTexture(e) {
|
|
2839
|
-
const t = this.gl, s = new
|
|
2839
|
+
const t = this.gl, s = new To(t.createTexture());
|
|
2840
2840
|
if (t.bindTexture(s.target, s.native), s.type = this._mapFormatToType[e.format], s.internalFormat = this._mapFormatToInternalFormat[e.format], s.format = this._mapFormatToFormat[e.format], this.glTextures.set(e.instanceId, s), e.mipmap && (this._renderer.supports.nonPowOf2mipmaps || e.isPowerOfTwo)) {
|
|
2841
2841
|
const i = Math.max(e.width, e.height);
|
|
2842
2842
|
e.mipLevelCount = Math.floor(Math.log2(i)) + 1;
|
|
@@ -2899,7 +2899,7 @@ class ko extends Z {
|
|
|
2899
2899
|
}
|
|
2900
2900
|
updateStyle(e, t = !1) {
|
|
2901
2901
|
const s = this._gl;
|
|
2902
|
-
|
|
2902
|
+
Io(
|
|
2903
2903
|
e,
|
|
2904
2904
|
s,
|
|
2905
2905
|
e.mipLevelCount > 1,
|
|
@@ -2939,7 +2939,7 @@ class ko extends Z {
|
|
|
2939
2939
|
this._premultiplyAlpha = !1, e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL, this._premultiplyAlpha);
|
|
2940
2940
|
}
|
|
2941
2941
|
}
|
|
2942
|
-
const
|
|
2942
|
+
const Hr = {
|
|
2943
2943
|
uint8x2: y.UNSIGNED_BYTE,
|
|
2944
2944
|
uint8x4: y.UNSIGNED_BYTE,
|
|
2945
2945
|
sint8x2: y.BYTE,
|
|
@@ -2971,17 +2971,17 @@ const $r = {
|
|
|
2971
2971
|
sint32x3: y.INT,
|
|
2972
2972
|
sint32x4: y.INT
|
|
2973
2973
|
};
|
|
2974
|
-
function
|
|
2975
|
-
return
|
|
2974
|
+
function Bo(r) {
|
|
2975
|
+
return Hr[r] ?? Hr.float32;
|
|
2976
2976
|
}
|
|
2977
|
-
const
|
|
2977
|
+
const Lo = {
|
|
2978
2978
|
"point-list": 0,
|
|
2979
2979
|
"line-list": 1,
|
|
2980
2980
|
"line-strip": 3,
|
|
2981
2981
|
"triangle-list": 4,
|
|
2982
2982
|
"triangle-strip": 5
|
|
2983
2983
|
};
|
|
2984
|
-
class
|
|
2984
|
+
class Fo extends q {
|
|
2985
2985
|
_geometryVaoHash = {};
|
|
2986
2986
|
hasInstance = !1;
|
|
2987
2987
|
current = null;
|
|
@@ -3021,11 +3021,11 @@ class Lo extends Z {
|
|
|
3021
3021
|
}
|
|
3022
3022
|
for (const n in i) {
|
|
3023
3023
|
const l = i[n];
|
|
3024
|
-
o[l.buffer.instanceId] +=
|
|
3024
|
+
o[l.buffer.instanceId] += Ct(l.format).stride;
|
|
3025
3025
|
}
|
|
3026
3026
|
for (const n in i) {
|
|
3027
3027
|
const l = i[n];
|
|
3028
|
-
l.stride ??= o[l.buffer.instanceId], l.start ??= a[l.buffer.instanceId], a[l.buffer.instanceId] +=
|
|
3028
|
+
l.stride ??= o[l.buffer.instanceId], l.start ??= a[l.buffer.instanceId], a[l.buffer.instanceId] += Ct(l.format).stride;
|
|
3029
3029
|
}
|
|
3030
3030
|
}
|
|
3031
3031
|
_createVao(e, t) {
|
|
@@ -3058,7 +3058,7 @@ class Lo extends Z {
|
|
|
3058
3058
|
a !== u && (i.bind(c), a = u);
|
|
3059
3059
|
const f = d.location;
|
|
3060
3060
|
s.enableVertexAttribArray(f);
|
|
3061
|
-
const m =
|
|
3061
|
+
const m = Ct(l.format), p = Bo(l.format);
|
|
3062
3062
|
if (d.format?.substring(1, 4) === "int" ? s.vertexAttribIPointer(
|
|
3063
3063
|
f,
|
|
3064
3064
|
m.size,
|
|
@@ -3114,7 +3114,7 @@ class Lo extends Z {
|
|
|
3114
3114
|
if (!n)
|
|
3115
3115
|
return this;
|
|
3116
3116
|
t = t || n.topology || "triangle-list";
|
|
3117
|
-
const l =
|
|
3117
|
+
const l = Lo[t];
|
|
3118
3118
|
if (o = o || n.instanceCount || 1, n.indexBuffer) {
|
|
3119
3119
|
s = s || n.indexBuffer.data.length;
|
|
3120
3120
|
const c = n.indexBuffer.data.BYTES_PER_ELEMENT, u = c === 2 ? a.UNSIGNED_SHORT : a.UNSIGNED_INT;
|
|
@@ -3126,7 +3126,7 @@ class Lo extends Z {
|
|
|
3126
3126
|
super.reset(), this.current = null, this.currentVao = null;
|
|
3127
3127
|
}
|
|
3128
3128
|
}
|
|
3129
|
-
class
|
|
3129
|
+
class zo extends q {
|
|
3130
3130
|
install(e) {
|
|
3131
3131
|
super.install(e), e.colorMask = this;
|
|
3132
3132
|
}
|
|
@@ -3140,6 +3140,44 @@ class Fo extends Z {
|
|
|
3140
3140
|
));
|
|
3141
3141
|
}
|
|
3142
3142
|
}
|
|
3143
|
+
function Tt(r, e, t) {
|
|
3144
|
+
const [s, i, o, a, n, l, c, u, d] = r, f = s * e + a * t + c, m = i * e + n * t + u, p = o * e + l * t + d;
|
|
3145
|
+
return { x: f / p, y: m / p };
|
|
3146
|
+
}
|
|
3147
|
+
function Go(r, e) {
|
|
3148
|
+
const { x: t, y: s, width: i, height: o } = e, a = Tt(r, t, s), n = Tt(r, t + i, s), l = Tt(r, t + i, s + o), c = Tt(r, t, s + o), u = [a, n, l, c], d = u.map((v) => v.x), f = u.map((v) => v.y), m = Math.min(...d), p = Math.max(...d), _ = Math.min(...f), g = Math.max(...f);
|
|
3149
|
+
return {
|
|
3150
|
+
x: m,
|
|
3151
|
+
y: _,
|
|
3152
|
+
width: p - m,
|
|
3153
|
+
height: g - _
|
|
3154
|
+
};
|
|
3155
|
+
}
|
|
3156
|
+
class Vo extends q {
|
|
3157
|
+
scissorCounter = 0;
|
|
3158
|
+
install(e) {
|
|
3159
|
+
super.install(e), e.scissor = this;
|
|
3160
|
+
}
|
|
3161
|
+
push(e) {
|
|
3162
|
+
const t = this._gl;
|
|
3163
|
+
t.enable(t.SCISSOR_TEST), this.scissorCounter++, this.bind(e);
|
|
3164
|
+
}
|
|
3165
|
+
pop() {
|
|
3166
|
+
if (this.scissorCounter > 0 && this.scissorCounter--, this.scissorCounter <= 0) {
|
|
3167
|
+
const e = this._gl;
|
|
3168
|
+
e.disable(e.SCISSOR_TEST);
|
|
3169
|
+
}
|
|
3170
|
+
}
|
|
3171
|
+
bind(e) {
|
|
3172
|
+
const { pixelRatio: t, viewport: s } = this._renderer, { viewMatrix: i } = this._renderer.shader.uniforms, { x: o, y: a, width: n, height: l } = Go(i, e), c = s.current.height / t - (a + l);
|
|
3173
|
+
this._renderer.gl.scissor(
|
|
3174
|
+
o * t,
|
|
3175
|
+
c * t,
|
|
3176
|
+
n * t,
|
|
3177
|
+
l * t
|
|
3178
|
+
);
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3143
3181
|
const Ie = [];
|
|
3144
3182
|
Ie[D.none] = {};
|
|
3145
3183
|
Ie[D.disabled] = {
|
|
@@ -3188,7 +3226,7 @@ Ie[D.inverseMaskActive] = {
|
|
|
3188
3226
|
passOp: "keep"
|
|
3189
3227
|
}
|
|
3190
3228
|
};
|
|
3191
|
-
class
|
|
3229
|
+
class $o extends q {
|
|
3192
3230
|
install(e) {
|
|
3193
3231
|
super.install(e), e.stencil = this;
|
|
3194
3232
|
}
|
|
@@ -3246,7 +3284,7 @@ class zo extends Z {
|
|
|
3246
3284
|
this._cache.enabled || (this._cache.enabled = !0, i.enable(i.STENCIL_TEST)), (e !== a.stencilMode || a.refCount !== t) && (a.stencilMode = e, a.refCount = t, o.stencilBack && (i.stencilFunc(this._compareMap[o.stencilBack.compare], t, 255), i.stencilOp(i.KEEP, i.KEEP, this._passOpMap[o.stencilBack.passOp])));
|
|
3247
3285
|
}
|
|
3248
3286
|
}
|
|
3249
|
-
class
|
|
3287
|
+
class Ho extends q {
|
|
3250
3288
|
current = new Fe(0, 0, 0, 0);
|
|
3251
3289
|
install(e) {
|
|
3252
3290
|
super.install(e), e.viewport = this;
|
|
@@ -3256,7 +3294,7 @@ class Go extends Z {
|
|
|
3256
3294
|
t.x === s && t.y === i && t.width === o && t.height === a || (this._gl.viewport(s, i, o, a), t.x = s, t.y = i, t.width = o, t.height = a);
|
|
3257
3295
|
}
|
|
3258
3296
|
}
|
|
3259
|
-
class
|
|
3297
|
+
class Xo {
|
|
3260
3298
|
constructor(e) {
|
|
3261
3299
|
this.framebuffer = e;
|
|
3262
3300
|
}
|
|
@@ -3267,7 +3305,7 @@ class Vo {
|
|
|
3267
3305
|
msaaRenderBuffer = [];
|
|
3268
3306
|
depthStencilRenderBuffer;
|
|
3269
3307
|
}
|
|
3270
|
-
class
|
|
3308
|
+
class jo extends q {
|
|
3271
3309
|
install(e) {
|
|
3272
3310
|
super.install(e), e.renderTarget = this;
|
|
3273
3311
|
}
|
|
@@ -3277,7 +3315,7 @@ class $o extends Z {
|
|
|
3277
3315
|
_msaaSamples = [];
|
|
3278
3316
|
_hasMRT = !0;
|
|
3279
3317
|
_writeDepthTexture = !0;
|
|
3280
|
-
projectionMatrix = new
|
|
3318
|
+
projectionMatrix = new ro();
|
|
3281
3319
|
onUpdateContext() {
|
|
3282
3320
|
if (this._hasMRT = !0, this._writeDepthTexture = !0, this._renderer.version === 1) {
|
|
3283
3321
|
const e = this._renderer.gl, t = this._renderer.extensions.drawBuffers, s = this._renderer.extensions.depthTexture;
|
|
@@ -3316,7 +3354,7 @@ class $o extends Z {
|
|
|
3316
3354
|
return this.glRenderTargets.get(e.instanceId) || this._createGlRenderTarget(e);
|
|
3317
3355
|
}
|
|
3318
3356
|
_createGlRenderTarget(e) {
|
|
3319
|
-
const t = this._gl, s = new
|
|
3357
|
+
const t = this._gl, s = new Xo(t.createFramebuffer());
|
|
3320
3358
|
return s.msaa = !!e.msaa, e.colorTextures.forEach((i) => {
|
|
3321
3359
|
this._renderer.texture.unbind(i);
|
|
3322
3360
|
}), t.bindFramebuffer(t.FRAMEBUFFER, s.framebuffer), this.glRenderTargets.set(e.instanceId, s), this.renderTargets.get(e.instanceId) || (this.renderTargets.set(e.instanceId, e), "on" in e && (e.on("updateProperty", (i) => {
|
|
@@ -3457,20 +3495,21 @@ class $o extends Z {
|
|
|
3457
3495
|
super.reset(), this.renderTargets.clear(), this.glRenderTargets.clear(), this.current = null, this._msaaSamples.length = 0;
|
|
3458
3496
|
}
|
|
3459
3497
|
}
|
|
3460
|
-
class
|
|
3498
|
+
class Wo extends mr {
|
|
3461
3499
|
contextLost = !1;
|
|
3462
3500
|
_systems = [
|
|
3463
|
-
new
|
|
3464
|
-
new
|
|
3465
|
-
new
|
|
3466
|
-
new Lo(),
|
|
3467
|
-
new $o(),
|
|
3468
|
-
new wo(),
|
|
3469
|
-
new Eo(),
|
|
3501
|
+
new Uo(),
|
|
3502
|
+
new no(),
|
|
3503
|
+
new xo(),
|
|
3470
3504
|
new Fo(),
|
|
3471
|
-
new
|
|
3505
|
+
new jo(),
|
|
3472
3506
|
new Po(),
|
|
3473
|
-
new
|
|
3507
|
+
new So(),
|
|
3508
|
+
new zo(),
|
|
3509
|
+
new $o(),
|
|
3510
|
+
new Vo(),
|
|
3511
|
+
new Eo(),
|
|
3512
|
+
new Ho()
|
|
3474
3513
|
];
|
|
3475
3514
|
bindPoints = /* @__PURE__ */ new Map();
|
|
3476
3515
|
supports = {
|
|
@@ -3482,10 +3521,10 @@ class Ho extends _r {
|
|
|
3482
3521
|
msaa: !0,
|
|
3483
3522
|
nonPowOf2mipmaps: !0
|
|
3484
3523
|
};
|
|
3485
|
-
constructor(e =
|
|
3524
|
+
constructor(e = $i(), t) {
|
|
3486
3525
|
if (super(), !e)
|
|
3487
3526
|
throw new Error("Failed to createHTMLCanvas");
|
|
3488
|
-
|
|
3527
|
+
Gi(e) ? this._setupContext(e, t) : (this.gl = e, this.version = Vi(this.gl) ? 2 : 1), this._setupBindPoints()._setupExtensions()._setupPolyfill()._setupSupports(), this._systems.forEach((s) => s.install(this)), this._systems.forEach((s) => s.onUpdateContext(this.gl));
|
|
3489
3528
|
}
|
|
3490
3529
|
_setupContext(e, t) {
|
|
3491
3530
|
this.view = e;
|
|
@@ -3597,7 +3636,7 @@ class Ho extends _r {
|
|
|
3597
3636
|
}
|
|
3598
3637
|
class Me {
|
|
3599
3638
|
}
|
|
3600
|
-
class
|
|
3639
|
+
class qo extends Me {
|
|
3601
3640
|
install(e) {
|
|
3602
3641
|
const t = async (s) => {
|
|
3603
3642
|
const { parseFont: i } = await import("modern-font");
|
|
@@ -3612,26 +3651,26 @@ class Xo extends Me {
|
|
|
3612
3651
|
}), e.font = this, this;
|
|
3613
3652
|
}
|
|
3614
3653
|
}
|
|
3615
|
-
var
|
|
3654
|
+
var Yo = Object.defineProperty, bs = (r, e, t, s) => {
|
|
3616
3655
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3617
3656
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3618
|
-
return i &&
|
|
3657
|
+
return i && Yo(e, t, i), i;
|
|
3619
3658
|
};
|
|
3620
3659
|
class We extends he {
|
|
3621
3660
|
constructor(e) {
|
|
3622
3661
|
super(), this.setProperties(e);
|
|
3623
3662
|
}
|
|
3624
3663
|
}
|
|
3625
|
-
|
|
3664
|
+
bs([
|
|
3626
3665
|
h({ fallback: be.index })
|
|
3627
3666
|
], We.prototype, "usage");
|
|
3628
|
-
|
|
3667
|
+
bs([
|
|
3629
3668
|
h({ default: () => new Uint32Array() })
|
|
3630
3669
|
], We.prototype, "data");
|
|
3631
|
-
var
|
|
3670
|
+
var Ko = Object.defineProperty, zt = (r, e, t, s) => {
|
|
3632
3671
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3633
3672
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3634
|
-
return i &&
|
|
3673
|
+
return i && Ko(e, t, i), i;
|
|
3635
3674
|
};
|
|
3636
3675
|
class Ne extends he {
|
|
3637
3676
|
constructor(e = {}) {
|
|
@@ -3641,38 +3680,38 @@ class Ne extends he {
|
|
|
3641
3680
|
e.flush(), t.activate(e, s), e.geometry.bind(this, t.glProgram), e.geometry.draw(), e.geometry.unbind();
|
|
3642
3681
|
}
|
|
3643
3682
|
}
|
|
3644
|
-
|
|
3683
|
+
zt([
|
|
3645
3684
|
h({ fallback: "triangle-list" })
|
|
3646
3685
|
], Ne.prototype, "topology");
|
|
3647
|
-
|
|
3686
|
+
zt([
|
|
3648
3687
|
h({ default: () => ({}) })
|
|
3649
3688
|
], Ne.prototype, "attributes");
|
|
3650
|
-
|
|
3689
|
+
zt([
|
|
3651
3690
|
h({ default: () => new We() })
|
|
3652
3691
|
], Ne.prototype, "indexBuffer");
|
|
3653
|
-
|
|
3692
|
+
zt([
|
|
3654
3693
|
h({ fallback: 1 })
|
|
3655
3694
|
], Ne.prototype, "instanceCount");
|
|
3656
|
-
var
|
|
3695
|
+
var Zo = Object.defineProperty, ys = (r, e, t, s) => {
|
|
3657
3696
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3658
3697
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3659
|
-
return i &&
|
|
3698
|
+
return i && Zo(e, t, i), i;
|
|
3660
3699
|
};
|
|
3661
3700
|
class ye extends he {
|
|
3662
3701
|
constructor(e) {
|
|
3663
3702
|
super(), this.setProperties(e);
|
|
3664
3703
|
}
|
|
3665
3704
|
}
|
|
3666
|
-
|
|
3705
|
+
ys([
|
|
3667
3706
|
h({ fallback: be.vertex })
|
|
3668
3707
|
], ye.prototype, "usage");
|
|
3669
|
-
|
|
3708
|
+
ys([
|
|
3670
3709
|
h({ default: () => new Float32Array() })
|
|
3671
3710
|
], ye.prototype, "data");
|
|
3672
|
-
var
|
|
3711
|
+
var Jo = Object.defineProperty, ke = (r, e, t, s) => {
|
|
3673
3712
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3674
3713
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3675
|
-
return i &&
|
|
3714
|
+
return i && Jo(e, t, i), i;
|
|
3676
3715
|
};
|
|
3677
3716
|
class H extends he {
|
|
3678
3717
|
constructor(e) {
|
|
@@ -3700,7 +3739,7 @@ ke([
|
|
|
3700
3739
|
ke([
|
|
3701
3740
|
h()
|
|
3702
3741
|
], H.prototype, "divisor");
|
|
3703
|
-
class
|
|
3742
|
+
class bc extends Ne {
|
|
3704
3743
|
constructor() {
|
|
3705
3744
|
super({
|
|
3706
3745
|
topology: "triangle-strip",
|
|
@@ -3718,12 +3757,12 @@ class mc extends Ne {
|
|
|
3718
3757
|
});
|
|
3719
3758
|
}
|
|
3720
3759
|
}
|
|
3721
|
-
var
|
|
3760
|
+
var Qo = Object.defineProperty, ea = (r, e, t, s) => {
|
|
3722
3761
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3723
3762
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3724
|
-
return i &&
|
|
3763
|
+
return i && Qo(e, t, i), i;
|
|
3725
3764
|
};
|
|
3726
|
-
function
|
|
3765
|
+
function ta() {
|
|
3727
3766
|
return {
|
|
3728
3767
|
projectionMatrix: new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]),
|
|
3729
3768
|
modelViewMatrix: new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]),
|
|
@@ -3757,13 +3796,13 @@ void main(void) {
|
|
|
3757
3796
|
}, e.shader.updateUniforms(this);
|
|
3758
3797
|
}
|
|
3759
3798
|
}
|
|
3760
|
-
|
|
3761
|
-
h({ default:
|
|
3799
|
+
ea([
|
|
3800
|
+
h({ default: ta })
|
|
3762
3801
|
], E.prototype, "uniforms");
|
|
3763
|
-
const
|
|
3764
|
-
function
|
|
3802
|
+
const ra = /^uniform \w+ (.+?);\s*\/\/\s*=\s*([^;]+?)[\s;]*$/gm, sa = /vec(\d)\((.*)\)/;
|
|
3803
|
+
function ia(r) {
|
|
3765
3804
|
r = r.trim();
|
|
3766
|
-
const e = r.match(
|
|
3805
|
+
const e = r.match(sa);
|
|
3767
3806
|
if (e) {
|
|
3768
3807
|
const t = Array.from({ length: Number(e[1]) }, () => 0);
|
|
3769
3808
|
return e[2].split(",").forEach((s, i) => {
|
|
@@ -3772,7 +3811,7 @@ function ta(r) {
|
|
|
3772
3811
|
}
|
|
3773
3812
|
return Number(r);
|
|
3774
3813
|
}
|
|
3775
|
-
class
|
|
3814
|
+
class Ot extends E {
|
|
3776
3815
|
static RE = {
|
|
3777
3816
|
getColor: /\sgetColor\s*\(/,
|
|
3778
3817
|
getFromColor: /\sgetFromColor\s*\(/,
|
|
@@ -3789,8 +3828,8 @@ class Ct extends E {
|
|
|
3789
3828
|
transform: !1,
|
|
3790
3829
|
transition: !1
|
|
3791
3830
|
};
|
|
3792
|
-
for (const i in
|
|
3793
|
-
t[i] =
|
|
3831
|
+
for (const i in Ot.RE)
|
|
3832
|
+
t[i] = Ot.RE[i].test(e);
|
|
3794
3833
|
super({
|
|
3795
3834
|
gl: {
|
|
3796
3835
|
vertex: `attribute vec2 position;
|
|
@@ -3822,14 +3861,14 @@ void main(void) { gl_FragColor = transition(vUv); }` : ""}`
|
|
|
3822
3861
|
progress: 0
|
|
3823
3862
|
}
|
|
3824
3863
|
}), this.has = t;
|
|
3825
|
-
const s = e.matchAll(
|
|
3864
|
+
const s = e.matchAll(ra);
|
|
3826
3865
|
for (const i of s)
|
|
3827
3866
|
i[1] && i[2] && i[1].split(",").forEach((o) => {
|
|
3828
|
-
this.uniforms[o.trim()] =
|
|
3867
|
+
this.uniforms[o.trim()] = ia(i[2]);
|
|
3829
3868
|
});
|
|
3830
3869
|
}
|
|
3831
3870
|
}
|
|
3832
|
-
class
|
|
3871
|
+
class Dt extends E {
|
|
3833
3872
|
static _instance;
|
|
3834
3873
|
static get instance() {
|
|
3835
3874
|
return this._instance ??= new this();
|
|
@@ -3867,7 +3906,7 @@ class P extends Ne {
|
|
|
3867
3906
|
static get instance() {
|
|
3868
3907
|
return this._instance ??= new this();
|
|
3869
3908
|
}
|
|
3870
|
-
static draw(e, t =
|
|
3909
|
+
static draw(e, t = Dt.instance, s) {
|
|
3871
3910
|
this.instance.draw(e, t, s);
|
|
3872
3911
|
}
|
|
3873
3912
|
constructor() {
|
|
@@ -3892,7 +3931,7 @@ class P extends Ne {
|
|
|
3892
3931
|
});
|
|
3893
3932
|
}
|
|
3894
3933
|
}
|
|
3895
|
-
class
|
|
3934
|
+
class yc extends Ne {
|
|
3896
3935
|
positionBuffer;
|
|
3897
3936
|
uvBuffer;
|
|
3898
3937
|
constructor(e) {
|
|
@@ -3913,10 +3952,10 @@ class gc extends Ne {
|
|
|
3913
3952
|
}), this.positionBuffer = t, this.uvBuffer = s;
|
|
3914
3953
|
}
|
|
3915
3954
|
}
|
|
3916
|
-
var
|
|
3917
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
3955
|
+
var oa = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, ue = (r, e, t, s) => {
|
|
3956
|
+
for (var i = s > 1 ? void 0 : s ? aa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
3918
3957
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
3919
|
-
return s && i &&
|
|
3958
|
+
return s && i && oa(e, t, i), i;
|
|
3920
3959
|
};
|
|
3921
3960
|
let X = class extends he {
|
|
3922
3961
|
get valid() {
|
|
@@ -3956,10 +3995,10 @@ ue([
|
|
|
3956
3995
|
X = ue([
|
|
3957
3996
|
b("RenderTarget")
|
|
3958
3997
|
], X);
|
|
3959
|
-
var
|
|
3998
|
+
var na = Object.defineProperty, N = (r, e, t, s) => {
|
|
3960
3999
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3961
4000
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3962
|
-
return i &&
|
|
4001
|
+
return i && na(e, t, i), i;
|
|
3963
4002
|
};
|
|
3964
4003
|
class x extends he {
|
|
3965
4004
|
static get EMPTY() {
|
|
@@ -4008,7 +4047,7 @@ class x extends he {
|
|
|
4008
4047
|
switch (super._updateProperty(e, t, s), e) {
|
|
4009
4048
|
case "width":
|
|
4010
4049
|
case "height":
|
|
4011
|
-
this.isPowerOfTwo =
|
|
4050
|
+
this.isPowerOfTwo = Ur(this.pixelWidth) && Ur(this.pixelHeight);
|
|
4012
4051
|
break;
|
|
4013
4052
|
case "source":
|
|
4014
4053
|
this.updateSize();
|
|
@@ -4025,7 +4064,7 @@ class x extends he {
|
|
|
4025
4064
|
e.texture.unbind(this);
|
|
4026
4065
|
}
|
|
4027
4066
|
destroy() {
|
|
4028
|
-
super.destroy(),
|
|
4067
|
+
super.destroy(), Mi && this.source instanceof ImageBitmap && this.source.close();
|
|
4029
4068
|
}
|
|
4030
4069
|
}
|
|
4031
4070
|
N([
|
|
@@ -4076,7 +4115,7 @@ N([
|
|
|
4076
4115
|
N([
|
|
4077
4116
|
h({ fallback: !1 })
|
|
4078
4117
|
], x.prototype, "isPowerOfTwo");
|
|
4079
|
-
class
|
|
4118
|
+
class la extends he {
|
|
4080
4119
|
frames;
|
|
4081
4120
|
frameIndex = 0;
|
|
4082
4121
|
get currentFrame() {
|
|
@@ -4102,7 +4141,7 @@ class oa extends he {
|
|
|
4102
4141
|
});
|
|
4103
4142
|
}
|
|
4104
4143
|
}
|
|
4105
|
-
class
|
|
4144
|
+
class xs extends x {
|
|
4106
4145
|
constructor(e = {}) {
|
|
4107
4146
|
super({
|
|
4108
4147
|
pixelRatio: 2,
|
|
@@ -4123,12 +4162,12 @@ class ys extends x {
|
|
|
4123
4162
|
super._updateProperty(e, t, s);
|
|
4124
4163
|
}
|
|
4125
4164
|
}
|
|
4126
|
-
class
|
|
4165
|
+
class gr extends x {
|
|
4127
4166
|
static _cached = /* @__PURE__ */ new Map();
|
|
4128
4167
|
static get(e) {
|
|
4129
4168
|
const t = new oe(e), s = t.toHex();
|
|
4130
4169
|
let i = this._cached.get(s);
|
|
4131
|
-
return i || (i = new
|
|
4170
|
+
return i || (i = new gr(t), this._cached.set(s, i)), i;
|
|
4132
4171
|
}
|
|
4133
4172
|
constructor(e) {
|
|
4134
4173
|
const t = e instanceof oe ? e : new oe(e);
|
|
@@ -4141,9 +4180,9 @@ class mr extends x {
|
|
|
4141
4180
|
});
|
|
4142
4181
|
}
|
|
4143
4182
|
}
|
|
4144
|
-
class
|
|
4183
|
+
class Gt extends x {
|
|
4145
4184
|
static test(e) {
|
|
4146
|
-
return
|
|
4185
|
+
return ni(e);
|
|
4147
4186
|
}
|
|
4148
4187
|
static linearGradient(e, t, s) {
|
|
4149
4188
|
t = t || 1, s = s || 1;
|
|
@@ -4165,11 +4204,11 @@ class zt extends x {
|
|
|
4165
4204
|
}
|
|
4166
4205
|
constructor(e, t, s) {
|
|
4167
4206
|
super(
|
|
4168
|
-
|
|
4207
|
+
Gt.linearGradient(e, t, s)
|
|
4169
4208
|
);
|
|
4170
4209
|
}
|
|
4171
4210
|
}
|
|
4172
|
-
class
|
|
4211
|
+
class ca extends x {
|
|
4173
4212
|
constructor(e = {}) {
|
|
4174
4213
|
super({
|
|
4175
4214
|
...e,
|
|
@@ -4177,12 +4216,12 @@ class aa extends x {
|
|
|
4177
4216
|
});
|
|
4178
4217
|
}
|
|
4179
4218
|
}
|
|
4180
|
-
var
|
|
4219
|
+
var ha = Object.defineProperty, ws = (r, e, t, s) => {
|
|
4181
4220
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4182
4221
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
4183
|
-
return i &&
|
|
4222
|
+
return i && ha(e, t, i), i;
|
|
4184
4223
|
};
|
|
4185
|
-
function
|
|
4224
|
+
function ua(r) {
|
|
4186
4225
|
return {
|
|
4187
4226
|
autoLoad: !!(r?.autoLoad ?? !0),
|
|
4188
4227
|
autoPlay: !!(r?.autoPlay ?? !1),
|
|
@@ -4193,7 +4232,7 @@ function la(r) {
|
|
|
4193
4232
|
playsinline: !!(r?.playsinline ?? !0)
|
|
4194
4233
|
};
|
|
4195
4234
|
}
|
|
4196
|
-
const
|
|
4235
|
+
const vr = class Ps extends x {
|
|
4197
4236
|
static mimeTypes = new Map(Object.entries({
|
|
4198
4237
|
ogv: "video/ogg",
|
|
4199
4238
|
mov: "video/quicktime",
|
|
@@ -4226,18 +4265,18 @@ const gr = class ws extends x {
|
|
|
4226
4265
|
_resolve;
|
|
4227
4266
|
_reject;
|
|
4228
4267
|
constructor(e, t) {
|
|
4229
|
-
const s =
|
|
4230
|
-
if (!
|
|
4268
|
+
const s = ua(t);
|
|
4269
|
+
if (!zi(e)) {
|
|
4231
4270
|
typeof e == "string" && (e = [e]);
|
|
4232
4271
|
const i = e[0].src || e[0], o = document.createElement("video");
|
|
4233
|
-
s.autoLoad && o.setAttribute("preload", "auto"), s.playsinline && (o.setAttribute("webkit-playsinline", ""), o.setAttribute("playsinline", "")), s.muted && (o.setAttribute("muted", ""), o.muted = !0), s.loop && o.setAttribute("loop", ""), s.autoPlay && o.setAttribute("autoplay", ""),
|
|
4272
|
+
s.autoLoad && o.setAttribute("preload", "auto"), s.playsinline && (o.setAttribute("webkit-playsinline", ""), o.setAttribute("playsinline", "")), s.muted && (o.setAttribute("muted", ""), o.muted = !0), s.loop && o.setAttribute("loop", ""), s.autoPlay && o.setAttribute("autoplay", ""), Xi(o, i, s.crossorigin);
|
|
4234
4273
|
for (let a = 0; a < e.length; ++a) {
|
|
4235
4274
|
let { src: n, mime: l } = e[a];
|
|
4236
4275
|
if (n = n || e[a], n.startsWith("data:"))
|
|
4237
4276
|
l = n.slice(5, n.indexOf(";"));
|
|
4238
4277
|
else if (!n.startsWith("blob:")) {
|
|
4239
4278
|
const u = n.split("?").shift().toLowerCase(), d = u.slice(u.lastIndexOf(".") + 1);
|
|
4240
|
-
l = l ||
|
|
4279
|
+
l = l || Ps.mimeTypes.get(d) || `video/${d}`;
|
|
4241
4280
|
}
|
|
4242
4281
|
const c = document.createElement("source");
|
|
4243
4282
|
c.src = n, l && (c.type = l), o.appendChild(c);
|
|
@@ -4302,17 +4341,17 @@ const gr = class ws extends x {
|
|
|
4302
4341
|
e && (e.removeEventListener("play", this._onPlayStart), e.removeEventListener("pause", this._onPlayStop), e.removeEventListener("seeked", this._onSeeked), e.removeEventListener("canplay", this._onCanPlay), e.removeEventListener("canplaythrough", this._onCanPlay), e.removeEventListener("error", this._onError, !0), e.pause(), e.src = "", e.load());
|
|
4303
4342
|
}
|
|
4304
4343
|
};
|
|
4305
|
-
|
|
4344
|
+
ws([
|
|
4306
4345
|
h({ internal: !0, fallback: !0 })
|
|
4307
|
-
],
|
|
4308
|
-
|
|
4346
|
+
], vr.prototype, "autoUpdate");
|
|
4347
|
+
ws([
|
|
4309
4348
|
h({ internal: !0, fallback: 0 })
|
|
4310
|
-
],
|
|
4311
|
-
let
|
|
4312
|
-
class
|
|
4349
|
+
], vr.prototype, "fps");
|
|
4350
|
+
let da = vr;
|
|
4351
|
+
class br extends x {
|
|
4313
4352
|
//
|
|
4314
4353
|
}
|
|
4315
|
-
class
|
|
4354
|
+
class fa extends At {
|
|
4316
4355
|
fillStyle;
|
|
4317
4356
|
strokeStyle;
|
|
4318
4357
|
strokeAlignment;
|
|
@@ -4328,7 +4367,7 @@ class ha extends Rt {
|
|
|
4328
4367
|
return e ? e instanceof x ? {
|
|
4329
4368
|
texture: e
|
|
4330
4369
|
} : {
|
|
4331
|
-
texture:
|
|
4370
|
+
texture: gr.get(e)
|
|
4332
4371
|
} : {};
|
|
4333
4372
|
}
|
|
4334
4373
|
stroke(e) {
|
|
@@ -4341,14 +4380,14 @@ class ha extends Rt {
|
|
|
4341
4380
|
t = this.style.stroke;
|
|
4342
4381
|
break;
|
|
4343
4382
|
case "object":
|
|
4344
|
-
|
|
4383
|
+
Nr(this.style.stroke) && (t = this.style.stroke.color);
|
|
4345
4384
|
break;
|
|
4346
4385
|
}
|
|
4347
4386
|
this._draws.push({
|
|
4348
4387
|
...e,
|
|
4349
4388
|
...this._parseDrawStyle(t),
|
|
4350
4389
|
type: "stroke",
|
|
4351
|
-
path: new
|
|
4390
|
+
path: new At(this),
|
|
4352
4391
|
transformUv: this.transformUv,
|
|
4353
4392
|
transformVertex: this.transformVertex,
|
|
4354
4393
|
lineStyle: {
|
|
@@ -4376,7 +4415,7 @@ class ha extends Rt {
|
|
|
4376
4415
|
t = this.style.fill;
|
|
4377
4416
|
break;
|
|
4378
4417
|
case "object":
|
|
4379
|
-
|
|
4418
|
+
Nr(this.style.fill) && (t = this.style.fill.color);
|
|
4380
4419
|
break;
|
|
4381
4420
|
}
|
|
4382
4421
|
this._draws.push({
|
|
@@ -4385,7 +4424,7 @@ class ha extends Rt {
|
|
|
4385
4424
|
...e,
|
|
4386
4425
|
...this._parseDrawStyle(t),
|
|
4387
4426
|
type: "fill",
|
|
4388
|
-
path: new
|
|
4427
|
+
path: new At(this)
|
|
4389
4428
|
}), this.resetStatus();
|
|
4390
4429
|
}
|
|
4391
4430
|
copy(e) {
|
|
@@ -4419,7 +4458,7 @@ class ha extends Rt {
|
|
|
4419
4458
|
return e;
|
|
4420
4459
|
}
|
|
4421
4460
|
}
|
|
4422
|
-
class
|
|
4461
|
+
class pa {
|
|
4423
4462
|
front = [];
|
|
4424
4463
|
default = [];
|
|
4425
4464
|
back = [];
|
|
@@ -4467,7 +4506,7 @@ class ua {
|
|
|
4467
4506
|
return [...this.default];
|
|
4468
4507
|
}
|
|
4469
4508
|
}
|
|
4470
|
-
class
|
|
4509
|
+
class _a extends Pe {
|
|
4471
4510
|
constructor(e) {
|
|
4472
4511
|
return super(), this.parent = e, new Proxy(this, {
|
|
4473
4512
|
get: (t, s, i) => Reflect.has(t, s) || String(s).startsWith("_") ? Reflect.get(t, s, i) : t.getProperty(String(s)),
|
|
@@ -4487,18 +4526,18 @@ class da extends Pe {
|
|
|
4487
4526
|
return { internalKey: `____${e}` };
|
|
4488
4527
|
}
|
|
4489
4528
|
}
|
|
4490
|
-
var
|
|
4491
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4529
|
+
var ma = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, de = (r, e, t, s) => {
|
|
4530
|
+
for (var i = s > 1 ? void 0 : s ? ga(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4492
4531
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4493
|
-
return s && i &&
|
|
4532
|
+
return s && i && ma(e, t, i), i;
|
|
4494
4533
|
};
|
|
4495
|
-
const
|
|
4496
|
-
function
|
|
4497
|
-
let e =
|
|
4498
|
-
return e++,
|
|
4534
|
+
const Xr = {};
|
|
4535
|
+
function va(r) {
|
|
4536
|
+
let e = Xr[r] ?? 0;
|
|
4537
|
+
return e++, Xr[r] = e, e;
|
|
4499
4538
|
}
|
|
4500
4539
|
let M = class extends Pe {
|
|
4501
|
-
_meta = new
|
|
4540
|
+
_meta = new _a(this);
|
|
4502
4541
|
get meta() {
|
|
4503
4542
|
return this._meta;
|
|
4504
4543
|
}
|
|
@@ -4508,7 +4547,7 @@ let M = class extends Pe {
|
|
|
4508
4547
|
_readyed = !1;
|
|
4509
4548
|
constructor(r, e = []) {
|
|
4510
4549
|
super(), this._onTreeEnter = this._onTreeEnter.bind(this), this._onTreeExit = this._onTreeExit.bind(this), this._onParented = this._onParented.bind(this), this._onUnparented = this._onUnparented.bind(this), this._onReady = this._onReady.bind(this), this._onProcess = this._onProcess.bind(this), this.setProperties({
|
|
4511
|
-
name: `${this.is}:${
|
|
4550
|
+
name: `${this.is}:${va(this.is)}`,
|
|
4512
4551
|
...r
|
|
4513
4552
|
}).append(e), this.on("treeEnter", this._onTreeEnter).on("treeExit", this._onTreeExit).on("parented", this._onParented).on("unparented", this._onUnparented).on("ready", this._onReady).on("process", this._onProcess);
|
|
4514
4553
|
}
|
|
@@ -4584,7 +4623,7 @@ let M = class extends Pe {
|
|
|
4584
4623
|
return this;
|
|
4585
4624
|
}
|
|
4586
4625
|
/** Children */
|
|
4587
|
-
_children = new
|
|
4626
|
+
_children = new pa();
|
|
4588
4627
|
get children() {
|
|
4589
4628
|
return this._children.default;
|
|
4590
4629
|
}
|
|
@@ -4839,7 +4878,7 @@ let M = class extends Pe {
|
|
|
4839
4878
|
);
|
|
4840
4879
|
}
|
|
4841
4880
|
toJSON() {
|
|
4842
|
-
return
|
|
4881
|
+
return ss({
|
|
4843
4882
|
...super.toJSON(),
|
|
4844
4883
|
is: this.meta.inCanvasIs ? void 0 : this.is,
|
|
4845
4884
|
children: this.children.length ? [...this.children.map((r) => r.toJSON())] : void 0,
|
|
@@ -4849,15 +4888,15 @@ let M = class extends Pe {
|
|
|
4849
4888
|
static parse(r) {
|
|
4850
4889
|
if (Array.isArray(r))
|
|
4851
4890
|
return r.map((n) => this.parse(n));
|
|
4852
|
-
const { is: e, meta: t = {}, children: s, ...i } = r, o =
|
|
4891
|
+
const { is: e, meta: t = {}, children: s, ...i } = r, o = dr.get(e ?? t.inCanvasIs ?? "Node") ?? M, a = new o({ ...i, meta: t });
|
|
4853
4892
|
return s?.forEach((n) => a.appendChild(this.parse(n))), a;
|
|
4854
4893
|
}
|
|
4855
4894
|
};
|
|
4856
4895
|
de([
|
|
4857
|
-
h({ fallback:
|
|
4896
|
+
h({ fallback: is() })
|
|
4858
4897
|
], M.prototype, "id", 2);
|
|
4859
4898
|
de([
|
|
4860
|
-
h({ fallback:
|
|
4899
|
+
h({ fallback: is() })
|
|
4861
4900
|
], M.prototype, "name", 2);
|
|
4862
4901
|
de([
|
|
4863
4902
|
h({ fallback: "inherit" })
|
|
@@ -4880,12 +4919,12 @@ de([
|
|
|
4880
4919
|
M = de([
|
|
4881
4920
|
b("Node")
|
|
4882
4921
|
], M);
|
|
4883
|
-
var
|
|
4884
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4922
|
+
var ba = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, qe = (r, e, t, s) => {
|
|
4923
|
+
for (var i = s > 1 ? void 0 : s ? ya(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4885
4924
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4886
|
-
return s && i &&
|
|
4925
|
+
return s && i && ba(e, t, i), i;
|
|
4887
4926
|
};
|
|
4888
|
-
let
|
|
4927
|
+
let Y = class extends M {
|
|
4889
4928
|
constructor(r, e = []) {
|
|
4890
4929
|
super(), this.setProperties(r).append(e);
|
|
4891
4930
|
}
|
|
@@ -4934,28 +4973,28 @@ let q = class extends M {
|
|
|
4934
4973
|
};
|
|
4935
4974
|
qe([
|
|
4936
4975
|
h({ fallback: !1 })
|
|
4937
|
-
],
|
|
4976
|
+
], Y.prototype, "loop", 2);
|
|
4938
4977
|
qe([
|
|
4939
4978
|
h({ fallback: 0 })
|
|
4940
|
-
],
|
|
4979
|
+
], Y.prototype, "delay", 2);
|
|
4941
4980
|
qe([
|
|
4942
4981
|
h({ fallback: 0 })
|
|
4943
|
-
],
|
|
4982
|
+
], Y.prototype, "duration", 2);
|
|
4944
4983
|
qe([
|
|
4945
4984
|
h({ fallback: !1 })
|
|
4946
|
-
],
|
|
4985
|
+
], Y.prototype, "paused", 2);
|
|
4947
4986
|
qe([
|
|
4948
4987
|
h({ internal: !0, fallback: !1 })
|
|
4949
|
-
],
|
|
4950
|
-
|
|
4988
|
+
], Y.prototype, "insideTimeRange", 2);
|
|
4989
|
+
Y = qe([
|
|
4951
4990
|
b("TimelineNode")
|
|
4952
|
-
],
|
|
4953
|
-
var
|
|
4954
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4991
|
+
], Y);
|
|
4992
|
+
var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Vt = (r, e, t, s) => {
|
|
4993
|
+
for (var i = s > 1 ? void 0 : s ? wa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4955
4994
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4956
|
-
return s && i &&
|
|
4995
|
+
return s && i && xa(e, t, i), i;
|
|
4957
4996
|
};
|
|
4958
|
-
let Ge = class extends
|
|
4997
|
+
let Ge = class extends Y {
|
|
4959
4998
|
_parentGlobalVisible;
|
|
4960
4999
|
_globalVisible;
|
|
4961
5000
|
get globalVisible() {
|
|
@@ -4967,7 +5006,7 @@ let Ge = class extends q {
|
|
|
4967
5006
|
return this._globalOpacity ?? 1;
|
|
4968
5007
|
}
|
|
4969
5008
|
// Batch render
|
|
4970
|
-
context = new
|
|
5009
|
+
context = new fa();
|
|
4971
5010
|
_resetContext = !0;
|
|
4972
5011
|
needsRender = !0;
|
|
4973
5012
|
needsLayout = !1;
|
|
@@ -5079,7 +5118,7 @@ let Ge = class extends q {
|
|
|
5079
5118
|
const e = this._tree?.pixelate;
|
|
5080
5119
|
this._batchables.forEach((t) => {
|
|
5081
5120
|
let s = t.texture;
|
|
5082
|
-
s instanceof
|
|
5121
|
+
s instanceof br && (s = this._handleViewportTexture(t)), r.batch2D.render({
|
|
5083
5122
|
...t,
|
|
5084
5123
|
roundPixels: this._tree?.roundPixels,
|
|
5085
5124
|
size: e ? t.size : void 0,
|
|
@@ -5088,22 +5127,22 @@ let Ge = class extends q {
|
|
|
5088
5127
|
}), super._render(r);
|
|
5089
5128
|
}
|
|
5090
5129
|
};
|
|
5091
|
-
|
|
5130
|
+
Vt([
|
|
5092
5131
|
h()
|
|
5093
5132
|
], Ge.prototype, "blendMode", 2);
|
|
5094
|
-
|
|
5133
|
+
Vt([
|
|
5095
5134
|
h({ internal: !0, fallback: !0 })
|
|
5096
5135
|
], Ge.prototype, "visible", 2);
|
|
5097
|
-
|
|
5136
|
+
Vt([
|
|
5098
5137
|
h({ internal: !0, fallback: 1 })
|
|
5099
5138
|
], Ge.prototype, "opacity", 2);
|
|
5100
|
-
Ge =
|
|
5139
|
+
Ge = Vt([
|
|
5101
5140
|
b("CanvasItem")
|
|
5102
5141
|
], Ge);
|
|
5103
|
-
var
|
|
5104
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5142
|
+
var Pa = Object.defineProperty, Ea = Object.getOwnPropertyDescriptor, Ue = (r, e, t, s) => {
|
|
5143
|
+
for (var i = s > 1 ? void 0 : s ? Ea(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5105
5144
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5106
|
-
return s && i &&
|
|
5145
|
+
return s && i && Pa(e, t, i), i;
|
|
5107
5146
|
};
|
|
5108
5147
|
let j = class extends M {
|
|
5109
5148
|
canvasTransform = new I();
|
|
@@ -5157,7 +5196,7 @@ let j = class extends M {
|
|
|
5157
5196
|
return !1;
|
|
5158
5197
|
}
|
|
5159
5198
|
activateWithCopy(r, e) {
|
|
5160
|
-
this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r,
|
|
5199
|
+
this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r, Dt.instance, {
|
|
5161
5200
|
sampler: 0
|
|
5162
5201
|
}));
|
|
5163
5202
|
}
|
|
@@ -5202,12 +5241,12 @@ Ue([
|
|
|
5202
5241
|
j = Ue([
|
|
5203
5242
|
b("Viewport")
|
|
5204
5243
|
], j);
|
|
5205
|
-
var
|
|
5206
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5244
|
+
var Sa = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, _t = (r, e, t, s) => {
|
|
5245
|
+
for (var i = s > 1 ? void 0 : s ? Ta(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5207
5246
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5208
|
-
return s && i &&
|
|
5247
|
+
return s && i && Sa(e, t, i), i;
|
|
5209
5248
|
};
|
|
5210
|
-
let T = class extends
|
|
5249
|
+
let T = class extends Y {
|
|
5211
5250
|
material;
|
|
5212
5251
|
needsRender = !0;
|
|
5213
5252
|
get _effectMode() {
|
|
@@ -5228,7 +5267,7 @@ let T = class extends q {
|
|
|
5228
5267
|
_updateProperty(r, e, t) {
|
|
5229
5268
|
switch (super._updateProperty(r, e, t), r) {
|
|
5230
5269
|
case "glsl": {
|
|
5231
|
-
const s = new
|
|
5270
|
+
const s = new Ot(e);
|
|
5232
5271
|
!this.effectMode && s.has.transition && (this.effectMode = "transition"), this.material = s;
|
|
5233
5272
|
break;
|
|
5234
5273
|
}
|
|
@@ -5396,7 +5435,7 @@ _t([
|
|
|
5396
5435
|
T = _t([
|
|
5397
5436
|
b("Effect")
|
|
5398
5437
|
], T);
|
|
5399
|
-
class
|
|
5438
|
+
class Ra {
|
|
5400
5439
|
currentCall;
|
|
5401
5440
|
calls = [];
|
|
5402
5441
|
createCall(e) {
|
|
@@ -5419,10 +5458,10 @@ class Ea {
|
|
|
5419
5458
|
}), this.calls = [];
|
|
5420
5459
|
}
|
|
5421
5460
|
}
|
|
5422
|
-
var
|
|
5423
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5461
|
+
var Aa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, Ye = (r, e, t, s) => {
|
|
5462
|
+
for (var i = s > 1 ? void 0 : s ? Ca(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5424
5463
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5425
|
-
return s && i &&
|
|
5464
|
+
return s && i && Aa(e, t, i), i;
|
|
5426
5465
|
};
|
|
5427
5466
|
let le = class extends M {
|
|
5428
5467
|
static from(r, e = !1) {
|
|
@@ -5473,12 +5512,12 @@ Ye([
|
|
|
5473
5512
|
le = Ye([
|
|
5474
5513
|
b("Timeline")
|
|
5475
5514
|
], le);
|
|
5476
|
-
var
|
|
5477
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5515
|
+
var Oa = Object.getOwnPropertyDescriptor, Da = (r, e, t, s) => {
|
|
5516
|
+
for (var i = s > 1 ? void 0 : s ? Oa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5478
5517
|
(a = r[o]) && (i = a(i) || i);
|
|
5479
5518
|
return i;
|
|
5480
5519
|
};
|
|
5481
|
-
let
|
|
5520
|
+
let or = class extends j {
|
|
5482
5521
|
constructor() {
|
|
5483
5522
|
super(), this.renderTargets.forEach((r) => r.isRoot = !0);
|
|
5484
5523
|
}
|
|
@@ -5489,18 +5528,18 @@ let ir = class extends j {
|
|
|
5489
5528
|
this.finish(r), super.flush(r);
|
|
5490
5529
|
}
|
|
5491
5530
|
};
|
|
5492
|
-
|
|
5531
|
+
or = Da([
|
|
5493
5532
|
b("Window")
|
|
5494
|
-
],
|
|
5495
|
-
var
|
|
5533
|
+
], or);
|
|
5534
|
+
var Ia = Object.defineProperty, Ee = (r, e, t, s) => {
|
|
5496
5535
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5497
5536
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
5498
|
-
return i &&
|
|
5537
|
+
return i && Ia(e, t, i), i;
|
|
5499
5538
|
};
|
|
5500
|
-
class fe extends
|
|
5501
|
-
input = new
|
|
5502
|
-
renderStack = new
|
|
5503
|
-
root = new
|
|
5539
|
+
class fe extends _r {
|
|
5540
|
+
input = new Zi();
|
|
5541
|
+
renderStack = new Ra();
|
|
5542
|
+
root = new or().setTree(this);
|
|
5504
5543
|
_backgroundColor = new oe();
|
|
5505
5544
|
_previousViewport;
|
|
5506
5545
|
_currentViewport;
|
|
@@ -5563,13 +5602,13 @@ Ee([
|
|
|
5563
5602
|
h({ internal: !0, fallback: !1 })
|
|
5564
5603
|
], fe.prototype, "processPaused");
|
|
5565
5604
|
Ee([
|
|
5566
|
-
h({ internal: !0, default: () =>
|
|
5605
|
+
h({ internal: !0, default: () => yi })
|
|
5567
5606
|
], fe.prototype, "fonts");
|
|
5568
5607
|
Ee([
|
|
5569
5608
|
h({ internal: !0, default: () => new le() })
|
|
5570
5609
|
], fe.prototype, "timeline");
|
|
5571
|
-
var
|
|
5572
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5610
|
+
var Ma = Object.getOwnPropertyDescriptor, Na = (r, e, t, s) => {
|
|
5611
|
+
for (var i = s > 1 ? void 0 : s ? Ma(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5573
5612
|
(a = r[o]) && (i = a(i) || i);
|
|
5574
5613
|
return i;
|
|
5575
5614
|
};
|
|
@@ -5578,17 +5617,17 @@ let Ve = class extends T {
|
|
|
5578
5617
|
super(), this.setProperties(r).append(e);
|
|
5579
5618
|
}
|
|
5580
5619
|
};
|
|
5581
|
-
Ve =
|
|
5620
|
+
Ve = Na([
|
|
5582
5621
|
b("Transition", {
|
|
5583
5622
|
effectMode: "transition",
|
|
5584
5623
|
processMode: "pausable",
|
|
5585
5624
|
duration: 2e3
|
|
5586
5625
|
})
|
|
5587
5626
|
], Ve);
|
|
5588
|
-
var
|
|
5589
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5627
|
+
var ka = Object.defineProperty, Ua = Object.getOwnPropertyDescriptor, yr = (r, e, t, s) => {
|
|
5628
|
+
for (var i = s > 1 ? void 0 : s ? Ua(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5590
5629
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5591
|
-
return s && i &&
|
|
5630
|
+
return s && i && ka(e, t, i), i;
|
|
5592
5631
|
};
|
|
5593
5632
|
let Oe = class extends Ge {
|
|
5594
5633
|
position = new C().on("update", () => this.updateGlobalTransform());
|
|
@@ -5657,21 +5696,21 @@ let Oe = class extends Ge {
|
|
|
5657
5696
|
return this.globalTransform.apply(r, e);
|
|
5658
5697
|
}
|
|
5659
5698
|
};
|
|
5660
|
-
|
|
5699
|
+
yr([
|
|
5661
5700
|
h({ internal: !0, fallback: 0 })
|
|
5662
5701
|
], Oe.prototype, "rotation", 2);
|
|
5663
|
-
|
|
5702
|
+
yr([
|
|
5664
5703
|
h({ internal: !0, fallback: 0 })
|
|
5665
5704
|
], Oe.prototype, "globalRotation", 2);
|
|
5666
|
-
Oe =
|
|
5705
|
+
Oe = yr([
|
|
5667
5706
|
b("Node2D")
|
|
5668
5707
|
], Oe);
|
|
5669
|
-
var
|
|
5670
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5708
|
+
var Ba = Object.defineProperty, La = Object.getOwnPropertyDescriptor, xr = (r, e, t, s) => {
|
|
5709
|
+
for (var i = s > 1 ? void 0 : s ? La(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5671
5710
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5672
|
-
return s && i &&
|
|
5711
|
+
return s && i && Ba(e, t, i), i;
|
|
5673
5712
|
};
|
|
5674
|
-
let
|
|
5713
|
+
let It = class extends Oe {
|
|
5675
5714
|
canvasTransform = new I();
|
|
5676
5715
|
_screenOffset = { x: 0, y: 0 };
|
|
5677
5716
|
_zoom = new C(1, 1).on("update", () => this.updateTransform());
|
|
@@ -5745,7 +5784,7 @@ let Dt = class extends Oe {
|
|
|
5745
5784
|
}
|
|
5746
5785
|
_onWheel(r) {
|
|
5747
5786
|
if (r.preventDefault(), r.ctrlKey || r.metaKey) {
|
|
5748
|
-
const e = { x: r.screenX, y: r.screenY }, t = this.toGlobal(e), s = r.ctrlKey &&
|
|
5787
|
+
const e = { x: r.screenX, y: r.screenY }, t = this.toGlobal(e), s = r.ctrlKey && Fi ? 10 : 1, i = -r.deltaY * (r.deltaMode === 1 ? 0.05 : r.deltaMode ? 1 : 2e-3) * s;
|
|
5749
5788
|
this.zoomWithWheel(i);
|
|
5750
5789
|
const o = this.toScreen(t);
|
|
5751
5790
|
this.position.add(o.x - e.x, o.y - e.y);
|
|
@@ -5786,19 +5825,19 @@ let Dt = class extends Oe {
|
|
|
5786
5825
|
};
|
|
5787
5826
|
}
|
|
5788
5827
|
};
|
|
5789
|
-
|
|
5828
|
+
xr([
|
|
5790
5829
|
h({ internal: !0, fallback: !1 })
|
|
5791
|
-
],
|
|
5792
|
-
|
|
5830
|
+
], It.prototype, "spaceKey", 2);
|
|
5831
|
+
xr([
|
|
5793
5832
|
h({ internal: !0, fallback: !1 })
|
|
5794
|
-
],
|
|
5795
|
-
|
|
5833
|
+
], It.prototype, "grabbing", 2);
|
|
5834
|
+
It = xr([
|
|
5796
5835
|
b("Camera2D", {
|
|
5797
5836
|
processMode: "disabled",
|
|
5798
5837
|
renderMode: "disabled"
|
|
5799
5838
|
})
|
|
5800
|
-
],
|
|
5801
|
-
const
|
|
5839
|
+
], It);
|
|
5840
|
+
const jr = {
|
|
5802
5841
|
brightness: 1,
|
|
5803
5842
|
contrast: 1,
|
|
5804
5843
|
grayscale: 0,
|
|
@@ -5808,13 +5847,13 @@ const Xr = {
|
|
|
5808
5847
|
saturate: 1,
|
|
5809
5848
|
sepia: 0
|
|
5810
5849
|
};
|
|
5811
|
-
function
|
|
5812
|
-
const e = new
|
|
5850
|
+
function xc(r) {
|
|
5851
|
+
const e = new fs();
|
|
5813
5852
|
if (r === "none")
|
|
5814
5853
|
return e;
|
|
5815
|
-
const t =
|
|
5816
|
-
Object.keys(
|
|
5817
|
-
t[s] = t[s] ??
|
|
5854
|
+
const t = Lt(r).reduce((s, { name: i, args: o }) => (s[i] = o[0].normalizedIntValue, s), {});
|
|
5855
|
+
Object.keys(jr).forEach((s) => {
|
|
5856
|
+
t[s] = t[s] ?? jr[s];
|
|
5818
5857
|
});
|
|
5819
5858
|
for (const s in t) {
|
|
5820
5859
|
const i = t[s];
|
|
@@ -5847,8 +5886,8 @@ function vc(r) {
|
|
|
5847
5886
|
}
|
|
5848
5887
|
return e;
|
|
5849
5888
|
}
|
|
5850
|
-
function
|
|
5851
|
-
return r = !r || r === "none" ? "" : r,
|
|
5889
|
+
function Fa(r, e, t, s = new I()) {
|
|
5890
|
+
return r = !r || r === "none" ? "" : r, Lt(r, { width: e, height: t }).reverse().forEach(({ name: i, args: o }) => {
|
|
5852
5891
|
const a = o.map((n) => n.normalizedIntValue);
|
|
5853
5892
|
switch (i) {
|
|
5854
5893
|
case "translate":
|
|
@@ -5917,7 +5956,7 @@ function Ua(r, e, t, s = new I()) {
|
|
|
5917
5956
|
}
|
|
5918
5957
|
}), s;
|
|
5919
5958
|
}
|
|
5920
|
-
function
|
|
5959
|
+
function za(r) {
|
|
5921
5960
|
const [e, t = e] = r.split(" ");
|
|
5922
5961
|
return [e, t].map((s) => {
|
|
5923
5962
|
switch (s = s.trim(), s) {
|
|
@@ -5934,11 +5973,11 @@ function Ba(r) {
|
|
|
5934
5973
|
}
|
|
5935
5974
|
});
|
|
5936
5975
|
}
|
|
5937
|
-
var
|
|
5938
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5976
|
+
var Es = Object.defineProperty, Ga = Object.getOwnPropertyDescriptor, Va = (r, e, t) => e in r ? Es(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, pe = (r, e, t, s) => {
|
|
5977
|
+
for (var i = s > 1 ? void 0 : s ? Ga(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5939
5978
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5940
|
-
return s && i &&
|
|
5941
|
-
},
|
|
5979
|
+
return s && i && Es(e, t, i), i;
|
|
5980
|
+
}, $a = (r, e, t) => Va(r, e + "", t);
|
|
5942
5981
|
let W = class extends T {
|
|
5943
5982
|
constructor(r, e = []) {
|
|
5944
5983
|
super(), this.setProperties(r).append(e);
|
|
@@ -5959,7 +5998,7 @@ let W = class extends T {
|
|
|
5959
5998
|
});
|
|
5960
5999
|
}
|
|
5961
6000
|
};
|
|
5962
|
-
|
|
6001
|
+
$a(W, "material", new E({
|
|
5963
6002
|
gl: {
|
|
5964
6003
|
vertex: `precision mediump float;
|
|
5965
6004
|
attribute vec2 position;
|
|
@@ -6023,13 +6062,13 @@ pe([
|
|
|
6023
6062
|
W = pe([
|
|
6024
6063
|
b("ColorAdjustEffect")
|
|
6025
6064
|
], W);
|
|
6026
|
-
var
|
|
6027
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6065
|
+
var Ss = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, Xa = (r, e, t) => e in r ? Ss(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ts = (r, e, t, s) => {
|
|
6066
|
+
for (var i = s > 1 ? void 0 : s ? Ha(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6028
6067
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6029
|
-
return s && i &&
|
|
6030
|
-
},
|
|
6068
|
+
return s && i && Ss(e, t, i), i;
|
|
6069
|
+
}, ja = (r, e, t) => Xa(r, e + "", t);
|
|
6031
6070
|
let $e = class extends T {
|
|
6032
|
-
_colorMatrix = new
|
|
6071
|
+
_colorMatrix = new fs();
|
|
6033
6072
|
constructor(r, e = []) {
|
|
6034
6073
|
super(), this.setProperties(r).append(e);
|
|
6035
6074
|
}
|
|
@@ -6043,7 +6082,7 @@ let $e = class extends T {
|
|
|
6043
6082
|
apply(r, e) {
|
|
6044
6083
|
if (!this.filter)
|
|
6045
6084
|
return;
|
|
6046
|
-
const t =
|
|
6085
|
+
const t = Lt(this.filter), s = this._colorMatrix.identity();
|
|
6047
6086
|
t.forEach(({ name: i, args: o }) => {
|
|
6048
6087
|
const a = o.map((n) => n.normalizedIntValue);
|
|
6049
6088
|
switch (i) {
|
|
@@ -6081,7 +6120,7 @@ let $e = class extends T {
|
|
|
6081
6120
|
});
|
|
6082
6121
|
}
|
|
6083
6122
|
};
|
|
6084
|
-
|
|
6123
|
+
ja($e, "material", new E({
|
|
6085
6124
|
gl: {
|
|
6086
6125
|
vertex: `attribute vec2 position;
|
|
6087
6126
|
attribute vec2 uv;
|
|
@@ -6108,17 +6147,17 @@ void main(void) {
|
|
|
6108
6147
|
}`
|
|
6109
6148
|
}
|
|
6110
6149
|
}));
|
|
6111
|
-
|
|
6150
|
+
Ts([
|
|
6112
6151
|
h()
|
|
6113
6152
|
], $e.prototype, "filter", 2);
|
|
6114
|
-
$e =
|
|
6153
|
+
$e = Ts([
|
|
6115
6154
|
b("ColorFilterEffect")
|
|
6116
6155
|
], $e);
|
|
6117
|
-
var
|
|
6118
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6156
|
+
var Rs = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, qa = (r, e, t) => e in r ? Rs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, wr = (r, e, t, s) => {
|
|
6157
|
+
for (var i = s > 1 ? void 0 : s ? Wa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6119
6158
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6120
|
-
return s && i &&
|
|
6121
|
-
},
|
|
6159
|
+
return s && i && Rs(e, t, i), i;
|
|
6160
|
+
}, Ya = (r, e, t) => qa(r, e + "", t);
|
|
6122
6161
|
const at = 50;
|
|
6123
6162
|
let He = class extends T {
|
|
6124
6163
|
_color = new oe();
|
|
@@ -6141,7 +6180,7 @@ let He = class extends T {
|
|
|
6141
6180
|
});
|
|
6142
6181
|
}
|
|
6143
6182
|
};
|
|
6144
|
-
|
|
6183
|
+
Ya(He, "material", new E({
|
|
6145
6184
|
gl: {
|
|
6146
6185
|
vertex: `precision mediump float;
|
|
6147
6186
|
attribute vec2 position;
|
|
@@ -6190,20 +6229,20 @@ void main(void) {
|
|
|
6190
6229
|
}`
|
|
6191
6230
|
}
|
|
6192
6231
|
}));
|
|
6193
|
-
|
|
6232
|
+
wr([
|
|
6194
6233
|
h({ default: () => [] })
|
|
6195
6234
|
], He.prototype, "colors", 2);
|
|
6196
|
-
|
|
6235
|
+
wr([
|
|
6197
6236
|
h({ fallback: 0.5 })
|
|
6198
6237
|
], He.prototype, "alpha", 2);
|
|
6199
|
-
He =
|
|
6238
|
+
He = wr([
|
|
6200
6239
|
b("ColorOverlayEffect")
|
|
6201
6240
|
], He);
|
|
6202
|
-
var
|
|
6203
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6241
|
+
var As = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, Za = (r, e, t) => e in r ? As(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Pr = (r, e, t, s) => {
|
|
6242
|
+
for (var i = s > 1 ? void 0 : s ? Ka(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6204
6243
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6205
|
-
return s && i &&
|
|
6206
|
-
},
|
|
6244
|
+
return s && i && As(e, t, i), i;
|
|
6245
|
+
}, Ja = (r, e, t) => Za(r, e + "", t);
|
|
6207
6246
|
let Xe = class extends T {
|
|
6208
6247
|
_color = new oe();
|
|
6209
6248
|
constructor(r, e = []) {
|
|
@@ -6224,7 +6263,7 @@ let Xe = class extends T {
|
|
|
6224
6263
|
});
|
|
6225
6264
|
}
|
|
6226
6265
|
};
|
|
6227
|
-
|
|
6266
|
+
Ja(Xe, "material", new E({
|
|
6228
6267
|
gl: {
|
|
6229
6268
|
vertex: `precision mediump float;
|
|
6230
6269
|
attribute vec2 position;
|
|
@@ -6259,20 +6298,20 @@ void main(void) {
|
|
|
6259
6298
|
}`
|
|
6260
6299
|
}
|
|
6261
6300
|
}));
|
|
6262
|
-
|
|
6301
|
+
Pr([
|
|
6263
6302
|
h({ default: () => [] })
|
|
6264
6303
|
], Xe.prototype, "colors", 2);
|
|
6265
|
-
|
|
6304
|
+
Pr([
|
|
6266
6305
|
h({ fallback: 0.5 })
|
|
6267
6306
|
], Xe.prototype, "epsilon", 2);
|
|
6268
|
-
Xe =
|
|
6307
|
+
Xe = Pr([
|
|
6269
6308
|
b("ColorRemoveEffect")
|
|
6270
6309
|
], Xe);
|
|
6271
|
-
var
|
|
6272
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6310
|
+
var Cs = Object.defineProperty, Qa = Object.getOwnPropertyDescriptor, en = (r, e, t) => e in r ? Cs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Er = (r, e, t, s) => {
|
|
6311
|
+
for (var i = s > 1 ? void 0 : s ? Qa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6273
6312
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6274
|
-
return s && i &&
|
|
6275
|
-
},
|
|
6313
|
+
return s && i && Cs(e, t, i), i;
|
|
6314
|
+
}, tn = (r, e, t) => en(r, e + "", t);
|
|
6276
6315
|
const st = 50;
|
|
6277
6316
|
let je = class extends T {
|
|
6278
6317
|
_color = new oe();
|
|
@@ -6307,7 +6346,7 @@ let je = class extends T {
|
|
|
6307
6346
|
});
|
|
6308
6347
|
}
|
|
6309
6348
|
};
|
|
6310
|
-
|
|
6349
|
+
tn(je, "material", new E({
|
|
6311
6350
|
gl: {
|
|
6312
6351
|
vertex: `precision mediump float;
|
|
6313
6352
|
attribute vec2 position;
|
|
@@ -6349,16 +6388,16 @@ void main(void) {
|
|
|
6349
6388
|
}`
|
|
6350
6389
|
}
|
|
6351
6390
|
}));
|
|
6352
|
-
|
|
6391
|
+
Er([
|
|
6353
6392
|
h({ default: () => [] })
|
|
6354
6393
|
], je.prototype, "colors", 2);
|
|
6355
|
-
|
|
6394
|
+
Er([
|
|
6356
6395
|
h({ fallback: 0.05 })
|
|
6357
6396
|
], je.prototype, "epsilon", 2);
|
|
6358
|
-
je =
|
|
6397
|
+
je = Er([
|
|
6359
6398
|
b("ColorReplaceEffect")
|
|
6360
6399
|
], je);
|
|
6361
|
-
const
|
|
6400
|
+
const rn = `precision highp float;
|
|
6362
6401
|
|
|
6363
6402
|
in vec2 vUv;
|
|
6364
6403
|
uniform sampler2D uTexture;
|
|
@@ -6509,12 +6548,12 @@ void main(void) {
|
|
|
6509
6548
|
gl_FragColor = color;
|
|
6510
6549
|
}
|
|
6511
6550
|
`;
|
|
6512
|
-
var
|
|
6513
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6551
|
+
var Os = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, on = (r, e, t) => e in r ? Os(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Se = (r, e, t, s) => {
|
|
6552
|
+
for (var i = s > 1 ? void 0 : s ? sn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6514
6553
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6515
|
-
return s && i &&
|
|
6516
|
-
},
|
|
6517
|
-
let
|
|
6554
|
+
return s && i && Os(e, t, i), i;
|
|
6555
|
+
}, an = (r, e, t) => on(r, e + "", t);
|
|
6556
|
+
let K = class extends T {
|
|
6518
6557
|
_watermark;
|
|
6519
6558
|
constructor(r, e = []) {
|
|
6520
6559
|
super(), this.setProperties(r).append(e);
|
|
@@ -6541,7 +6580,7 @@ let Y = class extends T {
|
|
|
6541
6580
|
this.watermarkWidth,
|
|
6542
6581
|
this.watermarkWidth * this._watermark.height / this._watermark.width
|
|
6543
6582
|
] : [0, 0], i = Math.max(s[0], s[1]);
|
|
6544
|
-
P.draw(r,
|
|
6583
|
+
P.draw(r, K.material, {
|
|
6545
6584
|
uTexture: 0,
|
|
6546
6585
|
inputSize: [e.width, e.height],
|
|
6547
6586
|
zoom: [t[0], t[4]],
|
|
@@ -6568,7 +6607,7 @@ let Y = class extends T {
|
|
|
6568
6607
|
});
|
|
6569
6608
|
}
|
|
6570
6609
|
};
|
|
6571
|
-
|
|
6610
|
+
an(K, "material", new E({
|
|
6572
6611
|
gl: {
|
|
6573
6612
|
vertex: `attribute vec2 position;
|
|
6574
6613
|
in vec2 uv;
|
|
@@ -6579,39 +6618,39 @@ void main() {
|
|
|
6579
6618
|
gl_Position = vec4(position.xy, 0.0, 1.0);
|
|
6580
6619
|
vUv = uv;
|
|
6581
6620
|
}`,
|
|
6582
|
-
fragment:
|
|
6621
|
+
fragment: rn
|
|
6583
6622
|
}
|
|
6584
6623
|
}));
|
|
6585
6624
|
Se([
|
|
6586
6625
|
h({ fallback: !1 })
|
|
6587
|
-
],
|
|
6626
|
+
], K.prototype, "checkerboard", 2);
|
|
6588
6627
|
Se([
|
|
6589
6628
|
h({ fallback: "grid" })
|
|
6590
|
-
],
|
|
6629
|
+
], K.prototype, "checkerboardStyle", 2);
|
|
6591
6630
|
Se([
|
|
6592
6631
|
h({ fallback: !1 })
|
|
6593
|
-
],
|
|
6632
|
+
], K.prototype, "pixelGrid", 2);
|
|
6594
6633
|
Se([
|
|
6595
6634
|
h()
|
|
6596
|
-
],
|
|
6635
|
+
], K.prototype, "watermark", 2);
|
|
6597
6636
|
Se([
|
|
6598
6637
|
h({ fallback: 100 })
|
|
6599
|
-
],
|
|
6638
|
+
], K.prototype, "watermarkWidth", 2);
|
|
6600
6639
|
Se([
|
|
6601
6640
|
h({ fallback: 0.05 })
|
|
6602
|
-
],
|
|
6641
|
+
], K.prototype, "watermarkAlpha", 2);
|
|
6603
6642
|
Se([
|
|
6604
6643
|
h({ fallback: 0.5236 })
|
|
6605
|
-
],
|
|
6606
|
-
|
|
6644
|
+
], K.prototype, "watermarkRotation", 2);
|
|
6645
|
+
K = Se([
|
|
6607
6646
|
b("DrawboardEffect")
|
|
6608
|
-
],
|
|
6609
|
-
var
|
|
6610
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6647
|
+
], K);
|
|
6648
|
+
var Ds = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, ln = (r, e, t) => e in r ? Ds(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Sr = (r, e, t, s) => {
|
|
6649
|
+
for (var i = s > 1 ? void 0 : s ? nn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6611
6650
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6612
|
-
return s && i &&
|
|
6613
|
-
},
|
|
6614
|
-
const
|
|
6651
|
+
return s && i && Ds(e, t, i), i;
|
|
6652
|
+
}, Is = (r, e, t) => ln(r, typeof e != "symbol" ? e + "" : e, t);
|
|
6653
|
+
const Ms = `varying vec2 vUv[9];
|
|
6615
6654
|
uniform sampler2D sampler;
|
|
6616
6655
|
|
|
6617
6656
|
void main(void) {
|
|
@@ -6668,7 +6707,7 @@ let ce = class extends T {
|
|
|
6668
6707
|
});
|
|
6669
6708
|
}
|
|
6670
6709
|
};
|
|
6671
|
-
|
|
6710
|
+
Is(ce, "materialX", new E({
|
|
6672
6711
|
gl: {
|
|
6673
6712
|
vertex: `attribute vec2 position;
|
|
6674
6713
|
attribute vec2 uv;
|
|
@@ -6687,10 +6726,10 @@ void main(void) {
|
|
|
6687
6726
|
vUv[7] = uv + vec2(3.0 * uStrength, 0.0);
|
|
6688
6727
|
vUv[8] = uv + vec2(4.0 * uStrength, 0.0);
|
|
6689
6728
|
}`,
|
|
6690
|
-
fragment:
|
|
6729
|
+
fragment: Ms
|
|
6691
6730
|
}
|
|
6692
6731
|
}));
|
|
6693
|
-
|
|
6732
|
+
Is(ce, "materialY", new E({
|
|
6694
6733
|
gl: {
|
|
6695
6734
|
vertex: `attribute vec2 position;
|
|
6696
6735
|
attribute vec2 uv;
|
|
@@ -6709,23 +6748,23 @@ void main(void) {
|
|
|
6709
6748
|
vUv[7] = uv + vec2(0.0, 3.0 * uStrength);
|
|
6710
6749
|
vUv[8] = uv + vec2(0.0, 4.0 * uStrength);
|
|
6711
6750
|
}`,
|
|
6712
|
-
fragment:
|
|
6751
|
+
fragment: Ms
|
|
6713
6752
|
}
|
|
6714
6753
|
}));
|
|
6715
|
-
|
|
6754
|
+
Sr([
|
|
6716
6755
|
h({ fallback: 4 })
|
|
6717
6756
|
], ce.prototype, "strength", 2);
|
|
6718
|
-
|
|
6757
|
+
Sr([
|
|
6719
6758
|
h({ fallback: 3 })
|
|
6720
6759
|
], ce.prototype, "quality", 2);
|
|
6721
|
-
ce =
|
|
6760
|
+
ce = Sr([
|
|
6722
6761
|
b("GaussianBlurEffect")
|
|
6723
6762
|
], ce);
|
|
6724
|
-
var
|
|
6725
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6763
|
+
var Ns = Object.defineProperty, cn = Object.getOwnPropertyDescriptor, hn = (r, e, t) => e in r ? Ns(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ke = (r, e, t, s) => {
|
|
6764
|
+
for (var i = s > 1 ? void 0 : s ? cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6726
6765
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6727
|
-
return s && i &&
|
|
6728
|
-
},
|
|
6766
|
+
return s && i && Ns(e, t, i), i;
|
|
6767
|
+
}, un = (r, e, t) => hn(r, e + "", t);
|
|
6729
6768
|
let re = class extends T {
|
|
6730
6769
|
blurEffect = new ce();
|
|
6731
6770
|
viewport3 = new j();
|
|
@@ -6743,15 +6782,15 @@ let re = class extends T {
|
|
|
6743
6782
|
uInputSize: [e.width, e.height, 1 / e.width, 1 / e.height]
|
|
6744
6783
|
});
|
|
6745
6784
|
}), this.blurEffect.strength = this.blur, this.blurEffect.apply(r, this.viewport3), e.redraw(r, () => {
|
|
6746
|
-
this.viewport3.texture.activate(r, 1), P.draw(r,
|
|
6785
|
+
this.viewport3.texture.activate(r, 1), P.draw(r, Dt.instance, {
|
|
6747
6786
|
sampler: 1
|
|
6748
|
-
}), this.shadowOnly || P.draw(r,
|
|
6787
|
+
}), this.shadowOnly || P.draw(r, Dt.instance, {
|
|
6749
6788
|
sampler: 0
|
|
6750
6789
|
}), r.texture.unbind(1);
|
|
6751
6790
|
});
|
|
6752
6791
|
}
|
|
6753
6792
|
};
|
|
6754
|
-
|
|
6793
|
+
un(re, "material", new E({
|
|
6755
6794
|
gl: {
|
|
6756
6795
|
vertex: `precision mediump float;
|
|
6757
6796
|
attribute vec2 position;
|
|
@@ -6795,11 +6834,11 @@ Ke([
|
|
|
6795
6834
|
re = Ke([
|
|
6796
6835
|
b("DropShadowEffect")
|
|
6797
6836
|
], re);
|
|
6798
|
-
var
|
|
6799
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6837
|
+
var ks = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, fn = (r, e, t) => e in r ? ks(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Us = (r, e, t, s) => {
|
|
6838
|
+
for (var i = s > 1 ? void 0 : s ? dn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6800
6839
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6801
|
-
return s && i &&
|
|
6802
|
-
},
|
|
6840
|
+
return s && i && ks(e, t, i), i;
|
|
6841
|
+
}, pn = (r, e, t) => fn(r, e + "", t);
|
|
6803
6842
|
let ct = class extends T {
|
|
6804
6843
|
constructor(r, e = []) {
|
|
6805
6844
|
super(), this.setProperties(r).append(e);
|
|
@@ -6814,7 +6853,7 @@ let ct = class extends T {
|
|
|
6814
6853
|
});
|
|
6815
6854
|
}
|
|
6816
6855
|
};
|
|
6817
|
-
|
|
6856
|
+
pn(ct, "material", new E({
|
|
6818
6857
|
gl: {
|
|
6819
6858
|
vertex: `precision mediump float;
|
|
6820
6859
|
attribute vec2 position;
|
|
@@ -6842,17 +6881,17 @@ void main(void) {
|
|
|
6842
6881
|
}`
|
|
6843
6882
|
}
|
|
6844
6883
|
}));
|
|
6845
|
-
|
|
6884
|
+
Us([
|
|
6846
6885
|
h({ fallback: 5 })
|
|
6847
6886
|
], ct.prototype, "strength", 2);
|
|
6848
|
-
ct =
|
|
6887
|
+
ct = Us([
|
|
6849
6888
|
b("EmbossEffect")
|
|
6850
6889
|
], ct);
|
|
6851
|
-
var
|
|
6852
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6890
|
+
var Bs = Object.defineProperty, _n = Object.getOwnPropertyDescriptor, mn = (r, e, t) => e in r ? Bs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, se = (r, e, t, s) => {
|
|
6891
|
+
for (var i = s > 1 ? void 0 : s ? _n(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6853
6892
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6854
|
-
return s && i &&
|
|
6855
|
-
},
|
|
6893
|
+
return s && i && Bs(e, t, i), i;
|
|
6894
|
+
}, gn = (r, e, t) => mn(r, e + "", t);
|
|
6856
6895
|
let G = class extends T {
|
|
6857
6896
|
_canvas;
|
|
6858
6897
|
_texture;
|
|
@@ -6896,7 +6935,7 @@ let G = class extends T {
|
|
|
6896
6935
|
});
|
|
6897
6936
|
}
|
|
6898
6937
|
};
|
|
6899
|
-
|
|
6938
|
+
gn(G, "material", new E({
|
|
6900
6939
|
gl: {
|
|
6901
6940
|
vertex: `in vec2 position;
|
|
6902
6941
|
in vec2 uv;
|
|
@@ -7031,12 +7070,12 @@ se([
|
|
|
7031
7070
|
G = se([
|
|
7032
7071
|
b("GlitchEffect")
|
|
7033
7072
|
], G);
|
|
7034
|
-
var
|
|
7035
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7073
|
+
var Ls = Object.defineProperty, vn = Object.getOwnPropertyDescriptor, bn = (r, e, t) => e in r ? Ls(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Te = (r, e, t, s) => {
|
|
7074
|
+
for (var i = s > 1 ? void 0 : s ? vn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7036
7075
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7037
|
-
return s && i &&
|
|
7038
|
-
},
|
|
7039
|
-
const
|
|
7076
|
+
return s && i && Ls(e, t, i), i;
|
|
7077
|
+
}, yn = (r, e, t) => bn(r, e + "", t);
|
|
7078
|
+
const xn = `vec3 mod289(vec3 x) {
|
|
7040
7079
|
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
7041
7080
|
}
|
|
7042
7081
|
vec4 mod289(vec4 x) {
|
|
@@ -7123,14 +7162,14 @@ float turb(vec3 P, vec3 rep, float lacunarity, float gain) {
|
|
|
7123
7162
|
}
|
|
7124
7163
|
return abs(sum);
|
|
7125
7164
|
}`;
|
|
7126
|
-
let
|
|
7165
|
+
let Z = class extends T {
|
|
7127
7166
|
constructor(r, e = []) {
|
|
7128
7167
|
super(), this.setProperties(r).append(e);
|
|
7129
7168
|
}
|
|
7130
7169
|
apply(r, e) {
|
|
7131
7170
|
const t = this.angle * (Math.PI / 180), s = this.parallel ? [Math.cos(t), Math.sin(t)] : this.center;
|
|
7132
7171
|
e.redraw(r, () => {
|
|
7133
|
-
P.draw(r,
|
|
7172
|
+
P.draw(r, Z.material, {
|
|
7134
7173
|
sampler: 0,
|
|
7135
7174
|
uDimensions: [e.width, e.height],
|
|
7136
7175
|
uParallel: this.parallel ? 1 : 0,
|
|
@@ -7147,7 +7186,7 @@ let K = class extends T {
|
|
|
7147
7186
|
});
|
|
7148
7187
|
}
|
|
7149
7188
|
};
|
|
7150
|
-
|
|
7189
|
+
yn(Z, "material", new E({
|
|
7151
7190
|
gl: {
|
|
7152
7191
|
vertex: `precision mediump float;
|
|
7153
7192
|
attribute vec2 position;
|
|
@@ -7168,7 +7207,7 @@ uniform float uTime;
|
|
|
7168
7207
|
uniform vec3 uRay;
|
|
7169
7208
|
uniform vec4 uInputSize;
|
|
7170
7209
|
|
|
7171
|
-
${
|
|
7210
|
+
${xn}
|
|
7172
7211
|
|
|
7173
7212
|
void main(void) {
|
|
7174
7213
|
bool uParallel = uParallel > 0.5;
|
|
@@ -7204,34 +7243,34 @@ void main(void) {
|
|
|
7204
7243
|
}));
|
|
7205
7244
|
Te([
|
|
7206
7245
|
h({ fallback: 0 })
|
|
7207
|
-
],
|
|
7246
|
+
], Z.prototype, "time", 2);
|
|
7208
7247
|
Te([
|
|
7209
7248
|
h({ fallback: 30 })
|
|
7210
|
-
],
|
|
7249
|
+
], Z.prototype, "angle", 2);
|
|
7211
7250
|
Te([
|
|
7212
7251
|
h({ fallback: 0.5 })
|
|
7213
|
-
],
|
|
7252
|
+
], Z.prototype, "gain", 2);
|
|
7214
7253
|
Te([
|
|
7215
7254
|
h({ fallback: 2.5 })
|
|
7216
|
-
],
|
|
7255
|
+
], Z.prototype, "lacunarity", 2);
|
|
7217
7256
|
Te([
|
|
7218
7257
|
h({ fallback: !0 })
|
|
7219
|
-
],
|
|
7258
|
+
], Z.prototype, "parallel", 2);
|
|
7220
7259
|
Te([
|
|
7221
7260
|
h({ default: () => [0, 0] })
|
|
7222
|
-
],
|
|
7261
|
+
], Z.prototype, "center", 2);
|
|
7223
7262
|
Te([
|
|
7224
7263
|
h({ fallback: 1 })
|
|
7225
|
-
],
|
|
7226
|
-
|
|
7264
|
+
], Z.prototype, "alpha", 2);
|
|
7265
|
+
Z = Te([
|
|
7227
7266
|
b("GodrayEffect")
|
|
7228
|
-
],
|
|
7229
|
-
var
|
|
7230
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7267
|
+
], Z);
|
|
7268
|
+
var wn = Object.defineProperty, Pn = Object.getOwnPropertyDescriptor, $t = (r, e, t, s) => {
|
|
7269
|
+
for (var i = s > 1 ? void 0 : s ? Pn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7231
7270
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7232
|
-
return s && i &&
|
|
7271
|
+
return s && i && wn(e, t, i), i;
|
|
7233
7272
|
};
|
|
7234
|
-
const
|
|
7273
|
+
const En = `varying vec2 vUv;
|
|
7235
7274
|
uniform sampler2D sampler;
|
|
7236
7275
|
uniform vec2 uOffset;
|
|
7237
7276
|
|
|
@@ -7243,7 +7282,7 @@ void main(void) {
|
|
|
7243
7282
|
color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y - uOffset.y));
|
|
7244
7283
|
color *= 0.25;
|
|
7245
7284
|
gl_FragColor = color;
|
|
7246
|
-
}`,
|
|
7285
|
+
}`, Sn = `precision highp float;
|
|
7247
7286
|
varying vec2 vUv;
|
|
7248
7287
|
uniform sampler2D sampler;
|
|
7249
7288
|
uniform vec2 uOffset;
|
|
@@ -7270,7 +7309,7 @@ void main() {
|
|
|
7270
7309
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7271
7310
|
vUv = uv;
|
|
7272
7311
|
}`,
|
|
7273
|
-
fragment: r?.clamp ?
|
|
7312
|
+
fragment: r?.clamp ? Sn : En
|
|
7274
7313
|
}
|
|
7275
7314
|
}), this.setProperties(r).append(e), this._generateKernels();
|
|
7276
7315
|
}
|
|
@@ -7310,23 +7349,23 @@ void main() {
|
|
|
7310
7349
|
});
|
|
7311
7350
|
}
|
|
7312
7351
|
};
|
|
7313
|
-
|
|
7352
|
+
$t([
|
|
7314
7353
|
h({ fallback: 4 })
|
|
7315
7354
|
], ht.prototype, "strength", 2);
|
|
7316
|
-
|
|
7355
|
+
$t([
|
|
7317
7356
|
h({ fallback: 3 })
|
|
7318
7357
|
], ht.prototype, "quality", 2);
|
|
7319
|
-
|
|
7358
|
+
$t([
|
|
7320
7359
|
h({ default: () => [1, 1] })
|
|
7321
7360
|
], ht.prototype, "pixelSize", 2);
|
|
7322
|
-
ht =
|
|
7361
|
+
ht = $t([
|
|
7323
7362
|
b("KawaseBlurEffect")
|
|
7324
7363
|
], ht);
|
|
7325
|
-
var
|
|
7326
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7364
|
+
var Fs = Object.defineProperty, Tn = Object.getOwnPropertyDescriptor, Rn = (r, e, t) => e in r ? Fs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Tr = (r, e, t, s) => {
|
|
7365
|
+
for (var i = s > 1 ? void 0 : s ? Tn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7327
7366
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7328
|
-
return s && i &&
|
|
7329
|
-
},
|
|
7367
|
+
return s && i && Fs(e, t, i), i;
|
|
7368
|
+
}, An = (r, e, t) => Rn(r, e + "", t);
|
|
7330
7369
|
let De = class extends T {
|
|
7331
7370
|
constructor(r, e = []) {
|
|
7332
7371
|
super(), this.setProperties(r).append(e);
|
|
@@ -7354,7 +7393,7 @@ let De = class extends T {
|
|
|
7354
7393
|
});
|
|
7355
7394
|
}
|
|
7356
7395
|
};
|
|
7357
|
-
|
|
7396
|
+
An(De, "material", new E({
|
|
7358
7397
|
gl: {
|
|
7359
7398
|
vertex: `attribute vec2 position;
|
|
7360
7399
|
in vec2 uv;
|
|
@@ -7389,21 +7428,21 @@ void main(void) {
|
|
|
7389
7428
|
}`
|
|
7390
7429
|
}
|
|
7391
7430
|
}));
|
|
7392
|
-
|
|
7431
|
+
Tr([
|
|
7393
7432
|
h({ internal: !0 })
|
|
7394
7433
|
], De.prototype, "texture", 2);
|
|
7395
|
-
|
|
7434
|
+
Tr([
|
|
7396
7435
|
h({ fallback: "" })
|
|
7397
7436
|
], De.prototype, "src", 2);
|
|
7398
|
-
De =
|
|
7437
|
+
De = Tr([
|
|
7399
7438
|
b("MaskEffect")
|
|
7400
7439
|
], De);
|
|
7401
|
-
var
|
|
7402
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7440
|
+
var zs = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, On = (r, e, t) => e in r ? zs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Re = (r, e, t, s) => {
|
|
7441
|
+
for (var i = s > 1 ? void 0 : s ? Cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7403
7442
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7404
|
-
return s && i &&
|
|
7405
|
-
},
|
|
7406
|
-
const
|
|
7443
|
+
return s && i && zs(e, t, i), i;
|
|
7444
|
+
}, Gs = (r, e, t) => On(r, typeof e != "symbol" ? e + "" : e, t);
|
|
7445
|
+
const Dn = `precision highp float;
|
|
7407
7446
|
varying vec2 vUv;
|
|
7408
7447
|
uniform sampler2D sampler;
|
|
7409
7448
|
uniform vec2 uThickness;
|
|
@@ -7459,7 +7498,7 @@ void main() {
|
|
|
7459
7498
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7460
7499
|
vUv = uv;
|
|
7461
7500
|
}`,
|
|
7462
|
-
fragment:
|
|
7501
|
+
fragment: Dn.replace(
|
|
7463
7502
|
/\{ANGLE_STEP\}/,
|
|
7464
7503
|
L.getAngleStep(this.quality).toFixed(7)
|
|
7465
7504
|
)
|
|
@@ -7483,8 +7522,8 @@ void main() {
|
|
|
7483
7522
|
});
|
|
7484
7523
|
}
|
|
7485
7524
|
};
|
|
7486
|
-
|
|
7487
|
-
|
|
7525
|
+
Gs(L, "MIN_SAMPLES", 1);
|
|
7526
|
+
Gs(L, "MAX_SAMPLES", 100);
|
|
7488
7527
|
Re([
|
|
7489
7528
|
h({ fallback: "#000000ff" })
|
|
7490
7529
|
], L.prototype, "color", 2);
|
|
@@ -7509,11 +7548,11 @@ Re([
|
|
|
7509
7548
|
L = Re([
|
|
7510
7549
|
b("OutlineEffect")
|
|
7511
7550
|
], L);
|
|
7512
|
-
var
|
|
7513
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7551
|
+
var Vs = Object.defineProperty, In = Object.getOwnPropertyDescriptor, Mn = (r, e, t) => e in r ? Vs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, $s = (r, e, t, s) => {
|
|
7552
|
+
for (var i = s > 1 ? void 0 : s ? In(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7514
7553
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7515
|
-
return s && i &&
|
|
7516
|
-
},
|
|
7554
|
+
return s && i && Vs(e, t, i), i;
|
|
7555
|
+
}, Nn = (r, e, t) => Mn(r, e + "", t);
|
|
7517
7556
|
let ut = class extends T {
|
|
7518
7557
|
constructor(r, e = []) {
|
|
7519
7558
|
super(), this.setProperties(r).append(e);
|
|
@@ -7535,7 +7574,7 @@ let ut = class extends T {
|
|
|
7535
7574
|
});
|
|
7536
7575
|
}
|
|
7537
7576
|
};
|
|
7538
|
-
|
|
7577
|
+
Nn(ut, "material", new E({
|
|
7539
7578
|
gl: {
|
|
7540
7579
|
vertex: `attribute vec2 position;
|
|
7541
7580
|
attribute vec2 uv;
|
|
@@ -7557,17 +7596,17 @@ void main(void) {
|
|
|
7557
7596
|
}`
|
|
7558
7597
|
}
|
|
7559
7598
|
}));
|
|
7560
|
-
|
|
7599
|
+
$s([
|
|
7561
7600
|
h({ fallback: 10 })
|
|
7562
7601
|
], ut.prototype, "strength", 2);
|
|
7563
|
-
ut =
|
|
7602
|
+
ut = $s([
|
|
7564
7603
|
b("PixelateEffect")
|
|
7565
7604
|
], ut);
|
|
7566
|
-
var
|
|
7567
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7605
|
+
var Hs = Object.defineProperty, kn = Object.getOwnPropertyDescriptor, Un = (r, e, t) => e in r ? Hs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, mt = (r, e, t, s) => {
|
|
7606
|
+
for (var i = s > 1 ? void 0 : s ? kn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7568
7607
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7569
|
-
return s && i &&
|
|
7570
|
-
},
|
|
7608
|
+
return s && i && Hs(e, t, i), i;
|
|
7609
|
+
}, Bn = (r, e, t) => Un(r, e + "", t);
|
|
7571
7610
|
let xe = class extends T {
|
|
7572
7611
|
constructor(r, e = []) {
|
|
7573
7612
|
super(), this.setProperties(r).append(e);
|
|
@@ -7585,7 +7624,7 @@ let xe = class extends T {
|
|
|
7585
7624
|
});
|
|
7586
7625
|
}
|
|
7587
7626
|
};
|
|
7588
|
-
|
|
7627
|
+
Bn(xe, "material", new E({
|
|
7589
7628
|
gl: {
|
|
7590
7629
|
vertex: `attribute vec2 position;
|
|
7591
7630
|
attribute vec2 uv;
|
|
@@ -7686,7 +7725,7 @@ mt([
|
|
|
7686
7725
|
xe = mt([
|
|
7687
7726
|
b("ZoomBlurEffect")
|
|
7688
7727
|
], xe);
|
|
7689
|
-
function
|
|
7728
|
+
function Mt(r, e) {
|
|
7690
7729
|
const { x: t, y: s, width: i, height: o } = e;
|
|
7691
7730
|
let a = !1;
|
|
7692
7731
|
const n = new I().translate(-t, -s).scale(1 / i, 1 / o);
|
|
@@ -7732,10 +7771,10 @@ function It(r, e) {
|
|
|
7732
7771
|
}
|
|
7733
7772
|
};
|
|
7734
7773
|
}
|
|
7735
|
-
var
|
|
7774
|
+
var Ln = Object.defineProperty, J = (r, e, t, s) => {
|
|
7736
7775
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7737
7776
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7738
|
-
return i &&
|
|
7777
|
+
return i && Ln(e, t, i), i;
|
|
7739
7778
|
};
|
|
7740
7779
|
class F extends Pe {
|
|
7741
7780
|
constructor(e) {
|
|
@@ -7748,7 +7787,7 @@ class F extends Pe {
|
|
|
7748
7787
|
}
|
|
7749
7788
|
setProperties(e) {
|
|
7750
7789
|
return this._setProperties(
|
|
7751
|
-
V(e) ? void 0 :
|
|
7790
|
+
V(e) ? void 0 : li(e)
|
|
7752
7791
|
);
|
|
7753
7792
|
}
|
|
7754
7793
|
_updateProperty(e, t, s) {
|
|
@@ -7772,7 +7811,7 @@ class F extends Pe {
|
|
|
7772
7811
|
}
|
|
7773
7812
|
async loadTexture() {
|
|
7774
7813
|
if (this.linearGradient || this.radialGradient)
|
|
7775
|
-
this.texture = new
|
|
7814
|
+
this.texture = new Gt(
|
|
7776
7815
|
this.linearGradient ?? this.radialGradient,
|
|
7777
7816
|
this.parent.size.width,
|
|
7778
7817
|
this.parent.size.height
|
|
@@ -7799,9 +7838,9 @@ class F extends Pe {
|
|
|
7799
7838
|
let i = {
|
|
7800
7839
|
size: { width: e, height: t }
|
|
7801
7840
|
};
|
|
7802
|
-
this.image === "viewport" ? s.fillStyle = new
|
|
7841
|
+
this.image === "viewport" ? s.fillStyle = new br() : (i = {
|
|
7803
7842
|
...i,
|
|
7804
|
-
...
|
|
7843
|
+
...Mt(this, { x: 0, y: 0, width: e, height: t })
|
|
7805
7844
|
}, s.fillStyle = this.animatedTexture?.currentFrame.texture ?? this.texture ?? this.color ?? "#000000FF"), s.fill(i);
|
|
7806
7845
|
}
|
|
7807
7846
|
_getFrameCurrentTime() {
|
|
@@ -7862,15 +7901,15 @@ J([
|
|
|
7862
7901
|
J([
|
|
7863
7902
|
h()
|
|
7864
7903
|
], F.prototype, "opacity");
|
|
7865
|
-
var
|
|
7904
|
+
var Fn = Object.defineProperty, zn = (r, e, t, s) => {
|
|
7866
7905
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7867
7906
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7868
|
-
return i &&
|
|
7907
|
+
return i && Fn(e, t, i), i;
|
|
7869
7908
|
};
|
|
7870
|
-
class
|
|
7909
|
+
class Xs extends F {
|
|
7871
7910
|
setProperties(e) {
|
|
7872
7911
|
return super._setProperties(
|
|
7873
|
-
V(e) ? void 0 :
|
|
7912
|
+
V(e) ? void 0 : ci(e)
|
|
7874
7913
|
);
|
|
7875
7914
|
}
|
|
7876
7915
|
_updateProperty(e, t, s) {
|
|
@@ -7881,18 +7920,18 @@ class Hs extends F {
|
|
|
7881
7920
|
}
|
|
7882
7921
|
}
|
|
7883
7922
|
}
|
|
7884
|
-
|
|
7923
|
+
zn([
|
|
7885
7924
|
h()
|
|
7886
|
-
],
|
|
7887
|
-
var
|
|
7925
|
+
], Xs.prototype, "fillWithShape");
|
|
7926
|
+
var Gn = Object.defineProperty, Vn = (r, e, t, s) => {
|
|
7888
7927
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7889
7928
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7890
|
-
return i &&
|
|
7929
|
+
return i && Gn(e, t, i), i;
|
|
7891
7930
|
};
|
|
7892
|
-
class
|
|
7931
|
+
class js extends F {
|
|
7893
7932
|
setProperties(e) {
|
|
7894
7933
|
return super._setProperties(
|
|
7895
|
-
V(e) ? void 0 :
|
|
7934
|
+
V(e) ? void 0 : hi(e)
|
|
7896
7935
|
);
|
|
7897
7936
|
}
|
|
7898
7937
|
_updateProperty(e, t, s) {
|
|
@@ -7903,18 +7942,18 @@ class Xs extends F {
|
|
|
7903
7942
|
}
|
|
7904
7943
|
}
|
|
7905
7944
|
}
|
|
7906
|
-
|
|
7945
|
+
Vn([
|
|
7907
7946
|
h()
|
|
7908
|
-
],
|
|
7909
|
-
var
|
|
7947
|
+
], js.prototype, "fillWithShape");
|
|
7948
|
+
var $n = Object.defineProperty, gt = (r, e, t, s) => {
|
|
7910
7949
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7911
7950
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7912
|
-
return i &&
|
|
7951
|
+
return i && $n(e, t, i), i;
|
|
7913
7952
|
};
|
|
7914
7953
|
class Ze extends F {
|
|
7915
7954
|
setProperties(e) {
|
|
7916
7955
|
return super._setProperties(
|
|
7917
|
-
V(e) ? void 0 :
|
|
7956
|
+
V(e) ? void 0 : ui(e)
|
|
7918
7957
|
);
|
|
7919
7958
|
}
|
|
7920
7959
|
_updateProperty(e, t, s) {
|
|
@@ -7933,8 +7972,8 @@ class Ze extends F {
|
|
|
7933
7972
|
}
|
|
7934
7973
|
draw() {
|
|
7935
7974
|
const { width: e, height: t } = this.parent.size, s = this.parent.context;
|
|
7936
|
-
this.image === "viewport" ? s.strokeStyle = new
|
|
7937
|
-
...
|
|
7975
|
+
this.image === "viewport" ? s.strokeStyle = new br() : s.strokeStyle = this.texture ?? this.color ?? "#000000FF", s.lineWidth = this.width || 1, s.lineCap = this.lineCap, s.lineJoin = this.lineJoin, s.stroke({
|
|
7976
|
+
...Mt(this, { x: 0, y: 0, width: e, height: t })
|
|
7938
7977
|
});
|
|
7939
7978
|
}
|
|
7940
7979
|
}
|
|
@@ -7953,10 +7992,10 @@ gt([
|
|
|
7953
7992
|
gt([
|
|
7954
7993
|
h({ fallback: "miter" })
|
|
7955
7994
|
], Ze.prototype, "lineJoin");
|
|
7956
|
-
var
|
|
7995
|
+
var Hn = Object.defineProperty, vt = (r, e, t, s) => {
|
|
7957
7996
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7958
7997
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7959
|
-
return i &&
|
|
7998
|
+
return i && Hn(e, t, i), i;
|
|
7960
7999
|
};
|
|
7961
8000
|
class Je extends Pe {
|
|
7962
8001
|
constructor(e) {
|
|
@@ -7964,7 +8003,7 @@ class Je extends Pe {
|
|
|
7964
8003
|
}
|
|
7965
8004
|
setProperties(e) {
|
|
7966
8005
|
return super.setProperties(
|
|
7967
|
-
V(e) ? void 0 :
|
|
8006
|
+
V(e) ? void 0 : di(e)
|
|
7968
8007
|
);
|
|
7969
8008
|
}
|
|
7970
8009
|
_updateProperty(e, t, s) {
|
|
@@ -7998,19 +8037,19 @@ vt([
|
|
|
7998
8037
|
vt([
|
|
7999
8038
|
h({ fallback: 0 })
|
|
8000
8039
|
], Je.prototype, "offsetX");
|
|
8001
|
-
var
|
|
8040
|
+
var Xn = Object.defineProperty, bt = (r, e, t, s) => {
|
|
8002
8041
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8003
8042
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8004
|
-
return i &&
|
|
8043
|
+
return i && Xn(e, t, i), i;
|
|
8005
8044
|
};
|
|
8006
8045
|
class Qe extends Pe {
|
|
8007
8046
|
constructor(e) {
|
|
8008
8047
|
super(), this.parent = e, this._updatePath2DSet();
|
|
8009
8048
|
}
|
|
8010
|
-
_path2DSet = new
|
|
8049
|
+
_path2DSet = new Pi();
|
|
8011
8050
|
setProperties(e) {
|
|
8012
8051
|
return super.setProperties(
|
|
8013
|
-
V(e) ? void 0 :
|
|
8052
|
+
V(e) ? void 0 : fi(e)
|
|
8014
8053
|
);
|
|
8015
8054
|
}
|
|
8016
8055
|
_updateProperty(e, t, s) {
|
|
@@ -8026,11 +8065,11 @@ class Qe extends Pe {
|
|
|
8026
8065
|
_updatePath2DSet() {
|
|
8027
8066
|
let e;
|
|
8028
8067
|
if (this.svg) {
|
|
8029
|
-
const a =
|
|
8030
|
-
this._path2DSet =
|
|
8068
|
+
const a = Ei(this.svg);
|
|
8069
|
+
this._path2DSet = Si(a), e = this._path2DSet.viewBox;
|
|
8031
8070
|
} else
|
|
8032
8071
|
this.paths?.forEach((a, n) => {
|
|
8033
|
-
const { data: l, ...c } = a, u = new
|
|
8072
|
+
const { data: l, ...c } = a, u = new At();
|
|
8034
8073
|
u.style = c, u.addData(l), this._path2DSet.paths[n] = u;
|
|
8035
8074
|
});
|
|
8036
8075
|
if (!e) {
|
|
@@ -8039,14 +8078,14 @@ class Qe extends Pe {
|
|
|
8039
8078
|
}
|
|
8040
8079
|
const [t, s, i, o] = e;
|
|
8041
8080
|
this._path2DSet.paths.forEach((a) => {
|
|
8042
|
-
a.applyTransform(new
|
|
8081
|
+
a.applyTransform(new kr().translate(-t, -s).scale(1 / i, 1 / o));
|
|
8043
8082
|
});
|
|
8044
8083
|
}
|
|
8045
8084
|
draw(e = !1) {
|
|
8046
8085
|
if (!e && this.enabled && this._path2DSet.paths.length) {
|
|
8047
8086
|
const t = this.parent.context, { width: s, height: i } = this.parent.size;
|
|
8048
8087
|
this._path2DSet.paths.forEach((o) => {
|
|
8049
|
-
t.addPath(o.clone().applyTransform(new
|
|
8088
|
+
t.addPath(o.clone().applyTransform(new kr().scale(s, i)));
|
|
8050
8089
|
});
|
|
8051
8090
|
} else
|
|
8052
8091
|
this._drawRect();
|
|
@@ -8071,39 +8110,39 @@ bt([
|
|
|
8071
8110
|
bt([
|
|
8072
8111
|
h()
|
|
8073
8112
|
], Qe.prototype, "paths");
|
|
8074
|
-
class
|
|
8113
|
+
class ar extends he {
|
|
8075
8114
|
constructor(e) {
|
|
8076
8115
|
super(), this.setProperties(e);
|
|
8077
8116
|
}
|
|
8078
8117
|
}
|
|
8079
|
-
const
|
|
8080
|
-
...
|
|
8118
|
+
const Wr = {
|
|
8119
|
+
...pi(),
|
|
8081
8120
|
left: 0,
|
|
8082
8121
|
top: 0,
|
|
8083
8122
|
width: 0,
|
|
8084
8123
|
height: 0
|
|
8085
8124
|
};
|
|
8086
|
-
for (const r in
|
|
8087
|
-
|
|
8088
|
-
var
|
|
8125
|
+
for (const r in Wr)
|
|
8126
|
+
ts(ar, r, { fallback: Wr[r] });
|
|
8127
|
+
var jn = Object.defineProperty, _e = (r, e, t, s) => {
|
|
8089
8128
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8090
8129
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8091
|
-
return i &&
|
|
8130
|
+
return i && jn(e, t, i), i;
|
|
8092
8131
|
};
|
|
8093
8132
|
class ie extends Pe {
|
|
8094
8133
|
constructor(e) {
|
|
8095
|
-
super(), this.parent = e, this.base = new
|
|
8134
|
+
super(), this.parent = e, this.base = new Ti(), this.base.setPropertyAccessor(this);
|
|
8096
8135
|
}
|
|
8097
8136
|
base;
|
|
8098
8137
|
_autoDrawMode;
|
|
8099
8138
|
_autoDrawThreshold = 100;
|
|
8100
|
-
_texture = new
|
|
8139
|
+
_texture = new xs({
|
|
8101
8140
|
mipmap: !0
|
|
8102
8141
|
});
|
|
8103
8142
|
_textureMap = /* @__PURE__ */ new Map();
|
|
8104
8143
|
setProperties(e) {
|
|
8105
8144
|
return super.setProperties(
|
|
8106
|
-
V(e) ? void 0 :
|
|
8145
|
+
V(e) ? void 0 : _i(e)
|
|
8107
8146
|
);
|
|
8108
8147
|
}
|
|
8109
8148
|
_updateProperty(e, t, s) {
|
|
@@ -8124,7 +8163,7 @@ class ie extends Pe {
|
|
|
8124
8163
|
}
|
|
8125
8164
|
}
|
|
8126
8165
|
update() {
|
|
8127
|
-
this.base.fonts = this.base.fonts ?? this.parent.tree?.fonts, this.base.update(), this._texture.width = Math.
|
|
8166
|
+
this.base.fonts = this.base.fonts ?? this.parent.tree?.fonts, this.base.update(), this._texture.width = Math.ceil(this.base.boundingBox.width), this._texture.height = Math.ceil(this.base.boundingBox.height), this.base.render({
|
|
8128
8167
|
view: this._texture.source,
|
|
8129
8168
|
pixelRatio: this._texture.pixelRatio
|
|
8130
8169
|
}), this._texture.requestUpdate("source"), this.parent.requestRender();
|
|
@@ -8136,17 +8175,17 @@ class ie extends Pe {
|
|
|
8136
8175
|
const i = [];
|
|
8137
8176
|
if (t.fragments.forEach((o, a) => {
|
|
8138
8177
|
if (o.characters.length) {
|
|
8139
|
-
const n =
|
|
8178
|
+
const n = Kt.from(
|
|
8140
8179
|
...o.characters.map((l) => l.compatibleGlyphBox)
|
|
8141
8180
|
);
|
|
8142
8181
|
this._updateTexture(`${s}.${a}.fill`, o.fill, n), this._updateTexture(`${s}.${a}.outline`, o.outline, n), i.push(n);
|
|
8143
8182
|
}
|
|
8144
8183
|
}), i.length) {
|
|
8145
|
-
const o =
|
|
8184
|
+
const o = Kt.from(...i);
|
|
8146
8185
|
this._updateTexture(`${s}.fill`, t.fill, o), this._updateTexture(`${s}.outline`, t.outline, o), e.push(o);
|
|
8147
8186
|
}
|
|
8148
8187
|
}), e.length) {
|
|
8149
|
-
const t =
|
|
8188
|
+
const t = Kt.from(...e);
|
|
8150
8189
|
this._updateTexture("fill", this.fill, t), this._updateTexture("outline", this.outline, t);
|
|
8151
8190
|
}
|
|
8152
8191
|
}
|
|
@@ -8157,14 +8196,14 @@ class ie extends Pe {
|
|
|
8157
8196
|
}), this.parent.requestRender());
|
|
8158
8197
|
}
|
|
8159
8198
|
async _loadTexture(e, t) {
|
|
8160
|
-
return e.linearGradient || e.radialGradient ? new
|
|
8199
|
+
return e.linearGradient || e.radialGradient ? new Gt(
|
|
8161
8200
|
e.linearGradient ?? e.radialGradient,
|
|
8162
8201
|
t.width,
|
|
8163
8202
|
t.height
|
|
8164
8203
|
) : V(e.image) ? void 0 : (this.parent.tree?.log(`load image ${e.image}`), await $.texture.load(e.image));
|
|
8165
8204
|
}
|
|
8166
8205
|
setContent(e) {
|
|
8167
|
-
this.content =
|
|
8206
|
+
this.content = mi(e);
|
|
8168
8207
|
}
|
|
8169
8208
|
measure() {
|
|
8170
8209
|
return this.update(), this.base.measure();
|
|
@@ -8190,13 +8229,13 @@ class ie extends Pe {
|
|
|
8190
8229
|
this.base.pathSets.forEach((t) => {
|
|
8191
8230
|
t.paths.forEach((s) => {
|
|
8192
8231
|
const i = s.getMeta();
|
|
8193
|
-
if (i instanceof
|
|
8232
|
+
if (i instanceof Ri) {
|
|
8194
8233
|
const o = i.parent.index, a = i.parent.parent.index;
|
|
8195
8234
|
if (s.style.fill && !V(s.style.fill))
|
|
8196
8235
|
if (typeof s.style.fill == "object") {
|
|
8197
8236
|
const n = s.style.fill, l = this._textureMap.get(`${a}.${o}.fill`) ?? this._textureMap.get(`${a}.fill`) ?? this._textureMap.get("fill");
|
|
8198
8237
|
n.enabled !== !1 && (l || n.color) && (e.addPath(s), e.style = { ...s.style }, e.fillStyle = l?.texture ?? n.color, e.fill({
|
|
8199
|
-
...
|
|
8238
|
+
...Mt(
|
|
8200
8239
|
n,
|
|
8201
8240
|
l?.box ?? {
|
|
8202
8241
|
x: 0,
|
|
@@ -8215,7 +8254,7 @@ class ie extends Pe {
|
|
|
8215
8254
|
if (typeof s.style.stroke == "object") {
|
|
8216
8255
|
const n = s.style.stroke, l = this._textureMap.get(`${a}.${o}.outline`) ?? this._textureMap.get(`${a}.outline`) ?? this._textureMap.get("outline");
|
|
8217
8256
|
n.enabled !== !1 && (l || n.color) && (n.width === void 0 || n.width) && (e.addPath(s), e.style = { ...s.style }, e.lineWidth = n.width || 1, e.strokeStyle = l?.texture ?? n.color, e.lineCap = n.lineCap, e.lineJoin = n.lineJoin, e.stroke({
|
|
8218
|
-
...
|
|
8257
|
+
...Mt(
|
|
8219
8258
|
n,
|
|
8220
8259
|
l?.box ?? {
|
|
8221
8260
|
x: 0,
|
|
@@ -8290,19 +8329,19 @@ _e([
|
|
|
8290
8329
|
_e([
|
|
8291
8330
|
h({ fallback: "auto" })
|
|
8292
8331
|
], ie.prototype, "drawMode");
|
|
8293
|
-
var
|
|
8294
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8332
|
+
var Wn = Object.getOwnPropertyDescriptor, qn = (r, e, t, s) => {
|
|
8333
|
+
for (var i = s > 1 ? void 0 : s ? Wn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8295
8334
|
(a = r[o]) && (i = a(i) || i);
|
|
8296
8335
|
return i;
|
|
8297
8336
|
};
|
|
8298
|
-
const
|
|
8299
|
-
let
|
|
8337
|
+
const Yn = new Set(Object.keys(vi())), Kn = new Set(Object.keys(gi()));
|
|
8338
|
+
let nr = class extends Oe {
|
|
8300
8339
|
size = new C().on("update", () => {
|
|
8301
8340
|
this.onUpdateStyleProperty("transform", this.style.transform, void 0), this.onUpdateStyleProperty("transformOrigin", this.style.transformOrigin, void 0), this.updateGlobalTransform(), this.requestRender();
|
|
8302
8341
|
});
|
|
8303
8342
|
_allowPointerEvents = !0;
|
|
8304
8343
|
_overflowHidden = !1;
|
|
8305
|
-
_style = new
|
|
8344
|
+
_style = new ar().on("updateProperty", (...r) => {
|
|
8306
8345
|
this.onUpdateStyleProperty(r[0], r[1], r[2]);
|
|
8307
8346
|
});
|
|
8308
8347
|
get style() {
|
|
@@ -8311,7 +8350,7 @@ let ar = class extends Oe {
|
|
|
8311
8350
|
set style(r) {
|
|
8312
8351
|
this._style.resetProperties().setProperties(r);
|
|
8313
8352
|
}
|
|
8314
|
-
_background = new
|
|
8353
|
+
_background = new Xs(this);
|
|
8315
8354
|
get background() {
|
|
8316
8355
|
return this._background;
|
|
8317
8356
|
}
|
|
@@ -8339,7 +8378,7 @@ let ar = class extends Oe {
|
|
|
8339
8378
|
set outline(r) {
|
|
8340
8379
|
this._outline.resetProperties().setProperties(r);
|
|
8341
8380
|
}
|
|
8342
|
-
_foreground = new
|
|
8381
|
+
_foreground = new js(this);
|
|
8343
8382
|
get foreground() {
|
|
8344
8383
|
return this._foreground;
|
|
8345
8384
|
}
|
|
@@ -8362,7 +8401,7 @@ let ar = class extends Oe {
|
|
|
8362
8401
|
}
|
|
8363
8402
|
_styleFilter;
|
|
8364
8403
|
constructor(r, e = []) {
|
|
8365
|
-
super(), this.style = new
|
|
8404
|
+
super(), this.style = new ar(), this.setProperties(r).append(e);
|
|
8366
8405
|
}
|
|
8367
8406
|
_treeEnter(r) {
|
|
8368
8407
|
super._treeEnter(r), this._text.isValid() && this._text.update();
|
|
@@ -8390,7 +8429,7 @@ let ar = class extends Oe {
|
|
|
8390
8429
|
_updateStyleProperty(r, e, t) {
|
|
8391
8430
|
switch (r) {
|
|
8392
8431
|
case "rotate":
|
|
8393
|
-
this.rotation = e *
|
|
8432
|
+
this.rotation = e * eo;
|
|
8394
8433
|
break;
|
|
8395
8434
|
case "scaleX":
|
|
8396
8435
|
this.scale.x = e, this.text.isValid() && (e ^ t) < 0 && this.requestRender();
|
|
@@ -8405,7 +8444,7 @@ let ar = class extends Oe {
|
|
|
8405
8444
|
this.skew.y = e;
|
|
8406
8445
|
break;
|
|
8407
8446
|
case "transform":
|
|
8408
|
-
|
|
8447
|
+
Fa(
|
|
8409
8448
|
e ?? "",
|
|
8410
8449
|
this.size.width,
|
|
8411
8450
|
this.size.height,
|
|
@@ -8413,7 +8452,7 @@ let ar = class extends Oe {
|
|
|
8413
8452
|
), this.updateGlobalTransform();
|
|
8414
8453
|
break;
|
|
8415
8454
|
case "transformOrigin": {
|
|
8416
|
-
const s =
|
|
8455
|
+
const s = za(e ?? "");
|
|
8417
8456
|
this.pivot.set(
|
|
8418
8457
|
s[0] * this.size.width,
|
|
8419
8458
|
s[1] * this.size.height
|
|
@@ -8461,7 +8500,7 @@ let ar = class extends Oe {
|
|
|
8461
8500
|
this.requestRender();
|
|
8462
8501
|
break;
|
|
8463
8502
|
}
|
|
8464
|
-
(
|
|
8503
|
+
(Kn.has(r) || Yn.has(r)) && this.text.isValid() && this.text.update();
|
|
8465
8504
|
}
|
|
8466
8505
|
_process(r) {
|
|
8467
8506
|
this.foreground.process(r), this.fill.process(r), this.text.process(r), this.outline.process(r), this.background.process(r), super._process(r);
|
|
@@ -8560,24 +8599,7 @@ let ar = class extends Oe {
|
|
|
8560
8599
|
// return super.isVisibleInTree()
|
|
8561
8600
|
// }
|
|
8562
8601
|
_updateMask() {
|
|
8563
|
-
this._overflowHidden ? this.mask =
|
|
8564
|
-
render: (r) => {
|
|
8565
|
-
const e = this.getRect();
|
|
8566
|
-
r.batch2D.render({
|
|
8567
|
-
vertices: new Float32Array([
|
|
8568
|
-
e.x,
|
|
8569
|
-
e.y,
|
|
8570
|
-
e.x + e.width,
|
|
8571
|
-
e.y,
|
|
8572
|
-
e.x + e.width,
|
|
8573
|
-
e.y + e.height,
|
|
8574
|
-
e.x,
|
|
8575
|
-
e.y + e.height
|
|
8576
|
-
]),
|
|
8577
|
-
indices: new Uint32Array([0, 1, 2, 0, 2, 3])
|
|
8578
|
-
});
|
|
8579
|
-
}
|
|
8580
|
-
} : this.mask = void 0;
|
|
8602
|
+
this._overflowHidden ? this.mask = this.getRect() : this.mask = void 0;
|
|
8581
8603
|
}
|
|
8582
8604
|
_draw() {
|
|
8583
8605
|
super._draw(), this._background.isValid() && (this._tree?.log(this.name, "background drawing"), this._shape.draw(!this._background.fillWithShape), this._background.draw()), this._fill.isValid() && (this._tree?.log(this.name, "fill drawing"), this._shape.draw(), this._fill.draw()), this._outline.isValid() && (this._tree?.log(this.name, "outline drawing"), this._shape.draw(), this._outline.draw()), this._foreground.isValid() && (this._tree?.log(this.name, "foreground drawing"), this._shape.draw(!this._foreground.fillWithShape), this._foreground.draw()), this._text.isValid() && (this._tree?.log(this.name, "text drawing"), this._text.draw()), this._drawContent();
|
|
@@ -8613,7 +8635,7 @@ let ar = class extends Oe {
|
|
|
8613
8635
|
}
|
|
8614
8636
|
toJSON() {
|
|
8615
8637
|
const r = (e) => Object.keys(e).length > 0 ? e : void 0;
|
|
8616
|
-
return
|
|
8638
|
+
return ss({
|
|
8617
8639
|
...super.toJSON(),
|
|
8618
8640
|
style: r(this.style.toJSON()),
|
|
8619
8641
|
background: r(this.background.toJSON()),
|
|
@@ -8626,9 +8648,9 @@ let ar = class extends Oe {
|
|
|
8626
8648
|
});
|
|
8627
8649
|
}
|
|
8628
8650
|
};
|
|
8629
|
-
|
|
8651
|
+
nr = qn([
|
|
8630
8652
|
b("BaseElement2D")
|
|
8631
|
-
],
|
|
8653
|
+
], nr);
|
|
8632
8654
|
const R = {
|
|
8633
8655
|
left: 0,
|
|
8634
8656
|
// Edge.Left
|
|
@@ -8648,7 +8670,7 @@ const R = {
|
|
|
8648
8670
|
// Edge.Vertical
|
|
8649
8671
|
all: 8
|
|
8650
8672
|
// Edge.All
|
|
8651
|
-
},
|
|
8673
|
+
}, Zn = {
|
|
8652
8674
|
column: 0,
|
|
8653
8675
|
// Gutter.Column
|
|
8654
8676
|
row: 1,
|
|
@@ -8674,21 +8696,21 @@ const R = {
|
|
|
8674
8696
|
// Align.SpaceAround
|
|
8675
8697
|
"space-evenly": 8
|
|
8676
8698
|
// Align.SpaceEvenly
|
|
8677
|
-
},
|
|
8699
|
+
}, qr = {
|
|
8678
8700
|
flex: 0,
|
|
8679
8701
|
// Display.Flex
|
|
8680
8702
|
none: 1,
|
|
8681
8703
|
// Display.None
|
|
8682
8704
|
contents: 2
|
|
8683
8705
|
// Display.Contents
|
|
8684
|
-
},
|
|
8706
|
+
}, lr = {
|
|
8685
8707
|
inherit: 0,
|
|
8686
8708
|
// Direction.Inherit
|
|
8687
8709
|
ltr: 1,
|
|
8688
8710
|
// Direction.LTR
|
|
8689
8711
|
rtl: 2
|
|
8690
8712
|
// Direction.RTL
|
|
8691
|
-
},
|
|
8713
|
+
}, Yr = {
|
|
8692
8714
|
column: 0,
|
|
8693
8715
|
// FlexDirection.Column
|
|
8694
8716
|
"column-reverse": 1,
|
|
@@ -8697,14 +8719,14 @@ const R = {
|
|
|
8697
8719
|
// FlexDirection.Row
|
|
8698
8720
|
"row-reverse": 3
|
|
8699
8721
|
// FlexDirection.RowReverse
|
|
8700
|
-
},
|
|
8722
|
+
}, Kr = {
|
|
8701
8723
|
"no-wrap": 0,
|
|
8702
8724
|
// Wrap.NoWrap
|
|
8703
8725
|
wrap: 1,
|
|
8704
8726
|
// Wrap.Wrap
|
|
8705
8727
|
"Wrap-reverse": 2
|
|
8706
8728
|
// Wrap.WrapReverse
|
|
8707
|
-
},
|
|
8729
|
+
}, Zr = {
|
|
8708
8730
|
"flex-start": 0,
|
|
8709
8731
|
// Justify.FlexStart
|
|
8710
8732
|
center: 1,
|
|
@@ -8717,27 +8739,27 @@ const R = {
|
|
|
8717
8739
|
// Justify.SpaceAround
|
|
8718
8740
|
"space-evenly": 5
|
|
8719
8741
|
// Justify.SpaceEvenly
|
|
8720
|
-
},
|
|
8742
|
+
}, Jr = {
|
|
8721
8743
|
visible: 0,
|
|
8722
8744
|
// Overflow.Visible
|
|
8723
8745
|
hidden: 1,
|
|
8724
8746
|
// Overflow.Hidden
|
|
8725
8747
|
scroll: 2
|
|
8726
8748
|
// Overflow.Scroll
|
|
8727
|
-
},
|
|
8749
|
+
}, Qr = {
|
|
8728
8750
|
static: 0,
|
|
8729
8751
|
// PositionType.Static
|
|
8730
8752
|
relative: 1,
|
|
8731
8753
|
// PositionType.Relative
|
|
8732
8754
|
absolute: 2
|
|
8733
8755
|
// PositionType.Absolute
|
|
8734
|
-
},
|
|
8756
|
+
}, es = {
|
|
8735
8757
|
"border-box": 0,
|
|
8736
8758
|
// BoxSizing.BorderBox
|
|
8737
8759
|
"content-box": 1
|
|
8738
8760
|
// BoxSizing.ContentBox
|
|
8739
8761
|
};
|
|
8740
|
-
class
|
|
8762
|
+
class Rr {
|
|
8741
8763
|
constructor(e) {
|
|
8742
8764
|
this._element = e;
|
|
8743
8765
|
}
|
|
@@ -8746,7 +8768,7 @@ class Tr {
|
|
|
8746
8768
|
const { loadYoga: e } = await import("yoga-layout/load");
|
|
8747
8769
|
this._yoga = await e();
|
|
8748
8770
|
}
|
|
8749
|
-
_node =
|
|
8771
|
+
_node = Rr._yoga?.Node.create();
|
|
8750
8772
|
get _style() {
|
|
8751
8773
|
return this._element.style;
|
|
8752
8774
|
}
|
|
@@ -8793,12 +8815,12 @@ class Tr {
|
|
|
8793
8815
|
break;
|
|
8794
8816
|
case "direction":
|
|
8795
8817
|
i.setDirection(
|
|
8796
|
-
t ?
|
|
8818
|
+
t ? lr[t] : lr.inherit
|
|
8797
8819
|
);
|
|
8798
8820
|
break;
|
|
8799
8821
|
case "display":
|
|
8800
8822
|
i.setDisplay(
|
|
8801
|
-
t ?
|
|
8823
|
+
t ? qr[t] : qr.flex
|
|
8802
8824
|
);
|
|
8803
8825
|
break;
|
|
8804
8826
|
case "flex":
|
|
@@ -8809,7 +8831,7 @@ class Tr {
|
|
|
8809
8831
|
break;
|
|
8810
8832
|
case "flexDirection":
|
|
8811
8833
|
i.setFlexDirection(
|
|
8812
|
-
t ?
|
|
8834
|
+
t ? Yr[t] : Yr.row
|
|
8813
8835
|
);
|
|
8814
8836
|
break;
|
|
8815
8837
|
case "flexGrow":
|
|
@@ -8820,7 +8842,7 @@ class Tr {
|
|
|
8820
8842
|
break;
|
|
8821
8843
|
case "flexWrap":
|
|
8822
8844
|
i.setFlexWrap(
|
|
8823
|
-
t ?
|
|
8845
|
+
t ? Kr[t] : Kr.wrap
|
|
8824
8846
|
);
|
|
8825
8847
|
break;
|
|
8826
8848
|
case "height":
|
|
@@ -8828,11 +8850,11 @@ class Tr {
|
|
|
8828
8850
|
break;
|
|
8829
8851
|
case "justifyContent":
|
|
8830
8852
|
i.setJustifyContent(
|
|
8831
|
-
t ?
|
|
8853
|
+
t ? Zr[t] : Zr["flex-start"]
|
|
8832
8854
|
);
|
|
8833
8855
|
break;
|
|
8834
8856
|
case "gap":
|
|
8835
|
-
t !== void 0 && i.setGap(
|
|
8857
|
+
t !== void 0 && i.setGap(Zn.all, t);
|
|
8836
8858
|
break;
|
|
8837
8859
|
case "marginTop":
|
|
8838
8860
|
i.setMargin(R.top, t);
|
|
@@ -8865,7 +8887,7 @@ class Tr {
|
|
|
8865
8887
|
break;
|
|
8866
8888
|
case "overflow":
|
|
8867
8889
|
i.setOverflow(
|
|
8868
|
-
t ?
|
|
8890
|
+
t ? Jr[t] : Jr.visible
|
|
8869
8891
|
);
|
|
8870
8892
|
break;
|
|
8871
8893
|
case "paddingTop":
|
|
@@ -8897,12 +8919,12 @@ class Tr {
|
|
|
8897
8919
|
break;
|
|
8898
8920
|
case "position":
|
|
8899
8921
|
i.setPositionType(
|
|
8900
|
-
t ?
|
|
8922
|
+
t ? Qr[t] : Qr.static
|
|
8901
8923
|
);
|
|
8902
8924
|
break;
|
|
8903
8925
|
case "boxSizing":
|
|
8904
8926
|
i.setBoxSizing(
|
|
8905
|
-
t ?
|
|
8927
|
+
t ? es[t] : es["content-box"]
|
|
8906
8928
|
);
|
|
8907
8929
|
break;
|
|
8908
8930
|
case "width":
|
|
@@ -8911,13 +8933,13 @@ class Tr {
|
|
|
8911
8933
|
}
|
|
8912
8934
|
}
|
|
8913
8935
|
}
|
|
8914
|
-
var
|
|
8915
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8936
|
+
var Jn = Object.defineProperty, Qn = Object.getOwnPropertyDescriptor, Ws = (r, e, t, s) => {
|
|
8937
|
+
for (var i = s > 1 ? void 0 : s ? Qn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8916
8938
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8917
|
-
return s && i &&
|
|
8939
|
+
return s && i && Jn(e, t, i), i;
|
|
8918
8940
|
};
|
|
8919
|
-
let te = class extends
|
|
8920
|
-
_flex = new
|
|
8941
|
+
let te = class extends nr {
|
|
8942
|
+
_flex = new Rr(this);
|
|
8921
8943
|
constructor(r, e = []) {
|
|
8922
8944
|
super(), this.setProperties(r).append(e);
|
|
8923
8945
|
}
|
|
@@ -8957,7 +8979,7 @@ let te = class extends ar {
|
|
|
8957
8979
|
super._unparented(r), r instanceof te && r._flex?._node && this._flex._node && r._flex._node.removeChild(this._flex._node);
|
|
8958
8980
|
}
|
|
8959
8981
|
updateLayout() {
|
|
8960
|
-
if (this.calculateLayout(void 0, void 0,
|
|
8982
|
+
if (this.calculateLayout(void 0, void 0, lr.ltr), this._flex._node) {
|
|
8961
8983
|
const { left: r, top: e, width: t, height: s } = this._flex._node.getComputedLayout();
|
|
8962
8984
|
this.position.x = r, this.position.y = e, this.size.x = t, this.size.y = s;
|
|
8963
8985
|
}
|
|
@@ -8967,13 +8989,13 @@ let te = class extends ar {
|
|
|
8967
8989
|
s?._flex?.calculateLayout ? s?._flex.calculateLayout(r, e, t) : this._flex.calculateLayout(r, e, t);
|
|
8968
8990
|
}
|
|
8969
8991
|
};
|
|
8970
|
-
|
|
8992
|
+
Ws([
|
|
8971
8993
|
h({ fallback: "inherit" })
|
|
8972
8994
|
], te.prototype, "layoutMode", 2);
|
|
8973
|
-
te =
|
|
8995
|
+
te = Ws([
|
|
8974
8996
|
b("Element2D")
|
|
8975
8997
|
], te);
|
|
8976
|
-
class
|
|
8998
|
+
class qs extends te {
|
|
8977
8999
|
texture;
|
|
8978
9000
|
constructor(e, t = []) {
|
|
8979
9001
|
super(), this.setProperties(e).append(t);
|
|
@@ -8982,13 +9004,13 @@ class Ws extends te {
|
|
|
8982
9004
|
this.texture?.isValid() && (this.shape.draw(!0), this.context.fillStyle = this.texture, this.context.fill());
|
|
8983
9005
|
}
|
|
8984
9006
|
}
|
|
8985
|
-
var
|
|
8986
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9007
|
+
var el = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, Ys = (r, e, t, s) => {
|
|
9008
|
+
for (var i = s > 1 ? void 0 : s ? tl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8987
9009
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8988
|
-
return s && i &&
|
|
9010
|
+
return s && i && el(e, t, i), i;
|
|
8989
9011
|
};
|
|
8990
|
-
let
|
|
8991
|
-
texture = new
|
|
9012
|
+
let cr = class extends qs {
|
|
9013
|
+
texture = new xs();
|
|
8992
9014
|
animation;
|
|
8993
9015
|
constructor(r, e = []) {
|
|
8994
9016
|
super(), this.setProperties(r), this.append(e);
|
|
@@ -9017,18 +9039,18 @@ let lr = class extends Ws {
|
|
|
9017
9039
|
this.animation?.goToAndStop(this.currentTime, !1), this.texture.requestUpdate("source"), this.requestRender(), super._process(r);
|
|
9018
9040
|
}
|
|
9019
9041
|
};
|
|
9020
|
-
|
|
9042
|
+
Ys([
|
|
9021
9043
|
h({ fallback: "" })
|
|
9022
|
-
],
|
|
9023
|
-
|
|
9044
|
+
], cr.prototype, "src", 2);
|
|
9045
|
+
cr = Ys([
|
|
9024
9046
|
b("Lottie2D")
|
|
9025
|
-
],
|
|
9026
|
-
var
|
|
9047
|
+
], cr);
|
|
9048
|
+
var rl = Object.defineProperty, sl = (r, e, t, s) => {
|
|
9027
9049
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
9028
9050
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
9029
|
-
return i &&
|
|
9051
|
+
return i && rl(e, t, i), i;
|
|
9030
9052
|
};
|
|
9031
|
-
class
|
|
9053
|
+
class il extends te {
|
|
9032
9054
|
constructor(e, t = []) {
|
|
9033
9055
|
super(), this.setProperties(e).append(t);
|
|
9034
9056
|
}
|
|
@@ -9051,15 +9073,15 @@ class tl extends te {
|
|
|
9051
9073
|
this.context.rect(0, 0, e, t), this.context.strokeStyle = "#00FF00", this.context.stroke(), this._drawCircle(0, 0), this._drawCircle(e, t), this._drawCircle(0, t), this._drawEllipse(0, t / 2), this._drawCircle(e, 0), this._drawEllipse(e, t / 2);
|
|
9052
9074
|
}
|
|
9053
9075
|
}
|
|
9054
|
-
|
|
9076
|
+
sl([
|
|
9055
9077
|
h({ fallback: 6 })
|
|
9056
|
-
],
|
|
9057
|
-
var
|
|
9058
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9078
|
+
], il.prototype, "handleSize");
|
|
9079
|
+
var ol = Object.defineProperty, al = Object.getOwnPropertyDescriptor, Ks = (r, e, t, s) => {
|
|
9080
|
+
for (var i = s > 1 ? void 0 : s ? al(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9059
9081
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9060
|
-
return s && i &&
|
|
9082
|
+
return s && i && ol(e, t, i), i;
|
|
9061
9083
|
};
|
|
9062
|
-
let
|
|
9084
|
+
let hr = class extends qs {
|
|
9063
9085
|
get videoDuration() {
|
|
9064
9086
|
return (this.texture?.duration ?? 0) * 1e3;
|
|
9065
9087
|
}
|
|
@@ -9094,18 +9116,18 @@ let cr = class extends Ws {
|
|
|
9094
9116
|
this._updateVideoCurrentTime(), super._process(r);
|
|
9095
9117
|
}
|
|
9096
9118
|
};
|
|
9097
|
-
|
|
9119
|
+
Ks([
|
|
9098
9120
|
h({ fallback: "" })
|
|
9099
|
-
],
|
|
9100
|
-
|
|
9121
|
+
], hr.prototype, "src", 2);
|
|
9122
|
+
hr = Ks([
|
|
9101
9123
|
b("Video2D")
|
|
9102
|
-
],
|
|
9103
|
-
var
|
|
9104
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9124
|
+
], hr);
|
|
9125
|
+
var nl = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, Ht = (r, e, t, s) => {
|
|
9126
|
+
for (var i = s > 1 ? void 0 : s ? ll(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9105
9127
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9106
|
-
return s && i &&
|
|
9128
|
+
return s && i && nl(e, t, i), i;
|
|
9107
9129
|
};
|
|
9108
|
-
const
|
|
9130
|
+
const cl = (r) => r, hl = yt(0.25, 0.1, 0.25, 1), ul = yt(0.42, 0, 1, 1), dl = yt(0, 0, 0.58, 1), fl = yt(0.42, 0, 0.58, 1);
|
|
9109
9131
|
function yt(r, e, t, s) {
|
|
9110
9132
|
const o = 3 * r - 3 * t + 1, a = 3 * t - 6 * r, n = 3 * r, l = 3 * e - 3 * s + 1, c = 3 * s - 6 * e, u = 3 * e, d = (_) => (3 * o * _ + 2 * a) * _ + n, f = (_) => ((o * _ + a) * _ + n) * _, m = (_) => ((l * _ + c) * _ + u) * _;
|
|
9111
9133
|
function p(_) {
|
|
@@ -9127,17 +9149,17 @@ function yt(r, e, t, s) {
|
|
|
9127
9149
|
}
|
|
9128
9150
|
return (_) => m(p(_));
|
|
9129
9151
|
}
|
|
9130
|
-
const
|
|
9131
|
-
linear:
|
|
9132
|
-
ease:
|
|
9133
|
-
easeIn:
|
|
9134
|
-
easeOut:
|
|
9135
|
-
easeInOut:
|
|
9152
|
+
const rr = {
|
|
9153
|
+
linear: cl,
|
|
9154
|
+
ease: hl,
|
|
9155
|
+
easeIn: ul,
|
|
9156
|
+
easeOut: dl,
|
|
9157
|
+
easeInOut: fl
|
|
9136
9158
|
};
|
|
9137
|
-
let dt = class extends
|
|
9159
|
+
let dt = class extends Y {
|
|
9138
9160
|
_keyframes = [];
|
|
9139
9161
|
_isFirstUpdatePosition = !1;
|
|
9140
|
-
_cachedProps = new
|
|
9162
|
+
_cachedProps = new bi();
|
|
9141
9163
|
_stoped = !1;
|
|
9142
9164
|
constructor(r, e = []) {
|
|
9143
9165
|
super(), this.setProperties(r).append(e);
|
|
@@ -9228,9 +9250,9 @@ let dt = class extends q {
|
|
|
9228
9250
|
}
|
|
9229
9251
|
_parseEasing(r) {
|
|
9230
9252
|
if (!r)
|
|
9231
|
-
return
|
|
9232
|
-
if (r in
|
|
9233
|
-
return
|
|
9253
|
+
return rr.linear;
|
|
9254
|
+
if (r in rr)
|
|
9255
|
+
return rr[r];
|
|
9234
9256
|
const e = r.replace(/cubic-bezier\((.+)\)/, "$1").split(",").map((t) => Number(t));
|
|
9235
9257
|
return yt(e[0], e[1], e[2], e[3]);
|
|
9236
9258
|
}
|
|
@@ -9282,9 +9304,9 @@ let dt = class extends q {
|
|
|
9282
9304
|
let o, a;
|
|
9283
9305
|
if (e === "none" && (e = void 0), t === "none" && (t = void 0), e === void 0 || t === void 0)
|
|
9284
9306
|
if (e !== void 0)
|
|
9285
|
-
o = Et(r, String(e), i), a =
|
|
9307
|
+
o = Et(r, String(e), i), a = Br(o);
|
|
9286
9308
|
else if (t !== void 0)
|
|
9287
|
-
a = Et(r, String(t), i), o =
|
|
9309
|
+
a = Et(r, String(t), i), o = Br(a);
|
|
9288
9310
|
else
|
|
9289
9311
|
return;
|
|
9290
9312
|
else
|
|
@@ -9327,16 +9349,16 @@ let dt = class extends q {
|
|
|
9327
9349
|
});
|
|
9328
9350
|
}
|
|
9329
9351
|
};
|
|
9330
|
-
|
|
9352
|
+
Ht([
|
|
9331
9353
|
h({ fallback: "parent" })
|
|
9332
9354
|
], dt.prototype, "effectMode", 2);
|
|
9333
|
-
|
|
9355
|
+
Ht([
|
|
9334
9356
|
h({ default: () => [] })
|
|
9335
9357
|
], dt.prototype, "keyframes", 2);
|
|
9336
|
-
|
|
9358
|
+
Ht([
|
|
9337
9359
|
h()
|
|
9338
9360
|
], dt.prototype, "easing", 2);
|
|
9339
|
-
dt =
|
|
9361
|
+
dt = Ht([
|
|
9340
9362
|
b("Animation", {
|
|
9341
9363
|
renderMode: "disabled",
|
|
9342
9364
|
processMode: "pausable",
|
|
@@ -9344,10 +9366,10 @@ dt = $t([
|
|
|
9344
9366
|
duration: 2e3
|
|
9345
9367
|
})
|
|
9346
9368
|
], dt);
|
|
9347
|
-
class
|
|
9369
|
+
class Ar extends we {
|
|
9348
9370
|
static _instance;
|
|
9349
9371
|
static get instance() {
|
|
9350
|
-
return this._instance || (this._instance = new
|
|
9372
|
+
return this._instance || (this._instance = new Ar()), this._instance;
|
|
9351
9373
|
}
|
|
9352
9374
|
playbackRate = 1;
|
|
9353
9375
|
muted = !1;
|
|
@@ -9375,7 +9397,7 @@ class Rr extends we {
|
|
|
9375
9397
|
return this.paused = !this.paused, this.refreshPaused(), this.paused;
|
|
9376
9398
|
}
|
|
9377
9399
|
}
|
|
9378
|
-
class
|
|
9400
|
+
class Nt extends we {
|
|
9379
9401
|
static PADDING = 0.1;
|
|
9380
9402
|
_source = null;
|
|
9381
9403
|
_audio = null;
|
|
@@ -9496,7 +9518,7 @@ class Mt extends we {
|
|
|
9496
9518
|
if (!this._source)
|
|
9497
9519
|
return;
|
|
9498
9520
|
const { start: t = 0, end: s = 0 } = e;
|
|
9499
|
-
s && console.assert(s > t, "End time is before start time"), e.playbackRate !== void 0 && (this._playbackRate = e.playbackRate), e.volume !== void 0 && (this._volume = e.volume), e.loop !== void 0 && (this._loop = e.loop), e.muted !== void 0 && (this._muted = e.muted), this.refresh(), this.loop && s !== null && (console.warn('Looping not support when specifying an "end" time'), this.loop = !1), this._start = t, this._end = s || this._duration, this._start = Math.max(0, this._start -
|
|
9521
|
+
s && console.assert(s > t, "End time is before start time"), e.playbackRate !== void 0 && (this._playbackRate = e.playbackRate), e.volume !== void 0 && (this._volume = e.volume), e.loop !== void 0 && (this._loop = e.loop), e.muted !== void 0 && (this._muted = e.muted), this.refresh(), this.loop && s !== null && (console.warn('Looping not support when specifying an "end" time'), this.loop = !1), this._start = t, this._end = s || this._duration, this._start = Math.max(0, this._start - Nt.PADDING), this._end = Math.min(this._end + Nt.PADDING, this._duration), this._source.onloadedmetadata = () => {
|
|
9500
9522
|
this._source && (this._source.currentTime = t, this._source.onloadedmetadata = null, this.emit("progress", t, this._duration), B.on(this._onUpdate));
|
|
9501
9523
|
}, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
|
|
9502
9524
|
}
|
|
@@ -9512,7 +9534,7 @@ class Mt extends we {
|
|
|
9512
9534
|
e && (e.onended = null, e.onplay = null, e.onpause = null, this._stop()), this._source = null, this._playbackRate = 1, this._volume = 1, this._loop = !1, this._end = 0, this._start = 0, this._duration = 0, this._playing = !1, this._pausedReal = !1, this._paused = !1, this._muted = !1, this._audio && (this._audio.context.off("refresh", this.refresh), this._audio.context.off("refreshPaused", this.refreshPaused), this._audio = null);
|
|
9513
9535
|
}
|
|
9514
9536
|
}
|
|
9515
|
-
class
|
|
9537
|
+
class pl {
|
|
9516
9538
|
constructor(e) {
|
|
9517
9539
|
this.parent = e;
|
|
9518
9540
|
}
|
|
@@ -9531,7 +9553,7 @@ class ul {
|
|
|
9531
9553
|
return !!this.source && this.source.readyState === 4;
|
|
9532
9554
|
}
|
|
9533
9555
|
get context() {
|
|
9534
|
-
return
|
|
9556
|
+
return Ar.instance;
|
|
9535
9557
|
}
|
|
9536
9558
|
async load() {
|
|
9537
9559
|
return new Promise((e) => {
|
|
@@ -9539,10 +9561,10 @@ class ul {
|
|
|
9539
9561
|
});
|
|
9540
9562
|
}
|
|
9541
9563
|
createSound() {
|
|
9542
|
-
return new
|
|
9564
|
+
return new Nt();
|
|
9543
9565
|
}
|
|
9544
9566
|
}
|
|
9545
|
-
class
|
|
9567
|
+
class Zs extends we {
|
|
9546
9568
|
constructor(e, t) {
|
|
9547
9569
|
super(), this._input = e, this._output = t;
|
|
9548
9570
|
}
|
|
@@ -9563,7 +9585,7 @@ class Ks extends we {
|
|
|
9563
9585
|
return this._input;
|
|
9564
9586
|
}
|
|
9565
9587
|
}
|
|
9566
|
-
class
|
|
9588
|
+
class wc {
|
|
9567
9589
|
constructor(e, t = null) {
|
|
9568
9590
|
this.destination = e, this.source = t;
|
|
9569
9591
|
}
|
|
@@ -9574,25 +9596,25 @@ class bc {
|
|
|
9574
9596
|
this.source?.disconnect();
|
|
9575
9597
|
}
|
|
9576
9598
|
}
|
|
9577
|
-
function
|
|
9578
|
-
if (
|
|
9599
|
+
function _l() {
|
|
9600
|
+
if (ns)
|
|
9579
9601
|
return new AudioContext();
|
|
9580
|
-
if (
|
|
9602
|
+
if (ls) {
|
|
9581
9603
|
const r = globalThis.webkitAudioContext;
|
|
9582
9604
|
return new r();
|
|
9583
9605
|
} else
|
|
9584
9606
|
throw new Error("Failed to createAudioContext");
|
|
9585
9607
|
}
|
|
9586
|
-
function
|
|
9587
|
-
if (
|
|
9608
|
+
function ml(r, e, t) {
|
|
9609
|
+
if (cs)
|
|
9588
9610
|
return new OfflineAudioContext(r, e, t);
|
|
9589
|
-
if (
|
|
9611
|
+
if (Bi) {
|
|
9590
9612
|
const s = globalThis.webkitOfflineAudioContext;
|
|
9591
9613
|
return new s(r, e, t);
|
|
9592
9614
|
} else
|
|
9593
9615
|
throw new Error("Failed to createOfflineAudioContext");
|
|
9594
9616
|
}
|
|
9595
|
-
class Ae extends
|
|
9617
|
+
class Ae extends Zs {
|
|
9596
9618
|
/** Singleton */
|
|
9597
9619
|
static _instance;
|
|
9598
9620
|
static get instance() {
|
|
@@ -9637,12 +9659,12 @@ class Ae extends Ks {
|
|
|
9637
9659
|
_compressor;
|
|
9638
9660
|
_analyser;
|
|
9639
9661
|
constructor() {
|
|
9640
|
-
const e =
|
|
9662
|
+
const e = _l(), t = ml(
|
|
9641
9663
|
1,
|
|
9642
9664
|
2,
|
|
9643
|
-
|
|
9665
|
+
cs ? Math.max(8e3, Math.min(96e3, e.sampleRate)) : 44100
|
|
9644
9666
|
), s = e.createDynamicsCompressor(), i = e.createAnalyser();
|
|
9645
|
-
i.connect(s), s.connect(e.destination), super(i, s), this._context = e, this._offlineContext = t, this._compressor = s, this._analyser = i, this._locked = e.state === "suspended" && (ve ||
|
|
9667
|
+
i.connect(s), s.connect(e.destination), super(i, s), this._context = e, this._offlineContext = t, this._compressor = s, this._analyser = i, this._locked = e.state === "suspended" && (ve || Ui), pr && (this._locked && (this._unlock(), document.addEventListener("mousedown", this._unlock, !0), document.addEventListener("touchstart", this._unlock, !0), document.addEventListener("touchend", this._unlock, !0)), globalThis.addEventListener("focus", this._onFocus), globalThis.addEventListener("blur", this._onBlur));
|
|
9646
9668
|
}
|
|
9647
9669
|
_onFocus() {
|
|
9648
9670
|
if (!this.autoPause)
|
|
@@ -9684,7 +9706,7 @@ class Ae extends Ks {
|
|
|
9684
9706
|
e.setValueAtTime ? e.setValueAtTime(t, this._context.currentTime) : e.value = t;
|
|
9685
9707
|
}
|
|
9686
9708
|
}
|
|
9687
|
-
class
|
|
9709
|
+
class gl extends we {
|
|
9688
9710
|
_audio = null;
|
|
9689
9711
|
_sourceNode = null;
|
|
9690
9712
|
_gain = null;
|
|
@@ -9839,7 +9861,7 @@ class pl extends we {
|
|
|
9839
9861
|
super.destroy(), this._stop(), this._gain?.disconnect(), this._gain = null, this._audio?.context.off("refresh", this.refresh), this._audio?.context.off("refreshPaused", this.refreshPaused), this._audio = null, this._processors.forEach((e) => e.disconnect()), this._processors.length = 0, this._end = 0, this._playbackRate = 1, this._volume = 1, this._loop = !1, this._elapsed = 0, this._duration = 0, this._paused = !1, this._muted = !1, this._pausedReal = !1;
|
|
9840
9862
|
}
|
|
9841
9863
|
}
|
|
9842
|
-
class
|
|
9864
|
+
class vl extends Zs {
|
|
9843
9865
|
constructor(e) {
|
|
9844
9866
|
const t = Ae.audioContext, s = t.createBufferSource(), i = t.createGain(), o = t.createAnalyser();
|
|
9845
9867
|
s.connect(o), o.connect(i), i.connect(Ae.instance.destination), super(o, i), this.parent = e, this._sourceNode = s, this.gain = i, this.analyser = o;
|
|
@@ -9886,18 +9908,18 @@ class _l extends Ks {
|
|
|
9886
9908
|
return s.buffer = t.buffer, s.loop = t.loop, e.setParamValue(s.playbackRate, t.playbackRate.value), s.connect(i), i.connect(this.destination), { source: s, gain: i };
|
|
9887
9909
|
}
|
|
9888
9910
|
createSound() {
|
|
9889
|
-
return new
|
|
9911
|
+
return new gl();
|
|
9890
9912
|
}
|
|
9891
9913
|
}
|
|
9892
|
-
var
|
|
9893
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9914
|
+
var bl = Object.defineProperty, yl = Object.getOwnPropertyDescriptor, xl = (r, e, t) => e in r ? bl(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, wl = (r, e, t, s) => {
|
|
9915
|
+
for (var i = s > 1 ? void 0 : s ? yl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9894
9916
|
(a = r[o]) && (i = a(i) || i);
|
|
9895
9917
|
return i;
|
|
9896
|
-
},
|
|
9897
|
-
let Ce = class extends
|
|
9918
|
+
}, Pl = (r, e, t) => xl(r, e + "", t);
|
|
9919
|
+
let Ce = class extends Y {
|
|
9898
9920
|
_sounds = [];
|
|
9899
9921
|
/** PlatformAudio */
|
|
9900
|
-
_platformAudio =
|
|
9922
|
+
_platformAudio = Li ? new vl(this) : new pl(this);
|
|
9901
9923
|
get platformAudio() {
|
|
9902
9924
|
return this._platformAudio;
|
|
9903
9925
|
}
|
|
@@ -10036,21 +10058,21 @@ let Ce = class extends q {
|
|
|
10036
10058
|
}, 100);
|
|
10037
10059
|
}
|
|
10038
10060
|
};
|
|
10039
|
-
|
|
10040
|
-
Ce =
|
|
10061
|
+
Pl(Ce, "_soundPool", []);
|
|
10062
|
+
Ce = wl([
|
|
10041
10063
|
b("Audio")
|
|
10042
10064
|
], Ce);
|
|
10043
|
-
class
|
|
10065
|
+
class Pc extends Oe {
|
|
10044
10066
|
//
|
|
10045
10067
|
}
|
|
10046
|
-
var
|
|
10047
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10068
|
+
var El = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, Xt = (r, e, t, s) => {
|
|
10069
|
+
for (var i = s > 1 ? void 0 : s ? Sl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10048
10070
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
10049
|
-
return s && i &&
|
|
10071
|
+
return s && i && El(e, t, i), i;
|
|
10050
10072
|
};
|
|
10051
10073
|
let ft = class extends te {
|
|
10052
10074
|
_audioBuffer;
|
|
10053
|
-
_src =
|
|
10075
|
+
_src = pr ? new x({
|
|
10054
10076
|
source: document.createElement("canvas")
|
|
10055
10077
|
}) : void 0;
|
|
10056
10078
|
_needsUpdateTexture = !1;
|
|
@@ -10108,24 +10130,24 @@ let ft = class extends te {
|
|
|
10108
10130
|
this.syncTexture(), super._process(r);
|
|
10109
10131
|
}
|
|
10110
10132
|
};
|
|
10111
|
-
|
|
10133
|
+
Xt([
|
|
10112
10134
|
h()
|
|
10113
10135
|
], ft.prototype, "src", 2);
|
|
10114
|
-
|
|
10136
|
+
Xt([
|
|
10115
10137
|
h({ fallback: 0 })
|
|
10116
10138
|
], ft.prototype, "gap", 2);
|
|
10117
|
-
|
|
10139
|
+
Xt([
|
|
10118
10140
|
h({ fallback: "#000000" })
|
|
10119
10141
|
], ft.prototype, "color", 2);
|
|
10120
|
-
ft =
|
|
10142
|
+
ft = Xt([
|
|
10121
10143
|
b("AudioWaveform")
|
|
10122
10144
|
], ft);
|
|
10123
|
-
var
|
|
10124
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10145
|
+
var Tl = Object.defineProperty, Rl = Object.getOwnPropertyDescriptor, Al = (r, e, t) => e in r ? Tl(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Cl = (r, e, t, s) => {
|
|
10146
|
+
for (var i = s > 1 ? void 0 : s ? Rl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10125
10147
|
(a = r[o]) && (i = a(i) || i);
|
|
10126
10148
|
return i;
|
|
10127
|
-
},
|
|
10128
|
-
let
|
|
10149
|
+
}, Ol = (r, e, t) => Al(r, e + "", t);
|
|
10150
|
+
let kt = class extends Ve {
|
|
10129
10151
|
blur = 10;
|
|
10130
10152
|
quality = 10;
|
|
10131
10153
|
apply(r, e) {
|
|
@@ -10149,7 +10171,7 @@ let Nt = class extends Ve {
|
|
|
10149
10171
|
p = u[_] + 0.5, m[0] = p * d, m[1] = p * f, c.push({
|
|
10150
10172
|
offset: m
|
|
10151
10173
|
}), c.forEach((g) => {
|
|
10152
|
-
P.draw(r,
|
|
10174
|
+
P.draw(r, kt.material, {
|
|
10153
10175
|
sampler: s,
|
|
10154
10176
|
progress: i,
|
|
10155
10177
|
...g
|
|
@@ -10157,7 +10179,7 @@ let Nt = class extends Ve {
|
|
|
10157
10179
|
});
|
|
10158
10180
|
}
|
|
10159
10181
|
};
|
|
10160
|
-
|
|
10182
|
+
Ol(kt, "material", new E({
|
|
10161
10183
|
gl: {
|
|
10162
10184
|
vertex: `attribute vec2 position;
|
|
10163
10185
|
attribute vec2 uv;
|
|
@@ -10184,24 +10206,24 @@ void main(void) {
|
|
|
10184
10206
|
}`
|
|
10185
10207
|
}
|
|
10186
10208
|
}));
|
|
10187
|
-
|
|
10209
|
+
kt = Cl([
|
|
10188
10210
|
b("KawaseTransition")
|
|
10189
|
-
],
|
|
10190
|
-
var
|
|
10191
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10211
|
+
], kt);
|
|
10212
|
+
var Dl = Object.defineProperty, Il = Object.getOwnPropertyDescriptor, Ml = (r, e, t) => e in r ? Dl(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Nl = (r, e, t, s) => {
|
|
10213
|
+
for (var i = s > 1 ? void 0 : s ? Il(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10192
10214
|
(a = r[o]) && (i = a(i) || i);
|
|
10193
10215
|
return i;
|
|
10194
|
-
},
|
|
10195
|
-
let
|
|
10216
|
+
}, kl = (r, e, t) => Ml(r, e + "", t);
|
|
10217
|
+
let Ut = class extends Ve {
|
|
10196
10218
|
apply(r) {
|
|
10197
|
-
P.draw(r,
|
|
10219
|
+
P.draw(r, Ut.material, {
|
|
10198
10220
|
previous: 0,
|
|
10199
10221
|
next: 1,
|
|
10200
10222
|
progress: this.currentTimeProgress
|
|
10201
10223
|
});
|
|
10202
10224
|
}
|
|
10203
10225
|
};
|
|
10204
|
-
|
|
10226
|
+
kl(Ut, "material", new E({
|
|
10205
10227
|
gl: {
|
|
10206
10228
|
vertex: `attribute vec2 position;
|
|
10207
10229
|
attribute vec2 uv;
|
|
@@ -10232,14 +10254,14 @@ void main() {
|
|
|
10232
10254
|
}`
|
|
10233
10255
|
}
|
|
10234
10256
|
}));
|
|
10235
|
-
|
|
10257
|
+
Ut = Nl([
|
|
10236
10258
|
b("LeftEraseTransition")
|
|
10237
|
-
],
|
|
10238
|
-
var
|
|
10239
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10259
|
+
], Ut);
|
|
10260
|
+
var Ul = Object.defineProperty, Bl = Object.getOwnPropertyDescriptor, Ll = (r, e, t) => e in r ? Ul(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Fl = (r, e, t, s) => {
|
|
10261
|
+
for (var i = s > 1 ? void 0 : s ? Bl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10240
10262
|
(a = r[o]) && (i = a(i) || i);
|
|
10241
10263
|
return i;
|
|
10242
|
-
},
|
|
10264
|
+
}, zl = (r, e, t) => Ll(r, e + "", t);
|
|
10243
10265
|
let pt = class extends Ve {
|
|
10244
10266
|
blur = 100;
|
|
10245
10267
|
gradientBlur = 600;
|
|
@@ -10269,7 +10291,7 @@ let pt = class extends Ve {
|
|
|
10269
10291
|
});
|
|
10270
10292
|
}
|
|
10271
10293
|
};
|
|
10272
|
-
|
|
10294
|
+
zl(pt, "material", new E({
|
|
10273
10295
|
gl: {
|
|
10274
10296
|
vertex: `attribute vec2 position;
|
|
10275
10297
|
attribute vec2 uv;
|
|
@@ -10319,15 +10341,15 @@ void main(void) {
|
|
|
10319
10341
|
}`
|
|
10320
10342
|
}
|
|
10321
10343
|
}));
|
|
10322
|
-
pt =
|
|
10344
|
+
pt = Fl([
|
|
10323
10345
|
b("TiltShiftTransition")
|
|
10324
10346
|
], pt);
|
|
10325
|
-
var
|
|
10326
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10347
|
+
var Gl = Object.defineProperty, Vl = Object.getOwnPropertyDescriptor, $l = (r, e, t) => e in r ? Gl(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Hl = (r, e, t, s) => {
|
|
10348
|
+
for (var i = s > 1 ? void 0 : s ? Vl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10327
10349
|
(a = r[o]) && (i = a(i) || i);
|
|
10328
10350
|
return i;
|
|
10329
|
-
},
|
|
10330
|
-
let
|
|
10351
|
+
}, Xl = (r, e, t) => $l(r, e + "", t);
|
|
10352
|
+
let Bt = class extends Ve {
|
|
10331
10353
|
radius;
|
|
10332
10354
|
angle = 4;
|
|
10333
10355
|
padding = 20;
|
|
@@ -10337,7 +10359,7 @@ let Ut = class extends Ve {
|
|
|
10337
10359
|
let s, i;
|
|
10338
10360
|
t < 0.5 ? (s = 0, i = (0.5 - t) / 0.5) : (s = 1, i = (t - 0.5) / 0.5);
|
|
10339
10361
|
const o = e.width, a = e.height;
|
|
10340
|
-
P.draw(r,
|
|
10362
|
+
P.draw(r, Bt.material, {
|
|
10341
10363
|
sampler: s,
|
|
10342
10364
|
progress: i,
|
|
10343
10365
|
filterArea: [o, a, 0, 0],
|
|
@@ -10348,7 +10370,7 @@ let Ut = class extends Ve {
|
|
|
10348
10370
|
});
|
|
10349
10371
|
}
|
|
10350
10372
|
};
|
|
10351
|
-
|
|
10373
|
+
Xl(Bt, "material", new E({
|
|
10352
10374
|
gl: {
|
|
10353
10375
|
vertex: `attribute vec2 position;
|
|
10354
10376
|
attribute vec2 uv;
|
|
@@ -10400,20 +10422,20 @@ void main(void) {
|
|
|
10400
10422
|
}`
|
|
10401
10423
|
}
|
|
10402
10424
|
}));
|
|
10403
|
-
|
|
10425
|
+
Bt = Hl([
|
|
10404
10426
|
b("TwistTransition")
|
|
10405
|
-
],
|
|
10406
|
-
class
|
|
10427
|
+
], Bt);
|
|
10428
|
+
class jl extends Me {
|
|
10407
10429
|
install(e) {
|
|
10408
10430
|
const t = async (s) => {
|
|
10409
10431
|
const { decodeFrames: i } = await import("modern-gif");
|
|
10410
10432
|
return await s.arrayBuffer().then((o) => i(
|
|
10411
10433
|
o,
|
|
10412
10434
|
e.gifWorkerUrl ? { workerUrl: e.gifWorkerUrl } : void 0
|
|
10413
|
-
)).then((o) => new
|
|
10435
|
+
)).then((o) => new la(
|
|
10414
10436
|
o.map((a) => ({
|
|
10415
10437
|
duration: a.delay,
|
|
10416
|
-
texture: new
|
|
10438
|
+
texture: new ca({
|
|
10417
10439
|
source: a.data,
|
|
10418
10440
|
width: a.width,
|
|
10419
10441
|
height: a.height
|
|
@@ -10431,7 +10453,7 @@ class $l extends Me {
|
|
|
10431
10453
|
}), e.gif = this, this;
|
|
10432
10454
|
}
|
|
10433
10455
|
}
|
|
10434
|
-
class
|
|
10456
|
+
class Wl extends Me {
|
|
10435
10457
|
install(e) {
|
|
10436
10458
|
const t = async (s) => JSON.parse(await s.text());
|
|
10437
10459
|
return this.load = (s) => typeof s == "string" ? e.loadBy(s).then(t) : t(s), [
|
|
@@ -10441,7 +10463,7 @@ class Hl extends Me {
|
|
|
10441
10463
|
}), e.json = this, this;
|
|
10442
10464
|
}
|
|
10443
10465
|
}
|
|
10444
|
-
class
|
|
10466
|
+
class ql extends Me {
|
|
10445
10467
|
install(e) {
|
|
10446
10468
|
return this.load = async (t, s) => (await import("lottie-web").then((o) => o.default)).loadAnimation({
|
|
10447
10469
|
container: null,
|
|
@@ -10458,13 +10480,13 @@ class Xl extends Me {
|
|
|
10458
10480
|
}), e.lottie = this, this;
|
|
10459
10481
|
}
|
|
10460
10482
|
}
|
|
10461
|
-
class
|
|
10483
|
+
class Yl extends Me {
|
|
10462
10484
|
install(e) {
|
|
10463
10485
|
const t = async (s) => s.text();
|
|
10464
10486
|
return this.load = (s) => typeof s == "string" ? e.loadBy(s).then(t) : t(s), e.text = this, this;
|
|
10465
10487
|
}
|
|
10466
10488
|
}
|
|
10467
|
-
class
|
|
10489
|
+
class Kl extends Me {
|
|
10468
10490
|
install(e) {
|
|
10469
10491
|
const t = (s) => e.fetchImageBitmap(s, { premultiplyAlpha: "premultiply" }).then((i) => new x({
|
|
10470
10492
|
source: i,
|
|
@@ -10489,12 +10511,12 @@ class Wl extends Me {
|
|
|
10489
10511
|
}), e.texture = this, this;
|
|
10490
10512
|
}
|
|
10491
10513
|
}
|
|
10492
|
-
class
|
|
10514
|
+
class Zl extends Me {
|
|
10493
10515
|
install(e) {
|
|
10494
|
-
return this.load = (t) => new
|
|
10516
|
+
return this.load = (t) => new da(t).load(), e.video = this, this;
|
|
10495
10517
|
}
|
|
10496
10518
|
}
|
|
10497
|
-
const
|
|
10519
|
+
const Jl = Object.entries({
|
|
10498
10520
|
"font/woff": ["woff"],
|
|
10499
10521
|
"font/ttf": ["ttf"],
|
|
10500
10522
|
"font/otf": ["otf"],
|
|
@@ -10510,33 +10532,33 @@ const Yl = Object.entries({
|
|
|
10510
10532
|
"image/webp": ["webp"],
|
|
10511
10533
|
"application/json": ["json"]
|
|
10512
10534
|
});
|
|
10513
|
-
function
|
|
10514
|
-
for (const [e, t] of
|
|
10535
|
+
function Ql(r) {
|
|
10536
|
+
for (const [e, t] of Jl)
|
|
10515
10537
|
if (t.includes(r))
|
|
10516
10538
|
return e;
|
|
10517
10539
|
}
|
|
10518
|
-
function
|
|
10540
|
+
function ec(r) {
|
|
10519
10541
|
let e;
|
|
10520
10542
|
if (r.startsWith("data:"))
|
|
10521
10543
|
e = r.match(/^data:(.+?);/)?.[1];
|
|
10522
10544
|
else if (r.startsWith("http")) {
|
|
10523
10545
|
const t = r.split(/[#?]/)[0].split(".").pop()?.trim();
|
|
10524
|
-
t && (e =
|
|
10546
|
+
t && (e = Ql(t));
|
|
10525
10547
|
}
|
|
10526
10548
|
return e;
|
|
10527
10549
|
}
|
|
10528
|
-
const
|
|
10529
|
-
class
|
|
10550
|
+
const Rt = "WeakRef" in globalThis;
|
|
10551
|
+
class tc extends we {
|
|
10530
10552
|
defaultHandler = (e) => e;
|
|
10531
10553
|
_handlers = /* @__PURE__ */ new Map();
|
|
10532
10554
|
_handleing = /* @__PURE__ */ new Map();
|
|
10533
10555
|
_handled = /* @__PURE__ */ new Map();
|
|
10534
|
-
_gc =
|
|
10556
|
+
_gc = Rt ? new FinalizationRegistry((e) => {
|
|
10535
10557
|
const t = this.get(e);
|
|
10536
10558
|
t && "destroy" in t && t.destroy(), this._handled.delete(e);
|
|
10537
10559
|
}) : void 0;
|
|
10538
10560
|
constructor() {
|
|
10539
|
-
super(),
|
|
10561
|
+
super(), Rt || B.on(this.gc.bind(this), { sort: 2 });
|
|
10540
10562
|
}
|
|
10541
10563
|
use(e) {
|
|
10542
10564
|
return e.install(this), this;
|
|
@@ -10585,11 +10607,11 @@ class Jl extends we {
|
|
|
10585
10607
|
}
|
|
10586
10608
|
get(e) {
|
|
10587
10609
|
let t = this._handled.get(e);
|
|
10588
|
-
return
|
|
10610
|
+
return Rt && t instanceof WeakRef && (t = t.deref(), t || this._handleing.delete(e)), t;
|
|
10589
10611
|
}
|
|
10590
10612
|
set(e, t) {
|
|
10591
10613
|
let s = t;
|
|
10592
|
-
|
|
10614
|
+
Rt && typeof t == "object" && (this._gc.register(t, e), s = new WeakRef(t)), this._handled.set(e, s);
|
|
10593
10615
|
}
|
|
10594
10616
|
async loadBy(e, t = () => this.fetch(e).then((s) => s.blob())) {
|
|
10595
10617
|
const s = this.get(e) ?? this._handleing.get(e);
|
|
@@ -10602,7 +10624,7 @@ class Jl extends we {
|
|
|
10602
10624
|
}
|
|
10603
10625
|
async load(e, t) {
|
|
10604
10626
|
const s = await this.loadBy(e);
|
|
10605
|
-
let i =
|
|
10627
|
+
let i = ec(e);
|
|
10606
10628
|
return i === void 0 && (i = s.type?.split(";")[0] ?? void 0), ((i ? this._handlers.get(i) : void 0) ?? this.defaultHandler)(s, t);
|
|
10607
10629
|
}
|
|
10608
10630
|
async waitUntilLoad() {
|
|
@@ -10619,11 +10641,11 @@ class Jl extends we {
|
|
|
10619
10641
|
}), this._handled.clear();
|
|
10620
10642
|
}
|
|
10621
10643
|
}
|
|
10622
|
-
const $ = new
|
|
10623
|
-
var
|
|
10644
|
+
const $ = new tc().use(new qo()).use(new jl()).use(new Wl()).use(new ql()).use(new Yl()).use(new Kl()).use(new Zl());
|
|
10645
|
+
var rc = Object.defineProperty, Js = (r, e, t, s) => {
|
|
10624
10646
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
10625
10647
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
10626
|
-
return i &&
|
|
10648
|
+
return i && rc(e, t, i), i;
|
|
10627
10649
|
};
|
|
10628
10650
|
const Le = {
|
|
10629
10651
|
alpha: !0,
|
|
@@ -10633,7 +10655,7 @@ const Le = {
|
|
|
10633
10655
|
preserveDrawingBuffer: !1,
|
|
10634
10656
|
powerPreference: "default"
|
|
10635
10657
|
};
|
|
10636
|
-
class
|
|
10658
|
+
class Cr extends fe {
|
|
10637
10659
|
renderer;
|
|
10638
10660
|
get view() {
|
|
10639
10661
|
return this.renderer.view;
|
|
@@ -10656,7 +10678,7 @@ class Ar extends fe {
|
|
|
10656
10678
|
set pixelRatio(e) {
|
|
10657
10679
|
this.renderer.pixelRatio = e, this.resize(this.width, this.height);
|
|
10658
10680
|
}
|
|
10659
|
-
_resizeObserver =
|
|
10681
|
+
_resizeObserver = Ni ? new ResizeObserver((e) => {
|
|
10660
10682
|
const t = e[0];
|
|
10661
10683
|
if (t.target === this.view) {
|
|
10662
10684
|
const { inlineSize: s, blockSize: i } = Array.isArray(t.contentBoxSize) ? t.contentBoxSize[0] : t.contentBoxSize;
|
|
@@ -10668,11 +10690,11 @@ class Ar extends fe {
|
|
|
10668
10690
|
view: t,
|
|
10669
10691
|
width: s,
|
|
10670
10692
|
height: i,
|
|
10671
|
-
pixelRatio: o =
|
|
10693
|
+
pixelRatio: o = hs,
|
|
10672
10694
|
autoResize: a,
|
|
10673
10695
|
data: n
|
|
10674
10696
|
} = e;
|
|
10675
|
-
super(), this.renderer = new
|
|
10697
|
+
super(), this.renderer = new Wo(t, {
|
|
10676
10698
|
alpha: Le.alpha ?? e.alpha,
|
|
10677
10699
|
stencil: Le.stencil ?? e.stencil,
|
|
10678
10700
|
antialias: Le.antialias ?? e.antialias,
|
|
@@ -10715,7 +10737,7 @@ class Ar extends fe {
|
|
|
10715
10737
|
return this.renderer.resize(e, t, s), this.root.width = e, this.root.height = t, this.render(), this;
|
|
10716
10738
|
}
|
|
10717
10739
|
nextTick() {
|
|
10718
|
-
return
|
|
10740
|
+
return os();
|
|
10719
10741
|
}
|
|
10720
10742
|
async waitUntilLoad() {
|
|
10721
10743
|
await $.waitUntilLoad(), await this.nextTick();
|
|
@@ -10765,19 +10787,19 @@ class Ar extends fe {
|
|
|
10765
10787
|
this._resizeObserver?.disconnect(), this.renderer.destroy(), super.destroy();
|
|
10766
10788
|
}
|
|
10767
10789
|
}
|
|
10768
|
-
|
|
10790
|
+
Js([
|
|
10769
10791
|
h({ fallback: !1 })
|
|
10770
|
-
],
|
|
10771
|
-
|
|
10792
|
+
], Cr.prototype, "autoResize");
|
|
10793
|
+
Js([
|
|
10772
10794
|
h({ fallback: !1 })
|
|
10773
|
-
],
|
|
10795
|
+
], Cr.prototype, "autoStart");
|
|
10774
10796
|
let U;
|
|
10775
|
-
const
|
|
10776
|
-
let
|
|
10777
|
-
async function
|
|
10778
|
-
if (!
|
|
10779
|
-
for (
|
|
10780
|
-
const e =
|
|
10797
|
+
const ur = [];
|
|
10798
|
+
let sr = !1;
|
|
10799
|
+
async function sc(r = 100) {
|
|
10800
|
+
if (!sr) {
|
|
10801
|
+
for (sr = !0; ur.length; ) {
|
|
10802
|
+
const e = ur.shift();
|
|
10781
10803
|
if (e)
|
|
10782
10804
|
try {
|
|
10783
10805
|
await e();
|
|
@@ -10787,10 +10809,10 @@ async function ec(r = 100) {
|
|
|
10787
10809
|
else
|
|
10788
10810
|
await new Promise((t) => setTimeout(t, r));
|
|
10789
10811
|
}
|
|
10790
|
-
|
|
10812
|
+
sr = !1;
|
|
10791
10813
|
}
|
|
10792
10814
|
}
|
|
10793
|
-
async function
|
|
10815
|
+
async function ic(r) {
|
|
10794
10816
|
const {
|
|
10795
10817
|
debug: e = !1,
|
|
10796
10818
|
fonts: t,
|
|
@@ -10802,7 +10824,7 @@ async function tc(r) {
|
|
|
10802
10824
|
onKeyframe: l,
|
|
10803
10825
|
...c
|
|
10804
10826
|
} = r;
|
|
10805
|
-
return U ??= new
|
|
10827
|
+
return U ??= new Cr({
|
|
10806
10828
|
pixelRatio: 1,
|
|
10807
10829
|
width: 1,
|
|
10808
10830
|
height: 1,
|
|
@@ -10823,213 +10845,213 @@ async function tc(r) {
|
|
|
10823
10845
|
p();
|
|
10824
10846
|
}), U.toCanvas2D();
|
|
10825
10847
|
}
|
|
10826
|
-
async function
|
|
10848
|
+
async function Ec(r) {
|
|
10827
10849
|
return new Promise((e) => {
|
|
10828
|
-
|
|
10850
|
+
ur.push(async () => e(await ic(r))), sc();
|
|
10829
10851
|
});
|
|
10830
10852
|
}
|
|
10831
10853
|
export {
|
|
10832
|
-
|
|
10854
|
+
la as AnimatedTexture,
|
|
10833
10855
|
dt as Animation,
|
|
10834
|
-
|
|
10856
|
+
tc as Assets,
|
|
10835
10857
|
Ce as Audio,
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10858
|
+
Zs as AudioPipeline,
|
|
10859
|
+
wc as AudioProcessor,
|
|
10860
|
+
Pc as AudioSpectrum,
|
|
10839
10861
|
ft as AudioWaveform,
|
|
10840
|
-
|
|
10862
|
+
nr as BaseElement2D,
|
|
10841
10863
|
be as BufferUsage,
|
|
10842
|
-
|
|
10843
|
-
|
|
10864
|
+
It as Camera2D,
|
|
10865
|
+
fa as CanvasContext,
|
|
10844
10866
|
Ge as CanvasItem,
|
|
10845
|
-
|
|
10867
|
+
xs as CanvasTexture,
|
|
10846
10868
|
oe as Color,
|
|
10847
10869
|
W as ColorAdjustEffect,
|
|
10848
10870
|
$e as ColorFilterEffect,
|
|
10849
|
-
|
|
10871
|
+
fs as ColorMatrix,
|
|
10850
10872
|
He as ColorOverlayEffect,
|
|
10851
10873
|
Xe as ColorRemoveEffect,
|
|
10852
10874
|
je as ColorReplaceEffect,
|
|
10853
|
-
|
|
10875
|
+
gr as ColorTexture,
|
|
10854
10876
|
Pe as CoreObject,
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10877
|
+
eo as DEG_TO_RAD,
|
|
10878
|
+
hs as DEVICE_PIXEL_RATIO,
|
|
10879
|
+
K as DrawboardEffect,
|
|
10858
10880
|
re as DropShadowEffect,
|
|
10859
10881
|
T as Effect,
|
|
10860
|
-
|
|
10882
|
+
Ot as EffectMaterial,
|
|
10861
10883
|
te as Element2D,
|
|
10862
|
-
|
|
10884
|
+
Xs as Element2DBackground,
|
|
10863
10885
|
F as Element2DFill,
|
|
10864
|
-
|
|
10886
|
+
js as Element2DForeground,
|
|
10865
10887
|
Ze as Element2DOutline,
|
|
10866
10888
|
Je as Element2DShadow,
|
|
10867
10889
|
Qe as Element2DShape,
|
|
10868
|
-
|
|
10890
|
+
ar as Element2DStyle,
|
|
10869
10891
|
ie as Element2DText,
|
|
10870
10892
|
ct as EmbossEffect,
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10893
|
+
Cr as Engine,
|
|
10894
|
+
Rr as FlexLayout,
|
|
10895
|
+
qo as FontLoader,
|
|
10874
10896
|
ce as GaussianBlurEffect,
|
|
10875
10897
|
Ne as Geometry,
|
|
10876
|
-
|
|
10877
|
-
|
|
10898
|
+
jl as GifLoader,
|
|
10899
|
+
Eo as GlBatch2DSystem,
|
|
10878
10900
|
lt as GlBlendMode,
|
|
10879
|
-
|
|
10880
|
-
|
|
10901
|
+
io as GlBuffer,
|
|
10902
|
+
no as GlBufferSystem,
|
|
10881
10903
|
it as GlBufferTarget,
|
|
10882
|
-
|
|
10904
|
+
So as GlMaskSystem,
|
|
10883
10905
|
nt as GlProgram,
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10906
|
+
Xo as GlRenderTarget,
|
|
10907
|
+
jo as GlRenderTargetSystem,
|
|
10908
|
+
Wo as GlRenderer,
|
|
10909
|
+
xo as GlShaderSystem,
|
|
10888
10910
|
ze as GlState,
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10911
|
+
Po as GlStateSystem,
|
|
10912
|
+
$o as GlStencilSystem,
|
|
10913
|
+
q as GlSystem,
|
|
10914
|
+
Ho as GlViewportSystem,
|
|
10893
10915
|
G as GlitchEffect,
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10916
|
+
Z as GodrayEffect,
|
|
10917
|
+
Gt as GradientTexture,
|
|
10918
|
+
pl as HTMLAudio,
|
|
10919
|
+
Ar as HTMLAudioContext,
|
|
10920
|
+
Nt as HTMLSound,
|
|
10921
|
+
pr as IN_BROWSER,
|
|
10922
|
+
Fi as IN_MAC_OS,
|
|
10901
10923
|
We as IndexBuffer,
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10924
|
+
Zi as Input,
|
|
10925
|
+
Ft as InputEvent,
|
|
10926
|
+
Wl as JsonLoader,
|
|
10905
10927
|
ht as KawaseBlurEffect,
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10928
|
+
kt as KawaseTransition,
|
|
10929
|
+
Wi as KeyboardInputEvent,
|
|
10930
|
+
Ut as LeftEraseTransition,
|
|
10909
10931
|
Me as Loader,
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10932
|
+
cr as Lottie2D,
|
|
10933
|
+
ql as LottieLoader,
|
|
10934
|
+
_r as MainLoop,
|
|
10913
10935
|
De as MaskEffect,
|
|
10914
10936
|
E as Material,
|
|
10915
10937
|
ae as Matrix,
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10938
|
+
gc as Matrix2,
|
|
10939
|
+
ps as Matrix3,
|
|
10940
|
+
Qi as Matrix4,
|
|
10941
|
+
_a as Meta,
|
|
10942
|
+
ds as MouseInputEvent,
|
|
10921
10943
|
M as Node,
|
|
10922
10944
|
Oe as Node2D,
|
|
10923
10945
|
L as OutlineEffect,
|
|
10924
|
-
|
|
10946
|
+
fr as PI,
|
|
10925
10947
|
z as PI_2,
|
|
10926
10948
|
ut as PixelateEffect,
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10949
|
+
ca as PixelsTexture,
|
|
10950
|
+
qi as PointerInputEvent,
|
|
10951
|
+
ro as Projection2D,
|
|
10952
|
+
bc as QuadGeometry,
|
|
10931
10953
|
P as QuadUvGeometry,
|
|
10932
|
-
|
|
10954
|
+
_c as RAD_TO_DEG,
|
|
10933
10955
|
Fe as Rectangle,
|
|
10934
|
-
|
|
10956
|
+
Ji as RefCounted,
|
|
10935
10957
|
X as RenderTarget,
|
|
10936
|
-
|
|
10958
|
+
mr as Renderer,
|
|
10937
10959
|
he as Resource,
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10960
|
+
ns as SUPPORTS_AUDIO_CONTEXT,
|
|
10961
|
+
Ui as SUPPORTS_CLICK_EVENTS,
|
|
10962
|
+
fc as SUPPORTS_CREATE_IMAGE_BITMAP,
|
|
10963
|
+
Mi as SUPPORTS_IMAGE_BITMAP,
|
|
10964
|
+
dc as SUPPORTS_MOUSE_EVENTS,
|
|
10965
|
+
cs as SUPPORTS_OFFLINE_AUDIO_CONTEXT,
|
|
10944
10966
|
et as SUPPORTS_POINTER_EVENTS,
|
|
10945
|
-
|
|
10967
|
+
Ni as SUPPORTS_RESIZE_OBSERVER,
|
|
10946
10968
|
ve as SUPPORTS_TOUCH_EVENTS,
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10969
|
+
Ii as SUPPORTS_WEBGL2,
|
|
10970
|
+
ls as SUPPORTS_WEBKIT_AUDIO_CONTEXT,
|
|
10971
|
+
Bi as SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT,
|
|
10972
|
+
Li as SUPPORTS_WEB_AUDIO,
|
|
10973
|
+
ki as SUPPORTS_WHEEL_EVENTS,
|
|
10952
10974
|
fe as SceneTree,
|
|
10953
|
-
|
|
10975
|
+
Yl as TextLoader,
|
|
10954
10976
|
x as Texture2D,
|
|
10955
|
-
|
|
10956
|
-
|
|
10977
|
+
Kl as TextureLoader,
|
|
10978
|
+
qs as TextureRect2D,
|
|
10957
10979
|
B as Ticker,
|
|
10958
10980
|
pt as TiltShiftTransition,
|
|
10959
10981
|
le as Timeline,
|
|
10960
|
-
|
|
10982
|
+
Y as TimelineNode,
|
|
10961
10983
|
I as Transform2D,
|
|
10962
|
-
|
|
10984
|
+
il as TransformRect2D,
|
|
10963
10985
|
Ve as Transition,
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10986
|
+
Bt as TwistTransition,
|
|
10987
|
+
yc as UvGeometry,
|
|
10988
|
+
Dt as UvMaterial,
|
|
10967
10989
|
ee as Vector,
|
|
10968
10990
|
C as Vector2,
|
|
10969
|
-
|
|
10970
|
-
|
|
10991
|
+
vc as Vector3,
|
|
10992
|
+
to as Vector4,
|
|
10971
10993
|
H as VertexAttribute,
|
|
10972
10994
|
ye as VertexBuffer,
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10995
|
+
hr as Video2D,
|
|
10996
|
+
Zl as VideoLoader,
|
|
10997
|
+
da as VideoTexture,
|
|
10976
10998
|
j as Viewport,
|
|
10977
|
-
|
|
10978
|
-
|
|
10999
|
+
br as ViewportTexture,
|
|
11000
|
+
vl as WebAudio,
|
|
10979
11001
|
Ae as WebAudioContext,
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
11002
|
+
gl as WebSound,
|
|
11003
|
+
Yi as WheelInputEvent,
|
|
11004
|
+
or as Window,
|
|
10983
11005
|
xe as ZoomBlurEffect,
|
|
10984
11006
|
Be as alignMap,
|
|
10985
11007
|
$ as assets,
|
|
10986
|
-
|
|
11008
|
+
es as boxSizingMap,
|
|
10987
11009
|
ne as clamp,
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
11010
|
+
Sn as clampFrag,
|
|
11011
|
+
$i as createHTMLCanvas,
|
|
11012
|
+
ao as createIdFromString,
|
|
11013
|
+
uc as createNode,
|
|
11014
|
+
Xi as crossOrigin,
|
|
10993
11015
|
yt as cubicBezier,
|
|
10994
|
-
|
|
11016
|
+
mc as curves,
|
|
10995
11017
|
b as customNode,
|
|
10996
|
-
|
|
11018
|
+
dr as customNodes,
|
|
10997
11019
|
Le as defaultOptions,
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11020
|
+
Hi as determineCrossOrigin,
|
|
11021
|
+
lr as directionMap,
|
|
11022
|
+
qr as displayMap,
|
|
11023
|
+
hl as ease,
|
|
11024
|
+
ul as easeIn,
|
|
11025
|
+
fl as easeInOut,
|
|
11026
|
+
dl as easeOut,
|
|
11005
11027
|
R as edgeMap,
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11028
|
+
Yr as flexDirectionMap,
|
|
11029
|
+
Kr as flexWrapMap,
|
|
11030
|
+
En as frag,
|
|
11031
|
+
Br as getDefaultCssPropertyValue,
|
|
11032
|
+
Zn as gutterMap,
|
|
11011
11033
|
rt as instanceId,
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11034
|
+
Gi as isCanvasElement,
|
|
11035
|
+
us as isElementNode,
|
|
11036
|
+
pc as isImageElement,
|
|
11037
|
+
Ur as isPow2,
|
|
11038
|
+
zi as isVideoElement,
|
|
11039
|
+
Vi as isWebgl2,
|
|
11040
|
+
Zr as justifyMap,
|
|
11019
11041
|
A as lerp,
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11042
|
+
cl as linear,
|
|
11043
|
+
Vr as log2,
|
|
11044
|
+
wo as mapGlBlendModes,
|
|
11045
|
+
Gr as nextPow2,
|
|
11046
|
+
os as nextTick,
|
|
11047
|
+
Jr as overflowMap,
|
|
11048
|
+
xc as parseCssFilter,
|
|
11049
|
+
Lt as parseCssFunctions,
|
|
11028
11050
|
Et as parseCssProperty,
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11051
|
+
Fa as parseCssTransform,
|
|
11052
|
+
za as parseCssTransformOrigin,
|
|
11053
|
+
Qr as positionTypeMap,
|
|
11054
|
+
Ec as render,
|
|
11033
11055
|
Ie as stencilModeMap,
|
|
11034
|
-
|
|
11056
|
+
rr as timingFunctions
|
|
11035
11057
|
};
|