modern-canvas 0.14.0 → 0.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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 es, Observable as we, Reactivable as ts, parseColor as oi, property as h, isGradient as ai, isColorFillObject as Mr, clearUndef as rs, idGenerator as ss, normalizeFill as ni, isNone as V, normalizeBackground as li, normalizeForeground as ci, normalizeOutline as hi, normalizeShadow as ui, normalizeShape as di, getDefaultStyle as fi, normalizeText as pi, normalizeTextContent as _i, getDefaultTextStyle as mi, getDefaultLayoutStyle as gi, RawWeakMap as vi } from "modern-idoc";
|
|
2
|
+
import { fonts as bi } from "modern-font";
|
|
3
|
+
import { extend as yi } from "colord";
|
|
4
|
+
import xi from "colord/plugins/names";
|
|
5
|
+
import { Path2D as Rt, Path2DSet as wi, svgToDom as Pi, svgToPath2DSet as Ei, Matrix3 as Nr, BoundingBox as Yt } from "modern-path2d";
|
|
6
|
+
import { Text as Si, Character as Ti } from "modern-text";
|
|
7
|
+
const ur = /* @__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
|
+
es(t, s, {
|
|
16
16
|
fallback: e[s]
|
|
17
17
|
});
|
|
18
|
-
}),
|
|
18
|
+
}), ur.set(r, t);
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
22
|
-
const t =
|
|
21
|
+
function lc(r = "node", e = {}) {
|
|
22
|
+
const t = ur.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 is(r) {
|
|
85
85
|
return new Promise((e) => {
|
|
86
86
|
B.on(
|
|
87
87
|
() => {
|
|
@@ -91,12 +91,12 @@ async function es(r) {
|
|
|
91
91
|
);
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
const
|
|
95
|
-
function
|
|
94
|
+
const dr = Math.PI, z = dr * 2;
|
|
95
|
+
function kr(r) {
|
|
96
96
|
return !(r & r - 1) && !!r;
|
|
97
97
|
}
|
|
98
|
-
const
|
|
99
|
-
function
|
|
98
|
+
const Ri = /([\w-]+)\((.+?)\)/g, Ai = /[^,]+/g, Ci = /([-e.\d]+)(.*)/;
|
|
99
|
+
function Ur(r) {
|
|
100
100
|
return Array.isArray(r) ? r.map((e) => ({
|
|
101
101
|
name: e.name,
|
|
102
102
|
args: e.args.map((t) => ({
|
|
@@ -108,36 +108,36 @@ function Ir(r) {
|
|
|
108
108
|
normalizedIntValue: r.normalizedDefaultIntValue
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
function
|
|
112
|
-
const s =
|
|
113
|
-
return s.length ? s :
|
|
111
|
+
function Et(r, e, t = {}) {
|
|
112
|
+
const s = Bt(e, t);
|
|
113
|
+
return s.length ? s : os(r, e, t);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function Bt(r, e = {}) {
|
|
116
116
|
const t = [];
|
|
117
117
|
let s;
|
|
118
|
-
for (; (s =
|
|
118
|
+
for (; (s = Ri.exec(r)) !== null; ) {
|
|
119
119
|
const [, i, o] = s;
|
|
120
120
|
i && t.push({
|
|
121
121
|
name: i,
|
|
122
|
-
args:
|
|
122
|
+
args: Oi(i, o, e)
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
return t;
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function Oi(r, e, t = {}) {
|
|
128
128
|
const s = [];
|
|
129
129
|
let i, o = 0;
|
|
130
|
-
for (; (i =
|
|
130
|
+
for (; (i = Ai.exec(e)) !== null; )
|
|
131
131
|
s.push(
|
|
132
|
-
|
|
132
|
+
os(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 os(r, e, t = {}) {
|
|
140
|
+
const { width: s = 1, height: i = 1, index: o = 0 } = t, a = e.match(Ci), n = {
|
|
141
141
|
unit: a?.[2] ?? null,
|
|
142
142
|
value: e,
|
|
143
143
|
intValue: Number(a?.[1]),
|
|
@@ -183,32 +183,32 @@ function ts(r, e, t = {}) {
|
|
|
183
183
|
}
|
|
184
184
|
return n;
|
|
185
185
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
186
|
+
const Di = "WebGL2RenderingContext" in globalThis, Ii = "ImageBitmap" in globalThis, Mi = "ResizeObserver" in globalThis, et = "PointerEvent" in globalThis, Ni = "WheelEvent" in globalThis, cc = "MouseEvent" in globalThis, ve = "ontouchstart" in globalThis, ki = "onclick" in globalThis, hc = "createImageBitmap" in globalThis, as = "AudioContext" in globalThis, ns = "webkitAudioContext" in globalThis, ls = "OfflineAudioContext" in globalThis, Ui = "webkitOfflineAudioContext" in globalThis, Bi = as || ns, fr = typeof window < "u", Li = typeof navigator < "u" && navigator?.userAgent?.indexOf("Mac") >= 0, cs = globalThis.devicePixelRatio || 1, hs = (r) => r !== null && typeof r == "object" && r.nodeType === 1, Fi = (r) => hs(r) && r.tagName === "VIDEO", uc = (r) => hs(r) && r.tagName === "IMG";
|
|
187
|
+
function zi(r) {
|
|
188
188
|
return typeof r == "object" && r !== null && r.nodeType === 1 && r.tagName === "CANVAS";
|
|
189
189
|
}
|
|
190
|
-
function
|
|
191
|
-
return
|
|
190
|
+
function Gi(r) {
|
|
191
|
+
return Di && r instanceof globalThis.WebGL2RenderingContext;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
if (
|
|
193
|
+
function Vi() {
|
|
194
|
+
if (fr)
|
|
195
195
|
return globalThis.document.createElement("canvas");
|
|
196
196
|
}
|
|
197
|
-
function
|
|
197
|
+
function $i(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 Hi(r, e, t) {
|
|
205
|
+
t === null && !e.startsWith("data:") ? r.crossOrigin = $i(e) : t !== !1 && (r.crossOrigin = typeof t == "string" ? t : "anonymous");
|
|
206
206
|
}
|
|
207
|
-
let
|
|
207
|
+
let Xi = 0;
|
|
208
208
|
function rt() {
|
|
209
|
-
return ++
|
|
209
|
+
return ++Xi;
|
|
210
210
|
}
|
|
211
|
-
class
|
|
211
|
+
class Lt {
|
|
212
212
|
cursor;
|
|
213
213
|
// Event
|
|
214
214
|
bubbles = !1;
|
|
@@ -216,7 +216,7 @@ class Ut {
|
|
|
216
216
|
cancelable = !1;
|
|
217
217
|
composed = !1;
|
|
218
218
|
defaultPrevented = !1;
|
|
219
|
-
eventPhase =
|
|
219
|
+
eventPhase = Lt.prototype.NONE;
|
|
220
220
|
isTrusted = !1;
|
|
221
221
|
timeStamp = 0;
|
|
222
222
|
type = "";
|
|
@@ -245,7 +245,7 @@ class Ut {
|
|
|
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 ji extends Lt {
|
|
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 Gi extends Ut {
|
|
|
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 us extends Lt {
|
|
257
257
|
client = { x: 0, y: 0 };
|
|
258
258
|
get clientX() {
|
|
259
259
|
return this.client.x;
|
|
@@ -316,7 +316,7 @@ class ns extends Ut {
|
|
|
316
316
|
return this.global.y;
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
|
-
class
|
|
319
|
+
class Wi extends us {
|
|
320
320
|
width = 0;
|
|
321
321
|
height = 0;
|
|
322
322
|
isPrimary = !1;
|
|
@@ -327,7 +327,7 @@ class Vi extends ns {
|
|
|
327
327
|
throw new Error("getPredictedEvents is not supported!");
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
class
|
|
330
|
+
class qi extends us {
|
|
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 $i extends ns {
|
|
|
335
335
|
static DOM_DELTA_PAGE = 2;
|
|
336
336
|
DOM_DELTA_PAGE = 2;
|
|
337
337
|
}
|
|
338
|
-
const
|
|
338
|
+
const Yi = {
|
|
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 Ki extends we {
|
|
346
346
|
/**
|
|
347
347
|
* Current event
|
|
348
348
|
*/
|
|
@@ -364,22 +364,22 @@ class Xi extends xe {
|
|
|
364
364
|
if (!this.setuped || !this.target)
|
|
365
365
|
return;
|
|
366
366
|
const e = this.target.style;
|
|
367
|
-
globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "", e.msTouchAction = "") : et && (e.touchAction = ""), et ? (this.target.removeEventListener("pointerdown", this._onPointerDown), this.target.removeEventListener("pointerleave", this._onPointerOver), this.target.removeEventListener("pointerover", this._onPointerOver), this.target.removeEventListener("pointermove", this._onPointerMove), this.target.removeEventListener("pointerup", this._onPointerUp)) : (this.target.removeEventListener("mousedown", this._onPointerDown), this.target.removeEventListener("mouseout", this._onPointerOver), this.target.removeEventListener("mouseover", this._onPointerOver), this.target.removeEventListener("mousemove", this._onPointerMove), this.target.removeEventListener("mouseup", this._onPointerUp)),
|
|
367
|
+
globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "", e.msTouchAction = "") : et && (e.touchAction = ""), et ? (this.target.removeEventListener("pointerdown", this._onPointerDown), this.target.removeEventListener("pointerleave", this._onPointerOver), this.target.removeEventListener("pointerover", this._onPointerOver), this.target.removeEventListener("pointermove", this._onPointerMove), this.target.removeEventListener("pointerup", this._onPointerUp)) : (this.target.removeEventListener("mousedown", this._onPointerDown), this.target.removeEventListener("mouseout", this._onPointerOver), this.target.removeEventListener("mouseover", this._onPointerOver), this.target.removeEventListener("mousemove", this._onPointerMove), this.target.removeEventListener("mouseup", this._onPointerUp)), ve && (this.target.removeEventListener("touchstart", this._onPointerDown), this.target.removeEventListener("touchmove", this._onPointerMove), this.target.removeEventListener("touchend", this._onPointerUp)), this.target.removeEventListener("wheel", this._onWheel), document.removeEventListener("keydown", this._onKeyDown), document.removeEventListener("keypress", this._onKeyPress), document.removeEventListener("keyup", this._onKeyUp), this.target = void 0, this.setuped = !1;
|
|
368
368
|
}
|
|
369
369
|
addEventListeners() {
|
|
370
370
|
if (this.setuped || !this.target)
|
|
371
371
|
return;
|
|
372
372
|
const e = this.target.style;
|
|
373
|
-
e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "none", e.msTouchAction = "none") : et && (e.touchAction = "none")), et ? (this.target.addEventListener("pointerdown", this._onPointerDown), this.target.addEventListener("pointerleave", this._onPointerOver), this.target.addEventListener("pointerover", this._onPointerOver), this.target.addEventListener("pointermove", this._onPointerMove), this.target.addEventListener("pointerup", this._onPointerUp)) : (this.target.addEventListener("mousedown", this._onPointerDown), this.target.addEventListener("mouseout", this._onPointerOver), this.target.addEventListener("mouseover", this._onPointerOver), this.target.addEventListener("mousemove", this._onPointerMove), this.target.addEventListener("mouseup", this._onPointerUp)),
|
|
373
|
+
e && (globalThis.navigator.msPointerEnabled ? (e.msContentZooming = "none", e.msTouchAction = "none") : et && (e.touchAction = "none")), et ? (this.target.addEventListener("pointerdown", this._onPointerDown), this.target.addEventListener("pointerleave", this._onPointerOver), this.target.addEventListener("pointerover", this._onPointerOver), this.target.addEventListener("pointermove", this._onPointerMove), this.target.addEventListener("pointerup", this._onPointerUp)) : (this.target.addEventListener("mousedown", this._onPointerDown), this.target.addEventListener("mouseout", this._onPointerOver), this.target.addEventListener("mouseover", this._onPointerOver), this.target.addEventListener("mousemove", this._onPointerMove), this.target.addEventListener("mouseup", this._onPointerUp)), ve && (this.target.addEventListener("touchstart", this._onPointerDown), this.target.addEventListener("touchmove", this._onPointerMove), this.target.addEventListener("touchend", this._onPointerUp)), this.target.addEventListener("wheel", this._onWheel), document.addEventListener("keydown", this._onKeyDown), document.addEventListener("keypress", this._onKeyPress), document.addEventListener("keyup", this._onKeyUp), this.setuped = !0;
|
|
374
374
|
}
|
|
375
375
|
normalize(e) {
|
|
376
376
|
const t = [];
|
|
377
|
-
if (
|
|
377
|
+
if (ve && e instanceof globalThis.TouchEvent)
|
|
378
378
|
for (let s = 0, i = e.changedTouches.length; s < i; s++) {
|
|
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 (Ni && 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 Xi extends xe {
|
|
|
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 Wi();
|
|
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 = Yi[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 Xi extends xe {
|
|
|
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 qi();
|
|
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 ji();
|
|
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") {
|
|
@@ -451,7 +451,7 @@ class Xi extends xe {
|
|
|
451
451
|
this.event?.cursor && this.setCursor(this.event.cursor);
|
|
452
452
|
};
|
|
453
453
|
_onPointerDown = (e) => {
|
|
454
|
-
if (
|
|
454
|
+
if (ve && e.pointerType === "touch")
|
|
455
455
|
return;
|
|
456
456
|
const t = this.normalize(e);
|
|
457
457
|
for (let s = 0, i = t.length; s < i; s++)
|
|
@@ -459,7 +459,7 @@ class Xi extends xe {
|
|
|
459
459
|
this.event?.cursor && this.setCursor(this.event.cursor);
|
|
460
460
|
};
|
|
461
461
|
_onPointerOver = (e) => {
|
|
462
|
-
if (!this.enableClickEvent ||
|
|
462
|
+
if (!this.enableClickEvent || ve && e.pointerType === "touch")
|
|
463
463
|
return;
|
|
464
464
|
const t = this.normalize(e);
|
|
465
465
|
for (let s = 0, i = t.length; s < i; s++)
|
|
@@ -467,7 +467,7 @@ class Xi extends xe {
|
|
|
467
467
|
this.event?.cursor && this.setCursor(this.event.cursor);
|
|
468
468
|
};
|
|
469
469
|
_onPointerMove = (e) => {
|
|
470
|
-
if (!this.enableMoveEvent ||
|
|
470
|
+
if (!this.enableMoveEvent || ve && e.pointerType === "touch")
|
|
471
471
|
return;
|
|
472
472
|
const t = this.normalize(e);
|
|
473
473
|
for (let s = 0, i = t.length; s < i; s++)
|
|
@@ -475,7 +475,7 @@ class Xi extends xe {
|
|
|
475
475
|
this.event?.cursor && this.setCursor(this.event.cursor);
|
|
476
476
|
};
|
|
477
477
|
_onPointerUp = (e) => {
|
|
478
|
-
if (!this.enableClickEvent ||
|
|
478
|
+
if (!this.enableClickEvent || ve && e.pointerType === "touch")
|
|
479
479
|
return;
|
|
480
480
|
let t = e.target;
|
|
481
481
|
e.composedPath && e.composedPath().length > 0 && (t = e.composedPath()[0]);
|
|
@@ -498,7 +498,7 @@ class Xi extends xe {
|
|
|
498
498
|
this.removeEventListeners(), super.destroy();
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
class
|
|
501
|
+
class Pe extends ts {
|
|
502
502
|
instanceId = rt();
|
|
503
503
|
get json() {
|
|
504
504
|
return this.toJSON();
|
|
@@ -507,25 +507,25 @@ class we extends Zr {
|
|
|
507
507
|
this.setProperties(e);
|
|
508
508
|
}
|
|
509
509
|
_nextTick() {
|
|
510
|
-
return
|
|
510
|
+
return is();
|
|
511
511
|
}
|
|
512
512
|
equal(e) {
|
|
513
513
|
return !!(e && this.instanceId === e.instanceId);
|
|
514
514
|
}
|
|
515
515
|
}
|
|
516
|
-
class
|
|
516
|
+
class Zi extends Pe {
|
|
517
517
|
//
|
|
518
518
|
}
|
|
519
|
-
class he extends
|
|
519
|
+
class he extends Zi {
|
|
520
520
|
//
|
|
521
521
|
}
|
|
522
|
-
|
|
522
|
+
yi([xi]);
|
|
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 = oi(e ?? "none");
|
|
529
529
|
}
|
|
530
530
|
get r8() {
|
|
531
531
|
return this._colord.rgba.r;
|
|
@@ -596,7 +596,7 @@ class oe {
|
|
|
596
596
|
return [this.r, this.g, this.b, this.a];
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
class ee extends
|
|
599
|
+
class ee extends we {
|
|
600
600
|
constructor(e) {
|
|
601
601
|
super(), this.dim = e;
|
|
602
602
|
}
|
|
@@ -706,7 +706,7 @@ class ee extends xe {
|
|
|
706
706
|
return this.toArray();
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
|
-
class ae extends
|
|
709
|
+
class ae extends we {
|
|
710
710
|
constructor(e, t, s) {
|
|
711
711
|
super(), this.rows = e, this.cols = t, s ? this.set(s) : this.identity();
|
|
712
712
|
}
|
|
@@ -805,19 +805,19 @@ class ae extends xe {
|
|
|
805
805
|
return this._array.slice();
|
|
806
806
|
}
|
|
807
807
|
}
|
|
808
|
-
class
|
|
808
|
+
class Ji extends ae {
|
|
809
809
|
constructor(e) {
|
|
810
810
|
super(4, 4, e);
|
|
811
811
|
}
|
|
812
812
|
}
|
|
813
|
-
const
|
|
813
|
+
const Qi = dr / 180, dc = 180 / dr;
|
|
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 fc = {
|
|
821
821
|
adaptive: !0,
|
|
822
822
|
maxLength: 10,
|
|
823
823
|
minSegments: 8,
|
|
@@ -830,12 +830,12 @@ const lc = {
|
|
|
830
830
|
return t < this.minSegments ? t = this.minSegments : t > this.maxSegments && (t = this.maxSegments), t;
|
|
831
831
|
}
|
|
832
832
|
};
|
|
833
|
-
class
|
|
833
|
+
class eo 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 ds extends ae {
|
|
839
839
|
constructor(e) {
|
|
840
840
|
super(4, 5, e);
|
|
841
841
|
}
|
|
@@ -1069,7 +1069,7 @@ class ls extends ae {
|
|
|
1069
1069
|
}
|
|
1070
1070
|
toMatrix4() {
|
|
1071
1071
|
const e = this._array;
|
|
1072
|
-
return new
|
|
1072
|
+
return new Ji([
|
|
1073
1073
|
e[0],
|
|
1074
1074
|
e[1],
|
|
1075
1075
|
e[2],
|
|
@@ -1090,15 +1090,15 @@ class ls extends ae {
|
|
|
1090
1090
|
}
|
|
1091
1091
|
toVector4() {
|
|
1092
1092
|
const e = this._array;
|
|
1093
|
-
return new
|
|
1093
|
+
return new eo(e[4] / 255, e[9] / 255, e[14] / 255, e[19] / 255);
|
|
1094
1094
|
}
|
|
1095
1095
|
}
|
|
1096
|
-
class
|
|
1096
|
+
class pc extends ae {
|
|
1097
1097
|
constructor(e) {
|
|
1098
1098
|
super(2, 2, e);
|
|
1099
1099
|
}
|
|
1100
1100
|
}
|
|
1101
|
-
class
|
|
1101
|
+
class fs extends ae {
|
|
1102
1102
|
constructor(e) {
|
|
1103
1103
|
super(3, 3, e);
|
|
1104
1104
|
}
|
|
@@ -1140,7 +1140,7 @@ class cs extends ae {
|
|
|
1140
1140
|
]);
|
|
1141
1141
|
}
|
|
1142
1142
|
}
|
|
1143
|
-
class
|
|
1143
|
+
class to extends fs {
|
|
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 fs {
|
|
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 cs {
|
|
|
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 _c extends ee {
|
|
1509
1509
|
constructor() {
|
|
1510
1510
|
super(3);
|
|
1511
1511
|
}
|
|
1512
1512
|
}
|
|
1513
|
-
var
|
|
1513
|
+
var ro = Object.defineProperty, ps = (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 && ro(e, t, i), i;
|
|
1517
1517
|
};
|
|
1518
|
-
class
|
|
1518
|
+
class pr extends Pe {
|
|
1519
1519
|
_starting = !1;
|
|
1520
1520
|
_nextDeltaTime = 0;
|
|
1521
1521
|
_startedProcess;
|
|
@@ -1545,14 +1545,14 @@ class hr extends we {
|
|
|
1545
1545
|
this.stop(), super.destroy();
|
|
1546
1546
|
}
|
|
1547
1547
|
}
|
|
1548
|
-
|
|
1548
|
+
ps([
|
|
1549
1549
|
h({ fallback: 60 })
|
|
1550
|
-
],
|
|
1551
|
-
|
|
1550
|
+
], pr.prototype, "fps");
|
|
1551
|
+
ps([
|
|
1552
1552
|
h({ fallback: 1 })
|
|
1553
|
-
],
|
|
1553
|
+
], pr.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 so {
|
|
1556
1556
|
constructor(e) {
|
|
1557
1557
|
this.native = e;
|
|
1558
1558
|
}
|
|
@@ -1560,12 +1560,12 @@ class Ji {
|
|
|
1560
1560
|
byteLength = 0;
|
|
1561
1561
|
dirty = !0;
|
|
1562
1562
|
}
|
|
1563
|
-
var
|
|
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 || {}), io = Object.defineProperty, _s = (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 && io(e, t, i), i;
|
|
1567
1567
|
};
|
|
1568
|
-
class
|
|
1568
|
+
class _r extends ts {
|
|
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,16 +1579,16 @@ class ur extends Zr {
|
|
|
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
|
+
_s([
|
|
1583
|
+
h({ fallback: cs })
|
|
1584
|
+
], _r.prototype, "pixelRatio");
|
|
1585
|
+
_s([
|
|
1586
1586
|
h({ internal: !0 })
|
|
1587
|
-
],
|
|
1588
|
-
const
|
|
1589
|
-
function
|
|
1590
|
-
let t =
|
|
1591
|
-
return t === void 0 && (
|
|
1587
|
+
], _r.prototype, "view");
|
|
1588
|
+
const Kt = /* @__PURE__ */ Object.create(null), Br = /* @__PURE__ */ Object.create(null);
|
|
1589
|
+
function oo(r, e) {
|
|
1590
|
+
let t = Br[r];
|
|
1591
|
+
return t === void 0 && (Kt[e] === void 0 && (Kt[e] = 1), Br[r] = t = Kt[e]++), t;
|
|
1592
1592
|
}
|
|
1593
1593
|
class Z {
|
|
1594
1594
|
get _gl() {
|
|
@@ -1610,7 +1610,7 @@ class Z {
|
|
|
1610
1610
|
destroy() {
|
|
1611
1611
|
}
|
|
1612
1612
|
}
|
|
1613
|
-
class
|
|
1613
|
+
class ao extends Z {
|
|
1614
1614
|
install(e) {
|
|
1615
1615
|
super.install(e), e.buffer = this;
|
|
1616
1616
|
}
|
|
@@ -1620,9 +1620,9 @@ class to 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 so(t.createBuffer());
|
|
1624
1624
|
let i = it.arrayBuffer;
|
|
1625
|
-
return e.usage &
|
|
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) {
|
|
1627
1627
|
case "usage":
|
|
1628
1628
|
case "data":
|
|
@@ -1644,7 +1644,7 @@ class to extends Z {
|
|
|
1644
1644
|
s.dirty = !1;
|
|
1645
1645
|
const { _gl: i } = this, { usage: o, data: a } = e;
|
|
1646
1646
|
i.bindBuffer(s.target, s.native);
|
|
1647
|
-
const n = o &
|
|
1647
|
+
const n = o & be.static ? i.STATIC_DRAW : i.DYNAMIC_DRAW;
|
|
1648
1648
|
if (a)
|
|
1649
1649
|
if (s.byteLength >= a.byteLength) {
|
|
1650
1650
|
const l = a.length * a.BYTES_PER_ELEMENT;
|
|
@@ -1659,11 +1659,11 @@ class to extends Z {
|
|
|
1659
1659
|
super.reset(), this.buffers.clear(), this.glBuffers.clear();
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
let
|
|
1663
|
-
function
|
|
1664
|
-
return
|
|
1662
|
+
let Zt;
|
|
1663
|
+
function no() {
|
|
1664
|
+
return Zt || (Zt = "mediump"), Zt;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function lo(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 co(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 ho(r, e) {
|
|
1689
1689
|
return e ? `#version 300 es
|
|
1690
1690
|
${r}` : r;
|
|
1691
1691
|
}
|
|
1692
|
-
const
|
|
1693
|
-
function
|
|
1692
|
+
const uo = {}, fo = {};
|
|
1693
|
+
function po(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 ? uo : fo;
|
|
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 _o(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), Jt = {
|
|
1703
|
+
stripVersion: _o,
|
|
1704
|
+
ensurePrecision: co,
|
|
1705
|
+
addProgramDefines: lo,
|
|
1706
|
+
setProgramName: po,
|
|
1707
|
+
insertVersion: ho
|
|
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: no()
|
|
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(Jt).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 = Jt[a](t, n, !0), s = Jt[a](s, n, !1);
|
|
1741
|
+
}), this.fragment = t, this.vertex = s, this.transformFeedbackVaryings = e.transformFeedbackVaryings, this.id = oo(`${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 Lr = {
|
|
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 Nr = {
|
|
|
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 At(r) {
|
|
1784
|
+
return Lr[r] ?? Lr.float32;
|
|
1785
1785
|
}
|
|
1786
|
-
function
|
|
1786
|
+
function Qt(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 mo(r, e) {
|
|
1793
1793
|
switch (r) {
|
|
1794
1794
|
case "float":
|
|
1795
1795
|
return 0;
|
|
@@ -1819,11 +1819,11 @@ function ho(r, e) {
|
|
|
1819
1819
|
case "bool":
|
|
1820
1820
|
return !1;
|
|
1821
1821
|
case "bvec2":
|
|
1822
|
-
return
|
|
1822
|
+
return Qt(2 * e);
|
|
1823
1823
|
case "bvec3":
|
|
1824
|
-
return
|
|
1824
|
+
return Qt(3 * e);
|
|
1825
1825
|
case "bvec4":
|
|
1826
|
-
return
|
|
1826
|
+
return Qt(4 * e);
|
|
1827
1827
|
case "mat2":
|
|
1828
1828
|
return new Float32Array([1, 0, 0, 1]);
|
|
1829
1829
|
case "mat3":
|
|
@@ -1833,13 +1833,13 @@ function ho(r, e) {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
return 0;
|
|
1835
1835
|
}
|
|
1836
|
-
class
|
|
1836
|
+
class go {
|
|
1837
1837
|
constructor(e) {
|
|
1838
1838
|
this.native = e;
|
|
1839
1839
|
}
|
|
1840
1840
|
}
|
|
1841
|
-
let
|
|
1842
|
-
const
|
|
1841
|
+
let St;
|
|
1842
|
+
const Fr = {
|
|
1843
1843
|
FLOAT: "float",
|
|
1844
1844
|
FLOAT_VEC2: "vec2",
|
|
1845
1845
|
FLOAT_VEC3: "vec3",
|
|
@@ -1868,7 +1868,7 @@ const kr = {
|
|
|
1868
1868
|
SAMPLER_2D_ARRAY: "sampler2DArray",
|
|
1869
1869
|
INT_SAMPLER_2D_ARRAY: "sampler2DArray",
|
|
1870
1870
|
UNSIGNED_INT_SAMPLER_2D_ARRAY: "sampler2DArray"
|
|
1871
|
-
},
|
|
1871
|
+
}, vo = {
|
|
1872
1872
|
float: "float32",
|
|
1873
1873
|
vec2: "float32x2",
|
|
1874
1874
|
vec3: "float32x3",
|
|
@@ -1886,22 +1886,22 @@ const kr = {
|
|
|
1886
1886
|
bvec3: "uint32x3",
|
|
1887
1887
|
bvec4: "uint32x4"
|
|
1888
1888
|
};
|
|
1889
|
-
function
|
|
1890
|
-
if (!
|
|
1891
|
-
const t = Object.keys(
|
|
1892
|
-
|
|
1889
|
+
function ms(r, e) {
|
|
1890
|
+
if (!St) {
|
|
1891
|
+
const t = Object.keys(Fr);
|
|
1892
|
+
St = {};
|
|
1893
1893
|
for (let s = 0; s < t.length; ++s) {
|
|
1894
1894
|
const i = t[s];
|
|
1895
|
-
|
|
1895
|
+
St[r[i]] = Fr[i];
|
|
1896
1896
|
}
|
|
1897
1897
|
}
|
|
1898
|
-
return
|
|
1898
|
+
return St[e];
|
|
1899
1899
|
}
|
|
1900
|
-
function
|
|
1901
|
-
const t =
|
|
1902
|
-
return
|
|
1900
|
+
function bo(r, e) {
|
|
1901
|
+
const t = ms(r, e);
|
|
1902
|
+
return vo[t] || "float32";
|
|
1903
1903
|
}
|
|
1904
|
-
class
|
|
1904
|
+
class yo extends Z {
|
|
1905
1905
|
install(e) {
|
|
1906
1906
|
super.install(e), e.shader = this;
|
|
1907
1907
|
}
|
|
@@ -1922,7 +1922,7 @@ class _o 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 go(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 _o 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 = bo(t, f.type);
|
|
1936
1936
|
a[f.name] = {
|
|
1937
1937
|
location: 0,
|
|
1938
1938
|
format: m,
|
|
1939
|
-
stride:
|
|
1939
|
+
stride: At(m).stride,
|
|
1940
1940
|
offset: 0,
|
|
1941
1941
|
instance: !1,
|
|
1942
1942
|
start: 0
|
|
@@ -1957,14 +1957,14 @@ class _o 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 = ms(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: mo(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 xo(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 wo extends Z {
|
|
2138
2138
|
install(e) {
|
|
2139
2139
|
super.install(e), e.state = this;
|
|
2140
2140
|
}
|
|
@@ -2145,7 +2145,7 @@ class go 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 = xo(e);
|
|
2149
2149
|
}
|
|
2150
2150
|
toggle(e, t) {
|
|
2151
2151
|
this._renderer.gl[t ? "enable" : "disable"](e);
|
|
@@ -2192,7 +2192,7 @@ class go 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 Po extends Z {
|
|
2196
2196
|
install(e) {
|
|
2197
2197
|
super.install(e), e.batch2D = this;
|
|
2198
2198
|
}
|
|
@@ -2280,11 +2280,11 @@ ${Array.from({ length: e }, (l, c) => {
|
|
|
2280
2280
|
})
|
|
2281
2281
|
}, i = {
|
|
2282
2282
|
instanceId: rt(),
|
|
2283
|
-
usage:
|
|
2283
|
+
usage: be.vertex,
|
|
2284
2284
|
data: new Float32Array()
|
|
2285
2285
|
}, o = {
|
|
2286
2286
|
instanceId: rt(),
|
|
2287
|
-
usage:
|
|
2287
|
+
usage: be.index,
|
|
2288
2288
|
data: new Uint32Array()
|
|
2289
2289
|
}, a = {
|
|
2290
2290
|
instanceId: rt(),
|
|
@@ -2326,34 +2326,36 @@ ${Array.from({ length: e }, (l, c) => {
|
|
|
2326
2326
|
const d = [];
|
|
2327
2327
|
let f = 0;
|
|
2328
2328
|
for (let p = s.length, _ = { id: ++f }, g = [], v = /* @__PURE__ */ new Map(), w = 0, S = 0, O = 0; O < p; O++) {
|
|
2329
|
-
const k = s[O].texture,
|
|
2329
|
+
const k = s[O].texture, me = O === p - 1;
|
|
2330
2330
|
if (!k || v.has(k)) {
|
|
2331
|
-
if (!
|
|
2331
|
+
if (!me)
|
|
2332
2332
|
continue;
|
|
2333
2333
|
} else
|
|
2334
2334
|
g.push(k), v.set(k, w++);
|
|
2335
|
-
if (
|
|
2335
|
+
if (me || w >= i) {
|
|
2336
2336
|
_.textures = g, _.textureLocationMap = v, w = 0, _.start = u;
|
|
2337
|
-
for (let
|
|
2337
|
+
for (let ge = S; ge <= O; ge++) {
|
|
2338
2338
|
const {
|
|
2339
|
-
indices:
|
|
2340
|
-
vertices:
|
|
2341
|
-
uvs:
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2339
|
+
indices: Cr,
|
|
2340
|
+
vertices: Xt,
|
|
2341
|
+
uvs: Or = new Float32Array(0),
|
|
2342
|
+
size: Js = { width: 0, height: 0 },
|
|
2343
|
+
texture: Dr,
|
|
2344
|
+
blendMode: Ir = lt.normal,
|
|
2345
|
+
clipOutsideUv: Qs,
|
|
2346
|
+
roundPixels: ei
|
|
2347
|
+
} = s[ge];
|
|
2348
|
+
S < ge && _.blendMode !== Ir && (_.size = u - _.start, d.push(_), S = ge, _ = { id: ++f }, _.textures = g, _.start = u);
|
|
2349
|
+
const { width: jt, height: Wt } = Js, ti = c / this._vertexSize, ri = (Dr ? v.get(Dr) : 255) ?? 255, si = ei ? 1 : 0, ii = Qs ? 1 : 0;
|
|
2350
|
+
let xt, wt;
|
|
2351
|
+
for (let qt = Xt.length, Q = 0; Q < qt; Q += 2) {
|
|
2352
|
+
xt = Or[Q], wt = Or[Q + 1], jt > 0 && Wt > 0 && (xt = Math.ceil(xt * jt) / jt, wt = Math.ceil(wt * Wt) / Wt), a[c++] = Xt[Q], a[c++] = Xt[Q + 1], a[c++] = xt, a[c++] = wt;
|
|
2353
|
+
const Pt = c * 4;
|
|
2354
|
+
n[Pt] = ri, n[Pt + 1] = ii, n[Pt + 2] = si, n[Pt + 3] = 0, c++;
|
|
2353
2355
|
}
|
|
2354
|
-
for (let
|
|
2355
|
-
l[u++] =
|
|
2356
|
-
_.blendMode =
|
|
2356
|
+
for (let qt = Cr.length, Q = 0; Q < qt; Q++)
|
|
2357
|
+
l[u++] = ti + Cr[Q];
|
|
2358
|
+
_.blendMode = Ir;
|
|
2357
2359
|
}
|
|
2358
2360
|
S = O + 1, _.size = u - _.start, d.push(_), _ = { id: ++f }, g = [], v = /* @__PURE__ */ new Map();
|
|
2359
2361
|
}
|
|
@@ -2363,8 +2365,8 @@ ${Array.from({ length: e }, (l, c) => {
|
|
|
2363
2365
|
for (let p = d.length, _ = 0; _ < p; _++) {
|
|
2364
2366
|
const g = d[_], { start: v = 0, textures: w, textureLocationMap: S } = g;
|
|
2365
2367
|
for (let O = w.length, k = 0; k < O; k++) {
|
|
2366
|
-
const
|
|
2367
|
-
|
|
2368
|
+
const me = w[k], ge = S.get(me);
|
|
2369
|
+
ge !== void 0 && this._renderer.texture.bind(me, ge);
|
|
2368
2370
|
}
|
|
2369
2371
|
this._state.blendMode = g.blendMode, this._renderer.state.bind(this._state), m.draw({
|
|
2370
2372
|
size: g.size,
|
|
@@ -2373,29 +2375,29 @@ ${Array.from({ length: e }, (l, c) => {
|
|
|
2373
2375
|
}
|
|
2374
2376
|
}
|
|
2375
2377
|
_getBufferData(e) {
|
|
2376
|
-
const t =
|
|
2378
|
+
const t = zr(Math.ceil(e / 8)), s = Gr(t), i = t * 8;
|
|
2377
2379
|
this._attributeBuffer.length <= s && (this._indexBuffers.length = s + 1);
|
|
2378
2380
|
let o = this._attributeBuffer[i];
|
|
2379
2381
|
return o || (this._attributeBuffer[i] = o = new ArrayBuffer(i * this._vertexSize * 4)), o;
|
|
2380
2382
|
}
|
|
2381
2383
|
_getIndexBufferData(e) {
|
|
2382
|
-
const t =
|
|
2384
|
+
const t = zr(Math.ceil(e / 12)), s = Gr(t), i = t * 12;
|
|
2383
2385
|
this._indexBuffers.length <= s && (this._indexBuffers.length = s + 1);
|
|
2384
2386
|
let o = this._indexBuffers[s];
|
|
2385
2387
|
return o || (this._indexBuffers[s] = o = new Uint32Array(i)), o;
|
|
2386
2388
|
}
|
|
2387
2389
|
}
|
|
2388
|
-
function
|
|
2390
|
+
function zr(r) {
|
|
2389
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;
|
|
2390
2392
|
}
|
|
2391
|
-
function
|
|
2393
|
+
function Gr(r) {
|
|
2392
2394
|
let e = (r > 65535 ? 1 : 0) << 4;
|
|
2393
2395
|
r >>>= e;
|
|
2394
2396
|
let t = (r > 255 ? 1 : 0) << 3;
|
|
2395
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;
|
|
2396
2398
|
}
|
|
2397
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 || {});
|
|
2398
|
-
class
|
|
2400
|
+
class Eo extends Z {
|
|
2399
2401
|
install(e) {
|
|
2400
2402
|
super.install(e), e.mask = this;
|
|
2401
2403
|
}
|
|
@@ -2423,20 +2425,20 @@ class bo extends Z {
|
|
|
2423
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;
|
|
2424
2426
|
}
|
|
2425
2427
|
}
|
|
2426
|
-
var
|
|
2427
|
-
class
|
|
2428
|
+
var sr = /* @__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))(sr || {}), gs = /* @__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))(gs || {}), 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 So {
|
|
2428
2430
|
constructor(e) {
|
|
2429
2431
|
this.native = e;
|
|
2430
2432
|
}
|
|
2431
|
-
target =
|
|
2433
|
+
target = gs.TEXTURE_2D;
|
|
2432
2434
|
width = -1;
|
|
2433
2435
|
height = -1;
|
|
2434
2436
|
mipmap = !1;
|
|
2435
2437
|
type = y.UNSIGNED_BYTE;
|
|
2436
|
-
internalFormat =
|
|
2437
|
-
format =
|
|
2438
|
+
internalFormat = sr.RGBA;
|
|
2439
|
+
format = sr.RGBA;
|
|
2438
2440
|
}
|
|
2439
|
-
function
|
|
2441
|
+
function To(r) {
|
|
2440
2442
|
return {
|
|
2441
2443
|
// 8-bit formats
|
|
2442
2444
|
r8unorm: r.RED,
|
|
@@ -2489,7 +2491,7 @@ function xo(r) {
|
|
|
2489
2491
|
"depth32float-stencil8": r.DEPTH_STENCIL
|
|
2490
2492
|
};
|
|
2491
2493
|
}
|
|
2492
|
-
function
|
|
2494
|
+
function Ro(r, e) {
|
|
2493
2495
|
let t = {}, s = r.RGBA;
|
|
2494
2496
|
return r instanceof WebGLRenderingContext ? e.srgb && (t = {
|
|
2495
2497
|
"rgba8unorm-srgb": e.srgb.SRGB8_ALPHA8_EXT,
|
|
@@ -2613,7 +2615,7 @@ function wo(r, e) {
|
|
|
2613
2615
|
} : {}
|
|
2614
2616
|
};
|
|
2615
2617
|
}
|
|
2616
|
-
function
|
|
2618
|
+
function Ao(r) {
|
|
2617
2619
|
return {
|
|
2618
2620
|
// 8-bit formats
|
|
2619
2621
|
r8unorm: r.UNSIGNED_BYTE,
|
|
@@ -2666,7 +2668,7 @@ function Po(r) {
|
|
|
2666
2668
|
"depth32float-stencil8": r.FLOAT_32_UNSIGNED_INT_24_8_REV
|
|
2667
2669
|
};
|
|
2668
2670
|
}
|
|
2669
|
-
const
|
|
2671
|
+
const Co = {
|
|
2670
2672
|
linear: {
|
|
2671
2673
|
linear: 9987,
|
|
2672
2674
|
nearest: 9985
|
|
@@ -2675,10 +2677,10 @@ const Eo = {
|
|
|
2675
2677
|
linear: 9986,
|
|
2676
2678
|
nearest: 9984
|
|
2677
2679
|
}
|
|
2678
|
-
},
|
|
2680
|
+
}, Vr = {
|
|
2679
2681
|
linear: 9729,
|
|
2680
2682
|
nearest: 9728
|
|
2681
|
-
},
|
|
2683
|
+
}, Oo = {
|
|
2682
2684
|
never: 512,
|
|
2683
2685
|
less: 513,
|
|
2684
2686
|
equal: 514,
|
|
@@ -2687,12 +2689,12 @@ const Eo = {
|
|
|
2687
2689
|
"not-equal": 517,
|
|
2688
2690
|
"greater-equal": 518,
|
|
2689
2691
|
always: 519
|
|
2690
|
-
},
|
|
2692
|
+
}, er = {
|
|
2691
2693
|
"clamp-to-edge": 33071,
|
|
2692
2694
|
repeat: 10497,
|
|
2693
2695
|
"mirror-repeat": 33648
|
|
2694
2696
|
};
|
|
2695
|
-
function
|
|
2697
|
+
function Do(r, e, t, s, i, o, a, n) {
|
|
2696
2698
|
const {
|
|
2697
2699
|
addressModeU: l = "repeat",
|
|
2698
2700
|
addressModeV: c = "repeat",
|
|
@@ -2704,23 +2706,23 @@ function To(r, e, t, s, i, o, a, n) {
|
|
|
2704
2706
|
compare: _
|
|
2705
2707
|
} = r, g = o;
|
|
2706
2708
|
if (!n || l !== "repeat" || c !== "repeat" || u !== "repeat") {
|
|
2707
|
-
const v =
|
|
2709
|
+
const v = er[a ? "clamp-to-edge" : l], w = er[a ? "clamp-to-edge" : c], S = er[a ? "clamp-to-edge" : u];
|
|
2708
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);
|
|
2709
2711
|
}
|
|
2710
|
-
if ((!n || d !== "linear") && e[i](g, e.TEXTURE_MAG_FILTER,
|
|
2712
|
+
if ((!n || d !== "linear") && e[i](g, e.TEXTURE_MAG_FILTER, Vr[d]), t) {
|
|
2711
2713
|
if (!n || m !== "linear") {
|
|
2712
|
-
const v =
|
|
2714
|
+
const v = Co[f][m];
|
|
2713
2715
|
e[i](g, e.TEXTURE_MIN_FILTER, v);
|
|
2714
2716
|
}
|
|
2715
2717
|
} else
|
|
2716
|
-
e[i](g, e.TEXTURE_MIN_FILTER,
|
|
2718
|
+
e[i](g, e.TEXTURE_MIN_FILTER, Vr[f]);
|
|
2717
2719
|
if (s && p > 1) {
|
|
2718
2720
|
const v = Math.min(p, e.getParameter(s.MAX_TEXTURE_MAX_ANISOTROPY_EXT));
|
|
2719
2721
|
e[i](g, s.TEXTURE_MAX_ANISOTROPY_EXT, v);
|
|
2720
2722
|
}
|
|
2721
|
-
_ && e[i](g, e.TEXTURE_COMPARE_FUNC,
|
|
2723
|
+
_ && e[i](g, e.TEXTURE_COMPARE_FUNC, Oo[_]);
|
|
2722
2724
|
}
|
|
2723
|
-
const
|
|
2725
|
+
const Io = {
|
|
2724
2726
|
id: "buffer",
|
|
2725
2727
|
upload: (r, e, t) => {
|
|
2726
2728
|
e.width === r.width || e.height === r.height ? t.texSubImage2D(
|
|
@@ -2745,7 +2747,7 @@ const Ro = {
|
|
|
2745
2747
|
r.source
|
|
2746
2748
|
), e.width = r.width, e.height = r.height;
|
|
2747
2749
|
}
|
|
2748
|
-
},
|
|
2750
|
+
}, Mo = {
|
|
2749
2751
|
id: "image",
|
|
2750
2752
|
upload: (r, e, t, s) => {
|
|
2751
2753
|
const i = e.width, o = e.height, a = r.pixelWidth ?? r.width, n = r.pixelHeight ?? r.width, l = r.sourceWidth ?? a, c = r.sourceHeight ?? l;
|
|
@@ -2804,13 +2806,13 @@ const Ro = {
|
|
|
2804
2806
|
r.source
|
|
2805
2807
|
), e.width = a, e.height = n;
|
|
2806
2808
|
}
|
|
2807
|
-
},
|
|
2808
|
-
buffer:
|
|
2809
|
-
image:
|
|
2809
|
+
}, No = {
|
|
2810
|
+
buffer: Io,
|
|
2811
|
+
image: Mo
|
|
2810
2812
|
};
|
|
2811
|
-
class
|
|
2813
|
+
class ko extends Z {
|
|
2812
2814
|
uploaders = {
|
|
2813
|
-
...
|
|
2815
|
+
...No
|
|
2814
2816
|
};
|
|
2815
2817
|
textures = /* @__PURE__ */ new Map();
|
|
2816
2818
|
glTextures = /* @__PURE__ */ new Map();
|
|
@@ -2826,7 +2828,7 @@ class Oo extends Z {
|
|
|
2826
2828
|
super.install(e), e.texture = this;
|
|
2827
2829
|
}
|
|
2828
2830
|
onUpdateContext(e) {
|
|
2829
|
-
super.onUpdateContext(e), Object.keys(this._mapFormatToInternalFormat).length || (this._mapFormatToInternalFormat =
|
|
2831
|
+
super.onUpdateContext(e), Object.keys(this._mapFormatToInternalFormat).length || (this._mapFormatToInternalFormat = Ro(e, this._renderer.extensions), this._mapFormatToType = Ao(e), this._mapFormatToFormat = To(e)), this.maxTextureSize = e.getParameter(e.MAX_TEXTURE_SIZE), this.maxTextureImageUnits = e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);
|
|
2830
2832
|
for (let t = 0; t < this.maxTextureImageUnits; t++)
|
|
2831
2833
|
this.unbind(t);
|
|
2832
2834
|
}
|
|
@@ -2834,7 +2836,7 @@ class Oo extends Z {
|
|
|
2834
2836
|
return this.glTextures.get(e.instanceId) || this._createGlTexture(e);
|
|
2835
2837
|
}
|
|
2836
2838
|
_createGlTexture(e) {
|
|
2837
|
-
const t = this.gl, s = new
|
|
2839
|
+
const t = this.gl, s = new So(t.createTexture());
|
|
2838
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)) {
|
|
2839
2841
|
const i = Math.max(e.width, e.height);
|
|
2840
2842
|
e.mipLevelCount = Math.floor(Math.log2(i)) + 1;
|
|
@@ -2846,7 +2848,7 @@ class Oo extends Z {
|
|
|
2846
2848
|
case "pixelRatio":
|
|
2847
2849
|
case "alphaMode":
|
|
2848
2850
|
case "source":
|
|
2849
|
-
this.
|
|
2851
|
+
this.updateGpuTexture(e);
|
|
2850
2852
|
break;
|
|
2851
2853
|
case "addressModeU":
|
|
2852
2854
|
case "addressModeV":
|
|
@@ -2866,7 +2868,7 @@ class Oo extends Z {
|
|
|
2866
2868
|
}
|
|
2867
2869
|
}), e.on("destroy", () => {
|
|
2868
2870
|
this.textures.delete(e.instanceId), this._sourceUnload(e);
|
|
2869
|
-
})), this.textures.set(e.instanceId, e)), this.
|
|
2871
|
+
})), this.textures.set(e.instanceId, e)), this.updateGpuTexture(e), this.updateStyle(e), s;
|
|
2870
2872
|
}
|
|
2871
2873
|
bind(e, t = this._location) {
|
|
2872
2874
|
const s = this._gl, i = e ?? null;
|
|
@@ -2897,7 +2899,7 @@ class Oo extends Z {
|
|
|
2897
2899
|
}
|
|
2898
2900
|
updateStyle(e, t = !1) {
|
|
2899
2901
|
const s = this._gl;
|
|
2900
|
-
|
|
2902
|
+
Do(
|
|
2901
2903
|
e,
|
|
2902
2904
|
s,
|
|
2903
2905
|
e.mipLevelCount > 1,
|
|
@@ -2908,7 +2910,7 @@ class Oo extends Z {
|
|
|
2908
2910
|
t
|
|
2909
2911
|
);
|
|
2910
2912
|
}
|
|
2911
|
-
|
|
2913
|
+
updateGpuTexture(e) {
|
|
2912
2914
|
this.bind(e);
|
|
2913
2915
|
const t = this.getGlTexture(e), s = this._gl, i = e.alphaMode === "premultiply-alpha-on-upload";
|
|
2914
2916
|
this._premultiplyAlpha !== i && (this._premultiplyAlpha = i, s.pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL, i)), this.uploaders[e.uploadMethodId] ? this.uploaders[e.uploadMethodId].upload(
|
|
@@ -2937,7 +2939,7 @@ class Oo extends Z {
|
|
|
2937
2939
|
this._premultiplyAlpha = !1, e.pixelStorei(e.UNPACK_PREMULTIPLY_ALPHA_WEBGL, this._premultiplyAlpha);
|
|
2938
2940
|
}
|
|
2939
2941
|
}
|
|
2940
|
-
const
|
|
2942
|
+
const $r = {
|
|
2941
2943
|
uint8x2: y.UNSIGNED_BYTE,
|
|
2942
2944
|
uint8x4: y.UNSIGNED_BYTE,
|
|
2943
2945
|
sint8x2: y.BYTE,
|
|
@@ -2969,17 +2971,17 @@ const Fr = {
|
|
|
2969
2971
|
sint32x3: y.INT,
|
|
2970
2972
|
sint32x4: y.INT
|
|
2971
2973
|
};
|
|
2972
|
-
function
|
|
2973
|
-
return
|
|
2974
|
+
function Uo(r) {
|
|
2975
|
+
return $r[r] ?? $r.float32;
|
|
2974
2976
|
}
|
|
2975
|
-
const
|
|
2977
|
+
const Bo = {
|
|
2976
2978
|
"point-list": 0,
|
|
2977
2979
|
"line-list": 1,
|
|
2978
2980
|
"line-strip": 3,
|
|
2979
2981
|
"triangle-list": 4,
|
|
2980
2982
|
"triangle-strip": 5
|
|
2981
2983
|
};
|
|
2982
|
-
class
|
|
2984
|
+
class Lo extends Z {
|
|
2983
2985
|
_geometryVaoHash = {};
|
|
2984
2986
|
hasInstance = !1;
|
|
2985
2987
|
current = null;
|
|
@@ -3019,11 +3021,11 @@ class Mo extends Z {
|
|
|
3019
3021
|
}
|
|
3020
3022
|
for (const n in i) {
|
|
3021
3023
|
const l = i[n];
|
|
3022
|
-
o[l.buffer.instanceId] +=
|
|
3024
|
+
o[l.buffer.instanceId] += At(l.format).stride;
|
|
3023
3025
|
}
|
|
3024
3026
|
for (const n in i) {
|
|
3025
3027
|
const l = i[n];
|
|
3026
|
-
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] += At(l.format).stride;
|
|
3027
3029
|
}
|
|
3028
3030
|
}
|
|
3029
3031
|
_createVao(e, t) {
|
|
@@ -3056,7 +3058,7 @@ class Mo extends Z {
|
|
|
3056
3058
|
a !== u && (i.bind(c), a = u);
|
|
3057
3059
|
const f = d.location;
|
|
3058
3060
|
s.enableVertexAttribArray(f);
|
|
3059
|
-
const m =
|
|
3061
|
+
const m = At(l.format), p = Uo(l.format);
|
|
3060
3062
|
if (d.format?.substring(1, 4) === "int" ? s.vertexAttribIPointer(
|
|
3061
3063
|
f,
|
|
3062
3064
|
m.size,
|
|
@@ -3112,7 +3114,7 @@ class Mo extends Z {
|
|
|
3112
3114
|
if (!n)
|
|
3113
3115
|
return this;
|
|
3114
3116
|
t = t || n.topology || "triangle-list";
|
|
3115
|
-
const l =
|
|
3117
|
+
const l = Bo[t];
|
|
3116
3118
|
if (o = o || n.instanceCount || 1, n.indexBuffer) {
|
|
3117
3119
|
s = s || n.indexBuffer.data.length;
|
|
3118
3120
|
const c = n.indexBuffer.data.BYTES_PER_ELEMENT, u = c === 2 ? a.UNSIGNED_SHORT : a.UNSIGNED_INT;
|
|
@@ -3124,7 +3126,7 @@ class Mo extends Z {
|
|
|
3124
3126
|
super.reset(), this.current = null, this.currentVao = null;
|
|
3125
3127
|
}
|
|
3126
3128
|
}
|
|
3127
|
-
class
|
|
3129
|
+
class Fo extends Z {
|
|
3128
3130
|
install(e) {
|
|
3129
3131
|
super.install(e), e.colorMask = this;
|
|
3130
3132
|
}
|
|
@@ -3138,13 +3140,13 @@ class No extends Z {
|
|
|
3138
3140
|
));
|
|
3139
3141
|
}
|
|
3140
3142
|
}
|
|
3141
|
-
const
|
|
3142
|
-
|
|
3143
|
-
|
|
3143
|
+
const Ie = [];
|
|
3144
|
+
Ie[D.none] = {};
|
|
3145
|
+
Ie[D.disabled] = {
|
|
3144
3146
|
stencilWriteMask: 0,
|
|
3145
3147
|
stencilReadMask: 0
|
|
3146
3148
|
};
|
|
3147
|
-
|
|
3149
|
+
Ie[D.renderingMaskAdd] = {
|
|
3148
3150
|
stencilFront: {
|
|
3149
3151
|
compare: "equal",
|
|
3150
3152
|
passOp: "increment-clamp"
|
|
@@ -3154,7 +3156,7 @@ De[D.renderingMaskAdd] = {
|
|
|
3154
3156
|
passOp: "increment-clamp"
|
|
3155
3157
|
}
|
|
3156
3158
|
};
|
|
3157
|
-
|
|
3159
|
+
Ie[D.renderingMaskRemove] = {
|
|
3158
3160
|
stencilFront: {
|
|
3159
3161
|
compare: "equal",
|
|
3160
3162
|
passOp: "decrement-clamp"
|
|
@@ -3164,7 +3166,7 @@ De[D.renderingMaskRemove] = {
|
|
|
3164
3166
|
passOp: "decrement-clamp"
|
|
3165
3167
|
}
|
|
3166
3168
|
};
|
|
3167
|
-
|
|
3169
|
+
Ie[D.maskActive] = {
|
|
3168
3170
|
stencilWriteMask: 0,
|
|
3169
3171
|
stencilFront: {
|
|
3170
3172
|
compare: "equal",
|
|
@@ -3175,7 +3177,7 @@ De[D.maskActive] = {
|
|
|
3175
3177
|
passOp: "keep"
|
|
3176
3178
|
}
|
|
3177
3179
|
};
|
|
3178
|
-
|
|
3180
|
+
Ie[D.inverseMaskActive] = {
|
|
3179
3181
|
stencilWriteMask: 0,
|
|
3180
3182
|
stencilFront: {
|
|
3181
3183
|
compare: "not-equal",
|
|
@@ -3186,7 +3188,7 @@ De[D.inverseMaskActive] = {
|
|
|
3186
3188
|
passOp: "keep"
|
|
3187
3189
|
}
|
|
3188
3190
|
};
|
|
3189
|
-
class
|
|
3191
|
+
class zo extends Z {
|
|
3190
3192
|
install(e) {
|
|
3191
3193
|
super.install(e), e.stencil = this;
|
|
3192
3194
|
}
|
|
@@ -3236,7 +3238,7 @@ class ko extends Z {
|
|
|
3236
3238
|
const s = this._activeRenderTarget ? this.current[this._activeRenderTarget.instanceId] : {
|
|
3237
3239
|
stencilMode: D.disabled,
|
|
3238
3240
|
refCount: 0
|
|
3239
|
-
}, i = this._gl, o =
|
|
3241
|
+
}, i = this._gl, o = Ie[e], a = this._cache;
|
|
3240
3242
|
if (s.stencilMode = e, s.refCount = t, e === D.disabled) {
|
|
3241
3243
|
this._cache.enabled && (this._cache.enabled = !1, i.disable(i.STENCIL_TEST));
|
|
3242
3244
|
return;
|
|
@@ -3244,7 +3246,7 @@ class ko extends Z {
|
|
|
3244
3246
|
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])));
|
|
3245
3247
|
}
|
|
3246
3248
|
}
|
|
3247
|
-
class
|
|
3249
|
+
class Go extends Z {
|
|
3248
3250
|
current = new Fe(0, 0, 0, 0);
|
|
3249
3251
|
install(e) {
|
|
3250
3252
|
super.install(e), e.viewport = this;
|
|
@@ -3254,7 +3256,7 @@ class Uo extends Z {
|
|
|
3254
3256
|
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);
|
|
3255
3257
|
}
|
|
3256
3258
|
}
|
|
3257
|
-
class
|
|
3259
|
+
class Vo {
|
|
3258
3260
|
constructor(e) {
|
|
3259
3261
|
this.framebuffer = e;
|
|
3260
3262
|
}
|
|
@@ -3265,7 +3267,7 @@ class Bo {
|
|
|
3265
3267
|
msaaRenderBuffer = [];
|
|
3266
3268
|
depthStencilRenderBuffer;
|
|
3267
3269
|
}
|
|
3268
|
-
class
|
|
3270
|
+
class $o extends Z {
|
|
3269
3271
|
install(e) {
|
|
3270
3272
|
super.install(e), e.renderTarget = this;
|
|
3271
3273
|
}
|
|
@@ -3275,7 +3277,7 @@ class Lo extends Z {
|
|
|
3275
3277
|
_msaaSamples = [];
|
|
3276
3278
|
_hasMRT = !0;
|
|
3277
3279
|
_writeDepthTexture = !0;
|
|
3278
|
-
projectionMatrix = new
|
|
3280
|
+
projectionMatrix = new to();
|
|
3279
3281
|
onUpdateContext() {
|
|
3280
3282
|
if (this._hasMRT = !0, this._writeDepthTexture = !0, this._renderer.version === 1) {
|
|
3281
3283
|
const e = this._renderer.gl, t = this._renderer.extensions.drawBuffers, s = this._renderer.extensions.depthTexture;
|
|
@@ -3290,7 +3292,7 @@ class Lo extends Z {
|
|
|
3290
3292
|
const s = this._gl, i = this.current !== e;
|
|
3291
3293
|
if (this.current = e, e) {
|
|
3292
3294
|
const o = this.getGlRenderTarget(e), a = e.colorTextures[0], n = a.pixelWidth ?? a.width, l = a.pixelHeight ?? a.height, c = a.pixelRatio || 1;
|
|
3293
|
-
(n !== o.width || l !== o.height) &&
|
|
3295
|
+
(n !== o.width || l !== o.height) && this.resizeGpuRenderTarget(e), e.colorTextures.forEach((d) => {
|
|
3294
3296
|
this._renderer.texture.unbind(d);
|
|
3295
3297
|
}), s.bindFramebuffer(s.FRAMEBUFFER, o.framebuffer);
|
|
3296
3298
|
const u = { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -3314,11 +3316,15 @@ class Lo extends Z {
|
|
|
3314
3316
|
return this.glRenderTargets.get(e.instanceId) || this._createGlRenderTarget(e);
|
|
3315
3317
|
}
|
|
3316
3318
|
_createGlRenderTarget(e) {
|
|
3317
|
-
const t = this._gl, s = new
|
|
3319
|
+
const t = this._gl, s = new Vo(t.createFramebuffer());
|
|
3318
3320
|
return s.msaa = !!e.msaa, e.colorTextures.forEach((i) => {
|
|
3319
3321
|
this._renderer.texture.unbind(i);
|
|
3320
3322
|
}), 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) => {
|
|
3321
3323
|
switch (i) {
|
|
3324
|
+
case "width":
|
|
3325
|
+
case "height":
|
|
3326
|
+
this.resizeGpuRenderTarget(e);
|
|
3327
|
+
break;
|
|
3322
3328
|
case "msaa":
|
|
3323
3329
|
s.msaa = !!e.msaa, this._init(e);
|
|
3324
3330
|
break;
|
|
@@ -3361,10 +3367,8 @@ class Lo extends Z {
|
|
|
3361
3367
|
}), e.msaaRenderBuffer = [];
|
|
3362
3368
|
}
|
|
3363
3369
|
resizeGpuRenderTarget(e) {
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
const t = this.getGlRenderTarget(e);
|
|
3367
|
-
this._resizeColorTextures(e, t), (e.stencil || e.depth) && this._resizeStencil(t);
|
|
3370
|
+
const t = e.colorTextures[0], s = t.pixelWidth ?? t.width, i = t.pixelHeight ?? t.height, o = this.getGlRenderTarget(e);
|
|
3371
|
+
o.width = s, o.height = i, this._resizeColorTextures(e, o), (e.stencil || e.depth) && this._resizeStencil(o);
|
|
3368
3372
|
}
|
|
3369
3373
|
_initStencil(e) {
|
|
3370
3374
|
if (e.framebuffer === null)
|
|
@@ -3395,25 +3399,24 @@ class Lo extends Z {
|
|
|
3395
3399
|
);
|
|
3396
3400
|
}
|
|
3397
3401
|
_resizeColorTextures(e, t) {
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
n !== 0 && (a.width = i, a.height = o, a.pixelRatio = s.pixelRatio);
|
|
3402
|
+
if (e.colorTextures.forEach((s) => {
|
|
3403
|
+
s.pixelRatio = this._renderer.pixelRatio, s.width = e.width, s.height = e.height;
|
|
3401
3404
|
}), t.msaa) {
|
|
3402
|
-
const
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
const
|
|
3406
|
-
|
|
3407
|
-
|
|
3405
|
+
const s = this._renderer, i = s.gl;
|
|
3406
|
+
i.bindFramebuffer(i.FRAMEBUFFER, t.framebuffer2), e.colorTextures.forEach((o, a) => {
|
|
3407
|
+
s.texture.bind(o, 0);
|
|
3408
|
+
const l = s.texture.getGlTexture(o).internalFormat, c = t.msaaRenderBuffer[a];
|
|
3409
|
+
i.bindRenderbuffer(i.RENDERBUFFER, c), i.renderbufferStorageMultisample(
|
|
3410
|
+
i.RENDERBUFFER,
|
|
3408
3411
|
4,
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
),
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3412
|
+
l,
|
|
3413
|
+
t.width,
|
|
3414
|
+
t.height
|
|
3415
|
+
), i.framebufferRenderbuffer(
|
|
3416
|
+
i.FRAMEBUFFER,
|
|
3417
|
+
i.COLOR_ATTACHMENT0 + a,
|
|
3418
|
+
i.RENDERBUFFER,
|
|
3419
|
+
c
|
|
3417
3420
|
);
|
|
3418
3421
|
});
|
|
3419
3422
|
}
|
|
@@ -3454,20 +3457,20 @@ class Lo extends Z {
|
|
|
3454
3457
|
super.reset(), this.renderTargets.clear(), this.glRenderTargets.clear(), this.current = null, this._msaaSamples.length = 0;
|
|
3455
3458
|
}
|
|
3456
3459
|
}
|
|
3457
|
-
class
|
|
3460
|
+
class Ho extends _r {
|
|
3458
3461
|
contextLost = !1;
|
|
3459
3462
|
_systems = [
|
|
3460
|
-
new Oo(),
|
|
3461
|
-
new to(),
|
|
3462
|
-
new _o(),
|
|
3463
|
-
new Mo(),
|
|
3464
|
-
new Lo(),
|
|
3465
|
-
new go(),
|
|
3466
|
-
new bo(),
|
|
3467
|
-
new No(),
|
|
3468
3463
|
new ko(),
|
|
3469
|
-
new
|
|
3470
|
-
new
|
|
3464
|
+
new ao(),
|
|
3465
|
+
new yo(),
|
|
3466
|
+
new Lo(),
|
|
3467
|
+
new $o(),
|
|
3468
|
+
new wo(),
|
|
3469
|
+
new Eo(),
|
|
3470
|
+
new Fo(),
|
|
3471
|
+
new zo(),
|
|
3472
|
+
new Po(),
|
|
3473
|
+
new Go()
|
|
3471
3474
|
];
|
|
3472
3475
|
bindPoints = /* @__PURE__ */ new Map();
|
|
3473
3476
|
supports = {
|
|
@@ -3479,10 +3482,10 @@ class Fo extends ur {
|
|
|
3479
3482
|
msaa: !0,
|
|
3480
3483
|
nonPowOf2mipmaps: !0
|
|
3481
3484
|
};
|
|
3482
|
-
constructor(e =
|
|
3485
|
+
constructor(e = Vi(), t) {
|
|
3483
3486
|
if (super(), !e)
|
|
3484
3487
|
throw new Error("Failed to createHTMLCanvas");
|
|
3485
|
-
|
|
3488
|
+
zi(e) ? this._setupContext(e, t) : (this.gl = e, this.version = Gi(this.gl) ? 2 : 1), this._setupBindPoints()._setupExtensions()._setupPolyfill()._setupSupports(), this._systems.forEach((s) => s.install(this)), this._systems.forEach((s) => s.onUpdateContext(this.gl));
|
|
3486
3489
|
}
|
|
3487
3490
|
_setupContext(e, t) {
|
|
3488
3491
|
this.view = e;
|
|
@@ -3592,9 +3595,9 @@ class Fo extends ur {
|
|
|
3592
3595
|
return c;
|
|
3593
3596
|
}
|
|
3594
3597
|
}
|
|
3595
|
-
class
|
|
3598
|
+
class Me {
|
|
3596
3599
|
}
|
|
3597
|
-
class
|
|
3600
|
+
class Xo extends Me {
|
|
3598
3601
|
install(e) {
|
|
3599
3602
|
const t = async (s) => {
|
|
3600
3603
|
const { parseFont: i } = await import("modern-font");
|
|
@@ -3609,28 +3612,28 @@ class zo extends Ie {
|
|
|
3609
3612
|
}), e.font = this, this;
|
|
3610
3613
|
}
|
|
3611
3614
|
}
|
|
3612
|
-
var
|
|
3615
|
+
var jo = Object.defineProperty, vs = (r, e, t, s) => {
|
|
3613
3616
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3614
3617
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3615
|
-
return i &&
|
|
3618
|
+
return i && jo(e, t, i), i;
|
|
3616
3619
|
};
|
|
3617
3620
|
class We extends he {
|
|
3618
3621
|
constructor(e) {
|
|
3619
3622
|
super(), this.setProperties(e);
|
|
3620
3623
|
}
|
|
3621
3624
|
}
|
|
3622
|
-
|
|
3623
|
-
h({ fallback:
|
|
3625
|
+
vs([
|
|
3626
|
+
h({ fallback: be.index })
|
|
3624
3627
|
], We.prototype, "usage");
|
|
3625
|
-
|
|
3628
|
+
vs([
|
|
3626
3629
|
h({ default: () => new Uint32Array() })
|
|
3627
3630
|
], We.prototype, "data");
|
|
3628
|
-
var
|
|
3631
|
+
var Wo = Object.defineProperty, Ft = (r, e, t, s) => {
|
|
3629
3632
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3630
3633
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3631
|
-
return i &&
|
|
3634
|
+
return i && Wo(e, t, i), i;
|
|
3632
3635
|
};
|
|
3633
|
-
class
|
|
3636
|
+
class Ne extends he {
|
|
3634
3637
|
constructor(e = {}) {
|
|
3635
3638
|
super(), this.setProperties(e);
|
|
3636
3639
|
}
|
|
@@ -3638,73 +3641,73 @@ class Me extends he {
|
|
|
3638
3641
|
e.flush(), t.activate(e, s), e.geometry.bind(this, t.glProgram), e.geometry.draw(), e.geometry.unbind();
|
|
3639
3642
|
}
|
|
3640
3643
|
}
|
|
3641
|
-
|
|
3644
|
+
Ft([
|
|
3642
3645
|
h({ fallback: "triangle-list" })
|
|
3643
|
-
],
|
|
3644
|
-
|
|
3646
|
+
], Ne.prototype, "topology");
|
|
3647
|
+
Ft([
|
|
3645
3648
|
h({ default: () => ({}) })
|
|
3646
|
-
],
|
|
3647
|
-
|
|
3649
|
+
], Ne.prototype, "attributes");
|
|
3650
|
+
Ft([
|
|
3648
3651
|
h({ default: () => new We() })
|
|
3649
|
-
],
|
|
3650
|
-
|
|
3652
|
+
], Ne.prototype, "indexBuffer");
|
|
3653
|
+
Ft([
|
|
3651
3654
|
h({ fallback: 1 })
|
|
3652
|
-
],
|
|
3653
|
-
var
|
|
3655
|
+
], Ne.prototype, "instanceCount");
|
|
3656
|
+
var qo = Object.defineProperty, bs = (r, e, t, s) => {
|
|
3654
3657
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3655
3658
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3656
|
-
return i &&
|
|
3659
|
+
return i && qo(e, t, i), i;
|
|
3657
3660
|
};
|
|
3658
|
-
class
|
|
3661
|
+
class ye extends he {
|
|
3659
3662
|
constructor(e) {
|
|
3660
3663
|
super(), this.setProperties(e);
|
|
3661
3664
|
}
|
|
3662
3665
|
}
|
|
3663
|
-
|
|
3664
|
-
h({ fallback:
|
|
3665
|
-
],
|
|
3666
|
-
|
|
3666
|
+
bs([
|
|
3667
|
+
h({ fallback: be.vertex })
|
|
3668
|
+
], ye.prototype, "usage");
|
|
3669
|
+
bs([
|
|
3667
3670
|
h({ default: () => new Float32Array() })
|
|
3668
|
-
],
|
|
3669
|
-
var
|
|
3671
|
+
], ye.prototype, "data");
|
|
3672
|
+
var Yo = Object.defineProperty, ke = (r, e, t, s) => {
|
|
3670
3673
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3671
3674
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3672
|
-
return i &&
|
|
3675
|
+
return i && Yo(e, t, i), i;
|
|
3673
3676
|
};
|
|
3674
3677
|
class H extends he {
|
|
3675
3678
|
constructor(e) {
|
|
3676
3679
|
super(), this.setProperties(e);
|
|
3677
3680
|
}
|
|
3678
3681
|
}
|
|
3679
|
-
|
|
3680
|
-
h({ default: () => new
|
|
3682
|
+
ke([
|
|
3683
|
+
h({ default: () => new ye() })
|
|
3681
3684
|
], H.prototype, "buffer");
|
|
3682
|
-
|
|
3685
|
+
ke([
|
|
3683
3686
|
h({ fallback: "float32" })
|
|
3684
3687
|
], H.prototype, "format");
|
|
3685
|
-
|
|
3688
|
+
ke([
|
|
3686
3689
|
h()
|
|
3687
3690
|
], H.prototype, "instance");
|
|
3688
|
-
|
|
3691
|
+
ke([
|
|
3689
3692
|
h()
|
|
3690
3693
|
], H.prototype, "stride");
|
|
3691
|
-
|
|
3694
|
+
ke([
|
|
3692
3695
|
h()
|
|
3693
3696
|
], H.prototype, "offset");
|
|
3694
|
-
|
|
3697
|
+
ke([
|
|
3695
3698
|
h()
|
|
3696
3699
|
], H.prototype, "start");
|
|
3697
|
-
|
|
3700
|
+
ke([
|
|
3698
3701
|
h()
|
|
3699
3702
|
], H.prototype, "divisor");
|
|
3700
|
-
class
|
|
3703
|
+
class mc extends Ne {
|
|
3701
3704
|
constructor() {
|
|
3702
3705
|
super({
|
|
3703
3706
|
topology: "triangle-strip",
|
|
3704
3707
|
attributes: {
|
|
3705
3708
|
position: new H({
|
|
3706
3709
|
format: "float32x2",
|
|
3707
|
-
buffer: new
|
|
3710
|
+
buffer: new ye({
|
|
3708
3711
|
data: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1])
|
|
3709
3712
|
})
|
|
3710
3713
|
})
|
|
@@ -3715,12 +3718,12 @@ class uc extends Me {
|
|
|
3715
3718
|
});
|
|
3716
3719
|
}
|
|
3717
3720
|
}
|
|
3718
|
-
var
|
|
3721
|
+
var Ko = Object.defineProperty, Zo = (r, e, t, s) => {
|
|
3719
3722
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3720
3723
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3721
|
-
return i &&
|
|
3724
|
+
return i && Ko(e, t, i), i;
|
|
3722
3725
|
};
|
|
3723
|
-
function
|
|
3726
|
+
function Jo() {
|
|
3724
3727
|
return {
|
|
3725
3728
|
projectionMatrix: new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]),
|
|
3726
3729
|
modelViewMatrix: new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]),
|
|
@@ -3754,13 +3757,13 @@ void main(void) {
|
|
|
3754
3757
|
}, e.shader.updateUniforms(this);
|
|
3755
3758
|
}
|
|
3756
3759
|
}
|
|
3757
|
-
|
|
3758
|
-
h({ default:
|
|
3760
|
+
Zo([
|
|
3761
|
+
h({ default: Jo })
|
|
3759
3762
|
], E.prototype, "uniforms");
|
|
3760
|
-
const
|
|
3761
|
-
function
|
|
3763
|
+
const Qo = /^uniform \w+ (.+?);\s*\/\/\s*=\s*([^;]+?)[\s;]*$/gm, ea = /vec(\d)\((.*)\)/;
|
|
3764
|
+
function ta(r) {
|
|
3762
3765
|
r = r.trim();
|
|
3763
|
-
const e = r.match(
|
|
3766
|
+
const e = r.match(ea);
|
|
3764
3767
|
if (e) {
|
|
3765
3768
|
const t = Array.from({ length: Number(e[1]) }, () => 0);
|
|
3766
3769
|
return e[2].split(",").forEach((s, i) => {
|
|
@@ -3769,7 +3772,7 @@ function Ko(r) {
|
|
|
3769
3772
|
}
|
|
3770
3773
|
return Number(r);
|
|
3771
3774
|
}
|
|
3772
|
-
class
|
|
3775
|
+
class Ct extends E {
|
|
3773
3776
|
static RE = {
|
|
3774
3777
|
getColor: /\sgetColor\s*\(/,
|
|
3775
3778
|
getFromColor: /\sgetFromColor\s*\(/,
|
|
@@ -3786,8 +3789,8 @@ class Rt extends E {
|
|
|
3786
3789
|
transform: !1,
|
|
3787
3790
|
transition: !1
|
|
3788
3791
|
};
|
|
3789
|
-
for (const i in
|
|
3790
|
-
t[i] =
|
|
3792
|
+
for (const i in Ct.RE)
|
|
3793
|
+
t[i] = Ct.RE[i].test(e);
|
|
3791
3794
|
super({
|
|
3792
3795
|
gl: {
|
|
3793
3796
|
vertex: `attribute vec2 position;
|
|
@@ -3819,14 +3822,14 @@ void main(void) { gl_FragColor = transition(vUv); }` : ""}`
|
|
|
3819
3822
|
progress: 0
|
|
3820
3823
|
}
|
|
3821
3824
|
}), this.has = t;
|
|
3822
|
-
const s = e.matchAll(
|
|
3825
|
+
const s = e.matchAll(Qo);
|
|
3823
3826
|
for (const i of s)
|
|
3824
3827
|
i[1] && i[2] && i[1].split(",").forEach((o) => {
|
|
3825
|
-
this.uniforms[o.trim()] =
|
|
3828
|
+
this.uniforms[o.trim()] = ta(i[2]);
|
|
3826
3829
|
});
|
|
3827
3830
|
}
|
|
3828
3831
|
}
|
|
3829
|
-
class
|
|
3832
|
+
class Ot extends E {
|
|
3830
3833
|
static _instance;
|
|
3831
3834
|
static get instance() {
|
|
3832
3835
|
return this._instance ??= new this();
|
|
@@ -3859,12 +3862,12 @@ void main(void) {
|
|
|
3859
3862
|
});
|
|
3860
3863
|
}
|
|
3861
3864
|
}
|
|
3862
|
-
class P extends
|
|
3865
|
+
class P extends Ne {
|
|
3863
3866
|
static _instance;
|
|
3864
3867
|
static get instance() {
|
|
3865
3868
|
return this._instance ??= new this();
|
|
3866
3869
|
}
|
|
3867
|
-
static draw(e, t =
|
|
3870
|
+
static draw(e, t = Ot.instance, s) {
|
|
3868
3871
|
this.instance.draw(e, t, s);
|
|
3869
3872
|
}
|
|
3870
3873
|
constructor() {
|
|
@@ -3872,13 +3875,13 @@ class P extends Me {
|
|
|
3872
3875
|
attributes: {
|
|
3873
3876
|
position: new H({
|
|
3874
3877
|
format: "float32x2",
|
|
3875
|
-
buffer: new
|
|
3878
|
+
buffer: new ye({
|
|
3876
3879
|
data: new Float32Array([-1, -1, 1, -1, 1, 1, -1, 1])
|
|
3877
3880
|
})
|
|
3878
3881
|
}),
|
|
3879
3882
|
uv: new H({
|
|
3880
3883
|
format: "float32x2",
|
|
3881
|
-
buffer: new
|
|
3884
|
+
buffer: new ye({
|
|
3882
3885
|
data: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1])
|
|
3883
3886
|
})
|
|
3884
3887
|
})
|
|
@@ -3889,11 +3892,11 @@ class P extends Me {
|
|
|
3889
3892
|
});
|
|
3890
3893
|
}
|
|
3891
3894
|
}
|
|
3892
|
-
class
|
|
3895
|
+
class gc extends Ne {
|
|
3893
3896
|
positionBuffer;
|
|
3894
3897
|
uvBuffer;
|
|
3895
3898
|
constructor(e) {
|
|
3896
|
-
const t = new
|
|
3899
|
+
const t = new ye({ data: new Float32Array() }), s = new ye({ data: new Float32Array() });
|
|
3897
3900
|
super({
|
|
3898
3901
|
...e,
|
|
3899
3902
|
attributes: {
|
|
@@ -3910,10 +3913,10 @@ class dc extends Me {
|
|
|
3910
3913
|
}), this.positionBuffer = t, this.uvBuffer = s;
|
|
3911
3914
|
}
|
|
3912
3915
|
}
|
|
3913
|
-
var
|
|
3914
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
3916
|
+
var ra = Object.defineProperty, sa = Object.getOwnPropertyDescriptor, ue = (r, e, t, s) => {
|
|
3917
|
+
for (var i = s > 1 ? void 0 : s ? sa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
3915
3918
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
3916
|
-
return s && i &&
|
|
3919
|
+
return s && i && ra(e, t, i), i;
|
|
3917
3920
|
};
|
|
3918
3921
|
let X = class extends he {
|
|
3919
3922
|
get valid() {
|
|
@@ -3922,19 +3925,6 @@ let X = class extends he {
|
|
|
3922
3925
|
get colorTexture() {
|
|
3923
3926
|
return this.colorTextures[0];
|
|
3924
3927
|
}
|
|
3925
|
-
_updateProperty(r, e, t) {
|
|
3926
|
-
switch (super._updateProperty(r, e, t), r) {
|
|
3927
|
-
case "width":
|
|
3928
|
-
case "height":
|
|
3929
|
-
this.colorTextures.forEach((s) => {
|
|
3930
|
-
s.width = this.width, s.height = this.height;
|
|
3931
|
-
});
|
|
3932
|
-
break;
|
|
3933
|
-
}
|
|
3934
|
-
}
|
|
3935
|
-
resize(r, e) {
|
|
3936
|
-
this.width = r, this.height = e;
|
|
3937
|
-
}
|
|
3938
3928
|
activate(r, e) {
|
|
3939
3929
|
return this.valid ? (r.renderTarget.bind(this, e), !0) : !1;
|
|
3940
3930
|
}
|
|
@@ -3966,10 +3956,10 @@ ue([
|
|
|
3966
3956
|
X = ue([
|
|
3967
3957
|
b("RenderTarget")
|
|
3968
3958
|
], X);
|
|
3969
|
-
var
|
|
3959
|
+
var ia = Object.defineProperty, N = (r, e, t, s) => {
|
|
3970
3960
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
3971
3961
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
3972
|
-
return i &&
|
|
3962
|
+
return i && ia(e, t, i), i;
|
|
3973
3963
|
};
|
|
3974
3964
|
class x extends he {
|
|
3975
3965
|
static get EMPTY() {
|
|
@@ -4018,7 +4008,7 @@ class x extends he {
|
|
|
4018
4008
|
switch (super._updateProperty(e, t, s), e) {
|
|
4019
4009
|
case "width":
|
|
4020
4010
|
case "height":
|
|
4021
|
-
this.isPowerOfTwo =
|
|
4011
|
+
this.isPowerOfTwo = kr(this.pixelWidth) && kr(this.pixelHeight);
|
|
4022
4012
|
break;
|
|
4023
4013
|
case "source":
|
|
4024
4014
|
this.updateSize();
|
|
@@ -4035,7 +4025,7 @@ class x extends he {
|
|
|
4035
4025
|
e.texture.unbind(this);
|
|
4036
4026
|
}
|
|
4037
4027
|
destroy() {
|
|
4038
|
-
super.destroy(),
|
|
4028
|
+
super.destroy(), Ii && this.source instanceof ImageBitmap && this.source.close();
|
|
4039
4029
|
}
|
|
4040
4030
|
}
|
|
4041
4031
|
N([
|
|
@@ -4086,7 +4076,7 @@ N([
|
|
|
4086
4076
|
N([
|
|
4087
4077
|
h({ fallback: !1 })
|
|
4088
4078
|
], x.prototype, "isPowerOfTwo");
|
|
4089
|
-
class
|
|
4079
|
+
class oa extends he {
|
|
4090
4080
|
frames;
|
|
4091
4081
|
frameIndex = 0;
|
|
4092
4082
|
get currentFrame() {
|
|
@@ -4112,7 +4102,7 @@ class ea extends he {
|
|
|
4112
4102
|
});
|
|
4113
4103
|
}
|
|
4114
4104
|
}
|
|
4115
|
-
class
|
|
4105
|
+
class ys extends x {
|
|
4116
4106
|
constructor(e = {}) {
|
|
4117
4107
|
super({
|
|
4118
4108
|
pixelRatio: 2,
|
|
@@ -4133,12 +4123,12 @@ class ms extends x {
|
|
|
4133
4123
|
super._updateProperty(e, t, s);
|
|
4134
4124
|
}
|
|
4135
4125
|
}
|
|
4136
|
-
class
|
|
4126
|
+
class mr extends x {
|
|
4137
4127
|
static _cached = /* @__PURE__ */ new Map();
|
|
4138
4128
|
static get(e) {
|
|
4139
4129
|
const t = new oe(e), s = t.toHex();
|
|
4140
4130
|
let i = this._cached.get(s);
|
|
4141
|
-
return i || (i = new
|
|
4131
|
+
return i || (i = new mr(t), this._cached.set(s, i)), i;
|
|
4142
4132
|
}
|
|
4143
4133
|
constructor(e) {
|
|
4144
4134
|
const t = e instanceof oe ? e : new oe(e);
|
|
@@ -4151,9 +4141,9 @@ class dr extends x {
|
|
|
4151
4141
|
});
|
|
4152
4142
|
}
|
|
4153
4143
|
}
|
|
4154
|
-
class
|
|
4144
|
+
class zt extends x {
|
|
4155
4145
|
static test(e) {
|
|
4156
|
-
return
|
|
4146
|
+
return ai(e);
|
|
4157
4147
|
}
|
|
4158
4148
|
static linearGradient(e, t, s) {
|
|
4159
4149
|
t = t || 1, s = s || 1;
|
|
@@ -4163,7 +4153,7 @@ class Lt extends x {
|
|
|
4163
4153
|
if (!o)
|
|
4164
4154
|
throw new Error("Failed to parse linear gradient, get canvas context is null.");
|
|
4165
4155
|
const { angle: a = 0, stops: n } = e, l = t, c = s, u = l / 2, d = c / 2, f = (a + 90) * Math.PI / 180, m = Math.sin(f), p = -Math.cos(f), _ = Math.abs(l * Math.sin(f)) + Math.abs(c * Math.cos(f)), g = u - m * (_ / 2), v = d - p * (_ / 2), w = u + m * (_ / 2), S = d + p * (_ / 2), O = o.createLinearGradient(g, v, w, S);
|
|
4166
|
-
for (const
|
|
4156
|
+
for (const me of n) O.addColorStop(me.offset, me.color);
|
|
4167
4157
|
o.fillStyle = O, o.fillRect(0, 0, l, c);
|
|
4168
4158
|
const k = o.getImageData(0, 0, i.width, i.height);
|
|
4169
4159
|
return {
|
|
@@ -4175,11 +4165,11 @@ class Lt extends x {
|
|
|
4175
4165
|
}
|
|
4176
4166
|
constructor(e, t, s) {
|
|
4177
4167
|
super(
|
|
4178
|
-
|
|
4168
|
+
zt.linearGradient(e, t, s)
|
|
4179
4169
|
);
|
|
4180
4170
|
}
|
|
4181
4171
|
}
|
|
4182
|
-
class
|
|
4172
|
+
class aa extends x {
|
|
4183
4173
|
constructor(e = {}) {
|
|
4184
4174
|
super({
|
|
4185
4175
|
...e,
|
|
@@ -4187,12 +4177,12 @@ class ta extends x {
|
|
|
4187
4177
|
});
|
|
4188
4178
|
}
|
|
4189
4179
|
}
|
|
4190
|
-
var
|
|
4180
|
+
var na = Object.defineProperty, xs = (r, e, t, s) => {
|
|
4191
4181
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
4192
4182
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
4193
|
-
return i &&
|
|
4183
|
+
return i && na(e, t, i), i;
|
|
4194
4184
|
};
|
|
4195
|
-
function
|
|
4185
|
+
function la(r) {
|
|
4196
4186
|
return {
|
|
4197
4187
|
autoLoad: !!(r?.autoLoad ?? !0),
|
|
4198
4188
|
autoPlay: !!(r?.autoPlay ?? !1),
|
|
@@ -4203,7 +4193,7 @@ function sa(r) {
|
|
|
4203
4193
|
playsinline: !!(r?.playsinline ?? !0)
|
|
4204
4194
|
};
|
|
4205
4195
|
}
|
|
4206
|
-
const
|
|
4196
|
+
const gr = class ws extends x {
|
|
4207
4197
|
static mimeTypes = new Map(Object.entries({
|
|
4208
4198
|
ogv: "video/ogg",
|
|
4209
4199
|
mov: "video/quicktime",
|
|
@@ -4236,18 +4226,18 @@ const fr = class vs extends x {
|
|
|
4236
4226
|
_resolve;
|
|
4237
4227
|
_reject;
|
|
4238
4228
|
constructor(e, t) {
|
|
4239
|
-
const s =
|
|
4240
|
-
if (!
|
|
4229
|
+
const s = la(t);
|
|
4230
|
+
if (!Fi(e)) {
|
|
4241
4231
|
typeof e == "string" && (e = [e]);
|
|
4242
4232
|
const i = e[0].src || e[0], o = document.createElement("video");
|
|
4243
|
-
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", ""),
|
|
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", ""), Hi(o, i, s.crossorigin);
|
|
4244
4234
|
for (let a = 0; a < e.length; ++a) {
|
|
4245
4235
|
let { src: n, mime: l } = e[a];
|
|
4246
4236
|
if (n = n || e[a], n.startsWith("data:"))
|
|
4247
4237
|
l = n.slice(5, n.indexOf(";"));
|
|
4248
4238
|
else if (!n.startsWith("blob:")) {
|
|
4249
4239
|
const u = n.split("?").shift().toLowerCase(), d = u.slice(u.lastIndexOf(".") + 1);
|
|
4250
|
-
l = l ||
|
|
4240
|
+
l = l || ws.mimeTypes.get(d) || `video/${d}`;
|
|
4251
4241
|
}
|
|
4252
4242
|
const c = document.createElement("source");
|
|
4253
4243
|
c.src = n, l && (c.type = l), o.appendChild(c);
|
|
@@ -4312,17 +4302,17 @@ const fr = class vs extends x {
|
|
|
4312
4302
|
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());
|
|
4313
4303
|
}
|
|
4314
4304
|
};
|
|
4315
|
-
|
|
4305
|
+
xs([
|
|
4316
4306
|
h({ internal: !0, fallback: !0 })
|
|
4317
|
-
],
|
|
4318
|
-
|
|
4307
|
+
], gr.prototype, "autoUpdate");
|
|
4308
|
+
xs([
|
|
4319
4309
|
h({ internal: !0, fallback: 0 })
|
|
4320
|
-
],
|
|
4321
|
-
let
|
|
4322
|
-
class
|
|
4310
|
+
], gr.prototype, "fps");
|
|
4311
|
+
let ca = gr;
|
|
4312
|
+
class vr extends x {
|
|
4323
4313
|
//
|
|
4324
4314
|
}
|
|
4325
|
-
class
|
|
4315
|
+
class ha extends Rt {
|
|
4326
4316
|
fillStyle;
|
|
4327
4317
|
strokeStyle;
|
|
4328
4318
|
strokeAlignment;
|
|
@@ -4338,7 +4328,7 @@ class oa extends St {
|
|
|
4338
4328
|
return e ? e instanceof x ? {
|
|
4339
4329
|
texture: e
|
|
4340
4330
|
} : {
|
|
4341
|
-
texture:
|
|
4331
|
+
texture: mr.get(e)
|
|
4342
4332
|
} : {};
|
|
4343
4333
|
}
|
|
4344
4334
|
stroke(e) {
|
|
@@ -4351,14 +4341,14 @@ class oa extends St {
|
|
|
4351
4341
|
t = this.style.stroke;
|
|
4352
4342
|
break;
|
|
4353
4343
|
case "object":
|
|
4354
|
-
|
|
4344
|
+
Mr(this.style.stroke) && (t = this.style.stroke.color);
|
|
4355
4345
|
break;
|
|
4356
4346
|
}
|
|
4357
4347
|
this._draws.push({
|
|
4358
4348
|
...e,
|
|
4359
4349
|
...this._parseDrawStyle(t),
|
|
4360
4350
|
type: "stroke",
|
|
4361
|
-
path: new
|
|
4351
|
+
path: new Rt(this),
|
|
4362
4352
|
transformUv: this.transformUv,
|
|
4363
4353
|
transformVertex: this.transformVertex,
|
|
4364
4354
|
lineStyle: {
|
|
@@ -4386,7 +4376,7 @@ class oa extends St {
|
|
|
4386
4376
|
t = this.style.fill;
|
|
4387
4377
|
break;
|
|
4388
4378
|
case "object":
|
|
4389
|
-
|
|
4379
|
+
Mr(this.style.fill) && (t = this.style.fill.color);
|
|
4390
4380
|
break;
|
|
4391
4381
|
}
|
|
4392
4382
|
this._draws.push({
|
|
@@ -4395,7 +4385,7 @@ class oa extends St {
|
|
|
4395
4385
|
...e,
|
|
4396
4386
|
...this._parseDrawStyle(t),
|
|
4397
4387
|
type: "fill",
|
|
4398
|
-
path: new
|
|
4388
|
+
path: new Rt(this)
|
|
4399
4389
|
}), this.resetStatus();
|
|
4400
4390
|
}
|
|
4401
4391
|
copy(e) {
|
|
@@ -4429,7 +4419,7 @@ class oa extends St {
|
|
|
4429
4419
|
return e;
|
|
4430
4420
|
}
|
|
4431
4421
|
}
|
|
4432
|
-
class
|
|
4422
|
+
class ua {
|
|
4433
4423
|
front = [];
|
|
4434
4424
|
default = [];
|
|
4435
4425
|
back = [];
|
|
@@ -4477,7 +4467,7 @@ class aa {
|
|
|
4477
4467
|
return [...this.default];
|
|
4478
4468
|
}
|
|
4479
4469
|
}
|
|
4480
|
-
class
|
|
4470
|
+
class da extends Pe {
|
|
4481
4471
|
constructor(e) {
|
|
4482
4472
|
return super(), this.parent = e, new Proxy(this, {
|
|
4483
4473
|
get: (t, s, i) => Reflect.has(t, s) || String(s).startsWith("_") ? Reflect.get(t, s, i) : t.getProperty(String(s)),
|
|
@@ -4497,18 +4487,18 @@ class na extends we {
|
|
|
4497
4487
|
return { internalKey: `____${e}` };
|
|
4498
4488
|
}
|
|
4499
4489
|
}
|
|
4500
|
-
var
|
|
4501
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4490
|
+
var fa = Object.defineProperty, pa = Object.getOwnPropertyDescriptor, de = (r, e, t, s) => {
|
|
4491
|
+
for (var i = s > 1 ? void 0 : s ? pa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4502
4492
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4503
|
-
return s && i &&
|
|
4493
|
+
return s && i && fa(e, t, i), i;
|
|
4504
4494
|
};
|
|
4505
|
-
const
|
|
4506
|
-
function
|
|
4507
|
-
let e =
|
|
4508
|
-
return e++,
|
|
4495
|
+
const Hr = {};
|
|
4496
|
+
function _a(r) {
|
|
4497
|
+
let e = Hr[r] ?? 0;
|
|
4498
|
+
return e++, Hr[r] = e, e;
|
|
4509
4499
|
}
|
|
4510
|
-
let M = class extends
|
|
4511
|
-
_meta = new
|
|
4500
|
+
let M = class extends Pe {
|
|
4501
|
+
_meta = new da(this);
|
|
4512
4502
|
get meta() {
|
|
4513
4503
|
return this._meta;
|
|
4514
4504
|
}
|
|
@@ -4518,7 +4508,7 @@ let M = class extends we {
|
|
|
4518
4508
|
_readyed = !1;
|
|
4519
4509
|
constructor(r, e = []) {
|
|
4520
4510
|
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({
|
|
4521
|
-
name: `${this.is}:${
|
|
4511
|
+
name: `${this.is}:${_a(this.is)}`,
|
|
4522
4512
|
...r
|
|
4523
4513
|
}).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);
|
|
4524
4514
|
}
|
|
@@ -4594,7 +4584,7 @@ let M = class extends we {
|
|
|
4594
4584
|
return this;
|
|
4595
4585
|
}
|
|
4596
4586
|
/** Children */
|
|
4597
|
-
_children = new
|
|
4587
|
+
_children = new ua();
|
|
4598
4588
|
get children() {
|
|
4599
4589
|
return this._children.default;
|
|
4600
4590
|
}
|
|
@@ -4849,7 +4839,7 @@ let M = class extends we {
|
|
|
4849
4839
|
);
|
|
4850
4840
|
}
|
|
4851
4841
|
toJSON() {
|
|
4852
|
-
return
|
|
4842
|
+
return rs({
|
|
4853
4843
|
...super.toJSON(),
|
|
4854
4844
|
is: this.meta.inCanvasIs ? void 0 : this.is,
|
|
4855
4845
|
children: this.children.length ? [...this.children.map((r) => r.toJSON())] : void 0,
|
|
@@ -4859,15 +4849,15 @@ let M = class extends we {
|
|
|
4859
4849
|
static parse(r) {
|
|
4860
4850
|
if (Array.isArray(r))
|
|
4861
4851
|
return r.map((n) => this.parse(n));
|
|
4862
|
-
const { is: e, meta: t = {}, children: s, ...i } = r, o =
|
|
4852
|
+
const { is: e, meta: t = {}, children: s, ...i } = r, o = ur.get(e ?? t.inCanvasIs ?? "Node") ?? M, a = new o({ ...i, meta: t });
|
|
4863
4853
|
return s?.forEach((n) => a.appendChild(this.parse(n))), a;
|
|
4864
4854
|
}
|
|
4865
4855
|
};
|
|
4866
4856
|
de([
|
|
4867
|
-
h({ fallback:
|
|
4857
|
+
h({ fallback: ss() })
|
|
4868
4858
|
], M.prototype, "id", 2);
|
|
4869
4859
|
de([
|
|
4870
|
-
h({ fallback:
|
|
4860
|
+
h({ fallback: ss() })
|
|
4871
4861
|
], M.prototype, "name", 2);
|
|
4872
4862
|
de([
|
|
4873
4863
|
h({ fallback: "inherit" })
|
|
@@ -4890,10 +4880,10 @@ de([
|
|
|
4890
4880
|
M = de([
|
|
4891
4881
|
b("Node")
|
|
4892
4882
|
], M);
|
|
4893
|
-
var
|
|
4894
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4883
|
+
var ma = Object.defineProperty, ga = Object.getOwnPropertyDescriptor, qe = (r, e, t, s) => {
|
|
4884
|
+
for (var i = s > 1 ? void 0 : s ? ga(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4895
4885
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4896
|
-
return s && i &&
|
|
4886
|
+
return s && i && ma(e, t, i), i;
|
|
4897
4887
|
};
|
|
4898
4888
|
let q = class extends M {
|
|
4899
4889
|
constructor(r, e = []) {
|
|
@@ -4960,10 +4950,10 @@ qe([
|
|
|
4960
4950
|
q = qe([
|
|
4961
4951
|
b("TimelineNode")
|
|
4962
4952
|
], q);
|
|
4963
|
-
var
|
|
4964
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
4953
|
+
var va = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, Gt = (r, e, t, s) => {
|
|
4954
|
+
for (var i = s > 1 ? void 0 : s ? ba(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
4965
4955
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
4966
|
-
return s && i &&
|
|
4956
|
+
return s && i && va(e, t, i), i;
|
|
4967
4957
|
};
|
|
4968
4958
|
let Ge = class extends q {
|
|
4969
4959
|
_parentGlobalVisible;
|
|
@@ -4977,7 +4967,7 @@ let Ge = class extends q {
|
|
|
4977
4967
|
return this._globalOpacity ?? 1;
|
|
4978
4968
|
}
|
|
4979
4969
|
// Batch render
|
|
4980
|
-
context = new
|
|
4970
|
+
context = new ha();
|
|
4981
4971
|
_resetContext = !0;
|
|
4982
4972
|
needsRender = !0;
|
|
4983
4973
|
needsLayout = !1;
|
|
@@ -5085,32 +5075,35 @@ let Ge = class extends q {
|
|
|
5085
5075
|
}
|
|
5086
5076
|
}
|
|
5087
5077
|
_render(r) {
|
|
5088
|
-
this._updateBatchables()
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5078
|
+
this._updateBatchables();
|
|
5079
|
+
const e = this._tree?.pixelate;
|
|
5080
|
+
this._batchables.forEach((t) => {
|
|
5081
|
+
let s = t.texture;
|
|
5082
|
+
s instanceof vr && (s = this._handleViewportTexture(t)), r.batch2D.render({
|
|
5083
|
+
...t,
|
|
5092
5084
|
roundPixels: this._tree?.roundPixels,
|
|
5093
|
-
|
|
5085
|
+
size: e ? t.size : void 0,
|
|
5086
|
+
texture: s
|
|
5094
5087
|
});
|
|
5095
5088
|
}), super._render(r);
|
|
5096
5089
|
}
|
|
5097
5090
|
};
|
|
5098
|
-
|
|
5091
|
+
Gt([
|
|
5099
5092
|
h()
|
|
5100
5093
|
], Ge.prototype, "blendMode", 2);
|
|
5101
|
-
|
|
5094
|
+
Gt([
|
|
5102
5095
|
h({ internal: !0, fallback: !0 })
|
|
5103
5096
|
], Ge.prototype, "visible", 2);
|
|
5104
|
-
|
|
5097
|
+
Gt([
|
|
5105
5098
|
h({ internal: !0, fallback: 1 })
|
|
5106
5099
|
], Ge.prototype, "opacity", 2);
|
|
5107
|
-
Ge =
|
|
5100
|
+
Ge = Gt([
|
|
5108
5101
|
b("CanvasItem")
|
|
5109
5102
|
], Ge);
|
|
5110
|
-
var
|
|
5111
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5103
|
+
var ya = Object.defineProperty, xa = Object.getOwnPropertyDescriptor, Ue = (r, e, t, s) => {
|
|
5104
|
+
for (var i = s > 1 ? void 0 : s ? xa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5112
5105
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5113
|
-
return s && i &&
|
|
5106
|
+
return s && i && ya(e, t, i), i;
|
|
5114
5107
|
};
|
|
5115
5108
|
let j = class extends M {
|
|
5116
5109
|
canvasTransform = new I();
|
|
@@ -5164,7 +5157,7 @@ let j = class extends M {
|
|
|
5164
5157
|
return !1;
|
|
5165
5158
|
}
|
|
5166
5159
|
activateWithCopy(r, e) {
|
|
5167
|
-
this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r,
|
|
5160
|
+
this.resize(e.width, e.height), this.activate(r) && (r.clear(), e.texture.activate(r, 0), P.draw(r, Ot.instance, {
|
|
5168
5161
|
sampler: 0
|
|
5169
5162
|
}));
|
|
5170
5163
|
}
|
|
@@ -5188,31 +5181,31 @@ let j = class extends M {
|
|
|
5188
5181
|
return this.canvasTransform.apply(r, e);
|
|
5189
5182
|
}
|
|
5190
5183
|
};
|
|
5191
|
-
|
|
5184
|
+
Ue([
|
|
5192
5185
|
h({ fallback: 0 })
|
|
5193
5186
|
], j.prototype, "x", 2);
|
|
5194
|
-
|
|
5187
|
+
Ue([
|
|
5195
5188
|
h({ fallback: 0 })
|
|
5196
5189
|
], j.prototype, "y", 2);
|
|
5197
|
-
|
|
5190
|
+
Ue([
|
|
5198
5191
|
h({ fallback: 0 })
|
|
5199
5192
|
], j.prototype, "width", 2);
|
|
5200
|
-
|
|
5193
|
+
Ue([
|
|
5201
5194
|
h({ fallback: 0 })
|
|
5202
5195
|
], j.prototype, "height", 2);
|
|
5203
|
-
|
|
5196
|
+
Ue([
|
|
5204
5197
|
h({ fallback: 0 })
|
|
5205
5198
|
], j.prototype, "mipLevel", 2);
|
|
5206
|
-
|
|
5199
|
+
Ue([
|
|
5207
5200
|
h({ fallback: !1 })
|
|
5208
5201
|
], j.prototype, "msaa", 2);
|
|
5209
|
-
j =
|
|
5202
|
+
j = Ue([
|
|
5210
5203
|
b("Viewport")
|
|
5211
5204
|
], j);
|
|
5212
|
-
var
|
|
5213
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5205
|
+
var wa = Object.defineProperty, Pa = Object.getOwnPropertyDescriptor, _t = (r, e, t, s) => {
|
|
5206
|
+
for (var i = s > 1 ? void 0 : s ? Pa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5214
5207
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5215
|
-
return s && i &&
|
|
5208
|
+
return s && i && wa(e, t, i), i;
|
|
5216
5209
|
};
|
|
5217
5210
|
let T = class extends q {
|
|
5218
5211
|
material;
|
|
@@ -5235,7 +5228,7 @@ let T = class extends q {
|
|
|
5235
5228
|
_updateProperty(r, e, t) {
|
|
5236
5229
|
switch (super._updateProperty(r, e, t), r) {
|
|
5237
5230
|
case "glsl": {
|
|
5238
|
-
const s = new
|
|
5231
|
+
const s = new Ct(e);
|
|
5239
5232
|
!this.effectMode && s.has.transition && (this.effectMode = "transition"), this.material = s;
|
|
5240
5233
|
break;
|
|
5241
5234
|
}
|
|
@@ -5403,7 +5396,7 @@ _t([
|
|
|
5403
5396
|
T = _t([
|
|
5404
5397
|
b("Effect")
|
|
5405
5398
|
], T);
|
|
5406
|
-
class
|
|
5399
|
+
class Ea {
|
|
5407
5400
|
currentCall;
|
|
5408
5401
|
calls = [];
|
|
5409
5402
|
createCall(e) {
|
|
@@ -5426,10 +5419,10 @@ class ba {
|
|
|
5426
5419
|
}), this.calls = [];
|
|
5427
5420
|
}
|
|
5428
5421
|
}
|
|
5429
|
-
var
|
|
5430
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5422
|
+
var Sa = Object.defineProperty, Ta = Object.getOwnPropertyDescriptor, Ye = (r, e, t, s) => {
|
|
5423
|
+
for (var i = s > 1 ? void 0 : s ? Ta(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5431
5424
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5432
|
-
return s && i &&
|
|
5425
|
+
return s && i && Sa(e, t, i), i;
|
|
5433
5426
|
};
|
|
5434
5427
|
let le = class extends M {
|
|
5435
5428
|
static from(r, e = !1) {
|
|
@@ -5480,12 +5473,12 @@ Ye([
|
|
|
5480
5473
|
le = Ye([
|
|
5481
5474
|
b("Timeline")
|
|
5482
5475
|
], le);
|
|
5483
|
-
var
|
|
5484
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5476
|
+
var Ra = Object.getOwnPropertyDescriptor, Aa = (r, e, t, s) => {
|
|
5477
|
+
for (var i = s > 1 ? void 0 : s ? Ra(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5485
5478
|
(a = r[o]) && (i = a(i) || i);
|
|
5486
5479
|
return i;
|
|
5487
5480
|
};
|
|
5488
|
-
let
|
|
5481
|
+
let ir = class extends j {
|
|
5489
5482
|
constructor() {
|
|
5490
5483
|
super(), this.renderTargets.forEach((r) => r.isRoot = !0);
|
|
5491
5484
|
}
|
|
@@ -5496,18 +5489,18 @@ let er = class extends j {
|
|
|
5496
5489
|
this.finish(r), super.flush(r);
|
|
5497
5490
|
}
|
|
5498
5491
|
};
|
|
5499
|
-
|
|
5492
|
+
ir = Aa([
|
|
5500
5493
|
b("Window")
|
|
5501
|
-
],
|
|
5502
|
-
var
|
|
5494
|
+
], ir);
|
|
5495
|
+
var Ca = Object.defineProperty, Ee = (r, e, t, s) => {
|
|
5503
5496
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
5504
5497
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
5505
|
-
return i &&
|
|
5498
|
+
return i && Ca(e, t, i), i;
|
|
5506
5499
|
};
|
|
5507
|
-
class
|
|
5508
|
-
input = new
|
|
5509
|
-
renderStack = new
|
|
5510
|
-
root = new
|
|
5500
|
+
class fe extends pr {
|
|
5501
|
+
input = new Ki();
|
|
5502
|
+
renderStack = new Ea();
|
|
5503
|
+
root = new ir().setTree(this);
|
|
5511
5504
|
_backgroundColor = new oe();
|
|
5512
5505
|
_previousViewport;
|
|
5513
5506
|
_currentViewport;
|
|
@@ -5551,29 +5544,32 @@ class Pe extends hr {
|
|
|
5551
5544
|
this.root.destroy(), this.input.destroy(), super.destroy();
|
|
5552
5545
|
}
|
|
5553
5546
|
}
|
|
5554
|
-
|
|
5547
|
+
Ee([
|
|
5555
5548
|
h({ alias: "root.msaa" })
|
|
5556
|
-
],
|
|
5557
|
-
|
|
5549
|
+
], fe.prototype, "msaa");
|
|
5550
|
+
Ee([
|
|
5558
5551
|
h({ fallback: !1 })
|
|
5559
|
-
],
|
|
5560
|
-
|
|
5552
|
+
], fe.prototype, "pixelate");
|
|
5553
|
+
Ee([
|
|
5554
|
+
h({ fallback: !1 })
|
|
5555
|
+
], fe.prototype, "roundPixels");
|
|
5556
|
+
Ee([
|
|
5561
5557
|
h()
|
|
5562
|
-
],
|
|
5563
|
-
|
|
5558
|
+
], fe.prototype, "backgroundColor");
|
|
5559
|
+
Ee([
|
|
5564
5560
|
h({ internal: !0, fallback: !1 })
|
|
5565
|
-
],
|
|
5566
|
-
|
|
5561
|
+
], fe.prototype, "debug");
|
|
5562
|
+
Ee([
|
|
5567
5563
|
h({ internal: !0, fallback: !1 })
|
|
5568
|
-
],
|
|
5569
|
-
|
|
5570
|
-
h({ internal: !0, default: () =>
|
|
5571
|
-
],
|
|
5572
|
-
|
|
5564
|
+
], fe.prototype, "processPaused");
|
|
5565
|
+
Ee([
|
|
5566
|
+
h({ internal: !0, default: () => bi })
|
|
5567
|
+
], fe.prototype, "fonts");
|
|
5568
|
+
Ee([
|
|
5573
5569
|
h({ internal: !0, default: () => new le() })
|
|
5574
|
-
],
|
|
5575
|
-
var
|
|
5576
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5570
|
+
], fe.prototype, "timeline");
|
|
5571
|
+
var Oa = Object.getOwnPropertyDescriptor, Da = (r, e, t, s) => {
|
|
5572
|
+
for (var i = s > 1 ? void 0 : s ? Oa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5577
5573
|
(a = r[o]) && (i = a(i) || i);
|
|
5578
5574
|
return i;
|
|
5579
5575
|
};
|
|
@@ -5582,19 +5578,19 @@ let Ve = class extends T {
|
|
|
5582
5578
|
super(), this.setProperties(r).append(e);
|
|
5583
5579
|
}
|
|
5584
5580
|
};
|
|
5585
|
-
Ve =
|
|
5581
|
+
Ve = Da([
|
|
5586
5582
|
b("Transition", {
|
|
5587
5583
|
effectMode: "transition",
|
|
5588
5584
|
processMode: "pausable",
|
|
5589
5585
|
duration: 2e3
|
|
5590
5586
|
})
|
|
5591
5587
|
], Ve);
|
|
5592
|
-
var
|
|
5593
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5588
|
+
var Ia = Object.defineProperty, Ma = Object.getOwnPropertyDescriptor, br = (r, e, t, s) => {
|
|
5589
|
+
for (var i = s > 1 ? void 0 : s ? Ma(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5594
5590
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5595
|
-
return s && i &&
|
|
5591
|
+
return s && i && Ia(e, t, i), i;
|
|
5596
5592
|
};
|
|
5597
|
-
let
|
|
5593
|
+
let Oe = class extends Ge {
|
|
5598
5594
|
position = new C().on("update", () => this.updateGlobalTransform());
|
|
5599
5595
|
scale = new C(1, 1).on("update", () => this.updateGlobalTransform());
|
|
5600
5596
|
skew = new C().on("update", () => this.updateGlobalTransform());
|
|
@@ -5661,21 +5657,21 @@ let Ce = class extends Ge {
|
|
|
5661
5657
|
return this.globalTransform.apply(r, e);
|
|
5662
5658
|
}
|
|
5663
5659
|
};
|
|
5664
|
-
|
|
5660
|
+
br([
|
|
5665
5661
|
h({ internal: !0, fallback: 0 })
|
|
5666
|
-
],
|
|
5667
|
-
|
|
5662
|
+
], Oe.prototype, "rotation", 2);
|
|
5663
|
+
br([
|
|
5668
5664
|
h({ internal: !0, fallback: 0 })
|
|
5669
|
-
],
|
|
5670
|
-
|
|
5665
|
+
], Oe.prototype, "globalRotation", 2);
|
|
5666
|
+
Oe = br([
|
|
5671
5667
|
b("Node2D")
|
|
5672
|
-
],
|
|
5673
|
-
var
|
|
5674
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5668
|
+
], Oe);
|
|
5669
|
+
var Na = Object.defineProperty, ka = Object.getOwnPropertyDescriptor, yr = (r, e, t, s) => {
|
|
5670
|
+
for (var i = s > 1 ? void 0 : s ? ka(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5675
5671
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5676
|
-
return s && i &&
|
|
5672
|
+
return s && i && Na(e, t, i), i;
|
|
5677
5673
|
};
|
|
5678
|
-
let
|
|
5674
|
+
let Dt = class extends Oe {
|
|
5679
5675
|
canvasTransform = new I();
|
|
5680
5676
|
_screenOffset = { x: 0, y: 0 };
|
|
5681
5677
|
_zoom = new C(1, 1).on("update", () => this.updateTransform());
|
|
@@ -5749,7 +5745,7 @@ let Ct = class extends Ce {
|
|
|
5749
5745
|
}
|
|
5750
5746
|
_onWheel(r) {
|
|
5751
5747
|
if (r.preventDefault(), r.ctrlKey || r.metaKey) {
|
|
5752
|
-
const e = { x: r.screenX, y: r.screenY }, t = this.toGlobal(e), s = r.ctrlKey &&
|
|
5748
|
+
const e = { x: r.screenX, y: r.screenY }, t = this.toGlobal(e), s = r.ctrlKey && Li ? 10 : 1, i = -r.deltaY * (r.deltaMode === 1 ? 0.05 : r.deltaMode ? 1 : 2e-3) * s;
|
|
5753
5749
|
this.zoomWithWheel(i);
|
|
5754
5750
|
const o = this.toScreen(t);
|
|
5755
5751
|
this.position.add(o.x - e.x, o.y - e.y);
|
|
@@ -5790,19 +5786,19 @@ let Ct = class extends Ce {
|
|
|
5790
5786
|
};
|
|
5791
5787
|
}
|
|
5792
5788
|
};
|
|
5793
|
-
|
|
5789
|
+
yr([
|
|
5794
5790
|
h({ internal: !0, fallback: !1 })
|
|
5795
|
-
],
|
|
5796
|
-
|
|
5791
|
+
], Dt.prototype, "spaceKey", 2);
|
|
5792
|
+
yr([
|
|
5797
5793
|
h({ internal: !0, fallback: !1 })
|
|
5798
|
-
],
|
|
5799
|
-
|
|
5794
|
+
], Dt.prototype, "grabbing", 2);
|
|
5795
|
+
Dt = yr([
|
|
5800
5796
|
b("Camera2D", {
|
|
5801
5797
|
processMode: "disabled",
|
|
5802
5798
|
renderMode: "disabled"
|
|
5803
5799
|
})
|
|
5804
|
-
],
|
|
5805
|
-
const
|
|
5800
|
+
], Dt);
|
|
5801
|
+
const Xr = {
|
|
5806
5802
|
brightness: 1,
|
|
5807
5803
|
contrast: 1,
|
|
5808
5804
|
grayscale: 0,
|
|
@@ -5812,13 +5808,13 @@ const Gr = {
|
|
|
5812
5808
|
saturate: 1,
|
|
5813
5809
|
sepia: 0
|
|
5814
5810
|
};
|
|
5815
|
-
function
|
|
5816
|
-
const e = new
|
|
5811
|
+
function vc(r) {
|
|
5812
|
+
const e = new ds();
|
|
5817
5813
|
if (r === "none")
|
|
5818
5814
|
return e;
|
|
5819
|
-
const t =
|
|
5820
|
-
Object.keys(
|
|
5821
|
-
t[s] = t[s] ??
|
|
5815
|
+
const t = Bt(r).reduce((s, { name: i, args: o }) => (s[i] = o[0].normalizedIntValue, s), {});
|
|
5816
|
+
Object.keys(Xr).forEach((s) => {
|
|
5817
|
+
t[s] = t[s] ?? Xr[s];
|
|
5822
5818
|
});
|
|
5823
5819
|
for (const s in t) {
|
|
5824
5820
|
const i = t[s];
|
|
@@ -5851,8 +5847,8 @@ function fc(r) {
|
|
|
5851
5847
|
}
|
|
5852
5848
|
return e;
|
|
5853
5849
|
}
|
|
5854
|
-
function
|
|
5855
|
-
return r = !r || r === "none" ? "" : r,
|
|
5850
|
+
function Ua(r, e, t, s = new I()) {
|
|
5851
|
+
return r = !r || r === "none" ? "" : r, Bt(r, { width: e, height: t }).reverse().forEach(({ name: i, args: o }) => {
|
|
5856
5852
|
const a = o.map((n) => n.normalizedIntValue);
|
|
5857
5853
|
switch (i) {
|
|
5858
5854
|
case "translate":
|
|
@@ -5921,7 +5917,7 @@ function Da(r, e, t, s = new I()) {
|
|
|
5921
5917
|
}
|
|
5922
5918
|
}), s;
|
|
5923
5919
|
}
|
|
5924
|
-
function
|
|
5920
|
+
function Ba(r) {
|
|
5925
5921
|
const [e, t = e] = r.split(" ");
|
|
5926
5922
|
return [e, t].map((s) => {
|
|
5927
5923
|
switch (s = s.trim(), s) {
|
|
@@ -5938,11 +5934,11 @@ function Ia(r) {
|
|
|
5938
5934
|
}
|
|
5939
5935
|
});
|
|
5940
5936
|
}
|
|
5941
|
-
var
|
|
5942
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
5937
|
+
var Ps = Object.defineProperty, La = Object.getOwnPropertyDescriptor, Fa = (r, e, t) => e in r ? Ps(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, pe = (r, e, t, s) => {
|
|
5938
|
+
for (var i = s > 1 ? void 0 : s ? La(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
5943
5939
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
5944
|
-
return s && i &&
|
|
5945
|
-
},
|
|
5940
|
+
return s && i && Ps(e, t, i), i;
|
|
5941
|
+
}, za = (r, e, t) => Fa(r, e + "", t);
|
|
5946
5942
|
let W = class extends T {
|
|
5947
5943
|
constructor(r, e = []) {
|
|
5948
5944
|
super(), this.setProperties(r).append(e);
|
|
@@ -5963,7 +5959,7 @@ let W = class extends T {
|
|
|
5963
5959
|
});
|
|
5964
5960
|
}
|
|
5965
5961
|
};
|
|
5966
|
-
|
|
5962
|
+
za(W, "material", new E({
|
|
5967
5963
|
gl: {
|
|
5968
5964
|
vertex: `precision mediump float;
|
|
5969
5965
|
attribute vec2 position;
|
|
@@ -6000,40 +5996,40 @@ void main(void) {
|
|
|
6000
5996
|
}`
|
|
6001
5997
|
}
|
|
6002
5998
|
}));
|
|
6003
|
-
|
|
5999
|
+
pe([
|
|
6004
6000
|
h({ fallback: 1 })
|
|
6005
6001
|
], W.prototype, "saturation", 2);
|
|
6006
|
-
|
|
6002
|
+
pe([
|
|
6007
6003
|
h({ fallback: 1 })
|
|
6008
6004
|
], W.prototype, "contrast", 2);
|
|
6009
|
-
|
|
6005
|
+
pe([
|
|
6010
6006
|
h({ fallback: 1 })
|
|
6011
6007
|
], W.prototype, "brightness", 2);
|
|
6012
|
-
|
|
6008
|
+
pe([
|
|
6013
6009
|
h({ fallback: 1 })
|
|
6014
6010
|
], W.prototype, "red", 2);
|
|
6015
|
-
|
|
6011
|
+
pe([
|
|
6016
6012
|
h({ fallback: 1 })
|
|
6017
6013
|
], W.prototype, "green", 2);
|
|
6018
|
-
|
|
6014
|
+
pe([
|
|
6019
6015
|
h({ fallback: 1 })
|
|
6020
6016
|
], W.prototype, "blue", 2);
|
|
6021
|
-
|
|
6017
|
+
pe([
|
|
6022
6018
|
h({ fallback: 1 })
|
|
6023
6019
|
], W.prototype, "alpha", 2);
|
|
6024
|
-
|
|
6020
|
+
pe([
|
|
6025
6021
|
h({ fallback: 1 })
|
|
6026
6022
|
], W.prototype, "gamma", 2);
|
|
6027
|
-
W =
|
|
6023
|
+
W = pe([
|
|
6028
6024
|
b("ColorAdjustEffect")
|
|
6029
6025
|
], W);
|
|
6030
|
-
var
|
|
6031
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6026
|
+
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, Ss = (r, e, t, s) => {
|
|
6027
|
+
for (var i = s > 1 ? void 0 : s ? Ga(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6032
6028
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6033
|
-
return s && i &&
|
|
6034
|
-
},
|
|
6029
|
+
return s && i && Es(e, t, i), i;
|
|
6030
|
+
}, $a = (r, e, t) => Va(r, e + "", t);
|
|
6035
6031
|
let $e = class extends T {
|
|
6036
|
-
_colorMatrix = new
|
|
6032
|
+
_colorMatrix = new ds();
|
|
6037
6033
|
constructor(r, e = []) {
|
|
6038
6034
|
super(), this.setProperties(r).append(e);
|
|
6039
6035
|
}
|
|
@@ -6047,7 +6043,7 @@ let $e = class extends T {
|
|
|
6047
6043
|
apply(r, e) {
|
|
6048
6044
|
if (!this.filter)
|
|
6049
6045
|
return;
|
|
6050
|
-
const t =
|
|
6046
|
+
const t = Bt(this.filter), s = this._colorMatrix.identity();
|
|
6051
6047
|
t.forEach(({ name: i, args: o }) => {
|
|
6052
6048
|
const a = o.map((n) => n.normalizedIntValue);
|
|
6053
6049
|
switch (i) {
|
|
@@ -6085,7 +6081,7 @@ let $e = class extends T {
|
|
|
6085
6081
|
});
|
|
6086
6082
|
}
|
|
6087
6083
|
};
|
|
6088
|
-
|
|
6084
|
+
$a($e, "material", new E({
|
|
6089
6085
|
gl: {
|
|
6090
6086
|
vertex: `attribute vec2 position;
|
|
6091
6087
|
attribute vec2 uv;
|
|
@@ -6112,17 +6108,17 @@ void main(void) {
|
|
|
6112
6108
|
}`
|
|
6113
6109
|
}
|
|
6114
6110
|
}));
|
|
6115
|
-
|
|
6111
|
+
Ss([
|
|
6116
6112
|
h()
|
|
6117
6113
|
], $e.prototype, "filter", 2);
|
|
6118
|
-
$e =
|
|
6114
|
+
$e = Ss([
|
|
6119
6115
|
b("ColorFilterEffect")
|
|
6120
6116
|
], $e);
|
|
6121
|
-
var
|
|
6122
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6117
|
+
var Ts = Object.defineProperty, Ha = Object.getOwnPropertyDescriptor, Xa = (r, e, t) => e in r ? Ts(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, xr = (r, e, t, s) => {
|
|
6118
|
+
for (var i = s > 1 ? void 0 : s ? Ha(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6123
6119
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6124
|
-
return s && i &&
|
|
6125
|
-
},
|
|
6120
|
+
return s && i && Ts(e, t, i), i;
|
|
6121
|
+
}, ja = (r, e, t) => Xa(r, e + "", t);
|
|
6126
6122
|
const at = 50;
|
|
6127
6123
|
let He = class extends T {
|
|
6128
6124
|
_color = new oe();
|
|
@@ -6145,7 +6141,7 @@ let He = class extends T {
|
|
|
6145
6141
|
});
|
|
6146
6142
|
}
|
|
6147
6143
|
};
|
|
6148
|
-
|
|
6144
|
+
ja(He, "material", new E({
|
|
6149
6145
|
gl: {
|
|
6150
6146
|
vertex: `precision mediump float;
|
|
6151
6147
|
attribute vec2 position;
|
|
@@ -6194,20 +6190,20 @@ void main(void) {
|
|
|
6194
6190
|
}`
|
|
6195
6191
|
}
|
|
6196
6192
|
}));
|
|
6197
|
-
|
|
6193
|
+
xr([
|
|
6198
6194
|
h({ default: () => [] })
|
|
6199
6195
|
], He.prototype, "colors", 2);
|
|
6200
|
-
|
|
6196
|
+
xr([
|
|
6201
6197
|
h({ fallback: 0.5 })
|
|
6202
6198
|
], He.prototype, "alpha", 2);
|
|
6203
|
-
He =
|
|
6199
|
+
He = xr([
|
|
6204
6200
|
b("ColorOverlayEffect")
|
|
6205
6201
|
], He);
|
|
6206
|
-
var
|
|
6207
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6202
|
+
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) => {
|
|
6203
|
+
for (var i = s > 1 ? void 0 : s ? Wa(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6208
6204
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6209
|
-
return s && i &&
|
|
6210
|
-
},
|
|
6205
|
+
return s && i && Rs(e, t, i), i;
|
|
6206
|
+
}, Ya = (r, e, t) => qa(r, e + "", t);
|
|
6211
6207
|
let Xe = class extends T {
|
|
6212
6208
|
_color = new oe();
|
|
6213
6209
|
constructor(r, e = []) {
|
|
@@ -6228,7 +6224,7 @@ let Xe = class extends T {
|
|
|
6228
6224
|
});
|
|
6229
6225
|
}
|
|
6230
6226
|
};
|
|
6231
|
-
|
|
6227
|
+
Ya(Xe, "material", new E({
|
|
6232
6228
|
gl: {
|
|
6233
6229
|
vertex: `precision mediump float;
|
|
6234
6230
|
attribute vec2 position;
|
|
@@ -6263,20 +6259,20 @@ void main(void) {
|
|
|
6263
6259
|
}`
|
|
6264
6260
|
}
|
|
6265
6261
|
}));
|
|
6266
|
-
|
|
6262
|
+
wr([
|
|
6267
6263
|
h({ default: () => [] })
|
|
6268
6264
|
], Xe.prototype, "colors", 2);
|
|
6269
|
-
|
|
6265
|
+
wr([
|
|
6270
6266
|
h({ fallback: 0.5 })
|
|
6271
6267
|
], Xe.prototype, "epsilon", 2);
|
|
6272
|
-
Xe =
|
|
6268
|
+
Xe = wr([
|
|
6273
6269
|
b("ColorRemoveEffect")
|
|
6274
6270
|
], Xe);
|
|
6275
|
-
var
|
|
6276
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6271
|
+
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) => {
|
|
6272
|
+
for (var i = s > 1 ? void 0 : s ? Ka(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6277
6273
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6278
|
-
return s && i &&
|
|
6279
|
-
},
|
|
6274
|
+
return s && i && As(e, t, i), i;
|
|
6275
|
+
}, Ja = (r, e, t) => Za(r, e + "", t);
|
|
6280
6276
|
const st = 50;
|
|
6281
6277
|
let je = class extends T {
|
|
6282
6278
|
_color = new oe();
|
|
@@ -6311,7 +6307,7 @@ let je = class extends T {
|
|
|
6311
6307
|
});
|
|
6312
6308
|
}
|
|
6313
6309
|
};
|
|
6314
|
-
|
|
6310
|
+
Ja(je, "material", new E({
|
|
6315
6311
|
gl: {
|
|
6316
6312
|
vertex: `precision mediump float;
|
|
6317
6313
|
attribute vec2 position;
|
|
@@ -6353,16 +6349,16 @@ void main(void) {
|
|
|
6353
6349
|
}`
|
|
6354
6350
|
}
|
|
6355
6351
|
}));
|
|
6356
|
-
|
|
6352
|
+
Pr([
|
|
6357
6353
|
h({ default: () => [] })
|
|
6358
6354
|
], je.prototype, "colors", 2);
|
|
6359
|
-
|
|
6355
|
+
Pr([
|
|
6360
6356
|
h({ fallback: 0.05 })
|
|
6361
6357
|
], je.prototype, "epsilon", 2);
|
|
6362
|
-
je =
|
|
6358
|
+
je = Pr([
|
|
6363
6359
|
b("ColorReplaceEffect")
|
|
6364
6360
|
], je);
|
|
6365
|
-
const
|
|
6361
|
+
const Qa = `precision highp float;
|
|
6366
6362
|
|
|
6367
6363
|
in vec2 vUv;
|
|
6368
6364
|
uniform sampler2D uTexture;
|
|
@@ -6513,11 +6509,11 @@ void main(void) {
|
|
|
6513
6509
|
gl_FragColor = color;
|
|
6514
6510
|
}
|
|
6515
6511
|
`;
|
|
6516
|
-
var
|
|
6517
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6512
|
+
var Cs = Object.defineProperty, en = Object.getOwnPropertyDescriptor, tn = (r, e, t) => e in r ? Cs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Se = (r, e, t, s) => {
|
|
6513
|
+
for (var i = s > 1 ? void 0 : s ? en(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6518
6514
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6519
|
-
return s && i &&
|
|
6520
|
-
},
|
|
6515
|
+
return s && i && Cs(e, t, i), i;
|
|
6516
|
+
}, rn = (r, e, t) => tn(r, e + "", t);
|
|
6521
6517
|
let Y = class extends T {
|
|
6522
6518
|
_watermark;
|
|
6523
6519
|
constructor(r, e = []) {
|
|
@@ -6572,7 +6568,7 @@ let Y = class extends T {
|
|
|
6572
6568
|
});
|
|
6573
6569
|
}
|
|
6574
6570
|
};
|
|
6575
|
-
|
|
6571
|
+
rn(Y, "material", new E({
|
|
6576
6572
|
gl: {
|
|
6577
6573
|
vertex: `attribute vec2 position;
|
|
6578
6574
|
in vec2 uv;
|
|
@@ -6583,39 +6579,39 @@ void main() {
|
|
|
6583
6579
|
gl_Position = vec4(position.xy, 0.0, 1.0);
|
|
6584
6580
|
vUv = uv;
|
|
6585
6581
|
}`,
|
|
6586
|
-
fragment:
|
|
6582
|
+
fragment: Qa
|
|
6587
6583
|
}
|
|
6588
6584
|
}));
|
|
6589
|
-
|
|
6585
|
+
Se([
|
|
6590
6586
|
h({ fallback: !1 })
|
|
6591
6587
|
], Y.prototype, "checkerboard", 2);
|
|
6592
|
-
|
|
6588
|
+
Se([
|
|
6593
6589
|
h({ fallback: "grid" })
|
|
6594
6590
|
], Y.prototype, "checkerboardStyle", 2);
|
|
6595
|
-
|
|
6591
|
+
Se([
|
|
6596
6592
|
h({ fallback: !1 })
|
|
6597
6593
|
], Y.prototype, "pixelGrid", 2);
|
|
6598
|
-
|
|
6594
|
+
Se([
|
|
6599
6595
|
h()
|
|
6600
6596
|
], Y.prototype, "watermark", 2);
|
|
6601
|
-
|
|
6597
|
+
Se([
|
|
6602
6598
|
h({ fallback: 100 })
|
|
6603
6599
|
], Y.prototype, "watermarkWidth", 2);
|
|
6604
|
-
|
|
6600
|
+
Se([
|
|
6605
6601
|
h({ fallback: 0.05 })
|
|
6606
6602
|
], Y.prototype, "watermarkAlpha", 2);
|
|
6607
|
-
|
|
6603
|
+
Se([
|
|
6608
6604
|
h({ fallback: 0.5236 })
|
|
6609
6605
|
], Y.prototype, "watermarkRotation", 2);
|
|
6610
|
-
Y =
|
|
6606
|
+
Y = Se([
|
|
6611
6607
|
b("DrawboardEffect")
|
|
6612
6608
|
], Y);
|
|
6613
|
-
var
|
|
6614
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6609
|
+
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, Er = (r, e, t, s) => {
|
|
6610
|
+
for (var i = s > 1 ? void 0 : s ? sn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6615
6611
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6616
|
-
return s && i &&
|
|
6617
|
-
},
|
|
6618
|
-
const
|
|
6612
|
+
return s && i && Os(e, t, i), i;
|
|
6613
|
+
}, Ds = (r, e, t) => on(r, typeof e != "symbol" ? e + "" : e, t);
|
|
6614
|
+
const Is = `varying vec2 vUv[9];
|
|
6619
6615
|
uniform sampler2D sampler;
|
|
6620
6616
|
|
|
6621
6617
|
void main(void) {
|
|
@@ -6672,7 +6668,7 @@ let ce = class extends T {
|
|
|
6672
6668
|
});
|
|
6673
6669
|
}
|
|
6674
6670
|
};
|
|
6675
|
-
|
|
6671
|
+
Ds(ce, "materialX", new E({
|
|
6676
6672
|
gl: {
|
|
6677
6673
|
vertex: `attribute vec2 position;
|
|
6678
6674
|
attribute vec2 uv;
|
|
@@ -6691,10 +6687,10 @@ void main(void) {
|
|
|
6691
6687
|
vUv[7] = uv + vec2(3.0 * uStrength, 0.0);
|
|
6692
6688
|
vUv[8] = uv + vec2(4.0 * uStrength, 0.0);
|
|
6693
6689
|
}`,
|
|
6694
|
-
fragment:
|
|
6690
|
+
fragment: Is
|
|
6695
6691
|
}
|
|
6696
6692
|
}));
|
|
6697
|
-
|
|
6693
|
+
Ds(ce, "materialY", new E({
|
|
6698
6694
|
gl: {
|
|
6699
6695
|
vertex: `attribute vec2 position;
|
|
6700
6696
|
attribute vec2 uv;
|
|
@@ -6713,23 +6709,23 @@ void main(void) {
|
|
|
6713
6709
|
vUv[7] = uv + vec2(0.0, 3.0 * uStrength);
|
|
6714
6710
|
vUv[8] = uv + vec2(0.0, 4.0 * uStrength);
|
|
6715
6711
|
}`,
|
|
6716
|
-
fragment:
|
|
6712
|
+
fragment: Is
|
|
6717
6713
|
}
|
|
6718
6714
|
}));
|
|
6719
|
-
|
|
6715
|
+
Er([
|
|
6720
6716
|
h({ fallback: 4 })
|
|
6721
6717
|
], ce.prototype, "strength", 2);
|
|
6722
|
-
|
|
6718
|
+
Er([
|
|
6723
6719
|
h({ fallback: 3 })
|
|
6724
6720
|
], ce.prototype, "quality", 2);
|
|
6725
|
-
ce =
|
|
6721
|
+
ce = Er([
|
|
6726
6722
|
b("GaussianBlurEffect")
|
|
6727
6723
|
], ce);
|
|
6728
|
-
var
|
|
6729
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6724
|
+
var Ms = Object.defineProperty, an = Object.getOwnPropertyDescriptor, nn = (r, e, t) => e in r ? Ms(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ke = (r, e, t, s) => {
|
|
6725
|
+
for (var i = s > 1 ? void 0 : s ? an(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6730
6726
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6731
|
-
return s && i &&
|
|
6732
|
-
},
|
|
6727
|
+
return s && i && Ms(e, t, i), i;
|
|
6728
|
+
}, ln = (r, e, t) => nn(r, e + "", t);
|
|
6733
6729
|
let re = class extends T {
|
|
6734
6730
|
blurEffect = new ce();
|
|
6735
6731
|
viewport3 = new j();
|
|
@@ -6747,15 +6743,15 @@ let re = class extends T {
|
|
|
6747
6743
|
uInputSize: [e.width, e.height, 1 / e.width, 1 / e.height]
|
|
6748
6744
|
});
|
|
6749
6745
|
}), this.blurEffect.strength = this.blur, this.blurEffect.apply(r, this.viewport3), e.redraw(r, () => {
|
|
6750
|
-
this.viewport3.texture.activate(r, 1), P.draw(r,
|
|
6746
|
+
this.viewport3.texture.activate(r, 1), P.draw(r, Ot.instance, {
|
|
6751
6747
|
sampler: 1
|
|
6752
|
-
}), this.shadowOnly || P.draw(r,
|
|
6748
|
+
}), this.shadowOnly || P.draw(r, Ot.instance, {
|
|
6753
6749
|
sampler: 0
|
|
6754
6750
|
}), r.texture.unbind(1);
|
|
6755
6751
|
});
|
|
6756
6752
|
}
|
|
6757
6753
|
};
|
|
6758
|
-
|
|
6754
|
+
ln(re, "material", new E({
|
|
6759
6755
|
gl: {
|
|
6760
6756
|
vertex: `precision mediump float;
|
|
6761
6757
|
attribute vec2 position;
|
|
@@ -6799,11 +6795,11 @@ Ke([
|
|
|
6799
6795
|
re = Ke([
|
|
6800
6796
|
b("DropShadowEffect")
|
|
6801
6797
|
], re);
|
|
6802
|
-
var
|
|
6803
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6798
|
+
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, ks = (r, e, t, s) => {
|
|
6799
|
+
for (var i = s > 1 ? void 0 : s ? cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6804
6800
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6805
|
-
return s && i &&
|
|
6806
|
-
},
|
|
6801
|
+
return s && i && Ns(e, t, i), i;
|
|
6802
|
+
}, un = (r, e, t) => hn(r, e + "", t);
|
|
6807
6803
|
let ct = class extends T {
|
|
6808
6804
|
constructor(r, e = []) {
|
|
6809
6805
|
super(), this.setProperties(r).append(e);
|
|
@@ -6818,7 +6814,7 @@ let ct = class extends T {
|
|
|
6818
6814
|
});
|
|
6819
6815
|
}
|
|
6820
6816
|
};
|
|
6821
|
-
|
|
6817
|
+
un(ct, "material", new E({
|
|
6822
6818
|
gl: {
|
|
6823
6819
|
vertex: `precision mediump float;
|
|
6824
6820
|
attribute vec2 position;
|
|
@@ -6846,17 +6842,17 @@ void main(void) {
|
|
|
6846
6842
|
}`
|
|
6847
6843
|
}
|
|
6848
6844
|
}));
|
|
6849
|
-
|
|
6845
|
+
ks([
|
|
6850
6846
|
h({ fallback: 5 })
|
|
6851
6847
|
], ct.prototype, "strength", 2);
|
|
6852
|
-
ct =
|
|
6848
|
+
ct = ks([
|
|
6853
6849
|
b("EmbossEffect")
|
|
6854
6850
|
], ct);
|
|
6855
|
-
var
|
|
6856
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
6851
|
+
var Us = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, fn = (r, e, t) => e in r ? Us(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, se = (r, e, t, s) => {
|
|
6852
|
+
for (var i = s > 1 ? void 0 : s ? dn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
6857
6853
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
6858
|
-
return s && i &&
|
|
6859
|
-
},
|
|
6854
|
+
return s && i && Us(e, t, i), i;
|
|
6855
|
+
}, pn = (r, e, t) => fn(r, e + "", t);
|
|
6860
6856
|
let G = class extends T {
|
|
6861
6857
|
_canvas;
|
|
6862
6858
|
_texture;
|
|
@@ -6900,7 +6896,7 @@ let G = class extends T {
|
|
|
6900
6896
|
});
|
|
6901
6897
|
}
|
|
6902
6898
|
};
|
|
6903
|
-
|
|
6899
|
+
pn(G, "material", new E({
|
|
6904
6900
|
gl: {
|
|
6905
6901
|
vertex: `in vec2 position;
|
|
6906
6902
|
in vec2 uv;
|
|
@@ -7035,12 +7031,12 @@ se([
|
|
|
7035
7031
|
G = se([
|
|
7036
7032
|
b("GlitchEffect")
|
|
7037
7033
|
], G);
|
|
7038
|
-
var
|
|
7039
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7034
|
+
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, Te = (r, e, t, s) => {
|
|
7035
|
+
for (var i = s > 1 ? void 0 : s ? _n(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7040
7036
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7041
|
-
return s && i &&
|
|
7042
|
-
},
|
|
7043
|
-
const
|
|
7037
|
+
return s && i && Bs(e, t, i), i;
|
|
7038
|
+
}, gn = (r, e, t) => mn(r, e + "", t);
|
|
7039
|
+
const vn = `vec3 mod289(vec3 x) {
|
|
7044
7040
|
return x - floor(x * (1.0 / 289.0)) * 289.0;
|
|
7045
7041
|
}
|
|
7046
7042
|
vec4 mod289(vec4 x) {
|
|
@@ -7151,7 +7147,7 @@ let K = class extends T {
|
|
|
7151
7147
|
});
|
|
7152
7148
|
}
|
|
7153
7149
|
};
|
|
7154
|
-
|
|
7150
|
+
gn(K, "material", new E({
|
|
7155
7151
|
gl: {
|
|
7156
7152
|
vertex: `precision mediump float;
|
|
7157
7153
|
attribute vec2 position;
|
|
@@ -7172,7 +7168,7 @@ uniform float uTime;
|
|
|
7172
7168
|
uniform vec3 uRay;
|
|
7173
7169
|
uniform vec4 uInputSize;
|
|
7174
7170
|
|
|
7175
|
-
${
|
|
7171
|
+
${vn}
|
|
7176
7172
|
|
|
7177
7173
|
void main(void) {
|
|
7178
7174
|
bool uParallel = uParallel > 0.5;
|
|
@@ -7206,36 +7202,36 @@ void main(void) {
|
|
|
7206
7202
|
}`
|
|
7207
7203
|
}
|
|
7208
7204
|
}));
|
|
7209
|
-
|
|
7205
|
+
Te([
|
|
7210
7206
|
h({ fallback: 0 })
|
|
7211
7207
|
], K.prototype, "time", 2);
|
|
7212
|
-
|
|
7208
|
+
Te([
|
|
7213
7209
|
h({ fallback: 30 })
|
|
7214
7210
|
], K.prototype, "angle", 2);
|
|
7215
|
-
|
|
7211
|
+
Te([
|
|
7216
7212
|
h({ fallback: 0.5 })
|
|
7217
7213
|
], K.prototype, "gain", 2);
|
|
7218
|
-
|
|
7214
|
+
Te([
|
|
7219
7215
|
h({ fallback: 2.5 })
|
|
7220
7216
|
], K.prototype, "lacunarity", 2);
|
|
7221
|
-
|
|
7217
|
+
Te([
|
|
7222
7218
|
h({ fallback: !0 })
|
|
7223
7219
|
], K.prototype, "parallel", 2);
|
|
7224
|
-
|
|
7220
|
+
Te([
|
|
7225
7221
|
h({ default: () => [0, 0] })
|
|
7226
7222
|
], K.prototype, "center", 2);
|
|
7227
|
-
|
|
7223
|
+
Te([
|
|
7228
7224
|
h({ fallback: 1 })
|
|
7229
7225
|
], K.prototype, "alpha", 2);
|
|
7230
|
-
K =
|
|
7226
|
+
K = Te([
|
|
7231
7227
|
b("GodrayEffect")
|
|
7232
7228
|
], K);
|
|
7233
|
-
var
|
|
7234
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7229
|
+
var bn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, Vt = (r, e, t, s) => {
|
|
7230
|
+
for (var i = s > 1 ? void 0 : s ? yn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7235
7231
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7236
|
-
return s && i &&
|
|
7232
|
+
return s && i && bn(e, t, i), i;
|
|
7237
7233
|
};
|
|
7238
|
-
const
|
|
7234
|
+
const xn = `varying vec2 vUv;
|
|
7239
7235
|
uniform sampler2D sampler;
|
|
7240
7236
|
uniform vec2 uOffset;
|
|
7241
7237
|
|
|
@@ -7247,7 +7243,7 @@ void main(void) {
|
|
|
7247
7243
|
color += texture2D(sampler, vec2(vUv.x - uOffset.x, vUv.y - uOffset.y));
|
|
7248
7244
|
color *= 0.25;
|
|
7249
7245
|
gl_FragColor = color;
|
|
7250
|
-
}`,
|
|
7246
|
+
}`, wn = `precision highp float;
|
|
7251
7247
|
varying vec2 vUv;
|
|
7252
7248
|
uniform sampler2D sampler;
|
|
7253
7249
|
uniform vec2 uOffset;
|
|
@@ -7274,7 +7270,7 @@ void main() {
|
|
|
7274
7270
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7275
7271
|
vUv = uv;
|
|
7276
7272
|
}`,
|
|
7277
|
-
fragment: r?.clamp ?
|
|
7273
|
+
fragment: r?.clamp ? wn : xn
|
|
7278
7274
|
}
|
|
7279
7275
|
}), this.setProperties(r).append(e), this._generateKernels();
|
|
7280
7276
|
}
|
|
@@ -7314,24 +7310,24 @@ void main() {
|
|
|
7314
7310
|
});
|
|
7315
7311
|
}
|
|
7316
7312
|
};
|
|
7317
|
-
|
|
7313
|
+
Vt([
|
|
7318
7314
|
h({ fallback: 4 })
|
|
7319
7315
|
], ht.prototype, "strength", 2);
|
|
7320
|
-
|
|
7316
|
+
Vt([
|
|
7321
7317
|
h({ fallback: 3 })
|
|
7322
7318
|
], ht.prototype, "quality", 2);
|
|
7323
|
-
|
|
7319
|
+
Vt([
|
|
7324
7320
|
h({ default: () => [1, 1] })
|
|
7325
7321
|
], ht.prototype, "pixelSize", 2);
|
|
7326
|
-
ht =
|
|
7322
|
+
ht = Vt([
|
|
7327
7323
|
b("KawaseBlurEffect")
|
|
7328
7324
|
], ht);
|
|
7329
|
-
var
|
|
7330
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7325
|
+
var Ls = Object.defineProperty, Pn = Object.getOwnPropertyDescriptor, En = (r, e, t) => e in r ? Ls(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Sr = (r, e, t, s) => {
|
|
7326
|
+
for (var i = s > 1 ? void 0 : s ? Pn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7331
7327
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7332
|
-
return s && i &&
|
|
7333
|
-
},
|
|
7334
|
-
let
|
|
7328
|
+
return s && i && Ls(e, t, i), i;
|
|
7329
|
+
}, Sn = (r, e, t) => En(r, e + "", t);
|
|
7330
|
+
let De = class extends T {
|
|
7335
7331
|
constructor(r, e = []) {
|
|
7336
7332
|
super(), this.setProperties(r).append(e);
|
|
7337
7333
|
}
|
|
@@ -7350,7 +7346,7 @@ let Oe = class extends T {
|
|
|
7350
7346
|
}
|
|
7351
7347
|
apply(r, e, t) {
|
|
7352
7348
|
this.texture && e.redraw(r, () => {
|
|
7353
|
-
this.texture.activate(r, 1), P.draw(r,
|
|
7349
|
+
this.texture.activate(r, 1), P.draw(r, De.material, {
|
|
7354
7350
|
sampler: 0,
|
|
7355
7351
|
mask: 1,
|
|
7356
7352
|
rotation: t.target?.globalRotation ?? 0
|
|
@@ -7358,7 +7354,7 @@ let Oe = class extends T {
|
|
|
7358
7354
|
});
|
|
7359
7355
|
}
|
|
7360
7356
|
};
|
|
7361
|
-
|
|
7357
|
+
Sn(De, "material", new E({
|
|
7362
7358
|
gl: {
|
|
7363
7359
|
vertex: `attribute vec2 position;
|
|
7364
7360
|
in vec2 uv;
|
|
@@ -7393,21 +7389,21 @@ void main(void) {
|
|
|
7393
7389
|
}`
|
|
7394
7390
|
}
|
|
7395
7391
|
}));
|
|
7396
|
-
|
|
7392
|
+
Sr([
|
|
7397
7393
|
h({ internal: !0 })
|
|
7398
|
-
],
|
|
7399
|
-
|
|
7394
|
+
], De.prototype, "texture", 2);
|
|
7395
|
+
Sr([
|
|
7400
7396
|
h({ fallback: "" })
|
|
7401
|
-
],
|
|
7402
|
-
|
|
7397
|
+
], De.prototype, "src", 2);
|
|
7398
|
+
De = Sr([
|
|
7403
7399
|
b("MaskEffect")
|
|
7404
|
-
],
|
|
7405
|
-
var
|
|
7406
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7400
|
+
], De);
|
|
7401
|
+
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, Re = (r, e, t, s) => {
|
|
7402
|
+
for (var i = s > 1 ? void 0 : s ? Tn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7407
7403
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7408
|
-
return s && i &&
|
|
7409
|
-
},
|
|
7410
|
-
const
|
|
7404
|
+
return s && i && Fs(e, t, i), i;
|
|
7405
|
+
}, zs = (r, e, t) => Rn(r, typeof e != "symbol" ? e + "" : e, t);
|
|
7406
|
+
const An = `precision highp float;
|
|
7411
7407
|
varying vec2 vUv;
|
|
7412
7408
|
uniform sampler2D sampler;
|
|
7413
7409
|
uniform vec2 uThickness;
|
|
@@ -7463,7 +7459,7 @@ void main() {
|
|
|
7463
7459
|
gl_Position = vec4(position, 0.0, 1.0);
|
|
7464
7460
|
vUv = uv;
|
|
7465
7461
|
}`,
|
|
7466
|
-
fragment:
|
|
7462
|
+
fragment: An.replace(
|
|
7467
7463
|
/\{ANGLE_STEP\}/,
|
|
7468
7464
|
L.getAngleStep(this.quality).toFixed(7)
|
|
7469
7465
|
)
|
|
@@ -7487,37 +7483,37 @@ void main() {
|
|
|
7487
7483
|
});
|
|
7488
7484
|
}
|
|
7489
7485
|
};
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
|
|
7486
|
+
zs(L, "MIN_SAMPLES", 1);
|
|
7487
|
+
zs(L, "MAX_SAMPLES", 100);
|
|
7488
|
+
Re([
|
|
7493
7489
|
h({ fallback: "#000000ff" })
|
|
7494
7490
|
], L.prototype, "color", 2);
|
|
7495
|
-
|
|
7491
|
+
Re([
|
|
7496
7492
|
h({ fallback: 1 })
|
|
7497
7493
|
], L.prototype, "width", 2);
|
|
7498
|
-
|
|
7494
|
+
Re([
|
|
7499
7495
|
h({ fallback: "solid" })
|
|
7500
7496
|
], L.prototype, "style", 2);
|
|
7501
|
-
|
|
7497
|
+
Re([
|
|
7502
7498
|
h()
|
|
7503
7499
|
], L.prototype, "image", 2);
|
|
7504
|
-
|
|
7500
|
+
Re([
|
|
7505
7501
|
h({ fallback: 1 })
|
|
7506
7502
|
], L.prototype, "opacity", 2);
|
|
7507
|
-
|
|
7503
|
+
Re([
|
|
7508
7504
|
h({ fallback: 0.1 })
|
|
7509
7505
|
], L.prototype, "quality", 2);
|
|
7510
|
-
|
|
7506
|
+
Re([
|
|
7511
7507
|
h({ fallback: !1 })
|
|
7512
7508
|
], L.prototype, "knockout", 2);
|
|
7513
|
-
L =
|
|
7509
|
+
L = Re([
|
|
7514
7510
|
b("OutlineEffect")
|
|
7515
7511
|
], L);
|
|
7516
|
-
var
|
|
7517
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7512
|
+
var Gs = Object.defineProperty, Cn = Object.getOwnPropertyDescriptor, On = (r, e, t) => e in r ? Gs(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Vs = (r, e, t, s) => {
|
|
7513
|
+
for (var i = s > 1 ? void 0 : s ? Cn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7518
7514
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7519
|
-
return s && i &&
|
|
7520
|
-
},
|
|
7515
|
+
return s && i && Gs(e, t, i), i;
|
|
7516
|
+
}, Dn = (r, e, t) => On(r, e + "", t);
|
|
7521
7517
|
let ut = class extends T {
|
|
7522
7518
|
constructor(r, e = []) {
|
|
7523
7519
|
super(), this.setProperties(r).append(e);
|
|
@@ -7539,7 +7535,7 @@ let ut = class extends T {
|
|
|
7539
7535
|
});
|
|
7540
7536
|
}
|
|
7541
7537
|
};
|
|
7542
|
-
|
|
7538
|
+
Dn(ut, "material", new E({
|
|
7543
7539
|
gl: {
|
|
7544
7540
|
vertex: `attribute vec2 position;
|
|
7545
7541
|
attribute vec2 uv;
|
|
@@ -7561,24 +7557,24 @@ void main(void) {
|
|
|
7561
7557
|
}`
|
|
7562
7558
|
}
|
|
7563
7559
|
}));
|
|
7564
|
-
|
|
7560
|
+
Vs([
|
|
7565
7561
|
h({ fallback: 10 })
|
|
7566
7562
|
], ut.prototype, "strength", 2);
|
|
7567
|
-
ut =
|
|
7563
|
+
ut = Vs([
|
|
7568
7564
|
b("PixelateEffect")
|
|
7569
7565
|
], ut);
|
|
7570
|
-
var
|
|
7571
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
7566
|
+
var $s = Object.defineProperty, In = Object.getOwnPropertyDescriptor, Mn = (r, e, t) => e in r ? $s(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, mt = (r, e, t, s) => {
|
|
7567
|
+
for (var i = s > 1 ? void 0 : s ? In(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
7572
7568
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
7573
|
-
return s && i &&
|
|
7574
|
-
},
|
|
7575
|
-
let
|
|
7569
|
+
return s && i && $s(e, t, i), i;
|
|
7570
|
+
}, Nn = (r, e, t) => Mn(r, e + "", t);
|
|
7571
|
+
let xe = class extends T {
|
|
7576
7572
|
constructor(r, e = []) {
|
|
7577
7573
|
super(), this.setProperties(r).append(e);
|
|
7578
7574
|
}
|
|
7579
7575
|
apply(r, e) {
|
|
7580
7576
|
e.redraw(r, () => {
|
|
7581
|
-
P.draw(r,
|
|
7577
|
+
P.draw(r, xe.material, {
|
|
7582
7578
|
sampler: 0,
|
|
7583
7579
|
uCenter: [e.width / 2, e.height / 2],
|
|
7584
7580
|
uInnerRadius: this.innerRadius,
|
|
@@ -7589,7 +7585,7 @@ let ye = class extends T {
|
|
|
7589
7585
|
});
|
|
7590
7586
|
}
|
|
7591
7587
|
};
|
|
7592
|
-
|
|
7588
|
+
Nn(xe, "material", new E({
|
|
7593
7589
|
gl: {
|
|
7594
7590
|
vertex: `attribute vec2 position;
|
|
7595
7591
|
attribute vec2 uv;
|
|
@@ -7677,20 +7673,20 @@ void main() {
|
|
|
7677
7673
|
}));
|
|
7678
7674
|
mt([
|
|
7679
7675
|
h()
|
|
7680
|
-
],
|
|
7676
|
+
], xe.prototype, "center", 2);
|
|
7681
7677
|
mt([
|
|
7682
7678
|
h({ fallback: 20 })
|
|
7683
|
-
],
|
|
7679
|
+
], xe.prototype, "innerRadius", 2);
|
|
7684
7680
|
mt([
|
|
7685
7681
|
h({ fallback: -1 })
|
|
7686
|
-
],
|
|
7682
|
+
], xe.prototype, "radius", 2);
|
|
7687
7683
|
mt([
|
|
7688
7684
|
h({ fallback: 0.1 })
|
|
7689
|
-
],
|
|
7690
|
-
|
|
7685
|
+
], xe.prototype, "strength", 2);
|
|
7686
|
+
xe = mt([
|
|
7691
7687
|
b("ZoomBlurEffect")
|
|
7692
|
-
],
|
|
7693
|
-
function
|
|
7688
|
+
], xe);
|
|
7689
|
+
function It(r, e) {
|
|
7694
7690
|
const { x: t, y: s, width: i, height: o } = e;
|
|
7695
7691
|
let a = !1;
|
|
7696
7692
|
const n = new I().translate(-t, -s).scale(1 / i, 1 / o);
|
|
@@ -7736,12 +7732,12 @@ function Ot(r, e) {
|
|
|
7736
7732
|
}
|
|
7737
7733
|
};
|
|
7738
7734
|
}
|
|
7739
|
-
var
|
|
7735
|
+
var kn = Object.defineProperty, J = (r, e, t, s) => {
|
|
7740
7736
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7741
7737
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7742
|
-
return i &&
|
|
7738
|
+
return i && kn(e, t, i), i;
|
|
7743
7739
|
};
|
|
7744
|
-
class F extends
|
|
7740
|
+
class F extends Pe {
|
|
7745
7741
|
constructor(e) {
|
|
7746
7742
|
super(), this.parent = e;
|
|
7747
7743
|
}
|
|
@@ -7752,7 +7748,7 @@ class F extends we {
|
|
|
7752
7748
|
}
|
|
7753
7749
|
setProperties(e) {
|
|
7754
7750
|
return this._setProperties(
|
|
7755
|
-
V(e) ? void 0 :
|
|
7751
|
+
V(e) ? void 0 : ni(e)
|
|
7756
7752
|
);
|
|
7757
7753
|
}
|
|
7758
7754
|
_updateProperty(e, t, s) {
|
|
@@ -7776,7 +7772,7 @@ class F extends we {
|
|
|
7776
7772
|
}
|
|
7777
7773
|
async loadTexture() {
|
|
7778
7774
|
if (this.linearGradient || this.radialGradient)
|
|
7779
|
-
this.texture = new
|
|
7775
|
+
this.texture = new zt(
|
|
7780
7776
|
this.linearGradient ?? this.radialGradient,
|
|
7781
7777
|
this.parent.size.width,
|
|
7782
7778
|
this.parent.size.height
|
|
@@ -7803,9 +7799,9 @@ class F extends we {
|
|
|
7803
7799
|
let i = {
|
|
7804
7800
|
size: { width: e, height: t }
|
|
7805
7801
|
};
|
|
7806
|
-
this.image === "viewport" ? s.fillStyle = new
|
|
7802
|
+
this.image === "viewport" ? s.fillStyle = new vr() : (i = {
|
|
7807
7803
|
...i,
|
|
7808
|
-
...
|
|
7804
|
+
...It(this, { x: 0, y: 0, width: e, height: t })
|
|
7809
7805
|
}, s.fillStyle = this.animatedTexture?.currentFrame.texture ?? this.texture ?? this.color ?? "#000000FF"), s.fill(i);
|
|
7810
7806
|
}
|
|
7811
7807
|
_getFrameCurrentTime() {
|
|
@@ -7866,15 +7862,15 @@ J([
|
|
|
7866
7862
|
J([
|
|
7867
7863
|
h()
|
|
7868
7864
|
], F.prototype, "opacity");
|
|
7869
|
-
var
|
|
7865
|
+
var Un = Object.defineProperty, Bn = (r, e, t, s) => {
|
|
7870
7866
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7871
7867
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7872
|
-
return i &&
|
|
7868
|
+
return i && Un(e, t, i), i;
|
|
7873
7869
|
};
|
|
7874
|
-
class
|
|
7870
|
+
class Hs extends F {
|
|
7875
7871
|
setProperties(e) {
|
|
7876
7872
|
return super._setProperties(
|
|
7877
|
-
V(e) ? void 0 :
|
|
7873
|
+
V(e) ? void 0 : li(e)
|
|
7878
7874
|
);
|
|
7879
7875
|
}
|
|
7880
7876
|
_updateProperty(e, t, s) {
|
|
@@ -7885,18 +7881,18 @@ class zs extends F {
|
|
|
7885
7881
|
}
|
|
7886
7882
|
}
|
|
7887
7883
|
}
|
|
7888
|
-
|
|
7884
|
+
Bn([
|
|
7889
7885
|
h()
|
|
7890
|
-
],
|
|
7891
|
-
var
|
|
7886
|
+
], Hs.prototype, "fillWithShape");
|
|
7887
|
+
var Ln = Object.defineProperty, Fn = (r, e, t, s) => {
|
|
7892
7888
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7893
7889
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7894
|
-
return i &&
|
|
7890
|
+
return i && Ln(e, t, i), i;
|
|
7895
7891
|
};
|
|
7896
|
-
class
|
|
7892
|
+
class Xs extends F {
|
|
7897
7893
|
setProperties(e) {
|
|
7898
7894
|
return super._setProperties(
|
|
7899
|
-
V(e) ? void 0 :
|
|
7895
|
+
V(e) ? void 0 : ci(e)
|
|
7900
7896
|
);
|
|
7901
7897
|
}
|
|
7902
7898
|
_updateProperty(e, t, s) {
|
|
@@ -7907,18 +7903,18 @@ class Gs extends F {
|
|
|
7907
7903
|
}
|
|
7908
7904
|
}
|
|
7909
7905
|
}
|
|
7910
|
-
|
|
7906
|
+
Fn([
|
|
7911
7907
|
h()
|
|
7912
|
-
],
|
|
7913
|
-
var
|
|
7908
|
+
], Xs.prototype, "fillWithShape");
|
|
7909
|
+
var zn = Object.defineProperty, gt = (r, e, t, s) => {
|
|
7914
7910
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7915
7911
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7916
|
-
return i &&
|
|
7912
|
+
return i && zn(e, t, i), i;
|
|
7917
7913
|
};
|
|
7918
7914
|
class Ze extends F {
|
|
7919
7915
|
setProperties(e) {
|
|
7920
7916
|
return super._setProperties(
|
|
7921
|
-
V(e) ? void 0 :
|
|
7917
|
+
V(e) ? void 0 : hi(e)
|
|
7922
7918
|
);
|
|
7923
7919
|
}
|
|
7924
7920
|
_updateProperty(e, t, s) {
|
|
@@ -7937,8 +7933,8 @@ class Ze extends F {
|
|
|
7937
7933
|
}
|
|
7938
7934
|
draw() {
|
|
7939
7935
|
const { width: e, height: t } = this.parent.size, s = this.parent.context;
|
|
7940
|
-
this.image === "viewport" ? s.strokeStyle = new
|
|
7941
|
-
...
|
|
7936
|
+
this.image === "viewport" ? s.strokeStyle = new vr() : s.strokeStyle = this.texture ?? this.color ?? "#000000FF", s.lineWidth = this.width || 1, s.lineCap = this.lineCap, s.lineJoin = this.lineJoin, s.stroke({
|
|
7937
|
+
...It(this, { x: 0, y: 0, width: e, height: t })
|
|
7942
7938
|
});
|
|
7943
7939
|
}
|
|
7944
7940
|
}
|
|
@@ -7957,18 +7953,18 @@ gt([
|
|
|
7957
7953
|
gt([
|
|
7958
7954
|
h({ fallback: "miter" })
|
|
7959
7955
|
], Ze.prototype, "lineJoin");
|
|
7960
|
-
var
|
|
7956
|
+
var Gn = Object.defineProperty, vt = (r, e, t, s) => {
|
|
7961
7957
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
7962
7958
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
7963
|
-
return i &&
|
|
7959
|
+
return i && Gn(e, t, i), i;
|
|
7964
7960
|
};
|
|
7965
|
-
class Je extends
|
|
7961
|
+
class Je extends Pe {
|
|
7966
7962
|
constructor(e) {
|
|
7967
7963
|
super(), this.parent = e;
|
|
7968
7964
|
}
|
|
7969
7965
|
setProperties(e) {
|
|
7970
7966
|
return super.setProperties(
|
|
7971
|
-
V(e) ? void 0 :
|
|
7967
|
+
V(e) ? void 0 : ui(e)
|
|
7972
7968
|
);
|
|
7973
7969
|
}
|
|
7974
7970
|
_updateProperty(e, t, s) {
|
|
@@ -8002,19 +7998,19 @@ vt([
|
|
|
8002
7998
|
vt([
|
|
8003
7999
|
h({ fallback: 0 })
|
|
8004
8000
|
], Je.prototype, "offsetX");
|
|
8005
|
-
var
|
|
8001
|
+
var Vn = Object.defineProperty, bt = (r, e, t, s) => {
|
|
8006
8002
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8007
8003
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8008
|
-
return i &&
|
|
8004
|
+
return i && Vn(e, t, i), i;
|
|
8009
8005
|
};
|
|
8010
|
-
class Qe extends
|
|
8006
|
+
class Qe extends Pe {
|
|
8011
8007
|
constructor(e) {
|
|
8012
8008
|
super(), this.parent = e, this._updatePath2DSet();
|
|
8013
8009
|
}
|
|
8014
|
-
_path2DSet = new
|
|
8010
|
+
_path2DSet = new wi();
|
|
8015
8011
|
setProperties(e) {
|
|
8016
8012
|
return super.setProperties(
|
|
8017
|
-
V(e) ? void 0 :
|
|
8013
|
+
V(e) ? void 0 : di(e)
|
|
8018
8014
|
);
|
|
8019
8015
|
}
|
|
8020
8016
|
_updateProperty(e, t, s) {
|
|
@@ -8030,11 +8026,11 @@ class Qe extends we {
|
|
|
8030
8026
|
_updatePath2DSet() {
|
|
8031
8027
|
let e;
|
|
8032
8028
|
if (this.svg) {
|
|
8033
|
-
const a =
|
|
8034
|
-
this._path2DSet =
|
|
8029
|
+
const a = Pi(this.svg);
|
|
8030
|
+
this._path2DSet = Ei(a), e = this._path2DSet.viewBox;
|
|
8035
8031
|
} else
|
|
8036
8032
|
this.paths?.forEach((a, n) => {
|
|
8037
|
-
const { data: l, ...c } = a, u = new
|
|
8033
|
+
const { data: l, ...c } = a, u = new Rt();
|
|
8038
8034
|
u.style = c, u.addData(l), this._path2DSet.paths[n] = u;
|
|
8039
8035
|
});
|
|
8040
8036
|
if (!e) {
|
|
@@ -8043,14 +8039,14 @@ class Qe extends we {
|
|
|
8043
8039
|
}
|
|
8044
8040
|
const [t, s, i, o] = e;
|
|
8045
8041
|
this._path2DSet.paths.forEach((a) => {
|
|
8046
|
-
a.applyTransform(new
|
|
8042
|
+
a.applyTransform(new Nr().translate(-t, -s).scale(1 / i, 1 / o));
|
|
8047
8043
|
});
|
|
8048
8044
|
}
|
|
8049
8045
|
draw(e = !1) {
|
|
8050
8046
|
if (!e && this.enabled && this._path2DSet.paths.length) {
|
|
8051
8047
|
const t = this.parent.context, { width: s, height: i } = this.parent.size;
|
|
8052
8048
|
this._path2DSet.paths.forEach((o) => {
|
|
8053
|
-
t.addPath(o.clone().applyTransform(new
|
|
8049
|
+
t.addPath(o.clone().applyTransform(new Nr().scale(s, i)));
|
|
8054
8050
|
});
|
|
8055
8051
|
} else
|
|
8056
8052
|
this._drawRect();
|
|
@@ -8075,39 +8071,39 @@ bt([
|
|
|
8075
8071
|
bt([
|
|
8076
8072
|
h()
|
|
8077
8073
|
], Qe.prototype, "paths");
|
|
8078
|
-
class
|
|
8074
|
+
class or extends he {
|
|
8079
8075
|
constructor(e) {
|
|
8080
8076
|
super(), this.setProperties(e);
|
|
8081
8077
|
}
|
|
8082
8078
|
}
|
|
8083
|
-
const
|
|
8084
|
-
...
|
|
8079
|
+
const jr = {
|
|
8080
|
+
...fi(),
|
|
8085
8081
|
left: 0,
|
|
8086
8082
|
top: 0,
|
|
8087
8083
|
width: 0,
|
|
8088
8084
|
height: 0
|
|
8089
8085
|
};
|
|
8090
|
-
for (const r in
|
|
8091
|
-
|
|
8092
|
-
var
|
|
8086
|
+
for (const r in jr)
|
|
8087
|
+
es(or, r, { fallback: jr[r] });
|
|
8088
|
+
var $n = Object.defineProperty, _e = (r, e, t, s) => {
|
|
8093
8089
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
8094
8090
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
8095
|
-
return i &&
|
|
8091
|
+
return i && $n(e, t, i), i;
|
|
8096
8092
|
};
|
|
8097
|
-
class ie extends
|
|
8093
|
+
class ie extends Pe {
|
|
8098
8094
|
constructor(e) {
|
|
8099
|
-
super(), this.parent = e, this.base = new
|
|
8095
|
+
super(), this.parent = e, this.base = new Si(), this.base.setPropertyAccessor(this);
|
|
8100
8096
|
}
|
|
8101
8097
|
base;
|
|
8102
8098
|
_autoDrawMode;
|
|
8103
8099
|
_autoDrawThreshold = 100;
|
|
8104
|
-
_texture = new
|
|
8100
|
+
_texture = new ys({
|
|
8105
8101
|
mipmap: !0
|
|
8106
8102
|
});
|
|
8107
8103
|
_textureMap = /* @__PURE__ */ new Map();
|
|
8108
8104
|
setProperties(e) {
|
|
8109
8105
|
return super.setProperties(
|
|
8110
|
-
V(e) ? void 0 :
|
|
8106
|
+
V(e) ? void 0 : pi(e)
|
|
8111
8107
|
);
|
|
8112
8108
|
}
|
|
8113
8109
|
_updateProperty(e, t, s) {
|
|
@@ -8140,17 +8136,17 @@ class ie extends we {
|
|
|
8140
8136
|
const i = [];
|
|
8141
8137
|
if (t.fragments.forEach((o, a) => {
|
|
8142
8138
|
if (o.characters.length) {
|
|
8143
|
-
const n =
|
|
8139
|
+
const n = Yt.from(
|
|
8144
8140
|
...o.characters.map((l) => l.compatibleGlyphBox)
|
|
8145
8141
|
);
|
|
8146
8142
|
this._updateTexture(`${s}.${a}.fill`, o.fill, n), this._updateTexture(`${s}.${a}.outline`, o.outline, n), i.push(n);
|
|
8147
8143
|
}
|
|
8148
8144
|
}), i.length) {
|
|
8149
|
-
const o =
|
|
8145
|
+
const o = Yt.from(...i);
|
|
8150
8146
|
this._updateTexture(`${s}.fill`, t.fill, o), this._updateTexture(`${s}.outline`, t.outline, o), e.push(o);
|
|
8151
8147
|
}
|
|
8152
8148
|
}), e.length) {
|
|
8153
|
-
const t =
|
|
8149
|
+
const t = Yt.from(...e);
|
|
8154
8150
|
this._updateTexture("fill", this.fill, t), this._updateTexture("outline", this.outline, t);
|
|
8155
8151
|
}
|
|
8156
8152
|
}
|
|
@@ -8161,14 +8157,14 @@ class ie extends we {
|
|
|
8161
8157
|
}), this.parent.requestRender());
|
|
8162
8158
|
}
|
|
8163
8159
|
async _loadTexture(e, t) {
|
|
8164
|
-
return e.linearGradient || e.radialGradient ? new
|
|
8160
|
+
return e.linearGradient || e.radialGradient ? new zt(
|
|
8165
8161
|
e.linearGradient ?? e.radialGradient,
|
|
8166
8162
|
t.width,
|
|
8167
8163
|
t.height
|
|
8168
8164
|
) : V(e.image) ? void 0 : (this.parent.tree?.log(`load image ${e.image}`), await $.texture.load(e.image));
|
|
8169
8165
|
}
|
|
8170
8166
|
setContent(e) {
|
|
8171
|
-
this.content =
|
|
8167
|
+
this.content = _i(e);
|
|
8172
8168
|
}
|
|
8173
8169
|
measure() {
|
|
8174
8170
|
return this.update(), this.base.measure();
|
|
@@ -8194,13 +8190,13 @@ class ie extends we {
|
|
|
8194
8190
|
this.base.pathSets.forEach((t) => {
|
|
8195
8191
|
t.paths.forEach((s) => {
|
|
8196
8192
|
const i = s.getMeta();
|
|
8197
|
-
if (i instanceof
|
|
8193
|
+
if (i instanceof Ti) {
|
|
8198
8194
|
const o = i.parent.index, a = i.parent.parent.index;
|
|
8199
8195
|
if (s.style.fill && !V(s.style.fill))
|
|
8200
8196
|
if (typeof s.style.fill == "object") {
|
|
8201
8197
|
const n = s.style.fill, l = this._textureMap.get(`${a}.${o}.fill`) ?? this._textureMap.get(`${a}.fill`) ?? this._textureMap.get("fill");
|
|
8202
8198
|
n.enabled !== !1 && (l || n.color) && (e.addPath(s), e.style = { ...s.style }, e.fillStyle = l?.texture ?? n.color, e.fill({
|
|
8203
|
-
...
|
|
8199
|
+
...It(
|
|
8204
8200
|
n,
|
|
8205
8201
|
l?.box ?? {
|
|
8206
8202
|
x: 0,
|
|
@@ -8219,7 +8215,7 @@ class ie extends we {
|
|
|
8219
8215
|
if (typeof s.style.stroke == "object") {
|
|
8220
8216
|
const n = s.style.stroke, l = this._textureMap.get(`${a}.${o}.outline`) ?? this._textureMap.get(`${a}.outline`) ?? this._textureMap.get("outline");
|
|
8221
8217
|
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({
|
|
8222
|
-
...
|
|
8218
|
+
...It(
|
|
8223
8219
|
n,
|
|
8224
8220
|
l?.box ?? {
|
|
8225
8221
|
x: 0,
|
|
@@ -8267,46 +8263,46 @@ class ie extends we {
|
|
|
8267
8263
|
}
|
|
8268
8264
|
}
|
|
8269
8265
|
}
|
|
8270
|
-
|
|
8266
|
+
_e([
|
|
8271
8267
|
h({ fallback: !0 })
|
|
8272
8268
|
], ie.prototype, "enabled");
|
|
8273
|
-
|
|
8269
|
+
_e([
|
|
8274
8270
|
h({ fallback: () => [] })
|
|
8275
8271
|
], ie.prototype, "content");
|
|
8276
|
-
|
|
8272
|
+
_e([
|
|
8277
8273
|
h({ alias: "parent.style.json" })
|
|
8278
8274
|
], ie.prototype, "style");
|
|
8279
|
-
|
|
8275
|
+
_e([
|
|
8280
8276
|
h()
|
|
8281
8277
|
], ie.prototype, "effects");
|
|
8282
|
-
|
|
8278
|
+
_e([
|
|
8283
8279
|
h()
|
|
8284
8280
|
], ie.prototype, "fill");
|
|
8285
|
-
|
|
8281
|
+
_e([
|
|
8286
8282
|
h()
|
|
8287
8283
|
], ie.prototype, "outline");
|
|
8288
|
-
|
|
8284
|
+
_e([
|
|
8289
8285
|
h({ alias: "base.measureDom" })
|
|
8290
8286
|
], ie.prototype, "measureDom");
|
|
8291
|
-
|
|
8287
|
+
_e([
|
|
8292
8288
|
h({ alias: "base.fonts" })
|
|
8293
8289
|
], ie.prototype, "fonts");
|
|
8294
|
-
|
|
8290
|
+
_e([
|
|
8295
8291
|
h({ fallback: "auto" })
|
|
8296
8292
|
], ie.prototype, "drawMode");
|
|
8297
|
-
var
|
|
8298
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8293
|
+
var Hn = Object.getOwnPropertyDescriptor, Xn = (r, e, t, s) => {
|
|
8294
|
+
for (var i = s > 1 ? void 0 : s ? Hn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8299
8295
|
(a = r[o]) && (i = a(i) || i);
|
|
8300
8296
|
return i;
|
|
8301
8297
|
};
|
|
8302
|
-
const
|
|
8303
|
-
let
|
|
8298
|
+
const jn = new Set(Object.keys(gi())), Wn = new Set(Object.keys(mi()));
|
|
8299
|
+
let ar = class extends Oe {
|
|
8304
8300
|
size = new C().on("update", () => {
|
|
8305
8301
|
this.onUpdateStyleProperty("transform", this.style.transform, void 0), this.onUpdateStyleProperty("transformOrigin", this.style.transformOrigin, void 0), this.updateGlobalTransform(), this.requestRender();
|
|
8306
8302
|
});
|
|
8307
8303
|
_allowPointerEvents = !0;
|
|
8308
8304
|
_overflowHidden = !1;
|
|
8309
|
-
_style = new
|
|
8305
|
+
_style = new or().on("updateProperty", (...r) => {
|
|
8310
8306
|
this.onUpdateStyleProperty(r[0], r[1], r[2]);
|
|
8311
8307
|
});
|
|
8312
8308
|
get style() {
|
|
@@ -8315,7 +8311,7 @@ let rr = class extends Ce {
|
|
|
8315
8311
|
set style(r) {
|
|
8316
8312
|
this._style.resetProperties().setProperties(r);
|
|
8317
8313
|
}
|
|
8318
|
-
_background = new
|
|
8314
|
+
_background = new Hs(this);
|
|
8319
8315
|
get background() {
|
|
8320
8316
|
return this._background;
|
|
8321
8317
|
}
|
|
@@ -8343,7 +8339,7 @@ let rr = class extends Ce {
|
|
|
8343
8339
|
set outline(r) {
|
|
8344
8340
|
this._outline.resetProperties().setProperties(r);
|
|
8345
8341
|
}
|
|
8346
|
-
_foreground = new
|
|
8342
|
+
_foreground = new Xs(this);
|
|
8347
8343
|
get foreground() {
|
|
8348
8344
|
return this._foreground;
|
|
8349
8345
|
}
|
|
@@ -8366,7 +8362,7 @@ let rr = class extends Ce {
|
|
|
8366
8362
|
}
|
|
8367
8363
|
_styleFilter;
|
|
8368
8364
|
constructor(r, e = []) {
|
|
8369
|
-
super(), this.style = new
|
|
8365
|
+
super(), this.style = new or(), this.setProperties(r).append(e);
|
|
8370
8366
|
}
|
|
8371
8367
|
_treeEnter(r) {
|
|
8372
8368
|
super._treeEnter(r), this._text.isValid() && this._text.update();
|
|
@@ -8394,7 +8390,7 @@ let rr = class extends Ce {
|
|
|
8394
8390
|
_updateStyleProperty(r, e, t) {
|
|
8395
8391
|
switch (r) {
|
|
8396
8392
|
case "rotate":
|
|
8397
|
-
this.rotation = e *
|
|
8393
|
+
this.rotation = e * Qi;
|
|
8398
8394
|
break;
|
|
8399
8395
|
case "scaleX":
|
|
8400
8396
|
this.scale.x = e, this.text.isValid() && (e ^ t) < 0 && this.requestRender();
|
|
@@ -8409,7 +8405,7 @@ let rr = class extends Ce {
|
|
|
8409
8405
|
this.skew.y = e;
|
|
8410
8406
|
break;
|
|
8411
8407
|
case "transform":
|
|
8412
|
-
|
|
8408
|
+
Ua(
|
|
8413
8409
|
e ?? "",
|
|
8414
8410
|
this.size.width,
|
|
8415
8411
|
this.size.height,
|
|
@@ -8417,7 +8413,7 @@ let rr = class extends Ce {
|
|
|
8417
8413
|
), this.updateGlobalTransform();
|
|
8418
8414
|
break;
|
|
8419
8415
|
case "transformOrigin": {
|
|
8420
|
-
const s =
|
|
8416
|
+
const s = Ba(e ?? "");
|
|
8421
8417
|
this.pivot.set(
|
|
8422
8418
|
s[0] * this.size.width,
|
|
8423
8419
|
s[1] * this.size.height
|
|
@@ -8465,7 +8461,7 @@ let rr = class extends Ce {
|
|
|
8465
8461
|
this.requestRender();
|
|
8466
8462
|
break;
|
|
8467
8463
|
}
|
|
8468
|
-
(
|
|
8464
|
+
(Wn.has(r) || jn.has(r)) && this.text.isValid() && this.text.update();
|
|
8469
8465
|
}
|
|
8470
8466
|
_process(r) {
|
|
8471
8467
|
this.foreground.process(r), this.fill.process(r), this.text.process(r), this.outline.process(r), this.background.process(r), super._process(r);
|
|
@@ -8477,7 +8473,7 @@ let rr = class extends Ce {
|
|
|
8477
8473
|
const e = "__$style.maskImage";
|
|
8478
8474
|
if (r && r !== "none") {
|
|
8479
8475
|
const t = this.getNode(e);
|
|
8480
|
-
t ? t.src = r : this.appendChild(new
|
|
8476
|
+
t ? t.src = r : this.appendChild(new De({ name: e, src: r }), "back");
|
|
8481
8477
|
} else {
|
|
8482
8478
|
const t = this.getNode(e);
|
|
8483
8479
|
t && this.removeChild(t);
|
|
@@ -8617,7 +8613,7 @@ let rr = class extends Ce {
|
|
|
8617
8613
|
}
|
|
8618
8614
|
toJSON() {
|
|
8619
8615
|
const r = (e) => Object.keys(e).length > 0 ? e : void 0;
|
|
8620
|
-
return
|
|
8616
|
+
return rs({
|
|
8621
8617
|
...super.toJSON(),
|
|
8622
8618
|
style: r(this.style.toJSON()),
|
|
8623
8619
|
background: r(this.background.toJSON()),
|
|
@@ -8630,9 +8626,9 @@ let rr = class extends Ce {
|
|
|
8630
8626
|
});
|
|
8631
8627
|
}
|
|
8632
8628
|
};
|
|
8633
|
-
|
|
8629
|
+
ar = Xn([
|
|
8634
8630
|
b("BaseElement2D")
|
|
8635
|
-
],
|
|
8631
|
+
], ar);
|
|
8636
8632
|
const R = {
|
|
8637
8633
|
left: 0,
|
|
8638
8634
|
// Edge.Left
|
|
@@ -8652,7 +8648,7 @@ const R = {
|
|
|
8652
8648
|
// Edge.Vertical
|
|
8653
8649
|
all: 8
|
|
8654
8650
|
// Edge.All
|
|
8655
|
-
},
|
|
8651
|
+
}, qn = {
|
|
8656
8652
|
column: 0,
|
|
8657
8653
|
// Gutter.Column
|
|
8658
8654
|
row: 1,
|
|
@@ -8678,21 +8674,21 @@ const R = {
|
|
|
8678
8674
|
// Align.SpaceAround
|
|
8679
8675
|
"space-evenly": 8
|
|
8680
8676
|
// Align.SpaceEvenly
|
|
8681
|
-
},
|
|
8677
|
+
}, Wr = {
|
|
8682
8678
|
flex: 0,
|
|
8683
8679
|
// Display.Flex
|
|
8684
8680
|
none: 1,
|
|
8685
8681
|
// Display.None
|
|
8686
8682
|
contents: 2
|
|
8687
8683
|
// Display.Contents
|
|
8688
|
-
},
|
|
8684
|
+
}, nr = {
|
|
8689
8685
|
inherit: 0,
|
|
8690
8686
|
// Direction.Inherit
|
|
8691
8687
|
ltr: 1,
|
|
8692
8688
|
// Direction.LTR
|
|
8693
8689
|
rtl: 2
|
|
8694
8690
|
// Direction.RTL
|
|
8695
|
-
},
|
|
8691
|
+
}, qr = {
|
|
8696
8692
|
column: 0,
|
|
8697
8693
|
// FlexDirection.Column
|
|
8698
8694
|
"column-reverse": 1,
|
|
@@ -8701,14 +8697,14 @@ const R = {
|
|
|
8701
8697
|
// FlexDirection.Row
|
|
8702
8698
|
"row-reverse": 3
|
|
8703
8699
|
// FlexDirection.RowReverse
|
|
8704
|
-
},
|
|
8700
|
+
}, Yr = {
|
|
8705
8701
|
"no-wrap": 0,
|
|
8706
8702
|
// Wrap.NoWrap
|
|
8707
8703
|
wrap: 1,
|
|
8708
8704
|
// Wrap.Wrap
|
|
8709
8705
|
"Wrap-reverse": 2
|
|
8710
8706
|
// Wrap.WrapReverse
|
|
8711
|
-
},
|
|
8707
|
+
}, Kr = {
|
|
8712
8708
|
"flex-start": 0,
|
|
8713
8709
|
// Justify.FlexStart
|
|
8714
8710
|
center: 1,
|
|
@@ -8721,27 +8717,27 @@ const R = {
|
|
|
8721
8717
|
// Justify.SpaceAround
|
|
8722
8718
|
"space-evenly": 5
|
|
8723
8719
|
// Justify.SpaceEvenly
|
|
8724
|
-
},
|
|
8720
|
+
}, Zr = {
|
|
8725
8721
|
visible: 0,
|
|
8726
8722
|
// Overflow.Visible
|
|
8727
8723
|
hidden: 1,
|
|
8728
8724
|
// Overflow.Hidden
|
|
8729
8725
|
scroll: 2
|
|
8730
8726
|
// Overflow.Scroll
|
|
8731
|
-
},
|
|
8727
|
+
}, Jr = {
|
|
8732
8728
|
static: 0,
|
|
8733
8729
|
// PositionType.Static
|
|
8734
8730
|
relative: 1,
|
|
8735
8731
|
// PositionType.Relative
|
|
8736
8732
|
absolute: 2
|
|
8737
8733
|
// PositionType.Absolute
|
|
8738
|
-
},
|
|
8734
|
+
}, Qr = {
|
|
8739
8735
|
"border-box": 0,
|
|
8740
8736
|
// BoxSizing.BorderBox
|
|
8741
8737
|
"content-box": 1
|
|
8742
8738
|
// BoxSizing.ContentBox
|
|
8743
8739
|
};
|
|
8744
|
-
class
|
|
8740
|
+
class Tr {
|
|
8745
8741
|
constructor(e) {
|
|
8746
8742
|
this._element = e;
|
|
8747
8743
|
}
|
|
@@ -8750,7 +8746,7 @@ class wr {
|
|
|
8750
8746
|
const { loadYoga: e } = await import("yoga-layout/load");
|
|
8751
8747
|
this._yoga = await e();
|
|
8752
8748
|
}
|
|
8753
|
-
_node =
|
|
8749
|
+
_node = Tr._yoga?.Node.create();
|
|
8754
8750
|
get _style() {
|
|
8755
8751
|
return this._element.style;
|
|
8756
8752
|
}
|
|
@@ -8797,12 +8793,12 @@ class wr {
|
|
|
8797
8793
|
break;
|
|
8798
8794
|
case "direction":
|
|
8799
8795
|
i.setDirection(
|
|
8800
|
-
t ?
|
|
8796
|
+
t ? nr[t] : nr.inherit
|
|
8801
8797
|
);
|
|
8802
8798
|
break;
|
|
8803
8799
|
case "display":
|
|
8804
8800
|
i.setDisplay(
|
|
8805
|
-
t ?
|
|
8801
|
+
t ? Wr[t] : Wr.flex
|
|
8806
8802
|
);
|
|
8807
8803
|
break;
|
|
8808
8804
|
case "flex":
|
|
@@ -8813,7 +8809,7 @@ class wr {
|
|
|
8813
8809
|
break;
|
|
8814
8810
|
case "flexDirection":
|
|
8815
8811
|
i.setFlexDirection(
|
|
8816
|
-
t ?
|
|
8812
|
+
t ? qr[t] : qr.row
|
|
8817
8813
|
);
|
|
8818
8814
|
break;
|
|
8819
8815
|
case "flexGrow":
|
|
@@ -8824,7 +8820,7 @@ class wr {
|
|
|
8824
8820
|
break;
|
|
8825
8821
|
case "flexWrap":
|
|
8826
8822
|
i.setFlexWrap(
|
|
8827
|
-
t ?
|
|
8823
|
+
t ? Yr[t] : Yr.wrap
|
|
8828
8824
|
);
|
|
8829
8825
|
break;
|
|
8830
8826
|
case "height":
|
|
@@ -8832,11 +8828,11 @@ class wr {
|
|
|
8832
8828
|
break;
|
|
8833
8829
|
case "justifyContent":
|
|
8834
8830
|
i.setJustifyContent(
|
|
8835
|
-
t ?
|
|
8831
|
+
t ? Kr[t] : Kr["flex-start"]
|
|
8836
8832
|
);
|
|
8837
8833
|
break;
|
|
8838
8834
|
case "gap":
|
|
8839
|
-
t !== void 0 && i.setGap(
|
|
8835
|
+
t !== void 0 && i.setGap(qn.all, t);
|
|
8840
8836
|
break;
|
|
8841
8837
|
case "marginTop":
|
|
8842
8838
|
i.setMargin(R.top, t);
|
|
@@ -8869,7 +8865,7 @@ class wr {
|
|
|
8869
8865
|
break;
|
|
8870
8866
|
case "overflow":
|
|
8871
8867
|
i.setOverflow(
|
|
8872
|
-
t ?
|
|
8868
|
+
t ? Zr[t] : Zr.visible
|
|
8873
8869
|
);
|
|
8874
8870
|
break;
|
|
8875
8871
|
case "paddingTop":
|
|
@@ -8901,12 +8897,12 @@ class wr {
|
|
|
8901
8897
|
break;
|
|
8902
8898
|
case "position":
|
|
8903
8899
|
i.setPositionType(
|
|
8904
|
-
t ?
|
|
8900
|
+
t ? Jr[t] : Jr.static
|
|
8905
8901
|
);
|
|
8906
8902
|
break;
|
|
8907
8903
|
case "boxSizing":
|
|
8908
8904
|
i.setBoxSizing(
|
|
8909
|
-
t ?
|
|
8905
|
+
t ? Qr[t] : Qr["content-box"]
|
|
8910
8906
|
);
|
|
8911
8907
|
break;
|
|
8912
8908
|
case "width":
|
|
@@ -8915,13 +8911,13 @@ class wr {
|
|
|
8915
8911
|
}
|
|
8916
8912
|
}
|
|
8917
8913
|
}
|
|
8918
|
-
var
|
|
8919
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8914
|
+
var Yn = Object.defineProperty, Kn = Object.getOwnPropertyDescriptor, js = (r, e, t, s) => {
|
|
8915
|
+
for (var i = s > 1 ? void 0 : s ? Kn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8920
8916
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8921
|
-
return s && i &&
|
|
8917
|
+
return s && i && Yn(e, t, i), i;
|
|
8922
8918
|
};
|
|
8923
|
-
let te = class extends
|
|
8924
|
-
_flex = new
|
|
8919
|
+
let te = class extends ar {
|
|
8920
|
+
_flex = new Tr(this);
|
|
8925
8921
|
constructor(r, e = []) {
|
|
8926
8922
|
super(), this.setProperties(r).append(e);
|
|
8927
8923
|
}
|
|
@@ -8961,7 +8957,7 @@ let te = class extends rr {
|
|
|
8961
8957
|
super._unparented(r), r instanceof te && r._flex?._node && this._flex._node && r._flex._node.removeChild(this._flex._node);
|
|
8962
8958
|
}
|
|
8963
8959
|
updateLayout() {
|
|
8964
|
-
if (this.calculateLayout(void 0, void 0,
|
|
8960
|
+
if (this.calculateLayout(void 0, void 0, nr.ltr), this._flex._node) {
|
|
8965
8961
|
const { left: r, top: e, width: t, height: s } = this._flex._node.getComputedLayout();
|
|
8966
8962
|
this.position.x = r, this.position.y = e, this.size.x = t, this.size.y = s;
|
|
8967
8963
|
}
|
|
@@ -8971,13 +8967,13 @@ let te = class extends rr {
|
|
|
8971
8967
|
s?._flex?.calculateLayout ? s?._flex.calculateLayout(r, e, t) : this._flex.calculateLayout(r, e, t);
|
|
8972
8968
|
}
|
|
8973
8969
|
};
|
|
8974
|
-
|
|
8970
|
+
js([
|
|
8975
8971
|
h({ fallback: "inherit" })
|
|
8976
8972
|
], te.prototype, "layoutMode", 2);
|
|
8977
|
-
te =
|
|
8973
|
+
te = js([
|
|
8978
8974
|
b("Element2D")
|
|
8979
8975
|
], te);
|
|
8980
|
-
class
|
|
8976
|
+
class Ws extends te {
|
|
8981
8977
|
texture;
|
|
8982
8978
|
constructor(e, t = []) {
|
|
8983
8979
|
super(), this.setProperties(e).append(t);
|
|
@@ -8986,13 +8982,13 @@ class $s extends te {
|
|
|
8986
8982
|
this.texture?.isValid() && (this.shape.draw(!0), this.context.fillStyle = this.texture, this.context.fill());
|
|
8987
8983
|
}
|
|
8988
8984
|
}
|
|
8989
|
-
var
|
|
8990
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
8985
|
+
var Zn = Object.defineProperty, Jn = Object.getOwnPropertyDescriptor, qs = (r, e, t, s) => {
|
|
8986
|
+
for (var i = s > 1 ? void 0 : s ? Jn(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
8991
8987
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
8992
|
-
return s && i &&
|
|
8988
|
+
return s && i && Zn(e, t, i), i;
|
|
8993
8989
|
};
|
|
8994
|
-
let
|
|
8995
|
-
texture = new
|
|
8990
|
+
let lr = class extends Ws {
|
|
8991
|
+
texture = new ys();
|
|
8996
8992
|
animation;
|
|
8997
8993
|
constructor(r, e = []) {
|
|
8998
8994
|
super(), this.setProperties(r), this.append(e);
|
|
@@ -9021,18 +9017,18 @@ let ir = class extends $s {
|
|
|
9021
9017
|
this.animation?.goToAndStop(this.currentTime, !1), this.texture.requestUpdate("source"), this.requestRender(), super._process(r);
|
|
9022
9018
|
}
|
|
9023
9019
|
};
|
|
9024
|
-
|
|
9020
|
+
qs([
|
|
9025
9021
|
h({ fallback: "" })
|
|
9026
|
-
],
|
|
9027
|
-
|
|
9022
|
+
], lr.prototype, "src", 2);
|
|
9023
|
+
lr = qs([
|
|
9028
9024
|
b("Lottie2D")
|
|
9029
|
-
],
|
|
9030
|
-
var
|
|
9025
|
+
], lr);
|
|
9026
|
+
var Qn = Object.defineProperty, el = (r, e, t, s) => {
|
|
9031
9027
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
9032
9028
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
9033
|
-
return i &&
|
|
9029
|
+
return i && Qn(e, t, i), i;
|
|
9034
9030
|
};
|
|
9035
|
-
class
|
|
9031
|
+
class tl extends te {
|
|
9036
9032
|
constructor(e, t = []) {
|
|
9037
9033
|
super(), this.setProperties(e).append(t);
|
|
9038
9034
|
}
|
|
@@ -9055,15 +9051,15 @@ class Kn extends te {
|
|
|
9055
9051
|
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);
|
|
9056
9052
|
}
|
|
9057
9053
|
}
|
|
9058
|
-
|
|
9054
|
+
el([
|
|
9059
9055
|
h({ fallback: 6 })
|
|
9060
|
-
],
|
|
9061
|
-
var
|
|
9062
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9056
|
+
], tl.prototype, "handleSize");
|
|
9057
|
+
var rl = Object.defineProperty, sl = Object.getOwnPropertyDescriptor, Ys = (r, e, t, s) => {
|
|
9058
|
+
for (var i = s > 1 ? void 0 : s ? sl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9063
9059
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9064
|
-
return s && i &&
|
|
9060
|
+
return s && i && rl(e, t, i), i;
|
|
9065
9061
|
};
|
|
9066
|
-
let
|
|
9062
|
+
let cr = class extends Ws {
|
|
9067
9063
|
get videoDuration() {
|
|
9068
9064
|
return (this.texture?.duration ?? 0) * 1e3;
|
|
9069
9065
|
}
|
|
@@ -9098,18 +9094,18 @@ let or = class extends $s {
|
|
|
9098
9094
|
this._updateVideoCurrentTime(), super._process(r);
|
|
9099
9095
|
}
|
|
9100
9096
|
};
|
|
9101
|
-
|
|
9097
|
+
Ys([
|
|
9102
9098
|
h({ fallback: "" })
|
|
9103
|
-
],
|
|
9104
|
-
|
|
9099
|
+
], cr.prototype, "src", 2);
|
|
9100
|
+
cr = Ys([
|
|
9105
9101
|
b("Video2D")
|
|
9106
|
-
],
|
|
9107
|
-
var
|
|
9108
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9102
|
+
], cr);
|
|
9103
|
+
var il = Object.defineProperty, ol = Object.getOwnPropertyDescriptor, $t = (r, e, t, s) => {
|
|
9104
|
+
for (var i = s > 1 ? void 0 : s ? ol(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9109
9105
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
9110
|
-
return s && i &&
|
|
9106
|
+
return s && i && il(e, t, i), i;
|
|
9111
9107
|
};
|
|
9112
|
-
const
|
|
9108
|
+
const al = (r) => r, nl = yt(0.25, 0.1, 0.25, 1), ll = yt(0.42, 0, 1, 1), cl = yt(0, 0, 0.58, 1), hl = yt(0.42, 0, 0.58, 1);
|
|
9113
9109
|
function yt(r, e, t, s) {
|
|
9114
9110
|
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) * _;
|
|
9115
9111
|
function p(_) {
|
|
@@ -9131,17 +9127,17 @@ function yt(r, e, t, s) {
|
|
|
9131
9127
|
}
|
|
9132
9128
|
return (_) => m(p(_));
|
|
9133
9129
|
}
|
|
9134
|
-
const
|
|
9135
|
-
linear:
|
|
9136
|
-
ease:
|
|
9137
|
-
easeIn:
|
|
9138
|
-
easeOut:
|
|
9139
|
-
easeInOut:
|
|
9130
|
+
const tr = {
|
|
9131
|
+
linear: al,
|
|
9132
|
+
ease: nl,
|
|
9133
|
+
easeIn: ll,
|
|
9134
|
+
easeOut: cl,
|
|
9135
|
+
easeInOut: hl
|
|
9140
9136
|
};
|
|
9141
9137
|
let dt = class extends q {
|
|
9142
9138
|
_keyframes = [];
|
|
9143
9139
|
_isFirstUpdatePosition = !1;
|
|
9144
|
-
_cachedProps = new
|
|
9140
|
+
_cachedProps = new vi();
|
|
9145
9141
|
_stoped = !1;
|
|
9146
9142
|
constructor(r, e = []) {
|
|
9147
9143
|
super(), this.setProperties(r).append(e);
|
|
@@ -9232,9 +9228,9 @@ let dt = class extends q {
|
|
|
9232
9228
|
}
|
|
9233
9229
|
_parseEasing(r) {
|
|
9234
9230
|
if (!r)
|
|
9235
|
-
return
|
|
9236
|
-
if (r in
|
|
9237
|
-
return
|
|
9231
|
+
return tr.linear;
|
|
9232
|
+
if (r in tr)
|
|
9233
|
+
return tr[r];
|
|
9238
9234
|
const e = r.replace(/cubic-bezier\((.+)\)/, "$1").split(",").map((t) => Number(t));
|
|
9239
9235
|
return yt(e[0], e[1], e[2], e[3]);
|
|
9240
9236
|
}
|
|
@@ -9286,13 +9282,13 @@ let dt = class extends q {
|
|
|
9286
9282
|
let o, a;
|
|
9287
9283
|
if (e === "none" && (e = void 0), t === "none" && (t = void 0), e === void 0 || t === void 0)
|
|
9288
9284
|
if (e !== void 0)
|
|
9289
|
-
o =
|
|
9285
|
+
o = Et(r, String(e), i), a = Ur(o);
|
|
9290
9286
|
else if (t !== void 0)
|
|
9291
|
-
a =
|
|
9287
|
+
a = Et(r, String(t), i), o = Ur(a);
|
|
9292
9288
|
else
|
|
9293
9289
|
return;
|
|
9294
9290
|
else
|
|
9295
|
-
o =
|
|
9291
|
+
o = Et(r, String(e), i), a = Et(r, String(t), i);
|
|
9296
9292
|
if (Array.isArray(o) && Array.isArray(a)) {
|
|
9297
9293
|
const n = /* @__PURE__ */ new Set(), l = {}, c = {};
|
|
9298
9294
|
o.forEach(({ name: d, args: f }) => {
|
|
@@ -9331,16 +9327,16 @@ let dt = class extends q {
|
|
|
9331
9327
|
});
|
|
9332
9328
|
}
|
|
9333
9329
|
};
|
|
9334
|
-
|
|
9330
|
+
$t([
|
|
9335
9331
|
h({ fallback: "parent" })
|
|
9336
9332
|
], dt.prototype, "effectMode", 2);
|
|
9337
|
-
|
|
9333
|
+
$t([
|
|
9338
9334
|
h({ default: () => [] })
|
|
9339
9335
|
], dt.prototype, "keyframes", 2);
|
|
9340
|
-
|
|
9336
|
+
$t([
|
|
9341
9337
|
h()
|
|
9342
9338
|
], dt.prototype, "easing", 2);
|
|
9343
|
-
dt =
|
|
9339
|
+
dt = $t([
|
|
9344
9340
|
b("Animation", {
|
|
9345
9341
|
renderMode: "disabled",
|
|
9346
9342
|
processMode: "pausable",
|
|
@@ -9348,10 +9344,10 @@ dt = Gt([
|
|
|
9348
9344
|
duration: 2e3
|
|
9349
9345
|
})
|
|
9350
9346
|
], dt);
|
|
9351
|
-
class
|
|
9347
|
+
class Rr extends we {
|
|
9352
9348
|
static _instance;
|
|
9353
9349
|
static get instance() {
|
|
9354
|
-
return this._instance || (this._instance = new
|
|
9350
|
+
return this._instance || (this._instance = new Rr()), this._instance;
|
|
9355
9351
|
}
|
|
9356
9352
|
playbackRate = 1;
|
|
9357
9353
|
muted = !1;
|
|
@@ -9379,7 +9375,7 @@ class Pr extends xe {
|
|
|
9379
9375
|
return this.paused = !this.paused, this.refreshPaused(), this.paused;
|
|
9380
9376
|
}
|
|
9381
9377
|
}
|
|
9382
|
-
class
|
|
9378
|
+
class Mt extends we {
|
|
9383
9379
|
static PADDING = 0.1;
|
|
9384
9380
|
_source = null;
|
|
9385
9381
|
_audio = null;
|
|
@@ -9500,7 +9496,7 @@ class Dt extends xe {
|
|
|
9500
9496
|
if (!this._source)
|
|
9501
9497
|
return;
|
|
9502
9498
|
const { start: t = 0, end: s = 0 } = e;
|
|
9503
|
-
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 -
|
|
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 - Mt.PADDING), this._end = Math.min(this._end + Mt.PADDING, this._duration), this._source.onloadedmetadata = () => {
|
|
9504
9500
|
this._source && (this._source.currentTime = t, this._source.onloadedmetadata = null, this.emit("progress", t, this._duration), B.on(this._onUpdate));
|
|
9505
9501
|
}, this._source.onended = this._onComplete.bind(this), this._source.play(), this.emit("start");
|
|
9506
9502
|
}
|
|
@@ -9516,7 +9512,7 @@ class Dt extends xe {
|
|
|
9516
9512
|
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);
|
|
9517
9513
|
}
|
|
9518
9514
|
}
|
|
9519
|
-
class
|
|
9515
|
+
class ul {
|
|
9520
9516
|
constructor(e) {
|
|
9521
9517
|
this.parent = e;
|
|
9522
9518
|
}
|
|
@@ -9535,7 +9531,7 @@ class al {
|
|
|
9535
9531
|
return !!this.source && this.source.readyState === 4;
|
|
9536
9532
|
}
|
|
9537
9533
|
get context() {
|
|
9538
|
-
return
|
|
9534
|
+
return Rr.instance;
|
|
9539
9535
|
}
|
|
9540
9536
|
async load() {
|
|
9541
9537
|
return new Promise((e) => {
|
|
@@ -9543,10 +9539,10 @@ class al {
|
|
|
9543
9539
|
});
|
|
9544
9540
|
}
|
|
9545
9541
|
createSound() {
|
|
9546
|
-
return new
|
|
9542
|
+
return new Mt();
|
|
9547
9543
|
}
|
|
9548
9544
|
}
|
|
9549
|
-
class
|
|
9545
|
+
class Ks extends we {
|
|
9550
9546
|
constructor(e, t) {
|
|
9551
9547
|
super(), this._input = e, this._output = t;
|
|
9552
9548
|
}
|
|
@@ -9567,7 +9563,7 @@ class js extends xe {
|
|
|
9567
9563
|
return this._input;
|
|
9568
9564
|
}
|
|
9569
9565
|
}
|
|
9570
|
-
class
|
|
9566
|
+
class bc {
|
|
9571
9567
|
constructor(e, t = null) {
|
|
9572
9568
|
this.destination = e, this.source = t;
|
|
9573
9569
|
}
|
|
@@ -9578,29 +9574,29 @@ class pc {
|
|
|
9578
9574
|
this.source?.disconnect();
|
|
9579
9575
|
}
|
|
9580
9576
|
}
|
|
9581
|
-
function
|
|
9582
|
-
if (
|
|
9577
|
+
function dl() {
|
|
9578
|
+
if (as)
|
|
9583
9579
|
return new AudioContext();
|
|
9584
|
-
if (
|
|
9580
|
+
if (ns) {
|
|
9585
9581
|
const r = globalThis.webkitAudioContext;
|
|
9586
9582
|
return new r();
|
|
9587
9583
|
} else
|
|
9588
9584
|
throw new Error("Failed to createAudioContext");
|
|
9589
9585
|
}
|
|
9590
|
-
function
|
|
9591
|
-
if (
|
|
9586
|
+
function fl(r, e, t) {
|
|
9587
|
+
if (ls)
|
|
9592
9588
|
return new OfflineAudioContext(r, e, t);
|
|
9593
|
-
if (
|
|
9589
|
+
if (Ui) {
|
|
9594
9590
|
const s = globalThis.webkitOfflineAudioContext;
|
|
9595
9591
|
return new s(r, e, t);
|
|
9596
9592
|
} else
|
|
9597
9593
|
throw new Error("Failed to createOfflineAudioContext");
|
|
9598
9594
|
}
|
|
9599
|
-
class
|
|
9595
|
+
class Ae extends Ks {
|
|
9600
9596
|
/** Singleton */
|
|
9601
9597
|
static _instance;
|
|
9602
9598
|
static get instance() {
|
|
9603
|
-
return this._instance || (this._instance = new
|
|
9599
|
+
return this._instance || (this._instance = new Ae()), this._instance;
|
|
9604
9600
|
}
|
|
9605
9601
|
static get audioContext() {
|
|
9606
9602
|
return this.instance.audioContext;
|
|
@@ -9641,12 +9637,12 @@ class Re extends js {
|
|
|
9641
9637
|
_compressor;
|
|
9642
9638
|
_analyser;
|
|
9643
9639
|
constructor() {
|
|
9644
|
-
const e =
|
|
9640
|
+
const e = dl(), t = fl(
|
|
9645
9641
|
1,
|
|
9646
9642
|
2,
|
|
9647
|
-
|
|
9643
|
+
ls ? Math.max(8e3, Math.min(96e3, e.sampleRate)) : 44100
|
|
9648
9644
|
), s = e.createDynamicsCompressor(), i = e.createAnalyser();
|
|
9649
|
-
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" && (
|
|
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 || ki), fr && (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));
|
|
9650
9646
|
}
|
|
9651
9647
|
_onFocus() {
|
|
9652
9648
|
if (!this.autoPause)
|
|
@@ -9688,7 +9684,7 @@ class Re extends js {
|
|
|
9688
9684
|
e.setValueAtTime ? e.setValueAtTime(t, this._context.currentTime) : e.value = t;
|
|
9689
9685
|
}
|
|
9690
9686
|
}
|
|
9691
|
-
class
|
|
9687
|
+
class pl extends we {
|
|
9692
9688
|
_audio = null;
|
|
9693
9689
|
_sourceNode = null;
|
|
9694
9690
|
_gain = null;
|
|
@@ -9843,10 +9839,10 @@ class cl extends xe {
|
|
|
9843
9839
|
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;
|
|
9844
9840
|
}
|
|
9845
9841
|
}
|
|
9846
|
-
class
|
|
9842
|
+
class _l extends Ks {
|
|
9847
9843
|
constructor(e) {
|
|
9848
|
-
const t =
|
|
9849
|
-
s.connect(o), o.connect(i), i.connect(
|
|
9844
|
+
const t = Ae.audioContext, s = t.createBufferSource(), i = t.createGain(), o = t.createAnalyser();
|
|
9845
|
+
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;
|
|
9850
9846
|
}
|
|
9851
9847
|
/** Source */
|
|
9852
9848
|
_sourceBuffer;
|
|
@@ -9856,7 +9852,7 @@ class hl extends js {
|
|
|
9856
9852
|
gain;
|
|
9857
9853
|
analyser;
|
|
9858
9854
|
get context() {
|
|
9859
|
-
return
|
|
9855
|
+
return Ae.instance;
|
|
9860
9856
|
}
|
|
9861
9857
|
get isPlayable() {
|
|
9862
9858
|
return !!this._sourceNode.buffer;
|
|
@@ -9882,7 +9878,7 @@ class hl extends js {
|
|
|
9882
9878
|
}
|
|
9883
9879
|
_decode(e) {
|
|
9884
9880
|
return Promise.resolve(
|
|
9885
|
-
e instanceof AudioBuffer ? e :
|
|
9881
|
+
e instanceof AudioBuffer ? e : Ae.decode(e)
|
|
9886
9882
|
).then((t) => (this.parent.isLoaded = !0, this.buffer = t, t));
|
|
9887
9883
|
}
|
|
9888
9884
|
cloneSource() {
|
|
@@ -9890,18 +9886,18 @@ class hl extends js {
|
|
|
9890
9886
|
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 };
|
|
9891
9887
|
}
|
|
9892
9888
|
createSound() {
|
|
9893
|
-
return new
|
|
9889
|
+
return new pl();
|
|
9894
9890
|
}
|
|
9895
9891
|
}
|
|
9896
|
-
var
|
|
9897
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
9892
|
+
var ml = Object.defineProperty, gl = Object.getOwnPropertyDescriptor, vl = (r, e, t) => e in r ? ml(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, bl = (r, e, t, s) => {
|
|
9893
|
+
for (var i = s > 1 ? void 0 : s ? gl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
9898
9894
|
(a = r[o]) && (i = a(i) || i);
|
|
9899
9895
|
return i;
|
|
9900
|
-
},
|
|
9901
|
-
let
|
|
9896
|
+
}, yl = (r, e, t) => vl(r, e + "", t);
|
|
9897
|
+
let Ce = class extends q {
|
|
9902
9898
|
_sounds = [];
|
|
9903
9899
|
/** PlatformAudio */
|
|
9904
|
-
_platformAudio =
|
|
9900
|
+
_platformAudio = Bi ? new _l(this) : new ul(this);
|
|
9905
9901
|
get platformAudio() {
|
|
9906
9902
|
return this._platformAudio;
|
|
9907
9903
|
}
|
|
@@ -10004,7 +10000,7 @@ let Ae = class extends q {
|
|
|
10004
10000
|
this._sounds.length = 0;
|
|
10005
10001
|
}
|
|
10006
10002
|
_createSound() {
|
|
10007
|
-
return
|
|
10003
|
+
return Ce._soundPool.length > 0 ? Ce._soundPool.pop().init(this._platformAudio) : this._platformAudio.createSound().init(this._platformAudio);
|
|
10008
10004
|
}
|
|
10009
10005
|
refresh() {
|
|
10010
10006
|
for (let r = this._sounds.length, e = 0; e < r; e++)
|
|
@@ -10022,7 +10018,7 @@ let Ae = class extends q {
|
|
|
10022
10018
|
this._recycleSound(r);
|
|
10023
10019
|
};
|
|
10024
10020
|
_recycleSound(r) {
|
|
10025
|
-
r.destroy(),
|
|
10021
|
+
r.destroy(), Ce._soundPool.includes(r) || Ce._soundPool.push(r);
|
|
10026
10022
|
}
|
|
10027
10023
|
_prevTime = 0;
|
|
10028
10024
|
_timer = 0;
|
|
@@ -10040,21 +10036,21 @@ let Ae = class extends q {
|
|
|
10040
10036
|
}, 100);
|
|
10041
10037
|
}
|
|
10042
10038
|
};
|
|
10043
|
-
|
|
10044
|
-
|
|
10039
|
+
yl(Ce, "_soundPool", []);
|
|
10040
|
+
Ce = bl([
|
|
10045
10041
|
b("Audio")
|
|
10046
|
-
],
|
|
10047
|
-
class
|
|
10042
|
+
], Ce);
|
|
10043
|
+
class yc extends Oe {
|
|
10048
10044
|
//
|
|
10049
10045
|
}
|
|
10050
|
-
var
|
|
10051
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10046
|
+
var xl = Object.defineProperty, wl = Object.getOwnPropertyDescriptor, Ht = (r, e, t, s) => {
|
|
10047
|
+
for (var i = s > 1 ? void 0 : s ? wl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10052
10048
|
(a = r[o]) && (i = (s ? a(e, t, i) : a(i)) || i);
|
|
10053
|
-
return s && i &&
|
|
10049
|
+
return s && i && xl(e, t, i), i;
|
|
10054
10050
|
};
|
|
10055
10051
|
let ft = class extends te {
|
|
10056
10052
|
_audioBuffer;
|
|
10057
|
-
_src =
|
|
10053
|
+
_src = fr ? new x({
|
|
10058
10054
|
source: document.createElement("canvas")
|
|
10059
10055
|
}) : void 0;
|
|
10060
10056
|
_needsUpdateTexture = !1;
|
|
@@ -10075,7 +10071,7 @@ let ft = class extends te {
|
|
|
10075
10071
|
}
|
|
10076
10072
|
}
|
|
10077
10073
|
async _loadSrc(r) {
|
|
10078
|
-
await globalThis.fetch(r).then((e) => e.arrayBuffer()).then((e) =>
|
|
10074
|
+
await globalThis.fetch(r).then((e) => e.arrayBuffer()).then((e) => Ae.decode(e)).then((e) => {
|
|
10079
10075
|
this._audioBuffer = e, this.syncTexture(!0);
|
|
10080
10076
|
});
|
|
10081
10077
|
}
|
|
@@ -10112,24 +10108,24 @@ let ft = class extends te {
|
|
|
10112
10108
|
this.syncTexture(), super._process(r);
|
|
10113
10109
|
}
|
|
10114
10110
|
};
|
|
10115
|
-
|
|
10111
|
+
Ht([
|
|
10116
10112
|
h()
|
|
10117
10113
|
], ft.prototype, "src", 2);
|
|
10118
|
-
|
|
10114
|
+
Ht([
|
|
10119
10115
|
h({ fallback: 0 })
|
|
10120
10116
|
], ft.prototype, "gap", 2);
|
|
10121
|
-
|
|
10117
|
+
Ht([
|
|
10122
10118
|
h({ fallback: "#000000" })
|
|
10123
10119
|
], ft.prototype, "color", 2);
|
|
10124
|
-
ft =
|
|
10120
|
+
ft = Ht([
|
|
10125
10121
|
b("AudioWaveform")
|
|
10126
10122
|
], ft);
|
|
10127
|
-
var
|
|
10128
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10123
|
+
var Pl = Object.defineProperty, El = Object.getOwnPropertyDescriptor, Sl = (r, e, t) => e in r ? Pl(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Tl = (r, e, t, s) => {
|
|
10124
|
+
for (var i = s > 1 ? void 0 : s ? El(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10129
10125
|
(a = r[o]) && (i = a(i) || i);
|
|
10130
10126
|
return i;
|
|
10131
|
-
},
|
|
10132
|
-
let
|
|
10127
|
+
}, Rl = (r, e, t) => Sl(r, e + "", t);
|
|
10128
|
+
let Nt = class extends Ve {
|
|
10133
10129
|
blur = 10;
|
|
10134
10130
|
quality = 10;
|
|
10135
10131
|
apply(r, e) {
|
|
@@ -10153,7 +10149,7 @@ let It = class extends Ve {
|
|
|
10153
10149
|
p = u[_] + 0.5, m[0] = p * d, m[1] = p * f, c.push({
|
|
10154
10150
|
offset: m
|
|
10155
10151
|
}), c.forEach((g) => {
|
|
10156
|
-
P.draw(r,
|
|
10152
|
+
P.draw(r, Nt.material, {
|
|
10157
10153
|
sampler: s,
|
|
10158
10154
|
progress: i,
|
|
10159
10155
|
...g
|
|
@@ -10161,7 +10157,7 @@ let It = class extends Ve {
|
|
|
10161
10157
|
});
|
|
10162
10158
|
}
|
|
10163
10159
|
};
|
|
10164
|
-
|
|
10160
|
+
Rl(Nt, "material", new E({
|
|
10165
10161
|
gl: {
|
|
10166
10162
|
vertex: `attribute vec2 position;
|
|
10167
10163
|
attribute vec2 uv;
|
|
@@ -10188,24 +10184,24 @@ void main(void) {
|
|
|
10188
10184
|
}`
|
|
10189
10185
|
}
|
|
10190
10186
|
}));
|
|
10191
|
-
|
|
10187
|
+
Nt = Tl([
|
|
10192
10188
|
b("KawaseTransition")
|
|
10193
|
-
],
|
|
10194
|
-
var
|
|
10195
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10189
|
+
], Nt);
|
|
10190
|
+
var Al = Object.defineProperty, Cl = Object.getOwnPropertyDescriptor, Ol = (r, e, t) => e in r ? Al(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Dl = (r, e, t, s) => {
|
|
10191
|
+
for (var i = s > 1 ? void 0 : s ? Cl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10196
10192
|
(a = r[o]) && (i = a(i) || i);
|
|
10197
10193
|
return i;
|
|
10198
|
-
},
|
|
10199
|
-
let
|
|
10194
|
+
}, Il = (r, e, t) => Ol(r, e + "", t);
|
|
10195
|
+
let kt = class extends Ve {
|
|
10200
10196
|
apply(r) {
|
|
10201
|
-
P.draw(r,
|
|
10197
|
+
P.draw(r, kt.material, {
|
|
10202
10198
|
previous: 0,
|
|
10203
10199
|
next: 1,
|
|
10204
10200
|
progress: this.currentTimeProgress
|
|
10205
10201
|
});
|
|
10206
10202
|
}
|
|
10207
10203
|
};
|
|
10208
|
-
|
|
10204
|
+
Il(kt, "material", new E({
|
|
10209
10205
|
gl: {
|
|
10210
10206
|
vertex: `attribute vec2 position;
|
|
10211
10207
|
attribute vec2 uv;
|
|
@@ -10236,14 +10232,14 @@ void main() {
|
|
|
10236
10232
|
}`
|
|
10237
10233
|
}
|
|
10238
10234
|
}));
|
|
10239
|
-
|
|
10235
|
+
kt = Dl([
|
|
10240
10236
|
b("LeftEraseTransition")
|
|
10241
|
-
],
|
|
10242
|
-
var
|
|
10243
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10237
|
+
], kt);
|
|
10238
|
+
var Ml = Object.defineProperty, Nl = Object.getOwnPropertyDescriptor, kl = (r, e, t) => e in r ? Ml(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ul = (r, e, t, s) => {
|
|
10239
|
+
for (var i = s > 1 ? void 0 : s ? Nl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10244
10240
|
(a = r[o]) && (i = a(i) || i);
|
|
10245
10241
|
return i;
|
|
10246
|
-
},
|
|
10242
|
+
}, Bl = (r, e, t) => kl(r, e + "", t);
|
|
10247
10243
|
let pt = class extends Ve {
|
|
10248
10244
|
blur = 100;
|
|
10249
10245
|
gradientBlur = 600;
|
|
@@ -10273,7 +10269,7 @@ let pt = class extends Ve {
|
|
|
10273
10269
|
});
|
|
10274
10270
|
}
|
|
10275
10271
|
};
|
|
10276
|
-
|
|
10272
|
+
Bl(pt, "material", new E({
|
|
10277
10273
|
gl: {
|
|
10278
10274
|
vertex: `attribute vec2 position;
|
|
10279
10275
|
attribute vec2 uv;
|
|
@@ -10323,15 +10319,15 @@ void main(void) {
|
|
|
10323
10319
|
}`
|
|
10324
10320
|
}
|
|
10325
10321
|
}));
|
|
10326
|
-
pt =
|
|
10322
|
+
pt = Ul([
|
|
10327
10323
|
b("TiltShiftTransition")
|
|
10328
10324
|
], pt);
|
|
10329
|
-
var
|
|
10330
|
-
for (var i = s > 1 ? void 0 : s ?
|
|
10325
|
+
var Ll = Object.defineProperty, Fl = Object.getOwnPropertyDescriptor, zl = (r, e, t) => e in r ? Ll(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Gl = (r, e, t, s) => {
|
|
10326
|
+
for (var i = s > 1 ? void 0 : s ? Fl(e, t) : e, o = r.length - 1, a; o >= 0; o--)
|
|
10331
10327
|
(a = r[o]) && (i = a(i) || i);
|
|
10332
10328
|
return i;
|
|
10333
|
-
},
|
|
10334
|
-
let
|
|
10329
|
+
}, Vl = (r, e, t) => zl(r, e + "", t);
|
|
10330
|
+
let Ut = class extends Ve {
|
|
10335
10331
|
radius;
|
|
10336
10332
|
angle = 4;
|
|
10337
10333
|
padding = 20;
|
|
@@ -10341,7 +10337,7 @@ let Nt = class extends Ve {
|
|
|
10341
10337
|
let s, i;
|
|
10342
10338
|
t < 0.5 ? (s = 0, i = (0.5 - t) / 0.5) : (s = 1, i = (t - 0.5) / 0.5);
|
|
10343
10339
|
const o = e.width, a = e.height;
|
|
10344
|
-
P.draw(r,
|
|
10340
|
+
P.draw(r, Ut.material, {
|
|
10345
10341
|
sampler: s,
|
|
10346
10342
|
progress: i,
|
|
10347
10343
|
filterArea: [o, a, 0, 0],
|
|
@@ -10352,7 +10348,7 @@ let Nt = class extends Ve {
|
|
|
10352
10348
|
});
|
|
10353
10349
|
}
|
|
10354
10350
|
};
|
|
10355
|
-
|
|
10351
|
+
Vl(Ut, "material", new E({
|
|
10356
10352
|
gl: {
|
|
10357
10353
|
vertex: `attribute vec2 position;
|
|
10358
10354
|
attribute vec2 uv;
|
|
@@ -10404,20 +10400,20 @@ void main(void) {
|
|
|
10404
10400
|
}`
|
|
10405
10401
|
}
|
|
10406
10402
|
}));
|
|
10407
|
-
|
|
10403
|
+
Ut = Gl([
|
|
10408
10404
|
b("TwistTransition")
|
|
10409
|
-
],
|
|
10410
|
-
class
|
|
10405
|
+
], Ut);
|
|
10406
|
+
class $l extends Me {
|
|
10411
10407
|
install(e) {
|
|
10412
10408
|
const t = async (s) => {
|
|
10413
10409
|
const { decodeFrames: i } = await import("modern-gif");
|
|
10414
10410
|
return await s.arrayBuffer().then((o) => i(
|
|
10415
10411
|
o,
|
|
10416
10412
|
e.gifWorkerUrl ? { workerUrl: e.gifWorkerUrl } : void 0
|
|
10417
|
-
)).then((o) => new
|
|
10413
|
+
)).then((o) => new oa(
|
|
10418
10414
|
o.map((a) => ({
|
|
10419
10415
|
duration: a.delay,
|
|
10420
|
-
texture: new
|
|
10416
|
+
texture: new aa({
|
|
10421
10417
|
source: a.data,
|
|
10422
10418
|
width: a.width,
|
|
10423
10419
|
height: a.height
|
|
@@ -10435,7 +10431,7 @@ class Ll extends Ie {
|
|
|
10435
10431
|
}), e.gif = this, this;
|
|
10436
10432
|
}
|
|
10437
10433
|
}
|
|
10438
|
-
class
|
|
10434
|
+
class Hl extends Me {
|
|
10439
10435
|
install(e) {
|
|
10440
10436
|
const t = async (s) => JSON.parse(await s.text());
|
|
10441
10437
|
return this.load = (s) => typeof s == "string" ? e.loadBy(s).then(t) : t(s), [
|
|
@@ -10445,7 +10441,7 @@ class Fl extends Ie {
|
|
|
10445
10441
|
}), e.json = this, this;
|
|
10446
10442
|
}
|
|
10447
10443
|
}
|
|
10448
|
-
class
|
|
10444
|
+
class Xl extends Me {
|
|
10449
10445
|
install(e) {
|
|
10450
10446
|
return this.load = async (t, s) => (await import("lottie-web").then((o) => o.default)).loadAnimation({
|
|
10451
10447
|
container: null,
|
|
@@ -10462,13 +10458,13 @@ class zl extends Ie {
|
|
|
10462
10458
|
}), e.lottie = this, this;
|
|
10463
10459
|
}
|
|
10464
10460
|
}
|
|
10465
|
-
class
|
|
10461
|
+
class jl extends Me {
|
|
10466
10462
|
install(e) {
|
|
10467
10463
|
const t = async (s) => s.text();
|
|
10468
10464
|
return this.load = (s) => typeof s == "string" ? e.loadBy(s).then(t) : t(s), e.text = this, this;
|
|
10469
10465
|
}
|
|
10470
10466
|
}
|
|
10471
|
-
class
|
|
10467
|
+
class Wl extends Me {
|
|
10472
10468
|
install(e) {
|
|
10473
10469
|
const t = (s) => e.fetchImageBitmap(s, { premultiplyAlpha: "premultiply" }).then((i) => new x({
|
|
10474
10470
|
source: i,
|
|
@@ -10493,12 +10489,12 @@ class Vl extends Ie {
|
|
|
10493
10489
|
}), e.texture = this, this;
|
|
10494
10490
|
}
|
|
10495
10491
|
}
|
|
10496
|
-
class
|
|
10492
|
+
class ql extends Me {
|
|
10497
10493
|
install(e) {
|
|
10498
|
-
return this.load = (t) => new
|
|
10494
|
+
return this.load = (t) => new ca(t).load(), e.video = this, this;
|
|
10499
10495
|
}
|
|
10500
10496
|
}
|
|
10501
|
-
const
|
|
10497
|
+
const Yl = Object.entries({
|
|
10502
10498
|
"font/woff": ["woff"],
|
|
10503
10499
|
"font/ttf": ["ttf"],
|
|
10504
10500
|
"font/otf": ["otf"],
|
|
@@ -10514,33 +10510,33 @@ const Hl = Object.entries({
|
|
|
10514
10510
|
"image/webp": ["webp"],
|
|
10515
10511
|
"application/json": ["json"]
|
|
10516
10512
|
});
|
|
10517
|
-
function
|
|
10518
|
-
for (const [e, t] of
|
|
10513
|
+
function Kl(r) {
|
|
10514
|
+
for (const [e, t] of Yl)
|
|
10519
10515
|
if (t.includes(r))
|
|
10520
10516
|
return e;
|
|
10521
10517
|
}
|
|
10522
|
-
function
|
|
10518
|
+
function Zl(r) {
|
|
10523
10519
|
let e;
|
|
10524
10520
|
if (r.startsWith("data:"))
|
|
10525
10521
|
e = r.match(/^data:(.+?);/)?.[1];
|
|
10526
10522
|
else if (r.startsWith("http")) {
|
|
10527
10523
|
const t = r.split(/[#?]/)[0].split(".").pop()?.trim();
|
|
10528
|
-
t && (e =
|
|
10524
|
+
t && (e = Kl(t));
|
|
10529
10525
|
}
|
|
10530
10526
|
return e;
|
|
10531
10527
|
}
|
|
10532
|
-
const
|
|
10533
|
-
class
|
|
10528
|
+
const Tt = "WeakRef" in globalThis;
|
|
10529
|
+
class Jl extends we {
|
|
10534
10530
|
defaultHandler = (e) => e;
|
|
10535
10531
|
_handlers = /* @__PURE__ */ new Map();
|
|
10536
10532
|
_handleing = /* @__PURE__ */ new Map();
|
|
10537
10533
|
_handled = /* @__PURE__ */ new Map();
|
|
10538
|
-
_gc =
|
|
10534
|
+
_gc = Tt ? new FinalizationRegistry((e) => {
|
|
10539
10535
|
const t = this.get(e);
|
|
10540
10536
|
t && "destroy" in t && t.destroy(), this._handled.delete(e);
|
|
10541
10537
|
}) : void 0;
|
|
10542
10538
|
constructor() {
|
|
10543
|
-
super(),
|
|
10539
|
+
super(), Tt || B.on(this.gc.bind(this), { sort: 2 });
|
|
10544
10540
|
}
|
|
10545
10541
|
use(e) {
|
|
10546
10542
|
return e.install(this), this;
|
|
@@ -10589,11 +10585,11 @@ class Wl extends xe {
|
|
|
10589
10585
|
}
|
|
10590
10586
|
get(e) {
|
|
10591
10587
|
let t = this._handled.get(e);
|
|
10592
|
-
return
|
|
10588
|
+
return Tt && t instanceof WeakRef && (t = t.deref(), t || this._handleing.delete(e)), t;
|
|
10593
10589
|
}
|
|
10594
10590
|
set(e, t) {
|
|
10595
10591
|
let s = t;
|
|
10596
|
-
|
|
10592
|
+
Tt && typeof t == "object" && (this._gc.register(t, e), s = new WeakRef(t)), this._handled.set(e, s);
|
|
10597
10593
|
}
|
|
10598
10594
|
async loadBy(e, t = () => this.fetch(e).then((s) => s.blob())) {
|
|
10599
10595
|
const s = this.get(e) ?? this._handleing.get(e);
|
|
@@ -10606,7 +10602,7 @@ class Wl extends xe {
|
|
|
10606
10602
|
}
|
|
10607
10603
|
async load(e, t) {
|
|
10608
10604
|
const s = await this.loadBy(e);
|
|
10609
|
-
let i =
|
|
10605
|
+
let i = Zl(e);
|
|
10610
10606
|
return i === void 0 && (i = s.type?.split(";")[0] ?? void 0), ((i ? this._handlers.get(i) : void 0) ?? this.defaultHandler)(s, t);
|
|
10611
10607
|
}
|
|
10612
10608
|
async waitUntilLoad() {
|
|
@@ -10623,11 +10619,11 @@ class Wl extends xe {
|
|
|
10623
10619
|
}), this._handled.clear();
|
|
10624
10620
|
}
|
|
10625
10621
|
}
|
|
10626
|
-
const $ = new
|
|
10627
|
-
var
|
|
10622
|
+
const $ = new Jl().use(new Xo()).use(new $l()).use(new Hl()).use(new Xl()).use(new jl()).use(new Wl()).use(new ql());
|
|
10623
|
+
var Ql = Object.defineProperty, Zs = (r, e, t, s) => {
|
|
10628
10624
|
for (var i = void 0, o = r.length - 1, a; o >= 0; o--)
|
|
10629
10625
|
(a = r[o]) && (i = a(e, t, i) || i);
|
|
10630
|
-
return i &&
|
|
10626
|
+
return i && Ql(e, t, i), i;
|
|
10631
10627
|
};
|
|
10632
10628
|
const Le = {
|
|
10633
10629
|
alpha: !0,
|
|
@@ -10637,7 +10633,7 @@ const Le = {
|
|
|
10637
10633
|
preserveDrawingBuffer: !1,
|
|
10638
10634
|
powerPreference: "default"
|
|
10639
10635
|
};
|
|
10640
|
-
class
|
|
10636
|
+
class Ar extends fe {
|
|
10641
10637
|
renderer;
|
|
10642
10638
|
get view() {
|
|
10643
10639
|
return this.renderer.view;
|
|
@@ -10660,7 +10656,7 @@ class Er extends Pe {
|
|
|
10660
10656
|
set pixelRatio(e) {
|
|
10661
10657
|
this.renderer.pixelRatio = e, this.resize(this.width, this.height);
|
|
10662
10658
|
}
|
|
10663
|
-
_resizeObserver =
|
|
10659
|
+
_resizeObserver = Mi ? new ResizeObserver((e) => {
|
|
10664
10660
|
const t = e[0];
|
|
10665
10661
|
if (t.target === this.view) {
|
|
10666
10662
|
const { inlineSize: s, blockSize: i } = Array.isArray(t.contentBoxSize) ? t.contentBoxSize[0] : t.contentBoxSize;
|
|
@@ -10672,11 +10668,11 @@ class Er extends Pe {
|
|
|
10672
10668
|
view: t,
|
|
10673
10669
|
width: s,
|
|
10674
10670
|
height: i,
|
|
10675
|
-
pixelRatio: o =
|
|
10671
|
+
pixelRatio: o = cs,
|
|
10676
10672
|
autoResize: a,
|
|
10677
10673
|
data: n
|
|
10678
10674
|
} = e;
|
|
10679
|
-
super(), this.renderer = new
|
|
10675
|
+
super(), this.renderer = new Ho(t, {
|
|
10680
10676
|
alpha: Le.alpha ?? e.alpha,
|
|
10681
10677
|
stencil: Le.stencil ?? e.stencil,
|
|
10682
10678
|
antialias: Le.antialias ?? e.antialias,
|
|
@@ -10719,7 +10715,7 @@ class Er extends Pe {
|
|
|
10719
10715
|
return this.renderer.resize(e, t, s), this.root.width = e, this.root.height = t, this.render(), this;
|
|
10720
10716
|
}
|
|
10721
10717
|
nextTick() {
|
|
10722
|
-
return
|
|
10718
|
+
return is();
|
|
10723
10719
|
}
|
|
10724
10720
|
async waitUntilLoad() {
|
|
10725
10721
|
await $.waitUntilLoad(), await this.nextTick();
|
|
@@ -10769,19 +10765,19 @@ class Er extends Pe {
|
|
|
10769
10765
|
this._resizeObserver?.disconnect(), this.renderer.destroy(), super.destroy();
|
|
10770
10766
|
}
|
|
10771
10767
|
}
|
|
10772
|
-
|
|
10768
|
+
Zs([
|
|
10773
10769
|
h({ fallback: !1 })
|
|
10774
|
-
],
|
|
10775
|
-
|
|
10770
|
+
], Ar.prototype, "autoResize");
|
|
10771
|
+
Zs([
|
|
10776
10772
|
h({ fallback: !1 })
|
|
10777
|
-
],
|
|
10773
|
+
], Ar.prototype, "autoStart");
|
|
10778
10774
|
let U;
|
|
10779
|
-
const
|
|
10780
|
-
let
|
|
10781
|
-
async function
|
|
10782
|
-
if (!
|
|
10783
|
-
for (
|
|
10784
|
-
const e =
|
|
10775
|
+
const hr = [];
|
|
10776
|
+
let rr = !1;
|
|
10777
|
+
async function ec(r = 100) {
|
|
10778
|
+
if (!rr) {
|
|
10779
|
+
for (rr = !0; hr.length; ) {
|
|
10780
|
+
const e = hr.shift();
|
|
10785
10781
|
if (e)
|
|
10786
10782
|
try {
|
|
10787
10783
|
await e();
|
|
@@ -10791,10 +10787,10 @@ async function Yl(r = 100) {
|
|
|
10791
10787
|
else
|
|
10792
10788
|
await new Promise((t) => setTimeout(t, r));
|
|
10793
10789
|
}
|
|
10794
|
-
|
|
10790
|
+
rr = !1;
|
|
10795
10791
|
}
|
|
10796
10792
|
}
|
|
10797
|
-
async function
|
|
10793
|
+
async function tc(r) {
|
|
10798
10794
|
const {
|
|
10799
10795
|
debug: e = !1,
|
|
10800
10796
|
fonts: t,
|
|
@@ -10806,7 +10802,7 @@ async function Kl(r) {
|
|
|
10806
10802
|
onKeyframe: l,
|
|
10807
10803
|
...c
|
|
10808
10804
|
} = r;
|
|
10809
|
-
return U ??= new
|
|
10805
|
+
return U ??= new Ar({
|
|
10810
10806
|
pixelRatio: 1,
|
|
10811
10807
|
width: 1,
|
|
10812
10808
|
height: 1,
|
|
@@ -10827,213 +10823,213 @@ async function Kl(r) {
|
|
|
10827
10823
|
p();
|
|
10828
10824
|
}), U.toCanvas2D();
|
|
10829
10825
|
}
|
|
10830
|
-
async function
|
|
10826
|
+
async function xc(r) {
|
|
10831
10827
|
return new Promise((e) => {
|
|
10832
|
-
|
|
10828
|
+
hr.push(async () => e(await tc(r))), ec();
|
|
10833
10829
|
});
|
|
10834
10830
|
}
|
|
10835
10831
|
export {
|
|
10836
|
-
|
|
10832
|
+
oa as AnimatedTexture,
|
|
10837
10833
|
dt as Animation,
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10834
|
+
Jl as Assets,
|
|
10835
|
+
Ce as Audio,
|
|
10836
|
+
Ks as AudioPipeline,
|
|
10837
|
+
bc as AudioProcessor,
|
|
10838
|
+
yc as AudioSpectrum,
|
|
10843
10839
|
ft as AudioWaveform,
|
|
10844
|
-
|
|
10845
|
-
|
|
10846
|
-
|
|
10847
|
-
|
|
10840
|
+
ar as BaseElement2D,
|
|
10841
|
+
be as BufferUsage,
|
|
10842
|
+
Dt as Camera2D,
|
|
10843
|
+
ha as CanvasContext,
|
|
10848
10844
|
Ge as CanvasItem,
|
|
10849
|
-
|
|
10845
|
+
ys as CanvasTexture,
|
|
10850
10846
|
oe as Color,
|
|
10851
10847
|
W as ColorAdjustEffect,
|
|
10852
10848
|
$e as ColorFilterEffect,
|
|
10853
|
-
|
|
10849
|
+
ds as ColorMatrix,
|
|
10854
10850
|
He as ColorOverlayEffect,
|
|
10855
10851
|
Xe as ColorRemoveEffect,
|
|
10856
10852
|
je as ColorReplaceEffect,
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10853
|
+
mr as ColorTexture,
|
|
10854
|
+
Pe as CoreObject,
|
|
10855
|
+
Qi as DEG_TO_RAD,
|
|
10856
|
+
cs as DEVICE_PIXEL_RATIO,
|
|
10861
10857
|
Y as DrawboardEffect,
|
|
10862
10858
|
re as DropShadowEffect,
|
|
10863
10859
|
T as Effect,
|
|
10864
|
-
|
|
10860
|
+
Ct as EffectMaterial,
|
|
10865
10861
|
te as Element2D,
|
|
10866
|
-
|
|
10862
|
+
Hs as Element2DBackground,
|
|
10867
10863
|
F as Element2DFill,
|
|
10868
|
-
|
|
10864
|
+
Xs as Element2DForeground,
|
|
10869
10865
|
Ze as Element2DOutline,
|
|
10870
10866
|
Je as Element2DShadow,
|
|
10871
10867
|
Qe as Element2DShape,
|
|
10872
|
-
|
|
10868
|
+
or as Element2DStyle,
|
|
10873
10869
|
ie as Element2DText,
|
|
10874
10870
|
ct as EmbossEffect,
|
|
10875
|
-
|
|
10876
|
-
|
|
10877
|
-
|
|
10871
|
+
Ar as Engine,
|
|
10872
|
+
Tr as FlexLayout,
|
|
10873
|
+
Xo as FontLoader,
|
|
10878
10874
|
ce as GaussianBlurEffect,
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10875
|
+
Ne as Geometry,
|
|
10876
|
+
$l as GifLoader,
|
|
10877
|
+
Po as GlBatch2DSystem,
|
|
10882
10878
|
lt as GlBlendMode,
|
|
10883
|
-
|
|
10884
|
-
|
|
10879
|
+
so as GlBuffer,
|
|
10880
|
+
ao as GlBufferSystem,
|
|
10885
10881
|
it as GlBufferTarget,
|
|
10886
|
-
|
|
10882
|
+
Eo as GlMaskSystem,
|
|
10887
10883
|
nt as GlProgram,
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10884
|
+
Vo as GlRenderTarget,
|
|
10885
|
+
$o as GlRenderTargetSystem,
|
|
10886
|
+
Ho as GlRenderer,
|
|
10887
|
+
yo as GlShaderSystem,
|
|
10892
10888
|
ze as GlState,
|
|
10893
|
-
|
|
10894
|
-
|
|
10889
|
+
wo as GlStateSystem,
|
|
10890
|
+
zo as GlStencilSystem,
|
|
10895
10891
|
Z as GlSystem,
|
|
10896
|
-
|
|
10892
|
+
Go as GlViewportSystem,
|
|
10897
10893
|
G as GlitchEffect,
|
|
10898
10894
|
K as GodrayEffect,
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10895
|
+
zt as GradientTexture,
|
|
10896
|
+
ul as HTMLAudio,
|
|
10897
|
+
Rr as HTMLAudioContext,
|
|
10898
|
+
Mt as HTMLSound,
|
|
10899
|
+
fr as IN_BROWSER,
|
|
10900
|
+
Li as IN_MAC_OS,
|
|
10905
10901
|
We as IndexBuffer,
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10902
|
+
Ki as Input,
|
|
10903
|
+
Lt as InputEvent,
|
|
10904
|
+
Hl as JsonLoader,
|
|
10909
10905
|
ht as KawaseBlurEffect,
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10906
|
+
Nt as KawaseTransition,
|
|
10907
|
+
ji as KeyboardInputEvent,
|
|
10908
|
+
kt as LeftEraseTransition,
|
|
10909
|
+
Me as Loader,
|
|
10910
|
+
lr as Lottie2D,
|
|
10911
|
+
Xl as LottieLoader,
|
|
10912
|
+
pr as MainLoop,
|
|
10913
|
+
De as MaskEffect,
|
|
10918
10914
|
E as Material,
|
|
10919
10915
|
ae as Matrix,
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10916
|
+
pc as Matrix2,
|
|
10917
|
+
fs as Matrix3,
|
|
10918
|
+
Ji as Matrix4,
|
|
10919
|
+
da as Meta,
|
|
10920
|
+
us as MouseInputEvent,
|
|
10925
10921
|
M as Node,
|
|
10926
|
-
|
|
10922
|
+
Oe as Node2D,
|
|
10927
10923
|
L as OutlineEffect,
|
|
10928
|
-
|
|
10924
|
+
dr as PI,
|
|
10929
10925
|
z as PI_2,
|
|
10930
10926
|
ut as PixelateEffect,
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10927
|
+
aa as PixelsTexture,
|
|
10928
|
+
Wi as PointerInputEvent,
|
|
10929
|
+
to as Projection2D,
|
|
10930
|
+
mc as QuadGeometry,
|
|
10935
10931
|
P as QuadUvGeometry,
|
|
10936
|
-
|
|
10932
|
+
dc as RAD_TO_DEG,
|
|
10937
10933
|
Fe as Rectangle,
|
|
10938
|
-
|
|
10934
|
+
Zi as RefCounted,
|
|
10939
10935
|
X as RenderTarget,
|
|
10940
|
-
|
|
10936
|
+
_r as Renderer,
|
|
10941
10937
|
he as Resource,
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10938
|
+
as as SUPPORTS_AUDIO_CONTEXT,
|
|
10939
|
+
ki as SUPPORTS_CLICK_EVENTS,
|
|
10940
|
+
hc as SUPPORTS_CREATE_IMAGE_BITMAP,
|
|
10941
|
+
Ii as SUPPORTS_IMAGE_BITMAP,
|
|
10942
|
+
cc as SUPPORTS_MOUSE_EVENTS,
|
|
10943
|
+
ls as SUPPORTS_OFFLINE_AUDIO_CONTEXT,
|
|
10948
10944
|
et as SUPPORTS_POINTER_EVENTS,
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10945
|
+
Mi as SUPPORTS_RESIZE_OBSERVER,
|
|
10946
|
+
ve as SUPPORTS_TOUCH_EVENTS,
|
|
10947
|
+
Di as SUPPORTS_WEBGL2,
|
|
10948
|
+
ns as SUPPORTS_WEBKIT_AUDIO_CONTEXT,
|
|
10949
|
+
Ui as SUPPORTS_WEBKIT_OFFLINE_AUDIO_CONTEXT,
|
|
10950
|
+
Bi as SUPPORTS_WEB_AUDIO,
|
|
10951
|
+
Ni as SUPPORTS_WHEEL_EVENTS,
|
|
10952
|
+
fe as SceneTree,
|
|
10953
|
+
jl as TextLoader,
|
|
10958
10954
|
x as Texture2D,
|
|
10959
|
-
|
|
10960
|
-
|
|
10955
|
+
Wl as TextureLoader,
|
|
10956
|
+
Ws as TextureRect2D,
|
|
10961
10957
|
B as Ticker,
|
|
10962
10958
|
pt as TiltShiftTransition,
|
|
10963
10959
|
le as Timeline,
|
|
10964
10960
|
q as TimelineNode,
|
|
10965
10961
|
I as Transform2D,
|
|
10966
|
-
|
|
10962
|
+
tl as TransformRect2D,
|
|
10967
10963
|
Ve as Transition,
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10964
|
+
Ut as TwistTransition,
|
|
10965
|
+
gc as UvGeometry,
|
|
10966
|
+
Ot as UvMaterial,
|
|
10971
10967
|
ee as Vector,
|
|
10972
10968
|
C as Vector2,
|
|
10973
|
-
|
|
10974
|
-
|
|
10969
|
+
_c as Vector3,
|
|
10970
|
+
eo as Vector4,
|
|
10975
10971
|
H as VertexAttribute,
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10972
|
+
ye as VertexBuffer,
|
|
10973
|
+
cr as Video2D,
|
|
10974
|
+
ql as VideoLoader,
|
|
10975
|
+
ca as VideoTexture,
|
|
10980
10976
|
j as Viewport,
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10977
|
+
vr as ViewportTexture,
|
|
10978
|
+
_l as WebAudio,
|
|
10979
|
+
Ae as WebAudioContext,
|
|
10980
|
+
pl as WebSound,
|
|
10981
|
+
qi as WheelInputEvent,
|
|
10982
|
+
ir as Window,
|
|
10983
|
+
xe as ZoomBlurEffect,
|
|
10988
10984
|
Be as alignMap,
|
|
10989
10985
|
$ as assets,
|
|
10990
|
-
|
|
10986
|
+
Qr as boxSizingMap,
|
|
10991
10987
|
ne as clamp,
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10988
|
+
wn as clampFrag,
|
|
10989
|
+
Vi as createHTMLCanvas,
|
|
10990
|
+
oo as createIdFromString,
|
|
10991
|
+
lc as createNode,
|
|
10992
|
+
Hi as crossOrigin,
|
|
10997
10993
|
yt as cubicBezier,
|
|
10998
|
-
|
|
10994
|
+
fc as curves,
|
|
10999
10995
|
b as customNode,
|
|
11000
|
-
|
|
10996
|
+
ur as customNodes,
|
|
11001
10997
|
Le as defaultOptions,
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
10998
|
+
$i as determineCrossOrigin,
|
|
10999
|
+
nr as directionMap,
|
|
11000
|
+
Wr as displayMap,
|
|
11001
|
+
nl as ease,
|
|
11002
|
+
ll as easeIn,
|
|
11003
|
+
hl as easeInOut,
|
|
11004
|
+
cl as easeOut,
|
|
11009
11005
|
R as edgeMap,
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11006
|
+
qr as flexDirectionMap,
|
|
11007
|
+
Yr as flexWrapMap,
|
|
11008
|
+
xn as frag,
|
|
11009
|
+
Ur as getDefaultCssPropertyValue,
|
|
11010
|
+
qn as gutterMap,
|
|
11015
11011
|
rt as instanceId,
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11022
|
-
|
|
11012
|
+
zi as isCanvasElement,
|
|
11013
|
+
hs as isElementNode,
|
|
11014
|
+
uc as isImageElement,
|
|
11015
|
+
kr as isPow2,
|
|
11016
|
+
Fi as isVideoElement,
|
|
11017
|
+
Gi as isWebgl2,
|
|
11018
|
+
Kr as justifyMap,
|
|
11023
11019
|
A as lerp,
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11020
|
+
al as linear,
|
|
11021
|
+
Gr as log2,
|
|
11022
|
+
xo as mapGlBlendModes,
|
|
11023
|
+
zr as nextPow2,
|
|
11024
|
+
is as nextTick,
|
|
11025
|
+
Zr as overflowMap,
|
|
11026
|
+
vc as parseCssFilter,
|
|
11027
|
+
Bt as parseCssFunctions,
|
|
11028
|
+
Et as parseCssProperty,
|
|
11029
|
+
Ua as parseCssTransform,
|
|
11030
|
+
Ba as parseCssTransformOrigin,
|
|
11031
|
+
Jr as positionTypeMap,
|
|
11032
|
+
xc as render,
|
|
11033
|
+
Ie as stencilModeMap,
|
|
11034
|
+
tr as timingFunctions
|
|
11039
11035
|
};
|