modern-canvas 0.14.2 → 0.14.4
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/README.md +16 -26
- package/dist/core/renderers/gl/GlMaskSystem.d.ts +2 -1
- package/dist/core/renderers/gl/GlRenderer.d.ts +3 -1
- package/dist/core/renderers/gl/GlScissorSystem.d.ts +15 -0
- package/dist/core/renderers/gl/GlStencilSystem.d.ts +0 -1
- package/dist/index.js +971 -933
- package/package.json +4 -4
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,60 @@ 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
|
+
install(e) {
|
|
3158
|
+
super.install(e), e.scissor = this;
|
|
3159
|
+
}
|
|
3160
|
+
current = {
|
|
3161
|
+
[-1]: {
|
|
3162
|
+
refCount: 0
|
|
3163
|
+
}
|
|
3164
|
+
};
|
|
3165
|
+
onRenderTargetChange(e) {
|
|
3166
|
+
if (e) {
|
|
3167
|
+
let t = this.current[e.instanceId];
|
|
3168
|
+
t || (t = this.current[e.instanceId] = {
|
|
3169
|
+
refCount: 0
|
|
3170
|
+
}), t.rect && t.refCount > 0 ? this.bind(t.rect) : this.bind(null);
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
push(e) {
|
|
3174
|
+
const t = this._gl;
|
|
3175
|
+
t.enable(t.SCISSOR_TEST);
|
|
3176
|
+
const s = this.current[this._renderer.renderTarget.current?.instanceId ?? -1];
|
|
3177
|
+
s.refCount++, s.rect = e, this.bind(e);
|
|
3178
|
+
}
|
|
3179
|
+
pop() {
|
|
3180
|
+
const e = this.current[this._renderer.renderTarget.current?.instanceId ?? -1];
|
|
3181
|
+
e.refCount > 0 && e.refCount--, e.refCount <= 0 && this.bind(null);
|
|
3182
|
+
}
|
|
3183
|
+
bind(e) {
|
|
3184
|
+
const t = this._gl;
|
|
3185
|
+
if (e) {
|
|
3186
|
+
const { pixelRatio: s, viewport: i } = this._renderer, { viewMatrix: o } = this._renderer.shader.uniforms, { x: a, y: n, width: l, height: c } = Go(o, e), u = i.current.height / s - (n + c);
|
|
3187
|
+
t.scissor(
|
|
3188
|
+
a * s,
|
|
3189
|
+
u * s,
|
|
3190
|
+
l * s,
|
|
3191
|
+
c * s
|
|
3192
|
+
);
|
|
3193
|
+
} else
|
|
3194
|
+
t.disable(t.SCISSOR_TEST);
|
|
3195
|
+
}
|
|
3196
|
+
}
|
|
3143
3197
|
const Ie = [];
|
|
3144
3198
|
Ie[D.none] = {};
|
|
3145
3199
|
Ie[D.disabled] = {
|
|
@@ -3188,7 +3242,7 @@ Ie[D.inverseMaskActive] = {
|
|
|
3188
3242
|
passOp: "keep"
|
|
3189
3243
|
}
|
|
3190
3244
|
};
|
|
3191
|
-
class
|
|
3245
|
+
class $o extends q {
|
|
3192
3246
|
install(e) {
|
|
3193
3247
|
super.install(e), e.stencil = this;
|
|
3194
3248
|
}
|
|
@@ -3197,7 +3251,12 @@ class zo extends Z {
|
|
|
3197
3251
|
stencilMode: D.none,
|
|
3198
3252
|
refCount: 0
|
|
3199
3253
|
};
|
|
3200
|
-
current =
|
|
3254
|
+
current = {
|
|
3255
|
+
[-1]: {
|
|
3256
|
+
stencilMode: D.disabled,
|
|
3257
|
+
refCount: 0
|
|
3258
|
+
}
|
|
3259
|
+
};
|
|
3201
3260
|
_passOpMap;
|
|
3202
3261
|
_compareMap;
|
|
3203
3262
|
onUpdateContext(e) {
|
|
@@ -3224,9 +3283,8 @@ class zo extends Z {
|
|
|
3224
3283
|
reset() {
|
|
3225
3284
|
this._cache.enabled = !1, this._cache.stencilMode = D.none, this._cache.refCount = 0;
|
|
3226
3285
|
}
|
|
3227
|
-
_activeRenderTarget = null;
|
|
3228
3286
|
onRenderTargetChange(e) {
|
|
3229
|
-
if (
|
|
3287
|
+
if (e) {
|
|
3230
3288
|
let t = this.current[e.instanceId];
|
|
3231
3289
|
t || (t = this.current[e.instanceId] = {
|
|
3232
3290
|
stencilMode: D.disabled,
|
|
@@ -3235,10 +3293,7 @@ class zo extends Z {
|
|
|
3235
3293
|
}
|
|
3236
3294
|
}
|
|
3237
3295
|
bind(e, t) {
|
|
3238
|
-
const s = this.
|
|
3239
|
-
stencilMode: D.disabled,
|
|
3240
|
-
refCount: 0
|
|
3241
|
-
}, i = this._gl, o = Ie[e], a = this._cache;
|
|
3296
|
+
const s = this.current[this._renderer.renderTarget.current?.instanceId ?? -1], i = this._gl, o = Ie[e], a = this._cache;
|
|
3242
3297
|
if (s.stencilMode = e, s.refCount = t, e === D.disabled) {
|
|
3243
3298
|
this._cache.enabled && (this._cache.enabled = !1, i.disable(i.STENCIL_TEST));
|
|
3244
3299
|
return;
|
|
@@ -3246,7 +3301,7 @@ class zo extends Z {
|
|
|
3246
3301
|
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
3302
|
}
|
|
3248
3303
|
}
|
|
3249
|
-
class
|
|
3304
|
+
class Ho extends q {
|
|
3250
3305
|
current = new Fe(0, 0, 0, 0);
|
|
3251
3306
|
install(e) {
|
|
3252
3307
|
super.install(e), e.viewport = this;
|
|
@@ -3256,7 +3311,7 @@ class Go extends Z {
|
|
|
3256
3311
|
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
3312
|
}
|
|
3258
3313
|
}
|
|
3259
|
-
class
|
|
3314
|
+
class Xo {
|
|
3260
3315
|
constructor(e) {
|
|
3261
3316
|
this.framebuffer = e;
|
|
3262
3317
|
}
|
|
@@ -3267,7 +3322,7 @@ class Vo {
|
|
|
3267
3322
|
msaaRenderBuffer = [];
|
|
3268
3323
|
depthStencilRenderBuffer;
|
|
3269
3324
|
}
|
|
3270
|
-
class
|
|
3325
|
+
class jo extends q {
|
|
3271
3326
|
install(e) {
|
|
3272
3327
|
super.install(e), e.renderTarget = this;
|
|
3273
3328
|
}
|
|
@@ -3277,7 +3332,7 @@ class $o extends Z {
|
|
|
3277
3332
|
_msaaSamples = [];
|
|
3278
3333
|
_hasMRT = !0;
|
|
3279
3334
|
_writeDepthTexture = !0;
|
|
3280
|
-
projectionMatrix = new
|
|
3335
|
+
projectionMatrix = new ro();
|
|
3281
3336
|
onUpdateContext() {
|
|
3282
3337
|
if (this._hasMRT = !0, this._writeDepthTexture = !0, this._renderer.version === 1) {
|
|
3283
3338
|
const e = this._renderer.gl, t = this._renderer.extensions.drawBuffers, s = this._renderer.extensions.depthTexture;
|
|
@@ -3307,7 +3362,7 @@ class $o extends Z {
|
|
|
3307
3362
|
width: this._renderer.screen.width * this._renderer.pixelRatio,
|
|
3308
3363
|
height: this._renderer.screen.height * this._renderer.pixelRatio
|
|
3309
3364
|
});
|
|
3310
|
-
i && this._renderer.stencil.onRenderTargetChange(this.current);
|
|
3365
|
+
i && (this._renderer.scissor.onRenderTargetChange(this.current), this._renderer.stencil.onRenderTargetChange(this.current));
|
|
3311
3366
|
}
|
|
3312
3367
|
unbind() {
|
|
3313
3368
|
return this.bind(null);
|
|
@@ -3316,7 +3371,7 @@ class $o extends Z {
|
|
|
3316
3371
|
return this.glRenderTargets.get(e.instanceId) || this._createGlRenderTarget(e);
|
|
3317
3372
|
}
|
|
3318
3373
|
_createGlRenderTarget(e) {
|
|
3319
|
-
const t = this._gl, s = new
|
|
3374
|
+
const t = this._gl, s = new Xo(t.createFramebuffer());
|
|
3320
3375
|
return s.msaa = !!e.msaa, e.colorTextures.forEach((i) => {
|
|
3321
3376
|
this._renderer.texture.unbind(i);
|
|
3322
3377
|
}), 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 +3512,21 @@ class $o extends Z {
|
|
|
3457
3512
|
super.reset(), this.renderTargets.clear(), this.glRenderTargets.clear(), this.current = null, this._msaaSamples.length = 0;
|
|
3458
3513
|
}
|
|
3459
3514
|
}
|
|
3460
|
-
class
|
|
3515
|
+
class Wo extends mr {
|
|
3461
3516
|
contextLost = !1;
|
|
3462
3517
|
_systems = [
|
|
3463
|
-
new
|
|
3464
|
-
new
|
|
3465
|
-
new
|
|
3466
|
-
new Lo(),
|
|
3467
|
-
new $o(),
|
|
3468
|
-
new wo(),
|
|
3469
|
-
new Eo(),
|
|
3518
|
+
new Uo(),
|
|
3519
|
+
new no(),
|
|
3520
|
+
new xo(),
|
|
3470
3521
|
new Fo(),
|
|
3471
|
-
new
|
|
3522
|
+
new jo(),
|
|
3472
3523
|
new Po(),
|
|
3473
|
-
new
|
|
3524
|
+
new So(),
|
|
3525
|
+
new zo(),
|
|
3526
|
+
new $o(),
|
|
3527
|
+
new Vo(),
|
|
3528
|
+
new Eo(),
|
|
3529
|
+
new Ho()
|
|
3474
3530
|
];
|
|
3475
3531
|
bindPoints = /* @__PURE__ */ new Map();
|
|
3476
3532
|
supports = {
|
|
@@ -3482,10 +3538,10 @@ class Ho extends _r {
|
|
|
3482
3538
|
msaa: !0,
|
|
3483
3539
|
nonPowOf2mipmaps: !0
|
|
3484
3540
|
};
|
|
3485
|
-
constructor(e =
|
|
3541
|
+
constructor(e = $i(), t) {
|
|
3486
3542
|
if (super(), !e)
|
|
3487
3543
|
throw new Error("Failed to createHTMLCanvas");
|
|
3488
|
-
|
|
3544
|
+
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
3545
|
}
|
|
3490
3546
|
_setupContext(e, t) {
|
|
3491
3547
|
this.view = e;
|
|
@@ -3597,7 +3653,7 @@ class Ho extends _r {
|
|
|
3597
3653
|
}
|
|
3598
3654
|
class Me {
|
|
3599
3655
|
}
|
|
3600
|
-
class
|
|
3656
|
+
class qo extends Me {
|
|
3601
3657
|
install(e) {
|
|
3602
3658
|
const t = async (s) => {
|
|
3603
3659
|
const { parseFont: i } = await import("modern-font");
|
|
@@ -3612,26 +3668,26 @@ class Xo extends Me {
|
|
|
3612
3668
|
}), e.font = this, this;
|
|
3613
3669
|
}
|
|
3614
3670
|
}
|
|
3615
|
-
var
|
|
3671
|
+
var Yo = Object.defineProperty, bs = (r, e, t, s) => {
|
|
3616
3672
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3617
3673
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3618
|
-
return i &&
|
|
3674
|
+
return i && Yo(e, t, i), i;
|
|
3619
3675
|
};
|
|
3620
3676
|
class We extends he {
|
|
3621
3677
|
constructor(e) {
|
|
3622
3678
|
super(), this.setProperties(e);
|
|
3623
3679
|
}
|
|
3624
3680
|
}
|
|
3625
|
-
|
|
3681
|
+
bs([
|
|
3626
3682
|
h({ fallback: be.index })
|
|
3627
3683
|
], We.prototype, "usage");
|
|
3628
|
-
|
|
3684
|
+
bs([
|
|
3629
3685
|
h({ default: () => new Uint32Array() })
|
|
3630
3686
|
], We.prototype, "data");
|
|
3631
|
-
var
|
|
3687
|
+
var Ko = Object.defineProperty, zt = (r, e, t, s) => {
|
|
3632
3688
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3633
3689
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3634
|
-
return i &&
|
|
3690
|
+
return i && Ko(e, t, i), i;
|
|
3635
3691
|
};
|
|
3636
3692
|
class Ne extends he {
|
|
3637
3693
|
constructor(e = {}) {
|
|
@@ -3641,38 +3697,38 @@ class Ne extends he {
|
|
|
3641
3697
|
e.flush(), t.activate(e, s), e.geometry.bind(this, t.glProgram), e.geometry.draw(), e.geometry.unbind();
|
|
3642
3698
|
}
|
|
3643
3699
|
}
|
|
3644
|
-
|
|
3700
|
+
zt([
|
|
3645
3701
|
h({ fallback: "triangle-list" })
|
|
3646
3702
|
], Ne.prototype, "topology");
|
|
3647
|
-
|
|
3703
|
+
zt([
|
|
3648
3704
|
h({ default: () => ({}) })
|
|
3649
3705
|
], Ne.prototype, "attributes");
|
|
3650
|
-
|
|
3706
|
+
zt([
|
|
3651
3707
|
h({ default: () => new We() })
|
|
3652
3708
|
], Ne.prototype, "indexBuffer");
|
|
3653
|
-
|
|
3709
|
+
zt([
|
|
3654
3710
|
h({ fallback: 1 })
|
|
3655
3711
|
], Ne.prototype, "instanceCount");
|
|
3656
|
-
var
|
|
3712
|
+
var Zo = Object.defineProperty, ys = (r, e, t, s) => {
|
|
3657
3713
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3658
3714
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3659
|
-
return i &&
|
|
3715
|
+
return i && Zo(e, t, i), i;
|
|
3660
3716
|
};
|
|
3661
3717
|
class ye extends he {
|
|
3662
3718
|
constructor(e) {
|
|
3663
3719
|
super(), this.setProperties(e);
|
|
3664
3720
|
}
|
|
3665
3721
|
}
|
|
3666
|
-
|
|
3722
|
+
ys([
|
|
3667
3723
|
h({ fallback: be.vertex })
|
|
3668
3724
|
], ye.prototype, "usage");
|
|
3669
|
-
|
|
3725
|
+
ys([
|
|
3670
3726
|
h({ default: () => new Float32Array() })
|
|
3671
3727
|
], ye.prototype, "data");
|
|
3672
|
-
var
|
|
3728
|
+
var Jo = Object.defineProperty, ke = (r, e, t, s) => {
|
|
3673
3729
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3674
3730
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3675
|
-
return i &&
|
|
3731
|
+
return i && Jo(e, t, i), i;
|
|
3676
3732
|
};
|
|
3677
3733
|
class H extends he {
|
|
3678
3734
|
constructor(e) {
|
|
@@ -3700,7 +3756,7 @@ ke([
|
|
|
3700
3756
|
ke([
|
|
3701
3757
|
h()
|
|
3702
3758
|
], H.prototype, "divisor");
|
|
3703
|
-
class
|
|
3759
|
+
class bc extends Ne {
|
|
3704
3760
|
constructor() {
|
|
3705
3761
|
super({
|
|
3706
3762
|
topology: "triangle-strip",
|
|
@@ -3718,12 +3774,12 @@ class mc extends Ne {
|
|
|
3718
3774
|
});
|
|
3719
3775
|
}
|
|
3720
3776
|
}
|
|
3721
|
-
var
|
|
3777
|
+
var Qo = Object.defineProperty, ea = (r, e, t, s) => {
|
|
3722
3778
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3723
3779
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3724
|
-
return i &&
|
|
3780
|
+
return i && Qo(e, t, i), i;
|
|
3725
3781
|
};
|
|
3726
|
-
function
|
|
3782
|
+
function ta() {
|
|
3727
3783
|
return {
|
|
3728
3784
|
projectionMatrix: new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]),
|
|
3729
3785
|
modelViewMatrix: new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]),
|
|
@@ -3757,13 +3813,13 @@ void main(void) {
|
|
|
3757
3813
|
}, e.shader.updateUniforms(this);
|
|
3758
3814
|
}
|
|
3759
3815
|
}
|
|
3760
|
-
|
|
3761
|
-
h({ default:
|
|
3816
|
+
ea([
|
|
3817
|
+
h({ default: ta })
|
|
3762
3818
|
], E.prototype, "uniforms");
|
|
3763
|
-
const
|
|
3764
|
-
function
|
|
3819
|
+
const ra = /^uniform \w+ (.+?);\s*\/\/\s*=\s*([^;]+?)[\s;]*$/gm, sa = /vec(\d)\((.*)\)/;
|
|
3820
|
+
function ia(r) {
|
|
3765
3821
|
r = r.trim();
|
|
3766
|
-
const e = r.match(
|
|
3822
|
+
const e = r.match(sa);
|
|
3767
3823
|
if (e) {
|
|
3768
3824
|
const t = Array.from({ length: Number(e[1]) }, () => 0);
|
|
3769
3825
|
return e[2].split(",").forEach((s, i) => {
|
|
@@ -3772,7 +3828,7 @@ function ta(r) {
|
|
|
3772
3828
|
}
|
|
3773
3829
|
return Number(r);
|
|
3774
3830
|
}
|
|
3775
|
-
class
|
|
3831
|
+
class Ot extends E {
|
|
3776
3832
|
static RE = {
|
|
3777
3833
|
getColor: /\sgetColor\s*\(/,
|
|
3778
3834
|
getFromColor: /\sgetFromColor\s*\(/,
|
|
@@ -3789,8 +3845,8 @@ class Ct extends E {
|
|
|
3789
3845
|
transform: !1,
|
|
3790
3846
|
transition: !1
|
|
3791
3847
|
};
|
|
3792
|
-
for (const i in
|
|
3793
|
-
t[i] =
|
|
3848
|
+
for (const i in Ot.RE)
|
|
3849
|
+
t[i] = Ot.RE[i].test(e);
|
|
3794
3850
|
super({
|
|
3795
3851
|
gl: {
|
|
3796
3852
|
vertex: `attribute vec2 position;
|
|
@@ -3822,14 +3878,14 @@ void main(void) { gl_FragColor = transition(vUv); }` : ""}`
|
|
|
3822
3878
|
progress: 0
|
|
3823
3879
|
}
|
|
3824
3880
|
}), this.has = t;
|
|
3825
|
-
const s = e.matchAll(
|
|
3881
|
+
const s = e.matchAll(ra);
|
|
3826
3882
|
for (const i of s)
|
|
3827
3883
|
i[1] && i[2] && i[1].split(",").forEach((o) => {
|
|
3828
|
-
this.uniforms[o.trim()] =
|
|
3884
|
+
this.uniforms[o.trim()] = ia(i[2]);
|
|
3829
3885
|
});
|
|
3830
3886
|
}
|
|
3831
3887
|
}
|
|
3832
|
-
class
|
|
3888
|
+
class Dt extends E {
|
|
3833
3889
|
static _instance;
|
|
3834
3890
|
static get instance() {
|
|
3835
3891
|
return this._instance ??= new this();
|
|
@@ -3867,7 +3923,7 @@ class P extends Ne {
|
|
|
3867
3923
|
static get instance() {
|
|
3868
3924
|
return this._instance ??= new this();
|
|
3869
3925
|
}
|
|
3870
|
-
static draw(e, t =
|
|
3926
|
+
static draw(e, t = Dt.instance, s) {
|
|
3871
3927
|
this.instance.draw(e, t, s);
|
|
3872
3928
|
}
|
|
3873
3929
|
constructor() {
|
|
@@ -3892,7 +3948,7 @@ class P extends Ne {
|
|
|
3892
3948
|
});
|
|
3893
3949
|
}
|
|
3894
3950
|
}
|
|
3895
|
-
class
|
|
3951
|
+
class yc extends Ne {
|
|
3896
3952
|
positionBuffer;
|
|
3897
3953
|
uvBuffer;
|
|
3898
3954
|
constructor(e) {
|
|
@@ -3913,10 +3969,10 @@ class gc extends Ne {
|
|
|
3913
3969
|
}), this.positionBuffer = t, this.uvBuffer = s;
|
|
3914
3970
|
}
|
|
3915
3971
|
}
|
|
3916
|
-
var
|
|
3917
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
3972
|
+
var oa = Object.defineProperty, aa = Object.getOwnPropertyDescriptor, ue = (r, e, t, s) => {
|
|
3973
|
+
for (var i = s > 1 ? void 0 : s ? aa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
3918
3974
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
3919
|
-
return s && i &&
|
|
3975
|
+
return s && i && oa(e, t, i), i;
|
|
3920
3976
|
};
|
|
3921
3977
|
let X = class extends he {
|
|
3922
3978
|
get valid() {
|
|
@@ -3956,10 +4012,10 @@ ue([
|
|
|
3956
4012
|
X = ue([
|
|
3957
4013
|
b("RenderTarget")
|
|
3958
4014
|
], X);
|
|
3959
|
-
var
|
|
4015
|
+
var na = Object.defineProperty, N = (r, e, t, s) => {
|
|
3960
4016
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3961
4017
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3962
|
-
return i &&
|
|
4018
|
+
return i && na(e, t, i), i;
|
|
3963
4019
|
};
|
|
3964
4020
|
class x extends he {
|
|
3965
4021
|
static get EMPTY() {
|
|
@@ -4008,7 +4064,7 @@ class x extends he {
|
|
|
4008
4064
|
switch (super._updateProperty(e, t, s), e) {
|
|
4009
4065
|
case "width":
|
|
4010
4066
|
case "height":
|
|
4011
|
-
this.isPowerOfTwo =
|
|
4067
|
+
this.isPowerOfTwo = Ur(this.pixelWidth) && Ur(this.pixelHeight);
|
|
4012
4068
|
break;
|
|
4013
4069
|
case "source":
|
|
4014
4070
|
this.updateSize();
|
|
@@ -4025,7 +4081,7 @@ class x extends he {
|
|
|
4025
4081
|
e.texture.unbind(this);
|
|
4026
4082
|
}
|
|
4027
4083
|
destroy() {
|
|
4028
|
-
super.destroy(),
|
|
4084
|
+
super.destroy(), Mi && this.source instanceof ImageBitmap && this.source.close();
|
|
4029
4085
|
}
|
|
4030
4086
|
}
|
|
4031
4087
|
N([
|
|
@@ -4076,7 +4132,7 @@ N([
|
|
|
4076
4132
|
N([
|
|
4077
4133
|
h({ fallback: !1 })
|
|
4078
4134
|
], x.prototype, "isPowerOfTwo");
|
|
4079
|
-
class
|
|
4135
|
+
class la extends he {
|
|
4080
4136
|
frames;
|
|
4081
4137
|
frameIndex = 0;
|
|
4082
4138
|
get currentFrame() {
|
|
@@ -4102,7 +4158,7 @@ class oa extends he {
|
|
|
4102
4158
|
});
|
|
4103
4159
|
}
|
|
4104
4160
|
}
|
|
4105
|
-
class
|
|
4161
|
+
class xs extends x {
|
|
4106
4162
|
constructor(e = {}) {
|
|
4107
4163
|
super({
|
|
4108
4164
|
pixelRatio: 2,
|
|
@@ -4123,12 +4179,12 @@ class ys extends x {
|
|
|
4123
4179
|
super._updateProperty(e, t, s);
|
|
4124
4180
|
}
|
|
4125
4181
|
}
|
|
4126
|
-
class
|
|
4182
|
+
class gr extends x {
|
|
4127
4183
|
static _cached = /* @__PURE__ */ new Map();
|
|
4128
4184
|
static get(e) {
|
|
4129
4185
|
const t = new oe(e), s = t.toHex();
|
|
4130
4186
|
let i = this._cached.get(s);
|
|
4131
|
-
return i || (i = new
|
|
4187
|
+
return i || (i = new gr(t), this._cached.set(s, i)), i;
|
|
4132
4188
|
}
|
|
4133
4189
|
constructor(e) {
|
|
4134
4190
|
const t = e instanceof oe ? e : new oe(e);
|
|
@@ -4141,9 +4197,9 @@ class mr extends x {
|
|
|
4141
4197
|
});
|
|
4142
4198
|
}
|
|
4143
4199
|
}
|
|
4144
|
-
class
|
|
4200
|
+
class Gt extends x {
|
|
4145
4201
|
static test(e) {
|
|
4146
|
-
return
|
|
4202
|
+
return ni(e);
|
|
4147
4203
|
}
|
|
4148
4204
|
static linearGradient(e, t, s) {
|
|
4149
4205
|
t = t || 1, s = s || 1;
|
|
@@ -4165,11 +4221,11 @@ class zt extends x {
|
|
|
4165
4221
|
}
|
|
4166
4222
|
constructor(e, t, s) {
|
|
4167
4223
|
super(
|
|
4168
|
-
|
|
4224
|
+
Gt.linearGradient(e, t, s)
|
|
4169
4225
|
);
|
|
4170
4226
|
}
|
|
4171
4227
|
}
|
|
4172
|
-
class
|
|
4228
|
+
class ca extends x {
|
|
4173
4229
|
constructor(e = {}) {
|
|
4174
4230
|
super({
|
|
4175
4231
|
...e,
|
|
@@ -4177,12 +4233,12 @@ class aa extends x {
|
|
|
4177
4233
|
});
|
|
4178
4234
|
}
|
|
4179
4235
|
}
|
|
4180
|
-
var
|
|
4236
|
+
var ha = Object.defineProperty, ws = (r, e, t, s) => {
|
|
4181
4237
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4182
4238
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
4183
|
-
return i &&
|
|
4239
|
+
return i && ha(e, t, i), i;
|
|
4184
4240
|
};
|
|
4185
|
-
function
|
|
4241
|
+
function ua(r) {
|
|
4186
4242
|
return {
|
|
4187
4243
|
autoLoad: !!(r?.autoLoad ?? !0),
|
|
4188
4244
|
autoPlay: !!(r?.autoPlay ?? !1),
|
|
@@ -4193,7 +4249,7 @@ function la(r) {
|
|
|
4193
4249
|
playsinline: !!(r?.playsinline ?? !0)
|
|
4194
4250
|
};
|
|
4195
4251
|
}
|
|
4196
|
-
const
|
|
4252
|
+
const vr = class Ps extends x {
|
|
4197
4253
|
static mimeTypes = new Map(Object.entries({
|
|
4198
4254
|
ogv: "video/ogg",
|
|
4199
4255
|
mov: "video/quicktime",
|
|
@@ -4226,18 +4282,18 @@ const gr = class ws extends x {
|
|
|
4226
4282
|
_resolve;
|
|
4227
4283
|
_reject;
|
|
4228
4284
|
constructor(e, t) {
|
|
4229
|
-
const s =
|
|
4230
|
-
if (!
|
|
4285
|
+
const s = ua(t);
|
|
4286
|
+
if (!zi(e)) {
|
|
4231
4287
|
typeof e == "string" && (e = [e]);
|
|
4232
4288
|
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", ""),
|
|
4289
|
+
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
4290
|
for (let a = 0; a < e.length; ++a) {
|
|
4235
4291
|
let { src: n, mime: l } = e[a];
|
|
4236
4292
|
if (n = n || e[a], n.startsWith("data:"))
|
|
4237
4293
|
l = n.slice(5, n.indexOf(";"));
|
|
4238
4294
|
else if (!n.startsWith("blob:")) {
|
|
4239
4295
|
const u = n.split("?").shift().toLowerCase(), d = u.slice(u.lastIndexOf(".") + 1);
|
|
4240
|
-
l = l ||
|
|
4296
|
+
l = l || Ps.mimeTypes.get(d) || `video/${d}`;
|
|
4241
4297
|
}
|
|
4242
4298
|
const c = document.createElement("source");
|
|
4243
4299
|
c.src = n, l && (c.type = l), o.appendChild(c);
|
|
@@ -4302,17 +4358,17 @@ const gr = class ws extends x {
|
|
|
4302
4358
|
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
4359
|
}
|
|
4304
4360
|
};
|
|
4305
|
-
|
|
4361
|
+
ws([
|
|
4306
4362
|
h({ internal: !0, fallback: !0 })
|
|
4307
|
-
],
|
|
4308
|
-
|
|
4363
|
+
], vr.prototype, "autoUpdate");
|
|
4364
|
+
ws([
|
|
4309
4365
|
h({ internal: !0, fallback: 0 })
|
|
4310
|
-
],
|
|
4311
|
-
let
|
|
4312
|
-
class
|
|
4366
|
+
], vr.prototype, "fps");
|
|
4367
|
+
let da = vr;
|
|
4368
|
+
class br extends x {
|
|
4313
4369
|
//
|
|
4314
4370
|
}
|
|
4315
|
-
class
|
|
4371
|
+
class fa extends At {
|
|
4316
4372
|
fillStyle;
|
|
4317
4373
|
strokeStyle;
|
|
4318
4374
|
strokeAlignment;
|
|
@@ -4328,7 +4384,7 @@ class ha extends Rt {
|
|
|
4328
4384
|
return e ? e instanceof x ? {
|
|
4329
4385
|
texture: e
|
|
4330
4386
|
} : {
|
|
4331
|
-
texture:
|
|
4387
|
+
texture: gr.get(e)
|
|
4332
4388
|
} : {};
|
|
4333
4389
|
}
|
|
4334
4390
|
stroke(e) {
|
|
@@ -4341,14 +4397,14 @@ class ha extends Rt {
|
|
|
4341
4397
|
t = this.style.stroke;
|
|
4342
4398
|
break;
|
|
4343
4399
|
case "object":
|
|
4344
|
-
|
|
4400
|
+
Nr(this.style.stroke) && (t = this.style.stroke.color);
|
|
4345
4401
|
break;
|
|
4346
4402
|
}
|
|
4347
4403
|
this._draws.push({
|
|
4348
4404
|
...e,
|
|
4349
4405
|
...this._parseDrawStyle(t),
|
|
4350
4406
|
type: "stroke",
|
|
4351
|
-
path: new
|
|
4407
|
+
path: new At(this),
|
|
4352
4408
|
transformUv: this.transformUv,
|
|
4353
4409
|
transformVertex: this.transformVertex,
|
|
4354
4410
|
lineStyle: {
|
|
@@ -4376,7 +4432,7 @@ class ha extends Rt {
|
|
|
4376
4432
|
t = this.style.fill;
|
|
4377
4433
|
break;
|
|
4378
4434
|
case "object":
|
|
4379
|
-
|
|
4435
|
+
Nr(this.style.fill) && (t = this.style.fill.color);
|
|
4380
4436
|
break;
|
|
4381
4437
|
}
|
|
4382
4438
|
this._draws.push({
|
|
@@ -4385,7 +4441,7 @@ class ha extends Rt {
|
|
|
4385
4441
|
...e,
|
|
4386
4442
|
...this._parseDrawStyle(t),
|
|
4387
4443
|
type: "fill",
|
|
4388
|
-
path: new
|
|
4444
|
+
path: new At(this)
|
|
4389
4445
|
}), this.resetStatus();
|
|
4390
4446
|
}
|
|
4391
4447
|
copy(e) {
|
|
@@ -4419,7 +4475,7 @@ class ha extends Rt {
|
|
|
4419
4475
|
return e;
|
|
4420
4476
|
}
|
|
4421
4477
|
}
|
|
4422
|
-
class
|
|
4478
|
+
class pa {
|
|
4423
4479
|
front = [];
|
|
4424
4480
|
default = [];
|
|
4425
4481
|
back = [];
|
|
@@ -4467,7 +4523,7 @@ class ua {
|
|
|
4467
4523
|
return [...this.default];
|
|
4468
4524
|
}
|
|
4469
4525
|
}
|
|
4470
|
-
class
|
|
4526
|
+
class _a extends Pe {
|
|
4471
4527
|
constructor(e) {
|
|
4472
4528
|
return super(), this.parent = e, new Proxy(this, {
|
|
4473
4529
|
get: (t, s, i) => Reflect.has(t, s) || String(s).startsWith("_") ? Reflect.get(t, s, i) : t.getProperty(String(s)),
|
|
@@ -4487,18 +4543,18 @@ class da extends Pe {
|
|
|
4487
4543
|
return { internalKey: `____${e}` };
|
|
4488
4544
|
}
|
|
4489
4545
|
}
|
|
4490
|
-
var
|
|
4491
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4546
|
+
var ma = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, de = (r, e, t, s) => {
|
|
4547
|
+
for (var i = s > 1 ? void 0 : s ? ga(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4492
4548
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4493
|
-
return s && i &&
|
|
4549
|
+
return s && i && ma(e, t, i), i;
|
|
4494
4550
|
};
|
|
4495
|
-
const
|
|
4496
|
-
function
|
|
4497
|
-
let e =
|
|
4498
|
-
return e++,
|
|
4551
|
+
const Xr = {};
|
|
4552
|
+
function va(r) {
|
|
4553
|
+
let e = Xr[r] ?? 0;
|
|
4554
|
+
return e++, Xr[r] = e, e;
|
|
4499
4555
|
}
|
|
4500
4556
|
let M = class extends Pe {
|
|
4501
|
-
_meta = new
|
|
4557
|
+
_meta = new _a(this);
|
|
4502
4558
|
get meta() {
|
|
4503
4559
|
return this._meta;
|
|
4504
4560
|
}
|
|
@@ -4508,7 +4564,7 @@ let M = class extends Pe {
|
|
|
4508
4564
|
_readyed = !1;
|
|
4509
4565
|
constructor(r, e = []) {
|
|
4510
4566
|
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}:${
|
|
4567
|
+
name: `${this.is}:${va(this.is)}`,
|
|
4512
4568
|
...r
|
|
4513
4569
|
}).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
4570
|
}
|
|
@@ -4584,7 +4640,7 @@ let M = class extends Pe {
|
|
|
4584
4640
|
return this;
|
|
4585
4641
|
}
|
|
4586
4642
|
/** Children */
|
|
4587
|
-
_children = new
|
|
4643
|
+
_children = new pa();
|
|
4588
4644
|
get children() {
|
|
4589
4645
|
return this._children.default;
|
|
4590
4646
|
}
|
|
@@ -4839,7 +4895,7 @@ let M = class extends Pe {
|
|
|
4839
4895
|
);
|
|
4840
4896
|
}
|
|
4841
4897
|
toJSON() {
|
|
4842
|
-
return
|
|
4898
|
+
return ss({
|
|
4843
4899
|
...super.toJSON(),
|
|
4844
4900
|
is: this.meta.inCanvasIs ? void 0 : this.is,
|
|
4845
4901
|
children: this.children.length ? [...this.children.map((r) => r.toJSON())] : void 0,
|
|
@@ -4849,15 +4905,15 @@ let M = class extends Pe {
|
|
|
4849
4905
|
static parse(r) {
|
|
4850
4906
|
if (Array.isArray(r))
|
|
4851
4907
|
return r.map((n) => this.parse(n));
|
|
4852
|
-
const { is: e, meta: t = {}, children: s, ...i } = r, o =
|
|
4908
|
+
const { is: e, meta: t = {}, children: s, ...i } = r, o = dr.get(e ?? t.inCanvasIs ?? "Node") ?? M, a = new o({ ...i, meta: t });
|
|
4853
4909
|
return s?.forEach((n) => a.appendChild(this.parse(n))), a;
|
|
4854
4910
|
}
|
|
4855
4911
|
};
|
|
4856
4912
|
de([
|
|
4857
|
-
h({ fallback:
|
|
4913
|
+
h({ fallback: is() })
|
|
4858
4914
|
], M.prototype, "id", 2);
|
|
4859
4915
|
de([
|
|
4860
|
-
h({ fallback:
|
|
4916
|
+
h({ fallback: is() })
|
|
4861
4917
|
], M.prototype, "name", 2);
|
|
4862
4918
|
de([
|
|
4863
4919
|
h({ fallback: "inherit" })
|
|
@@ -4880,12 +4936,12 @@ de([
|
|
|
4880
4936
|
M = de([
|
|
4881
4937
|
b("Node")
|
|
4882
4938
|
], M);
|
|
4883
|
-
var
|
|
4884
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4939
|
+
var ba = Object.defineProperty, ya = Object.getOwnPropertyDescriptor, qe = (r, e, t, s) => {
|
|
4940
|
+
for (var i = s > 1 ? void 0 : s ? ya(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4885
4941
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4886
|
-
return s && i &&
|
|
4942
|
+
return s && i && ba(e, t, i), i;
|
|
4887
4943
|
};
|
|
4888
|
-
let
|
|
4944
|
+
let Y = class extends M {
|
|
4889
4945
|
constructor(r, e = []) {
|
|
4890
4946
|
super(), this.setProperties(r).append(e);
|
|
4891
4947
|
}
|
|
@@ -4934,28 +4990,28 @@ let q = class extends M {
|
|
|
4934
4990
|
};
|
|
4935
4991
|
qe([
|
|
4936
4992
|
h({ fallback: !1 })
|
|
4937
|
-
],
|
|
4993
|
+
], Y.prototype, "loop", 2);
|
|
4938
4994
|
qe([
|
|
4939
4995
|
h({ fallback: 0 })
|
|
4940
|
-
],
|
|
4996
|
+
], Y.prototype, "delay", 2);
|
|
4941
4997
|
qe([
|
|
4942
4998
|
h({ fallback: 0 })
|
|
4943
|
-
],
|
|
4999
|
+
], Y.prototype, "duration", 2);
|
|
4944
5000
|
qe([
|
|
4945
5001
|
h({ fallback: !1 })
|
|
4946
|
-
],
|
|
5002
|
+
], Y.prototype, "paused", 2);
|
|
4947
5003
|
qe([
|
|
4948
5004
|
h({ internal: !0, fallback: !1 })
|
|
4949
|
-
],
|
|
4950
|
-
|
|
5005
|
+
], Y.prototype, "insideTimeRange", 2);
|
|
5006
|
+
Y = qe([
|
|
4951
5007
|
b("TimelineNode")
|
|
4952
|
-
],
|
|
4953
|
-
var
|
|
4954
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5008
|
+
], Y);
|
|
5009
|
+
var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, Vt = (r, e, t, s) => {
|
|
5010
|
+
for (var i = s > 1 ? void 0 : s ? wa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4955
5011
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4956
|
-
return s && i &&
|
|
5012
|
+
return s && i && xa(e, t, i), i;
|
|
4957
5013
|
};
|
|
4958
|
-
let Ge = class extends
|
|
5014
|
+
let Ge = class extends Y {
|
|
4959
5015
|
_parentGlobalVisible;
|
|
4960
5016
|
_globalVisible;
|
|
4961
5017
|
get globalVisible() {
|
|
@@ -4967,7 +5023,7 @@ let Ge = class extends q {
|
|
|
4967
5023
|
return this._globalOpacity ?? 1;
|
|
4968
5024
|
}
|
|
4969
5025
|
// Batch render
|
|
4970
|
-
context = new
|
|
5026
|
+
context = new fa();
|
|
4971
5027
|
_resetContext = !0;
|
|
4972
5028
|
needsRender = !0;
|
|
4973
5029
|
needsLayout = !1;
|
|
@@ -5079,7 +5135,7 @@ let Ge = class extends q {
|
|
|
5079
5135
|
const e = this._tree?.pixelate;
|
|
5080
5136
|
this._batchables.forEach((t) => {
|
|
5081
5137
|
let s = t.texture;
|
|
5082
|
-
s instanceof
|
|
5138
|
+
s instanceof br && (s = this._handleViewportTexture(t)), r.batch2D.render({
|
|
5083
5139
|
...t,
|
|
5084
5140
|
roundPixels: this._tree?.roundPixels,
|
|
5085
5141
|
size: e ? t.size : void 0,
|
|
@@ -5088,22 +5144,22 @@ let Ge = class extends q {
|
|
|
5088
5144
|
}), super._render(r);
|
|
5089
5145
|
}
|
|
5090
5146
|
};
|
|
5091
|
-
|
|
5147
|
+
Vt([
|
|
5092
5148
|
h()
|
|
5093
5149
|
], Ge.prototype, "blendMode", 2);
|
|
5094
|
-
|
|
5150
|
+
Vt([
|
|
5095
5151
|
h({ internal: !0, fallback: !0 })
|
|
5096
5152
|
], Ge.prototype, "visible", 2);
|
|
5097
|
-
|
|
5153
|
+
Vt([
|
|
5098
5154
|
h({ internal: !0, fallback: 1 })
|
|
5099
5155
|
], Ge.prototype, "opacity", 2);
|
|
5100
|
-
Ge =
|
|
5156
|
+
Ge = Vt([
|
|
5101
5157
|
b("CanvasItem")
|
|
5102
5158
|
], Ge);
|
|
5103
|
-
var
|
|
5104
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5159
|
+
var Pa = Object.defineProperty, Ea = Object.getOwnPropertyDescriptor, Ue = (r, e, t, s) => {
|
|
5160
|
+
for (var i = s > 1 ? void 0 : s ? Ea(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5105
5161
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5106
|
-
return s && i &&
|
|
5162
|
+
return s && i && Pa(e, t, i), i;
|
|
5107
5163
|
};
|
|
5108
5164
|
let j = class extends M {
|
|
5109
5165
|
canvasTransform = new I();
|
|
@@ -5157,7 +5213,7 @@ let j = class extends M {
|
|
|
5157
5213
|
return !1;
|
|
5158
5214
|
}
|
|
5159
5215
|
activateWithCopy(r, e) {
|
|
5160
|
-
this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r,
|
|
5216
|
+
this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r, Dt.instance, {
|
|
5161
5217
|
sampler: 0
|
|
5162
5218
|
}));
|
|
5163
5219
|
}
|
|
@@ -5202,12 +5258,12 @@ Ue([
|
|
|
5202
5258
|
j = Ue([
|
|
5203
5259
|
b("Viewport")
|
|
5204
5260
|
], j);
|
|
5205
|
-
var
|
|
5206
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5261
|
+
var Sa = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, _t = (r, e, t, s) => {
|
|
5262
|
+
for (var i = s > 1 ? void 0 : s ? Ta(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5207
5263
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5208
|
-
return s && i &&
|
|
5264
|
+
return s && i && Sa(e, t, i), i;
|
|
5209
5265
|
};
|
|
5210
|
-
let T = class extends
|
|
5266
|
+
let T = class extends Y {
|
|
5211
5267
|
material;
|
|
5212
5268
|
needsRender = !0;
|
|
5213
5269
|
get _effectMode() {
|
|
@@ -5228,7 +5284,7 @@ let T = class extends q {
|
|
|
5228
5284
|
_updateProperty(r, e, t) {
|
|
5229
5285
|
switch (super._updateProperty(r, e, t), r) {
|
|
5230
5286
|
case "glsl": {
|
|
5231
|
-
const s = new
|
|
5287
|
+
const s = new Ot(e);
|
|
5232
5288
|
!this.effectMode && s.has.transition && (this.effectMode = "transition"), this.material = s;
|
|
5233
5289
|
break;
|
|
5234
5290
|
}
|
|
@@ -5396,7 +5452,7 @@ _t([
|
|
|
5396
5452
|
T = _t([
|
|
5397
5453
|
b("Effect")
|
|
5398
5454
|
], T);
|
|
5399
|
-
class
|
|
5455
|
+
class Ra {
|
|
5400
5456
|
currentCall;
|
|
5401
5457
|
calls = [];
|
|
5402
5458
|
createCall(e) {
|
|
@@ -5419,10 +5475,10 @@ class Ea {
|
|
|
5419
5475
|
}), this.calls = [];
|
|
5420
5476
|
}
|
|
5421
5477
|
}
|
|
5422
|
-
var
|
|
5423
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5478
|
+
var Aa = Object.defineProperty, Ca = Object.getOwnPropertyDescriptor, Ye = (r, e, t, s) => {
|
|
5479
|
+
for (var i = s > 1 ? void 0 : s ? Ca(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5424
5480
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5425
|
-
return s && i &&
|
|
5481
|
+
return s && i && Aa(e, t, i), i;
|
|
5426
5482
|
};
|
|
5427
5483
|
let le = class extends M {
|
|
5428
5484
|
static from(r, e = !1) {
|
|
@@ -5473,12 +5529,12 @@ Ye([
|
|
|
5473
5529
|
le = Ye([
|
|
5474
5530
|
b("Timeline")
|
|
5475
5531
|
], le);
|
|
5476
|
-
var
|
|
5477
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5532
|
+
var Oa = Object.getOwnPropertyDescriptor, Da = (r, e, t, s) => {
|
|
5533
|
+
for (var i = s > 1 ? void 0 : s ? Oa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5478
5534
|
(a = r[o]) && (i = a(i) || i);
|
|
5479
5535
|
return i;
|
|
5480
5536
|
};
|
|
5481
|
-
let
|
|
5537
|
+
let or = class extends j {
|
|
5482
5538
|
constructor() {
|
|
5483
5539
|
super(), this.renderTargets.forEach((r) => r.isRoot = !0);
|
|
5484
5540
|
}
|
|
@@ -5489,18 +5545,18 @@ let ir = class extends j {
|
|
|
5489
5545
|
this.finish(r), super.flush(r);
|
|
5490
5546
|
}
|
|
5491
5547
|
};
|
|
5492
|
-
|
|
5548
|
+
or = Da([
|
|
5493
5549
|
b("Window")
|
|
5494
|
-
],
|
|
5495
|
-
var
|
|
5550
|
+
], or);
|
|
5551
|
+
var Ia = Object.defineProperty, Ee = (r, e, t, s) => {
|
|
5496
5552
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5497
5553
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
5498
|
-
return i &&
|
|
5554
|
+
return i && Ia(e, t, i), i;
|
|
5499
5555
|
};
|
|
5500
|
-
class fe extends
|
|
5501
|
-
input = new
|
|
5502
|
-
renderStack = new
|
|
5503
|
-
root = new
|
|
5556
|
+
class fe extends _r {
|
|
5557
|
+
input = new Zi();
|
|
5558
|
+
renderStack = new Ra();
|
|
5559
|
+
root = new or().setTree(this);
|
|
5504
5560
|
_backgroundColor = new oe();
|
|
5505
5561
|
_previousViewport;
|
|
5506
5562
|
_currentViewport;
|
|
@@ -5563,13 +5619,13 @@ Ee([
|
|
|
5563
5619
|
h({ internal: !0, fallback: !1 })
|
|
5564
5620
|
], fe.prototype, "processPaused");
|
|
5565
5621
|
Ee([
|
|
5566
|
-
h({ internal: !0, default: () =>
|
|
5622
|
+
h({ internal: !0, default: () => yi })
|
|
5567
5623
|
], fe.prototype, "fonts");
|
|
5568
5624
|
Ee([
|
|
5569
5625
|
h({ internal: !0, default: () => new le() })
|
|
5570
5626
|
], fe.prototype, "timeline");
|
|
5571
|
-
var
|
|
5572
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5627
|
+
var Ma = Object.getOwnPropertyDescriptor, Na = (r, e, t, s) => {
|
|
5628
|
+
for (var i = s > 1 ? void 0 : s ? Ma(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5573
5629
|
(a = r[o]) && (i = a(i) || i);
|
|
5574
5630
|
return i;
|
|
5575
5631
|
};
|
|
@@ -5578,17 +5634,17 @@ let Ve = class extends T {
|
|
|
5578
5634
|
super(), this.setProperties(r).append(e);
|
|
5579
5635
|
}
|
|
5580
5636
|
};
|
|
5581
|
-
Ve =
|
|
5637
|
+
Ve = Na([
|
|
5582
5638
|
b("Transition", {
|
|
5583
5639
|
effectMode: "transition",
|
|
5584
5640
|
processMode: "pausable",
|
|
5585
5641
|
duration: 2e3
|
|
5586
5642
|
})
|
|
5587
5643
|
], Ve);
|
|
5588
|
-
var
|
|
5589
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5644
|
+
var ka = Object.defineProperty, Ua = Object.getOwnPropertyDescriptor, yr = (r, e, t, s) => {
|
|
5645
|
+
for (var i = s > 1 ? void 0 : s ? Ua(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5590
5646
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5591
|
-
return s && i &&
|
|
5647
|
+
return s && i && ka(e, t, i), i;
|
|
5592
5648
|
};
|
|
5593
5649
|
let Oe = class extends Ge {
|
|
5594
5650
|
position = new C().on("update", () => this.updateGlobalTransform());
|
|
@@ -5657,21 +5713,21 @@ let Oe = class extends Ge {
|
|
|
5657
5713
|
return this.globalTransform.apply(r, e);
|
|
5658
5714
|
}
|
|
5659
5715
|
};
|
|
5660
|
-
|
|
5716
|
+
yr([
|
|
5661
5717
|
h({ internal: !0, fallback: 0 })
|
|
5662
5718
|
], Oe.prototype, "rotation", 2);
|
|
5663
|
-
|
|
5719
|
+
yr([
|
|
5664
5720
|
h({ internal: !0, fallback: 0 })
|
|
5665
5721
|
], Oe.prototype, "globalRotation", 2);
|
|
5666
|
-
Oe =
|
|
5722
|
+
Oe = yr([
|
|
5667
5723
|
b("Node2D")
|
|
5668
5724
|
], Oe);
|
|
5669
|
-
var
|
|
5670
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5725
|
+
var Ba = Object.defineProperty, La = Object.getOwnPropertyDescriptor, xr = (r, e, t, s) => {
|
|
5726
|
+
for (var i = s > 1 ? void 0 : s ? La(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5671
5727
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5672
|
-
return s && i &&
|
|
5728
|
+
return s && i && Ba(e, t, i), i;
|
|
5673
5729
|
};
|
|
5674
|
-
let
|
|
5730
|
+
let It = class extends Oe {
|
|
5675
5731
|
canvasTransform = new I();
|
|
5676
5732
|
_screenOffset = { x: 0, y: 0 };
|
|
5677
5733
|
_zoom = new C(1, 1).on("update", () => this.updateTransform());
|
|
@@ -5745,7 +5801,7 @@ let Dt = class extends Oe {
|
|
|
5745
5801
|
}
|
|
5746
5802
|
_onWheel(r) {
|
|
5747
5803
|
if (r.preventDefault(), r.ctrlKey || r.metaKey) {
|
|
5748
|
-
const e = { x: r.screenX, y: r.screenY }, t = this.toGlobal(e), s = r.ctrlKey &&
|
|
5804
|
+
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
5805
|
this.zoomWithWheel(i);
|
|
5750
5806
|
const o = this.toScreen(t);
|
|
5751
5807
|
this.position.add(o.x - e.x, o.y - e.y);
|
|
@@ -5786,19 +5842,19 @@ let Dt = class extends Oe {
|
|
|
5786
5842
|
};
|
|
5787
5843
|
}
|
|
5788
5844
|
};
|
|
5789
|
-
|
|
5845
|
+
xr([
|
|
5790
5846
|
h({ internal: !0, fallback: !1 })
|
|
5791
|
-
],
|
|
5792
|
-
|
|
5847
|
+
], It.prototype, "spaceKey", 2);
|
|
5848
|
+
xr([
|
|
5793
5849
|
h({ internal: !0, fallback: !1 })
|
|
5794
|
-
],
|
|
5795
|
-
|
|
5850
|
+
], It.prototype, "grabbing", 2);
|
|
5851
|
+
It = xr([
|
|
5796
5852
|
b("Camera2D", {
|
|
5797
5853
|
processMode: "disabled",
|
|
5798
5854
|
renderMode: "disabled"
|
|
5799
5855
|
})
|
|
5800
|
-
],
|
|
5801
|
-
const
|
|
5856
|
+
], It);
|
|
5857
|
+
const jr = {
|
|
5802
5858
|
brightness: 1,
|
|
5803
5859
|
contrast: 1,
|
|
5804
5860
|
grayscale: 0,
|
|
@@ -5808,13 +5864,13 @@ const Xr = {
|
|
|
5808
5864
|
saturate: 1,
|
|
5809
5865
|
sepia: 0
|
|
5810
5866
|
};
|
|
5811
|
-
function
|
|
5812
|
-
const e = new
|
|
5867
|
+
function xc(r) {
|
|
5868
|
+
const e = new fs();
|
|
5813
5869
|
if (r === "none")
|
|
5814
5870
|
return e;
|
|
5815
|
-
const t =
|
|
5816
|
-
Object.keys(
|
|
5817
|
-
t[s] = t[s] ??
|
|
5871
|
+
const t = Lt(r).reduce((s, { name: i, args: o }) => (s[i] = o[0].normalizedIntValue, s), {});
|
|
5872
|
+
Object.keys(jr).forEach((s) => {
|
|
5873
|
+
t[s] = t[s] ?? jr[s];
|
|
5818
5874
|
});
|
|
5819
5875
|
for (const s in t) {
|
|
5820
5876
|
const i = t[s];
|
|
@@ -5847,8 +5903,8 @@ function vc(r) {
|
|
|
5847
5903
|
}
|
|
5848
5904
|
return e;
|
|
5849
5905
|
}
|
|
5850
|
-
function
|
|
5851
|
-
return r = !r || r === "none" ? "" : r,
|
|
5906
|
+
function Fa(r, e, t, s = new I()) {
|
|
5907
|
+
return r = !r || r === "none" ? "" : r, Lt(r, { width: e, height: t }).reverse().forEach(({ name: i, args: o }) => {
|
|
5852
5908
|
const a = o.map((n) => n.normalizedIntValue);
|
|
5853
5909
|
switch (i) {
|
|
5854
5910
|
case "translate":
|
|
@@ -5917,7 +5973,7 @@ function Ua(r, e, t, s = new I()) {
|
|
|
5917
5973
|
}
|
|
5918
5974
|
}), s;
|
|
5919
5975
|
}
|
|
5920
|
-
function
|
|
5976
|
+
function za(r) {
|
|
5921
5977
|
const [e, t = e] = r.split(" ");
|
|
5922
5978
|
return [e, t].map((s) => {
|
|
5923
5979
|
switch (s = s.trim(), s) {
|
|
@@ -5934,11 +5990,11 @@ function Ba(r) {
|
|
|
5934
5990
|
}
|
|
5935
5991
|
});
|
|
5936
5992
|
}
|
|
5937
|
-
var
|
|
5938
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5993
|
+
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) => {
|
|
5994
|
+
for (var i = s > 1 ? void 0 : s ? Ga(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5939
5995
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5940
|
-
return s && i &&
|
|
5941
|
-
},
|
|
5996
|
+
return s && i && Es(e, t, i), i;
|
|
5997
|
+
}, $a = (r, e, t) => Va(r, e + "", t);
|
|
5942
5998
|
let W = class extends T {
|
|
5943
5999
|
constructor(r, e = []) {
|
|
5944
6000
|
super(), this.setProperties(r).append(e);
|
|
@@ -5959,7 +6015,7 @@ let W = class extends T {
|
|
|
5959
6015
|
});
|
|
5960
6016
|
}
|
|
5961
6017
|
};
|
|
5962
|
-
|
|
6018
|
+
$a(W, "material", new E({
|
|
5963
6019
|
gl: {
|
|
5964
6020
|
vertex: `precision mediump float;
|
|
5965
6021
|
attribute vec2 position;
|
|
@@ -6023,13 +6079,13 @@ pe([
|
|
|
6023
6079
|
W = pe([
|
|
6024
6080
|
b("ColorAdjustEffect")
|
|
6025
6081
|
], W);
|
|
6026
|
-
var
|
|
6027
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6082
|
+
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) => {
|
|
6083
|
+
for (var i = s > 1 ? void 0 : s ? Ha(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6028
6084
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6029
|
-
return s && i &&
|
|
6030
|
-
},
|
|
6085
|
+
return s && i && Ss(e, t, i), i;
|
|
6086
|
+
}, ja = (r, e, t) => Xa(r, e + "", t);
|
|
6031
6087
|
let $e = class extends T {
|
|
6032
|
-
_colorMatrix = new
|
|
6088
|
+
_colorMatrix = new fs();
|
|
6033
6089
|
constructor(r, e = []) {
|
|
6034
6090
|
super(), this.setProperties(r).append(e);
|
|
6035
6091
|
}
|
|
@@ -6043,7 +6099,7 @@ let $e = class extends T {
|
|
|
6043
6099
|
apply(r, e) {
|
|
6044
6100
|
if (!this.filter)
|
|
6045
6101
|
return;
|
|
6046
|
-
const t =
|
|
6102
|
+
const t = Lt(this.filter), s = this._colorMatrix.identity();
|
|
6047
6103
|
t.forEach(({ name: i, args: o }) => {
|
|
6048
6104
|
const a = o.map((n) => n.normalizedIntValue);
|
|
6049
6105
|
switch (i) {
|
|
@@ -6081,7 +6137,7 @@ let $e = class extends T {
|
|
|
6081
6137
|
});
|
|
6082
6138
|
}
|
|
6083
6139
|
};
|
|
6084
|
-
|
|
6140
|
+
ja($e, "material", new E({
|
|
6085
6141
|
gl: {
|
|
6086
6142
|
vertex: `attribute vec2 position;
|
|
6087
6143
|
attribute vec2 uv;
|
|
@@ -6108,17 +6164,17 @@ void main(void) {
|
|
|
6108
6164
|
}`
|
|
6109
6165
|
}
|
|
6110
6166
|
}));
|
|
6111
|
-
|
|
6167
|
+
Ts([
|
|
6112
6168
|
h()
|
|
6113
6169
|
], $e.prototype, "filter", 2);
|
|
6114
|
-
$e =
|
|
6170
|
+
$e = Ts([
|
|
6115
6171
|
b("ColorFilterEffect")
|
|
6116
6172
|
], $e);
|
|
6117
|
-
var
|
|
6118
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6173
|
+
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) => {
|
|
6174
|
+
for (var i = s > 1 ? void 0 : s ? Wa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6119
6175
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6120
|
-
return s && i &&
|
|
6121
|
-
},
|
|
6176
|
+
return s && i && Rs(e, t, i), i;
|
|
6177
|
+
}, Ya = (r, e, t) => qa(r, e + "", t);
|
|
6122
6178
|
const at = 50;
|
|
6123
6179
|
let He = class extends T {
|
|
6124
6180
|
_color = new oe();
|
|
@@ -6141,7 +6197,7 @@ let He = class extends T {
|
|
|
6141
6197
|
});
|
|
6142
6198
|
}
|
|
6143
6199
|
};
|
|
6144
|
-
|
|
6200
|
+
Ya(He, "material", new E({
|
|
6145
6201
|
gl: {
|
|
6146
6202
|
vertex: `precision mediump float;
|
|
6147
6203
|
attribute vec2 position;
|
|
@@ -6190,20 +6246,20 @@ void main(void) {
|
|
|
6190
6246
|
}`
|
|
6191
6247
|
}
|
|
6192
6248
|
}));
|
|
6193
|
-
|
|
6249
|
+
wr([
|
|
6194
6250
|
h({ default: () => [] })
|
|
6195
6251
|
], He.prototype, "colors", 2);
|
|
6196
|
-
|
|
6252
|
+
wr([
|
|
6197
6253
|
h({ fallback: 0.5 })
|
|
6198
6254
|
], He.prototype, "alpha", 2);
|
|
6199
|
-
He =
|
|
6255
|
+
He = wr([
|
|
6200
6256
|
b("ColorOverlayEffect")
|
|
6201
6257
|
], He);
|
|
6202
|
-
var
|
|
6203
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6258
|
+
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) => {
|
|
6259
|
+
for (var i = s > 1 ? void 0 : s ? Ka(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6204
6260
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6205
|
-
return s && i &&
|
|
6206
|
-
},
|
|
6261
|
+
return s && i && As(e, t, i), i;
|
|
6262
|
+
}, Ja = (r, e, t) => Za(r, e + "", t);
|
|
6207
6263
|
let Xe = class extends T {
|
|
6208
6264
|
_color = new oe();
|
|
6209
6265
|
constructor(r, e = []) {
|
|
@@ -6224,7 +6280,7 @@ let Xe = class extends T {
|
|
|
6224
6280
|
});
|
|
6225
6281
|
}
|
|
6226
6282
|
};
|
|
6227
|
-
|
|
6283
|
+
Ja(Xe, "material", new E({
|
|
6228
6284
|
gl: {
|
|
6229
6285
|
vertex: `precision mediump float;
|
|
6230
6286
|
attribute vec2 position;
|
|
@@ -6259,20 +6315,20 @@ void main(void) {
|
|
|
6259
6315
|
}`
|
|
6260
6316
|
}
|
|
6261
6317
|
}));
|
|
6262
|
-
|
|
6318
|
+
Pr([
|
|
6263
6319
|
h({ default: () => [] })
|
|
6264
6320
|
], Xe.prototype, "colors", 2);
|
|
6265
|
-
|
|
6321
|
+
Pr([
|
|
6266
6322
|
h({ fallback: 0.5 })
|
|
6267
6323
|
], Xe.prototype, "epsilon", 2);
|
|
6268
|
-
Xe =
|
|
6324
|
+
Xe = Pr([
|
|
6269
6325
|
b("ColorRemoveEffect")
|
|
6270
6326
|
], Xe);
|
|
6271
|
-
var
|
|
6272
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6327
|
+
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) => {
|
|
6328
|
+
for (var i = s > 1 ? void 0 : s ? Qa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6273
6329
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6274
|
-
return s && i &&
|
|
6275
|
-
},
|
|
6330
|
+
return s && i && Cs(e, t, i), i;
|
|
6331
|
+
}, tn = (r, e, t) => en(r, e + "", t);
|
|
6276
6332
|
const st = 50;
|
|
6277
6333
|
let je = class extends T {
|
|
6278
6334
|
_color = new oe();
|
|
@@ -6307,7 +6363,7 @@ let je = class extends T {
|
|
|
6307
6363
|
});
|
|
6308
6364
|
}
|
|
6309
6365
|
};
|
|
6310
|
-
|
|
6366
|
+
tn(je, "material", new E({
|
|
6311
6367
|
gl: {
|
|
6312
6368
|
vertex: `precision mediump float;
|
|
6313
6369
|
attribute vec2 position;
|
|
@@ -6349,16 +6405,16 @@ void main(void) {
|
|
|
6349
6405
|
}`
|
|
6350
6406
|
}
|
|
6351
6407
|
}));
|
|
6352
|
-
|
|
6408
|
+
Er([
|
|
6353
6409
|
h({ default: () => [] })
|
|
6354
6410
|
], je.prototype, "colors", 2);
|
|
6355
|
-
|
|
6411
|
+
Er([
|
|
6356
6412
|
h({ fallback: 0.05 })
|
|
6357
6413
|
], je.prototype, "epsilon", 2);
|
|
6358
|
-
je =
|
|
6414
|
+
je = Er([
|
|
6359
6415
|
b("ColorReplaceEffect")
|
|
6360
6416
|
], je);
|
|
6361
|
-
const
|
|
6417
|
+
const rn = `precision highp float;
|
|
6362
6418
|
|
|
6363
6419
|
in vec2 vUv;
|
|
6364
6420
|
uniform sampler2D uTexture;
|
|
@@ -6509,12 +6565,12 @@ void main(void) {
|
|
|
6509
6565
|
gl_FragColor = color;
|
|
6510
6566
|
}
|
|
6511
6567
|
`;
|
|
6512
|
-
var
|
|
6513
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6568
|
+
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) => {
|
|
6569
|
+
for (var i = s > 1 ? void 0 : s ? sn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6514
6570
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6515
|
-
return s && i &&
|
|
6516
|
-
},
|
|
6517
|
-
let
|
|
6571
|
+
return s && i && Os(e, t, i), i;
|
|
6572
|
+
}, an = (r, e, t) => on(r, e + "", t);
|
|
6573
|
+
let K = class extends T {
|
|
6518
6574
|
_watermark;
|
|
6519
6575
|
constructor(r, e = []) {
|
|
6520
6576
|
super(), this.setProperties(r).append(e);
|
|
@@ -6541,7 +6597,7 @@ let Y = class extends T {
|
|
|
6541
6597
|
this.watermarkWidth,
|
|
6542
6598
|
this.watermarkWidth * this._watermark.height / this._watermark.width
|
|
6543
6599
|
] : [0, 0], i = Math.max(s[0], s[1]);
|
|
6544
|
-
P.draw(r,
|
|
6600
|
+
P.draw(r, K.material, {
|
|
6545
6601
|
uTexture: 0,
|
|
6546
6602
|
inputSize: [e.width, e.height],
|
|
6547
6603
|
zoom: [t[0], t[4]],
|
|
@@ -6568,7 +6624,7 @@ let Y = class extends T {
|
|
|
6568
6624
|
});
|
|
6569
6625
|
}
|
|
6570
6626
|
};
|
|
6571
|
-
|
|
6627
|
+
an(K, "material", new E({
|
|
6572
6628
|
gl: {
|
|
6573
6629
|
vertex: `attribute vec2 position;
|
|
6574
6630
|
in vec2 uv;
|
|
@@ -6579,39 +6635,39 @@ void main() {
|
|
|
6579
6635
|
gl_Position = vec4(position.xy, 0.0, 1.0);
|
|
6580
6636
|
vUv = uv;
|
|
6581
6637
|
}`,
|
|
6582
|
-
fragment:
|
|
6638
|
+
fragment: rn
|
|
6583
6639
|
}
|
|
6584
6640
|
}));
|
|
6585
6641
|
Se([
|
|
6586
6642
|
h({ fallback: !1 })
|
|
6587
|
-
],
|
|
6643
|
+
], K.prototype, "checkerboard", 2);
|
|
6588
6644
|
Se([
|
|
6589
6645
|
h({ fallback: "grid" })
|
|
6590
|
-
],
|
|
6646
|
+
], K.prototype, "checkerboardStyle", 2);
|
|
6591
6647
|
Se([
|
|
6592
6648
|
h({ fallback: !1 })
|
|
6593
|
-
],
|
|
6649
|
+
], K.prototype, "pixelGrid", 2);
|
|
6594
6650
|
Se([
|
|
6595
6651
|
h()
|
|
6596
|
-
],
|
|
6652
|
+
], K.prototype, "watermark", 2);
|
|
6597
6653
|
Se([
|
|
6598
6654
|
h({ fallback: 100 })
|
|
6599
|
-
],
|
|
6655
|
+
], K.prototype, "watermarkWidth", 2);
|
|
6600
6656
|
Se([
|
|
6601
6657
|
h({ fallback: 0.05 })
|
|
6602
|
-
],
|
|
6658
|
+
], K.prototype, "watermarkAlpha", 2);
|
|
6603
6659
|
Se([
|
|
6604
6660
|
h({ fallback: 0.5236 })
|
|
6605
|
-
],
|
|
6606
|
-
|
|
6661
|
+
], K.prototype, "watermarkRotation", 2);
|
|
6662
|
+
K = Se([
|
|
6607
6663
|
b("DrawboardEffect")
|
|
6608
|
-
],
|
|
6609
|
-
var
|
|
6610
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6664
|
+
], K);
|
|
6665
|
+
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) => {
|
|
6666
|
+
for (var i = s > 1 ? void 0 : s ? nn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6611
6667
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6612
|
-
return s && i &&
|
|
6613
|
-
},
|
|
6614
|
-
const
|
|
6668
|
+
return s && i && Ds(e, t, i), i;
|
|
6669
|
+
}, Is = (r, e, t) => ln(r, typeof e != "symbol" ? e + "" : e, t);
|
|
6670
|
+
const Ms = `varying vec2 vUv[9];
|
|
6615
6671
|
uniform sampler2D sampler;
|
|
6616
6672
|
|
|
6617
6673
|
void main(void) {
|
|
@@ -6668,7 +6724,7 @@ let ce = class extends T {
|
|
|
6668
6724
|
});
|
|
6669
6725
|
}
|
|
6670
6726
|
};
|
|
6671
|
-
|
|
6727
|
+
Is(ce, "materialX", new E({
|
|
6672
6728
|
gl: {
|
|
6673
6729
|
vertex: `attribute vec2 position;
|
|
6674
6730
|
attribute vec2 uv;
|
|
@@ -6687,10 +6743,10 @@ void main(void) {
|
|
|
6687
6743
|
vUv[7] = uv + vec2(3.0 * uStrength, 0.0);
|
|
6688
6744
|
vUv[8] = uv + vec2(4.0 * uStrength, 0.0);
|
|
6689
6745
|
}`,
|
|
6690
|
-
fragment:
|
|
6746
|
+
fragment: Ms
|
|
6691
6747
|
}
|
|
6692
6748
|
}));
|
|
6693
|
-
|
|
6749
|
+
Is(ce, "materialY", new E({
|
|
6694
6750
|
gl: {
|
|
6695
6751
|
vertex: `attribute vec2 position;
|
|
6696
6752
|
attribute vec2 uv;
|
|
@@ -6709,23 +6765,23 @@ void main(void) {
|
|
|
6709
6765
|
vUv[7] = uv + vec2(0.0, 3.0 * uStrength);
|
|
6710
6766
|
vUv[8] = uv + vec2(0.0, 4.0 * uStrength);
|
|
6711
6767
|
}`,
|
|
6712
|
-
fragment:
|
|
6768
|
+
fragment: Ms
|
|
6713
6769
|
}
|
|
6714
6770
|
}));
|
|
6715
|
-
|
|
6771
|
+
Sr([
|
|
6716
6772
|
h({ fallback: 4 })
|
|
6717
6773
|
], ce.prototype, "strength", 2);
|
|
6718
|
-
|
|
6774
|
+
Sr([
|
|
6719
6775
|
h({ fallback: 3 })
|
|
6720
6776
|
], ce.prototype, "quality", 2);
|
|
6721
|
-
ce =
|
|
6777
|
+
ce = Sr([
|
|
6722
6778
|
b("GaussianBlurEffect")
|
|
6723
6779
|
], ce);
|
|
6724
|
-
var
|
|
6725
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6780
|
+
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) => {
|
|
6781
|
+
for (var i = s > 1 ? void 0 : s ? cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6726
6782
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6727
|
-
return s && i &&
|
|
6728
|
-
},
|
|
6783
|
+
return s && i && Ns(e, t, i), i;
|
|
6784
|
+
}, un = (r, e, t) => hn(r, e + "", t);
|
|
6729
6785
|
let re = class extends T {
|
|
6730
6786
|
blurEffect = new ce();
|
|
6731
6787
|
viewport3 = new j();
|
|
@@ -6743,15 +6799,15 @@ let re = class extends T {
|
|
|
6743
6799
|
uInputSize: [e.width, e.height, 1 / e.width, 1 / e.height]
|
|
6744
6800
|
});
|
|
6745
6801
|
}), this.blurEffect.strength = this.blur, this.blurEffect.apply(r, this.viewport3), e.redraw(r, () => {
|
|
6746
|
-
this.viewport3.texture.activate(r, 1), P.draw(r,
|
|
6802
|
+
this.viewport3.texture.activate(r, 1), P.draw(r, Dt.instance, {
|
|
6747
6803
|
sampler: 1
|
|
6748
|
-
}), this.shadowOnly || P.draw(r,
|
|
6804
|
+
}), this.shadowOnly || P.draw(r, Dt.instance, {
|
|
6749
6805
|
sampler: 0
|
|
6750
6806
|
}), r.texture.unbind(1);
|
|
6751
6807
|
});
|
|
6752
6808
|
}
|
|
6753
6809
|
};
|
|
6754
|
-
|
|
6810
|
+
un(re, "material", new E({
|
|
6755
6811
|
gl: {
|
|
6756
6812
|
vertex: `precision mediump float;
|
|
6757
6813
|
attribute vec2 position;
|
|
@@ -6795,11 +6851,11 @@ Ke([
|
|
|
6795
6851
|
re = Ke([
|
|
6796
6852
|
b("DropShadowEffect")
|
|
6797
6853
|
], re);
|
|
6798
|
-
var
|
|
6799
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6854
|
+
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) => {
|
|
6855
|
+
for (var i = s > 1 ? void 0 : s ? dn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6800
6856
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6801
|
-
return s && i &&
|
|
6802
|
-
},
|
|
6857
|
+
return s && i && ks(e, t, i), i;
|
|
6858
|
+
}, pn = (r, e, t) => fn(r, e + "", t);
|
|
6803
6859
|
let ct = class extends T {
|
|
6804
6860
|
constructor(r, e = []) {
|
|
6805
6861
|
super(), this.setProperties(r).append(e);
|
|
@@ -6814,7 +6870,7 @@ let ct = class extends T {
|
|
|
6814
6870
|
});
|
|
6815
6871
|
}
|
|
6816
6872
|
};
|
|
6817
|
-
|
|
6873
|
+
pn(ct, "material", new E({
|
|
6818
6874
|
gl: {
|
|
6819
6875
|
vertex: `precision mediump float;
|
|
6820
6876
|
attribute vec2 position;
|
|
@@ -6842,17 +6898,17 @@ void main(void) {
|
|
|
6842
6898
|
}`
|
|
6843
6899
|
}
|
|
6844
6900
|
}));
|
|
6845
|
-
|
|
6901
|
+
Us([
|
|
6846
6902
|
h({ fallback: 5 })
|
|
6847
6903
|
], ct.prototype, "strength", 2);
|
|
6848
|
-
ct =
|
|
6904
|
+
ct = Us([
|
|
6849
6905
|
b("EmbossEffect")
|
|
6850
6906
|
], ct);
|
|
6851
|
-
var
|
|
6852
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6907
|
+
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) => {
|
|
6908
|
+
for (var i = s > 1 ? void 0 : s ? _n(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6853
6909
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6854
|
-
return s && i &&
|
|
6855
|
-
},
|
|
6910
|
+
return s && i && Bs(e, t, i), i;
|
|
6911
|
+
}, gn = (r, e, t) => mn(r, e + "", t);
|
|
6856
6912
|
let G = class extends T {
|
|
6857
6913
|
_canvas;
|
|
6858
6914
|
_texture;
|
|
@@ -6896,7 +6952,7 @@ let G = class extends T {
|
|
|
6896
6952
|
});
|
|
6897
6953
|
}
|
|
6898
6954
|
};
|
|
6899
|
-
|
|
6955
|
+
gn(G, "material", new E({
|
|
6900
6956
|
gl: {
|
|
6901
6957
|
vertex: `in vec2 position;
|
|
6902
6958
|
in vec2 uv;
|
|
@@ -7031,12 +7087,12 @@ se([
|
|
|
7031
7087
|
G = se([
|
|
7032
7088
|
b("GlitchEffect")
|
|
7033
7089
|
], G);
|
|
7034
|
-
var
|
|
7035
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7090
|
+
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) => {
|
|
7091
|
+
for (var i = s > 1 ? void 0 : s ? vn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7036
7092
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7037
|
-
return s && i &&
|
|
7038
|
-
},
|
|
7039
|
-
const
|
|
7093
|
+
return s && i && Ls(e, t, i), i;
|
|
7094
|
+
}, yn = (r, e, t) => bn(r, e + "", t);
|
|
7095
|
+
const xn = `vec3 mod289(vec3 x) {
|
|
7040
7096
|
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
7041
7097
|
}
|
|
7042
7098
|
vec4 mod289(vec4 x) {
|
|
@@ -7123,14 +7179,14 @@ float turb(vec3 P, vec3 rep, float lacunarity, float gain) {
|
|
|
7123
7179
|
}
|
|
7124
7180
|
return abs(sum);
|
|
7125
7181
|
}`;
|
|
7126
|
-
let
|
|
7182
|
+
let Z = class extends T {
|
|
7127
7183
|
constructor(r, e = []) {
|
|
7128
7184
|
super(), this.setProperties(r).append(e);
|
|
7129
7185
|
}
|
|
7130
7186
|
apply(r, e) {
|
|
7131
7187
|
const t = this.angle * (Math.PI / 180), s = this.parallel ? [Math.cos(t), Math.sin(t)] : this.center;
|
|
7132
7188
|
e.redraw(r, () => {
|
|
7133
|
-
P.draw(r,
|
|
7189
|
+
P.draw(r, Z.material, {
|
|
7134
7190
|
sampler: 0,
|
|
7135
7191
|
uDimensions: [e.width, e.height],
|
|
7136
7192
|
uParallel: this.parallel ? 1 : 0,
|
|
@@ -7147,7 +7203,7 @@ let K = class extends T {
|
|
|
7147
7203
|
});
|
|
7148
7204
|
}
|
|
7149
7205
|
};
|
|
7150
|
-
|
|
7206
|
+
yn(Z, "material", new E({
|
|
7151
7207
|
gl: {
|
|
7152
7208
|
vertex: `precision mediump float;
|
|
7153
7209
|
attribute vec2 position;
|
|
@@ -7168,7 +7224,7 @@ uniform float uTime;
|
|
|
7168
7224
|
uniform vec3 uRay;
|
|
7169
7225
|
uniform vec4 uInputSize;
|
|
7170
7226
|
|
|
7171
|
-
${
|
|
7227
|
+
${xn}
|
|
7172
7228
|
|
|
7173
7229
|
void main(void) {
|
|
7174
7230
|
bool uParallel = uParallel > 0.5;
|
|
@@ -7204,34 +7260,34 @@ void main(void) {
|
|
|
7204
7260
|
}));
|
|
7205
7261
|
Te([
|
|
7206
7262
|
h({ fallback: 0 })
|
|
7207
|
-
],
|
|
7263
|
+
], Z.prototype, "time", 2);
|
|
7208
7264
|
Te([
|
|
7209
7265
|
h({ fallback: 30 })
|
|
7210
|
-
],
|
|
7266
|
+
], Z.prototype, "angle", 2);
|
|
7211
7267
|
Te([
|
|
7212
7268
|
h({ fallback: 0.5 })
|
|
7213
|
-
],
|
|
7269
|
+
], Z.prototype, "gain", 2);
|
|
7214
7270
|
Te([
|
|
7215
7271
|
h({ fallback: 2.5 })
|
|
7216
|
-
],
|
|
7272
|
+
], Z.prototype, "lacunarity", 2);
|
|
7217
7273
|
Te([
|
|
7218
7274
|
h({ fallback: !0 })
|
|
7219
|
-
],
|
|
7275
|
+
], Z.prototype, "parallel", 2);
|
|
7220
7276
|
Te([
|
|
7221
7277
|
h({ default: () => [0, 0] })
|
|
7222
|
-
],
|
|
7278
|
+
], Z.prototype, "center", 2);
|
|
7223
7279
|
Te([
|
|
7224
7280
|
h({ fallback: 1 })
|
|
7225
|
-
],
|
|
7226
|
-
|
|
7281
|
+
], Z.prototype, "alpha", 2);
|
|
7282
|
+
Z = Te([
|
|
7227
7283
|
b("GodrayEffect")
|
|
7228
|
-
],
|
|
7229
|
-
var
|
|
7230
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7284
|
+
], Z);
|
|
7285
|
+
var wn = Object.defineProperty, Pn = Object.getOwnPropertyDescriptor, $t = (r, e, t, s) => {
|
|
7286
|
+
for (var i = s > 1 ? void 0 : s ? Pn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7231
7287
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7232
|
-
return s && i &&
|
|
7288
|
+
return s && i && wn(e, t, i), i;
|
|
7233
7289
|
};
|
|
7234
|
-
const
|
|
7290
|
+
const En = `varying vec2 vUv;
|
|
7235
7291
|
uniform sampler2D sampler;
|
|
7236
7292
|
uniform vec2 uOffset;
|
|
7237
7293
|
|
|
@@ -7243,7 +7299,7 @@ void main(void) {
|
|
|
7243
7299
|
color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y - uOffset.y));
|
|
7244
7300
|
color *= 0.25;
|
|
7245
7301
|
gl_FragColor = color;
|
|
7246
|
-
}`,
|
|
7302
|
+
}`, Sn = `precision highp float;
|
|
7247
7303
|
varying vec2 vUv;
|
|
7248
7304
|
uniform sampler2D sampler;
|
|
7249
7305
|
uniform vec2 uOffset;
|
|
@@ -7270,7 +7326,7 @@ void main() {
|
|
|
7270
7326
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7271
7327
|
vUv = uv;
|
|
7272
7328
|
}`,
|
|
7273
|
-
fragment: r?.clamp ?
|
|
7329
|
+
fragment: r?.clamp ? Sn : En
|
|
7274
7330
|
}
|
|
7275
7331
|
}), this.setProperties(r).append(e), this._generateKernels();
|
|
7276
7332
|
}
|
|
@@ -7310,23 +7366,23 @@ void main() {
|
|
|
7310
7366
|
});
|
|
7311
7367
|
}
|
|
7312
7368
|
};
|
|
7313
|
-
|
|
7369
|
+
$t([
|
|
7314
7370
|
h({ fallback: 4 })
|
|
7315
7371
|
], ht.prototype, "strength", 2);
|
|
7316
|
-
|
|
7372
|
+
$t([
|
|
7317
7373
|
h({ fallback: 3 })
|
|
7318
7374
|
], ht.prototype, "quality", 2);
|
|
7319
|
-
|
|
7375
|
+
$t([
|
|
7320
7376
|
h({ default: () => [1, 1] })
|
|
7321
7377
|
], ht.prototype, "pixelSize", 2);
|
|
7322
|
-
ht =
|
|
7378
|
+
ht = $t([
|
|
7323
7379
|
b("KawaseBlurEffect")
|
|
7324
7380
|
], ht);
|
|
7325
|
-
var
|
|
7326
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7381
|
+
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) => {
|
|
7382
|
+
for (var i = s > 1 ? void 0 : s ? Tn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7327
7383
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7328
|
-
return s && i &&
|
|
7329
|
-
},
|
|
7384
|
+
return s && i && Fs(e, t, i), i;
|
|
7385
|
+
}, An = (r, e, t) => Rn(r, e + "", t);
|
|
7330
7386
|
let De = class extends T {
|
|
7331
7387
|
constructor(r, e = []) {
|
|
7332
7388
|
super(), this.setProperties(r).append(e);
|
|
@@ -7354,7 +7410,7 @@ let De = class extends T {
|
|
|
7354
7410
|
});
|
|
7355
7411
|
}
|
|
7356
7412
|
};
|
|
7357
|
-
|
|
7413
|
+
An(De, "material", new E({
|
|
7358
7414
|
gl: {
|
|
7359
7415
|
vertex: `attribute vec2 position;
|
|
7360
7416
|
in vec2 uv;
|
|
@@ -7389,21 +7445,21 @@ void main(void) {
|
|
|
7389
7445
|
}`
|
|
7390
7446
|
}
|
|
7391
7447
|
}));
|
|
7392
|
-
|
|
7448
|
+
Tr([
|
|
7393
7449
|
h({ internal: !0 })
|
|
7394
7450
|
], De.prototype, "texture", 2);
|
|
7395
|
-
|
|
7451
|
+
Tr([
|
|
7396
7452
|
h({ fallback: "" })
|
|
7397
7453
|
], De.prototype, "src", 2);
|
|
7398
|
-
De =
|
|
7454
|
+
De = Tr([
|
|
7399
7455
|
b("MaskEffect")
|
|
7400
7456
|
], De);
|
|
7401
|
-
var
|
|
7402
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7457
|
+
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) => {
|
|
7458
|
+
for (var i = s > 1 ? void 0 : s ? Cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7403
7459
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7404
|
-
return s && i &&
|
|
7405
|
-
},
|
|
7406
|
-
const
|
|
7460
|
+
return s && i && zs(e, t, i), i;
|
|
7461
|
+
}, Gs = (r, e, t) => On(r, typeof e != "symbol" ? e + "" : e, t);
|
|
7462
|
+
const Dn = `precision highp float;
|
|
7407
7463
|
varying vec2 vUv;
|
|
7408
7464
|
uniform sampler2D sampler;
|
|
7409
7465
|
uniform vec2 uThickness;
|
|
@@ -7459,7 +7515,7 @@ void main() {
|
|
|
7459
7515
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7460
7516
|
vUv = uv;
|
|
7461
7517
|
}`,
|
|
7462
|
-
fragment:
|
|
7518
|
+
fragment: Dn.replace(
|
|
7463
7519
|
/\{ANGLE_STEP\}/,
|
|
7464
7520
|
L.getAngleStep(this.quality).toFixed(7)
|
|
7465
7521
|
)
|
|
@@ -7483,8 +7539,8 @@ void main() {
|
|
|
7483
7539
|
});
|
|
7484
7540
|
}
|
|
7485
7541
|
};
|
|
7486
|
-
|
|
7487
|
-
|
|
7542
|
+
Gs(L, "MIN_SAMPLES", 1);
|
|
7543
|
+
Gs(L, "MAX_SAMPLES", 100);
|
|
7488
7544
|
Re([
|
|
7489
7545
|
h({ fallback: "#000000ff" })
|
|
7490
7546
|
], L.prototype, "color", 2);
|
|
@@ -7509,11 +7565,11 @@ Re([
|
|
|
7509
7565
|
L = Re([
|
|
7510
7566
|
b("OutlineEffect")
|
|
7511
7567
|
], L);
|
|
7512
|
-
var
|
|
7513
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7568
|
+
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) => {
|
|
7569
|
+
for (var i = s > 1 ? void 0 : s ? In(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7514
7570
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7515
|
-
return s && i &&
|
|
7516
|
-
},
|
|
7571
|
+
return s && i && Vs(e, t, i), i;
|
|
7572
|
+
}, Nn = (r, e, t) => Mn(r, e + "", t);
|
|
7517
7573
|
let ut = class extends T {
|
|
7518
7574
|
constructor(r, e = []) {
|
|
7519
7575
|
super(), this.setProperties(r).append(e);
|
|
@@ -7535,7 +7591,7 @@ let ut = class extends T {
|
|
|
7535
7591
|
});
|
|
7536
7592
|
}
|
|
7537
7593
|
};
|
|
7538
|
-
|
|
7594
|
+
Nn(ut, "material", new E({
|
|
7539
7595
|
gl: {
|
|
7540
7596
|
vertex: `attribute vec2 position;
|
|
7541
7597
|
attribute vec2 uv;
|
|
@@ -7557,17 +7613,17 @@ void main(void) {
|
|
|
7557
7613
|
}`
|
|
7558
7614
|
}
|
|
7559
7615
|
}));
|
|
7560
|
-
|
|
7616
|
+
$s([
|
|
7561
7617
|
h({ fallback: 10 })
|
|
7562
7618
|
], ut.prototype, "strength", 2);
|
|
7563
|
-
ut =
|
|
7619
|
+
ut = $s([
|
|
7564
7620
|
b("PixelateEffect")
|
|
7565
7621
|
], ut);
|
|
7566
|
-
var
|
|
7567
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7622
|
+
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) => {
|
|
7623
|
+
for (var i = s > 1 ? void 0 : s ? kn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7568
7624
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7569
|
-
return s && i &&
|
|
7570
|
-
},
|
|
7625
|
+
return s && i && Hs(e, t, i), i;
|
|
7626
|
+
}, Bn = (r, e, t) => Un(r, e + "", t);
|
|
7571
7627
|
let xe = class extends T {
|
|
7572
7628
|
constructor(r, e = []) {
|
|
7573
7629
|
super(), this.setProperties(r).append(e);
|
|
@@ -7585,7 +7641,7 @@ let xe = class extends T {
|
|
|
7585
7641
|
});
|
|
7586
7642
|
}
|
|
7587
7643
|
};
|
|
7588
|
-
|
|
7644
|
+
Bn(xe, "material", new E({
|
|
7589
7645
|
gl: {
|
|
7590
7646
|
vertex: `attribute vec2 position;
|
|
7591
7647
|
attribute vec2 uv;
|
|
@@ -7686,7 +7742,7 @@ mt([
|
|
|
7686
7742
|
xe = mt([
|
|
7687
7743
|
b("ZoomBlurEffect")
|
|
7688
7744
|
], xe);
|
|
7689
|
-
function
|
|
7745
|
+
function Mt(r, e) {
|
|
7690
7746
|
const { x: t, y: s, width: i, height: o } = e;
|
|
7691
7747
|
let a = !1;
|
|
7692
7748
|
const n = new I().translate(-t, -s).scale(1 / i, 1 / o);
|
|
@@ -7732,10 +7788,10 @@ function It(r, e) {
|
|
|
7732
7788
|
}
|
|
7733
7789
|
};
|
|
7734
7790
|
}
|
|
7735
|
-
var
|
|
7791
|
+
var Ln = Object.defineProperty, J = (r, e, t, s) => {
|
|
7736
7792
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7737
7793
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7738
|
-
return i &&
|
|
7794
|
+
return i && Ln(e, t, i), i;
|
|
7739
7795
|
};
|
|
7740
7796
|
class F extends Pe {
|
|
7741
7797
|
constructor(e) {
|
|
@@ -7748,7 +7804,7 @@ class F extends Pe {
|
|
|
7748
7804
|
}
|
|
7749
7805
|
setProperties(e) {
|
|
7750
7806
|
return this._setProperties(
|
|
7751
|
-
V(e) ? void 0 :
|
|
7807
|
+
V(e) ? void 0 : li(e)
|
|
7752
7808
|
);
|
|
7753
7809
|
}
|
|
7754
7810
|
_updateProperty(e, t, s) {
|
|
@@ -7772,7 +7828,7 @@ class F extends Pe {
|
|
|
7772
7828
|
}
|
|
7773
7829
|
async loadTexture() {
|
|
7774
7830
|
if (this.linearGradient || this.radialGradient)
|
|
7775
|
-
this.texture = new
|
|
7831
|
+
this.texture = new Gt(
|
|
7776
7832
|
this.linearGradient ?? this.radialGradient,
|
|
7777
7833
|
this.parent.size.width,
|
|
7778
7834
|
this.parent.size.height
|
|
@@ -7799,9 +7855,9 @@ class F extends Pe {
|
|
|
7799
7855
|
let i = {
|
|
7800
7856
|
size: { width: e, height: t }
|
|
7801
7857
|
};
|
|
7802
|
-
this.image === "viewport" ? s.fillStyle = new
|
|
7858
|
+
this.image === "viewport" ? s.fillStyle = new br() : (i = {
|
|
7803
7859
|
...i,
|
|
7804
|
-
...
|
|
7860
|
+
...Mt(this, { x: 0, y: 0, width: e, height: t })
|
|
7805
7861
|
}, s.fillStyle = this.animatedTexture?.currentFrame.texture ?? this.texture ?? this.color ?? "#000000FF"), s.fill(i);
|
|
7806
7862
|
}
|
|
7807
7863
|
_getFrameCurrentTime() {
|
|
@@ -7862,15 +7918,15 @@ J([
|
|
|
7862
7918
|
J([
|
|
7863
7919
|
h()
|
|
7864
7920
|
], F.prototype, "opacity");
|
|
7865
|
-
var
|
|
7921
|
+
var Fn = Object.defineProperty, zn = (r, e, t, s) => {
|
|
7866
7922
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7867
7923
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7868
|
-
return i &&
|
|
7924
|
+
return i && Fn(e, t, i), i;
|
|
7869
7925
|
};
|
|
7870
|
-
class
|
|
7926
|
+
class Xs extends F {
|
|
7871
7927
|
setProperties(e) {
|
|
7872
7928
|
return super._setProperties(
|
|
7873
|
-
V(e) ? void 0 :
|
|
7929
|
+
V(e) ? void 0 : ci(e)
|
|
7874
7930
|
);
|
|
7875
7931
|
}
|
|
7876
7932
|
_updateProperty(e, t, s) {
|
|
@@ -7881,18 +7937,18 @@ class Hs extends F {
|
|
|
7881
7937
|
}
|
|
7882
7938
|
}
|
|
7883
7939
|
}
|
|
7884
|
-
|
|
7940
|
+
zn([
|
|
7885
7941
|
h()
|
|
7886
|
-
],
|
|
7887
|
-
var
|
|
7942
|
+
], Xs.prototype, "fillWithShape");
|
|
7943
|
+
var Gn = Object.defineProperty, Vn = (r, e, t, s) => {
|
|
7888
7944
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7889
7945
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7890
|
-
return i &&
|
|
7946
|
+
return i && Gn(e, t, i), i;
|
|
7891
7947
|
};
|
|
7892
|
-
class
|
|
7948
|
+
class js extends F {
|
|
7893
7949
|
setProperties(e) {
|
|
7894
7950
|
return super._setProperties(
|
|
7895
|
-
V(e) ? void 0 :
|
|
7951
|
+
V(e) ? void 0 : hi(e)
|
|
7896
7952
|
);
|
|
7897
7953
|
}
|
|
7898
7954
|
_updateProperty(e, t, s) {
|
|
@@ -7903,18 +7959,18 @@ class Xs extends F {
|
|
|
7903
7959
|
}
|
|
7904
7960
|
}
|
|
7905
7961
|
}
|
|
7906
|
-
|
|
7962
|
+
Vn([
|
|
7907
7963
|
h()
|
|
7908
|
-
],
|
|
7909
|
-
var
|
|
7964
|
+
], js.prototype, "fillWithShape");
|
|
7965
|
+
var $n = Object.defineProperty, gt = (r, e, t, s) => {
|
|
7910
7966
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7911
7967
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7912
|
-
return i &&
|
|
7968
|
+
return i && $n(e, t, i), i;
|
|
7913
7969
|
};
|
|
7914
7970
|
class Ze extends F {
|
|
7915
7971
|
setProperties(e) {
|
|
7916
7972
|
return super._setProperties(
|
|
7917
|
-
V(e) ? void 0 :
|
|
7973
|
+
V(e) ? void 0 : ui(e)
|
|
7918
7974
|
);
|
|
7919
7975
|
}
|
|
7920
7976
|
_updateProperty(e, t, s) {
|
|
@@ -7933,8 +7989,8 @@ class Ze extends F {
|
|
|
7933
7989
|
}
|
|
7934
7990
|
draw() {
|
|
7935
7991
|
const { width: e, height: t } = this.parent.size, s = this.parent.context;
|
|
7936
|
-
this.image === "viewport" ? s.strokeStyle = new
|
|
7937
|
-
...
|
|
7992
|
+
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({
|
|
7993
|
+
...Mt(this, { x: 0, y: 0, width: e, height: t })
|
|
7938
7994
|
});
|
|
7939
7995
|
}
|
|
7940
7996
|
}
|
|
@@ -7953,10 +8009,10 @@ gt([
|
|
|
7953
8009
|
gt([
|
|
7954
8010
|
h({ fallback: "miter" })
|
|
7955
8011
|
], Ze.prototype, "lineJoin");
|
|
7956
|
-
var
|
|
8012
|
+
var Hn = Object.defineProperty, vt = (r, e, t, s) => {
|
|
7957
8013
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7958
8014
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7959
|
-
return i &&
|
|
8015
|
+
return i && Hn(e, t, i), i;
|
|
7960
8016
|
};
|
|
7961
8017
|
class Je extends Pe {
|
|
7962
8018
|
constructor(e) {
|
|
@@ -7964,7 +8020,7 @@ class Je extends Pe {
|
|
|
7964
8020
|
}
|
|
7965
8021
|
setProperties(e) {
|
|
7966
8022
|
return super.setProperties(
|
|
7967
|
-
V(e) ? void 0 :
|
|
8023
|
+
V(e) ? void 0 : di(e)
|
|
7968
8024
|
);
|
|
7969
8025
|
}
|
|
7970
8026
|
_updateProperty(e, t, s) {
|
|
@@ -7998,19 +8054,19 @@ vt([
|
|
|
7998
8054
|
vt([
|
|
7999
8055
|
h({ fallback: 0 })
|
|
8000
8056
|
], Je.prototype, "offsetX");
|
|
8001
|
-
var
|
|
8057
|
+
var Xn = Object.defineProperty, bt = (r, e, t, s) => {
|
|
8002
8058
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8003
8059
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8004
|
-
return i &&
|
|
8060
|
+
return i && Xn(e, t, i), i;
|
|
8005
8061
|
};
|
|
8006
8062
|
class Qe extends Pe {
|
|
8007
8063
|
constructor(e) {
|
|
8008
8064
|
super(), this.parent = e, this._updatePath2DSet();
|
|
8009
8065
|
}
|
|
8010
|
-
_path2DSet = new
|
|
8066
|
+
_path2DSet = new Pi();
|
|
8011
8067
|
setProperties(e) {
|
|
8012
8068
|
return super.setProperties(
|
|
8013
|
-
V(e) ? void 0 :
|
|
8069
|
+
V(e) ? void 0 : fi(e)
|
|
8014
8070
|
);
|
|
8015
8071
|
}
|
|
8016
8072
|
_updateProperty(e, t, s) {
|
|
@@ -8026,11 +8082,11 @@ class Qe extends Pe {
|
|
|
8026
8082
|
_updatePath2DSet() {
|
|
8027
8083
|
let e;
|
|
8028
8084
|
if (this.svg) {
|
|
8029
|
-
const a =
|
|
8030
|
-
this._path2DSet =
|
|
8085
|
+
const a = Ei(this.svg);
|
|
8086
|
+
this._path2DSet = Si(a), e = this._path2DSet.viewBox;
|
|
8031
8087
|
} else
|
|
8032
8088
|
this.paths?.forEach((a, n) => {
|
|
8033
|
-
const { data: l, ...c } = a, u = new
|
|
8089
|
+
const { data: l, ...c } = a, u = new At();
|
|
8034
8090
|
u.style = c, u.addData(l), this._path2DSet.paths[n] = u;
|
|
8035
8091
|
});
|
|
8036
8092
|
if (!e) {
|
|
@@ -8039,14 +8095,14 @@ class Qe extends Pe {
|
|
|
8039
8095
|
}
|
|
8040
8096
|
const [t, s, i, o] = e;
|
|
8041
8097
|
this._path2DSet.paths.forEach((a) => {
|
|
8042
|
-
a.applyTransform(new
|
|
8098
|
+
a.applyTransform(new kr().translate(-t, -s).scale(1 / i, 1 / o));
|
|
8043
8099
|
});
|
|
8044
8100
|
}
|
|
8045
8101
|
draw(e = !1) {
|
|
8046
8102
|
if (!e && this.enabled && this._path2DSet.paths.length) {
|
|
8047
8103
|
const t = this.parent.context, { width: s, height: i } = this.parent.size;
|
|
8048
8104
|
this._path2DSet.paths.forEach((o) => {
|
|
8049
|
-
t.addPath(o.clone().applyTransform(new
|
|
8105
|
+
t.addPath(o.clone().applyTransform(new kr().scale(s, i)));
|
|
8050
8106
|
});
|
|
8051
8107
|
} else
|
|
8052
8108
|
this._drawRect();
|
|
@@ -8071,39 +8127,39 @@ bt([
|
|
|
8071
8127
|
bt([
|
|
8072
8128
|
h()
|
|
8073
8129
|
], Qe.prototype, "paths");
|
|
8074
|
-
class
|
|
8130
|
+
class ar extends he {
|
|
8075
8131
|
constructor(e) {
|
|
8076
8132
|
super(), this.setProperties(e);
|
|
8077
8133
|
}
|
|
8078
8134
|
}
|
|
8079
|
-
const
|
|
8080
|
-
...
|
|
8135
|
+
const Wr = {
|
|
8136
|
+
...pi(),
|
|
8081
8137
|
left: 0,
|
|
8082
8138
|
top: 0,
|
|
8083
8139
|
width: 0,
|
|
8084
8140
|
height: 0
|
|
8085
8141
|
};
|
|
8086
|
-
for (const r in
|
|
8087
|
-
|
|
8088
|
-
var
|
|
8142
|
+
for (const r in Wr)
|
|
8143
|
+
ts(ar, r, { fallback: Wr[r] });
|
|
8144
|
+
var jn = Object.defineProperty, _e = (r, e, t, s) => {
|
|
8089
8145
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8090
8146
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8091
|
-
return i &&
|
|
8147
|
+
return i && jn(e, t, i), i;
|
|
8092
8148
|
};
|
|
8093
8149
|
class ie extends Pe {
|
|
8094
8150
|
constructor(e) {
|
|
8095
|
-
super(), this.parent = e, this.base = new
|
|
8151
|
+
super(), this.parent = e, this.base = new Ti(), this.base.setPropertyAccessor(this);
|
|
8096
8152
|
}
|
|
8097
8153
|
base;
|
|
8098
8154
|
_autoDrawMode;
|
|
8099
8155
|
_autoDrawThreshold = 100;
|
|
8100
|
-
_texture = new
|
|
8156
|
+
_texture = new xs({
|
|
8101
8157
|
mipmap: !0
|
|
8102
8158
|
});
|
|
8103
8159
|
_textureMap = /* @__PURE__ */ new Map();
|
|
8104
8160
|
setProperties(e) {
|
|
8105
8161
|
return super.setProperties(
|
|
8106
|
-
V(e) ? void 0 :
|
|
8162
|
+
V(e) ? void 0 : _i(e)
|
|
8107
8163
|
);
|
|
8108
8164
|
}
|
|
8109
8165
|
_updateProperty(e, t, s) {
|
|
@@ -8124,7 +8180,7 @@ class ie extends Pe {
|
|
|
8124
8180
|
}
|
|
8125
8181
|
}
|
|
8126
8182
|
update() {
|
|
8127
|
-
this.base.fonts = this.base.fonts ?? this.parent.tree?.fonts, this.base.update(), this._texture.width = Math.
|
|
8183
|
+
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
8184
|
view: this._texture.source,
|
|
8129
8185
|
pixelRatio: this._texture.pixelRatio
|
|
8130
8186
|
}), this._texture.requestUpdate("source"), this.parent.requestRender();
|
|
@@ -8136,17 +8192,17 @@ class ie extends Pe {
|
|
|
8136
8192
|
const i = [];
|
|
8137
8193
|
if (t.fragments.forEach((o, a) => {
|
|
8138
8194
|
if (o.characters.length) {
|
|
8139
|
-
const n =
|
|
8195
|
+
const n = Kt.from(
|
|
8140
8196
|
...o.characters.map((l) => l.compatibleGlyphBox)
|
|
8141
8197
|
);
|
|
8142
8198
|
this._updateTexture(`${s}.${a}.fill`, o.fill, n), this._updateTexture(`${s}.${a}.outline`, o.outline, n), i.push(n);
|
|
8143
8199
|
}
|
|
8144
8200
|
}), i.length) {
|
|
8145
|
-
const o =
|
|
8201
|
+
const o = Kt.from(...i);
|
|
8146
8202
|
this._updateTexture(`${s}.fill`, t.fill, o), this._updateTexture(`${s}.outline`, t.outline, o), e.push(o);
|
|
8147
8203
|
}
|
|
8148
8204
|
}), e.length) {
|
|
8149
|
-
const t =
|
|
8205
|
+
const t = Kt.from(...e);
|
|
8150
8206
|
this._updateTexture("fill", this.fill, t), this._updateTexture("outline", this.outline, t);
|
|
8151
8207
|
}
|
|
8152
8208
|
}
|
|
@@ -8157,14 +8213,14 @@ class ie extends Pe {
|
|
|
8157
8213
|
}), this.parent.requestRender());
|
|
8158
8214
|
}
|
|
8159
8215
|
async _loadTexture(e, t) {
|
|
8160
|
-
return e.linearGradient || e.radialGradient ? new
|
|
8216
|
+
return e.linearGradient || e.radialGradient ? new Gt(
|
|
8161
8217
|
e.linearGradient ?? e.radialGradient,
|
|
8162
8218
|
t.width,
|
|
8163
8219
|
t.height
|
|
8164
8220
|
) : V(e.image) ? void 0 : (this.parent.tree?.log(`load image ${e.image}`), await $.texture.load(e.image));
|
|
8165
8221
|
}
|
|
8166
8222
|
setContent(e) {
|
|
8167
|
-
this.content =
|
|
8223
|
+
this.content = mi(e);
|
|
8168
8224
|
}
|
|
8169
8225
|
measure() {
|
|
8170
8226
|
return this.update(), this.base.measure();
|
|
@@ -8190,13 +8246,13 @@ class ie extends Pe {
|
|
|
8190
8246
|
this.base.pathSets.forEach((t) => {
|
|
8191
8247
|
t.paths.forEach((s) => {
|
|
8192
8248
|
const i = s.getMeta();
|
|
8193
|
-
if (i instanceof
|
|
8249
|
+
if (i instanceof Ri) {
|
|
8194
8250
|
const o = i.parent.index, a = i.parent.parent.index;
|
|
8195
8251
|
if (s.style.fill && !V(s.style.fill))
|
|
8196
8252
|
if (typeof s.style.fill == "object") {
|
|
8197
8253
|
const n = s.style.fill, l = this._textureMap.get(`${a}.${o}.fill`) ?? this._textureMap.get(`${a}.fill`) ?? this._textureMap.get("fill");
|
|
8198
8254
|
n.enabled !== !1 && (l || n.color) && (e.addPath(s), e.style = { ...s.style }, e.fillStyle = l?.texture ?? n.color, e.fill({
|
|
8199
|
-
...
|
|
8255
|
+
...Mt(
|
|
8200
8256
|
n,
|
|
8201
8257
|
l?.box ?? {
|
|
8202
8258
|
x: 0,
|
|
@@ -8215,7 +8271,7 @@ class ie extends Pe {
|
|
|
8215
8271
|
if (typeof s.style.stroke == "object") {
|
|
8216
8272
|
const n = s.style.stroke, l = this._textureMap.get(`${a}.${o}.outline`) ?? this._textureMap.get(`${a}.outline`) ?? this._textureMap.get("outline");
|
|
8217
8273
|
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
|
-
...
|
|
8274
|
+
...Mt(
|
|
8219
8275
|
n,
|
|
8220
8276
|
l?.box ?? {
|
|
8221
8277
|
x: 0,
|
|
@@ -8290,19 +8346,19 @@ _e([
|
|
|
8290
8346
|
_e([
|
|
8291
8347
|
h({ fallback: "auto" })
|
|
8292
8348
|
], ie.prototype, "drawMode");
|
|
8293
|
-
var
|
|
8294
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8349
|
+
var Wn = Object.getOwnPropertyDescriptor, qn = (r, e, t, s) => {
|
|
8350
|
+
for (var i = s > 1 ? void 0 : s ? Wn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8295
8351
|
(a = r[o]) && (i = a(i) || i);
|
|
8296
8352
|
return i;
|
|
8297
8353
|
};
|
|
8298
|
-
const
|
|
8299
|
-
let
|
|
8354
|
+
const Yn = new Set(Object.keys(vi())), Kn = new Set(Object.keys(gi()));
|
|
8355
|
+
let nr = class extends Oe {
|
|
8300
8356
|
size = new C().on("update", () => {
|
|
8301
8357
|
this.onUpdateStyleProperty("transform", this.style.transform, void 0), this.onUpdateStyleProperty("transformOrigin", this.style.transformOrigin, void 0), this.updateGlobalTransform(), this.requestRender();
|
|
8302
8358
|
});
|
|
8303
8359
|
_allowPointerEvents = !0;
|
|
8304
8360
|
_overflowHidden = !1;
|
|
8305
|
-
_style = new
|
|
8361
|
+
_style = new ar().on("updateProperty", (...r) => {
|
|
8306
8362
|
this.onUpdateStyleProperty(r[0], r[1], r[2]);
|
|
8307
8363
|
});
|
|
8308
8364
|
get style() {
|
|
@@ -8311,7 +8367,7 @@ let ar = class extends Oe {
|
|
|
8311
8367
|
set style(r) {
|
|
8312
8368
|
this._style.resetProperties().setProperties(r);
|
|
8313
8369
|
}
|
|
8314
|
-
_background = new
|
|
8370
|
+
_background = new Xs(this);
|
|
8315
8371
|
get background() {
|
|
8316
8372
|
return this._background;
|
|
8317
8373
|
}
|
|
@@ -8339,7 +8395,7 @@ let ar = class extends Oe {
|
|
|
8339
8395
|
set outline(r) {
|
|
8340
8396
|
this._outline.resetProperties().setProperties(r);
|
|
8341
8397
|
}
|
|
8342
|
-
_foreground = new
|
|
8398
|
+
_foreground = new js(this);
|
|
8343
8399
|
get foreground() {
|
|
8344
8400
|
return this._foreground;
|
|
8345
8401
|
}
|
|
@@ -8362,7 +8418,7 @@ let ar = class extends Oe {
|
|
|
8362
8418
|
}
|
|
8363
8419
|
_styleFilter;
|
|
8364
8420
|
constructor(r, e = []) {
|
|
8365
|
-
super(), this.style = new
|
|
8421
|
+
super(), this.style = new ar(), this.setProperties(r).append(e);
|
|
8366
8422
|
}
|
|
8367
8423
|
_treeEnter(r) {
|
|
8368
8424
|
super._treeEnter(r), this._text.isValid() && this._text.update();
|
|
@@ -8390,7 +8446,7 @@ let ar = class extends Oe {
|
|
|
8390
8446
|
_updateStyleProperty(r, e, t) {
|
|
8391
8447
|
switch (r) {
|
|
8392
8448
|
case "rotate":
|
|
8393
|
-
this.rotation = e *
|
|
8449
|
+
this.rotation = e * eo;
|
|
8394
8450
|
break;
|
|
8395
8451
|
case "scaleX":
|
|
8396
8452
|
this.scale.x = e, this.text.isValid() && (e ^ t) < 0 && this.requestRender();
|
|
@@ -8405,7 +8461,7 @@ let ar = class extends Oe {
|
|
|
8405
8461
|
this.skew.y = e;
|
|
8406
8462
|
break;
|
|
8407
8463
|
case "transform":
|
|
8408
|
-
|
|
8464
|
+
Fa(
|
|
8409
8465
|
e ?? "",
|
|
8410
8466
|
this.size.width,
|
|
8411
8467
|
this.size.height,
|
|
@@ -8413,7 +8469,7 @@ let ar = class extends Oe {
|
|
|
8413
8469
|
), this.updateGlobalTransform();
|
|
8414
8470
|
break;
|
|
8415
8471
|
case "transformOrigin": {
|
|
8416
|
-
const s =
|
|
8472
|
+
const s = za(e ?? "");
|
|
8417
8473
|
this.pivot.set(
|
|
8418
8474
|
s[0] * this.size.width,
|
|
8419
8475
|
s[1] * this.size.height
|
|
@@ -8457,11 +8513,10 @@ let ar = class extends Oe {
|
|
|
8457
8513
|
this._allowPointerEvents = !V(e);
|
|
8458
8514
|
break;
|
|
8459
8515
|
case "borderRadius":
|
|
8460
|
-
default:
|
|
8461
8516
|
this.requestRender();
|
|
8462
8517
|
break;
|
|
8463
8518
|
}
|
|
8464
|
-
(
|
|
8519
|
+
(Kn.has(r) || Yn.has(r)) && this.text.isValid() && this.text.update();
|
|
8465
8520
|
}
|
|
8466
8521
|
_process(r) {
|
|
8467
8522
|
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 +8615,7 @@ let ar = class extends Oe {
|
|
|
8560
8615
|
// return super.isVisibleInTree()
|
|
8561
8616
|
// }
|
|
8562
8617
|
_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;
|
|
8618
|
+
this._overflowHidden ? this.mask = this.getRect() : this.mask = void 0;
|
|
8581
8619
|
}
|
|
8582
8620
|
_draw() {
|
|
8583
8621
|
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 +8651,7 @@ let ar = class extends Oe {
|
|
|
8613
8651
|
}
|
|
8614
8652
|
toJSON() {
|
|
8615
8653
|
const r = (e) => Object.keys(e).length > 0 ? e : void 0;
|
|
8616
|
-
return
|
|
8654
|
+
return ss({
|
|
8617
8655
|
...super.toJSON(),
|
|
8618
8656
|
style: r(this.style.toJSON()),
|
|
8619
8657
|
background: r(this.background.toJSON()),
|
|
@@ -8626,9 +8664,9 @@ let ar = class extends Oe {
|
|
|
8626
8664
|
});
|
|
8627
8665
|
}
|
|
8628
8666
|
};
|
|
8629
|
-
|
|
8667
|
+
nr = qn([
|
|
8630
8668
|
b("BaseElement2D")
|
|
8631
|
-
],
|
|
8669
|
+
], nr);
|
|
8632
8670
|
const R = {
|
|
8633
8671
|
left: 0,
|
|
8634
8672
|
// Edge.Left
|
|
@@ -8648,7 +8686,7 @@ const R = {
|
|
|
8648
8686
|
// Edge.Vertical
|
|
8649
8687
|
all: 8
|
|
8650
8688
|
// Edge.All
|
|
8651
|
-
},
|
|
8689
|
+
}, Zn = {
|
|
8652
8690
|
column: 0,
|
|
8653
8691
|
// Gutter.Column
|
|
8654
8692
|
row: 1,
|
|
@@ -8674,21 +8712,21 @@ const R = {
|
|
|
8674
8712
|
// Align.SpaceAround
|
|
8675
8713
|
"space-evenly": 8
|
|
8676
8714
|
// Align.SpaceEvenly
|
|
8677
|
-
},
|
|
8715
|
+
}, qr = {
|
|
8678
8716
|
flex: 0,
|
|
8679
8717
|
// Display.Flex
|
|
8680
8718
|
none: 1,
|
|
8681
8719
|
// Display.None
|
|
8682
8720
|
contents: 2
|
|
8683
8721
|
// Display.Contents
|
|
8684
|
-
},
|
|
8722
|
+
}, lr = {
|
|
8685
8723
|
inherit: 0,
|
|
8686
8724
|
// Direction.Inherit
|
|
8687
8725
|
ltr: 1,
|
|
8688
8726
|
// Direction.LTR
|
|
8689
8727
|
rtl: 2
|
|
8690
8728
|
// Direction.RTL
|
|
8691
|
-
},
|
|
8729
|
+
}, Yr = {
|
|
8692
8730
|
column: 0,
|
|
8693
8731
|
// FlexDirection.Column
|
|
8694
8732
|
"column-reverse": 1,
|
|
@@ -8697,14 +8735,14 @@ const R = {
|
|
|
8697
8735
|
// FlexDirection.Row
|
|
8698
8736
|
"row-reverse": 3
|
|
8699
8737
|
// FlexDirection.RowReverse
|
|
8700
|
-
},
|
|
8738
|
+
}, Kr = {
|
|
8701
8739
|
"no-wrap": 0,
|
|
8702
8740
|
// Wrap.NoWrap
|
|
8703
8741
|
wrap: 1,
|
|
8704
8742
|
// Wrap.Wrap
|
|
8705
8743
|
"Wrap-reverse": 2
|
|
8706
8744
|
// Wrap.WrapReverse
|
|
8707
|
-
},
|
|
8745
|
+
}, Zr = {
|
|
8708
8746
|
"flex-start": 0,
|
|
8709
8747
|
// Justify.FlexStart
|
|
8710
8748
|
center: 1,
|
|
@@ -8717,27 +8755,27 @@ const R = {
|
|
|
8717
8755
|
// Justify.SpaceAround
|
|
8718
8756
|
"space-evenly": 5
|
|
8719
8757
|
// Justify.SpaceEvenly
|
|
8720
|
-
},
|
|
8758
|
+
}, Jr = {
|
|
8721
8759
|
visible: 0,
|
|
8722
8760
|
// Overflow.Visible
|
|
8723
8761
|
hidden: 1,
|
|
8724
8762
|
// Overflow.Hidden
|
|
8725
8763
|
scroll: 2
|
|
8726
8764
|
// Overflow.Scroll
|
|
8727
|
-
},
|
|
8765
|
+
}, Qr = {
|
|
8728
8766
|
static: 0,
|
|
8729
8767
|
// PositionType.Static
|
|
8730
8768
|
relative: 1,
|
|
8731
8769
|
// PositionType.Relative
|
|
8732
8770
|
absolute: 2
|
|
8733
8771
|
// PositionType.Absolute
|
|
8734
|
-
},
|
|
8772
|
+
}, es = {
|
|
8735
8773
|
"border-box": 0,
|
|
8736
8774
|
// BoxSizing.BorderBox
|
|
8737
8775
|
"content-box": 1
|
|
8738
8776
|
// BoxSizing.ContentBox
|
|
8739
8777
|
};
|
|
8740
|
-
class
|
|
8778
|
+
class Rr {
|
|
8741
8779
|
constructor(e) {
|
|
8742
8780
|
this._element = e;
|
|
8743
8781
|
}
|
|
@@ -8746,7 +8784,7 @@ class Tr {
|
|
|
8746
8784
|
const { loadYoga: e } = await import("yoga-layout/load");
|
|
8747
8785
|
this._yoga = await e();
|
|
8748
8786
|
}
|
|
8749
|
-
_node =
|
|
8787
|
+
_node = Rr._yoga?.Node.create();
|
|
8750
8788
|
get _style() {
|
|
8751
8789
|
return this._element.style;
|
|
8752
8790
|
}
|
|
@@ -8793,12 +8831,12 @@ class Tr {
|
|
|
8793
8831
|
break;
|
|
8794
8832
|
case "direction":
|
|
8795
8833
|
i.setDirection(
|
|
8796
|
-
t ?
|
|
8834
|
+
t ? lr[t] : lr.inherit
|
|
8797
8835
|
);
|
|
8798
8836
|
break;
|
|
8799
8837
|
case "display":
|
|
8800
8838
|
i.setDisplay(
|
|
8801
|
-
t ?
|
|
8839
|
+
t ? qr[t] : qr.flex
|
|
8802
8840
|
);
|
|
8803
8841
|
break;
|
|
8804
8842
|
case "flex":
|
|
@@ -8809,7 +8847,7 @@ class Tr {
|
|
|
8809
8847
|
break;
|
|
8810
8848
|
case "flexDirection":
|
|
8811
8849
|
i.setFlexDirection(
|
|
8812
|
-
t ?
|
|
8850
|
+
t ? Yr[t] : Yr.row
|
|
8813
8851
|
);
|
|
8814
8852
|
break;
|
|
8815
8853
|
case "flexGrow":
|
|
@@ -8820,7 +8858,7 @@ class Tr {
|
|
|
8820
8858
|
break;
|
|
8821
8859
|
case "flexWrap":
|
|
8822
8860
|
i.setFlexWrap(
|
|
8823
|
-
t ?
|
|
8861
|
+
t ? Kr[t] : Kr.wrap
|
|
8824
8862
|
);
|
|
8825
8863
|
break;
|
|
8826
8864
|
case "height":
|
|
@@ -8828,11 +8866,11 @@ class Tr {
|
|
|
8828
8866
|
break;
|
|
8829
8867
|
case "justifyContent":
|
|
8830
8868
|
i.setJustifyContent(
|
|
8831
|
-
t ?
|
|
8869
|
+
t ? Zr[t] : Zr["flex-start"]
|
|
8832
8870
|
);
|
|
8833
8871
|
break;
|
|
8834
8872
|
case "gap":
|
|
8835
|
-
t !== void 0 && i.setGap(
|
|
8873
|
+
t !== void 0 && i.setGap(Zn.all, t);
|
|
8836
8874
|
break;
|
|
8837
8875
|
case "marginTop":
|
|
8838
8876
|
i.setMargin(R.top, t);
|
|
@@ -8865,7 +8903,7 @@ class Tr {
|
|
|
8865
8903
|
break;
|
|
8866
8904
|
case "overflow":
|
|
8867
8905
|
i.setOverflow(
|
|
8868
|
-
t ?
|
|
8906
|
+
t ? Jr[t] : Jr.visible
|
|
8869
8907
|
);
|
|
8870
8908
|
break;
|
|
8871
8909
|
case "paddingTop":
|
|
@@ -8897,12 +8935,12 @@ class Tr {
|
|
|
8897
8935
|
break;
|
|
8898
8936
|
case "position":
|
|
8899
8937
|
i.setPositionType(
|
|
8900
|
-
t ?
|
|
8938
|
+
t ? Qr[t] : Qr.static
|
|
8901
8939
|
);
|
|
8902
8940
|
break;
|
|
8903
8941
|
case "boxSizing":
|
|
8904
8942
|
i.setBoxSizing(
|
|
8905
|
-
t ?
|
|
8943
|
+
t ? es[t] : es["content-box"]
|
|
8906
8944
|
);
|
|
8907
8945
|
break;
|
|
8908
8946
|
case "width":
|
|
@@ -8911,13 +8949,13 @@ class Tr {
|
|
|
8911
8949
|
}
|
|
8912
8950
|
}
|
|
8913
8951
|
}
|
|
8914
|
-
var
|
|
8915
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8952
|
+
var Jn = Object.defineProperty, Qn = Object.getOwnPropertyDescriptor, Ws = (r, e, t, s) => {
|
|
8953
|
+
for (var i = s > 1 ? void 0 : s ? Qn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8916
8954
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8917
|
-
return s && i &&
|
|
8955
|
+
return s && i && Jn(e, t, i), i;
|
|
8918
8956
|
};
|
|
8919
|
-
let te = class extends
|
|
8920
|
-
_flex = new
|
|
8957
|
+
let te = class extends nr {
|
|
8958
|
+
_flex = new Rr(this);
|
|
8921
8959
|
constructor(r, e = []) {
|
|
8922
8960
|
super(), this.setProperties(r).append(e);
|
|
8923
8961
|
}
|
|
@@ -8957,7 +8995,7 @@ let te = class extends ar {
|
|
|
8957
8995
|
super._unparented(r), r instanceof te && r._flex?._node && this._flex._node && r._flex._node.removeChild(this._flex._node);
|
|
8958
8996
|
}
|
|
8959
8997
|
updateLayout() {
|
|
8960
|
-
if (this.calculateLayout(void 0, void 0,
|
|
8998
|
+
if (this.calculateLayout(void 0, void 0, lr.ltr), this._flex._node) {
|
|
8961
8999
|
const { left: r, top: e, width: t, height: s } = this._flex._node.getComputedLayout();
|
|
8962
9000
|
this.position.x = r, this.position.y = e, this.size.x = t, this.size.y = s;
|
|
8963
9001
|
}
|
|
@@ -8967,13 +9005,13 @@ let te = class extends ar {
|
|
|
8967
9005
|
s?._flex?.calculateLayout ? s?._flex.calculateLayout(r, e, t) : this._flex.calculateLayout(r, e, t);
|
|
8968
9006
|
}
|
|
8969
9007
|
};
|
|
8970
|
-
|
|
9008
|
+
Ws([
|
|
8971
9009
|
h({ fallback: "inherit" })
|
|
8972
9010
|
], te.prototype, "layoutMode", 2);
|
|
8973
|
-
te =
|
|
9011
|
+
te = Ws([
|
|
8974
9012
|
b("Element2D")
|
|
8975
9013
|
], te);
|
|
8976
|
-
class
|
|
9014
|
+
class qs extends te {
|
|
8977
9015
|
texture;
|
|
8978
9016
|
constructor(e, t = []) {
|
|
8979
9017
|
super(), this.setProperties(e).append(t);
|
|
@@ -8982,13 +9020,13 @@ class Ws extends te {
|
|
|
8982
9020
|
this.texture?.isValid() && (this.shape.draw(!0), this.context.fillStyle = this.texture, this.context.fill());
|
|
8983
9021
|
}
|
|
8984
9022
|
}
|
|
8985
|
-
var
|
|
8986
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9023
|
+
var el = Object.defineProperty, tl = Object.getOwnPropertyDescriptor, Ys = (r, e, t, s) => {
|
|
9024
|
+
for (var i = s > 1 ? void 0 : s ? tl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8987
9025
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8988
|
-
return s && i &&
|
|
9026
|
+
return s && i && el(e, t, i), i;
|
|
8989
9027
|
};
|
|
8990
|
-
let
|
|
8991
|
-
texture = new
|
|
9028
|
+
let cr = class extends qs {
|
|
9029
|
+
texture = new xs();
|
|
8992
9030
|
animation;
|
|
8993
9031
|
constructor(r, e = []) {
|
|
8994
9032
|
super(), this.setProperties(r), this.append(e);
|
|
@@ -9017,18 +9055,18 @@ let lr = class extends Ws {
|
|
|
9017
9055
|
this.animation?.goToAndStop(this.currentTime, !1), this.texture.requestUpdate("source"), this.requestRender(), super._process(r);
|
|
9018
9056
|
}
|
|
9019
9057
|
};
|
|
9020
|
-
|
|
9058
|
+
Ys([
|
|
9021
9059
|
h({ fallback: "" })
|
|
9022
|
-
],
|
|
9023
|
-
|
|
9060
|
+
], cr.prototype, "src", 2);
|
|
9061
|
+
cr = Ys([
|
|
9024
9062
|
b("Lottie2D")
|
|
9025
|
-
],
|
|
9026
|
-
var
|
|
9063
|
+
], cr);
|
|
9064
|
+
var rl = Object.defineProperty, sl = (r, e, t, s) => {
|
|
9027
9065
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
9028
9066
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
9029
|
-
return i &&
|
|
9067
|
+
return i && rl(e, t, i), i;
|
|
9030
9068
|
};
|
|
9031
|
-
class
|
|
9069
|
+
class il extends te {
|
|
9032
9070
|
constructor(e, t = []) {
|
|
9033
9071
|
super(), this.setProperties(e).append(t);
|
|
9034
9072
|
}
|
|
@@ -9051,15 +9089,15 @@ class tl extends te {
|
|
|
9051
9089
|
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
9090
|
}
|
|
9053
9091
|
}
|
|
9054
|
-
|
|
9092
|
+
sl([
|
|
9055
9093
|
h({ fallback: 6 })
|
|
9056
|
-
],
|
|
9057
|
-
var
|
|
9058
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9094
|
+
], il.prototype, "handleSize");
|
|
9095
|
+
var ol = Object.defineProperty, al = Object.getOwnPropertyDescriptor, Ks = (r, e, t, s) => {
|
|
9096
|
+
for (var i = s > 1 ? void 0 : s ? al(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9059
9097
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9060
|
-
return s && i &&
|
|
9098
|
+
return s && i && ol(e, t, i), i;
|
|
9061
9099
|
};
|
|
9062
|
-
let
|
|
9100
|
+
let hr = class extends qs {
|
|
9063
9101
|
get videoDuration() {
|
|
9064
9102
|
return (this.texture?.duration ?? 0) * 1e3;
|
|
9065
9103
|
}
|
|
@@ -9094,18 +9132,18 @@ let cr = class extends Ws {
|
|
|
9094
9132
|
this._updateVideoCurrentTime(), super._process(r);
|
|
9095
9133
|
}
|
|
9096
9134
|
};
|
|
9097
|
-
|
|
9135
|
+
Ks([
|
|
9098
9136
|
h({ fallback: "" })
|
|
9099
|
-
],
|
|
9100
|
-
|
|
9137
|
+
], hr.prototype, "src", 2);
|
|
9138
|
+
hr = Ks([
|
|
9101
9139
|
b("Video2D")
|
|
9102
|
-
],
|
|
9103
|
-
var
|
|
9104
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9140
|
+
], hr);
|
|
9141
|
+
var nl = Object.defineProperty, ll = Object.getOwnPropertyDescriptor, Ht = (r, e, t, s) => {
|
|
9142
|
+
for (var i = s > 1 ? void 0 : s ? ll(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9105
9143
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9106
|
-
return s && i &&
|
|
9144
|
+
return s && i && nl(e, t, i), i;
|
|
9107
9145
|
};
|
|
9108
|
-
const
|
|
9146
|
+
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
9147
|
function yt(r, e, t, s) {
|
|
9110
9148
|
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
9149
|
function p(_) {
|
|
@@ -9127,17 +9165,17 @@ function yt(r, e, t, s) {
|
|
|
9127
9165
|
}
|
|
9128
9166
|
return (_) => m(p(_));
|
|
9129
9167
|
}
|
|
9130
|
-
const
|
|
9131
|
-
linear:
|
|
9132
|
-
ease:
|
|
9133
|
-
easeIn:
|
|
9134
|
-
easeOut:
|
|
9135
|
-
easeInOut:
|
|
9168
|
+
const rr = {
|
|
9169
|
+
linear: cl,
|
|
9170
|
+
ease: hl,
|
|
9171
|
+
easeIn: ul,
|
|
9172
|
+
easeOut: dl,
|
|
9173
|
+
easeInOut: fl
|
|
9136
9174
|
};
|
|
9137
|
-
let dt = class extends
|
|
9175
|
+
let dt = class extends Y {
|
|
9138
9176
|
_keyframes = [];
|
|
9139
9177
|
_isFirstUpdatePosition = !1;
|
|
9140
|
-
_cachedProps = new
|
|
9178
|
+
_cachedProps = new bi();
|
|
9141
9179
|
_stoped = !1;
|
|
9142
9180
|
constructor(r, e = []) {
|
|
9143
9181
|
super(), this.setProperties(r).append(e);
|
|
@@ -9228,9 +9266,9 @@ let dt = class extends q {
|
|
|
9228
9266
|
}
|
|
9229
9267
|
_parseEasing(r) {
|
|
9230
9268
|
if (!r)
|
|
9231
|
-
return
|
|
9232
|
-
if (r in
|
|
9233
|
-
return
|
|
9269
|
+
return rr.linear;
|
|
9270
|
+
if (r in rr)
|
|
9271
|
+
return rr[r];
|
|
9234
9272
|
const e = r.replace(/cubic-bezier\((.+)\)/, "$1").split(",").map((t) => Number(t));
|
|
9235
9273
|
return yt(e[0], e[1], e[2], e[3]);
|
|
9236
9274
|
}
|
|
@@ -9282,9 +9320,9 @@ let dt = class extends q {
|
|
|
9282
9320
|
let o, a;
|
|
9283
9321
|
if (e === "none" && (e = void 0), t === "none" && (t = void 0), e === void 0 || t === void 0)
|
|
9284
9322
|
if (e !== void 0)
|
|
9285
|
-
o = Et(r, String(e), i), a =
|
|
9323
|
+
o = Et(r, String(e), i), a = Br(o);
|
|
9286
9324
|
else if (t !== void 0)
|
|
9287
|
-
a = Et(r, String(t), i), o =
|
|
9325
|
+
a = Et(r, String(t), i), o = Br(a);
|
|
9288
9326
|
else
|
|
9289
9327
|
return;
|
|
9290
9328
|
else
|
|
@@ -9327,16 +9365,16 @@ let dt = class extends q {
|
|
|
9327
9365
|
});
|
|
9328
9366
|
}
|
|
9329
9367
|
};
|
|
9330
|
-
|
|
9368
|
+
Ht([
|
|
9331
9369
|
h({ fallback: "parent" })
|
|
9332
9370
|
], dt.prototype, "effectMode", 2);
|
|
9333
|
-
|
|
9371
|
+
Ht([
|
|
9334
9372
|
h({ default: () => [] })
|
|
9335
9373
|
], dt.prototype, "keyframes", 2);
|
|
9336
|
-
|
|
9374
|
+
Ht([
|
|
9337
9375
|
h()
|
|
9338
9376
|
], dt.prototype, "easing", 2);
|
|
9339
|
-
dt =
|
|
9377
|
+
dt = Ht([
|
|
9340
9378
|
b("Animation", {
|
|
9341
9379
|
renderMode: "disabled",
|
|
9342
9380
|
processMode: "pausable",
|
|
@@ -9344,10 +9382,10 @@ dt = $t([
|
|
|
9344
9382
|
duration: 2e3
|
|
9345
9383
|
})
|
|
9346
9384
|
], dt);
|
|
9347
|
-
class
|
|
9385
|
+
class Ar extends we {
|
|
9348
9386
|
static _instance;
|
|
9349
9387
|
static get instance() {
|
|
9350
|
-
return this._instance || (this._instance = new
|
|
9388
|
+
return this._instance || (this._instance = new Ar()), this._instance;
|
|
9351
9389
|
}
|
|
9352
9390
|
playbackRate = 1;
|
|
9353
9391
|
muted = !1;
|
|
@@ -9375,7 +9413,7 @@ class Rr extends we {
|
|
|
9375
9413
|
return this.paused = !this.paused, this.refreshPaused(), this.paused;
|
|
9376
9414
|
}
|
|
9377
9415
|
}
|
|
9378
|
-
class
|
|
9416
|
+
class Nt extends we {
|
|
9379
9417
|
static PADDING = 0.1;
|
|
9380
9418
|
_source = null;
|
|
9381
9419
|
_audio = null;
|
|
@@ -9496,7 +9534,7 @@ class Mt extends we {
|
|
|
9496
9534
|
if (!this._source)
|
|
9497
9535
|
return;
|
|
9498
9536
|
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 -
|
|
9537
|
+
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
9538
|
this._source && (this._source.currentTime = t, this._source.onloadedmetadata = null, this.emit("progress", t, this._duration), B.on(this._onUpdate));
|
|
9501
9539
|
}, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
|
|
9502
9540
|
}
|
|
@@ -9512,7 +9550,7 @@ class Mt extends we {
|
|
|
9512
9550
|
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
9551
|
}
|
|
9514
9552
|
}
|
|
9515
|
-
class
|
|
9553
|
+
class pl {
|
|
9516
9554
|
constructor(e) {
|
|
9517
9555
|
this.parent = e;
|
|
9518
9556
|
}
|
|
@@ -9531,7 +9569,7 @@ class ul {
|
|
|
9531
9569
|
return !!this.source && this.source.readyState === 4;
|
|
9532
9570
|
}
|
|
9533
9571
|
get context() {
|
|
9534
|
-
return
|
|
9572
|
+
return Ar.instance;
|
|
9535
9573
|
}
|
|
9536
9574
|
async load() {
|
|
9537
9575
|
return new Promise((e) => {
|
|
@@ -9539,10 +9577,10 @@ class ul {
|
|
|
9539
9577
|
});
|
|
9540
9578
|
}
|
|
9541
9579
|
createSound() {
|
|
9542
|
-
return new
|
|
9580
|
+
return new Nt();
|
|
9543
9581
|
}
|
|
9544
9582
|
}
|
|
9545
|
-
class
|
|
9583
|
+
class Zs extends we {
|
|
9546
9584
|
constructor(e, t) {
|
|
9547
9585
|
super(), this._input = e, this._output = t;
|
|
9548
9586
|
}
|
|
@@ -9563,7 +9601,7 @@ class Ks extends we {
|
|
|
9563
9601
|
return this._input;
|
|
9564
9602
|
}
|
|
9565
9603
|
}
|
|
9566
|
-
class
|
|
9604
|
+
class wc {
|
|
9567
9605
|
constructor(e, t = null) {
|
|
9568
9606
|
this.destination = e, this.source = t;
|
|
9569
9607
|
}
|
|
@@ -9574,25 +9612,25 @@ class bc {
|
|
|
9574
9612
|
this.source?.disconnect();
|
|
9575
9613
|
}
|
|
9576
9614
|
}
|
|
9577
|
-
function
|
|
9578
|
-
if (
|
|
9615
|
+
function _l() {
|
|
9616
|
+
if (ns)
|
|
9579
9617
|
return new AudioContext();
|
|
9580
|
-
if (
|
|
9618
|
+
if (ls) {
|
|
9581
9619
|
const r = globalThis.webkitAudioContext;
|
|
9582
9620
|
return new r();
|
|
9583
9621
|
} else
|
|
9584
9622
|
throw new Error("Failed to createAudioContext");
|
|
9585
9623
|
}
|
|
9586
|
-
function
|
|
9587
|
-
if (
|
|
9624
|
+
function ml(r, e, t) {
|
|
9625
|
+
if (cs)
|
|
9588
9626
|
return new OfflineAudioContext(r, e, t);
|
|
9589
|
-
if (
|
|
9627
|
+
if (Bi) {
|
|
9590
9628
|
const s = globalThis.webkitOfflineAudioContext;
|
|
9591
9629
|
return new s(r, e, t);
|
|
9592
9630
|
} else
|
|
9593
9631
|
throw new Error("Failed to createOfflineAudioContext");
|
|
9594
9632
|
}
|
|
9595
|
-
class Ae extends
|
|
9633
|
+
class Ae extends Zs {
|
|
9596
9634
|
/** Singleton */
|
|
9597
9635
|
static _instance;
|
|
9598
9636
|
static get instance() {
|
|
@@ -9637,12 +9675,12 @@ class Ae extends Ks {
|
|
|
9637
9675
|
_compressor;
|
|
9638
9676
|
_analyser;
|
|
9639
9677
|
constructor() {
|
|
9640
|
-
const e =
|
|
9678
|
+
const e = _l(), t = ml(
|
|
9641
9679
|
1,
|
|
9642
9680
|
2,
|
|
9643
|
-
|
|
9681
|
+
cs ? Math.max(8e3, Math.min(96e3, e.sampleRate)) : 44100
|
|
9644
9682
|
), 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 ||
|
|
9683
|
+
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
9684
|
}
|
|
9647
9685
|
_onFocus() {
|
|
9648
9686
|
if (!this.autoPause)
|
|
@@ -9684,7 +9722,7 @@ class Ae extends Ks {
|
|
|
9684
9722
|
e.setValueAtTime ? e.setValueAtTime(t, this._context.currentTime) : e.value = t;
|
|
9685
9723
|
}
|
|
9686
9724
|
}
|
|
9687
|
-
class
|
|
9725
|
+
class gl extends we {
|
|
9688
9726
|
_audio = null;
|
|
9689
9727
|
_sourceNode = null;
|
|
9690
9728
|
_gain = null;
|
|
@@ -9839,7 +9877,7 @@ class pl extends we {
|
|
|
9839
9877
|
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
9878
|
}
|
|
9841
9879
|
}
|
|
9842
|
-
class
|
|
9880
|
+
class vl extends Zs {
|
|
9843
9881
|
constructor(e) {
|
|
9844
9882
|
const t = Ae.audioContext, s = t.createBufferSource(), i = t.createGain(), o = t.createAnalyser();
|
|
9845
9883
|
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 +9924,18 @@ class _l extends Ks {
|
|
|
9886
9924
|
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
9925
|
}
|
|
9888
9926
|
createSound() {
|
|
9889
|
-
return new
|
|
9927
|
+
return new gl();
|
|
9890
9928
|
}
|
|
9891
9929
|
}
|
|
9892
|
-
var
|
|
9893
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9930
|
+
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) => {
|
|
9931
|
+
for (var i = s > 1 ? void 0 : s ? yl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9894
9932
|
(a = r[o]) && (i = a(i) || i);
|
|
9895
9933
|
return i;
|
|
9896
|
-
},
|
|
9897
|
-
let Ce = class extends
|
|
9934
|
+
}, Pl = (r, e, t) => xl(r, e + "", t);
|
|
9935
|
+
let Ce = class extends Y {
|
|
9898
9936
|
_sounds = [];
|
|
9899
9937
|
/** PlatformAudio */
|
|
9900
|
-
_platformAudio =
|
|
9938
|
+
_platformAudio = Li ? new vl(this) : new pl(this);
|
|
9901
9939
|
get platformAudio() {
|
|
9902
9940
|
return this._platformAudio;
|
|
9903
9941
|
}
|
|
@@ -10036,21 +10074,21 @@ let Ce = class extends q {
|
|
|
10036
10074
|
}, 100);
|
|
10037
10075
|
}
|
|
10038
10076
|
};
|
|
10039
|
-
|
|
10040
|
-
Ce =
|
|
10077
|
+
Pl(Ce, "_soundPool", []);
|
|
10078
|
+
Ce = wl([
|
|
10041
10079
|
b("Audio")
|
|
10042
10080
|
], Ce);
|
|
10043
|
-
class
|
|
10081
|
+
class Pc extends Oe {
|
|
10044
10082
|
//
|
|
10045
10083
|
}
|
|
10046
|
-
var
|
|
10047
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10084
|
+
var El = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, Xt = (r, e, t, s) => {
|
|
10085
|
+
for (var i = s > 1 ? void 0 : s ? Sl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10048
10086
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
10049
|
-
return s && i &&
|
|
10087
|
+
return s && i && El(e, t, i), i;
|
|
10050
10088
|
};
|
|
10051
10089
|
let ft = class extends te {
|
|
10052
10090
|
_audioBuffer;
|
|
10053
|
-
_src =
|
|
10091
|
+
_src = pr ? new x({
|
|
10054
10092
|
source: document.createElement("canvas")
|
|
10055
10093
|
}) : void 0;
|
|
10056
10094
|
_needsUpdateTexture = !1;
|
|
@@ -10108,24 +10146,24 @@ let ft = class extends te {
|
|
|
10108
10146
|
this.syncTexture(), super._process(r);
|
|
10109
10147
|
}
|
|
10110
10148
|
};
|
|
10111
|
-
|
|
10149
|
+
Xt([
|
|
10112
10150
|
h()
|
|
10113
10151
|
], ft.prototype, "src", 2);
|
|
10114
|
-
|
|
10152
|
+
Xt([
|
|
10115
10153
|
h({ fallback: 0 })
|
|
10116
10154
|
], ft.prototype, "gap", 2);
|
|
10117
|
-
|
|
10155
|
+
Xt([
|
|
10118
10156
|
h({ fallback: "#000000" })
|
|
10119
10157
|
], ft.prototype, "color", 2);
|
|
10120
|
-
ft =
|
|
10158
|
+
ft = Xt([
|
|
10121
10159
|
b("AudioWaveform")
|
|
10122
10160
|
], ft);
|
|
10123
|
-
var
|
|
10124
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10161
|
+
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) => {
|
|
10162
|
+
for (var i = s > 1 ? void 0 : s ? Rl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10125
10163
|
(a = r[o]) && (i = a(i) || i);
|
|
10126
10164
|
return i;
|
|
10127
|
-
},
|
|
10128
|
-
let
|
|
10165
|
+
}, Ol = (r, e, t) => Al(r, e + "", t);
|
|
10166
|
+
let kt = class extends Ve {
|
|
10129
10167
|
blur = 10;
|
|
10130
10168
|
quality = 10;
|
|
10131
10169
|
apply(r, e) {
|
|
@@ -10149,7 +10187,7 @@ let Nt = class extends Ve {
|
|
|
10149
10187
|
p = u[_] + 0.5, m[0] = p * d, m[1] = p * f, c.push({
|
|
10150
10188
|
offset: m
|
|
10151
10189
|
}), c.forEach((g) => {
|
|
10152
|
-
P.draw(r,
|
|
10190
|
+
P.draw(r, kt.material, {
|
|
10153
10191
|
sampler: s,
|
|
10154
10192
|
progress: i,
|
|
10155
10193
|
...g
|
|
@@ -10157,7 +10195,7 @@ let Nt = class extends Ve {
|
|
|
10157
10195
|
});
|
|
10158
10196
|
}
|
|
10159
10197
|
};
|
|
10160
|
-
|
|
10198
|
+
Ol(kt, "material", new E({
|
|
10161
10199
|
gl: {
|
|
10162
10200
|
vertex: `attribute vec2 position;
|
|
10163
10201
|
attribute vec2 uv;
|
|
@@ -10184,24 +10222,24 @@ void main(void) {
|
|
|
10184
10222
|
}`
|
|
10185
10223
|
}
|
|
10186
10224
|
}));
|
|
10187
|
-
|
|
10225
|
+
kt = Cl([
|
|
10188
10226
|
b("KawaseTransition")
|
|
10189
|
-
],
|
|
10190
|
-
var
|
|
10191
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10227
|
+
], kt);
|
|
10228
|
+
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) => {
|
|
10229
|
+
for (var i = s > 1 ? void 0 : s ? Il(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10192
10230
|
(a = r[o]) && (i = a(i) || i);
|
|
10193
10231
|
return i;
|
|
10194
|
-
},
|
|
10195
|
-
let
|
|
10232
|
+
}, kl = (r, e, t) => Ml(r, e + "", t);
|
|
10233
|
+
let Ut = class extends Ve {
|
|
10196
10234
|
apply(r) {
|
|
10197
|
-
P.draw(r,
|
|
10235
|
+
P.draw(r, Ut.material, {
|
|
10198
10236
|
previous: 0,
|
|
10199
10237
|
next: 1,
|
|
10200
10238
|
progress: this.currentTimeProgress
|
|
10201
10239
|
});
|
|
10202
10240
|
}
|
|
10203
10241
|
};
|
|
10204
|
-
|
|
10242
|
+
kl(Ut, "material", new E({
|
|
10205
10243
|
gl: {
|
|
10206
10244
|
vertex: `attribute vec2 position;
|
|
10207
10245
|
attribute vec2 uv;
|
|
@@ -10232,14 +10270,14 @@ void main() {
|
|
|
10232
10270
|
}`
|
|
10233
10271
|
}
|
|
10234
10272
|
}));
|
|
10235
|
-
|
|
10273
|
+
Ut = Nl([
|
|
10236
10274
|
b("LeftEraseTransition")
|
|
10237
|
-
],
|
|
10238
|
-
var
|
|
10239
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10275
|
+
], Ut);
|
|
10276
|
+
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) => {
|
|
10277
|
+
for (var i = s > 1 ? void 0 : s ? Bl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10240
10278
|
(a = r[o]) && (i = a(i) || i);
|
|
10241
10279
|
return i;
|
|
10242
|
-
},
|
|
10280
|
+
}, zl = (r, e, t) => Ll(r, e + "", t);
|
|
10243
10281
|
let pt = class extends Ve {
|
|
10244
10282
|
blur = 100;
|
|
10245
10283
|
gradientBlur = 600;
|
|
@@ -10269,7 +10307,7 @@ let pt = class extends Ve {
|
|
|
10269
10307
|
});
|
|
10270
10308
|
}
|
|
10271
10309
|
};
|
|
10272
|
-
|
|
10310
|
+
zl(pt, "material", new E({
|
|
10273
10311
|
gl: {
|
|
10274
10312
|
vertex: `attribute vec2 position;
|
|
10275
10313
|
attribute vec2 uv;
|
|
@@ -10319,15 +10357,15 @@ void main(void) {
|
|
|
10319
10357
|
}`
|
|
10320
10358
|
}
|
|
10321
10359
|
}));
|
|
10322
|
-
pt =
|
|
10360
|
+
pt = Fl([
|
|
10323
10361
|
b("TiltShiftTransition")
|
|
10324
10362
|
], pt);
|
|
10325
|
-
var
|
|
10326
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10363
|
+
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) => {
|
|
10364
|
+
for (var i = s > 1 ? void 0 : s ? Vl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10327
10365
|
(a = r[o]) && (i = a(i) || i);
|
|
10328
10366
|
return i;
|
|
10329
|
-
},
|
|
10330
|
-
let
|
|
10367
|
+
}, Xl = (r, e, t) => $l(r, e + "", t);
|
|
10368
|
+
let Bt = class extends Ve {
|
|
10331
10369
|
radius;
|
|
10332
10370
|
angle = 4;
|
|
10333
10371
|
padding = 20;
|
|
@@ -10337,7 +10375,7 @@ let Ut = class extends Ve {
|
|
|
10337
10375
|
let s, i;
|
|
10338
10376
|
t < 0.5 ? (s = 0, i = (0.5 - t) / 0.5) : (s = 1, i = (t - 0.5) / 0.5);
|
|
10339
10377
|
const o = e.width, a = e.height;
|
|
10340
|
-
P.draw(r,
|
|
10378
|
+
P.draw(r, Bt.material, {
|
|
10341
10379
|
sampler: s,
|
|
10342
10380
|
progress: i,
|
|
10343
10381
|
filterArea: [o, a, 0, 0],
|
|
@@ -10348,7 +10386,7 @@ let Ut = class extends Ve {
|
|
|
10348
10386
|
});
|
|
10349
10387
|
}
|
|
10350
10388
|
};
|
|
10351
|
-
|
|
10389
|
+
Xl(Bt, "material", new E({
|
|
10352
10390
|
gl: {
|
|
10353
10391
|
vertex: `attribute vec2 position;
|
|
10354
10392
|
attribute vec2 uv;
|
|
@@ -10400,20 +10438,20 @@ void main(void) {
|
|
|
10400
10438
|
}`
|
|
10401
10439
|
}
|
|
10402
10440
|
}));
|
|
10403
|
-
|
|
10441
|
+
Bt = Hl([
|
|
10404
10442
|
b("TwistTransition")
|
|
10405
|
-
],
|
|
10406
|
-
class
|
|
10443
|
+
], Bt);
|
|
10444
|
+
class jl extends Me {
|
|
10407
10445
|
install(e) {
|
|
10408
10446
|
const t = async (s) => {
|
|
10409
10447
|
const { decodeFrames: i } = await import("modern-gif");
|
|
10410
10448
|
return await s.arrayBuffer().then((o) => i(
|
|
10411
10449
|
o,
|
|
10412
10450
|
e.gifWorkerUrl ? { workerUrl: e.gifWorkerUrl } : void 0
|
|
10413
|
-
)).then((o) => new
|
|
10451
|
+
)).then((o) => new la(
|
|
10414
10452
|
o.map((a) => ({
|
|
10415
10453
|
duration: a.delay,
|
|
10416
|
-
texture: new
|
|
10454
|
+
texture: new ca({
|
|
10417
10455
|
source: a.data,
|
|
10418
10456
|
width: a.width,
|
|
10419
10457
|
height: a.height
|
|
@@ -10431,7 +10469,7 @@ class $l extends Me {
|
|
|
10431
10469
|
}), e.gif = this, this;
|
|
10432
10470
|
}
|
|
10433
10471
|
}
|
|
10434
|
-
class
|
|
10472
|
+
class Wl extends Me {
|
|
10435
10473
|
install(e) {
|
|
10436
10474
|
const t = async (s) => JSON.parse(await s.text());
|
|
10437
10475
|
return this.load = (s) => typeof s == "string" ? e.loadBy(s).then(t) : t(s), [
|
|
@@ -10441,7 +10479,7 @@ class Hl extends Me {
|
|
|
10441
10479
|
}), e.json = this, this;
|
|
10442
10480
|
}
|
|
10443
10481
|
}
|
|
10444
|
-
class
|
|
10482
|
+
class ql extends Me {
|
|
10445
10483
|
install(e) {
|
|
10446
10484
|
return this.load = async (t, s) => (await import("lottie-web").then((o) => o.default)).loadAnimation({
|
|
10447
10485
|
container: null,
|
|
@@ -10458,13 +10496,13 @@ class Xl extends Me {
|
|
|
10458
10496
|
}), e.lottie = this, this;
|
|
10459
10497
|
}
|
|
10460
10498
|
}
|
|
10461
|
-
class
|
|
10499
|
+
class Yl extends Me {
|
|
10462
10500
|
install(e) {
|
|
10463
10501
|
const t = async (s) => s.text();
|
|
10464
10502
|
return this.load = (s) => typeof s == "string" ? e.loadBy(s).then(t) : t(s), e.text = this, this;
|
|
10465
10503
|
}
|
|
10466
10504
|
}
|
|
10467
|
-
class
|
|
10505
|
+
class Kl extends Me {
|
|
10468
10506
|
install(e) {
|
|
10469
10507
|
const t = (s) => e.fetchImageBitmap(s, { premultiplyAlpha: "premultiply" }).then((i) => new x({
|
|
10470
10508
|
source: i,
|
|
@@ -10489,12 +10527,12 @@ class Wl extends Me {
|
|
|
10489
10527
|
}), e.texture = this, this;
|
|
10490
10528
|
}
|
|
10491
10529
|
}
|
|
10492
|
-
class
|
|
10530
|
+
class Zl extends Me {
|
|
10493
10531
|
install(e) {
|
|
10494
|
-
return this.load = (t) => new
|
|
10532
|
+
return this.load = (t) => new da(t).load(), e.video = this, this;
|
|
10495
10533
|
}
|
|
10496
10534
|
}
|
|
10497
|
-
const
|
|
10535
|
+
const Jl = Object.entries({
|
|
10498
10536
|
"font/woff": ["woff"],
|
|
10499
10537
|
"font/ttf": ["ttf"],
|
|
10500
10538
|
"font/otf": ["otf"],
|
|
@@ -10510,33 +10548,33 @@ const Yl = Object.entries({
|
|
|
10510
10548
|
"image/webp": ["webp"],
|
|
10511
10549
|
"application/json": ["json"]
|
|
10512
10550
|
});
|
|
10513
|
-
function
|
|
10514
|
-
for (const [e, t] of
|
|
10551
|
+
function Ql(r) {
|
|
10552
|
+
for (const [e, t] of Jl)
|
|
10515
10553
|
if (t.includes(r))
|
|
10516
10554
|
return e;
|
|
10517
10555
|
}
|
|
10518
|
-
function
|
|
10556
|
+
function ec(r) {
|
|
10519
10557
|
let e;
|
|
10520
10558
|
if (r.startsWith("data:"))
|
|
10521
10559
|
e = r.match(/^data:(.+?);/)?.[1];
|
|
10522
10560
|
else if (r.startsWith("http")) {
|
|
10523
10561
|
const t = r.split(/[#?]/)[0].split(".").pop()?.trim();
|
|
10524
|
-
t && (e =
|
|
10562
|
+
t && (e = Ql(t));
|
|
10525
10563
|
}
|
|
10526
10564
|
return e;
|
|
10527
10565
|
}
|
|
10528
|
-
const
|
|
10529
|
-
class
|
|
10566
|
+
const Rt = "WeakRef" in globalThis;
|
|
10567
|
+
class tc extends we {
|
|
10530
10568
|
defaultHandler = (e) => e;
|
|
10531
10569
|
_handlers = /* @__PURE__ */ new Map();
|
|
10532
10570
|
_handleing = /* @__PURE__ */ new Map();
|
|
10533
10571
|
_handled = /* @__PURE__ */ new Map();
|
|
10534
|
-
_gc =
|
|
10572
|
+
_gc = Rt ? new FinalizationRegistry((e) => {
|
|
10535
10573
|
const t = this.get(e);
|
|
10536
10574
|
t && "destroy" in t && t.destroy(), this._handled.delete(e);
|
|
10537
10575
|
}) : void 0;
|
|
10538
10576
|
constructor() {
|
|
10539
|
-
super(),
|
|
10577
|
+
super(), Rt || B.on(this.gc.bind(this), { sort: 2 });
|
|
10540
10578
|
}
|
|
10541
10579
|
use(e) {
|
|
10542
10580
|
return e.install(this), this;
|
|
@@ -10585,11 +10623,11 @@ class Jl extends we {
|
|
|
10585
10623
|
}
|
|
10586
10624
|
get(e) {
|
|
10587
10625
|
let t = this._handled.get(e);
|
|
10588
|
-
return
|
|
10626
|
+
return Rt && t instanceof WeakRef && (t = t.deref(), t || this._handleing.delete(e)), t;
|
|
10589
10627
|
}
|
|
10590
10628
|
set(e, t) {
|
|
10591
10629
|
let s = t;
|
|
10592
|
-
|
|
10630
|
+
Rt && typeof t == "object" && (this._gc.register(t, e), s = new WeakRef(t)), this._handled.set(e, s);
|
|
10593
10631
|
}
|
|
10594
10632
|
async loadBy(e, t = () => this.fetch(e).then((s) => s.blob())) {
|
|
10595
10633
|
const s = this.get(e) ?? this._handleing.get(e);
|
|
@@ -10602,7 +10640,7 @@ class Jl extends we {
|
|
|
10602
10640
|
}
|
|
10603
10641
|
async load(e, t) {
|
|
10604
10642
|
const s = await this.loadBy(e);
|
|
10605
|
-
let i =
|
|
10643
|
+
let i = ec(e);
|
|
10606
10644
|
return i === void 0 && (i = s.type?.split(";")[0] ?? void 0), ((i ? this._handlers.get(i) : void 0) ?? this.defaultHandler)(s, t);
|
|
10607
10645
|
}
|
|
10608
10646
|
async waitUntilLoad() {
|
|
@@ -10619,11 +10657,11 @@ class Jl extends we {
|
|
|
10619
10657
|
}), this._handled.clear();
|
|
10620
10658
|
}
|
|
10621
10659
|
}
|
|
10622
|
-
const $ = new
|
|
10623
|
-
var
|
|
10660
|
+
const $ = new tc().use(new qo()).use(new jl()).use(new Wl()).use(new ql()).use(new Yl()).use(new Kl()).use(new Zl());
|
|
10661
|
+
var rc = Object.defineProperty, Js = (r, e, t, s) => {
|
|
10624
10662
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
10625
10663
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
10626
|
-
return i &&
|
|
10664
|
+
return i && rc(e, t, i), i;
|
|
10627
10665
|
};
|
|
10628
10666
|
const Le = {
|
|
10629
10667
|
alpha: !0,
|
|
@@ -10633,7 +10671,7 @@ const Le = {
|
|
|
10633
10671
|
preserveDrawingBuffer: !1,
|
|
10634
10672
|
powerPreference: "default"
|
|
10635
10673
|
};
|
|
10636
|
-
class
|
|
10674
|
+
class Cr extends fe {
|
|
10637
10675
|
renderer;
|
|
10638
10676
|
get view() {
|
|
10639
10677
|
return this.renderer.view;
|
|
@@ -10656,7 +10694,7 @@ class Ar extends fe {
|
|
|
10656
10694
|
set pixelRatio(e) {
|
|
10657
10695
|
this.renderer.pixelRatio = e, this.resize(this.width, this.height);
|
|
10658
10696
|
}
|
|
10659
|
-
_resizeObserver =
|
|
10697
|
+
_resizeObserver = Ni ? new ResizeObserver((e) => {
|
|
10660
10698
|
const t = e[0];
|
|
10661
10699
|
if (t.target === this.view) {
|
|
10662
10700
|
const { inlineSize: s, blockSize: i } = Array.isArray(t.contentBoxSize) ? t.contentBoxSize[0] : t.contentBoxSize;
|
|
@@ -10668,11 +10706,11 @@ class Ar extends fe {
|
|
|
10668
10706
|
view: t,
|
|
10669
10707
|
width: s,
|
|
10670
10708
|
height: i,
|
|
10671
|
-
pixelRatio: o =
|
|
10709
|
+
pixelRatio: o = hs,
|
|
10672
10710
|
autoResize: a,
|
|
10673
10711
|
data: n
|
|
10674
10712
|
} = e;
|
|
10675
|
-
super(), this.renderer = new
|
|
10713
|
+
super(), this.renderer = new Wo(t, {
|
|
10676
10714
|
alpha: Le.alpha ?? e.alpha,
|
|
10677
10715
|
stencil: Le.stencil ?? e.stencil,
|
|
10678
10716
|
antialias: Le.antialias ?? e.antialias,
|
|
@@ -10715,7 +10753,7 @@ class Ar extends fe {
|
|
|
10715
10753
|
return this.renderer.resize(e, t, s), this.root.width = e, this.root.height = t, this.render(), this;
|
|
10716
10754
|
}
|
|
10717
10755
|
nextTick() {
|
|
10718
|
-
return
|
|
10756
|
+
return os();
|
|
10719
10757
|
}
|
|
10720
10758
|
async waitUntilLoad() {
|
|
10721
10759
|
await $.waitUntilLoad(), await this.nextTick();
|
|
@@ -10765,19 +10803,19 @@ class Ar extends fe {
|
|
|
10765
10803
|
this._resizeObserver?.disconnect(), this.renderer.destroy(), super.destroy();
|
|
10766
10804
|
}
|
|
10767
10805
|
}
|
|
10768
|
-
|
|
10806
|
+
Js([
|
|
10769
10807
|
h({ fallback: !1 })
|
|
10770
|
-
],
|
|
10771
|
-
|
|
10808
|
+
], Cr.prototype, "autoResize");
|
|
10809
|
+
Js([
|
|
10772
10810
|
h({ fallback: !1 })
|
|
10773
|
-
],
|
|
10811
|
+
], Cr.prototype, "autoStart");
|
|
10774
10812
|
let U;
|
|
10775
|
-
const
|
|
10776
|
-
let
|
|
10777
|
-
async function
|
|
10778
|
-
if (!
|
|
10779
|
-
for (
|
|
10780
|
-
const e =
|
|
10813
|
+
const ur = [];
|
|
10814
|
+
let sr = !1;
|
|
10815
|
+
async function sc(r = 100) {
|
|
10816
|
+
if (!sr) {
|
|
10817
|
+
for (sr = !0; ur.length; ) {
|
|
10818
|
+
const e = ur.shift();
|
|
10781
10819
|
if (e)
|
|
10782
10820
|
try {
|
|
10783
10821
|
await e();
|
|
@@ -10787,10 +10825,10 @@ async function ec(r = 100) {
|
|
|
10787
10825
|
else
|
|
10788
10826
|
await new Promise((t) => setTimeout(t, r));
|
|
10789
10827
|
}
|
|
10790
|
-
|
|
10828
|
+
sr = !1;
|
|
10791
10829
|
}
|
|
10792
10830
|
}
|
|
10793
|
-
async function
|
|
10831
|
+
async function ic(r) {
|
|
10794
10832
|
const {
|
|
10795
10833
|
debug: e = !1,
|
|
10796
10834
|
fonts: t,
|
|
@@ -10802,7 +10840,7 @@ async function tc(r) {
|
|
|
10802
10840
|
onKeyframe: l,
|
|
10803
10841
|
...c
|
|
10804
10842
|
} = r;
|
|
10805
|
-
return U ??= new
|
|
10843
|
+
return U ??= new Cr({
|
|
10806
10844
|
pixelRatio: 1,
|
|
10807
10845
|
width: 1,
|
|
10808
10846
|
height: 1,
|
|
@@ -10823,213 +10861,213 @@ async function tc(r) {
|
|
|
10823
10861
|
p();
|
|
10824
10862
|
}), U.toCanvas2D();
|
|
10825
10863
|
}
|
|
10826
|
-
async function
|
|
10864
|
+
async function Ec(r) {
|
|
10827
10865
|
return new Promise((e) => {
|
|
10828
|
-
|
|
10866
|
+
ur.push(async () => e(await ic(r))), sc();
|
|
10829
10867
|
});
|
|
10830
10868
|
}
|
|
10831
10869
|
export {
|
|
10832
|
-
|
|
10870
|
+
la as AnimatedTexture,
|
|
10833
10871
|
dt as Animation,
|
|
10834
|
-
|
|
10872
|
+
tc as Assets,
|
|
10835
10873
|
Ce as Audio,
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10874
|
+
Zs as AudioPipeline,
|
|
10875
|
+
wc as AudioProcessor,
|
|
10876
|
+
Pc as AudioSpectrum,
|
|
10839
10877
|
ft as AudioWaveform,
|
|
10840
|
-
|
|
10878
|
+
nr as BaseElement2D,
|
|
10841
10879
|
be as BufferUsage,
|
|
10842
|
-
|
|
10843
|
-
|
|
10880
|
+
It as Camera2D,
|
|
10881
|
+
fa as CanvasContext,
|
|
10844
10882
|
Ge as CanvasItem,
|
|
10845
|
-
|
|
10883
|
+
xs as CanvasTexture,
|
|
10846
10884
|
oe as Color,
|
|
10847
10885
|
W as ColorAdjustEffect,
|
|
10848
10886
|
$e as ColorFilterEffect,
|
|
10849
|
-
|
|
10887
|
+
fs as ColorMatrix,
|
|
10850
10888
|
He as ColorOverlayEffect,
|
|
10851
10889
|
Xe as ColorRemoveEffect,
|
|
10852
10890
|
je as ColorReplaceEffect,
|
|
10853
|
-
|
|
10891
|
+
gr as ColorTexture,
|
|
10854
10892
|
Pe as CoreObject,
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10893
|
+
eo as DEG_TO_RAD,
|
|
10894
|
+
hs as DEVICE_PIXEL_RATIO,
|
|
10895
|
+
K as DrawboardEffect,
|
|
10858
10896
|
re as DropShadowEffect,
|
|
10859
10897
|
T as Effect,
|
|
10860
|
-
|
|
10898
|
+
Ot as EffectMaterial,
|
|
10861
10899
|
te as Element2D,
|
|
10862
|
-
|
|
10900
|
+
Xs as Element2DBackground,
|
|
10863
10901
|
F as Element2DFill,
|
|
10864
|
-
|
|
10902
|
+
js as Element2DForeground,
|
|
10865
10903
|
Ze as Element2DOutline,
|
|
10866
10904
|
Je as Element2DShadow,
|
|
10867
10905
|
Qe as Element2DShape,
|
|
10868
|
-
|
|
10906
|
+
ar as Element2DStyle,
|
|
10869
10907
|
ie as Element2DText,
|
|
10870
10908
|
ct as EmbossEffect,
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10909
|
+
Cr as Engine,
|
|
10910
|
+
Rr as FlexLayout,
|
|
10911
|
+
qo as FontLoader,
|
|
10874
10912
|
ce as GaussianBlurEffect,
|
|
10875
10913
|
Ne as Geometry,
|
|
10876
|
-
|
|
10877
|
-
|
|
10914
|
+
jl as GifLoader,
|
|
10915
|
+
Eo as GlBatch2DSystem,
|
|
10878
10916
|
lt as GlBlendMode,
|
|
10879
|
-
|
|
10880
|
-
|
|
10917
|
+
io as GlBuffer,
|
|
10918
|
+
no as GlBufferSystem,
|
|
10881
10919
|
it as GlBufferTarget,
|
|
10882
|
-
|
|
10920
|
+
So as GlMaskSystem,
|
|
10883
10921
|
nt as GlProgram,
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10922
|
+
Xo as GlRenderTarget,
|
|
10923
|
+
jo as GlRenderTargetSystem,
|
|
10924
|
+
Wo as GlRenderer,
|
|
10925
|
+
xo as GlShaderSystem,
|
|
10888
10926
|
ze as GlState,
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10927
|
+
Po as GlStateSystem,
|
|
10928
|
+
$o as GlStencilSystem,
|
|
10929
|
+
q as GlSystem,
|
|
10930
|
+
Ho as GlViewportSystem,
|
|
10893
10931
|
G as GlitchEffect,
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10932
|
+
Z as GodrayEffect,
|
|
10933
|
+
Gt as GradientTexture,
|
|
10934
|
+
pl as HTMLAudio,
|
|
10935
|
+
Ar as HTMLAudioContext,
|
|
10936
|
+
Nt as HTMLSound,
|
|
10937
|
+
pr as IN_BROWSER,
|
|
10938
|
+
Fi as IN_MAC_OS,
|
|
10901
10939
|
We as IndexBuffer,
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10940
|
+
Zi as Input,
|
|
10941
|
+
Ft as InputEvent,
|
|
10942
|
+
Wl as JsonLoader,
|
|
10905
10943
|
ht as KawaseBlurEffect,
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10944
|
+
kt as KawaseTransition,
|
|
10945
|
+
Wi as KeyboardInputEvent,
|
|
10946
|
+
Ut as LeftEraseTransition,
|
|
10909
10947
|
Me as Loader,
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10948
|
+
cr as Lottie2D,
|
|
10949
|
+
ql as LottieLoader,
|
|
10950
|
+
_r as MainLoop,
|
|
10913
10951
|
De as MaskEffect,
|
|
10914
10952
|
E as Material,
|
|
10915
10953
|
ae as Matrix,
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10954
|
+
gc as Matrix2,
|
|
10955
|
+
ps as Matrix3,
|
|
10956
|
+
Qi as Matrix4,
|
|
10957
|
+
_a as Meta,
|
|
10958
|
+
ds as MouseInputEvent,
|
|
10921
10959
|
M as Node,
|
|
10922
10960
|
Oe as Node2D,
|
|
10923
10961
|
L as OutlineEffect,
|
|
10924
|
-
|
|
10962
|
+
fr as PI,
|
|
10925
10963
|
z as PI_2,
|
|
10926
10964
|
ut as PixelateEffect,
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10965
|
+
ca as PixelsTexture,
|
|
10966
|
+
qi as PointerInputEvent,
|
|
10967
|
+
ro as Projection2D,
|
|
10968
|
+
bc as QuadGeometry,
|
|
10931
10969
|
P as QuadUvGeometry,
|
|
10932
|
-
|
|
10970
|
+
_c as RAD_TO_DEG,
|
|
10933
10971
|
Fe as Rectangle,
|
|
10934
|
-
|
|
10972
|
+
Ji as RefCounted,
|
|
10935
10973
|
X as RenderTarget,
|
|
10936
|
-
|
|
10974
|
+
mr as Renderer,
|
|
10937
10975
|
he as Resource,
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10976
|
+
ns as SUPPORTS_AUDIO_CONTEXT,
|
|
10977
|
+
Ui as SUPPORTS_CLICK_EVENTS,
|
|
10978
|
+
fc as SUPPORTS_CREATE_IMAGE_BITMAP,
|
|
10979
|
+
Mi as SUPPORTS_IMAGE_BITMAP,
|
|
10980
|
+
dc as SUPPORTS_MOUSE_EVENTS,
|
|
10981
|
+
cs as SUPPORTS_OFFLINE_AUDIO_CONTEXT,
|
|
10944
10982
|
et as SUPPORTS_POINTER_EVENTS,
|
|
10945
|
-
|
|
10983
|
+
Ni as SUPPORTS_RESIZE_OBSERVER,
|
|
10946
10984
|
ve as SUPPORTS_TOUCH_EVENTS,
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10985
|
+
Ii as SUPPORTS_WEBGL2,
|
|
10986
|
+
ls as SUPPORTS_WEBKIT_AUDIO_CONTEXT,
|
|
10987
|
+
Bi as SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT,
|
|
10988
|
+
Li as SUPPORTS_WEB_AUDIO,
|
|
10989
|
+
ki as SUPPORTS_WHEEL_EVENTS,
|
|
10952
10990
|
fe as SceneTree,
|
|
10953
|
-
|
|
10991
|
+
Yl as TextLoader,
|
|
10954
10992
|
x as Texture2D,
|
|
10955
|
-
|
|
10956
|
-
|
|
10993
|
+
Kl as TextureLoader,
|
|
10994
|
+
qs as TextureRect2D,
|
|
10957
10995
|
B as Ticker,
|
|
10958
10996
|
pt as TiltShiftTransition,
|
|
10959
10997
|
le as Timeline,
|
|
10960
|
-
|
|
10998
|
+
Y as TimelineNode,
|
|
10961
10999
|
I as Transform2D,
|
|
10962
|
-
|
|
11000
|
+
il as TransformRect2D,
|
|
10963
11001
|
Ve as Transition,
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
11002
|
+
Bt as TwistTransition,
|
|
11003
|
+
yc as UvGeometry,
|
|
11004
|
+
Dt as UvMaterial,
|
|
10967
11005
|
ee as Vector,
|
|
10968
11006
|
C as Vector2,
|
|
10969
|
-
|
|
10970
|
-
|
|
11007
|
+
vc as Vector3,
|
|
11008
|
+
to as Vector4,
|
|
10971
11009
|
H as VertexAttribute,
|
|
10972
11010
|
ye as VertexBuffer,
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
11011
|
+
hr as Video2D,
|
|
11012
|
+
Zl as VideoLoader,
|
|
11013
|
+
da as VideoTexture,
|
|
10976
11014
|
j as Viewport,
|
|
10977
|
-
|
|
10978
|
-
|
|
11015
|
+
br as ViewportTexture,
|
|
11016
|
+
vl as WebAudio,
|
|
10979
11017
|
Ae as WebAudioContext,
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
11018
|
+
gl as WebSound,
|
|
11019
|
+
Yi as WheelInputEvent,
|
|
11020
|
+
or as Window,
|
|
10983
11021
|
xe as ZoomBlurEffect,
|
|
10984
11022
|
Be as alignMap,
|
|
10985
11023
|
$ as assets,
|
|
10986
|
-
|
|
11024
|
+
es as boxSizingMap,
|
|
10987
11025
|
ne as clamp,
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
11026
|
+
Sn as clampFrag,
|
|
11027
|
+
$i as createHTMLCanvas,
|
|
11028
|
+
ao as createIdFromString,
|
|
11029
|
+
uc as createNode,
|
|
11030
|
+
Xi as crossOrigin,
|
|
10993
11031
|
yt as cubicBezier,
|
|
10994
|
-
|
|
11032
|
+
mc as curves,
|
|
10995
11033
|
b as customNode,
|
|
10996
|
-
|
|
11034
|
+
dr as customNodes,
|
|
10997
11035
|
Le as defaultOptions,
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11036
|
+
Hi as determineCrossOrigin,
|
|
11037
|
+
lr as directionMap,
|
|
11038
|
+
qr as displayMap,
|
|
11039
|
+
hl as ease,
|
|
11040
|
+
ul as easeIn,
|
|
11041
|
+
fl as easeInOut,
|
|
11042
|
+
dl as easeOut,
|
|
11005
11043
|
R as edgeMap,
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11044
|
+
Yr as flexDirectionMap,
|
|
11045
|
+
Kr as flexWrapMap,
|
|
11046
|
+
En as frag,
|
|
11047
|
+
Br as getDefaultCssPropertyValue,
|
|
11048
|
+
Zn as gutterMap,
|
|
11011
11049
|
rt as instanceId,
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11050
|
+
Gi as isCanvasElement,
|
|
11051
|
+
us as isElementNode,
|
|
11052
|
+
pc as isImageElement,
|
|
11053
|
+
Ur as isPow2,
|
|
11054
|
+
zi as isVideoElement,
|
|
11055
|
+
Vi as isWebgl2,
|
|
11056
|
+
Zr as justifyMap,
|
|
11019
11057
|
A as lerp,
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11058
|
+
cl as linear,
|
|
11059
|
+
Vr as log2,
|
|
11060
|
+
wo as mapGlBlendModes,
|
|
11061
|
+
Gr as nextPow2,
|
|
11062
|
+
os as nextTick,
|
|
11063
|
+
Jr as overflowMap,
|
|
11064
|
+
xc as parseCssFilter,
|
|
11065
|
+
Lt as parseCssFunctions,
|
|
11028
11066
|
Et as parseCssProperty,
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11067
|
+
Fa as parseCssTransform,
|
|
11068
|
+
za as parseCssTransformOrigin,
|
|
11069
|
+
Qr as positionTypeMap,
|
|
11070
|
+
Ec as render,
|
|
11033
11071
|
Ie as stencilModeMap,
|
|
11034
|
-
|
|
11072
|
+
rr as timingFunctions
|
|
11035
11073
|
};
|