@designcombo/video 0.1.6 → 0.1.8
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/{SharedSystems-BUZjMwM9.js → SharedSystems-DIdSs8gA.js} +1 -1
- package/dist/{WebGLRenderer-BiM4kX3p.js → WebGLRenderer-6Gbx7q60.js} +2 -2
- package/dist/{WebGPURenderer-BIu3svRd.js → WebGPURenderer-DkSBIxsG.js} +2 -2
- package/dist/{browserAll-CgzKDh9G.js → browserAll-Bcw9LkkO.js} +2 -2
- package/dist/clips/text-clip.d.ts +2 -0
- package/dist/{index-DyXIO7KH.js → index-BB-WOZJr.js} +622 -608
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +28 -28
- package/dist/studio.d.ts +3 -0
- package/dist/{webworkerAll-BHvFAvAJ.js → webworkerAll-D3jYu9HP.js} +1 -1
- package/package.json +1 -1
|
@@ -1900,8 +1900,8 @@ function Ml() {
|
|
|
1900
1900
|
this.held_bits = C.readUint16(), this.num_held_bits = 16;
|
|
1901
1901
|
},
|
|
1902
1902
|
extract_bits: function(C) {
|
|
1903
|
-
var
|
|
1904
|
-
return this.num_held_bits -= C,
|
|
1903
|
+
var F = this.held_bits >> this.num_held_bits - C & (1 << C) - 1;
|
|
1904
|
+
return this.num_held_bits -= C, F;
|
|
1905
1905
|
}
|
|
1906
1906
|
};
|
|
1907
1907
|
if (f.stream_read_1_bytes(n), f.extract_bits(5), this.lengthSizeMinusOne = f.extract_bits(2), this.ptl_present_flag = f.extract_bits(1), this.ptl_present_flag) {
|
|
@@ -2616,8 +2616,8 @@ function Ml() {
|
|
|
2616
2616
|
g.add("nmhd");
|
|
2617
2617
|
break;
|
|
2618
2618
|
}
|
|
2619
|
-
c.description && x.addBox(c.description), c.description_boxes && c.description_boxes.forEach(function(
|
|
2620
|
-
x.addBox(
|
|
2619
|
+
c.description && x.addBox(c.description), c.description_boxes && c.description_boxes.forEach(function(F) {
|
|
2620
|
+
x.addBox(F);
|
|
2621
2621
|
}), g.add("dinf").add("dref").addEntry(new l["url Box"]().set("flags", 1));
|
|
2622
2622
|
var C = g.add("stbl");
|
|
2623
2623
|
return C.add("stsd").addEntry(x), C.add("stts").set("sample_counts", []).set("sample_deltas", []), C.add("stsc").set("first_chunk", []).set("samples_per_chunk", []).set("sample_description_index", []), C.add("stco").set("chunk_offsets", []), C.add("stsz").set("sample_sizes", []), this.moov.mvex.add("trex").set("track_id", c.id).set("default_sample_description_index", c.default_sample_description_index || 1).set("default_sample_duration", c.default_sample_duration || 0).set("default_sample_size", c.default_sample_size || 0).set("default_sample_flags", c.default_sample_flags || 0), this.buildTrakSampleLists(u), c.id;
|
|
@@ -2680,16 +2680,16 @@ function Ml() {
|
|
|
2680
2680
|
for (n = 0; n < this.moov.traks.length; n++)
|
|
2681
2681
|
c = this.moov.traks[n], this.buildTrakSampleLists(c);
|
|
2682
2682
|
}, y.prototype.buildTrakSampleLists = function(n) {
|
|
2683
|
-
var c, u, f, g, x, b, w, T, S, A, I, E, C,
|
|
2684
|
-
if (n.samples = [], n.samples_duration = 0, n.samples_size = 0, u = n.mdia.minf.stbl.stco || n.mdia.minf.stbl.co64, f = n.mdia.minf.stbl.stsc, g = n.mdia.minf.stbl.stsz || n.mdia.minf.stbl.stz2, x = n.mdia.minf.stbl.stts, b = n.mdia.minf.stbl.ctts, w = n.mdia.minf.stbl.stss, T = n.mdia.minf.stbl.stsd, S = n.mdia.minf.stbl.subs, E = n.mdia.minf.stbl.stdp, A = n.mdia.minf.stbl.sbgps, I = n.mdia.minf.stbl.sgpds, M = -1,
|
|
2683
|
+
var c, u, f, g, x, b, w, T, S, A, I, E, C, F, P, L, Z, M, k, H, R, Y, K, X;
|
|
2684
|
+
if (n.samples = [], n.samples_duration = 0, n.samples_size = 0, u = n.mdia.minf.stbl.stco || n.mdia.minf.stbl.co64, f = n.mdia.minf.stbl.stsc, g = n.mdia.minf.stbl.stsz || n.mdia.minf.stbl.stz2, x = n.mdia.minf.stbl.stts, b = n.mdia.minf.stbl.ctts, w = n.mdia.minf.stbl.stss, T = n.mdia.minf.stbl.stsd, S = n.mdia.minf.stbl.subs, E = n.mdia.minf.stbl.stdp, A = n.mdia.minf.stbl.sbgps, I = n.mdia.minf.stbl.sgpds, M = -1, k = -1, H = -1, R = -1, Y = 0, K = 0, X = 0, y.initSampleGroups(n, null, A, I), !(typeof g > "u")) {
|
|
2685
2685
|
for (c = 0; c < g.sample_sizes.length; c++) {
|
|
2686
|
-
var
|
|
2687
|
-
|
|
2686
|
+
var z = {};
|
|
2687
|
+
z.number = c, z.track_id = n.tkhd.track_id, z.timescale = n.mdia.mdhd.timescale, z.alreadyRead = 0, n.samples[c] = z, z.size = g.sample_sizes[c], n.samples_size += z.size, c === 0 ? (F = 1, C = 0, z.chunk_index = F, z.chunk_run_index = C, Z = f.samples_per_chunk[C], L = 0, C + 1 < f.first_chunk.length ? P = f.first_chunk[C + 1] - 1 : P = 1 / 0) : c < Z ? (z.chunk_index = F, z.chunk_run_index = C) : (F++, z.chunk_index = F, L = 0, F <= P || (C++, C + 1 < f.first_chunk.length ? P = f.first_chunk[C + 1] - 1 : P = 1 / 0), z.chunk_run_index = C, Z += f.samples_per_chunk[C]), z.description_index = f.sample_description_index[z.chunk_run_index] - 1, z.description = T.entries[z.description_index], z.offset = u.chunk_offsets[z.chunk_index - 1] + L, L += z.size, c > M && (k++, M < 0 && (M = 0), M += x.sample_counts[k]), c > 0 ? (n.samples[c - 1].duration = x.sample_deltas[k], n.samples_duration += n.samples[c - 1].duration, z.dts = n.samples[c - 1].dts + n.samples[c - 1].duration) : z.dts = 0, b ? (c >= H && (R++, H < 0 && (H = 0), H += b.sample_counts[R]), z.cts = n.samples[c].dts + b.sample_offsets[R]) : z.cts = z.dts, w ? (c == w.sample_numbers[Y] - 1 ? (z.is_sync = !0, Y++) : (z.is_sync = !1, z.degradation_priority = 0), S && S.entries[K].sample_delta + X == c + 1 && (z.subsamples = S.entries[K].subsamples, X += S.entries[K].sample_delta, K++)) : z.is_sync = !0, y.process_sdtp(n.mdia.minf.stbl.sdtp, z, z.number), E ? z.degradation_priority = E.priority[c] : z.degradation_priority = 0, S && S.entries[K].sample_delta + X == c && (z.subsamples = S.entries[K].subsamples, X += S.entries[K].sample_delta), (A.length > 0 || I.length > 0) && y.setSampleGroupProperties(n, z, c, n.sample_groups_info);
|
|
2688
2688
|
}
|
|
2689
2689
|
c > 0 && (n.samples[c - 1].duration = Math.max(n.mdia.mdhd.duration - n.samples[c - 1].dts, 0), n.samples_duration += n.samples[c - 1].duration);
|
|
2690
2690
|
}
|
|
2691
2691
|
}, y.prototype.updateSampleLists = function() {
|
|
2692
|
-
var n, c, u, f, g, x, b, w, T, S, A, I, E, C,
|
|
2692
|
+
var n, c, u, f, g, x, b, w, T, S, A, I, E, C, F;
|
|
2693
2693
|
if (this.moov !== void 0) {
|
|
2694
2694
|
for (; this.lastMoofIndex < this.moofs.length; )
|
|
2695
2695
|
if (T = this.moofs[this.lastMoofIndex], this.lastMoofIndex++, T.type == "moof")
|
|
@@ -2697,16 +2697,16 @@ function Ml() {
|
|
|
2697
2697
|
for (A = S.trafs[n], I = this.getTrackById(A.tfhd.track_id), I.samples == null && (I.samples = []), E = this.getTrexById(A.tfhd.track_id), A.tfhd.flags & l.TFHD_FLAG_SAMPLE_DESC ? f = A.tfhd.default_sample_description_index : f = E ? E.default_sample_description_index : 1, A.tfhd.flags & l.TFHD_FLAG_SAMPLE_DUR ? g = A.tfhd.default_sample_duration : g = E ? E.default_sample_duration : 0, A.tfhd.flags & l.TFHD_FLAG_SAMPLE_SIZE ? x = A.tfhd.default_sample_size : x = E ? E.default_sample_size : 0, A.tfhd.flags & l.TFHD_FLAG_SAMPLE_FLAGS ? b = A.tfhd.default_sample_flags : b = E ? E.default_sample_flags : 0, A.sample_number = 0, A.sbgps.length > 0 && y.initSampleGroups(I, A, A.sbgps, I.mdia.minf.stbl.sgpds, A.sgpds), c = 0; c < A.truns.length; c++) {
|
|
2698
2698
|
var P = A.truns[c];
|
|
2699
2699
|
for (u = 0; u < P.sample_count; u++) {
|
|
2700
|
-
C = {}, C.moof_number = this.lastMoofIndex, C.number_in_traf = A.sample_number, A.sample_number++, C.number = I.samples.length, A.first_sample_index = I.samples.length, I.samples.push(C), C.track_id = I.tkhd.track_id, C.timescale = I.mdia.mdhd.timescale, C.description_index = f - 1, C.description = I.mdia.minf.stbl.stsd.entries[C.description_index], C.size = x, P.flags & l.TRUN_FLAGS_SIZE && (C.size = P.sample_size[u]), I.samples_size += C.size, C.duration = g, P.flags & l.TRUN_FLAGS_DURATION && (C.duration = P.sample_duration[u]), I.samples_duration += C.duration, I.first_traf_merged || u > 0 ? C.dts = I.samples[I.samples.length - 2].dts + I.samples[I.samples.length - 2].duration : (A.tfdt ? C.dts = A.tfdt.baseMediaDecodeTime : C.dts = 0, I.first_traf_merged = !0), C.cts = C.dts, P.flags & l.TRUN_FLAGS_CTS_OFFSET && (C.cts = C.dts + P.sample_composition_time_offset[u]),
|
|
2701
|
-
var L = !!(A.tfhd.flags & l.TFHD_FLAG_BASE_DATA_OFFSET), Z = !!(A.tfhd.flags & l.TFHD_FLAG_DEFAULT_BASE_IS_MOOF), M = !!(P.flags & l.TRUN_FLAGS_DATA_OFFSET),
|
|
2702
|
-
L ?
|
|
2700
|
+
C = {}, C.moof_number = this.lastMoofIndex, C.number_in_traf = A.sample_number, A.sample_number++, C.number = I.samples.length, A.first_sample_index = I.samples.length, I.samples.push(C), C.track_id = I.tkhd.track_id, C.timescale = I.mdia.mdhd.timescale, C.description_index = f - 1, C.description = I.mdia.minf.stbl.stsd.entries[C.description_index], C.size = x, P.flags & l.TRUN_FLAGS_SIZE && (C.size = P.sample_size[u]), I.samples_size += C.size, C.duration = g, P.flags & l.TRUN_FLAGS_DURATION && (C.duration = P.sample_duration[u]), I.samples_duration += C.duration, I.first_traf_merged || u > 0 ? C.dts = I.samples[I.samples.length - 2].dts + I.samples[I.samples.length - 2].duration : (A.tfdt ? C.dts = A.tfdt.baseMediaDecodeTime : C.dts = 0, I.first_traf_merged = !0), C.cts = C.dts, P.flags & l.TRUN_FLAGS_CTS_OFFSET && (C.cts = C.dts + P.sample_composition_time_offset[u]), F = b, P.flags & l.TRUN_FLAGS_FLAGS ? F = P.sample_flags[u] : u === 0 && P.flags & l.TRUN_FLAGS_FIRST_FLAG && (F = P.first_sample_flags), C.is_sync = !(F >> 16 & 1), C.is_leading = F >> 26 & 3, C.depends_on = F >> 24 & 3, C.is_depended_on = F >> 22 & 3, C.has_redundancy = F >> 20 & 3, C.degradation_priority = F & 65535;
|
|
2701
|
+
var L = !!(A.tfhd.flags & l.TFHD_FLAG_BASE_DATA_OFFSET), Z = !!(A.tfhd.flags & l.TFHD_FLAG_DEFAULT_BASE_IS_MOOF), M = !!(P.flags & l.TRUN_FLAGS_DATA_OFFSET), k = 0;
|
|
2702
|
+
L ? k = A.tfhd.base_data_offset : Z || c === 0 ? k = S.start : k = w, c === 0 && u === 0 ? M ? C.offset = k + P.data_offset : C.offset = k : C.offset = w, w = C.offset + C.size, (A.sbgps.length > 0 || A.sgpds.length > 0 || I.mdia.minf.stbl.sbgps.length > 0 || I.mdia.minf.stbl.sgpds.length > 0) && y.setSampleGroupProperties(I, C, C.number_in_traf, A.sample_groups_info);
|
|
2703
2703
|
}
|
|
2704
2704
|
}
|
|
2705
2705
|
if (A.subs) {
|
|
2706
2706
|
I.has_fragment_subsamples = !0;
|
|
2707
|
-
var
|
|
2707
|
+
var H = A.first_sample_index;
|
|
2708
2708
|
for (c = 0; c < A.subs.entries.length; c++)
|
|
2709
|
-
|
|
2709
|
+
H += A.subs.entries[c].sample_delta, C = I.samples[H - 1], C.subsamples = A.subs.entries[c].subsamples;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
@@ -2979,8 +2979,8 @@ function Ul(s) {
|
|
|
2979
2979
|
t && (self.URL || self.webkitURL).revokeObjectURL(t);
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
|
-
async function
|
|
2983
|
-
const r =
|
|
2982
|
+
async function zl(s, t, e) {
|
|
2983
|
+
const r = Bl();
|
|
2984
2984
|
return await r("register", { fileId: s, filePath: t, mode: e }), {
|
|
2985
2985
|
read: async (o, a) => await r("read", {
|
|
2986
2986
|
fileId: s,
|
|
@@ -3013,7 +3013,7 @@ async function Bl(s, t, e) {
|
|
|
3013
3013
|
}
|
|
3014
3014
|
const Si = [];
|
|
3015
3015
|
let gr = 0;
|
|
3016
|
-
function
|
|
3016
|
+
function Bl() {
|
|
3017
3017
|
if (Si.length < 3) {
|
|
3018
3018
|
const t = s();
|
|
3019
3019
|
return Si.push(t), t;
|
|
@@ -3230,20 +3230,20 @@ async function di(s, t, e = { overwrite: !0 }) {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
let Ll = 0;
|
|
3232
3232
|
const Ol = () => ++Ll;
|
|
3233
|
-
var Mt, je, Wi, Qe,
|
|
3233
|
+
var Mt, je, Wi, Qe, Hi, te, Vi, Yi, Te;
|
|
3234
3234
|
const Nl = class Po {
|
|
3235
3235
|
constructor(t, e) {
|
|
3236
|
-
Pt(this, Mt), Pt(this, je), Pt(this, Wi), Pt(this, Qe), Pt(this,
|
|
3236
|
+
Pt(this, Mt), Pt(this, je), Pt(this, Wi), Pt(this, Qe), Pt(this, Hi), Pt(this, te, 0), Pt(this, Vi, async () => {
|
|
3237
3237
|
}), Pt(this, Yi, /* @__PURE__ */ (() => {
|
|
3238
3238
|
let a = null;
|
|
3239
3239
|
return () => (bt(this, te, q(this, te) + 1), a != null || (a = new Promise(async (h, l) => {
|
|
3240
3240
|
try {
|
|
3241
|
-
const d = await
|
|
3242
|
-
q(this,
|
|
3241
|
+
const d = await zl(
|
|
3242
|
+
q(this, Hi),
|
|
3243
3243
|
q(this, Mt),
|
|
3244
3244
|
q(this, Qe)
|
|
3245
3245
|
);
|
|
3246
|
-
bt(this,
|
|
3246
|
+
bt(this, Vi, async () => {
|
|
3247
3247
|
a != null && (a = null, bt(this, te, 0), await d.close().catch(console.error));
|
|
3248
3248
|
}), h([
|
|
3249
3249
|
d,
|
|
@@ -3255,7 +3255,7 @@ const Nl = class Po {
|
|
|
3255
3255
|
l(d);
|
|
3256
3256
|
}
|
|
3257
3257
|
})), a);
|
|
3258
|
-
})()), Pt(this, Te, !1), bt(this,
|
|
3258
|
+
})()), Pt(this, Te, !1), bt(this, Hi, Ol()), bt(this, Mt, t), bt(this, Qe, {
|
|
3259
3259
|
r: "read-only",
|
|
3260
3260
|
rw: "readwrite",
|
|
3261
3261
|
"rw-unsafe": "readwrite-unsafe"
|
|
@@ -3361,7 +3361,7 @@ const Nl = class Po {
|
|
|
3361
3361
|
}
|
|
3362
3362
|
async remove(t = {}) {
|
|
3363
3363
|
if (t.force === !0) {
|
|
3364
|
-
await q(this,
|
|
3364
|
+
await q(this, Vi).call(this), await Qr(q(this, Mt)), es.delete(q(this, Mt));
|
|
3365
3365
|
return;
|
|
3366
3366
|
}
|
|
3367
3367
|
if (q(this, te) > 0) throw Error("exists unclosed reader/writer");
|
|
@@ -3386,7 +3386,7 @@ const Nl = class Po {
|
|
|
3386
3386
|
return await this.remove(), e;
|
|
3387
3387
|
}
|
|
3388
3388
|
};
|
|
3389
|
-
Mt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(),
|
|
3389
|
+
Mt = /* @__PURE__ */ new WeakMap(), je = /* @__PURE__ */ new WeakMap(), Wi = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakMap(), te = /* @__PURE__ */ new WeakMap(), Vi = /* @__PURE__ */ new WeakMap(), Yi = /* @__PURE__ */ new WeakMap(), Te = /* @__PURE__ */ new WeakMap();
|
|
3390
3390
|
let ji = Nl;
|
|
3391
3391
|
const Fs = "/.opfs-tools-temp-dir";
|
|
3392
3392
|
async function Ro(s) {
|
|
@@ -3490,20 +3490,20 @@ class Uo {
|
|
|
3490
3490
|
this.listeners.clear();
|
|
3491
3491
|
}
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function Hl(s) {
|
|
3494
3494
|
return s instanceof Error ? String(s) : typeof s == "object" ? JSON.stringify(s, (t, e) => e instanceof Error ? String(e) : e) : String(s);
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function Vl() {
|
|
3497
3497
|
const s = /* @__PURE__ */ new Date();
|
|
3498
3498
|
return `${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}.${s.getMilliseconds()}`;
|
|
3499
3499
|
}
|
|
3500
|
-
let
|
|
3501
|
-
const
|
|
3500
|
+
let zo = 1;
|
|
3501
|
+
const Bo = [], js = ["debug", "info", "warn", "error"].reduce(
|
|
3502
3502
|
(s, t, e) => Object.assign(s, {
|
|
3503
3503
|
[t]: (...r) => {
|
|
3504
|
-
|
|
3504
|
+
zo <= e && (console[t](...r), Bo.push({
|
|
3505
3505
|
lvName: t,
|
|
3506
|
-
timeStr:
|
|
3506
|
+
timeStr: Vl(),
|
|
3507
3507
|
args: r
|
|
3508
3508
|
}));
|
|
3509
3509
|
}
|
|
@@ -3517,7 +3517,7 @@ const zo = [], js = ["debug", "info", "warn", "error"].reduce(
|
|
|
3517
3517
|
* Log.setLogLevel(Log.warn) // 记录 warn,error 日志
|
|
3518
3518
|
*/
|
|
3519
3519
|
setLogLevel: (s) => {
|
|
3520
|
-
|
|
3520
|
+
zo = wi.get(s) ?? 1;
|
|
3521
3521
|
},
|
|
3522
3522
|
...js,
|
|
3523
3523
|
/**
|
|
@@ -3541,8 +3541,8 @@ const zo = [], js = ["debug", "info", "warn", "error"].reduce(
|
|
|
3541
3541
|
*
|
|
3542
3542
|
*/
|
|
3543
3543
|
async dump() {
|
|
3544
|
-
return
|
|
3545
|
-
(s, { lvName: t, timeStr: e, args: r }) => s + `[${t}][${e}] ${r.map((o) =>
|
|
3544
|
+
return Bo.reduce(
|
|
3545
|
+
(s, { lvName: t, timeStr: e, args: r }) => s + `[${t}][${e}] ${r.map((o) => Hl(o)).join(" ")}
|
|
3546
3546
|
`,
|
|
3547
3547
|
""
|
|
3548
3548
|
);
|
|
@@ -4640,13 +4640,13 @@ function Ps(s) {
|
|
|
4640
4640
|
function Uc(s) {
|
|
4641
4641
|
return document.createElement(s);
|
|
4642
4642
|
}
|
|
4643
|
-
function
|
|
4643
|
+
function zc(s) {
|
|
4644
4644
|
var t = "", e = new Uint8Array(s), r = e.byteLength;
|
|
4645
4645
|
for (let o = 0; o < r; o++)
|
|
4646
4646
|
t += String.fromCharCode(e[o]);
|
|
4647
4647
|
return window.btoa(t);
|
|
4648
4648
|
}
|
|
4649
|
-
async function
|
|
4649
|
+
async function Bc(s, t, e = {}) {
|
|
4650
4650
|
const r = Uc("pre");
|
|
4651
4651
|
r.style.cssText = `margin: 0; ${t}; position: fixed;`, r.textContent = s, document.body.appendChild(r), e.onCreated?.(r);
|
|
4652
4652
|
const { width: o, height: a } = r.getBoundingClientRect();
|
|
@@ -4656,7 +4656,7 @@ async function zc(s, t, e = {}) {
|
|
|
4656
4656
|
const l = e.font == null ? "" : `
|
|
4657
4657
|
@font-face {
|
|
4658
4658
|
font-family: '${e.font.name}';
|
|
4659
|
-
src: url('data:font/woff2;base64,${
|
|
4659
|
+
src: url('data:font/woff2;base64,${zc(await (await fetch(e.font.url)).arrayBuffer())}') format('woff2');
|
|
4660
4660
|
}
|
|
4661
4661
|
`, d = `
|
|
4662
4662
|
<svg xmlns="http://www.w3.org/2000/svg" width="${o}" height="${a}">
|
|
@@ -4673,7 +4673,7 @@ async function zc(s, t, e = {}) {
|
|
|
4673
4673
|
}), h;
|
|
4674
4674
|
}
|
|
4675
4675
|
async function dy(s, t, e = {}) {
|
|
4676
|
-
const r = await
|
|
4676
|
+
const r = await Bc(s, t, e), o = new OffscreenCanvas(r.width, r.height);
|
|
4677
4677
|
return o.getContext("2d")?.drawImage(r, 0, 0, r.width, r.height), await createImageBitmap(o);
|
|
4678
4678
|
}
|
|
4679
4679
|
async function Dc(s, t) {
|
|
@@ -4687,7 +4687,7 @@ async function Dc(s, t) {
|
|
|
4687
4687
|
a.push((await r.decode({ frameIndex: h })).image);
|
|
4688
4688
|
return a;
|
|
4689
4689
|
}
|
|
4690
|
-
let
|
|
4690
|
+
let Ho = class {
|
|
4691
4691
|
all = /* @__PURE__ */ new Map();
|
|
4692
4692
|
on(t, e) {
|
|
4693
4693
|
const r = this.all.get(t);
|
|
@@ -4706,7 +4706,7 @@ let Vo = class {
|
|
|
4706
4706
|
});
|
|
4707
4707
|
}
|
|
4708
4708
|
};
|
|
4709
|
-
class Lc extends
|
|
4709
|
+
class Lc extends Ho {
|
|
4710
4710
|
/**
|
|
4711
4711
|
* Unique identifier for the sprite/clip
|
|
4712
4712
|
*/
|
|
@@ -5397,7 +5397,7 @@ async function Gc(s, t) {
|
|
|
5397
5397
|
const e = await new Response(s).arrayBuffer();
|
|
5398
5398
|
return Ms(await t.decodeAudioData(e));
|
|
5399
5399
|
}
|
|
5400
|
-
var
|
|
5400
|
+
var B = /* @__PURE__ */ ((s) => (s.Application = "application", s.WebGLPipes = "webgl-pipes", s.WebGLPipesAdaptor = "webgl-pipes-adaptor", s.WebGLSystem = "webgl-system", s.WebGPUPipes = "webgpu-pipes", s.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", s.WebGPUSystem = "webgpu-system", s.CanvasSystem = "canvas-system", s.CanvasPipesAdaptor = "canvas-pipes-adaptor", s.CanvasPipes = "canvas-pipes", s.Asset = "asset", s.LoadParser = "load-parser", s.ResolveParser = "resolve-parser", s.CacheParser = "cache-parser", s.DetectionParser = "detection-parser", s.MaskEffect = "mask-effect", s.BlendMode = "blend-mode", s.TextureSource = "texture-source", s.Environment = "environment", s.ShapeBuilder = "shape-builder", s.Batcher = "batcher", s))(B || {});
|
|
5401
5401
|
const as = (s) => {
|
|
5402
5402
|
if (typeof s == "function" || typeof s == "object" && s.extension) {
|
|
5403
5403
|
if (!s.extension)
|
|
@@ -5596,23 +5596,23 @@ const as = (s) => {
|
|
|
5596
5596
|
}
|
|
5597
5597
|
}, Wc = {
|
|
5598
5598
|
extension: {
|
|
5599
|
-
type:
|
|
5599
|
+
type: B.Environment,
|
|
5600
5600
|
name: "browser",
|
|
5601
5601
|
priority: -1
|
|
5602
5602
|
},
|
|
5603
5603
|
test: () => !0,
|
|
5604
5604
|
load: async () => {
|
|
5605
|
-
await import("./browserAll-
|
|
5605
|
+
await import("./browserAll-Bcw9LkkO.js");
|
|
5606
5606
|
}
|
|
5607
|
-
},
|
|
5607
|
+
}, Hc = {
|
|
5608
5608
|
extension: {
|
|
5609
|
-
type:
|
|
5609
|
+
type: B.Environment,
|
|
5610
5610
|
name: "webworker",
|
|
5611
5611
|
priority: 0
|
|
5612
5612
|
},
|
|
5613
5613
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
5614
5614
|
load: async () => {
|
|
5615
|
-
await import("./webworkerAll-
|
|
5615
|
+
await import("./webworkerAll-D3jYu9HP.js");
|
|
5616
5616
|
}
|
|
5617
5617
|
};
|
|
5618
5618
|
class yt {
|
|
@@ -5787,7 +5787,7 @@ class yt {
|
|
|
5787
5787
|
}
|
|
5788
5788
|
}
|
|
5789
5789
|
var yr = { exports: {} }, on;
|
|
5790
|
-
function
|
|
5790
|
+
function Vc() {
|
|
5791
5791
|
return on || (on = 1, (function(s) {
|
|
5792
5792
|
var t = Object.prototype.hasOwnProperty, e = "~";
|
|
5793
5793
|
function r() {
|
|
@@ -5893,9 +5893,9 @@ function Hc() {
|
|
|
5893
5893
|
}, l.prototype.off = l.prototype.removeListener, l.prototype.addListener = l.prototype.on, l.prefixed = e, l.EventEmitter = l, s.exports = l;
|
|
5894
5894
|
})(yr)), yr.exports;
|
|
5895
5895
|
}
|
|
5896
|
-
var Yc =
|
|
5896
|
+
var Yc = Vc();
|
|
5897
5897
|
const Yt = /* @__PURE__ */ or(Yc), $c = Math.PI * 2, Xc = 180 / Math.PI, qc = Math.PI / 180;
|
|
5898
|
-
class
|
|
5898
|
+
class nt {
|
|
5899
5899
|
/**
|
|
5900
5900
|
* Creates a new `Point`
|
|
5901
5901
|
* @param {number} [x=0] - position of the point on the x axis
|
|
@@ -5930,7 +5930,7 @@ class ot {
|
|
|
5930
5930
|
* @see {@link Point.copyTo} For copying to existing point
|
|
5931
5931
|
*/
|
|
5932
5932
|
clone() {
|
|
5933
|
-
return new
|
|
5933
|
+
return new nt(this.x, this.y);
|
|
5934
5934
|
}
|
|
5935
5935
|
/**
|
|
5936
5936
|
* Copies x and y from the given point into this point.
|
|
@@ -6057,8 +6057,8 @@ class ot {
|
|
|
6057
6057
|
return xr.x = 0, xr.y = 0, xr;
|
|
6058
6058
|
}
|
|
6059
6059
|
}
|
|
6060
|
-
const xr = new
|
|
6061
|
-
class
|
|
6060
|
+
const xr = new nt();
|
|
6061
|
+
class V {
|
|
6062
6062
|
/**
|
|
6063
6063
|
* @param a - x scale
|
|
6064
6064
|
* @param b - y skew
|
|
@@ -6194,7 +6194,7 @@ class H {
|
|
|
6194
6194
|
* @see {@link Point} For point operations
|
|
6195
6195
|
*/
|
|
6196
6196
|
apply(t, e) {
|
|
6197
|
-
e = e || new
|
|
6197
|
+
e = e || new nt();
|
|
6198
6198
|
const r = t.x, o = t.y;
|
|
6199
6199
|
return e.x = this.a * r + this.c * o + this.tx, e.y = this.b * r + this.d * o + this.ty, e;
|
|
6200
6200
|
}
|
|
@@ -6224,7 +6224,7 @@ class H {
|
|
|
6224
6224
|
* @see {@link Matrix.invert} For getting inverse matrix
|
|
6225
6225
|
*/
|
|
6226
6226
|
applyInverse(t, e) {
|
|
6227
|
-
e = e || new
|
|
6227
|
+
e = e || new nt();
|
|
6228
6228
|
const r = this.a, o = this.b, a = this.c, h = this.d, l = this.tx, d = this.ty, p = 1 / (r * h + a * -o), m = t.x, v = t.y;
|
|
6229
6229
|
return e.x = h * p * m + -a * p * v + (d * a - l * h) * p, e.y = r * p * v + -o * p * m + (-d * r + l * o) * p, e;
|
|
6230
6230
|
}
|
|
@@ -6557,7 +6557,7 @@ class H {
|
|
|
6557
6557
|
* @returns A copy of this matrix. Good for chaining method calls.
|
|
6558
6558
|
*/
|
|
6559
6559
|
clone() {
|
|
6560
|
-
const t = new
|
|
6560
|
+
const t = new V();
|
|
6561
6561
|
return t.a = this.a, t.b = this.b, t.c = this.c, t.d = this.d, t.tx = this.tx, t.ty = this.ty, t;
|
|
6562
6562
|
}
|
|
6563
6563
|
/**
|
|
@@ -6689,23 +6689,23 @@ class H {
|
|
|
6689
6689
|
return Zc.identity();
|
|
6690
6690
|
}
|
|
6691
6691
|
}
|
|
6692
|
-
const Zc = new
|
|
6692
|
+
const Zc = new V(), Kc = new V(), fe = [1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1, 0, 1], pe = [0, 1, 1, 1, 0, -1, -1, -1, 0, 1, 1, 1, 0, -1, -1, -1], me = [0, -1, -1, -1, 0, 1, 1, 1, 0, 1, 1, 1, 0, -1, -1, -1], ge = [1, 1, 0, -1, -1, -1, 0, 1, -1, -1, 0, 1, 1, 1, 0, -1], ls = [], Vo = [], Ii = Math.sign;
|
|
6693
6693
|
function Jc() {
|
|
6694
6694
|
for (let s = 0; s < 16; s++) {
|
|
6695
6695
|
const t = [];
|
|
6696
6696
|
ls.push(t);
|
|
6697
6697
|
for (let e = 0; e < 16; e++) {
|
|
6698
|
-
const r = Ii(
|
|
6698
|
+
const r = Ii(fe[s] * fe[e] + me[s] * pe[e]), o = Ii(pe[s] * fe[e] + ge[s] * pe[e]), a = Ii(fe[s] * me[e] + me[s] * ge[e]), h = Ii(pe[s] * me[e] + ge[s] * ge[e]);
|
|
6699
6699
|
for (let l = 0; l < 16; l++)
|
|
6700
|
-
if (
|
|
6700
|
+
if (fe[l] === r && pe[l] === o && me[l] === a && ge[l] === h) {
|
|
6701
6701
|
t.push(l);
|
|
6702
6702
|
break;
|
|
6703
6703
|
}
|
|
6704
6704
|
}
|
|
6705
6705
|
}
|
|
6706
6706
|
for (let s = 0; s < 16; s++) {
|
|
6707
|
-
const t = new
|
|
6708
|
-
t.set(
|
|
6707
|
+
const t = new V();
|
|
6708
|
+
t.set(fe[s], pe[s], me[s], ge[s], 0, 0), Vo.push(t);
|
|
6709
6709
|
}
|
|
6710
6710
|
}
|
|
6711
6711
|
Jc();
|
|
@@ -6804,28 +6804,28 @@ const j = {
|
|
|
6804
6804
|
* @returns {GD8Symmetry} The X-component of the U-axis
|
|
6805
6805
|
* after rotating the axes.
|
|
6806
6806
|
*/
|
|
6807
|
-
uX: (s) =>
|
|
6807
|
+
uX: (s) => fe[s],
|
|
6808
6808
|
/**
|
|
6809
6809
|
* @group groupD8
|
|
6810
6810
|
* @param {GD8Symmetry} ind - sprite rotation angle.
|
|
6811
6811
|
* @returns {GD8Symmetry} The Y-component of the U-axis
|
|
6812
6812
|
* after rotating the axes.
|
|
6813
6813
|
*/
|
|
6814
|
-
uY: (s) =>
|
|
6814
|
+
uY: (s) => pe[s],
|
|
6815
6815
|
/**
|
|
6816
6816
|
* @group groupD8
|
|
6817
6817
|
* @param {GD8Symmetry} ind - sprite rotation angle.
|
|
6818
6818
|
* @returns {GD8Symmetry} The X-component of the V-axis
|
|
6819
6819
|
* after rotating the axes.
|
|
6820
6820
|
*/
|
|
6821
|
-
vX: (s) =>
|
|
6821
|
+
vX: (s) => me[s],
|
|
6822
6822
|
/**
|
|
6823
6823
|
* @group groupD8
|
|
6824
6824
|
* @param {GD8Symmetry} ind - sprite rotation angle.
|
|
6825
6825
|
* @returns {GD8Symmetry} The Y-component of the V-axis
|
|
6826
6826
|
* after rotating the axes.
|
|
6827
6827
|
*/
|
|
6828
|
-
vY: (s) =>
|
|
6828
|
+
vY: (s) => ge[s],
|
|
6829
6829
|
/**
|
|
6830
6830
|
* @group groupD8
|
|
6831
6831
|
* @param {GD8Symmetry} rotation - symmetry whose opposite
|
|
@@ -6903,7 +6903,7 @@ const j = {
|
|
|
6903
6903
|
* @param {number} ty - sprite anchoring
|
|
6904
6904
|
*/
|
|
6905
6905
|
matrixAppendRotationInv: (s, t, e = 0, r = 0) => {
|
|
6906
|
-
const o =
|
|
6906
|
+
const o = Vo[j.inv(t)];
|
|
6907
6907
|
o.tx = e, o.ty = r, s.append(o);
|
|
6908
6908
|
},
|
|
6909
6909
|
/**
|
|
@@ -6935,7 +6935,7 @@ const j = {
|
|
|
6935
6935
|
h
|
|
6936
6936
|
) : r.set(o + d, a + p, h, l);
|
|
6937
6937
|
}
|
|
6938
|
-
}, Ei = [new
|
|
6938
|
+
}, Ei = [new nt(), new nt(), new nt(), new nt()];
|
|
6939
6939
|
class G {
|
|
6940
6940
|
/**
|
|
6941
6941
|
* @param x - The X coordinate of the upper-left corner of the rectangle
|
|
@@ -7582,13 +7582,13 @@ Xo.defaultOptions = {
|
|
|
7582
7582
|
addressMode: "clamp-to-edge",
|
|
7583
7583
|
scaleMode: "linear"
|
|
7584
7584
|
};
|
|
7585
|
-
let
|
|
7585
|
+
let ze = Xo;
|
|
7586
7586
|
const Zo = class Ko extends Yt {
|
|
7587
7587
|
/**
|
|
7588
7588
|
* @param options - options for creating a new TextureSource
|
|
7589
7589
|
*/
|
|
7590
7590
|
constructor(t = {}) {
|
|
7591
|
-
super(), this.options = t, this.uid = ct("textureSource"), this._resourceType = "textureSource", this._resourceId = ct("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.antialias = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = { ...Ko.defaultOptions, ...t }, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, t.width ? this.pixelWidth = t.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, t.height ? this.pixelHeight = t.height * this._resolution : this.pixelHeight = this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.alphaMode = t.alphaMode, this.style = new
|
|
7591
|
+
super(), this.options = t, this.uid = ct("textureSource"), this._resourceType = "textureSource", this._resourceId = ct("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.antialias = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = { ...Ko.defaultOptions, ...t }, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, t.width ? this.pixelWidth = t.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, t.height ? this.pixelHeight = t.height * this._resolution : this.pixelHeight = this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.alphaMode = t.alphaMode, this.style = new ze($o(t)), this.destroyed = !1, this._refreshPOT();
|
|
7592
7592
|
}
|
|
7593
7593
|
/** returns itself */
|
|
7594
7594
|
get source() {
|
|
@@ -7778,15 +7778,15 @@ class Rs extends Lt {
|
|
|
7778
7778
|
return t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array;
|
|
7779
7779
|
}
|
|
7780
7780
|
}
|
|
7781
|
-
Rs.extension =
|
|
7782
|
-
const hn = new
|
|
7781
|
+
Rs.extension = B.TextureSource;
|
|
7782
|
+
const hn = new V();
|
|
7783
7783
|
class th {
|
|
7784
7784
|
/**
|
|
7785
7785
|
* @param texture - observed texture
|
|
7786
7786
|
* @param clampMargin - Changes frame clamping, 0.5 by default. Use -0.5 for extra border.
|
|
7787
7787
|
*/
|
|
7788
7788
|
constructor(t, e) {
|
|
7789
|
-
this.mapCoord = new
|
|
7789
|
+
this.mapCoord = new V(), this.uClampFrame = new Float32Array(4), this.uClampOffset = new Float32Array(2), this._textureID = -1, this._updateID = 0, this.clampOffset = 0, typeof e > "u" ? this.clampMargin = t.width < 10 ? 0 : 0.5 : this.clampMargin = e, this.isSimple = !1, this.texture = t;
|
|
7790
7790
|
}
|
|
7791
7791
|
/** Texture property. */
|
|
7792
7792
|
get texture() {
|
|
@@ -7930,8 +7930,8 @@ function eh(s, t, e) {
|
|
|
7930
7930
|
} else
|
|
7931
7931
|
s.minX = -t._x * r, s.maxX = s.minX + r, s.minY = -t._y * o, s.maxY = s.minY + o;
|
|
7932
7932
|
}
|
|
7933
|
-
const un = new
|
|
7934
|
-
class
|
|
7933
|
+
const un = new V();
|
|
7934
|
+
class Vt {
|
|
7935
7935
|
/**
|
|
7936
7936
|
* Creates a new Bounds object.
|
|
7937
7937
|
* @param minX - The minimum X coordinate of the bounds.
|
|
@@ -8240,7 +8240,7 @@ class Ht {
|
|
|
8240
8240
|
* @see {@link Bounds#copyFrom} For reusing existing bounds
|
|
8241
8241
|
*/
|
|
8242
8242
|
clone() {
|
|
8243
|
-
return new
|
|
8243
|
+
return new Vt(this.minX, this.minY, this.maxX, this.maxY);
|
|
8244
8244
|
}
|
|
8245
8245
|
/**
|
|
8246
8246
|
* Scales the bounds by the given values, adjusting all edges proportionally.
|
|
@@ -8700,7 +8700,7 @@ function hh(s, t) {
|
|
|
8700
8700
|
}, "name"]);
|
|
8701
8701
|
}
|
|
8702
8702
|
ch([hh]);
|
|
8703
|
-
const
|
|
8703
|
+
const Be = class ti {
|
|
8704
8704
|
/**
|
|
8705
8705
|
* @param {ColorSource} value - Optional value to use, if not provided, white is used.
|
|
8706
8706
|
*/
|
|
@@ -9371,10 +9371,10 @@ const ze = class ti {
|
|
|
9371
9371
|
return typeof t == "number" || typeof t == "string" || t instanceof Number || t instanceof ti || Array.isArray(t) || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Float32Array || t.r !== void 0 && t.g !== void 0 && t.b !== void 0 || t.r !== void 0 && t.g !== void 0 && t.b !== void 0 && t.a !== void 0 || t.h !== void 0 && t.s !== void 0 && t.l !== void 0 || t.h !== void 0 && t.s !== void 0 && t.l !== void 0 && t.a !== void 0 || t.h !== void 0 && t.s !== void 0 && t.v !== void 0 || t.h !== void 0 && t.s !== void 0 && t.v !== void 0 && t.a !== void 0;
|
|
9372
9372
|
}
|
|
9373
9373
|
};
|
|
9374
|
-
|
|
9375
|
-
|
|
9376
|
-
|
|
9377
|
-
let ht =
|
|
9374
|
+
Be.shared = new Be();
|
|
9375
|
+
Be._temp = new Be();
|
|
9376
|
+
Be.HEX_PATTERN = /^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;
|
|
9377
|
+
let ht = Be;
|
|
9378
9378
|
const uh = {
|
|
9379
9379
|
cullArea: null,
|
|
9380
9380
|
cullable: !1,
|
|
@@ -9552,8 +9552,8 @@ class fh {
|
|
|
9552
9552
|
this._poolsByClass.forEach((t) => t.clear()), this._poolsByClass.clear();
|
|
9553
9553
|
}
|
|
9554
9554
|
}
|
|
9555
|
-
const
|
|
9556
|
-
Ti.register(
|
|
9555
|
+
const zt = new fh();
|
|
9556
|
+
Ti.register(zt);
|
|
9557
9557
|
const ph = {
|
|
9558
9558
|
get isCachedAsTexture() {
|
|
9559
9559
|
return !!this.renderGroup?.isCachedAsTexture;
|
|
@@ -9715,16 +9715,16 @@ class yh {
|
|
|
9715
9715
|
for (let e = 0; e < this._tests.length; e++) {
|
|
9716
9716
|
const r = this._tests[e];
|
|
9717
9717
|
if (r.test(t))
|
|
9718
|
-
return
|
|
9718
|
+
return zt.get(r.maskClass, t);
|
|
9719
9719
|
}
|
|
9720
9720
|
return t;
|
|
9721
9721
|
}
|
|
9722
9722
|
returnMaskEffect(t) {
|
|
9723
|
-
|
|
9723
|
+
zt.return(t);
|
|
9724
9724
|
}
|
|
9725
9725
|
}
|
|
9726
9726
|
const us = new yh();
|
|
9727
|
-
xt.handleByList(
|
|
9727
|
+
xt.handleByList(B.MaskEffect, us._effectClasses);
|
|
9728
9728
|
const xh = {
|
|
9729
9729
|
_maskEffect: null,
|
|
9730
9730
|
_maskOptions: {
|
|
@@ -9809,9 +9809,9 @@ const xh = {
|
|
|
9809
9809
|
r[o].getChildrenByLabel(s, !0, e);
|
|
9810
9810
|
return e;
|
|
9811
9811
|
}
|
|
9812
|
-
}, Tt =
|
|
9812
|
+
}, Tt = zt.getPool(V), ie = zt.getPool(Vt), bh = new V(), wh = {
|
|
9813
9813
|
getFastGlobalBounds(s, t) {
|
|
9814
|
-
t || (t = new
|
|
9814
|
+
t || (t = new Vt()), t.clear(), this._getGlobalBoundsRecursive(!!s, t, this.parentRenderLayer), t.isValid || t.set(0, 0, 0, 0);
|
|
9815
9815
|
const e = this.renderGroup || this.parentRenderGroup;
|
|
9816
9816
|
return t.applyMatrix(e.worldTransform), t;
|
|
9817
9817
|
},
|
|
@@ -9849,7 +9849,7 @@ const xh = {
|
|
|
9849
9849
|
function ta(s, t, e) {
|
|
9850
9850
|
e.clear();
|
|
9851
9851
|
let r, o;
|
|
9852
|
-
return s.parent ? t ? r = s.parent.worldTransform : (o = Tt.get().identity(), r = Us(s, o)) : r =
|
|
9852
|
+
return s.parent ? t ? r = s.parent.worldTransform : (o = Tt.get().identity(), r = Us(s, o)) : r = V.IDENTITY, ea(s, e, r, t), o && Tt.return(o), e.isValid || e.set(0, 0, 0, 0), e;
|
|
9853
9853
|
}
|
|
9854
9854
|
function ea(s, t, e, r) {
|
|
9855
9855
|
if (!s.visible || !s.measurable)
|
|
@@ -9868,7 +9868,7 @@ function ea(s, t, e, r) {
|
|
|
9868
9868
|
if (h) {
|
|
9869
9869
|
for (let l = 0; l < s.effects.length; l++)
|
|
9870
9870
|
s.effects[l].addBounds?.(t);
|
|
9871
|
-
a.addBounds(t,
|
|
9871
|
+
a.addBounds(t, V.IDENTITY), ie.return(t);
|
|
9872
9872
|
}
|
|
9873
9873
|
r || Tt.return(o);
|
|
9874
9874
|
}
|
|
@@ -9900,7 +9900,7 @@ const Th = {
|
|
|
9900
9900
|
t *= e.alpha, e = e.parent;
|
|
9901
9901
|
return t;
|
|
9902
9902
|
},
|
|
9903
|
-
getGlobalTransform(s = new
|
|
9903
|
+
getGlobalTransform(s = new V(), t) {
|
|
9904
9904
|
if (t)
|
|
9905
9905
|
return s.copyFrom(this.worldTransform);
|
|
9906
9906
|
this.updateLocalTransform();
|
|
@@ -9919,7 +9919,7 @@ const Th = {
|
|
|
9919
9919
|
}
|
|
9920
9920
|
};
|
|
9921
9921
|
function ra(s, t, e) {
|
|
9922
|
-
return t.clear(), e || (e =
|
|
9922
|
+
return t.clear(), e || (e = V.IDENTITY), sa(s, t, e, s, !0), t.isValid || t.set(0, 0, 0, 0), t;
|
|
9923
9923
|
}
|
|
9924
9924
|
function sa(s, t, e, r, o) {
|
|
9925
9925
|
let a;
|
|
@@ -9944,7 +9944,7 @@ function sa(s, t, e, r, o) {
|
|
|
9944
9944
|
if (l) {
|
|
9945
9945
|
for (let d = 0; d < s.effects.length; d++)
|
|
9946
9946
|
s.effects[d].addLocalBounds?.(t, r);
|
|
9947
|
-
h.addBounds(t,
|
|
9947
|
+
h.addBounds(t, V.IDENTITY), ie.return(t);
|
|
9948
9948
|
}
|
|
9949
9949
|
Tt.return(a);
|
|
9950
9950
|
}
|
|
@@ -9956,7 +9956,7 @@ function na(s, t) {
|
|
|
9956
9956
|
}
|
|
9957
9957
|
return t.didChange;
|
|
9958
9958
|
}
|
|
9959
|
-
const Sh = new
|
|
9959
|
+
const Sh = new V(), Ch = {
|
|
9960
9960
|
_localBoundsCacheId: -1,
|
|
9961
9961
|
_localBoundsCacheData: null,
|
|
9962
9962
|
_setWidth(s, t) {
|
|
@@ -9972,13 +9972,13 @@ const Sh = new H(), Ch = {
|
|
|
9972
9972
|
data: [],
|
|
9973
9973
|
index: 1,
|
|
9974
9974
|
didChange: !1,
|
|
9975
|
-
localBounds: new
|
|
9975
|
+
localBounds: new Vt()
|
|
9976
9976
|
});
|
|
9977
9977
|
const s = this._localBoundsCacheData;
|
|
9978
9978
|
return s.index = 1, s.didChange = !1, s.data[0] !== this._didViewChangeTick && (s.didChange = !0, s.data[0] = this._didViewChangeTick), na(this, s), s.didChange && ra(this, s.localBounds, Sh), s.localBounds;
|
|
9979
9979
|
},
|
|
9980
9980
|
getBounds(s, t) {
|
|
9981
|
-
return ta(this, s, t || new
|
|
9981
|
+
return ta(this, s, t || new Vt());
|
|
9982
9982
|
}
|
|
9983
9983
|
}, Ah = {
|
|
9984
9984
|
_onRender: null,
|
|
@@ -10014,7 +10014,7 @@ function Eh(s, t) {
|
|
|
10014
10014
|
return s._zIndex - t._zIndex;
|
|
10015
10015
|
}
|
|
10016
10016
|
const Fh = {
|
|
10017
|
-
getGlobalPosition(s = new
|
|
10017
|
+
getGlobalPosition(s = new nt(), t = !1) {
|
|
10018
10018
|
return this.parent ? this.parent.toGlobal(this._position, s, t) : (s.x = this._position.x, s.y = this._position.y), s;
|
|
10019
10019
|
},
|
|
10020
10020
|
toGlobal(s, t, e = !1) {
|
|
@@ -10064,7 +10064,7 @@ class Mh {
|
|
|
10064
10064
|
* @param {SCALE_MODE} [textureOptions.scaleMode] - See {@link SCALE_MODE} for possible values.
|
|
10065
10065
|
*/
|
|
10066
10066
|
constructor(t) {
|
|
10067
|
-
this._poolKeyHash = /* @__PURE__ */ Object.create(null), this._texturePool = {}, this.textureOptions = t || {}, this.enableFullScreen = !1, this.textureStyle = new
|
|
10067
|
+
this._poolKeyHash = /* @__PURE__ */ Object.create(null), this._texturePool = {}, this.textureOptions = t || {}, this.enableFullScreen = !1, this.textureStyle = new ze(this.textureOptions);
|
|
10068
10068
|
}
|
|
10069
10069
|
/**
|
|
10070
10070
|
* Creates texture with params that were specified in pool constructor.
|
|
@@ -10141,7 +10141,7 @@ const De = new Mh();
|
|
|
10141
10141
|
Ti.register(De);
|
|
10142
10142
|
class Ph {
|
|
10143
10143
|
constructor() {
|
|
10144
|
-
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new
|
|
10144
|
+
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new V(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = { list: [], index: 0 }, this.structureDidChange = !0, this.instructionSet = new oa(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
|
|
10145
10145
|
}
|
|
10146
10146
|
init(t) {
|
|
10147
10147
|
this.root = t, t._onRender && this.addOnRender(t), t.didChange = !0;
|
|
@@ -10259,14 +10259,14 @@ class Ph {
|
|
|
10259
10259
|
* @returns {Matrix} The inverse of the world transform matrix.
|
|
10260
10260
|
*/
|
|
10261
10261
|
get inverseWorldTransform() {
|
|
10262
|
-
return (this._matrixDirty & 1) === 0 ? this._inverseWorldTransform : (this._matrixDirty &= -2, this._inverseWorldTransform || (this._inverseWorldTransform = new
|
|
10262
|
+
return (this._matrixDirty & 1) === 0 ? this._inverseWorldTransform : (this._matrixDirty &= -2, this._inverseWorldTransform || (this._inverseWorldTransform = new V()), this._inverseWorldTransform.copyFrom(this.worldTransform).invert());
|
|
10263
10263
|
}
|
|
10264
10264
|
/**
|
|
10265
10265
|
* Returns the inverse of the texture offset transform matrix.
|
|
10266
10266
|
* @returns {Matrix} The inverse of the texture offset transform matrix.
|
|
10267
10267
|
*/
|
|
10268
10268
|
get textureOffsetInverseTransform() {
|
|
10269
|
-
return (this._matrixDirty & 2) === 0 ? this._textureOffsetInverseTransform : (this._matrixDirty &= -3, this._textureOffsetInverseTransform || (this._textureOffsetInverseTransform = new
|
|
10269
|
+
return (this._matrixDirty & 2) === 0 ? this._textureOffsetInverseTransform : (this._matrixDirty &= -3, this._textureOffsetInverseTransform || (this._textureOffsetInverseTransform = new V()), this._textureOffsetInverseTransform.copyFrom(this.inverseWorldTransform).translate(
|
|
10270
10270
|
-this._textureBounds.x,
|
|
10271
10271
|
-this._textureBounds.y
|
|
10272
10272
|
));
|
|
@@ -10281,7 +10281,7 @@ class Ph {
|
|
|
10281
10281
|
return this._inverseParentTextureTransform;
|
|
10282
10282
|
this._matrixDirty &= -5;
|
|
10283
10283
|
const t = this._parentCacheAsTextureRenderGroup;
|
|
10284
|
-
return t ? (this._inverseParentTextureTransform || (this._inverseParentTextureTransform = new
|
|
10284
|
+
return t ? (this._inverseParentTextureTransform || (this._inverseParentTextureTransform = new V()), this._inverseParentTextureTransform.copyFrom(this.worldTransform).prepend(t.inverseWorldTransform).translate(
|
|
10285
10285
|
-t._textureBounds.x,
|
|
10286
10286
|
-t._textureBounds.y
|
|
10287
10287
|
)) : this.worldTransform;
|
|
@@ -10301,9 +10301,9 @@ function Rh(s, t, e = {}) {
|
|
|
10301
10301
|
!e[r] && t[r] !== void 0 && (s[r] = t[r]);
|
|
10302
10302
|
}
|
|
10303
10303
|
const Cr = new yt(null), ki = new yt(null), Ar = new yt(null, 1, 1), Mi = new yt(null), Tn = 1, Uh = 2, Ir = 4;
|
|
10304
|
-
class
|
|
10304
|
+
class ot extends Yt {
|
|
10305
10305
|
constructor(t = {}) {
|
|
10306
|
-
super(), this.uid = ct("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new
|
|
10306
|
+
super(), this.uid = ct("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new V(), this.relativeGroupTransform = new V(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new yt(this, 0, 0), this._scale = Ar, this._pivot = ki, this._origin = Mi, this._skew = Cr, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didContainerChangeTick = 0, this._didViewChangeTick = 0, this._didLocalTransformChangeId = -1, this.effects = [], Rh(this, t, {
|
|
10307
10307
|
children: !0,
|
|
10308
10308
|
parent: !0,
|
|
10309
10309
|
effects: !0
|
|
@@ -10315,7 +10315,7 @@ class nt extends Yt {
|
|
|
10315
10315
|
* @deprecated since 8.8.0
|
|
10316
10316
|
*/
|
|
10317
10317
|
static mixin(t) {
|
|
10318
|
-
N("8.8.0", "Container.mixin is deprecated, please use extensions.mixin instead."), xt.mixin(
|
|
10318
|
+
N("8.8.0", "Container.mixin is deprecated, please use extensions.mixin instead."), xt.mixin(ot, t);
|
|
10319
10319
|
}
|
|
10320
10320
|
// = 'default';
|
|
10321
10321
|
/**
|
|
@@ -10413,7 +10413,7 @@ class nt extends Yt {
|
|
|
10413
10413
|
if (this.renderGroup)
|
|
10414
10414
|
return;
|
|
10415
10415
|
const t = this.parentRenderGroup;
|
|
10416
|
-
t?.removeChild(this), this.renderGroup =
|
|
10416
|
+
t?.removeChild(this), this.renderGroup = zt.get(Ph, this), this.groupTransform = V.IDENTITY, t?.addChild(this), this._updateIsSimple();
|
|
10417
10417
|
}
|
|
10418
10418
|
/**
|
|
10419
10419
|
* This will disable the render group for this container.
|
|
@@ -10423,7 +10423,7 @@ class nt extends Yt {
|
|
|
10423
10423
|
if (!this.renderGroup)
|
|
10424
10424
|
return;
|
|
10425
10425
|
const t = this.parentRenderGroup;
|
|
10426
|
-
t?.removeChild(this),
|
|
10426
|
+
t?.removeChild(this), zt.return(this.renderGroup), this.renderGroup = null, this.groupTransform = this.relativeGroupTransform, t?.addChild(this), this._updateIsSimple();
|
|
10427
10427
|
}
|
|
10428
10428
|
/** @ignore */
|
|
10429
10429
|
_updateIsSimple() {
|
|
@@ -10443,7 +10443,7 @@ class nt extends Yt {
|
|
|
10443
10443
|
* @see {@link Container#localTransform} For local space transform
|
|
10444
10444
|
*/
|
|
10445
10445
|
get worldTransform() {
|
|
10446
|
-
return this._worldTransform || (this._worldTransform = new
|
|
10446
|
+
return this._worldTransform || (this._worldTransform = new V()), this.renderGroup ? this._worldTransform.copyFrom(this.renderGroup.worldTransform) : this.parentRenderGroup && this._worldTransform.appendFrom(this.relativeGroupTransform, this.parentRenderGroup.worldTransform), this._worldTransform;
|
|
10447
10447
|
}
|
|
10448
10448
|
/**
|
|
10449
10449
|
* The position of the container on the x axis relative to the local coordinates of the parent.
|
|
@@ -10992,7 +10992,7 @@ class nt extends Yt {
|
|
|
10992
10992
|
}
|
|
10993
10993
|
}
|
|
10994
10994
|
xt.mixin(
|
|
10995
|
-
|
|
10995
|
+
ot,
|
|
10996
10996
|
gh,
|
|
10997
10997
|
wh,
|
|
10998
10998
|
Fh,
|
|
@@ -11006,10 +11006,10 @@ xt.mixin(
|
|
|
11006
11006
|
Th,
|
|
11007
11007
|
vh
|
|
11008
11008
|
);
|
|
11009
|
-
class
|
|
11009
|
+
class zs extends ot {
|
|
11010
11010
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
11011
11011
|
constructor(t) {
|
|
11012
|
-
super(t), this.canBundle = !0, this.allowChildren = !1, this._roundPixels = 0, this._lastUsed = -1, this._gpuData = /* @__PURE__ */ Object.create(null), this._bounds = new
|
|
11012
|
+
super(t), this.canBundle = !0, this.allowChildren = !1, this._roundPixels = 0, this._lastUsed = -1, this._gpuData = /* @__PURE__ */ Object.create(null), this._bounds = new Vt(0, 1, 0, 0), this._boundsDirty = !0;
|
|
11013
11013
|
}
|
|
11014
11014
|
/**
|
|
11015
11015
|
* The local bounds of the view in its own coordinate space.
|
|
@@ -11091,7 +11091,7 @@ class Bs extends nt {
|
|
|
11091
11091
|
o.blendMode.popBlendMode(t);
|
|
11092
11092
|
}
|
|
11093
11093
|
}
|
|
11094
|
-
class _t extends
|
|
11094
|
+
class _t extends zs {
|
|
11095
11095
|
/**
|
|
11096
11096
|
* @param options - The options for creating the sprite.
|
|
11097
11097
|
*/
|
|
@@ -11359,9 +11359,9 @@ class _t extends Bs {
|
|
|
11359
11359
|
typeof t == "object" ? (e = t.height ?? t.width, t = t.width) : e ?? (e = t), t !== void 0 && this._setWidth(t, this._texture.orig.width), e !== void 0 && this._setHeight(e, this._texture.orig.height);
|
|
11360
11360
|
}
|
|
11361
11361
|
}
|
|
11362
|
-
const
|
|
11362
|
+
const zh = new Vt();
|
|
11363
11363
|
function aa(s, t, e) {
|
|
11364
|
-
const r =
|
|
11364
|
+
const r = zh;
|
|
11365
11365
|
s.measurable = !0, ta(s, e, r), t.addBoundsMask(r), s.measurable = !1;
|
|
11366
11366
|
}
|
|
11367
11367
|
function la(s, t, e) {
|
|
@@ -11400,7 +11400,7 @@ class ha {
|
|
|
11400
11400
|
return t instanceof _t;
|
|
11401
11401
|
}
|
|
11402
11402
|
}
|
|
11403
|
-
ha.extension =
|
|
11403
|
+
ha.extension = B.MaskEffect;
|
|
11404
11404
|
class ua {
|
|
11405
11405
|
constructor(t) {
|
|
11406
11406
|
this.priority = 0, this.pipe = "colorMask", t?.mask && this.init(t.mask);
|
|
@@ -11414,7 +11414,7 @@ class ua {
|
|
|
11414
11414
|
return typeof t == "number";
|
|
11415
11415
|
}
|
|
11416
11416
|
}
|
|
11417
|
-
ua.extension =
|
|
11417
|
+
ua.extension = B.MaskEffect;
|
|
11418
11418
|
class da {
|
|
11419
11419
|
constructor(t) {
|
|
11420
11420
|
this.priority = 0, this.pipe = "stencilMask", t?.mask && this.init(t.mask);
|
|
@@ -11439,11 +11439,11 @@ class da {
|
|
|
11439
11439
|
this.reset();
|
|
11440
11440
|
}
|
|
11441
11441
|
static test(t) {
|
|
11442
|
-
return t instanceof
|
|
11442
|
+
return t instanceof ot;
|
|
11443
11443
|
}
|
|
11444
11444
|
}
|
|
11445
|
-
da.extension =
|
|
11446
|
-
const
|
|
11445
|
+
da.extension = B.MaskEffect;
|
|
11446
|
+
const Bh = {
|
|
11447
11447
|
createCanvas: (s, t) => {
|
|
11448
11448
|
const e = document.createElement("canvas");
|
|
11449
11449
|
return e.width = s, e.height = t, e;
|
|
@@ -11457,7 +11457,7 @@ const zh = {
|
|
|
11457
11457
|
fetch: (s, t) => fetch(s, t),
|
|
11458
11458
|
parseXML: (s) => new DOMParser().parseFromString(s, "text/xml")
|
|
11459
11459
|
};
|
|
11460
|
-
let Sn =
|
|
11460
|
+
let Sn = Bh;
|
|
11461
11461
|
const it = {
|
|
11462
11462
|
/**
|
|
11463
11463
|
* Returns the current adapter.
|
|
@@ -11497,7 +11497,7 @@ class fa extends Lt {
|
|
|
11497
11497
|
return this._context2D || (this._context2D = this.resource.getContext("2d"));
|
|
11498
11498
|
}
|
|
11499
11499
|
}
|
|
11500
|
-
fa.extension =
|
|
11500
|
+
fa.extension = B.TextureSource;
|
|
11501
11501
|
class Jt extends Lt {
|
|
11502
11502
|
constructor(t) {
|
|
11503
11503
|
super(t), this.uploadMethodId = "image", this.autoGarbageCollect = !0;
|
|
@@ -11506,7 +11506,7 @@ class Jt extends Lt {
|
|
|
11506
11506
|
return globalThis.HTMLImageElement && t instanceof HTMLImageElement || typeof ImageBitmap < "u" && t instanceof ImageBitmap || globalThis.VideoFrame && t instanceof VideoFrame;
|
|
11507
11507
|
}
|
|
11508
11508
|
}
|
|
11509
|
-
Jt.extension =
|
|
11509
|
+
Jt.extension = B.TextureSource;
|
|
11510
11510
|
var ds = /* @__PURE__ */ ((s) => (s[s.INTERACTION = 50] = "INTERACTION", s[s.HIGH = 25] = "HIGH", s[s.NORMAL = 0] = "NORMAL", s[s.LOW = -25] = "LOW", s[s.UTILITY = -50] = "UTILITY", s))(ds || {});
|
|
11511
11511
|
class Er {
|
|
11512
11512
|
/**
|
|
@@ -12154,7 +12154,7 @@ const lr = class ga extends Lt {
|
|
|
12154
12154
|
return globalThis.HTMLVideoElement && t instanceof HTMLVideoElement;
|
|
12155
12155
|
}
|
|
12156
12156
|
};
|
|
12157
|
-
lr.extension =
|
|
12157
|
+
lr.extension = B.TextureSource;
|
|
12158
12158
|
lr.defaultOptions = {
|
|
12159
12159
|
...Lt.defaultOptions,
|
|
12160
12160
|
/** If true, the video will start loading immediately. */
|
|
@@ -12261,7 +12261,7 @@ class Dh {
|
|
|
12261
12261
|
}
|
|
12262
12262
|
}
|
|
12263
12263
|
const rt = new Dh(), fs = [];
|
|
12264
|
-
xt.handleByList(
|
|
12264
|
+
xt.handleByList(B.TextureSource, fs);
|
|
12265
12265
|
function va(s = {}) {
|
|
12266
12266
|
const t = s && s.resource, e = t ? s.resource : s, r = t ? s : { resource: s };
|
|
12267
12267
|
for (let o = 0; o < fs.length; o++) {
|
|
@@ -12286,12 +12286,12 @@ function Oh(s, t = !1) {
|
|
|
12286
12286
|
O.from = Oh;
|
|
12287
12287
|
Lt.from = va;
|
|
12288
12288
|
xt.add(ha, ua, da, li, Jt, fa, Rs);
|
|
12289
|
-
var
|
|
12289
|
+
var le = /* @__PURE__ */ ((s) => (s[s.Low = 0] = "Low", s[s.Normal = 1] = "Normal", s[s.High = 2] = "High", s))(le || {});
|
|
12290
12290
|
function Nt(s) {
|
|
12291
12291
|
if (typeof s != "string")
|
|
12292
12292
|
throw new TypeError(`Path must be a string. Received ${JSON.stringify(s)}`);
|
|
12293
12293
|
}
|
|
12294
|
-
function
|
|
12294
|
+
function Ve(s) {
|
|
12295
12295
|
return s.split("?")[0].split("#")[0];
|
|
12296
12296
|
}
|
|
12297
12297
|
function Nh(s) {
|
|
@@ -12441,7 +12441,7 @@ const kt = {
|
|
|
12441
12441
|
toAbsolute(s, t, e) {
|
|
12442
12442
|
if (Nt(s), this.isDataUrl(s) || this.isBlobUrl(s))
|
|
12443
12443
|
return s;
|
|
12444
|
-
const r =
|
|
12444
|
+
const r = Ve(this.toPosix(t ?? it.get().getBaseUrl())), o = Ve(this.toPosix(e ?? this.rootname(r)));
|
|
12445
12445
|
return s = this.toPosix(s), s.startsWith("/") ? kt.join(o, s.slice(1)) : this.isAbsolute(s) ? s : this.join(r, s);
|
|
12446
12446
|
},
|
|
12447
12447
|
/**
|
|
@@ -12584,7 +12584,7 @@ const kt = {
|
|
|
12584
12584
|
* ```
|
|
12585
12585
|
*/
|
|
12586
12586
|
basename(s, t) {
|
|
12587
|
-
Nt(s), t && Nt(t), s =
|
|
12587
|
+
Nt(s), t && Nt(t), s = Ve(this.toPosix(s));
|
|
12588
12588
|
let e = 0, r = -1, o = !0, a;
|
|
12589
12589
|
if (t !== void 0 && t.length > 0 && t.length <= s.length) {
|
|
12590
12590
|
if (t.length === s.length && t === s)
|
|
@@ -12627,7 +12627,7 @@ const kt = {
|
|
|
12627
12627
|
* ```
|
|
12628
12628
|
*/
|
|
12629
12629
|
extname(s) {
|
|
12630
|
-
Nt(s), s =
|
|
12630
|
+
Nt(s), s = Ve(this.toPosix(s));
|
|
12631
12631
|
let t = -1, e = 0, r = -1, o = !0, a = 0;
|
|
12632
12632
|
for (let h = s.length - 1; h >= 0; --h) {
|
|
12633
12633
|
const l = s.charCodeAt(h);
|
|
@@ -12672,7 +12672,7 @@ const kt = {
|
|
|
12672
12672
|
const t = { root: "", dir: "", base: "", ext: "", name: "" };
|
|
12673
12673
|
if (s.length === 0)
|
|
12674
12674
|
return t;
|
|
12675
|
-
s =
|
|
12675
|
+
s = Ve(this.toPosix(s));
|
|
12676
12676
|
let e = s.charCodeAt(0);
|
|
12677
12677
|
const r = this.isAbsolute(s);
|
|
12678
12678
|
let o;
|
|
@@ -12701,7 +12701,7 @@ function ya(s, t, e, r, o) {
|
|
|
12701
12701
|
e < t.length - 1 ? ya(s.replace(r[e], l), t, e + 1, r, o) : o.push(s.replace(r[e], l));
|
|
12702
12702
|
}
|
|
12703
12703
|
}
|
|
12704
|
-
function
|
|
12704
|
+
function Hh(s) {
|
|
12705
12705
|
const t = /\{(.*?)\}/g, e = s.match(t), r = [];
|
|
12706
12706
|
if (e) {
|
|
12707
12707
|
const o = [];
|
|
@@ -12942,7 +12942,7 @@ class Oe {
|
|
|
12942
12942
|
loadParser: p,
|
|
12943
12943
|
parser: m
|
|
12944
12944
|
} = a;
|
|
12945
|
-
const v = Wt(h).map((c) => typeof c == "string" ?
|
|
12945
|
+
const v = Wt(h).map((c) => typeof c == "string" ? Hh(c) : Array.isArray(c) ? c : [c]), y = this.getAlias(a);
|
|
12946
12946
|
Array.isArray(y) ? y.forEach(r) : r(y);
|
|
12947
12947
|
const _ = [], n = (c) => ({
|
|
12948
12948
|
...this._parsers.find((f) => f.test(c))?.parse(c),
|
|
@@ -13105,11 +13105,11 @@ class Oe {
|
|
|
13105
13105
|
}
|
|
13106
13106
|
_buildResolvedAsset(t, e) {
|
|
13107
13107
|
const { aliases: r, data: o, loadParser: a, parser: h, format: l, progressSize: d } = e;
|
|
13108
|
-
return (this._basePath || this._rootPath) && (t.src = kt.toAbsolute(t.src, this._basePath, this._rootPath)), t.alias = r ?? t.alias ?? [t.src], t.src = this._appendDefaultSearchParams(t.src), t.data = { ...o || {}, ...t.data }, t.loadParser = a ?? t.loadParser, t.parser = h ?? t.parser, t.format = l ?? t.format ??
|
|
13108
|
+
return (this._basePath || this._rootPath) && (t.src = kt.toAbsolute(t.src, this._basePath, this._rootPath)), t.alias = r ?? t.alias ?? [t.src], t.src = this._appendDefaultSearchParams(t.src), t.data = { ...o || {}, ...t.data }, t.loadParser = a ?? t.loadParser, t.parser = h ?? t.parser, t.format = l ?? t.format ?? Vh(t.src), d !== void 0 && (t.progressSize = d), t;
|
|
13109
13109
|
}
|
|
13110
13110
|
}
|
|
13111
13111
|
Oe.RETINA_PREFIX = /@([0-9\.]+)x/;
|
|
13112
|
-
function
|
|
13112
|
+
function Vh(s) {
|
|
13113
13113
|
return s.split(".").pop().split("?").shift().split("#").shift();
|
|
13114
13114
|
}
|
|
13115
13115
|
const ps = (s, t) => {
|
|
@@ -13251,7 +13251,7 @@ function _a(s, t, e) {
|
|
|
13251
13251
|
return r;
|
|
13252
13252
|
}
|
|
13253
13253
|
const $h = {
|
|
13254
|
-
extension:
|
|
13254
|
+
extension: B.Asset,
|
|
13255
13255
|
/** Handle the caching of the related Spritesheet Textures */
|
|
13256
13256
|
cache: {
|
|
13257
13257
|
test: (s) => s instanceof Cn,
|
|
@@ -13260,7 +13260,7 @@ const $h = {
|
|
|
13260
13260
|
/** Resolve the resolution of the asset. */
|
|
13261
13261
|
resolver: {
|
|
13262
13262
|
extension: {
|
|
13263
|
-
type:
|
|
13263
|
+
type: B.ResolveParser,
|
|
13264
13264
|
name: "resolveSpritesheet"
|
|
13265
13265
|
},
|
|
13266
13266
|
test: (s) => {
|
|
@@ -13287,8 +13287,8 @@ const $h = {
|
|
|
13287
13287
|
name: "spritesheetLoader",
|
|
13288
13288
|
id: "spritesheet",
|
|
13289
13289
|
extension: {
|
|
13290
|
-
type:
|
|
13291
|
-
priority:
|
|
13290
|
+
type: B.LoadParser,
|
|
13291
|
+
priority: le.Normal,
|
|
13292
13292
|
name: "spritesheetLoader"
|
|
13293
13293
|
},
|
|
13294
13294
|
async testParse(s, t) {
|
|
@@ -13349,7 +13349,7 @@ const $h = {
|
|
|
13349
13349
|
};
|
|
13350
13350
|
xt.add($h);
|
|
13351
13351
|
const kr = /* @__PURE__ */ Object.create(null), An = /* @__PURE__ */ Object.create(null);
|
|
13352
|
-
function
|
|
13352
|
+
function Bs(s, t) {
|
|
13353
13353
|
let e = An[s];
|
|
13354
13354
|
return e === void 0 && (kr[t] === void 0 && (kr[t] = 1), An[s] = e = kr[t]++), e;
|
|
13355
13355
|
}
|
|
@@ -13444,7 +13444,7 @@ const Mr = {
|
|
|
13444
13444
|
Object.keys(Mr).forEach((h) => {
|
|
13445
13445
|
const l = r[h];
|
|
13446
13446
|
o = Mr[h](o, l, !0), a = Mr[h](a, l, !1);
|
|
13447
|
-
}), this.fragment = o, this.vertex = a, this.transformFeedbackVaryings = t.transformFeedbackVaryings, this._key =
|
|
13447
|
+
}), this.fragment = o, this.vertex = a, this.transformFeedbackVaryings = t.transformFeedbackVaryings, this._key = Bs(`${this.vertex}:${this.fragment}`, "gl-program");
|
|
13448
13448
|
}
|
|
13449
13449
|
/** destroys the program */
|
|
13450
13450
|
destroy() {
|
|
@@ -13635,7 +13635,7 @@ class Ge {
|
|
|
13635
13635
|
// TODO maker this pure
|
|
13636
13636
|
_generateProgramKey() {
|
|
13637
13637
|
const { vertex: t, fragment: e } = this, r = t.source + e.source + t.entryPoint + e.entryPoint;
|
|
13638
|
-
this._layoutKey =
|
|
13638
|
+
this._layoutKey = Bs(r, "program");
|
|
13639
13639
|
}
|
|
13640
13640
|
get attributeData() {
|
|
13641
13641
|
return this._attributeData ?? (this._attributeData = ru(this.vertex)), this._attributeData;
|
|
@@ -13749,7 +13749,7 @@ const Sa = class Ca {
|
|
|
13749
13749
|
}
|
|
13750
13750
|
a.value ?? (a.value = lu(a.type, a.size)), r[o] = a.value;
|
|
13751
13751
|
}
|
|
13752
|
-
this.uniforms = r, this._dirtyId = 1, this.ubo = e.ubo, this.isStatic = e.isStatic, this._signature =
|
|
13752
|
+
this.uniforms = r, this._dirtyId = 1, this.ubo = e.ubo, this.isStatic = e.isStatic, this._signature = Bs(Object.keys(r).map(
|
|
13753
13753
|
(o) => `${o}-${t[o].type}`
|
|
13754
13754
|
).join("-"), "uniform-group");
|
|
13755
13755
|
}
|
|
@@ -13949,7 +13949,7 @@ const cu = {
|
|
|
13949
13949
|
"screen-npm": 8,
|
|
13950
13950
|
min: 9,
|
|
13951
13951
|
max: 10
|
|
13952
|
-
}, Rr = 0, Ur = 1,
|
|
13952
|
+
}, Rr = 0, Ur = 1, zr = 2, Br = 3, Dr = 4, Lr = 5, gs = class Ia {
|
|
13953
13953
|
constructor() {
|
|
13954
13954
|
this.data = 0, this.blendMode = "normal", this.polygonOffset = 0, this.blend = !0, this.depthMask = !0;
|
|
13955
13955
|
}
|
|
@@ -13989,20 +13989,20 @@ const cu = {
|
|
|
13989
13989
|
* @default false
|
|
13990
13990
|
*/
|
|
13991
13991
|
get culling() {
|
|
13992
|
-
return !!(this.data & 1 <<
|
|
13992
|
+
return !!(this.data & 1 << zr);
|
|
13993
13993
|
}
|
|
13994
13994
|
set culling(t) {
|
|
13995
|
-
!!(this.data & 1 <<
|
|
13995
|
+
!!(this.data & 1 << zr) !== t && (this.data ^= 1 << zr);
|
|
13996
13996
|
}
|
|
13997
13997
|
/**
|
|
13998
13998
|
* Activates depth comparisons and updates to the depth buffer.
|
|
13999
13999
|
* @default false
|
|
14000
14000
|
*/
|
|
14001
14001
|
get depthTest() {
|
|
14002
|
-
return !!(this.data & 1 <<
|
|
14002
|
+
return !!(this.data & 1 << Br);
|
|
14003
14003
|
}
|
|
14004
14004
|
set depthTest(t) {
|
|
14005
|
-
!!(this.data & 1 <<
|
|
14005
|
+
!!(this.data & 1 << Br) !== t && (this.data ^= 1 << Br);
|
|
14006
14006
|
}
|
|
14007
14007
|
/**
|
|
14008
14008
|
* Enables or disables writing to the depth buffer.
|
|
@@ -14112,7 +14112,7 @@ Ea.defaultOptions = {
|
|
|
14112
14112
|
};
|
|
14113
14113
|
let hr = Ea;
|
|
14114
14114
|
const ys = [];
|
|
14115
|
-
xt.handleByNamedList(
|
|
14115
|
+
xt.handleByNamedList(B.Environment, ys);
|
|
14116
14116
|
async function uu(s) {
|
|
14117
14117
|
if (!s)
|
|
14118
14118
|
for (let t = 0; t < ys.length; t++) {
|
|
@@ -14159,7 +14159,7 @@ function Fa(s, t, e, r, o) {
|
|
|
14159
14159
|
for (let h = e - r; h >= t; h -= r) a = Fn(h / r | 0, s[h], s[h + 1], a);
|
|
14160
14160
|
return a && Le(a, a.next) && (gi(a), a = a.next), a;
|
|
14161
14161
|
}
|
|
14162
|
-
function
|
|
14162
|
+
function xe(s, t) {
|
|
14163
14163
|
if (!s) return s;
|
|
14164
14164
|
t || (t = s);
|
|
14165
14165
|
let e = s, r;
|
|
@@ -14183,7 +14183,7 @@ function pi(s, t, e, r, o, a, h) {
|
|
|
14183
14183
|
continue;
|
|
14184
14184
|
}
|
|
14185
14185
|
if (s = p, s === l) {
|
|
14186
|
-
h ? h === 1 ? (s = mu(
|
|
14186
|
+
h ? h === 1 ? (s = mu(xe(s), t), pi(s, t, e, r, o, a, 2)) : h === 2 && gu(s, t, e, r, o, a) : pi(xe(s), t, e, r, o, a, 1);
|
|
14187
14187
|
break;
|
|
14188
14188
|
}
|
|
14189
14189
|
}
|
|
@@ -14224,7 +14224,7 @@ function mu(s, t) {
|
|
|
14224
14224
|
const r = e.prev, o = e.next.next;
|
|
14225
14225
|
!Le(r, o) && Ma(r, e, e.next, o) && mi(r, o) && mi(o, r) && (t.push(r.i, e.i, o.i), gi(e), gi(e.next), e = s = o), e = e.next;
|
|
14226
14226
|
} while (e !== s);
|
|
14227
|
-
return
|
|
14227
|
+
return xe(e);
|
|
14228
14228
|
}
|
|
14229
14229
|
function gu(s, t, e, r, o, a) {
|
|
14230
14230
|
let h = s;
|
|
@@ -14233,7 +14233,7 @@ function gu(s, t, e, r, o, a) {
|
|
|
14233
14233
|
for (; l !== h.prev; ) {
|
|
14234
14234
|
if (h.i !== l.i && Cu(h, l)) {
|
|
14235
14235
|
let d = Pa(h, l);
|
|
14236
|
-
h =
|
|
14236
|
+
h = xe(h, h.next), d = xe(d, d.next), pi(h, t, e, r, o, a, 0), pi(d, t, e, r, o, a, 0);
|
|
14237
14237
|
return;
|
|
14238
14238
|
}
|
|
14239
14239
|
l = l.next;
|
|
@@ -14265,7 +14265,7 @@ function xu(s, t) {
|
|
|
14265
14265
|
if (!e)
|
|
14266
14266
|
return t;
|
|
14267
14267
|
const r = Pa(e, s);
|
|
14268
|
-
return
|
|
14268
|
+
return xe(r, r.next), xe(e, e.next);
|
|
14269
14269
|
}
|
|
14270
14270
|
function _u(s, t) {
|
|
14271
14271
|
let e = t;
|
|
@@ -14353,13 +14353,13 @@ function Le(s, t) {
|
|
|
14353
14353
|
return s.x === t.x && s.y === t.y;
|
|
14354
14354
|
}
|
|
14355
14355
|
function Ma(s, t, e, r) {
|
|
14356
|
-
const o =
|
|
14356
|
+
const o = zi(at(s, t, e)), a = zi(at(s, t, r)), h = zi(at(e, r, s)), l = zi(at(e, r, t));
|
|
14357
14357
|
return !!(o !== a && h !== l || o === 0 && Ui(s, e, t) || a === 0 && Ui(s, r, t) || h === 0 && Ui(e, s, r) || l === 0 && Ui(e, t, r));
|
|
14358
14358
|
}
|
|
14359
14359
|
function Ui(s, t, e) {
|
|
14360
14360
|
return t.x <= Math.max(s.x, e.x) && t.x >= Math.min(s.x, e.x) && t.y <= Math.max(s.y, e.y) && t.y >= Math.min(s.y, e.y);
|
|
14361
14361
|
}
|
|
14362
|
-
function
|
|
14362
|
+
function zi(s) {
|
|
14363
14363
|
return s > 0 ? 1 : s < 0 ? -1 : 0;
|
|
14364
14364
|
}
|
|
14365
14365
|
function Au(s, t) {
|
|
@@ -14509,7 +14509,7 @@ const Mu = [
|
|
|
14509
14509
|
"update",
|
|
14510
14510
|
"postrender",
|
|
14511
14511
|
"prerender"
|
|
14512
|
-
], Ua = class
|
|
14512
|
+
], Ua = class za extends Yt {
|
|
14513
14513
|
/**
|
|
14514
14514
|
* Set up a system with a collection of SystemClasses and runners.
|
|
14515
14515
|
* Systems are attached dynamically to this class when added.
|
|
@@ -14529,14 +14529,14 @@ const Mu = [
|
|
|
14529
14529
|
await uu(e), this._addSystems(this.config.systems), this._addPipes(this.config.renderPipes, this.config.renderPipeAdaptors);
|
|
14530
14530
|
for (const r in this._systemsHash)
|
|
14531
14531
|
t = { ...this._systemsHash[r].constructor.defaultOptions, ...t };
|
|
14532
|
-
t = { ...
|
|
14532
|
+
t = { ...za.defaultOptions, ...t }, this._roundPixels = t.roundPixels ? 1 : 0;
|
|
14533
14533
|
for (let r = 0; r < this.runners.init.items.length; r++)
|
|
14534
14534
|
await this.runners.init.items[r].init(t);
|
|
14535
14535
|
this._initOptions = t;
|
|
14536
14536
|
}
|
|
14537
14537
|
render(t, e) {
|
|
14538
14538
|
let r = t;
|
|
14539
|
-
if (r instanceof
|
|
14539
|
+
if (r instanceof ot && (r = { container: r }, e && (N(J, "passing a second argument is deprecated, please use render options instead"), r.target = e.renderTexture)), r.target || (r.target = this.view.renderTarget), r.target === this.view.renderTarget && (this._lastObjectRendered = r.container, r.clearColor ?? (r.clearColor = this.background.colorRgba), r.clear ?? (r.clear = this.background.clearBeforeRender)), r.clearColor) {
|
|
14540
14540
|
const o = Array.isArray(r.clearColor) && r.clearColor.length === 4;
|
|
14541
14541
|
r.clearColor = o ? r.clearColor : ht.shared.setValue(r.clearColor).toArray();
|
|
14542
14542
|
}
|
|
@@ -14755,12 +14755,12 @@ Ua.defaultOptions = {
|
|
|
14755
14755
|
*/
|
|
14756
14756
|
roundPixels: !1
|
|
14757
14757
|
};
|
|
14758
|
-
let
|
|
14758
|
+
let Ba = Ua, Bi;
|
|
14759
14759
|
function Pu(s) {
|
|
14760
|
-
return
|
|
14760
|
+
return Bi !== void 0 || (Bi = (() => {
|
|
14761
14761
|
const t = {
|
|
14762
14762
|
stencil: !0,
|
|
14763
|
-
failIfMajorPerformanceCaveat: s ??
|
|
14763
|
+
failIfMajorPerformanceCaveat: s ?? Ba.defaultOptions.failIfMajorPerformanceCaveat
|
|
14764
14764
|
};
|
|
14765
14765
|
try {
|
|
14766
14766
|
if (!it.get().getWebGLRenderingContext())
|
|
@@ -14775,7 +14775,7 @@ function Pu(s) {
|
|
|
14775
14775
|
} catch {
|
|
14776
14776
|
return !1;
|
|
14777
14777
|
}
|
|
14778
|
-
})()),
|
|
14778
|
+
})()), Bi;
|
|
14779
14779
|
}
|
|
14780
14780
|
let Di;
|
|
14781
14781
|
async function Ru(s = {}) {
|
|
@@ -14800,13 +14800,13 @@ async function Uu(s) {
|
|
|
14800
14800
|
for (let a = 0; a < t.length; a++) {
|
|
14801
14801
|
const h = t[a];
|
|
14802
14802
|
if (h === "webgpu" && await Ru()) {
|
|
14803
|
-
const { WebGPURenderer: l } = await import("./WebGPURenderer-
|
|
14803
|
+
const { WebGPURenderer: l } = await import("./WebGPURenderer-DkSBIxsG.js");
|
|
14804
14804
|
e = l, r = { ...s, ...s.webgpu };
|
|
14805
14805
|
break;
|
|
14806
14806
|
} else if (h === "webgl" && Pu(
|
|
14807
|
-
s.failIfMajorPerformanceCaveat ??
|
|
14807
|
+
s.failIfMajorPerformanceCaveat ?? Ba.defaultOptions.failIfMajorPerformanceCaveat
|
|
14808
14808
|
)) {
|
|
14809
|
-
const { WebGLRenderer: l } = await import("./WebGLRenderer-
|
|
14809
|
+
const { WebGLRenderer: l } = await import("./WebGLRenderer-6Gbx7q60.js");
|
|
14810
14810
|
e = l, r = { ...s, ...s.webgl };
|
|
14811
14811
|
break;
|
|
14812
14812
|
} else if (h === "canvas")
|
|
@@ -14825,8 +14825,8 @@ class La {
|
|
|
14825
14825
|
static destroy() {
|
|
14826
14826
|
}
|
|
14827
14827
|
}
|
|
14828
|
-
La.extension =
|
|
14829
|
-
class
|
|
14828
|
+
La.extension = B.Application;
|
|
14829
|
+
class zu {
|
|
14830
14830
|
constructor(t) {
|
|
14831
14831
|
this._renderer = t;
|
|
14832
14832
|
}
|
|
@@ -14837,17 +14837,17 @@ class Bu {
|
|
|
14837
14837
|
this._renderer = null;
|
|
14838
14838
|
}
|
|
14839
14839
|
}
|
|
14840
|
-
|
|
14840
|
+
zu.extension = {
|
|
14841
14841
|
type: [
|
|
14842
|
-
|
|
14843
|
-
|
|
14842
|
+
B.WebGLSystem,
|
|
14843
|
+
B.WebGPUSystem
|
|
14844
14844
|
],
|
|
14845
14845
|
name: "initHook",
|
|
14846
14846
|
priority: -10
|
|
14847
14847
|
};
|
|
14848
14848
|
const Oa = class bs {
|
|
14849
14849
|
constructor(...t) {
|
|
14850
|
-
this.stage = new
|
|
14850
|
+
this.stage = new ot(), t[0] !== void 0 && N(J, "Application constructor options are deprecated, please use Application.init() instead.");
|
|
14851
14851
|
}
|
|
14852
14852
|
/**
|
|
14853
14853
|
* Initializes the PixiJS application with the specified options.
|
|
@@ -14869,7 +14869,7 @@ const Oa = class bs {
|
|
|
14869
14869
|
* ```
|
|
14870
14870
|
*/
|
|
14871
14871
|
async init(t) {
|
|
14872
|
-
t = { ...t }, this.stage || (this.stage = new
|
|
14872
|
+
t = { ...t }, this.stage || (this.stage = new ot()), this.renderer = await Uu(t), bs._plugins.forEach((e) => {
|
|
14873
14873
|
e.init.call(this, t);
|
|
14874
14874
|
});
|
|
14875
14875
|
}
|
|
@@ -15009,7 +15009,7 @@ const Oa = class bs {
|
|
|
15009
15009
|
};
|
|
15010
15010
|
Oa._plugins = [];
|
|
15011
15011
|
let Ds = Oa;
|
|
15012
|
-
xt.handleByList(
|
|
15012
|
+
xt.handleByList(B.Application, Ds._plugins);
|
|
15013
15013
|
xt.add(La);
|
|
15014
15014
|
class Na extends Yt {
|
|
15015
15015
|
constructor() {
|
|
@@ -15057,7 +15057,7 @@ class Na extends Yt {
|
|
|
15057
15057
|
this.chars = null, t && (this.pages.forEach((e) => e.texture.destroy(!0)), this.pages = null);
|
|
15058
15058
|
}
|
|
15059
15059
|
}
|
|
15060
|
-
class
|
|
15060
|
+
class Bu {
|
|
15061
15061
|
/**
|
|
15062
15062
|
* Creates a new LRU cache instance.
|
|
15063
15063
|
* Note: Constructor does not validate parameters. Use lru() factory function for parameter validation.
|
|
@@ -15335,7 +15335,7 @@ function Ga(s = 1e3, t = 0, e = !1) {
|
|
|
15335
15335
|
throw new TypeError("Invalid ttl value");
|
|
15336
15336
|
if (typeof e != "boolean")
|
|
15337
15337
|
throw new TypeError("Invalid resetTtl value");
|
|
15338
|
-
return new
|
|
15338
|
+
return new Bu(s, t, e);
|
|
15339
15339
|
}
|
|
15340
15340
|
const Du = [
|
|
15341
15341
|
"serif",
|
|
@@ -15795,7 +15795,7 @@ const Mn = [{ offset: 0, color: "white" }, { offset: 1, color: "black" }], Ls =
|
|
|
15795
15795
|
addressMode: this._wrapMode
|
|
15796
15796
|
})
|
|
15797
15797
|
});
|
|
15798
|
-
const _ = Math.sqrt(a * a + h * h), n = Math.atan2(h, a), c = new
|
|
15798
|
+
const _ = Math.sqrt(a * a + h * h), n = Math.atan2(h, a), c = new V();
|
|
15799
15799
|
c.scale(_ / p, 1), c.rotate(n), c.translate(t, e), this.textureSpace === "local" && c.scale(p, p), this.transform = c;
|
|
15800
15800
|
}
|
|
15801
15801
|
/**
|
|
@@ -15828,7 +15828,7 @@ const Mn = [{ offset: 0, color: "white" }, { offset: 1, color: "black" }], Ls =
|
|
|
15828
15828
|
addressMode: this._wrapMode
|
|
15829
15829
|
})
|
|
15830
15830
|
});
|
|
15831
|
-
const f = new
|
|
15831
|
+
const f = new V();
|
|
15832
15832
|
f.scale(1 / _, 1 / _), f.translate(v, y), this.textureSpace === "local" && f.scale(e, e), this.transform = f;
|
|
15833
15833
|
}
|
|
15834
15834
|
/** Destroys the gradient, releasing resources. This will also destroy the internal texture. */
|
|
@@ -15864,7 +15864,7 @@ Ls.defaultRadialOptions = {
|
|
|
15864
15864
|
textureSize: 256,
|
|
15865
15865
|
wrapMode: "clamp-to-edge"
|
|
15866
15866
|
};
|
|
15867
|
-
let
|
|
15867
|
+
let Bt = Ls;
|
|
15868
15868
|
function Pn(s, t) {
|
|
15869
15869
|
for (let e = 0; e < t.length; e++) {
|
|
15870
15870
|
const r = t[e];
|
|
@@ -15882,7 +15882,7 @@ function Lu(s) {
|
|
|
15882
15882
|
start: { x: s[0], y: s[1] },
|
|
15883
15883
|
end: { x: s[2], y: s[3] },
|
|
15884
15884
|
textureSpace: s[4],
|
|
15885
|
-
textureSize: s[5] ??
|
|
15885
|
+
textureSize: s[5] ?? Bt.defaultLinearOptions.textureSize
|
|
15886
15886
|
}), t;
|
|
15887
15887
|
}
|
|
15888
15888
|
const Un = {
|
|
@@ -15905,7 +15905,7 @@ const Un = {
|
|
|
15905
15905
|
};
|
|
15906
15906
|
class ur {
|
|
15907
15907
|
constructor(t, e) {
|
|
15908
|
-
this.uid = ct("fillPattern"), this._tick = 0, this.transform = new
|
|
15908
|
+
this.uid = ct("fillPattern"), this._tick = 0, this.transform = new V(), this.texture = t, this.transform.scale(
|
|
15909
15909
|
1 / t.frame.width,
|
|
15910
15910
|
1 / t.frame.height
|
|
15911
15911
|
), e && (t.source.style.addressModeU = Un[e].addressModeU, t.source.style.addressModeV = Un[e].addressModeV);
|
|
@@ -15942,10 +15942,10 @@ class ur {
|
|
|
15942
15942
|
this.texture.destroy(!0), this.texture = null;
|
|
15943
15943
|
}
|
|
15944
15944
|
}
|
|
15945
|
-
var Nr,
|
|
15945
|
+
var Nr, zn;
|
|
15946
15946
|
function Ou() {
|
|
15947
|
-
if (
|
|
15948
|
-
|
|
15947
|
+
if (zn) return Nr;
|
|
15948
|
+
zn = 1, Nr = e;
|
|
15949
15949
|
var s = { a: 7, c: 6, h: 1, l: 2, m: 2, q: 4, s: 4, t: 2, v: 1, z: 0 }, t = /([astvzqmhlc])([^astvzqmhlc]*)/ig;
|
|
15950
15950
|
function e(a) {
|
|
15951
15951
|
var h = [];
|
|
@@ -16428,7 +16428,7 @@ class Os {
|
|
|
16428
16428
|
return `[pixi.js/math:Ellipse x=${this.x} y=${this.y} halfWidth=${this.halfWidth} halfHeight=${this.halfHeight}]`;
|
|
16429
16429
|
}
|
|
16430
16430
|
}
|
|
16431
|
-
function
|
|
16431
|
+
function Hu(s, t, e, r, o, a) {
|
|
16432
16432
|
const h = s - e, l = t - r, d = o - e, p = a - r, m = h * d + l * p, v = d * d + p * p;
|
|
16433
16433
|
let y = -1;
|
|
16434
16434
|
v !== 0 && (y = m / v);
|
|
@@ -16437,7 +16437,7 @@ function Vu(s, t, e, r, o, a) {
|
|
|
16437
16437
|
const c = s - _, u = t - n;
|
|
16438
16438
|
return c * c + u * u;
|
|
16439
16439
|
}
|
|
16440
|
-
let
|
|
16440
|
+
let Vu, Yu;
|
|
16441
16441
|
class ci {
|
|
16442
16442
|
/**
|
|
16443
16443
|
* @param points - This can be an array of Points
|
|
@@ -16510,7 +16510,7 @@ class ci {
|
|
|
16510
16510
|
* @see {@link Polygon.getBounds} For bounds calculation
|
|
16511
16511
|
*/
|
|
16512
16512
|
containsPolygon(t) {
|
|
16513
|
-
const e = this.getBounds(
|
|
16513
|
+
const e = this.getBounds(Vu), r = t.getBounds(Yu);
|
|
16514
16514
|
if (!e.containsRect(r))
|
|
16515
16515
|
return !1;
|
|
16516
16516
|
const o = t.points;
|
|
@@ -16589,7 +16589,7 @@ class ci {
|
|
|
16589
16589
|
strokeContains(t, e, r, o = 0.5) {
|
|
16590
16590
|
const a = r * r, h = a * (1 - o), l = a - h, { points: d } = this, p = d.length - (this.closePath ? 0 : 2);
|
|
16591
16591
|
for (let m = 0; m < p; m += 2) {
|
|
16592
|
-
const v = d[m], y = d[m + 1], _ = d[(m + 2) % d.length], n = d[(m + 3) % d.length], c =
|
|
16592
|
+
const v = d[m], y = d[m + 1], _ = d[(m + 2) % d.length], n = d[(m + 3) % d.length], c = Hu(t, e, v, y, _, n), u = Math.sign((_ - v) * (e - y) - (n - y) * (t - v));
|
|
16593
16593
|
if (c <= (u < 0 ? l : h))
|
|
16594
16594
|
return !0;
|
|
16595
16595
|
}
|
|
@@ -16962,7 +16962,7 @@ function Xu(s, t, e, r) {
|
|
|
16962
16962
|
const h = new Xi(o);
|
|
16963
16963
|
return Wa[e] = h, h;
|
|
16964
16964
|
}
|
|
16965
|
-
class
|
|
16965
|
+
class Bn {
|
|
16966
16966
|
constructor(t) {
|
|
16967
16967
|
typeof t == "number" ? this.rawBinaryData = new ArrayBuffer(t) : t instanceof Uint8Array ? this.rawBinaryData = t.buffer : this.rawBinaryData = t, this.uint32View = new Uint32Array(this.rawBinaryData), this.float32View = new Float32Array(this.rawBinaryData), this.size = this.rawBinaryData.byteLength;
|
|
16968
16968
|
}
|
|
@@ -17125,11 +17125,11 @@ function Nn(s) {
|
|
|
17125
17125
|
hi[ir++] = s;
|
|
17126
17126
|
}
|
|
17127
17127
|
let qe = 0;
|
|
17128
|
-
const
|
|
17128
|
+
const Ha = class Va {
|
|
17129
17129
|
constructor(t) {
|
|
17130
|
-
this.uid = ct("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._elements = [], t = { ...
|
|
17130
|
+
this.uid = ct("batcher"), this.dirty = !0, this.batchIndex = 0, this.batches = [], this._elements = [], t = { ...Va.defaultOptions, ...t }, t.maxTextures || (N("v8.8.0", "maxTextures is a required option for Batcher now, please pass it in the options"), t.maxTextures = Qu());
|
|
17131
17131
|
const { maxTextures: e, attributesInitialSize: r, indicesInitialSize: o } = t;
|
|
17132
|
-
this.attributeBuffer = new
|
|
17132
|
+
this.attributeBuffer = new Bn(r * 4), this.indexBuffer = new Uint16Array(o), this.maxTextures = e;
|
|
17133
17133
|
}
|
|
17134
17134
|
begin() {
|
|
17135
17135
|
this.elementSize = 0, this.elementStart = 0, this.indexSize = 0, this.attributeSize = 0;
|
|
@@ -17271,7 +17271,7 @@ const Va = class Ha {
|
|
|
17271
17271
|
t <= this.indexBuffer.length || this._resizeIndexBuffer(t);
|
|
17272
17272
|
}
|
|
17273
17273
|
_resizeAttributeBuffer(t) {
|
|
17274
|
-
const e = Math.max(t, this.attributeBuffer.size * 2), r = new
|
|
17274
|
+
const e = Math.max(t, this.attributeBuffer.size * 2), r = new Bn(e);
|
|
17275
17275
|
Dn(this.attributeBuffer.rawBinaryData, r.rawBinaryData), this.attributeBuffer = r;
|
|
17276
17276
|
}
|
|
17277
17277
|
_resizeIndexBuffer(t) {
|
|
@@ -17310,12 +17310,12 @@ const Va = class Ha {
|
|
|
17310
17310
|
}
|
|
17311
17311
|
}
|
|
17312
17312
|
};
|
|
17313
|
-
|
|
17313
|
+
Ha.defaultOptions = {
|
|
17314
17314
|
maxTextures: null,
|
|
17315
17315
|
attributesInitialSize: 4,
|
|
17316
17316
|
indicesInitialSize: 6
|
|
17317
17317
|
};
|
|
17318
|
-
let id =
|
|
17318
|
+
let id = Ha;
|
|
17319
17319
|
var At = /* @__PURE__ */ ((s) => (s[s.MAP_READ = 1] = "MAP_READ", s[s.MAP_WRITE = 2] = "MAP_WRITE", s[s.COPY_SRC = 4] = "COPY_SRC", s[s.COPY_DST = 8] = "COPY_DST", s[s.INDEX = 16] = "INDEX", s[s.VERTEX = 32] = "VERTEX", s[s.UNIFORM = 64] = "UNIFORM", s[s.STORAGE = 128] = "STORAGE", s[s.INDIRECT = 256] = "INDIRECT", s[s.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", s[s.STATIC = 1024] = "STATIC", s))(At || {});
|
|
17320
17320
|
class vi extends Yt {
|
|
17321
17321
|
/**
|
|
@@ -17419,7 +17419,7 @@ class nd extends Yt {
|
|
|
17419
17419
|
* @param options - The options for the geometry.
|
|
17420
17420
|
*/
|
|
17421
17421
|
constructor(t = {}) {
|
|
17422
|
-
super(), this.uid = ct("geometry"), this._layoutKey = 0, this.instanceCount = 1, this._bounds = new
|
|
17422
|
+
super(), this.uid = ct("geometry"), this._layoutKey = 0, this.instanceCount = 1, this._bounds = new Vt(), this._boundsDirty = !0;
|
|
17423
17423
|
const { attributes: e, indexBuffer: r, topology: o } = t;
|
|
17424
17424
|
if (this.buffers = [], this.attributes = {}, e)
|
|
17425
17425
|
for (const a in e)
|
|
@@ -17555,16 +17555,16 @@ function Wn(s) {
|
|
|
17555
17555
|
t[r] = [];
|
|
17556
17556
|
}), t;
|
|
17557
17557
|
}
|
|
17558
|
-
function
|
|
17558
|
+
function Hn(s, t) {
|
|
17559
17559
|
let e;
|
|
17560
17560
|
const r = /@in\s+([^;]+);/g;
|
|
17561
17561
|
for (; (e = r.exec(s)) !== null; )
|
|
17562
17562
|
t.push(e[1]);
|
|
17563
17563
|
}
|
|
17564
|
-
function
|
|
17564
|
+
function Vn(s, t, e = !1) {
|
|
17565
17565
|
const r = [];
|
|
17566
|
-
|
|
17567
|
-
l.header &&
|
|
17566
|
+
Hn(t, r), s.forEach((l) => {
|
|
17567
|
+
l.header && Hn(l.header, r);
|
|
17568
17568
|
});
|
|
17569
17569
|
const o = r;
|
|
17570
17570
|
e && o.sort();
|
|
@@ -17642,9 +17642,9 @@ function md({
|
|
|
17642
17642
|
}
|
|
17643
17643
|
function gd(s, t) {
|
|
17644
17644
|
const e = t.map((h) => h.vertex).filter((h) => !!h), r = t.map((h) => h.fragment).filter((h) => !!h);
|
|
17645
|
-
let o =
|
|
17645
|
+
let o = Vn(e, s.vertex, !0);
|
|
17646
17646
|
o = dd(e, o);
|
|
17647
|
-
const a =
|
|
17647
|
+
const a = Vn(r, s.fragment, !0);
|
|
17648
17648
|
return {
|
|
17649
17649
|
vertex: o,
|
|
17650
17650
|
fragment: a
|
|
@@ -17958,7 +17958,7 @@ function Fd(s) {
|
|
|
17958
17958
|
}
|
|
17959
17959
|
}), Wr[s];
|
|
17960
17960
|
}
|
|
17961
|
-
const
|
|
17961
|
+
const Hr = {};
|
|
17962
17962
|
function kd(s) {
|
|
17963
17963
|
const t = [];
|
|
17964
17964
|
for (let e = 0; e < s; e++)
|
|
@@ -17967,7 +17967,7 @@ function kd(s) {
|
|
|
17967
17967
|
`);
|
|
17968
17968
|
}
|
|
17969
17969
|
function Md(s) {
|
|
17970
|
-
return
|
|
17970
|
+
return Hr[s] || (Hr[s] = {
|
|
17971
17971
|
name: "texture-batch-bit",
|
|
17972
17972
|
vertex: {
|
|
17973
17973
|
header: `
|
|
@@ -17997,7 +17997,7 @@ function Md(s) {
|
|
|
17997
17997
|
${kd(s)}
|
|
17998
17998
|
`
|
|
17999
17999
|
}
|
|
18000
|
-
}),
|
|
18000
|
+
}), Hr[s];
|
|
18001
18001
|
}
|
|
18002
18002
|
const Pd = {
|
|
18003
18003
|
name: "round-pixels-bit",
|
|
@@ -18109,12 +18109,12 @@ const qa = class Za extends id {
|
|
|
18109
18109
|
};
|
|
18110
18110
|
qa.extension = {
|
|
18111
18111
|
type: [
|
|
18112
|
-
|
|
18112
|
+
B.Batcher
|
|
18113
18113
|
],
|
|
18114
18114
|
name: "default"
|
|
18115
18115
|
};
|
|
18116
|
-
let
|
|
18117
|
-
function
|
|
18116
|
+
let zd = qa;
|
|
18117
|
+
function Bd(s, t, e, r, o, a, h, l = null) {
|
|
18118
18118
|
let d = 0;
|
|
18119
18119
|
e *= t, o *= a;
|
|
18120
18120
|
const p = l.a, m = l.b, v = l.c, y = l.d, _ = l.tx, n = l.ty;
|
|
@@ -18137,7 +18137,7 @@ function Ka(s, t, e, r, o) {
|
|
|
18137
18137
|
s[v] = a * _ + l * n + p, s[v + 1] = h * _ + d * n + m, v += r;
|
|
18138
18138
|
}
|
|
18139
18139
|
}
|
|
18140
|
-
const Ld = new
|
|
18140
|
+
const Ld = new V();
|
|
18141
18141
|
class Ja {
|
|
18142
18142
|
constructor() {
|
|
18143
18143
|
this.packAsQuad = !1, this.batcherName = "default", this.topology = "triangle-list", this.applyTransform = !0, this.roundPixels = 0, this._batcher = null, this._batch = null;
|
|
@@ -18173,7 +18173,7 @@ class Ja {
|
|
|
18173
18173
|
}
|
|
18174
18174
|
const yi = {
|
|
18175
18175
|
extension: {
|
|
18176
|
-
type:
|
|
18176
|
+
type: B.ShapeBuilder,
|
|
18177
18177
|
name: "circle"
|
|
18178
18178
|
},
|
|
18179
18179
|
build(s, t) {
|
|
@@ -18245,7 +18245,7 @@ function Kn(s, t, e, r, o, a, h, l) {
|
|
|
18245
18245
|
const n = d + y, c = p + _, u = m + y, f = v + _;
|
|
18246
18246
|
return l.push(n, c), l.push(u, f), 2;
|
|
18247
18247
|
}
|
|
18248
|
-
function
|
|
18248
|
+
function ue(s, t, e, r, o, a, h, l) {
|
|
18249
18249
|
const d = e - s, p = r - t;
|
|
18250
18250
|
let m = Math.atan2(d, p), v = Math.atan2(o - s, a - t);
|
|
18251
18251
|
l && m < v ? m += Math.PI * 2 : !l && m > v && (v += Math.PI * 2);
|
|
@@ -18280,7 +18280,7 @@ function Wd(s, t, e, r, o, a) {
|
|
|
18280
18280
|
let R = Gd(s);
|
|
18281
18281
|
d = (d - 0.5) * R + 0.5;
|
|
18282
18282
|
}
|
|
18283
|
-
const p = new
|
|
18283
|
+
const p = new nt(s[0], s[1]), m = new nt(s[s.length - 2], s[s.length - 1]), v = r, y = Math.abs(p.x - m.x) < h && Math.abs(p.y - m.y) < h;
|
|
18284
18284
|
if (v) {
|
|
18285
18285
|
s = s.slice(), y && (s.pop(), s.pop(), m.set(s[s.length - 2], s[s.length - 1]));
|
|
18286
18286
|
const R = (p.x + m.x) * 0.5, Y = (m.y + p.y) * 0.5;
|
|
@@ -18289,107 +18289,107 @@ function Wd(s, t, e, r, o, a) {
|
|
|
18289
18289
|
const _ = o, n = s.length / 2;
|
|
18290
18290
|
let c = s.length;
|
|
18291
18291
|
const u = _.length / 2, f = l.width / 2, g = f * f, x = l.miterLimit * l.miterLimit;
|
|
18292
|
-
let b = s[0], w = s[1], T = s[2], S = s[3], A = 0, I = 0, E = -(w - S), C = b - T,
|
|
18292
|
+
let b = s[0], w = s[1], T = s[2], S = s[3], A = 0, I = 0, E = -(w - S), C = b - T, F = 0, P = 0, L = Math.sqrt(E * E + C * C);
|
|
18293
18293
|
E /= L, C /= L, E *= f, C *= f;
|
|
18294
|
-
const Z = d, M = (1 - Z) * 2,
|
|
18295
|
-
v || (l.cap === "round" ? c +=
|
|
18296
|
-
b - E * (M -
|
|
18297
|
-
w - C * (M -
|
|
18294
|
+
const Z = d, M = (1 - Z) * 2, k = Z * 2;
|
|
18295
|
+
v || (l.cap === "round" ? c += ue(
|
|
18296
|
+
b - E * (M - k) * 0.5,
|
|
18297
|
+
w - C * (M - k) * 0.5,
|
|
18298
18298
|
b - E * M,
|
|
18299
18299
|
w - C * M,
|
|
18300
|
-
b + E *
|
|
18301
|
-
w + C *
|
|
18300
|
+
b + E * k,
|
|
18301
|
+
w + C * k,
|
|
18302
18302
|
_,
|
|
18303
18303
|
!0
|
|
18304
|
-
) + 2 : l.cap === "square" && (c += Kn(b, w, E, C, M,
|
|
18304
|
+
) + 2 : l.cap === "square" && (c += Kn(b, w, E, C, M, k, !0, _))), _.push(
|
|
18305
18305
|
b - E * M,
|
|
18306
18306
|
w - C * M
|
|
18307
18307
|
), _.push(
|
|
18308
|
-
b + E *
|
|
18309
|
-
w + C *
|
|
18308
|
+
b + E * k,
|
|
18309
|
+
w + C * k
|
|
18310
18310
|
);
|
|
18311
18311
|
for (let R = 1; R < n - 1; ++R) {
|
|
18312
|
-
b = s[(R - 1) * 2], w = s[(R - 1) * 2 + 1], T = s[R * 2], S = s[R * 2 + 1], A = s[(R + 1) * 2], I = s[(R + 1) * 2 + 1], E = -(w - S), C = b - T, L = Math.sqrt(E * E + C * C), E /= L, C /= L, E *= f, C *= f,
|
|
18313
|
-
const Y = T - b, K = w - S, X = T - A,
|
|
18312
|
+
b = s[(R - 1) * 2], w = s[(R - 1) * 2 + 1], T = s[R * 2], S = s[R * 2 + 1], A = s[(R + 1) * 2], I = s[(R + 1) * 2 + 1], E = -(w - S), C = b - T, L = Math.sqrt(E * E + C * C), E /= L, C /= L, E *= f, C *= f, F = -(S - I), P = T - A, L = Math.sqrt(F * F + P * P), F /= L, P /= L, F *= f, P *= f;
|
|
18313
|
+
const Y = T - b, K = w - S, X = T - A, z = I - S, vt = Y * X + K * z, D = K * X - z * Y, $ = D < 0;
|
|
18314
18314
|
if (Math.abs(D) < 1e-3 * Math.abs(vt)) {
|
|
18315
18315
|
_.push(
|
|
18316
18316
|
T - E * M,
|
|
18317
18317
|
S - C * M
|
|
18318
18318
|
), _.push(
|
|
18319
|
-
T + E *
|
|
18320
|
-
S + C *
|
|
18321
|
-
), vt >= 0 && (l.join === "round" ? c +=
|
|
18319
|
+
T + E * k,
|
|
18320
|
+
S + C * k
|
|
18321
|
+
), vt >= 0 && (l.join === "round" ? c += ue(
|
|
18322
18322
|
T,
|
|
18323
18323
|
S,
|
|
18324
18324
|
T - E * M,
|
|
18325
18325
|
S - C * M,
|
|
18326
|
-
T -
|
|
18326
|
+
T - F * M,
|
|
18327
18327
|
S - P * M,
|
|
18328
18328
|
_,
|
|
18329
18329
|
!1
|
|
18330
18330
|
) + 4 : c += 2, _.push(
|
|
18331
|
-
T -
|
|
18332
|
-
S - P *
|
|
18331
|
+
T - F * k,
|
|
18332
|
+
S - P * k
|
|
18333
18333
|
), _.push(
|
|
18334
|
-
T +
|
|
18334
|
+
T + F * M,
|
|
18335
18335
|
S + P * M
|
|
18336
18336
|
));
|
|
18337
18337
|
continue;
|
|
18338
18338
|
}
|
|
18339
|
-
const st = (-E + b) * (-C + S) - (-E + T) * (-C + w), pt = (-
|
|
18340
|
-
Xt <= kl ? l.join === "bevel" || Xt / g > x ? ($ ? (_.push(St, Ot), _.push(T + E *
|
|
18339
|
+
const st = (-E + b) * (-C + S) - (-E + T) * (-C + w), pt = (-F + A) * (-P + S) - (-F + T) * (-P + I), be = (Y * pt - X * st) / D, se = (z * st - K * pt) / D, Xt = (be - T) * (be - T) + (se - S) * (se - S), St = T + (be - T) * M, Ot = S + (se - S) * M, ce = T - (be - T) * k, he = S - (se - S) * k, Fl = Math.min(Y * Y + K * K, X * X + z * z), qs = $ ? M : k, kl = Fl + qs * qs * g;
|
|
18340
|
+
Xt <= kl ? l.join === "bevel" || Xt / g > x ? ($ ? (_.push(St, Ot), _.push(T + E * k, S + C * k), _.push(St, Ot), _.push(T + F * k, S + P * k)) : (_.push(T - E * M, S - C * M), _.push(ce, he), _.push(T - F * M, S - P * M), _.push(ce, he)), c += 2) : l.join === "round" ? $ ? (_.push(St, Ot), _.push(T + E * k, S + C * k), c += ue(
|
|
18341
18341
|
T,
|
|
18342
18342
|
S,
|
|
18343
|
-
T + E *
|
|
18344
|
-
S + C *
|
|
18345
|
-
T +
|
|
18346
|
-
S + P *
|
|
18343
|
+
T + E * k,
|
|
18344
|
+
S + C * k,
|
|
18345
|
+
T + F * k,
|
|
18346
|
+
S + P * k,
|
|
18347
18347
|
_,
|
|
18348
18348
|
!0
|
|
18349
|
-
) + 4, _.push(St, Ot), _.push(T +
|
|
18349
|
+
) + 4, _.push(St, Ot), _.push(T + F * k, S + P * k)) : (_.push(T - E * M, S - C * M), _.push(ce, he), c += ue(
|
|
18350
18350
|
T,
|
|
18351
18351
|
S,
|
|
18352
18352
|
T - E * M,
|
|
18353
18353
|
S - C * M,
|
|
18354
|
-
T -
|
|
18354
|
+
T - F * M,
|
|
18355
18355
|
S - P * M,
|
|
18356
18356
|
_,
|
|
18357
18357
|
!1
|
|
18358
|
-
) + 4, _.push(T -
|
|
18358
|
+
) + 4, _.push(T - F * M, S - P * M), _.push(ce, he)) : (_.push(St, Ot), _.push(ce, he)) : (_.push(T - E * M, S - C * M), _.push(T + E * k, S + C * k), l.join === "round" ? $ ? c += ue(
|
|
18359
18359
|
T,
|
|
18360
18360
|
S,
|
|
18361
|
-
T + E *
|
|
18362
|
-
S + C *
|
|
18363
|
-
T +
|
|
18364
|
-
S + P *
|
|
18361
|
+
T + E * k,
|
|
18362
|
+
S + C * k,
|
|
18363
|
+
T + F * k,
|
|
18364
|
+
S + P * k,
|
|
18365
18365
|
_,
|
|
18366
18366
|
!0
|
|
18367
|
-
) + 2 : c +=
|
|
18367
|
+
) + 2 : c += ue(
|
|
18368
18368
|
T,
|
|
18369
18369
|
S,
|
|
18370
18370
|
T - E * M,
|
|
18371
18371
|
S - C * M,
|
|
18372
|
-
T -
|
|
18372
|
+
T - F * M,
|
|
18373
18373
|
S - P * M,
|
|
18374
18374
|
_,
|
|
18375
18375
|
!1
|
|
18376
|
-
) + 2 : l.join === "miter" && Xt / g <= x && ($ ? (_.push(
|
|
18376
|
+
) + 2 : l.join === "miter" && Xt / g <= x && ($ ? (_.push(ce, he), _.push(ce, he)) : (_.push(St, Ot), _.push(St, Ot)), c += 2), _.push(T - F * M, S - P * M), _.push(T + F * k, S + P * k), c += 2);
|
|
18377
18377
|
}
|
|
18378
|
-
b = s[(n - 2) * 2], w = s[(n - 2) * 2 + 1], T = s[(n - 1) * 2], S = s[(n - 1) * 2 + 1], E = -(w - S), C = b - T, L = Math.sqrt(E * E + C * C), E /= L, C /= L, E *= f, C *= f, _.push(T - E * M, S - C * M), _.push(T + E *
|
|
18379
|
-
T - E * (M -
|
|
18380
|
-
S - C * (M -
|
|
18378
|
+
b = s[(n - 2) * 2], w = s[(n - 2) * 2 + 1], T = s[(n - 1) * 2], S = s[(n - 1) * 2 + 1], E = -(w - S), C = b - T, L = Math.sqrt(E * E + C * C), E /= L, C /= L, E *= f, C *= f, _.push(T - E * M, S - C * M), _.push(T + E * k, S + C * k), v || (l.cap === "round" ? c += ue(
|
|
18379
|
+
T - E * (M - k) * 0.5,
|
|
18380
|
+
S - C * (M - k) * 0.5,
|
|
18381
18381
|
T - E * M,
|
|
18382
18382
|
S - C * M,
|
|
18383
|
-
T + E *
|
|
18384
|
-
S + C *
|
|
18383
|
+
T + E * k,
|
|
18384
|
+
S + C * k,
|
|
18385
18385
|
_,
|
|
18386
18386
|
!1
|
|
18387
|
-
) + 2 : l.cap === "square" && (c += Kn(T, S, E, C, M,
|
|
18388
|
-
const
|
|
18387
|
+
) + 2 : l.cap === "square" && (c += Kn(T, S, E, C, M, k, !1, _)));
|
|
18388
|
+
const H = Zn * Zn;
|
|
18389
18389
|
for (let R = u; R < c + u - 2; ++R)
|
|
18390
|
-
b = _[R * 2], w = _[R * 2 + 1], T = _[(R + 1) * 2], S = _[(R + 1) * 2 + 1], A = _[(R + 2) * 2], I = _[(R + 2) * 2 + 1], !(Math.abs(b * (S - I) + T * (I - w) + A * (w - S)) <
|
|
18390
|
+
b = _[R * 2], w = _[R * 2 + 1], T = _[(R + 1) * 2], S = _[(R + 1) * 2 + 1], A = _[(R + 2) * 2], I = _[(R + 2) * 2 + 1], !(Math.abs(b * (S - I) + T * (I - w) + A * (w - S)) < H) && a.push(R, R + 1, R + 2);
|
|
18391
18391
|
}
|
|
18392
|
-
function
|
|
18392
|
+
function Hd(s, t, e, r) {
|
|
18393
18393
|
const o = ja;
|
|
18394
18394
|
if (s.length === 0)
|
|
18395
18395
|
return;
|
|
@@ -18410,9 +18410,9 @@ function Qa(s, t, e, r, o, a, h) {
|
|
|
18410
18410
|
for (let p = 0; p < s.length; p += 2)
|
|
18411
18411
|
e[d] = s[p], e[d + 1] = s[p + 1], d += r;
|
|
18412
18412
|
}
|
|
18413
|
-
const
|
|
18413
|
+
const Vd = [], Yd = {
|
|
18414
18414
|
extension: {
|
|
18415
|
-
type:
|
|
18415
|
+
type: B.ShapeBuilder,
|
|
18416
18416
|
name: "polygon"
|
|
18417
18417
|
},
|
|
18418
18418
|
build(s, t) {
|
|
@@ -18421,11 +18421,11 @@ const Hd = [], Yd = {
|
|
|
18421
18421
|
return !0;
|
|
18422
18422
|
},
|
|
18423
18423
|
triangulate(s, t, e, r, o, a) {
|
|
18424
|
-
Qa(s,
|
|
18424
|
+
Qa(s, Vd, t, e, r, o, a);
|
|
18425
18425
|
}
|
|
18426
18426
|
}, $d = {
|
|
18427
18427
|
extension: {
|
|
18428
|
-
type:
|
|
18428
|
+
type: B.ShapeBuilder,
|
|
18429
18429
|
name: "rectangle"
|
|
18430
18430
|
},
|
|
18431
18431
|
build(s, t) {
|
|
@@ -18440,7 +18440,7 @@ const Hd = [], Yd = {
|
|
|
18440
18440
|
}
|
|
18441
18441
|
}, Xd = {
|
|
18442
18442
|
extension: {
|
|
18443
|
-
type:
|
|
18443
|
+
type: B.ShapeBuilder,
|
|
18444
18444
|
name: "triangle"
|
|
18445
18445
|
},
|
|
18446
18446
|
build(s, t) {
|
|
@@ -18452,7 +18452,7 @@ const Hd = [], Yd = {
|
|
|
18452
18452
|
const l = r / e;
|
|
18453
18453
|
o[a++] = l, o[a++] = l + 1, o[a++] = l + 2;
|
|
18454
18454
|
}
|
|
18455
|
-
}, qd = new
|
|
18455
|
+
}, qd = new V(), Zd = new G();
|
|
18456
18456
|
function Kd(s, t, e, r) {
|
|
18457
18457
|
const o = t.matrix ? s.copyFrom(t.matrix).invert() : s.identity();
|
|
18458
18458
|
if (t.textureSpace === "local") {
|
|
@@ -18463,12 +18463,12 @@ function Kd(s, t, e, r) {
|
|
|
18463
18463
|
} else
|
|
18464
18464
|
o.translate(t.texture.frame.x, t.texture.frame.y), o.scale(1 / t.texture.source.width, 1 / t.texture.source.height);
|
|
18465
18465
|
const a = t.texture.source.style;
|
|
18466
|
-
return !(t.fill instanceof
|
|
18466
|
+
return !(t.fill instanceof Bt) && a.addressMode === "clamp-to-edge" && (a.addressMode = "repeat", a.update()), r && o.append(qd.copyFrom(r).invert()), o;
|
|
18467
18467
|
}
|
|
18468
18468
|
const fr = {};
|
|
18469
|
-
xt.handleByMap(
|
|
18469
|
+
xt.handleByMap(B.ShapeBuilder, fr);
|
|
18470
18470
|
xt.add($d, Yd, Xd, yi, Od, Nd);
|
|
18471
|
-
const Jd = new G(), jd = new
|
|
18471
|
+
const Jd = new G(), jd = new V();
|
|
18472
18472
|
function Qd(s, t) {
|
|
18473
18473
|
const { geometryData: e, batches: r } = t;
|
|
18474
18474
|
r.length = 0, e.indices.length = 0, e.vertices.length = 0, e.uvs.length = 0;
|
|
@@ -18501,7 +18501,7 @@ function tf(s, t, e) {
|
|
|
18501
18501
|
_.x2,
|
|
18502
18502
|
_.y2
|
|
18503
18503
|
);
|
|
18504
|
-
const n =
|
|
18504
|
+
const n = zt.get(Ja);
|
|
18505
18505
|
n.indexOffset = m, n.indexSize = p.length - m, n.attributeOffset = v, n.attributeSize = l.length / 2 - v, n.baseColor = s.style, n.alpha = s.alpha, n.texture = y, n.geometryData = e, t.push(n);
|
|
18506
18506
|
}
|
|
18507
18507
|
function Jn(s, t, e, r, o) {
|
|
@@ -18514,7 +18514,7 @@ function Jn(s, t, e, r, o) {
|
|
|
18514
18514
|
let c = "triangle-list";
|
|
18515
18515
|
if (p && Ka(v, p), e) {
|
|
18516
18516
|
const x = d.closePath ?? !0, b = t;
|
|
18517
|
-
b.pixelLine ? (
|
|
18517
|
+
b.pixelLine ? (Hd(v, x, a, l), c = "line-list") : Wd(v, b, !1, x, a, l);
|
|
18518
18518
|
} else if (m) {
|
|
18519
18519
|
const x = [], b = v.slice();
|
|
18520
18520
|
ef(m).forEach((T) => {
|
|
@@ -18525,10 +18525,10 @@ function Jn(s, t, e, r, o) {
|
|
|
18525
18525
|
const u = h.length / 2, f = t.texture;
|
|
18526
18526
|
if (f !== O.WHITE) {
|
|
18527
18527
|
const x = Kd(jd, t, d, p);
|
|
18528
|
-
|
|
18528
|
+
Bd(a, 2, n, h, u, 2, a.length / 2 - n, x);
|
|
18529
18529
|
} else
|
|
18530
18530
|
Dd(h, u, 2, a.length / 2 - n);
|
|
18531
|
-
const g =
|
|
18531
|
+
const g = zt.get(Ja);
|
|
18532
18532
|
g.indexOffset = _, g.indexSize = l.length - _, g.attributeOffset = n, g.attributeSize = a.length / 2 - n, g.baseColor = t.color, g.alpha = t.alpha, g.texture = f, g.geometryData = o, g.topology = c, r.push(g);
|
|
18533
18533
|
});
|
|
18534
18534
|
}
|
|
@@ -18555,7 +18555,7 @@ class sf {
|
|
|
18555
18555
|
}
|
|
18556
18556
|
init(t) {
|
|
18557
18557
|
const e = t.maxTextures;
|
|
18558
|
-
this.batcher ? this.batcher._updateMaxTextures(e) : this.batcher = new
|
|
18558
|
+
this.batcher ? this.batcher._updateMaxTextures(e) : this.batcher = new zd({ maxTextures: e }), this.instructions.reset();
|
|
18559
18559
|
}
|
|
18560
18560
|
/**
|
|
18561
18561
|
* @deprecated since version 8.0.0
|
|
@@ -18615,7 +18615,7 @@ const Gs = class Ts {
|
|
|
18615
18615
|
return this._gpuContextHash[t.uid] || this._initContext(t);
|
|
18616
18616
|
}
|
|
18617
18617
|
_initContextRenderData(t) {
|
|
18618
|
-
const e =
|
|
18618
|
+
const e = zt.get(sf, {
|
|
18619
18619
|
maxTextures: this._renderer.limits.maxBatchableTextures
|
|
18620
18620
|
}), { batches: r, geometryData: o } = this._gpuContextHash[t.uid], a = o.vertices.length, h = o.indices.length;
|
|
18621
18621
|
for (let m = 0; m < r.length; m++)
|
|
@@ -18649,8 +18649,8 @@ const Gs = class Ts {
|
|
|
18649
18649
|
}
|
|
18650
18650
|
_cleanGraphicsContextData(t) {
|
|
18651
18651
|
const e = this._gpuContextHash[t.uid];
|
|
18652
|
-
e.isBatchable || this._graphicsDataContextHash[t.uid] && (
|
|
18653
|
-
|
|
18652
|
+
e.isBatchable || this._graphicsDataContextHash[t.uid] && (zt.return(this.getContextRenderData(t)), this._graphicsDataContextHash[t.uid] = null), e.batches && e.batches.forEach((r) => {
|
|
18653
|
+
zt.return(r);
|
|
18654
18654
|
});
|
|
18655
18655
|
}
|
|
18656
18656
|
destroy() {
|
|
@@ -18661,9 +18661,9 @@ const Gs = class Ts {
|
|
|
18661
18661
|
};
|
|
18662
18662
|
Gs.extension = {
|
|
18663
18663
|
type: [
|
|
18664
|
-
|
|
18665
|
-
|
|
18666
|
-
|
|
18664
|
+
B.WebGLSystem,
|
|
18665
|
+
B.WebGPUSystem,
|
|
18666
|
+
B.CanvasSystem
|
|
18667
18667
|
],
|
|
18668
18668
|
name: "graphicsContext"
|
|
18669
18669
|
};
|
|
@@ -18774,7 +18774,7 @@ function ff(s, t, e, r, o, a) {
|
|
|
18774
18774
|
p * m > v * d
|
|
18775
18775
|
);
|
|
18776
18776
|
}
|
|
18777
|
-
const ui = Math.PI * 2,
|
|
18777
|
+
const ui = Math.PI * 2, Vr = {
|
|
18778
18778
|
centerX: 0,
|
|
18779
18779
|
centerY: 0,
|
|
18780
18780
|
ang1: 0,
|
|
@@ -18834,10 +18834,10 @@ function gf(s, t, e, r, o, a, h, l = 0, d = 0, p = 0) {
|
|
|
18834
18834
|
v,
|
|
18835
18835
|
y,
|
|
18836
18836
|
_,
|
|
18837
|
-
|
|
18837
|
+
Vr
|
|
18838
18838
|
);
|
|
18839
|
-
let { ang1: c, ang2: u } =
|
|
18840
|
-
const { centerX: f, centerY: g } =
|
|
18839
|
+
let { ang1: c, ang2: u } = Vr;
|
|
18840
|
+
const { centerX: f, centerY: g } = Vr;
|
|
18841
18841
|
let x = Math.abs(u) / (ui / 4);
|
|
18842
18842
|
Math.abs(1 - x) < 1e-7 && (x = 1);
|
|
18843
18843
|
const b = Math.max(Math.ceil(x), 1);
|
|
@@ -18845,14 +18845,14 @@ function gf(s, t, e, r, o, a, h, l = 0, d = 0, p = 0) {
|
|
|
18845
18845
|
let w = s[s.length - 2], T = s[s.length - 1];
|
|
18846
18846
|
const S = { x: 0, y: 0 };
|
|
18847
18847
|
for (let A = 0; A < b; A++) {
|
|
18848
|
-
const I = pf(c, u), { x: E, y: C } = Yr(I[0], a, h, v, m, f, g, S), { x:
|
|
18848
|
+
const I = pf(c, u), { x: E, y: C } = Yr(I[0], a, h, v, m, f, g, S), { x: F, y: P } = Yr(I[1], a, h, v, m, f, g, S), { x: L, y: Z } = Yr(I[2], a, h, v, m, f, g, S);
|
|
18849
18849
|
el(
|
|
18850
18850
|
s,
|
|
18851
18851
|
w,
|
|
18852
18852
|
T,
|
|
18853
18853
|
E,
|
|
18854
18854
|
C,
|
|
18855
|
-
|
|
18855
|
+
F,
|
|
18856
18856
|
P,
|
|
18857
18857
|
L,
|
|
18858
18858
|
Z
|
|
@@ -18933,7 +18933,7 @@ function yf(s, t, e, r) {
|
|
|
18933
18933
|
const xf = new G();
|
|
18934
18934
|
class _f {
|
|
18935
18935
|
constructor(t) {
|
|
18936
|
-
this.shapePrimitives = [], this._currentPoly = null, this._bounds = new
|
|
18936
|
+
this.shapePrimitives = [], this._currentPoly = null, this._bounds = new Vt(), this._graphicsPath2D = t, this.signed = t.checkForHoles;
|
|
18937
18937
|
}
|
|
18938
18938
|
/**
|
|
18939
18939
|
* Sets the starting point for a new sub-path. Any subsequent drawing commands are considered part of this path.
|
|
@@ -19400,7 +19400,7 @@ class re {
|
|
|
19400
19400
|
* @returns The instance of the current object for chaining.
|
|
19401
19401
|
*/
|
|
19402
19402
|
bezierCurveToShort(t, e, r, o, a) {
|
|
19403
|
-
const h = this.instructions[this.instructions.length - 1], l = this.getLastPoint(
|
|
19403
|
+
const h = this.instructions[this.instructions.length - 1], l = this.getLastPoint(nt.shared);
|
|
19404
19404
|
let d = 0, p = 0;
|
|
19405
19405
|
if (!h || h.action !== "bezierCurveTo")
|
|
19406
19406
|
d = l.x, p = l.y;
|
|
@@ -19439,7 +19439,7 @@ class re {
|
|
|
19439
19439
|
* @returns The instance of the current object for chaining.
|
|
19440
19440
|
*/
|
|
19441
19441
|
quadraticCurveToShort(t, e, r) {
|
|
19442
|
-
const o = this.instructions[this.instructions.length - 1], a = this.getLastPoint(
|
|
19442
|
+
const o = this.instructions[this.instructions.length - 1], a = this.getLastPoint(nt.shared);
|
|
19443
19443
|
let h = 0, l = 0;
|
|
19444
19444
|
if (!o || o.action !== "quadraticCurveTo")
|
|
19445
19445
|
h = a.x, l = a.y;
|
|
@@ -19680,7 +19680,7 @@ function bf(s, t) {
|
|
|
19680
19680
|
}
|
|
19681
19681
|
}
|
|
19682
19682
|
function wf(s) {
|
|
19683
|
-
const t = lt(s, "x1", 0), e = lt(s, "y1", 0), r = lt(s, "x2", 1), o = lt(s, "y2", 0), a = s.getAttribute("gradientUnits") || "objectBoundingBox", h = new
|
|
19683
|
+
const t = lt(s, "x1", 0), e = lt(s, "y1", 0), r = lt(s, "x2", 1), o = lt(s, "y2", 0), a = s.getAttribute("gradientUnits") || "objectBoundingBox", h = new Bt(
|
|
19684
19684
|
t,
|
|
19685
19685
|
e,
|
|
19686
19686
|
r,
|
|
@@ -19694,7 +19694,7 @@ function wf(s) {
|
|
|
19694
19694
|
return h;
|
|
19695
19695
|
}
|
|
19696
19696
|
function Tf(s) {
|
|
19697
|
-
return et("[SVG Parser] Radial gradients are not yet supported"), new
|
|
19697
|
+
return et("[SVG Parser] Radial gradients are not yet supported"), new Bt(0, 0, 1, 0);
|
|
19698
19698
|
}
|
|
19699
19699
|
function Qn(s) {
|
|
19700
19700
|
const t = s.match(/url\s*\(\s*['"]?\s*#([^'"\s)]+)\s*['"]?\s*\)/i);
|
|
@@ -19841,25 +19841,25 @@ function sl(s, t, e, r) {
|
|
|
19841
19841
|
switch (s.nodeName.toLowerCase()) {
|
|
19842
19842
|
case "path": {
|
|
19843
19843
|
w = s.getAttribute("d");
|
|
19844
|
-
const I = s.getAttribute("fill-rule"), E = Cf(w), C = I === "evenodd",
|
|
19845
|
-
if (C &&
|
|
19844
|
+
const I = s.getAttribute("fill-rule"), E = Cf(w), C = I === "evenodd", F = E.length > 1;
|
|
19845
|
+
if (C && F) {
|
|
19846
19846
|
const L = E.map((M) => ({
|
|
19847
19847
|
path: M,
|
|
19848
19848
|
area: Af(M)
|
|
19849
19849
|
}));
|
|
19850
|
-
if (L.sort((M,
|
|
19850
|
+
if (L.sort((M, k) => k.area - M.area), E.length > 3 || !Sf(L))
|
|
19851
19851
|
for (let M = 0; M < L.length; M++) {
|
|
19852
|
-
const
|
|
19852
|
+
const k = L[M], H = M === 0;
|
|
19853
19853
|
t.context.beginPath();
|
|
19854
19854
|
const R = new re(void 0, !0);
|
|
19855
|
-
io(
|
|
19855
|
+
io(k.path, R), t.context.path(R), H ? (e && t.context.fill(e), r && t.context.stroke(r)) : t.context.cut();
|
|
19856
19856
|
}
|
|
19857
19857
|
else
|
|
19858
19858
|
for (let M = 0; M < L.length; M++) {
|
|
19859
|
-
const
|
|
19859
|
+
const k = L[M], H = M % 2 === 1;
|
|
19860
19860
|
t.context.beginPath();
|
|
19861
19861
|
const R = new re(void 0, !0);
|
|
19862
|
-
io(
|
|
19862
|
+
io(k.path, R), t.context.path(R), H ? t.context.cut() : (e && t.context.fill(e), r && t.context.stroke(r));
|
|
19863
19863
|
}
|
|
19864
19864
|
} else {
|
|
19865
19865
|
const L = I ? I === "evenodd" : !0;
|
|
@@ -19904,7 +19904,7 @@ function ro(s) {
|
|
|
19904
19904
|
return s instanceof ur;
|
|
19905
19905
|
}
|
|
19906
19906
|
function so(s) {
|
|
19907
|
-
return s instanceof
|
|
19907
|
+
return s instanceof Bt;
|
|
19908
19908
|
}
|
|
19909
19909
|
function Ff(s) {
|
|
19910
19910
|
return s instanceof O;
|
|
@@ -19926,14 +19926,14 @@ function Pf(s, t) {
|
|
|
19926
19926
|
const e = { ...t, ...s }, r = ht.shared.setValue(e.color);
|
|
19927
19927
|
return e.alpha *= r.alpha, e.color = r.toNumber(), e;
|
|
19928
19928
|
}
|
|
19929
|
-
function
|
|
19929
|
+
function ye(s, t) {
|
|
19930
19930
|
if (s == null)
|
|
19931
19931
|
return null;
|
|
19932
19932
|
const e = {}, r = s;
|
|
19933
19933
|
return Ef(s) ? kf(e, s, t) : Ff(s) ? Mf(e, s, t) : ro(s) ? no(e, s, t) : so(s) ? oo(e, s, t) : r.fill && ro(r.fill) ? no(r, r.fill, t) : r.fill && so(r.fill) ? oo(r, r.fill, t) : Pf(r, t);
|
|
19934
19934
|
}
|
|
19935
19935
|
function rr(s, t) {
|
|
19936
|
-
const { width: e, alignment: r, miterLimit: o, cap: a, join: h, pixelLine: l, ...d } = t, p =
|
|
19936
|
+
const { width: e, alignment: r, miterLimit: o, cap: a, join: h, pixelLine: l, ...d } = t, p = ye(s, d);
|
|
19937
19937
|
return p ? {
|
|
19938
19938
|
width: e,
|
|
19939
19939
|
alignment: r,
|
|
@@ -19944,9 +19944,9 @@ function rr(s, t) {
|
|
|
19944
19944
|
...p
|
|
19945
19945
|
} : null;
|
|
19946
19946
|
}
|
|
19947
|
-
const Rf = new
|
|
19947
|
+
const Rf = new nt(), ao = new V(), Ws = class Kt extends Yt {
|
|
19948
19948
|
constructor() {
|
|
19949
|
-
super(...arguments), this.uid = ct("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this._activePath = new re(), this._transform = new
|
|
19949
|
+
super(...arguments), this.uid = ct("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this._activePath = new re(), this._transform = new V(), this._fillStyle = { ...Kt.defaultFillStyle }, this._strokeStyle = { ...Kt.defaultStrokeStyle }, this._stateStack = [], this._tick = 0, this._bounds = new Vt(), this._boundsDirty = !0;
|
|
19950
19950
|
}
|
|
19951
19951
|
/**
|
|
19952
19952
|
* Creates a new GraphicsContext object that is a clone of this instance, copying all properties,
|
|
@@ -19964,7 +19964,7 @@ const Rf = new ot(), ao = new H(), Ws = class Kt extends Yt {
|
|
|
19964
19964
|
return this._fillStyle;
|
|
19965
19965
|
}
|
|
19966
19966
|
set fillStyle(t) {
|
|
19967
|
-
this._fillStyle =
|
|
19967
|
+
this._fillStyle = ye(t, Kt.defaultFillStyle);
|
|
19968
19968
|
}
|
|
19969
19969
|
/**
|
|
19970
19970
|
* The current stroke style of the graphics context. Similar to fill styles, stroke styles can encompass colors, gradients, patterns, or more detailed configurations via a StrokeStyle object.
|
|
@@ -19983,7 +19983,7 @@ const Rf = new ot(), ao = new H(), Ws = class Kt extends Yt {
|
|
|
19983
19983
|
* @returns The instance of the current GraphicsContext for method chaining.
|
|
19984
19984
|
*/
|
|
19985
19985
|
setFillStyle(t) {
|
|
19986
|
-
return this._fillStyle =
|
|
19986
|
+
return this._fillStyle = ye(t, Kt.defaultFillStyle), this;
|
|
19987
19987
|
}
|
|
19988
19988
|
/**
|
|
19989
19989
|
* Sets the current stroke style of the graphics context. Similar to fill styles, stroke styles can
|
|
@@ -19993,7 +19993,7 @@ const Rf = new ot(), ao = new H(), Ws = class Kt extends Yt {
|
|
|
19993
19993
|
* @returns The instance of the current GraphicsContext for method chaining.
|
|
19994
19994
|
*/
|
|
19995
19995
|
setStrokeStyle(t) {
|
|
19996
|
-
return this._strokeStyle =
|
|
19996
|
+
return this._strokeStyle = ye(t, Kt.defaultStrokeStyle), this;
|
|
19997
19997
|
}
|
|
19998
19998
|
texture(t, e, r, o, a, h) {
|
|
19999
19999
|
return this.instructions.push({
|
|
@@ -20021,14 +20021,14 @@ const Rf = new ot(), ao = new H(), Ws = class Kt extends Yt {
|
|
|
20021
20021
|
fill(t, e) {
|
|
20022
20022
|
let r;
|
|
20023
20023
|
const o = this.instructions[this.instructions.length - 1];
|
|
20024
|
-
return this._tick === 0 && o?.action === "stroke" ? r = o.data.path : r = this._activePath.clone(), r ? (t != null && (e !== void 0 && typeof t == "number" && (N(J, "GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"), t = { color: t, alpha: e }), this._fillStyle =
|
|
20024
|
+
return this._tick === 0 && o?.action === "stroke" ? r = o.data.path : r = this._activePath.clone(), r ? (t != null && (e !== void 0 && typeof t == "number" && (N(J, "GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"), t = { color: t, alpha: e }), this._fillStyle = ye(t, Kt.defaultFillStyle)), this.instructions.push({
|
|
20025
20025
|
action: "fill",
|
|
20026
20026
|
// TODO copy fill style!
|
|
20027
20027
|
data: { style: this.fillStyle, path: r }
|
|
20028
20028
|
}), this.onUpdate(), this._initNextPathLocation(), this._tick = 0, this) : this;
|
|
20029
20029
|
}
|
|
20030
20030
|
_initNextPathLocation() {
|
|
20031
|
-
const { x: t, y: e } = this._activePath.getLastPoint(
|
|
20031
|
+
const { x: t, y: e } = this._activePath.getLastPoint(nt.shared);
|
|
20032
20032
|
this._activePath.clear(), this._activePath.moveTo(t, e);
|
|
20033
20033
|
}
|
|
20034
20034
|
/**
|
|
@@ -20426,10 +20426,10 @@ const Rf = new ot(), ao = new H(), Ws = class Kt extends Yt {
|
|
|
20426
20426
|
return this._transform.scale(t, e), this;
|
|
20427
20427
|
}
|
|
20428
20428
|
setTransform(t, e, r, o, a, h) {
|
|
20429
|
-
return t instanceof
|
|
20429
|
+
return t instanceof V ? (this._transform.set(t.a, t.b, t.c, t.d, t.tx, t.ty), this) : (this._transform.set(t, e, r, o, a, h), this);
|
|
20430
20430
|
}
|
|
20431
20431
|
transform(t, e, r, o, a, h) {
|
|
20432
|
-
return t instanceof
|
|
20432
|
+
return t instanceof V ? (this._transform.append(t), this) : (ao.set(t, e, r, o, a, h), this._transform.append(ao), this);
|
|
20433
20433
|
}
|
|
20434
20434
|
/**
|
|
20435
20435
|
* Applies a translation transformation to the graphics context, moving the origin by the specified amounts.
|
|
@@ -20576,7 +20576,7 @@ Ws.defaultStrokeStyle = {
|
|
|
20576
20576
|
pixelLine: !1
|
|
20577
20577
|
};
|
|
20578
20578
|
let Rt = Ws;
|
|
20579
|
-
const
|
|
20579
|
+
const Hs = class Ae extends Yt {
|
|
20580
20580
|
constructor(t = {}) {
|
|
20581
20581
|
super(), this.uid = ct("textStyle"), this._tick = 0, Uf(t);
|
|
20582
20582
|
const e = { ...Ae.defaultTextStyle, ...t };
|
|
@@ -20781,11 +20781,11 @@ const Vs = class Ae extends Yt {
|
|
|
20781
20781
|
}
|
|
20782
20782
|
set fill(t) {
|
|
20783
20783
|
t !== this._originalFill && (this._originalFill = t, this._isFillStyle(t) && (this._originalFill = this._createProxy({ ...Rt.defaultFillStyle, ...t }, () => {
|
|
20784
|
-
this._fill =
|
|
20784
|
+
this._fill = ye(
|
|
20785
20785
|
{ ...this._originalFill },
|
|
20786
20786
|
Rt.defaultFillStyle
|
|
20787
20787
|
);
|
|
20788
|
-
})), this._fill =
|
|
20788
|
+
})), this._fill = ye(
|
|
20789
20789
|
t === 0 ? "black" : t,
|
|
20790
20790
|
Rt.defaultFillStyle
|
|
20791
20791
|
), this.update());
|
|
@@ -20881,17 +20881,17 @@ const Vs = class Ae extends Yt {
|
|
|
20881
20881
|
});
|
|
20882
20882
|
}
|
|
20883
20883
|
_isFillStyle(t) {
|
|
20884
|
-
return (t ?? null) !== null && !(ht.isColorLike(t) || t instanceof
|
|
20884
|
+
return (t ?? null) !== null && !(ht.isColorLike(t) || t instanceof Bt || t instanceof ur);
|
|
20885
20885
|
}
|
|
20886
20886
|
};
|
|
20887
|
-
|
|
20887
|
+
Hs.defaultDropShadow = {
|
|
20888
20888
|
alpha: 1,
|
|
20889
20889
|
angle: Math.PI / 6,
|
|
20890
20890
|
blur: 0,
|
|
20891
20891
|
color: "black",
|
|
20892
20892
|
distance: 5
|
|
20893
20893
|
};
|
|
20894
|
-
|
|
20894
|
+
Hs.defaultTextStyle = {
|
|
20895
20895
|
align: "left",
|
|
20896
20896
|
breakWords: !1,
|
|
20897
20897
|
dropShadow: null,
|
|
@@ -20912,7 +20912,7 @@ Vs.defaultTextStyle = {
|
|
|
20912
20912
|
wordWrap: !1,
|
|
20913
20913
|
wordWrapWidth: 100
|
|
20914
20914
|
};
|
|
20915
|
-
let Dt =
|
|
20915
|
+
let Dt = Hs;
|
|
20916
20916
|
function Uf(s) {
|
|
20917
20917
|
const t = s;
|
|
20918
20918
|
if (typeof t.dropShadow == "boolean" && t.dropShadow) {
|
|
@@ -20931,7 +20931,7 @@ function Uf(s) {
|
|
|
20931
20931
|
let r = {};
|
|
20932
20932
|
if (ht.isColorLike(e))
|
|
20933
20933
|
r.color = e;
|
|
20934
|
-
else if (e instanceof
|
|
20934
|
+
else if (e instanceof Bt || e instanceof ur)
|
|
20935
20935
|
r.fill = e;
|
|
20936
20936
|
else if (Object.hasOwnProperty.call(e, "color") || Object.hasOwnProperty.call(e, "fill"))
|
|
20937
20937
|
r = e;
|
|
@@ -20946,7 +20946,7 @@ function Uf(s) {
|
|
|
20946
20946
|
if (N(J, "gradient fill is now a fill pattern: `new FillGradient(...)`"), !Array.isArray(t.fill) || t.fill.length === 0)
|
|
20947
20947
|
throw new Error("Invalid fill value. Expected an array of colors for gradient fill.");
|
|
20948
20948
|
t.fill.length !== t.fillGradientStops.length && et("The number of fill colors must match the number of fill gradient stops.");
|
|
20949
|
-
const e = new
|
|
20949
|
+
const e = new Bt({
|
|
20950
20950
|
start: { x: 0, y: 0 },
|
|
20951
20951
|
end: { x: 0, y: 1 },
|
|
20952
20952
|
textureSpace: "local"
|
|
@@ -20958,7 +20958,7 @@ function Uf(s) {
|
|
|
20958
20958
|
};
|
|
20959
20959
|
}
|
|
20960
20960
|
}
|
|
20961
|
-
class
|
|
20961
|
+
class zf {
|
|
20962
20962
|
constructor(t) {
|
|
20963
20963
|
this._canvasPool = /* @__PURE__ */ Object.create(null), this.canvasOptions = t || {}, this.enableFullScreen = !1;
|
|
20964
20964
|
}
|
|
@@ -20999,7 +20999,7 @@ class Bf {
|
|
|
20999
20999
|
this._canvasPool = {};
|
|
21000
21000
|
}
|
|
21001
21001
|
}
|
|
21002
|
-
const xi = new
|
|
21002
|
+
const xi = new zf();
|
|
21003
21003
|
Ti.register(xi);
|
|
21004
21004
|
const lo = 1e5;
|
|
21005
21005
|
function sr(s, t, e, r = 0) {
|
|
@@ -21007,12 +21007,12 @@ function sr(s, t, e, r = 0) {
|
|
|
21007
21007
|
return ht.shared.setValue(s.color).setAlpha(s.alpha ?? 1).toHexa();
|
|
21008
21008
|
if (s.fill) {
|
|
21009
21009
|
if (s.fill instanceof ur) {
|
|
21010
|
-
const o = s.fill, a = t.createPattern(o.texture.source.resource, "repeat"), h = o.transform.copyTo(
|
|
21010
|
+
const o = s.fill, a = t.createPattern(o.texture.source.resource, "repeat"), h = o.transform.copyTo(V.shared);
|
|
21011
21011
|
return h.scale(
|
|
21012
21012
|
o.texture.frame.width,
|
|
21013
21013
|
o.texture.frame.height
|
|
21014
21014
|
), a.setTransform(h), a;
|
|
21015
|
-
} else if (s.fill instanceof
|
|
21015
|
+
} else if (s.fill instanceof Bt) {
|
|
21016
21016
|
const o = s.fill, a = o.type === "linear", h = o.textureSpace === "local";
|
|
21017
21017
|
let l = 1, d = 1;
|
|
21018
21018
|
h && e && (l = e.width + r, d = e.height + r);
|
|
@@ -21056,7 +21056,7 @@ function sr(s, t, e, r = 0) {
|
|
|
21056
21056
|
return p;
|
|
21057
21057
|
}
|
|
21058
21058
|
} else {
|
|
21059
|
-
const o = t.createPattern(s.texture.source.resource, "repeat"), a = s.matrix.copyTo(
|
|
21059
|
+
const o = t.createPattern(s.texture.source.resource, "repeat"), a = s.matrix.copyTo(V.shared);
|
|
21060
21060
|
return a.scale(s.texture.frame.width, s.texture.frame.height), o.setTransform(a), o;
|
|
21061
21061
|
}
|
|
21062
21062
|
return et("FillStyle not recognised", s), "red";
|
|
@@ -21074,7 +21074,7 @@ const nl = class ol extends Na {
|
|
|
21074
21074
|
const o = r.fontSize;
|
|
21075
21075
|
r.fontSize = this.baseMeasurementFontSize;
|
|
21076
21076
|
const a = er(r);
|
|
21077
|
-
e.overrideSize ? r._stroke && (r._stroke.width *= this.baseRenderedFontSize / o) : r.fontSize = this.baseRenderedFontSize = o, this._style = r, this._skipKerning = e.skipKerning ?? !1, this.resolution = e.resolution ?? 1, this._padding = e.padding ?? 4, e.textureStyle && (this._textureStyle = e.textureStyle instanceof
|
|
21077
|
+
e.overrideSize ? r._stroke && (r._stroke.width *= this.baseRenderedFontSize / o) : r.fontSize = this.baseRenderedFontSize = o, this._style = r, this._skipKerning = e.skipKerning ?? !1, this.resolution = e.resolution ?? 1, this._padding = e.padding ?? 4, e.textureStyle && (this._textureStyle = e.textureStyle instanceof ze ? e.textureStyle : new ze(e.textureStyle)), this.fontMetrics = Ft.measureFont(a), this.lineHeight = r.lineHeight || this.fontMetrics.fontSize || r.fontSize;
|
|
21078
21078
|
}
|
|
21079
21079
|
ensureCharacters(t) {
|
|
21080
21080
|
const e = Ft.graphemeSegmenter(t).filter((u) => !this._currentChars.includes(u)).filter((u, f, g) => g.indexOf(u) === f);
|
|
@@ -21271,9 +21271,9 @@ function al(s, t, e, r) {
|
|
|
21271
21271
|
}
|
|
21272
21272
|
h = g;
|
|
21273
21273
|
}
|
|
21274
|
-
return c(), t.align === "center" ?
|
|
21274
|
+
return c(), t.align === "center" ? Bf(o) : t.align === "right" ? Df(o) : t.align === "justify" && Lf(o), o;
|
|
21275
21275
|
}
|
|
21276
|
-
function
|
|
21276
|
+
function Bf(s) {
|
|
21277
21277
|
for (let t = 0; t < s.lines.length; t++) {
|
|
21278
21278
|
const e = s.lines[t], r = s.width / 2 - e.width / 2;
|
|
21279
21279
|
for (let o = 0; o < e.charPositions.length; o++)
|
|
@@ -21661,7 +21661,7 @@ const $r = {
|
|
|
21661
21661
|
}
|
|
21662
21662
|
}, Gf = [".xml", ".fnt"], Wf = {
|
|
21663
21663
|
extension: {
|
|
21664
|
-
type:
|
|
21664
|
+
type: B.CacheParser,
|
|
21665
21665
|
name: "cacheBitmapFont"
|
|
21666
21666
|
},
|
|
21667
21667
|
test: (s) => s instanceof ll,
|
|
@@ -21671,10 +21671,10 @@ const $r = {
|
|
|
21671
21671
|
e[r] = t, e[`${r}-bitmap`] = t;
|
|
21672
21672
|
}), e[`${t.fontFamily}-bitmap`] = t, e;
|
|
21673
21673
|
}
|
|
21674
|
-
},
|
|
21674
|
+
}, Hf = {
|
|
21675
21675
|
extension: {
|
|
21676
|
-
type:
|
|
21677
|
-
priority:
|
|
21676
|
+
type: B.LoadParser,
|
|
21677
|
+
priority: le.Normal
|
|
21678
21678
|
},
|
|
21679
21679
|
/** used for deprecation purposes */
|
|
21680
21680
|
name: "loadBitmapFont",
|
|
@@ -21713,7 +21713,7 @@ const $r = {
|
|
|
21713
21713
|
await Promise.all(s.pages.map((r) => e.unload(r.texture.source._sourceOrigin))), s.destroy();
|
|
21714
21714
|
}
|
|
21715
21715
|
};
|
|
21716
|
-
class
|
|
21716
|
+
class Vf {
|
|
21717
21717
|
/**
|
|
21718
21718
|
* @param loader
|
|
21719
21719
|
* @param verbose - should the loader log to the console
|
|
@@ -21798,7 +21798,7 @@ class Hf {
|
|
|
21798
21798
|
}
|
|
21799
21799
|
const Yf = {
|
|
21800
21800
|
extension: {
|
|
21801
|
-
type:
|
|
21801
|
+
type: B.CacheParser,
|
|
21802
21802
|
name: "cacheTextureArray"
|
|
21803
21803
|
},
|
|
21804
21804
|
test: (s) => Array.isArray(s) && s.every((t) => t instanceof O),
|
|
@@ -21834,7 +21834,7 @@ async function cl(s) {
|
|
|
21834
21834
|
}
|
|
21835
21835
|
const $f = {
|
|
21836
21836
|
extension: {
|
|
21837
|
-
type:
|
|
21837
|
+
type: B.DetectionParser,
|
|
21838
21838
|
priority: 1
|
|
21839
21839
|
},
|
|
21840
21840
|
test: async () => cl(
|
|
@@ -21845,7 +21845,7 @@ const $f = {
|
|
|
21845
21845
|
remove: async (s) => s.filter((t) => t !== "avif")
|
|
21846
21846
|
}, fo = ["png", "jpg", "jpeg"], Xf = {
|
|
21847
21847
|
extension: {
|
|
21848
|
-
type:
|
|
21848
|
+
type: B.DetectionParser,
|
|
21849
21849
|
priority: -1
|
|
21850
21850
|
},
|
|
21851
21851
|
test: () => Promise.resolve(!0),
|
|
@@ -21857,7 +21857,7 @@ function pr(s) {
|
|
|
21857
21857
|
}
|
|
21858
21858
|
const Zf = {
|
|
21859
21859
|
extension: {
|
|
21860
|
-
type:
|
|
21860
|
+
type: B.DetectionParser,
|
|
21861
21861
|
priority: 0
|
|
21862
21862
|
},
|
|
21863
21863
|
test: async () => pr("video/mp4"),
|
|
@@ -21865,7 +21865,7 @@ const Zf = {
|
|
|
21865
21865
|
remove: async (s) => s.filter((t) => t !== "mp4" && t !== "m4v")
|
|
21866
21866
|
}, Kf = {
|
|
21867
21867
|
extension: {
|
|
21868
|
-
type:
|
|
21868
|
+
type: B.DetectionParser,
|
|
21869
21869
|
priority: 0
|
|
21870
21870
|
},
|
|
21871
21871
|
test: async () => pr("video/ogg"),
|
|
@@ -21873,7 +21873,7 @@ const Zf = {
|
|
|
21873
21873
|
remove: async (s) => s.filter((t) => t !== "ogv")
|
|
21874
21874
|
}, Jf = {
|
|
21875
21875
|
extension: {
|
|
21876
|
-
type:
|
|
21876
|
+
type: B.DetectionParser,
|
|
21877
21877
|
priority: 0
|
|
21878
21878
|
},
|
|
21879
21879
|
test: async () => pr("video/webm"),
|
|
@@ -21881,7 +21881,7 @@ const Zf = {
|
|
|
21881
21881
|
remove: async (s) => s.filter((t) => t !== "webm")
|
|
21882
21882
|
}, jf = {
|
|
21883
21883
|
extension: {
|
|
21884
|
-
type:
|
|
21884
|
+
type: B.DetectionParser,
|
|
21885
21885
|
priority: 0
|
|
21886
21886
|
},
|
|
21887
21887
|
test: async () => cl(
|
|
@@ -22018,20 +22018,20 @@ function We(s, t) {
|
|
|
22018
22018
|
}
|
|
22019
22019
|
return s.startsWith(`data:${t}`);
|
|
22020
22020
|
}
|
|
22021
|
-
function
|
|
22021
|
+
function He(s, t) {
|
|
22022
22022
|
const e = s.split("?")[0], r = kt.extname(e).toLowerCase();
|
|
22023
22023
|
return Array.isArray(t) ? t.includes(r) : r === t;
|
|
22024
22024
|
}
|
|
22025
22025
|
const tp = ".json", ep = "application/json", ip = {
|
|
22026
22026
|
extension: {
|
|
22027
|
-
type:
|
|
22028
|
-
priority:
|
|
22027
|
+
type: B.LoadParser,
|
|
22028
|
+
priority: le.Low
|
|
22029
22029
|
},
|
|
22030
22030
|
/** used for deprecation purposes */
|
|
22031
22031
|
name: "loadJson",
|
|
22032
22032
|
id: "json",
|
|
22033
22033
|
test(s) {
|
|
22034
|
-
return We(s, ep) ||
|
|
22034
|
+
return We(s, ep) || He(s, tp);
|
|
22035
22035
|
},
|
|
22036
22036
|
async load(s) {
|
|
22037
22037
|
return await (await it.get().fetch(s)).json();
|
|
@@ -22041,12 +22041,12 @@ const tp = ".json", ep = "application/json", ip = {
|
|
|
22041
22041
|
name: "loadTxt",
|
|
22042
22042
|
id: "text",
|
|
22043
22043
|
extension: {
|
|
22044
|
-
type:
|
|
22045
|
-
priority:
|
|
22044
|
+
type: B.LoadParser,
|
|
22045
|
+
priority: le.Low,
|
|
22046
22046
|
name: "loadTxt"
|
|
22047
22047
|
},
|
|
22048
22048
|
test(s) {
|
|
22049
|
-
return We(s, sp) ||
|
|
22049
|
+
return We(s, sp) || He(s, rp);
|
|
22050
22050
|
},
|
|
22051
22051
|
async load(s) {
|
|
22052
22052
|
return await (await it.get().fetch(s)).text();
|
|
@@ -22086,14 +22086,14 @@ function dp(s) {
|
|
|
22086
22086
|
}
|
|
22087
22087
|
const fp = {
|
|
22088
22088
|
extension: {
|
|
22089
|
-
type:
|
|
22090
|
-
priority:
|
|
22089
|
+
type: B.LoadParser,
|
|
22090
|
+
priority: le.Low
|
|
22091
22091
|
},
|
|
22092
22092
|
/** used for deprecation purposes */
|
|
22093
22093
|
name: "loadWebFont",
|
|
22094
22094
|
id: "web-font",
|
|
22095
22095
|
test(s) {
|
|
22096
|
-
return We(s, lp) ||
|
|
22096
|
+
return We(s, lp) || He(s, ap);
|
|
22097
22097
|
},
|
|
22098
22098
|
async load(s, t) {
|
|
22099
22099
|
const e = it.get().getFontFaceSet();
|
|
@@ -22119,7 +22119,7 @@ const fp = {
|
|
|
22119
22119
|
}), r.entries.length === 0 && rt.remove(`${e}-and-url`);
|
|
22120
22120
|
}
|
|
22121
22121
|
};
|
|
22122
|
-
function
|
|
22122
|
+
function Vs(s, t = 1) {
|
|
22123
22123
|
const e = Oe.RETINA_PREFIX?.exec(s);
|
|
22124
22124
|
return e ? parseFloat(e[1]) : t;
|
|
22125
22125
|
}
|
|
@@ -22139,8 +22139,8 @@ function Ys(s, t, e) {
|
|
|
22139
22139
|
}
|
|
22140
22140
|
const pp = ".svg", mp = "image/svg+xml", gp = {
|
|
22141
22141
|
extension: {
|
|
22142
|
-
type:
|
|
22143
|
-
priority:
|
|
22142
|
+
type: B.LoadParser,
|
|
22143
|
+
priority: le.Low,
|
|
22144
22144
|
name: "loadSVG"
|
|
22145
22145
|
},
|
|
22146
22146
|
/** used for deprecation purposes */
|
|
@@ -22151,7 +22151,7 @@ const pp = ".svg", mp = "image/svg+xml", gp = {
|
|
|
22151
22151
|
parseAsGraphicsContext: !1
|
|
22152
22152
|
},
|
|
22153
22153
|
test(s) {
|
|
22154
|
-
return We(s, mp) ||
|
|
22154
|
+
return We(s, mp) || He(s, pp);
|
|
22155
22155
|
},
|
|
22156
22156
|
async load(s, t, e) {
|
|
22157
22157
|
return t.data?.parseAsGraphicsContext ?? this.config.parseAsGraphicsContext ? yp(s) : vp(s, t, e, this.config.crossOrigin);
|
|
@@ -22163,7 +22163,7 @@ const pp = ".svg", mp = "image/svg+xml", gp = {
|
|
|
22163
22163
|
async function vp(s, t, e, r) {
|
|
22164
22164
|
const o = await it.get().fetch(s), a = it.get().createImage();
|
|
22165
22165
|
a.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(await o.text())}`, a.crossOrigin = r, await a.decode();
|
|
22166
|
-
const h = t.data?.width ?? a.width, l = t.data?.height ?? a.height, d = t.data?.resolution ||
|
|
22166
|
+
const h = t.data?.width ?? a.width, l = t.data?.height ?? a.height, d = t.data?.resolution || Vs(s), p = Math.ceil(h * d), m = Math.ceil(l * d), v = it.get().createCanvas(p, m), y = v.getContext("2d");
|
|
22167
22167
|
y.imageSmoothingEnabled = !0, y.imageSmoothingQuality = "high", y.drawImage(a, 0, 0, h * d, l * d);
|
|
22168
22168
|
const { parseAsGraphicsContext: _, ...n } = t.data ?? {}, c = new Jt({
|
|
22169
22169
|
resource: v,
|
|
@@ -22390,8 +22390,8 @@ const dl = {
|
|
|
22390
22390
|
name: "loadTextures",
|
|
22391
22391
|
id: "texture",
|
|
22392
22392
|
extension: {
|
|
22393
|
-
type:
|
|
22394
|
-
priority:
|
|
22393
|
+
type: B.LoadParser,
|
|
22394
|
+
priority: le.High,
|
|
22395
22395
|
name: "loadTextures"
|
|
22396
22396
|
},
|
|
22397
22397
|
config: {
|
|
@@ -22400,7 +22400,7 @@ const dl = {
|
|
|
22400
22400
|
crossOrigin: "anonymous"
|
|
22401
22401
|
},
|
|
22402
22402
|
test(s) {
|
|
22403
|
-
return We(s, Tp) ||
|
|
22403
|
+
return We(s, Tp) || He(s, wp);
|
|
22404
22404
|
},
|
|
22405
22405
|
async load(s, t, e) {
|
|
22406
22406
|
let r = null;
|
|
@@ -22412,7 +22412,7 @@ const dl = {
|
|
|
22412
22412
|
const o = new Jt({
|
|
22413
22413
|
resource: r,
|
|
22414
22414
|
alphaMode: "premultiply-alpha-on-upload",
|
|
22415
|
-
resolution: t.data?.resolution ||
|
|
22415
|
+
resolution: t.data?.resolution || Vs(s),
|
|
22416
22416
|
...t.data
|
|
22417
22417
|
});
|
|
22418
22418
|
return Ys(o, e, s);
|
|
@@ -22462,7 +22462,7 @@ const kp = {
|
|
|
22462
22462
|
name: "loadVideo",
|
|
22463
22463
|
id: "video",
|
|
22464
22464
|
extension: {
|
|
22465
|
-
type:
|
|
22465
|
+
type: B.LoadParser,
|
|
22466
22466
|
name: "loadVideo"
|
|
22467
22467
|
},
|
|
22468
22468
|
test(s) {
|
|
@@ -22470,13 +22470,13 @@ const kp = {
|
|
|
22470
22470
|
const { validVideoExtensions: r, validVideoMime: o } = Fp();
|
|
22471
22471
|
qr = r, Zr = o;
|
|
22472
22472
|
}
|
|
22473
|
-
const t = We(s, Zr), e =
|
|
22473
|
+
const t = We(s, Zr), e = He(s, qr);
|
|
22474
22474
|
return t || e;
|
|
22475
22475
|
},
|
|
22476
22476
|
async load(s, t, e) {
|
|
22477
22477
|
const r = {
|
|
22478
22478
|
...li.defaultOptions,
|
|
22479
|
-
resolution: t.data?.resolution ||
|
|
22479
|
+
resolution: t.data?.resolution || Vs(s),
|
|
22480
22480
|
alphaMode: t.data?.alphaMode || await ma(),
|
|
22481
22481
|
...t.data
|
|
22482
22482
|
}, o = document.createElement("video"), a = {
|
|
@@ -22514,7 +22514,7 @@ const kp = {
|
|
|
22514
22514
|
}
|
|
22515
22515
|
}, fl = {
|
|
22516
22516
|
extension: {
|
|
22517
|
-
type:
|
|
22517
|
+
type: B.ResolveParser,
|
|
22518
22518
|
name: "resolveTexture"
|
|
22519
22519
|
},
|
|
22520
22520
|
test: dl.test,
|
|
@@ -22525,7 +22525,7 @@ const kp = {
|
|
|
22525
22525
|
})
|
|
22526
22526
|
}, Mp = {
|
|
22527
22527
|
extension: {
|
|
22528
|
-
type:
|
|
22528
|
+
type: B.ResolveParser,
|
|
22529
22529
|
priority: -2,
|
|
22530
22530
|
name: "resolveJson"
|
|
22531
22531
|
},
|
|
@@ -22534,7 +22534,7 @@ const kp = {
|
|
|
22534
22534
|
};
|
|
22535
22535
|
class Pp {
|
|
22536
22536
|
constructor() {
|
|
22537
|
-
this._detections = [], this._initialized = !1, this.resolver = new Oe(), this.loader = new Qf(), this.cache = rt, this._backgroundLoader = new
|
|
22537
|
+
this._detections = [], this._initialized = !1, this.resolver = new Oe(), this.loader = new Qf(), this.cache = rt, this._backgroundLoader = new Vf(this.loader), this._backgroundLoader.active = !0, this.reset();
|
|
22538
22538
|
}
|
|
22539
22539
|
/**
|
|
22540
22540
|
* Initializes the Assets class with configuration options. While not required,
|
|
@@ -23111,7 +23111,7 @@ class Pp {
|
|
|
23111
23111
|
}
|
|
23112
23112
|
}
|
|
23113
23113
|
const ni = new Pp();
|
|
23114
|
-
xt.handleByList(
|
|
23114
|
+
xt.handleByList(B.LoadParser, ni.loader.parsers).handleByList(B.ResolveParser, ni.resolver.parsers).handleByList(B.CacheParser, ni.cache.parsers).handleByList(B.DetectionParser, ni.detections);
|
|
23115
23115
|
xt.add(
|
|
23116
23116
|
Yf,
|
|
23117
23117
|
Xf,
|
|
@@ -23126,18 +23126,18 @@ xt.add(
|
|
|
23126
23126
|
gp,
|
|
23127
23127
|
dl,
|
|
23128
23128
|
kp,
|
|
23129
|
-
|
|
23129
|
+
Hf,
|
|
23130
23130
|
Wf,
|
|
23131
23131
|
fl,
|
|
23132
23132
|
Mp
|
|
23133
23133
|
);
|
|
23134
23134
|
const go = {
|
|
23135
|
-
loader:
|
|
23136
|
-
resolver:
|
|
23137
|
-
cache:
|
|
23138
|
-
detection:
|
|
23135
|
+
loader: B.LoadParser,
|
|
23136
|
+
resolver: B.ResolveParser,
|
|
23137
|
+
cache: B.CacheParser,
|
|
23138
|
+
detection: B.DetectionParser
|
|
23139
23139
|
};
|
|
23140
|
-
xt.handle(
|
|
23140
|
+
xt.handle(B.Asset, (s) => {
|
|
23141
23141
|
const t = s.ref;
|
|
23142
23142
|
Object.entries(go).filter(([e]) => !!t[e]).forEach(([e, r]) => xt.add(Object.assign(
|
|
23143
23143
|
t[e],
|
|
@@ -23179,7 +23179,7 @@ function Up(s) {
|
|
|
23179
23179
|
}
|
|
23180
23180
|
return r = r.replace("%blur%", o), r = r.replace("%size%", s.toString()), r;
|
|
23181
23181
|
}
|
|
23182
|
-
const
|
|
23182
|
+
const zp = `
|
|
23183
23183
|
in vec2 aPosition;
|
|
23184
23184
|
|
|
23185
23185
|
uniform float uStrength;
|
|
@@ -23214,9 +23214,9 @@ const Bp = `
|
|
|
23214
23214
|
vec2 textureCoord = filterTextureCoord();
|
|
23215
23215
|
%blur%
|
|
23216
23216
|
}`;
|
|
23217
|
-
function
|
|
23217
|
+
function Bp(s, t) {
|
|
23218
23218
|
const e = Math.ceil(s / 2);
|
|
23219
|
-
let r =
|
|
23219
|
+
let r = zp, o = "", a;
|
|
23220
23220
|
t ? a = "vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * pixelStrength, 0.0);" : a = "vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * pixelStrength);";
|
|
23221
23221
|
for (let h = 0; h < s; h++) {
|
|
23222
23222
|
let l = a.replace("%index%", h.toString());
|
|
@@ -23226,7 +23226,7 @@ function zp(s, t) {
|
|
|
23226
23226
|
return r = r.replace("%blur%", o), r = r.replace("%size%", s.toString()), r = r.replace("%dimension%", t ? "z" : "w"), r;
|
|
23227
23227
|
}
|
|
23228
23228
|
function Dp(s, t) {
|
|
23229
|
-
const e =
|
|
23229
|
+
const e = Bp(t, s), r = Up(t);
|
|
23230
23230
|
return Ne.from({
|
|
23231
23231
|
vertex: e,
|
|
23232
23232
|
fragment: r,
|
|
@@ -23581,7 +23581,7 @@ vl.defaultOptions = {
|
|
|
23581
23581
|
/** The kernelSize of the blur filter.Options: 5, 7, 9, 11, 13, 15. */
|
|
23582
23582
|
kernelSize: 5
|
|
23583
23583
|
};
|
|
23584
|
-
class ut extends
|
|
23584
|
+
class ut extends zs {
|
|
23585
23585
|
/**
|
|
23586
23586
|
* Creates a new Graphics object.
|
|
23587
23587
|
* @param options - Options for the Graphics.
|
|
@@ -24344,7 +24344,7 @@ class ut extends Bs {
|
|
|
24344
24344
|
return N(J, "Graphics#drawStar has been renamed to Graphics#star"), this._callContextMethod("star", t);
|
|
24345
24345
|
}
|
|
24346
24346
|
}
|
|
24347
|
-
class yl extends
|
|
24347
|
+
class yl extends zs {
|
|
24348
24348
|
constructor(t, e) {
|
|
24349
24349
|
const { text: r, resolution: o, style: a, anchor: h, width: l, height: d, roundPixels: p, ...m } = t;
|
|
24350
24350
|
super({
|
|
@@ -24638,9 +24638,9 @@ function xl(s, t) {
|
|
|
24638
24638
|
style: s[1]
|
|
24639
24639
|
}), e;
|
|
24640
24640
|
}
|
|
24641
|
-
let
|
|
24641
|
+
let de = null, ee = null;
|
|
24642
24642
|
function Np(s, t) {
|
|
24643
|
-
|
|
24643
|
+
de || (de = it.get().createCanvas(256, 128), ee = de.getContext("2d", { willReadFrequently: !0 }), ee.globalCompositeOperation = "copy", ee.globalAlpha = 1), (de.width < s || de.height < t) && (de.width = Ue(s), de.height = Ue(t));
|
|
24644
24644
|
}
|
|
24645
24645
|
function vo(s, t, e) {
|
|
24646
24646
|
for (let r = 0, o = 4 * e * t; r < t; ++r, o += 4)
|
|
@@ -24746,8 +24746,8 @@ class Wp {
|
|
|
24746
24746
|
l.fillStyle = "black", l.strokeStyle = "black";
|
|
24747
24747
|
const I = e.dropShadow, E = I.color, C = I.alpha;
|
|
24748
24748
|
l.shadowColor = ht.shared.setValue(E).setAlpha(C).toRgbaString();
|
|
24749
|
-
const
|
|
24750
|
-
l.shadowBlur =
|
|
24749
|
+
const F = I.blur * o, P = I.distance * o;
|
|
24750
|
+
l.shadowBlur = F, l.shadowOffsetX = Math.cos(I.angle) * P, l.shadowOffsetY = Math.sin(I.angle) * P + T;
|
|
24751
24751
|
} else {
|
|
24752
24752
|
if (l.fillStyle = e._fill ? sr(e._fill, l, p, r * 2) : null, e._stroke?.width) {
|
|
24753
24753
|
const I = e._stroke.width * 0.5 + r * 2;
|
|
@@ -24813,10 +24813,10 @@ class Wp {
|
|
|
24813
24813
|
}
|
|
24814
24814
|
}
|
|
24815
24815
|
const _o = new Wp();
|
|
24816
|
-
class
|
|
24816
|
+
class Hp extends yl {
|
|
24817
24817
|
constructor(...t) {
|
|
24818
24818
|
const e = xl(t, "Text");
|
|
24819
|
-
super(e, Dt), this.renderPipeId = "text", e.textureStyle && (this.textureStyle = e.textureStyle instanceof
|
|
24819
|
+
super(e, Dt), this.renderPipeId = "text", e.textureStyle && (this.textureStyle = e.textureStyle instanceof ze ? e.textureStyle : new ze(e.textureStyle));
|
|
24820
24820
|
}
|
|
24821
24821
|
/** @private */
|
|
24822
24822
|
updateBounds() {
|
|
@@ -24839,7 +24839,7 @@ class Vp extends yl {
|
|
|
24839
24839
|
t.minX = -e._x * r, t.maxX = t.minX + r, t.minY = -e._y * o, t.maxY = t.minY + o;
|
|
24840
24840
|
}
|
|
24841
24841
|
}
|
|
24842
|
-
class
|
|
24842
|
+
class Vp extends yl {
|
|
24843
24843
|
constructor(...t) {
|
|
24844
24844
|
var e;
|
|
24845
24845
|
const r = xl(t, "BitmapText");
|
|
@@ -24918,27 +24918,27 @@ function Yp(s) {
|
|
|
24918
24918
|
for (const n of l.lines) {
|
|
24919
24919
|
if (n.chars.length === 0)
|
|
24920
24920
|
continue;
|
|
24921
|
-
const c = new
|
|
24921
|
+
const c = new ot({ label: "line" });
|
|
24922
24922
|
c.y = _, v.push(c);
|
|
24923
|
-
let u = new
|
|
24923
|
+
let u = new ot({ label: "word" }), f = 0;
|
|
24924
24924
|
for (let g = 0; g < n.chars.length; g++) {
|
|
24925
24925
|
const x = n.chars[g];
|
|
24926
24926
|
if (!x || !a.chars[x])
|
|
24927
24927
|
continue;
|
|
24928
24928
|
const w = x === " ", T = g === n.chars.length - 1;
|
|
24929
24929
|
let S;
|
|
24930
|
-
r.length > 0 ? (S = r.shift(), S.text = x, S.style = o, S.label = `char-${x}`, S.x = n.charPositions[g] * d - n.charPositions[f] * d) : S = new
|
|
24930
|
+
r.length > 0 ? (S = r.shift(), S.text = x, S.style = o, S.label = `char-${x}`, S.x = n.charPositions[g] * d - n.charPositions[f] * d) : S = new Vp({
|
|
24931
24931
|
text: x,
|
|
24932
24932
|
style: o,
|
|
24933
24933
|
label: `char-${x}`,
|
|
24934
24934
|
x: n.charPositions[g] * d - n.charPositions[f] * d
|
|
24935
|
-
}), w || (p.push(S), u.addChild(S)), (w || T) && u.children.length > 0 && (u.x = n.charPositions[f] * d, m.push(u), c.addChild(u), u = new
|
|
24935
|
+
}), w || (p.push(S), u.addChild(S)), (w || T) && u.children.length > 0 && (u.x = n.charPositions[f] * d, m.push(u), c.addChild(u), u = new ot({ label: "word" }), f = g + 1);
|
|
24936
24936
|
}
|
|
24937
24937
|
_ += y;
|
|
24938
24938
|
}
|
|
24939
24939
|
return { chars: p, lines: v, words: m };
|
|
24940
24940
|
}
|
|
24941
|
-
class $p extends
|
|
24941
|
+
class $p extends ot {
|
|
24942
24942
|
constructor(t) {
|
|
24943
24943
|
const {
|
|
24944
24944
|
text: e,
|
|
@@ -25200,7 +25200,7 @@ _l.defaultOptions = {
|
|
|
25200
25200
|
// Top-left alignment
|
|
25201
25201
|
};
|
|
25202
25202
|
let Xp = _l;
|
|
25203
|
-
xt.add(Wc,
|
|
25203
|
+
xt.add(Wc, Hc);
|
|
25204
25204
|
function dt(s) {
|
|
25205
25205
|
if (s != null) {
|
|
25206
25206
|
if (typeof s == "number") return s;
|
|
@@ -25224,11 +25224,11 @@ function dt(s) {
|
|
|
25224
25224
|
}
|
|
25225
25225
|
}
|
|
25226
25226
|
}
|
|
25227
|
-
const bl = (s) => s === "transparent",
|
|
25227
|
+
const bl = (s) => s === "transparent", ve = (s, t = 16777215) => bl(s) ? { color: t, alpha: 0 } : {
|
|
25228
25228
|
color: dt(s) ?? t,
|
|
25229
25229
|
alpha: 1
|
|
25230
25230
|
};
|
|
25231
|
-
class
|
|
25231
|
+
class ae extends _e {
|
|
25232
25232
|
type = "Caption";
|
|
25233
25233
|
ready;
|
|
25234
25234
|
_meta = {
|
|
@@ -25348,7 +25348,7 @@ class xe extends _e {
|
|
|
25348
25348
|
align: this.opts.align
|
|
25349
25349
|
};
|
|
25350
25350
|
if (e.fill && typeof e.fill == "object" && e.fill.type === "gradient") {
|
|
25351
|
-
const l = new
|
|
25351
|
+
const l = new Bt(
|
|
25352
25352
|
e.fill.x0,
|
|
25353
25353
|
e.fill.y0,
|
|
25354
25354
|
e.fill.x1,
|
|
@@ -25411,7 +25411,7 @@ class xe extends _e {
|
|
|
25411
25411
|
align: this.opts.align
|
|
25412
25412
|
};
|
|
25413
25413
|
if (this.opts.fill && typeof this.opts.fill == "object" && this.opts.fill.type === "gradient") {
|
|
25414
|
-
const r = new
|
|
25414
|
+
const r = new Bt(
|
|
25415
25415
|
this.opts.fill.x0,
|
|
25416
25416
|
this.opts.fill.y0,
|
|
25417
25417
|
this.opts.fill.x1,
|
|
@@ -25441,7 +25441,7 @@ class xe extends _e {
|
|
|
25441
25441
|
async refreshCaptions() {
|
|
25442
25442
|
this.pixiTextContainer ? (this.pixiTextContainer.children.forEach((f) => {
|
|
25443
25443
|
f instanceof ut && f.label;
|
|
25444
|
-
}), this.pixiTextContainer.removeChildren()) : this.pixiTextContainer = new
|
|
25444
|
+
}), this.pixiTextContainer.removeChildren()) : this.pixiTextContainer = new ot();
|
|
25445
25445
|
const t = this.textStyle;
|
|
25446
25446
|
let e = 0, r = 0, o = 0;
|
|
25447
25447
|
const a = this.opts.textCase;
|
|
@@ -25487,15 +25487,15 @@ class xe extends _e {
|
|
|
25487
25487
|
r !== this.lastLoggedTime && (this.lastLoggedTime = r), this.opts.words.forEach((o, a) => {
|
|
25488
25488
|
const h = e >= o.from && e <= o.to, l = e > o.to, d = o.isKeyWord && !bl(this.opts.keyword);
|
|
25489
25489
|
let p = 16777215, m = 1;
|
|
25490
|
-
o.isKeyWord && h && d ? { color: p, alpha: m } =
|
|
25490
|
+
o.isKeyWord && h && d ? { color: p, alpha: m } = ve(
|
|
25491
25491
|
this.opts.keyword
|
|
25492
|
-
) : h ? { color: p, alpha: m } =
|
|
25492
|
+
) : h ? { color: p, alpha: m } = ve(
|
|
25493
25493
|
this.opts.active
|
|
25494
|
-
) : l && this.opts.preserveKeywordColor && d ? { color: p, alpha: m } =
|
|
25494
|
+
) : l && this.opts.preserveKeywordColor && d ? { color: p, alpha: m } = ve(
|
|
25495
25495
|
this.opts.keyword
|
|
25496
|
-
) : l ? { color: p, alpha: m } =
|
|
25496
|
+
) : l ? { color: p, alpha: m } = ve(
|
|
25497
25497
|
this.opts.appeared
|
|
25498
|
-
) : { color: p, alpha: m } =
|
|
25498
|
+
) : { color: p, alpha: m } = ve(this.opts.fill);
|
|
25499
25499
|
const v = this.wordTexts[a];
|
|
25500
25500
|
if (!v) {
|
|
25501
25501
|
console.warn(
|
|
@@ -25508,7 +25508,7 @@ class xe extends _e {
|
|
|
25508
25508
|
});
|
|
25509
25509
|
const y = v.getChildByLabel("bgRect");
|
|
25510
25510
|
if (h) {
|
|
25511
|
-
const { color: _, alpha: n } =
|
|
25511
|
+
const { color: _, alpha: n } = ve(
|
|
25512
25512
|
this.opts.activeFill,
|
|
25513
25513
|
16753920
|
|
25514
25514
|
), c = 10;
|
|
@@ -25604,7 +25604,7 @@ class xe extends _e {
|
|
|
25604
25604
|
}
|
|
25605
25605
|
async clone() {
|
|
25606
25606
|
await this.ready;
|
|
25607
|
-
const t = this.originalOpts || {}, e = new
|
|
25607
|
+
const t = this.originalOpts || {}, e = new ae(this.text, t);
|
|
25608
25608
|
return this.copyStateTo(e), e.id = this.id, e.effects = [...this.effects], e;
|
|
25609
25609
|
}
|
|
25610
25610
|
destroy() {
|
|
@@ -25697,7 +25697,7 @@ class xe extends _e {
|
|
|
25697
25697
|
distance: r.shadow.distance,
|
|
25698
25698
|
angle: r.shadow.angle
|
|
25699
25699
|
}), t.caption ? o.caption = t.caption : (t.bottomOffset !== void 0 && (o.bottomOffset = t.bottomOffset), t.words !== void 0 && (o.words = t.words), (t.appearedColor !== void 0 || t.activeColor !== void 0 || t.activeFillColor !== void 0 || t.backgroundColor !== void 0 || t.isKeyWordColor !== void 0) && (o.colors = {}, t.appearedColor !== void 0 && (o.colors.appeared = t.appearedColor), t.activeColor !== void 0 && (o.colors.active = t.activeColor), t.activeFillColor !== void 0 && (o.colors.activeFill = t.activeFillColor), t.backgroundColor !== void 0 && (o.colors.background = t.backgroundColor), t.isKeyWordColor !== void 0 && (o.colors.keyword = t.isKeyWordColor)), t.preservedColorKeyWord !== void 0 && (o.preserveKeywordColor = t.preservedColorKeyWord), t.videoWidth !== void 0 && (o.videoWidth = t.videoWidth), t.videoHeight !== void 0 && (o.videoHeight = t.videoHeight));
|
|
25700
|
-
const a = new
|
|
25700
|
+
const a = new ae(e, o);
|
|
25701
25701
|
return a.left = t.left, a.top = t.top, a.width = t.width, a.height = t.height, a.angle = t.angle, a.display.from = t.display.from, a.display.to = t.display.to, a.duration = t.duration, a.playbackRate = t.playbackRate, a.zIndex = t.zIndex, a.opacity = t.opacity, a.flip = t.flip, t.animation && a.setAnimation(t.animation.keyFrames, t.animation.opts), t.id && (a.id = t.id), t.effects && (a.effects = t.effects), await a.ready, a;
|
|
25702
25702
|
}
|
|
25703
25703
|
}
|
|
@@ -27142,6 +27142,8 @@ class Gt extends _e {
|
|
|
27142
27142
|
set height(t) {
|
|
27143
27143
|
this.height !== t && (this._height = t, this.refreshText(), this.emit("propsChange", { height: t }));
|
|
27144
27144
|
}
|
|
27145
|
+
_lastContentWidth = 0;
|
|
27146
|
+
_lastContentHeight = 0;
|
|
27145
27147
|
_text = "";
|
|
27146
27148
|
/**
|
|
27147
27149
|
* Text content (hybrid JSON structure)
|
|
@@ -27405,43 +27407,45 @@ class Gt extends _e {
|
|
|
27405
27407
|
const r = this.originalOpts.textCase;
|
|
27406
27408
|
r === "uppercase" ? e = e.toUpperCase() : r === "lowercase" ? e = e.toLowerCase() : r === "title" && (e = e.replace(
|
|
27407
27409
|
/\w\S*/g,
|
|
27408
|
-
(
|
|
27409
|
-
)), this.pixiText ? (this.pixiText.text = e, this.pixiText.style = t, this.pixiText.children.forEach((
|
|
27410
|
-
|
|
27411
|
-
}), this.pixiText.removeChildren()) : this.pixiText = new
|
|
27410
|
+
(u) => u.charAt(0).toUpperCase() + u.substring(1).toLowerCase()
|
|
27411
|
+
)), this.pixiText ? (this.pixiText.text = e, this.pixiText.style = t, this.pixiText.children.forEach((u) => {
|
|
27412
|
+
u instanceof ut && u.destroy();
|
|
27413
|
+
}), this.pixiText.removeChildren()) : this.pixiText = new Hp({ text: e, style: t });
|
|
27412
27414
|
const o = this.originalOpts.textDecoration || this.originalOpts.verticalAlign;
|
|
27413
27415
|
if (o && o !== "none" && ["underline", "overline", "strikethrough", "line-through"].includes(
|
|
27414
27416
|
o
|
|
27415
27417
|
)) {
|
|
27416
|
-
const
|
|
27418
|
+
const u = o === "strikethrough" ? "line-through" : o, f = Ft.measureText(
|
|
27417
27419
|
e,
|
|
27418
27420
|
t
|
|
27419
|
-
),
|
|
27420
|
-
let
|
|
27421
|
-
typeof t.fill == "number" ?
|
|
27422
|
-
const
|
|
27423
|
-
for (let
|
|
27424
|
-
const
|
|
27425
|
-
let
|
|
27426
|
-
t.align === "center" ?
|
|
27427
|
-
const
|
|
27428
|
-
let
|
|
27429
|
-
|
|
27430
|
-
const
|
|
27431
|
-
|
|
27432
|
-
}
|
|
27433
|
-
this.pixiText.addChild(
|
|
27421
|
+
), g = t.fontSize ?? 40, x = Math.max(1, g / 12);
|
|
27422
|
+
let b = 16777215;
|
|
27423
|
+
typeof t.fill == "number" ? b = t.fill : t.fill && typeof t.fill == "object" && "fill" in t.fill && (b = 16777215);
|
|
27424
|
+
const w = new ut(), T = t.lineHeight ?? f.lineHeight;
|
|
27425
|
+
for (let S = 0; S < f.lines.length; S++) {
|
|
27426
|
+
const A = f.lineWidths[S];
|
|
27427
|
+
let I = 0;
|
|
27428
|
+
t.align === "center" ? I = (f.maxLineWidth - A) / 2 : t.align === "right" && (I = f.maxLineWidth - A);
|
|
27429
|
+
const E = S * T;
|
|
27430
|
+
let C = 0;
|
|
27431
|
+
u === "underline" ? C = T : u === "line-through" ? C = T / 2 : u === "overline" && (C = 0);
|
|
27432
|
+
const F = E + C;
|
|
27433
|
+
w.rect(I, F, A, x), w.fill(b);
|
|
27434
|
+
}
|
|
27435
|
+
this.pixiText.addChild(w);
|
|
27434
27436
|
}
|
|
27435
27437
|
const a = this.pixiText.getLocalBounds(), h = Math.ceil(a.width || this.pixiText.width || 1), l = Math.ceil(a.height || this.pixiText.height || 1);
|
|
27436
|
-
let d =
|
|
27438
|
+
let d = h;
|
|
27437
27439
|
t.wordWrap && t.wordWrapWidth > 0 && (d = Math.max(d, t.wordWrapWidth));
|
|
27438
|
-
const p = Math.
|
|
27439
|
-
|
|
27440
|
-
const
|
|
27441
|
-
|
|
27442
|
-
|
|
27443
|
-
|
|
27444
|
-
|
|
27440
|
+
const p = l, m = this.width === 0 || Math.abs(this.width - this._lastContentWidth) < 0.1, v = this.height === 0 || Math.abs(this.height - this._lastContentHeight) < 0.1, y = m ? d : Math.max(d, this.width || 0), _ = v ? p : Math.max(p, this.height || 0);
|
|
27441
|
+
this._lastContentWidth = d, this._lastContentHeight = p;
|
|
27442
|
+
const n = this.textAlign;
|
|
27443
|
+
n === "center" ? this.pixiText.x = (y - h) / 2 : n === "right" ? this.pixiText.x = y - h : this.pixiText.x = 0;
|
|
27444
|
+
const c = this.originalOpts.verticalAlign || "top";
|
|
27445
|
+
c === "center" ? this.pixiText.y = (_ - l) / 2 : c === "bottom" ? this.pixiText.y = _ - l : this.pixiText.y = 0, this.renderTexture && this.renderTexture.destroy(), this.renderTexture = wt.create({
|
|
27446
|
+
width: y,
|
|
27447
|
+
height: _
|
|
27448
|
+
}), this._meta.width = y, this._meta.height = _, this._width = y, this._height = _, this.duration === 0 && this._meta.duration !== 1 / 0 && (this.duration = this._meta.duration, this.display.to = this.display.from + this.duration);
|
|
27445
27449
|
}
|
|
27446
27450
|
/**
|
|
27447
27451
|
* Helper to create PixiJS TextStyle options from TextClip options
|
|
@@ -27459,7 +27463,7 @@ class Gt extends _e {
|
|
|
27459
27463
|
letterSpacing: t.letterSpacing ?? 0
|
|
27460
27464
|
};
|
|
27461
27465
|
if (t.fill && typeof t.fill == "object" && t.fill.type === "gradient") {
|
|
27462
|
-
const a = new
|
|
27466
|
+
const a = new Bt(
|
|
27463
27467
|
t.fill.x0,
|
|
27464
27468
|
t.fill.y0,
|
|
27465
27469
|
t.fill.x1,
|
|
@@ -27470,7 +27474,7 @@ class Gt extends _e {
|
|
|
27470
27474
|
a.addColorStop(h, d);
|
|
27471
27475
|
}), o.fill = { fill: a };
|
|
27472
27476
|
} else {
|
|
27473
|
-
const { color: a, alpha: h } =
|
|
27477
|
+
const { color: a, alpha: h } = ve(
|
|
27474
27478
|
t.fill
|
|
27475
27479
|
);
|
|
27476
27480
|
o.fill = a, h < 1 && (o.fillAlpha = h);
|
|
@@ -27576,7 +27580,7 @@ class Gt extends _e {
|
|
|
27576
27580
|
return a.left = t.left, a.top = t.top, a.width = t.width, a.height = t.height, a.angle = t.angle, a.display.from = t.display.from, a.display.to = t.display.to, a.duration = t.duration, a.playbackRate = t.playbackRate, a.zIndex = t.zIndex, a.opacity = t.opacity, a.flip = t.flip, t.animation && a.setAnimation(t.animation.keyFrames, t.animation.opts), t.id && (a.id = t.id), t.effects && (a.effects = t.effects), await a.ready, a;
|
|
27577
27581
|
}
|
|
27578
27582
|
}
|
|
27579
|
-
class
|
|
27583
|
+
class Ht extends _e {
|
|
27580
27584
|
type = "Effect";
|
|
27581
27585
|
ready;
|
|
27582
27586
|
_meta = {
|
|
@@ -27604,7 +27608,7 @@ class Vt extends _e {
|
|
|
27604
27608
|
}, this.ready = Promise.resolve(this._meta), this.duration = this._meta.duration;
|
|
27605
27609
|
}
|
|
27606
27610
|
async clone() {
|
|
27607
|
-
const t = new
|
|
27611
|
+
const t = new Ht(this.effect.key);
|
|
27608
27612
|
return this.copyStateTo(t), t.id = this.id, t;
|
|
27609
27613
|
}
|
|
27610
27614
|
// EffectClip is invisible, so it returns empty/dummy data
|
|
@@ -27633,7 +27637,7 @@ class Vt extends _e {
|
|
|
27633
27637
|
static async fromObject(t) {
|
|
27634
27638
|
if (t.type !== "Effect")
|
|
27635
27639
|
throw new Error(`Expected Effect, got ${t.type}`);
|
|
27636
|
-
const e = new
|
|
27640
|
+
const e = new Ht(t.effect.key);
|
|
27637
27641
|
return e.effect = t.effect, e.left = t.left, e.top = t.top, e.width = t.width, e.height = t.height, e.angle = t.angle, e.display.from = t.display.from, e.display.to = t.display.to, e.duration = t.duration, e.playbackRate = t.playbackRate, e.zIndex = t.zIndex, e.opacity = t.opacity, e.flip = t.flip, t.animation && e.setAnimation(t.animation.keyFrames, t.animation.opts), t.id && (e.id = t.id), await e.ready, e;
|
|
27638
27642
|
}
|
|
27639
27643
|
}
|
|
@@ -28408,11 +28412,11 @@ void main(void)
|
|
|
28408
28412
|
|
|
28409
28413
|
gl_FragColor = vec4(col, base.a);
|
|
28410
28414
|
}
|
|
28411
|
-
`,
|
|
28415
|
+
`, zm = {
|
|
28412
28416
|
uTime: { value: 0, type: "f32" },
|
|
28413
28417
|
glitchStrength: { value: 0.02, type: "f32" },
|
|
28414
28418
|
glitchSpeed: { value: 2, type: "f32" }
|
|
28415
|
-
},
|
|
28419
|
+
}, Bm = `
|
|
28416
28420
|
precision highp float;
|
|
28417
28421
|
|
|
28418
28422
|
varying vec2 vTextureCoord;
|
|
@@ -28570,13 +28574,13 @@ void main(void)
|
|
|
28570
28574
|
|
|
28571
28575
|
gl_FragColor = color;
|
|
28572
28576
|
}
|
|
28573
|
-
`,
|
|
28577
|
+
`, Hm = {
|
|
28574
28578
|
uTime: { value: 0, type: "f32" },
|
|
28575
28579
|
shineColor: { value: [1, 1, 1], type: "vec3<f32>" },
|
|
28576
28580
|
rayWidth: { value: 0.05, type: "f32" },
|
|
28577
28581
|
rayCount: { value: 12, type: "f32" },
|
|
28578
28582
|
rotationSpeed: { value: 0.5, type: "f32" }
|
|
28579
|
-
},
|
|
28583
|
+
}, Vm = `
|
|
28580
28584
|
in vec2 vTextureCoord;
|
|
28581
28585
|
in vec4 vColor;
|
|
28582
28586
|
|
|
@@ -29483,10 +29487,10 @@ void main() {
|
|
|
29483
29487
|
|
|
29484
29488
|
gl_FragColor = vec4(color.rgb * mask, color.a * mask);
|
|
29485
29489
|
}
|
|
29486
|
-
`,
|
|
29490
|
+
`, z0 = {
|
|
29487
29491
|
uTime: { value: 0, type: "f32" },
|
|
29488
29492
|
softness: { value: 0.2, type: "f32" }
|
|
29489
|
-
},
|
|
29493
|
+
}, B0 = `
|
|
29490
29494
|
precision highp float;
|
|
29491
29495
|
|
|
29492
29496
|
in vec2 vTextureCoord;
|
|
@@ -29715,12 +29719,12 @@ void main() {
|
|
|
29715
29719
|
|
|
29716
29720
|
gl_FragColor = vec4(color, 1.0);
|
|
29717
29721
|
}
|
|
29718
|
-
`,
|
|
29722
|
+
`, H0 = {
|
|
29719
29723
|
uTime: { value: 0, type: "f32" },
|
|
29720
29724
|
framesPerScreen: { value: 2, type: "f32" },
|
|
29721
29725
|
scrollSpeed: { value: 0.35, type: "f32" },
|
|
29722
29726
|
gateWeave: { value: 0.6, type: "f32" }
|
|
29723
|
-
},
|
|
29727
|
+
}, V0 = `
|
|
29724
29728
|
precision highp float;
|
|
29725
29729
|
|
|
29726
29730
|
in vec2 vTextureCoord;
|
|
@@ -30853,10 +30857,10 @@ void main() {
|
|
|
30853
30857
|
gl_FragColor = vec4(colorValue, centerTex.a);
|
|
30854
30858
|
}
|
|
30855
30859
|
|
|
30856
|
-
`,
|
|
30860
|
+
`, zg = {
|
|
30857
30861
|
uThickness: { value: 1.5, type: "f32" },
|
|
30858
30862
|
uOutlineColor: { value: [1, 1, 1], type: "vec3<f32>" }
|
|
30859
|
-
},
|
|
30863
|
+
}, Bg = `
|
|
30860
30864
|
precision highp float;
|
|
30861
30865
|
|
|
30862
30866
|
varying vec2 vTextureCoord;
|
|
@@ -31026,11 +31030,11 @@ void main() {
|
|
|
31026
31030
|
|
|
31027
31031
|
gl_FragColor = vec4(color, tex.a);
|
|
31028
31032
|
}
|
|
31029
|
-
`,
|
|
31033
|
+
`, Hg = {
|
|
31030
31034
|
uExposure: { value: 1.2, type: "f32" },
|
|
31031
31035
|
uSaturation: { value: 4.3, type: "f32" },
|
|
31032
31036
|
uContrast: { value: 2.2, type: "f32" }
|
|
31033
|
-
},
|
|
31037
|
+
}, Vg = `
|
|
31034
31038
|
precision highp float;
|
|
31035
31039
|
|
|
31036
31040
|
varying vec2 vTextureCoord;
|
|
@@ -31297,11 +31301,11 @@ void main() {
|
|
|
31297
31301
|
rgbGlitch: {
|
|
31298
31302
|
label: "RGB Glitch",
|
|
31299
31303
|
fragment: Um,
|
|
31300
|
-
uniforms:
|
|
31304
|
+
uniforms: zm
|
|
31301
31305
|
},
|
|
31302
31306
|
rgbShift: {
|
|
31303
31307
|
label: "RGB Shift",
|
|
31304
|
-
fragment:
|
|
31308
|
+
fragment: Bm,
|
|
31305
31309
|
uniforms: Dm
|
|
31306
31310
|
},
|
|
31307
31311
|
halftone: {
|
|
@@ -31317,11 +31321,11 @@ void main() {
|
|
|
31317
31321
|
shine: {
|
|
31318
31322
|
label: "Shine",
|
|
31319
31323
|
fragment: Wm,
|
|
31320
|
-
uniforms:
|
|
31324
|
+
uniforms: Hm
|
|
31321
31325
|
},
|
|
31322
31326
|
blink: {
|
|
31323
31327
|
label: "Blink",
|
|
31324
|
-
fragment:
|
|
31328
|
+
fragment: Vm,
|
|
31325
31329
|
uniforms: Ym
|
|
31326
31330
|
},
|
|
31327
31331
|
spring: {
|
|
@@ -31432,11 +31436,11 @@ void main() {
|
|
|
31432
31436
|
twoCurtain: {
|
|
31433
31437
|
label: "Two Curtain",
|
|
31434
31438
|
fragment: U0,
|
|
31435
|
-
uniforms:
|
|
31439
|
+
uniforms: z0
|
|
31436
31440
|
},
|
|
31437
31441
|
trianglePattern: {
|
|
31438
31442
|
label: "Triangle Pattern",
|
|
31439
|
-
fragment:
|
|
31443
|
+
fragment: B0,
|
|
31440
31444
|
uniforms: D0
|
|
31441
31445
|
},
|
|
31442
31446
|
mirrorTile: {
|
|
@@ -31452,11 +31456,11 @@ void main() {
|
|
|
31452
31456
|
filmStripPro: {
|
|
31453
31457
|
label: "Film Strip Pro",
|
|
31454
31458
|
fragment: W0,
|
|
31455
|
-
uniforms:
|
|
31459
|
+
uniforms: H0
|
|
31456
31460
|
},
|
|
31457
31461
|
badSignal: {
|
|
31458
31462
|
label: "Bad Signal",
|
|
31459
|
-
fragment:
|
|
31463
|
+
fragment: V0,
|
|
31460
31464
|
uniforms: Y0
|
|
31461
31465
|
},
|
|
31462
31466
|
omniflexion: {
|
|
@@ -31567,11 +31571,11 @@ void main() {
|
|
|
31567
31571
|
igOutline: {
|
|
31568
31572
|
label: "IG Outline",
|
|
31569
31573
|
fragment: Ug,
|
|
31570
|
-
uniforms:
|
|
31574
|
+
uniforms: zg
|
|
31571
31575
|
},
|
|
31572
31576
|
randomAccents: {
|
|
31573
31577
|
label: "Random Accents",
|
|
31574
|
-
fragment:
|
|
31578
|
+
fragment: Bg,
|
|
31575
31579
|
uniforms: Dg
|
|
31576
31580
|
},
|
|
31577
31581
|
solution: {
|
|
@@ -31587,11 +31591,11 @@ void main() {
|
|
|
31587
31591
|
hdr: {
|
|
31588
31592
|
label: "HDR",
|
|
31589
31593
|
fragment: Wg,
|
|
31590
|
-
uniforms:
|
|
31594
|
+
uniforms: Hg
|
|
31591
31595
|
},
|
|
31592
31596
|
blackFlash: {
|
|
31593
31597
|
label: "Black Flash",
|
|
31594
|
-
fragment:
|
|
31598
|
+
fragment: Vg,
|
|
31595
31599
|
uniforms: Yg
|
|
31596
31600
|
},
|
|
31597
31601
|
brightPulse: {
|
|
@@ -31706,7 +31710,7 @@ class oi {
|
|
|
31706
31710
|
);
|
|
31707
31711
|
return;
|
|
31708
31712
|
}
|
|
31709
|
-
this.pixiSprite == null ? (this.pixiSprite = new _t(t), this.pixiSprite.label = "MainSprite", this.root = new
|
|
31713
|
+
this.pixiSprite == null ? (this.pixiSprite = new _t(t), this.pixiSprite.label = "MainSprite", this.root = new ot(), this.root.addChild(this.pixiSprite), this.targetContainer?.addChild(this.root), this.applySpriteTransforms()) : this.pixiSprite.texture = t, this.root != null && (this.root.visible = !0, this.applySpriteTransforms());
|
|
31710
31714
|
return;
|
|
31711
31715
|
}
|
|
31712
31716
|
if (t.width === 0 || t.height === 0) {
|
|
@@ -31723,7 +31727,7 @@ class oi {
|
|
|
31723
31727
|
console.error("PixiSpriteRenderer: Failed to create valid texture");
|
|
31724
31728
|
return;
|
|
31725
31729
|
}
|
|
31726
|
-
this.pixiSprite == null ? (this.pixiSprite = new _t(this.texture), this.pixiSprite.label = "MainSprite", this.root = new
|
|
31730
|
+
this.pixiSprite == null ? (this.pixiSprite = new _t(this.texture), this.pixiSprite.label = "MainSprite", this.root = new ot(), this.root.addChild(this.pixiSprite), this.targetContainer?.addChild(this.root), this.applySpriteTransforms()) : this.pixiSprite.texture = this.texture;
|
|
31727
31731
|
}
|
|
31728
31732
|
if (this.context.clearRect(0, 0, this.canvas.width, this.canvas.height), this.context.drawImage(t, 0, 0), this.texture != null && this.texture.source != null) {
|
|
31729
31733
|
const o = this.texture.source;
|
|
@@ -31759,7 +31763,7 @@ class oi {
|
|
|
31759
31763
|
e,
|
|
31760
31764
|
r,
|
|
31761
31765
|
Math.min(o, e / 2, r / 2)
|
|
31762
|
-
), this.maskGraphics.fill({ color: 16777215, alpha: 1 }), this.maskGraphics.visible = !0) : this.maskGraphics && (this.maskGraphics.visible = !1, this.pixiSprite.mask = null), this.applyStroke(t, e, r), this.applyShadow(t);
|
|
31766
|
+
), this.maskGraphics.fill({ color: 16777215, alpha: 1 }), this.maskGraphics.visible = !0) : this.maskGraphics && (this.maskGraphics.visible = !1, this.pixiSprite.mask = null), this.sprite.type !== "Text" && this.sprite.type !== "Caption" ? this.applyStroke(t, e, r) : this.strokeGraphics && (this.strokeGraphics.visible = !1), this.applyShadow(t);
|
|
31763
31767
|
}
|
|
31764
31768
|
applyStroke(t, e, r) {
|
|
31765
31769
|
const o = t.stroke;
|
|
@@ -31792,7 +31796,7 @@ class oi {
|
|
|
31792
31796
|
applyShadow(t) {
|
|
31793
31797
|
const e = t.dropShadow, r = Math.abs(this.sprite.width ?? 0), o = Math.abs(this.sprite.height ?? 0);
|
|
31794
31798
|
if (e && r > 0 && o > 0 && (e.blur > 0 || e.distance > 0)) {
|
|
31795
|
-
this.shadowContainer == null && (this.shadowContainer = new
|
|
31799
|
+
this.shadowContainer == null && (this.shadowContainer = new ot(), this.shadowContainer.label = "ShadowContainer", this.shadowGraphics = new ut(), this.shadowContainer.addChild(this.shadowGraphics), this.root.addChildAt(this.shadowContainer, 0));
|
|
31796
31800
|
const a = dt(e.color) ?? 0, h = e.alpha ?? 0.5, l = e.blur ?? 0, d = e.distance ?? 0, p = e.angle ?? 0, m = Math.cos(p) * d, v = Math.sin(p) * d;
|
|
31797
31801
|
this.shadowContainer.position.set(m, v), this.shadowGraphics.clear();
|
|
31798
31802
|
const y = t.borderRadius || 0;
|
|
@@ -31806,15 +31810,12 @@ class oi {
|
|
|
31806
31810
|
_
|
|
31807
31811
|
);
|
|
31808
31812
|
} else
|
|
31809
|
-
this.shadowGraphics.rect(
|
|
31810
|
-
-r / 2,
|
|
31811
|
-
-o / 2,
|
|
31812
|
-
r,
|
|
31813
|
-
o
|
|
31814
|
-
);
|
|
31813
|
+
this.shadowGraphics.rect(-r / 2, -o / 2, r, o);
|
|
31815
31814
|
if (this.shadowGraphics.fill({ color: a, alpha: h }), l > 0) {
|
|
31816
31815
|
(!this.shadowContainer.filters || this.shadowContainer.filters.length === 0) && (this.shadowContainer.filters = [new vl()]);
|
|
31817
|
-
const _ = this.shadowContainer.filters[0], n = this.root ? Math.sqrt(
|
|
31816
|
+
const _ = this.shadowContainer.filters[0], n = this.root ? Math.sqrt(
|
|
31817
|
+
this.root.worldTransform.a ** 2 + this.root.worldTransform.b ** 2
|
|
31818
|
+
) : 1;
|
|
31818
31819
|
_.strength = l * n, _.resolution = this.resolution, _.padding = Math.max(l * 2 * n, 20);
|
|
31819
31820
|
} else
|
|
31820
31821
|
this.shadowContainer.filters = [];
|
|
@@ -31853,10 +31854,10 @@ async function Ji(s) {
|
|
|
31853
31854
|
e = Gt;
|
|
31854
31855
|
break;
|
|
31855
31856
|
case "Caption":
|
|
31856
|
-
e =
|
|
31857
|
+
e = ae;
|
|
31857
31858
|
break;
|
|
31858
31859
|
case "Effect":
|
|
31859
|
-
e =
|
|
31860
|
+
e = Ht;
|
|
31860
31861
|
break;
|
|
31861
31862
|
case "Transition":
|
|
31862
31863
|
e = _i;
|
|
@@ -31946,11 +31947,11 @@ async function Ji(s) {
|
|
|
31946
31947
|
h.words && (a.words = h.words), h.colors && (h.colors.appeared !== void 0 && (a.appearedColor = h.colors.appeared), h.colors.active !== void 0 && (a.activeColor = h.colors.active), h.colors.activeFill !== void 0 && (a.activeFillColor = h.colors.activeFill), h.colors.background !== void 0 && (a.backgroundColor = h.colors.background), h.colors.keyword !== void 0 && (a.isKeyWordColor = h.colors.keyword)), h.preserveKeywordColor !== void 0 && (a.preservedColorKeyWord = h.preserveKeywordColor), h.positioning && (h.positioning.bottomOffset !== void 0 && (a.bottomOffset = h.positioning.bottomOffset), h.positioning.videoWidth !== void 0 && (a.videoWidth = h.positioning.videoWidth), h.positioning.videoHeight !== void 0 && (a.videoHeight = h.positioning.videoHeight));
|
|
31947
31948
|
} else
|
|
31948
31949
|
s.bottomOffset !== void 0 && (a.bottomOffset = s.bottomOffset), s.words && (a.words = s.words), s.appearedColor !== void 0 && (a.appearedColor = s.appearedColor), s.activeColor !== void 0 && (a.activeColor = s.activeColor), s.activeFillColor !== void 0 && (a.activeFillColor = s.activeFillColor), s.backgroundColor !== void 0 && (a.backgroundColor = s.backgroundColor), s.isKeyWordColor !== void 0 && (a.isKeyWordColor = s.isKeyWordColor), s.preservedColorKeyWord !== void 0 && (a.preservedColorKeyWord = s.preservedColorKeyWord), s.videoWidth !== void 0 && (a.videoWidth = s.videoWidth), s.videoHeight !== void 0 && (a.videoHeight = s.videoHeight);
|
|
31949
|
-
t = new
|
|
31950
|
+
t = new ae(r, a);
|
|
31950
31951
|
break;
|
|
31951
31952
|
}
|
|
31952
31953
|
case "Effect": {
|
|
31953
|
-
t = new
|
|
31954
|
+
t = new Ht(s.effect.key), t.effect = s.effect;
|
|
31954
31955
|
break;
|
|
31955
31956
|
}
|
|
31956
31957
|
default:
|
|
@@ -34937,7 +34938,7 @@ vec4 transition (vec2 uv) {
|
|
|
34937
34938
|
`, Uv = {
|
|
34938
34939
|
steps: { value: 50, type: "i32" },
|
|
34939
34940
|
horizontalHexagons: { value: 20, type: "f32" }
|
|
34940
|
-
},
|
|
34941
|
+
}, zv = `
|
|
34941
34942
|
float inHeart (vec2 p, vec2 center, float size) {
|
|
34942
34943
|
if (size==0.0) return 0.0;
|
|
34943
34944
|
vec2 o = (p-center)/(1.6*size);
|
|
@@ -34953,7 +34954,7 @@ vec4 transition (vec2 uv) {
|
|
|
34953
34954
|
inHeart(uv, vec2(0.5, 0.5), progress)
|
|
34954
34955
|
);
|
|
34955
34956
|
}
|
|
34956
|
-
`,
|
|
34957
|
+
`, Bv = {
|
|
34957
34958
|
// No custom uniforms needed, uses progress from basics
|
|
34958
34959
|
}, Dv = `
|
|
34959
34960
|
uniform sampler2D displacementMap;
|
|
@@ -35006,7 +35007,7 @@ vec4 transition (vec2 uv) {
|
|
|
35006
35007
|
}
|
|
35007
35008
|
`, Wv = {
|
|
35008
35009
|
direction: { value: [-1, 1], type: "vec2<f32>" }
|
|
35009
|
-
},
|
|
35010
|
+
}, Hv = `
|
|
35010
35011
|
uniform float threshold; // = 3.0
|
|
35011
35012
|
uniform float fadeEdge; // = 0.1
|
|
35012
35013
|
|
|
@@ -35021,7 +35022,7 @@ vec4 transition(vec2 p) {
|
|
|
35021
35022
|
float r = progress - min(rand(vec2(p.y, 0.0)), rand(vec2(0.0, p.x)));
|
|
35022
35023
|
return mix(getFromColor(p), getToColor(p), mix(0.0, mix(step(dist, r), 1.0, smoothstep(1.0-fadeEdge, 1.0, progress)), smoothstep(0.0, fadeEdge, progress)));
|
|
35023
35024
|
}
|
|
35024
|
-
`,
|
|
35025
|
+
`, Vv = {
|
|
35025
35026
|
threshold: { value: 3, type: "f32" },
|
|
35026
35027
|
fadeEdge: { value: 0.1, type: "f32" }
|
|
35027
35028
|
}, Yv = `
|
|
@@ -35581,7 +35582,7 @@ function Il({ name: s, renderer: t }) {
|
|
|
35581
35582
|
Object.entries(v).forEach(([, D]) => {
|
|
35582
35583
|
D.type === "int<f32>" && (D.type = "i32", typeof D.value == "number" && (D.value = Math.trunc(D.value))), D.type === "ivec2<f32>" && (D.type = "vec2<f32>");
|
|
35583
35584
|
});
|
|
35584
|
-
const y = e.name === "GridFlip" || s.toLowerCase() === "gridflip" || e.label === "gridflip", _ = e.name === "circle" || s.toLowerCase() === "circle" || e.label === "circle", n = e.name === "directional" || s.toLowerCase() === "directional" || e.label === "directional", c = e.name === "UndulatingBurnOut" || s.toLowerCase() === "undulatingburnout" || e.label === "undulatingBurnOut", u = e.name === "SquaresWire" || s.toLowerCase() === "squareswire" || e.label === "squaresWire", f = e.name === "rotate_scale_fade" || s.toLowerCase() === "rotatescalefade" || e.label === "rotateScaleFade", g = e.name === "RandomSquares" || s.toLowerCase() === "randomsquares" || e.label === "randomSquares", x = e.name === "polar_function" || s.toLowerCase() === "polar_function" || e.label === "polar_function", b = e.name === "pixelate" || s.toLowerCase() === "pixelate" || e.label === "pixelate", w = e.name === "perlin" || s.toLowerCase() === "perlin" || e.label === "perlin", T = e.name === "luma" || s.toLowerCase() === "luma" || e.label === "luma", S = e.name === "luminance_melt" || s.toLowerCase() === "luminance_melt" || s.toLowerCase() === "luminancemelt" || e.label === "luminance_melt", A = e.name === "hexagonalize" || s.toLowerCase() === "hexagonalize" || e.label === "hexagonalize", I = e.name === "heart" || s.toLowerCase() === "heart" || e.label === "heart", E = e.name === "displacement" || s.toLowerCase() === "displacement" || e.label === "displacement", C = e.name === "directionalwipe" || s.toLowerCase() === "directionalwipe" || s.toLowerCase() === "directional_wipe" || e.label === "directionalwipe",
|
|
35585
|
+
const y = e.name === "GridFlip" || s.toLowerCase() === "gridflip" || e.label === "gridflip", _ = e.name === "circle" || s.toLowerCase() === "circle" || e.label === "circle", n = e.name === "directional" || s.toLowerCase() === "directional" || e.label === "directional", c = e.name === "UndulatingBurnOut" || s.toLowerCase() === "undulatingburnout" || e.label === "undulatingBurnOut", u = e.name === "SquaresWire" || s.toLowerCase() === "squareswire" || e.label === "squaresWire", f = e.name === "rotate_scale_fade" || s.toLowerCase() === "rotatescalefade" || e.label === "rotateScaleFade", g = e.name === "RandomSquares" || s.toLowerCase() === "randomsquares" || e.label === "randomSquares", x = e.name === "polar_function" || s.toLowerCase() === "polar_function" || e.label === "polar_function", b = e.name === "pixelate" || s.toLowerCase() === "pixelate" || e.label === "pixelate", w = e.name === "perlin" || s.toLowerCase() === "perlin" || e.label === "perlin", T = e.name === "luma" || s.toLowerCase() === "luma" || e.label === "luma", S = e.name === "luminance_melt" || s.toLowerCase() === "luminance_melt" || s.toLowerCase() === "luminancemelt" || e.label === "luminance_melt", A = e.name === "hexagonalize" || s.toLowerCase() === "hexagonalize" || e.label === "hexagonalize", I = e.name === "heart" || s.toLowerCase() === "heart" || e.label === "heart", E = e.name === "displacement" || s.toLowerCase() === "displacement" || e.label === "displacement", C = e.name === "directionalwipe" || s.toLowerCase() === "directionalwipe" || s.toLowerCase() === "directional_wipe" || e.label === "directionalwipe", F = e.name === "directionalwarp" || s.toLowerCase() === "directionalwarp" || s.toLowerCase() === "directional_warp" || e.label === "directionalwarp", P = e.name === "crosshatch" || s.toLowerCase() === "crosshatch" || e.label === "crosshatch", L = e.name === "circleopen" || s.toLowerCase() === "circleopen" || s.toLowerCase() === "circle_open" || e.label === "circleopen", Z = e.name === "cannabisleaf" || s.toLowerCase() === "cannabisleaf" || s.toLowerCase() === "cannabis_leaf" || e.label === "cannabisleaf", M = e.name === "StereoViewer" || s.toLowerCase() === "stereoviewer" || s.toLowerCase() === "stereo_viewer" || e.label === "StereoViewer", k = e.name === "GlitchDisplace" || s.toLowerCase() === "glitchDisplace" || e.label === "GlitchDisplace", H = e.name === "CrossZoom" || s.toLowerCase() === "crosszoom" || e.label === "CrossZoom", R = e.name === "CrazyParametricFun" || s.toLowerCase() === "crazyparametricfun" || e.label === "CrazyParametricFun", Y = e.name === "BowTieHorizontal" || s.toLowerCase() === "bowtiehorizontal" || e.label === "BowTieHorizontal", K = e.name === "PolkaDotsCurtain" || s.toLowerCase() === "polkadotscurtain" || e.label === "PolkaDotsCurtain", X = e.name === "Pixelize" || s.toLowerCase() === "pixelize" || e.label === "Pixelize";
|
|
35585
35586
|
y && (m = hv, v = {
|
|
35586
35587
|
...Q.basics,
|
|
35587
35588
|
...uv
|
|
@@ -35621,21 +35622,21 @@ function Il({ name: s, renderer: t }) {
|
|
|
35621
35622
|
}), A && (m = Rv, v = {
|
|
35622
35623
|
...Q.basics,
|
|
35623
35624
|
...Uv
|
|
35624
|
-
}), I && (m =
|
|
35625
|
+
}), I && (m = zv, v = {
|
|
35625
35626
|
...Q.basics,
|
|
35626
|
-
...
|
|
35627
|
+
...Bv
|
|
35627
35628
|
}), E && (m = Dv, v = {
|
|
35628
35629
|
...Q.basics,
|
|
35629
35630
|
...Lv
|
|
35630
35631
|
}), C && (m = Ov, v = {
|
|
35631
35632
|
...Q.basics,
|
|
35632
35633
|
...Nv
|
|
35633
|
-
}),
|
|
35634
|
+
}), F && (m = Gv, v = {
|
|
35634
35635
|
...Q.basics,
|
|
35635
35636
|
...Wv
|
|
35636
|
-
}), P && (m =
|
|
35637
|
+
}), P && (m = Hv, v = {
|
|
35637
35638
|
...Q.basics,
|
|
35638
|
-
...
|
|
35639
|
+
...Vv
|
|
35639
35640
|
}), L && (m = Yv, v = {
|
|
35640
35641
|
...Q.basics,
|
|
35641
35642
|
...Co
|
|
@@ -35645,7 +35646,7 @@ function Il({ name: s, renderer: t }) {
|
|
|
35645
35646
|
}), M && (m = qv, v = {
|
|
35646
35647
|
...Q.basics,
|
|
35647
35648
|
...Zv
|
|
35648
|
-
}),
|
|
35649
|
+
}), k && (m = Kv), H && (m = Jv, v = {
|
|
35649
35650
|
...Q.basics,
|
|
35650
35651
|
...jv
|
|
35651
35652
|
}), R && (m = Qv, v = {
|
|
@@ -35655,18 +35656,18 @@ function Il({ name: s, renderer: t }) {
|
|
|
35655
35656
|
...Q.basics,
|
|
35656
35657
|
...Av
|
|
35657
35658
|
});
|
|
35658
|
-
const
|
|
35659
|
+
const z = {
|
|
35659
35660
|
from: a,
|
|
35660
35661
|
to: h,
|
|
35661
35662
|
uniforms: v
|
|
35662
35663
|
};
|
|
35663
|
-
l && d && (
|
|
35664
|
+
l && d && (z.displacementMap = d, p && (d.resource = p, d.update()));
|
|
35664
35665
|
const vt = new hr({
|
|
35665
35666
|
glProgram: new Ne({
|
|
35666
35667
|
vertex: ov,
|
|
35667
35668
|
fragment: lv(m)
|
|
35668
35669
|
}),
|
|
35669
|
-
resources:
|
|
35670
|
+
resources: z
|
|
35670
35671
|
});
|
|
35671
35672
|
return r.filters = [vt], {
|
|
35672
35673
|
render({ width: D, height: $, from: st, to: pt, progress: be }) {
|
|
@@ -36015,7 +36016,7 @@ function ny(s) {
|
|
|
36015
36016
|
T.display.from < w.display.from && (T instanceof ft || T instanceof gt)
|
|
36016
36017
|
).sort((T, S) => S.display.to - T.display.to)[0] || null, _ = async (w, T, S) => {
|
|
36017
36018
|
let A = null;
|
|
36018
|
-
if (w.transition?.prevClipId && (A = e.find((
|
|
36019
|
+
if (w.transition?.prevClipId && (A = e.find((F) => F.id === w.transition.prevClipId) || null), A || (A = y(w)), !A) return null;
|
|
36019
36020
|
const I = A.duration > 0 ? A.duration : 0, E = Math.max(
|
|
36020
36021
|
0,
|
|
36021
36022
|
Math.min(T - A.display.from, I)
|
|
@@ -36032,8 +36033,8 @@ function ny(s) {
|
|
|
36032
36033
|
T instanceof O ? T : O.from(T)
|
|
36033
36034
|
);
|
|
36034
36035
|
A.x = w.center.x, A.y = w.center.y, A.anchor.set(0.5, 0.5);
|
|
36035
|
-
const I = A.texture.width || 1, E = A.texture.height || 1, C = w.width && w.width !== 0 ? Math.abs(w.width) / I : 1,
|
|
36036
|
-
w.flip === "horizontal" ? (A.scale.x = -C, A.scale.y =
|
|
36036
|
+
const I = A.texture.width || 1, E = A.texture.height || 1, C = w.width && w.width !== 0 ? Math.abs(w.width) / I : 1, F = w.height && w.height !== 0 ? Math.abs(w.height) / E : 1;
|
|
36037
|
+
w.flip === "horizontal" ? (A.scale.x = -C, A.scale.y = F) : w.flip === "vertical" ? (A.scale.x = C, A.scale.y = -F) : (A.scale.x = C, A.scale.y = F), A.rotation = (w.flip == null ? 1 : -1) * w.angle, A.alpha = w.opacity;
|
|
36037
36038
|
const P = w.style || {}, L = P.borderRadius || 0;
|
|
36038
36039
|
let Z = null;
|
|
36039
36040
|
L > 0 && (Z = new ut(), Z.roundRect(
|
|
@@ -36044,17 +36045,17 @@ function ny(s) {
|
|
|
36044
36045
|
Math.min(L, I / 2, E / 2)
|
|
36045
36046
|
), Z.fill({ color: 16777215, alpha: 1 }), A.addChild(Z), A.mask = Z);
|
|
36046
36047
|
const M = P.stroke;
|
|
36047
|
-
let
|
|
36048
|
+
let k = null;
|
|
36048
36049
|
if (M && M.width > 0) {
|
|
36049
|
-
|
|
36050
|
+
k = new ut();
|
|
36050
36051
|
const Y = dt(M.color) ?? 16777215, K = M.width;
|
|
36051
|
-
if (
|
|
36052
|
+
if (k.setStrokeStyle({
|
|
36052
36053
|
width: K,
|
|
36053
36054
|
color: Y,
|
|
36054
36055
|
alignment: 1
|
|
36055
36056
|
}), L > 0) {
|
|
36056
36057
|
const X = Math.min(L, I / 2, E / 2);
|
|
36057
|
-
|
|
36058
|
+
k.roundRect(
|
|
36058
36059
|
-I / 2,
|
|
36059
36060
|
-E / 2,
|
|
36060
36061
|
I,
|
|
@@ -36062,19 +36063,19 @@ function ny(s) {
|
|
|
36062
36063
|
X
|
|
36063
36064
|
);
|
|
36064
36065
|
} else
|
|
36065
|
-
|
|
36066
|
+
k.rect(
|
|
36066
36067
|
-I / 2,
|
|
36067
36068
|
-E / 2,
|
|
36068
36069
|
I,
|
|
36069
36070
|
E
|
|
36070
36071
|
);
|
|
36071
|
-
|
|
36072
|
+
k.stroke(), A.addChild(k);
|
|
36072
36073
|
}
|
|
36073
|
-
const
|
|
36074
|
+
const H = P.dropShadow;
|
|
36074
36075
|
let R = null;
|
|
36075
|
-
if (
|
|
36076
|
+
if (H && (H.blur > 0 || H.distance > 0)) {
|
|
36076
36077
|
R = new ut();
|
|
36077
|
-
const Y = dt(
|
|
36078
|
+
const Y = dt(H.color) ?? 0, K = H.alpha ?? 0.5, X = H.distance ?? 0, z = H.angle ?? 0, vt = Math.cos(z) * X, D = Math.sin(z) * X;
|
|
36078
36079
|
if (L > 0) {
|
|
36079
36080
|
const $ = Math.min(L, I / 2, E / 2);
|
|
36080
36081
|
R.roundRect(
|
|
@@ -36097,18 +36098,18 @@ function ny(s) {
|
|
|
36097
36098
|
container: A,
|
|
36098
36099
|
target: S,
|
|
36099
36100
|
clear: !1
|
|
36100
|
-
}), T instanceof O || A.texture.destroy(!0),
|
|
36101
|
+
}), T instanceof O || A.texture.destroy(!0), k && k.destroy(), Z && Z.destroy(), R && R.destroy(), A.destroy();
|
|
36101
36102
|
};
|
|
36102
36103
|
let c = null, u = null, f = null;
|
|
36103
|
-
o && t != null && (c = new
|
|
36104
|
+
o && t != null && (c = new ot(), u = new ot(), f = new ot(), u.sortableChildren = !0, f.sortableChildren = !0, t.stage.addChild(u), t.stage.addChild(f), c.visible = !1, t.stage.addChild(c));
|
|
36104
36105
|
const g = [...e].sort((w, T) => w.zIndex - T.zIndex);
|
|
36105
36106
|
return { render: async (w) => {
|
|
36106
36107
|
const T = [];
|
|
36107
36108
|
let S = !1, A = !1;
|
|
36108
|
-
const I = /* @__PURE__ */ new Map(), E = async (C,
|
|
36109
|
-
const P = `${C.id}_${
|
|
36109
|
+
const I = /* @__PURE__ */ new Map(), E = async (C, F) => {
|
|
36110
|
+
const P = `${C.id}_${F}`;
|
|
36110
36111
|
if (I.has(P)) return I.get(P);
|
|
36111
|
-
const L = await C.getFrame(
|
|
36112
|
+
const L = await C.getFrame(F);
|
|
36112
36113
|
return I.set(P, L), L;
|
|
36113
36114
|
};
|
|
36114
36115
|
for (const C of l.values())
|
|
@@ -36117,23 +36118,23 @@ function ny(s) {
|
|
|
36117
36118
|
if (r.aborted) break;
|
|
36118
36119
|
if (w < C.display.from || C.expired) {
|
|
36119
36120
|
if (o && t != null) {
|
|
36120
|
-
const
|
|
36121
|
-
|
|
36121
|
+
const k = a.get(C);
|
|
36122
|
+
k && await k.updateFrame(null);
|
|
36122
36123
|
}
|
|
36123
36124
|
continue;
|
|
36124
36125
|
}
|
|
36125
|
-
const
|
|
36126
|
+
const F = w - C.display.from, P = F * C.playbackRate;
|
|
36126
36127
|
C.animate(P);
|
|
36127
|
-
const { video: L, audio: Z, done: M } = await E(C,
|
|
36128
|
+
const { video: L, audio: Z, done: M } = await E(C, F);
|
|
36128
36129
|
if (T.push(Z), o && t != null && u != null) {
|
|
36129
|
-
if ((C instanceof ft || C instanceof gt) && C.transition &&
|
|
36130
|
+
if ((C instanceof ft || C instanceof gt) && C.transition && F >= 0 && F <= C.transition.duration) {
|
|
36130
36131
|
const R = await _(
|
|
36131
36132
|
C,
|
|
36132
36133
|
w,
|
|
36133
36134
|
E
|
|
36134
36135
|
), Y = L;
|
|
36135
36136
|
if (R && Y) {
|
|
36136
|
-
const K =
|
|
36137
|
+
const K = F / C.transition.duration, X = y(C);
|
|
36137
36138
|
X ? n(
|
|
36138
36139
|
X,
|
|
36139
36140
|
R,
|
|
@@ -36143,12 +36144,12 @@ function ny(s) {
|
|
|
36143
36144
|
target: d,
|
|
36144
36145
|
clear: !0
|
|
36145
36146
|
}), n(C, Y, p);
|
|
36146
|
-
let
|
|
36147
|
-
|
|
36147
|
+
let z = h.get(C.id);
|
|
36148
|
+
z || (z = Il({
|
|
36148
36149
|
name: C.transition.name,
|
|
36149
36150
|
renderer: t.renderer
|
|
36150
|
-
}), h.set(C.id,
|
|
36151
|
-
const vt =
|
|
36151
|
+
}), h.set(C.id, z));
|
|
36152
|
+
const vt = z.render({
|
|
36152
36153
|
width: t.renderer.width,
|
|
36153
36154
|
height: t.renderer.height,
|
|
36154
36155
|
from: d,
|
|
@@ -36172,42 +36173,42 @@ function ny(s) {
|
|
|
36172
36173
|
continue;
|
|
36173
36174
|
}
|
|
36174
36175
|
}
|
|
36175
|
-
let
|
|
36176
|
-
|
|
36176
|
+
let H = a.get(C);
|
|
36177
|
+
H == null && L != null && (H = new oi(
|
|
36177
36178
|
t,
|
|
36178
36179
|
C,
|
|
36179
36180
|
u
|
|
36180
|
-
), a.set(C,
|
|
36181
|
+
), a.set(C, H)), H != null && (L != null ? (A = !0, await H.updateFrame(L)) : await H.updateFrame(null)), H?.updateTransforms();
|
|
36181
36182
|
}
|
|
36182
36183
|
if (C.duration > 0 && w > C.display.from + C.duration || M) {
|
|
36183
36184
|
if (C.main && (S = !0), C.expired = !0, o) {
|
|
36184
|
-
const
|
|
36185
|
-
if (
|
|
36186
|
-
const
|
|
36187
|
-
|
|
36185
|
+
const k = a.get(C);
|
|
36186
|
+
if (k != null) {
|
|
36187
|
+
const H = k.getRoot();
|
|
36188
|
+
H && (H.visible = !1);
|
|
36188
36189
|
}
|
|
36189
36190
|
}
|
|
36190
36191
|
} else if (o) {
|
|
36191
|
-
const
|
|
36192
|
-
|
|
36192
|
+
const k = a.get(C);
|
|
36193
|
+
k?.updateTransforms();
|
|
36193
36194
|
}
|
|
36194
36195
|
}
|
|
36195
36196
|
if (o && t != null && c != null && u != null && f != null) {
|
|
36196
36197
|
let C = null;
|
|
36197
|
-
for (const
|
|
36198
|
-
if (
|
|
36198
|
+
for (const F of e)
|
|
36199
|
+
if (F instanceof Ht && w >= F.display.from && w < F.display.from + F.duration) {
|
|
36199
36200
|
C = {
|
|
36200
|
-
id:
|
|
36201
|
-
key:
|
|
36202
|
-
startTime:
|
|
36203
|
-
duration:
|
|
36201
|
+
id: F.id,
|
|
36202
|
+
key: F.effect.key,
|
|
36203
|
+
startTime: F.display.from,
|
|
36204
|
+
duration: F.duration
|
|
36204
36205
|
};
|
|
36205
36206
|
break;
|
|
36206
36207
|
}
|
|
36207
36208
|
if (!C)
|
|
36208
|
-
for (const
|
|
36209
|
-
if (
|
|
36210
|
-
for (const P of
|
|
36209
|
+
for (const F of e) {
|
|
36210
|
+
if (F.effects && F.effects.length > 0) {
|
|
36211
|
+
for (const P of F.effects)
|
|
36211
36212
|
if (w >= P.startTime && w < P.startTime + P.duration) {
|
|
36212
36213
|
C = P;
|
|
36213
36214
|
break;
|
|
@@ -36216,17 +36217,17 @@ function ny(s) {
|
|
|
36216
36217
|
if (C) break;
|
|
36217
36218
|
}
|
|
36218
36219
|
f.removeChildren();
|
|
36219
|
-
for (const
|
|
36220
|
-
const P =
|
|
36220
|
+
for (const F of a.values()) {
|
|
36221
|
+
const P = F.getRoot();
|
|
36221
36222
|
P && P.parent !== u && (P.parent && P.parent.removeChild(P), u.addChild(P));
|
|
36222
36223
|
}
|
|
36223
36224
|
if (C) {
|
|
36224
|
-
const { key:
|
|
36225
|
-
(R) => R.id === Z && R instanceof
|
|
36225
|
+
const { key: F, startTime: P, duration: L, id: Z } = C, M = w - P, k = L > 0 ? Math.min(Math.max(M / L, 0), 1) : 0, H = e.some(
|
|
36226
|
+
(R) => R.id === Z && R instanceof Ht
|
|
36226
36227
|
);
|
|
36227
36228
|
for (const R of e) {
|
|
36228
36229
|
let Y = !1;
|
|
36229
|
-
if (
|
|
36230
|
+
if (H ? Y = R.id !== Z && !(R instanceof Ht) : Y = !!R.effects && R.effects.some((K) => K.id === Z), Y) {
|
|
36230
36231
|
const K = a.get(R);
|
|
36231
36232
|
if (K) {
|
|
36232
36233
|
const X = K.getRoot();
|
|
@@ -36239,17 +36240,17 @@ function ny(s) {
|
|
|
36239
36240
|
if (!R)
|
|
36240
36241
|
try {
|
|
36241
36242
|
const Y = Al({
|
|
36242
|
-
name:
|
|
36243
|
+
name: F,
|
|
36243
36244
|
renderer: t.renderer
|
|
36244
36245
|
});
|
|
36245
36246
|
Y && Y.filter && (R = { filter: Y.filter, render: Y.render }, v.set(Z, R));
|
|
36246
36247
|
} catch (Y) {
|
|
36247
|
-
console.warn("Failed to create effect",
|
|
36248
|
+
console.warn("Failed to create effect", F, Y);
|
|
36248
36249
|
}
|
|
36249
36250
|
if (R) {
|
|
36250
36251
|
const { filter: Y, render: K } = R;
|
|
36251
|
-
Y.resources && Y.resources.effectUniforms && (Y.resources.effectUniforms.uniforms.uTime =
|
|
36252
|
-
const X = t.renderer.width,
|
|
36252
|
+
Y.resources && Y.resources.effectUniforms && (Y.resources.effectUniforms.uniforms.uTime = k);
|
|
36253
|
+
const X = t.renderer.width, z = t.renderer.height, vt = wt.create({ width: X, height: z });
|
|
36253
36254
|
if (c.visible = !0, t.renderer.render({
|
|
36254
36255
|
container: c,
|
|
36255
36256
|
target: vt,
|
|
@@ -36257,11 +36258,11 @@ function ny(s) {
|
|
|
36257
36258
|
}), c.visible = !1, K) {
|
|
36258
36259
|
const D = K({
|
|
36259
36260
|
canvasTexture: vt,
|
|
36260
|
-
progress:
|
|
36261
|
+
progress: k,
|
|
36261
36262
|
width: X,
|
|
36262
|
-
height:
|
|
36263
|
+
height: z
|
|
36263
36264
|
}), $ = new _t(D);
|
|
36264
|
-
$.width = X, $.height =
|
|
36265
|
+
$.width = X, $.height = z, f.addChild($);
|
|
36265
36266
|
}
|
|
36266
36267
|
}
|
|
36267
36268
|
}
|
|
@@ -36354,8 +36355,8 @@ class ly extends ut {
|
|
|
36354
36355
|
super(), this.eventMode = "static", this.cursor = "move";
|
|
36355
36356
|
}
|
|
36356
36357
|
draw(t, e = 1) {
|
|
36357
|
-
const o = 1 * e;
|
|
36358
|
-
this.clear(), this.setStrokeStyle({ width: o, color:
|
|
36358
|
+
const o = 1.5 * e;
|
|
36359
|
+
this.clear(), this.setStrokeStyle({ width: o, color: 165063 }).rect(t.x, t.y, t.width, t.height).stroke(), this.hitArea = t;
|
|
36359
36360
|
}
|
|
36360
36361
|
}
|
|
36361
36362
|
class Qt extends ut {
|
|
@@ -36364,10 +36365,18 @@ class Qt extends ut {
|
|
|
36364
36365
|
cursor;
|
|
36365
36366
|
callbacks;
|
|
36366
36367
|
constructor(t, e, r) {
|
|
36367
|
-
super(), this.handle = t, this.cursor = e, this.callbacks = r, this.eventMode = "static", this.#o(), this.on("pointerdown", this.#e), this.on("globalpointermove", this.#r), this.on("pointerup", this.#
|
|
36368
|
+
super(), this.handle = t, this.cursor = e, this.callbacks = r, this.eventMode = "static", this.#o(), this.on("pointerdown", this.#e), this.on("globalpointermove", this.#r), this.on("pointerup", this.#a), this.on("pointerupoutside", this.#a);
|
|
36368
36369
|
}
|
|
36369
36370
|
#o() {
|
|
36370
|
-
this.clear()
|
|
36371
|
+
this.clear();
|
|
36372
|
+
const t = 165063;
|
|
36373
|
+
if (this.handle === "rot")
|
|
36374
|
+
this.circle(0, 0, 8), this.fill({ color: "#ffffff" }), this.stroke({ width: 1, color: 13421772 }), this.moveTo(0, -4), this.arc(0, 0, 4, -Math.PI / 2, Math.PI, !1), this.stroke({ width: 1, color: 0 }), this.moveTo(0, -8), this.lineTo(-3, -5), this.lineTo(0, -2), this.stroke({ width: 1, color: 0, cap: "round", join: "round" }), this.hitArea = new dr(0, 0, 24);
|
|
36375
|
+
else if (["ml", "mr", "mt", "mb"].includes(this.handle)) {
|
|
36376
|
+
const e = this.handle === "ml" || this.handle === "mr", r = e ? 6 : 24, o = e ? 24 : 6;
|
|
36377
|
+
this.roundRect(-r / 2, -o / 2, r, o, 3), this.fill({ color: "#ffffff" }), this.stroke({ width: 1, color: t }), this.hitArea = new G(-15, -15, 30, 30);
|
|
36378
|
+
} else
|
|
36379
|
+
this.rect(-4, -4, 8, 8), this.fill({ color: "#ffffff" }), this.stroke({ width: 1, color: t }), this.hitArea = new G(-15, -15, 30, 30);
|
|
36371
36380
|
}
|
|
36372
36381
|
#e = (t) => {
|
|
36373
36382
|
this.#t = !0, this.cursor = "grabbing", this.callbacks.beginDrag(this.handle, t.global), t.stopPropagation();
|
|
@@ -36375,26 +36384,26 @@ class Qt extends ut {
|
|
|
36375
36384
|
#r = (t) => {
|
|
36376
36385
|
this.#t && (this.callbacks.updateDrag(this.handle, t.global), t.stopPropagation());
|
|
36377
36386
|
};
|
|
36378
|
-
#
|
|
36387
|
+
#a = (t) => {
|
|
36379
36388
|
this.#t && (this.#t = !1, this.cursor = "pointer", this.callbacks.endDrag(), t.stopPropagation());
|
|
36380
36389
|
};
|
|
36381
36390
|
}
|
|
36382
36391
|
const Ao = {
|
|
36383
|
-
delta: new
|
|
36392
|
+
delta: new V()
|
|
36384
36393
|
};
|
|
36385
|
-
class cy extends
|
|
36394
|
+
class cy extends ot {
|
|
36386
36395
|
group;
|
|
36387
36396
|
wireframe = new ly();
|
|
36388
36397
|
isDragging = !1;
|
|
36389
|
-
lastPointer = new
|
|
36398
|
+
lastPointer = new nt();
|
|
36390
36399
|
activeHandle = null;
|
|
36391
36400
|
#t;
|
|
36392
36401
|
#o = /* @__PURE__ */ new Map();
|
|
36393
|
-
#e = new
|
|
36402
|
+
#e = new nt();
|
|
36394
36403
|
#r = 0;
|
|
36395
|
-
#
|
|
36396
|
-
#
|
|
36397
|
-
#i = new
|
|
36404
|
+
#a = 0;
|
|
36405
|
+
#l = new G();
|
|
36406
|
+
#i = new nt();
|
|
36398
36407
|
#c = new G();
|
|
36399
36408
|
#s = 1;
|
|
36400
36409
|
#n = 1;
|
|
@@ -36431,7 +36440,9 @@ class cy extends nt {
|
|
|
36431
36440
|
this.#r = t.rotation;
|
|
36432
36441
|
const e = this.#g(t);
|
|
36433
36442
|
let r, o;
|
|
36434
|
-
this.opts.clip ? (r = this.opts.clip.width, o = this.opts.clip.height) : (r = e.width, o = e.height)
|
|
36443
|
+
this.opts.clip ? (r = this.opts.clip.width, o = this.opts.clip.height) : (r = e.width, o = e.height);
|
|
36444
|
+
const a = t.toGlobal(new nt(0, 0));
|
|
36445
|
+
this.#e.set(a.x, a.y), this.#c.copyFrom(
|
|
36435
36446
|
new G(-r / 2, -o / 2, r, o)
|
|
36436
36447
|
);
|
|
36437
36448
|
} else {
|
|
@@ -36439,7 +36450,7 @@ class cy extends nt {
|
|
|
36439
36450
|
this.#e.set(t.x + t.width / 2, t.y + t.height / 2);
|
|
36440
36451
|
let e = t.width, r = t.height;
|
|
36441
36452
|
if (this.parent) {
|
|
36442
|
-
const a = new
|
|
36453
|
+
const a = new nt(t.x, t.y), h = new nt(t.x + t.width, t.y + t.height), l = this.parent.toLocal(a), d = this.parent.toLocal(h);
|
|
36443
36454
|
e = Math.abs(d.x - l.x), r = Math.abs(d.y - l.y);
|
|
36444
36455
|
}
|
|
36445
36456
|
const o = new G(-e / 2, -r / 2, e, r);
|
|
@@ -36465,7 +36476,7 @@ class cy extends nt {
|
|
|
36465
36476
|
}
|
|
36466
36477
|
let o = 1 / 0, a = 1 / 0, h = -1 / 0, l = -1 / 0;
|
|
36467
36478
|
for (const d of e) {
|
|
36468
|
-
const p = d.getBounds(), m = t.toLocal(new
|
|
36479
|
+
const p = d.getBounds(), m = t.toLocal(new nt(p.minX, p.minY)), v = t.toLocal(new nt(p.maxX, p.maxY));
|
|
36469
36480
|
o = Math.min(o, m.x, v.x), a = Math.min(a, m.y, v.y), h = Math.max(h, m.x, v.x), l = Math.max(l, m.y, v.y);
|
|
36470
36481
|
}
|
|
36471
36482
|
return new G(o, a, h - o, l - a);
|
|
@@ -36489,7 +36500,7 @@ class cy extends nt {
|
|
|
36489
36500
|
for (const d of this.group)
|
|
36490
36501
|
d.x += o, d.y += a;
|
|
36491
36502
|
const h = t.global.x - this.lastPointer.x, l = t.global.y - this.lastPointer.y;
|
|
36492
|
-
this.#e.x += h, this.#e.y += l, this.lastPointer.copyFrom(t.global), this.#u();
|
|
36503
|
+
this.#e.x += h, this.#e.y += l, this.lastPointer.copyFrom(t.global), this.#u(), this.emit("transforming");
|
|
36493
36504
|
};
|
|
36494
36505
|
#x(t, e) {
|
|
36495
36506
|
this.#h(), this.isDragging = !0, this.activeHandle = t, console.log(
|
|
@@ -36498,7 +36509,7 @@ class cy extends nt {
|
|
|
36498
36509
|
), this.#o.clear();
|
|
36499
36510
|
for (const r of this.group)
|
|
36500
36511
|
this.#o.set(r, r.localTransform.clone());
|
|
36501
|
-
this.rotation = this.#r, this.#
|
|
36512
|
+
this.rotation = this.#r, this.#l.copyFrom(this.#c), this.#C(t);
|
|
36502
36513
|
}
|
|
36503
36514
|
#_(t, e) {
|
|
36504
36515
|
this.#b(t, e);
|
|
@@ -36508,31 +36519,27 @@ class cy extends nt {
|
|
|
36508
36519
|
t,
|
|
36509
36520
|
this.toLocal(e),
|
|
36510
36521
|
r
|
|
36511
|
-
), a = o.width / this.#
|
|
36512
|
-
if (this.opts.clip && this.opts.clip.
|
|
36522
|
+
), a = o.width / this.#l.width, h = o.height / this.#l.height, l = this.toGlobal(r);
|
|
36523
|
+
if (this.opts.clip && this.opts.clip.type === "Text") {
|
|
36513
36524
|
const p = o.width;
|
|
36514
|
-
|
|
36515
|
-
handle: t,
|
|
36516
|
-
originalWidth: this.#a.width,
|
|
36517
|
-
newWidth: p,
|
|
36518
|
-
sx: a,
|
|
36519
|
-
sy: h
|
|
36520
|
-
}), this.emit("textClipResize", {
|
|
36525
|
+
this.emit("textClipResize", {
|
|
36521
36526
|
handle: t,
|
|
36522
36527
|
newWidth: p,
|
|
36523
36528
|
newHeight: o.height,
|
|
36524
36529
|
pivotWorld: l,
|
|
36525
|
-
proposed: o
|
|
36530
|
+
proposed: o,
|
|
36531
|
+
sx: a,
|
|
36532
|
+
sy: h
|
|
36526
36533
|
});
|
|
36527
36534
|
} else
|
|
36528
36535
|
this.#p(this.#I(l, this.#r, a, h));
|
|
36529
|
-
this.#c.copyFrom(o), this.#u();
|
|
36536
|
+
this.#c.copyFrom(o), this.#u(), this.emit("transforming");
|
|
36530
36537
|
}
|
|
36531
36538
|
#w(t) {
|
|
36532
36539
|
this.#h(), this.isDragging = !0, this.activeHandle = "rot", this.#o.clear();
|
|
36533
36540
|
for (const e of this.group)
|
|
36534
36541
|
this.#o.set(e, e.localTransform.clone());
|
|
36535
|
-
this.#
|
|
36542
|
+
this.#a = Math.atan2(
|
|
36536
36543
|
t.y - this.#e.y,
|
|
36537
36544
|
t.x - this.#e.x
|
|
36538
36545
|
);
|
|
@@ -36541,8 +36548,8 @@ class cy extends nt {
|
|
|
36541
36548
|
const r = Math.atan2(
|
|
36542
36549
|
t.y - this.#e.y,
|
|
36543
36550
|
t.x - this.#e.x
|
|
36544
|
-
) - this.#
|
|
36545
|
-
this.#p(this.#E(this.#e, r)), this.rotation = o, this.#u(o);
|
|
36551
|
+
) - this.#a, o = this.#r + r;
|
|
36552
|
+
this.#p(this.#E(this.#e, r)), this.rotation = o, this.#u(o), this.emit("transforming");
|
|
36546
36553
|
}
|
|
36547
36554
|
#f() {
|
|
36548
36555
|
console.log(
|
|
@@ -36589,7 +36596,7 @@ class cy extends nt {
|
|
|
36589
36596
|
}
|
|
36590
36597
|
// helpers
|
|
36591
36598
|
#C(t) {
|
|
36592
|
-
const e = this.#
|
|
36599
|
+
const e = this.#l;
|
|
36593
36600
|
if (this.opts.centeredScaling) {
|
|
36594
36601
|
this.#i.set(e.x + e.width / 2, e.y + e.height / 2);
|
|
36595
36602
|
return;
|
|
@@ -36617,7 +36624,7 @@ class cy extends nt {
|
|
|
36617
36624
|
const a = Math.max(e.x, r.x + this.#s), h = Math.max(e.y, r.y + this.#n);
|
|
36618
36625
|
return new G(r.x, r.y, a - r.x, h - r.y);
|
|
36619
36626
|
}
|
|
36620
|
-
const o = this.#
|
|
36627
|
+
const o = this.#l;
|
|
36621
36628
|
if (t === "ml") {
|
|
36622
36629
|
const a = Math.min(e.x, r.x - this.#s);
|
|
36623
36630
|
return new G(a, o.y, r.x - a, o.height);
|
|
@@ -36651,7 +36658,7 @@ class cy extends nt {
|
|
|
36651
36658
|
}
|
|
36652
36659
|
}
|
|
36653
36660
|
}
|
|
36654
|
-
class _y extends
|
|
36661
|
+
class _y extends Ho {
|
|
36655
36662
|
pixiApp = null;
|
|
36656
36663
|
tracks = [];
|
|
36657
36664
|
clips = [];
|
|
@@ -36748,7 +36755,7 @@ class _y extends Vo {
|
|
|
36748
36755
|
autoDensity: !0
|
|
36749
36756
|
}), this.pixiApp = e, e.stage.eventMode = "static", e.stage.hitArea = e.screen, e.stage.on("pointerdown", (o) => {
|
|
36750
36757
|
o.target === e.stage && this.deselectClip();
|
|
36751
|
-
}), this.artboard = new
|
|
36758
|
+
}), this.artboard = new ot(), this.artboard.label = "ArtboardRoot", e.stage.addChild(this.artboard), this.artboardBg = new ut(), this.artboardBg.rect(0, 0, this.opts.width, this.opts.height).fill({ color: 0 }), this.artboard.addChild(this.artboardBg), this.clipContainer = new ot(), this.clipContainer.label = "ClipContainer", this.artboard.addChild(this.clipContainer), this.artboardMask = new ut(), this.artboardMask.rect(0, 0, this.opts.width, this.opts.height).fill({ color: 16777215 }), this.clipContainer.addChild(this.artboardMask), this.clipContainer.mask = this.artboardMask, this.clipsEffectContainer = new ot(), this.clipsEffectContainer.label = "ClipsEffect", this.clipsEffectContainer.visible = !1, this.clipsEffectContainer.zIndex = 1, this.clipsEffectContainer.sortableChildren = !0, this.clipContainer.addChild(this.clipsEffectContainer), this.clipsNormalContainer = new ot(), this.clipsNormalContainer.label = "ClipsNormal", this.clipsNormalContainer.zIndex = 10, this.clipsNormalContainer.sortableChildren = !0, this.clipContainer.addChild(this.clipsNormalContainer), this.transFromTexture = wt.create({
|
|
36752
36759
|
width: this.opts.width,
|
|
36753
36760
|
height: this.opts.height
|
|
36754
36761
|
}), this.transToTexture = wt.create({
|
|
@@ -37526,7 +37533,7 @@ class _y extends Vo {
|
|
|
37526
37533
|
continue;
|
|
37527
37534
|
}
|
|
37528
37535
|
}
|
|
37529
|
-
if (a instanceof
|
|
37536
|
+
if (a instanceof ae) {
|
|
37530
37537
|
a.updateState(h);
|
|
37531
37538
|
const g = await a.getTexture();
|
|
37532
37539
|
if (g != null) {
|
|
@@ -37548,13 +37555,13 @@ class _y extends Vo {
|
|
|
37548
37555
|
for (const m of this.clips)
|
|
37549
37556
|
this.moveClipToEffectContainer(m, !1);
|
|
37550
37557
|
const p = this.clips.some(
|
|
37551
|
-
(m) => m.id === this.activeGlobalEffect.id && m instanceof
|
|
37558
|
+
(m) => m.id === this.activeGlobalEffect.id && m instanceof Ht
|
|
37552
37559
|
);
|
|
37553
37560
|
for (const m of this.clips) {
|
|
37554
37561
|
let v = !1;
|
|
37555
37562
|
if (p) {
|
|
37556
37563
|
const y = this.activeGlobalEffect.trackIndex ?? -1, _ = this.getTrackIndex(m.id);
|
|
37557
|
-
v = m.id !== this.activeGlobalEffect.id && !(m instanceof
|
|
37564
|
+
v = m.id !== this.activeGlobalEffect.id && !(m instanceof Ht) && _ > y;
|
|
37558
37565
|
} else {
|
|
37559
37566
|
const y = m.effects;
|
|
37560
37567
|
v = Array.isArray(y) && y.some(
|
|
@@ -37642,7 +37649,7 @@ class _y extends Vo {
|
|
|
37642
37649
|
duration: e.duration ?? 1e6
|
|
37643
37650
|
};
|
|
37644
37651
|
for (const h of r)
|
|
37645
|
-
h instanceof gt && h.addEffect(a), h instanceof ft && h.addEffect(a), h instanceof Gt && h.addEffect(a), h instanceof
|
|
37652
|
+
h instanceof gt && h.addEffect(a), h instanceof ft && h.addEffect(a), h instanceof Gt && h.addEffect(a), h instanceof ae && h.addEffect(a);
|
|
37646
37653
|
return this.globalEffects.set(o, a), o;
|
|
37647
37654
|
}
|
|
37648
37655
|
getTrackIndex(t) {
|
|
@@ -37696,7 +37703,7 @@ class _y extends Vo {
|
|
|
37696
37703
|
updateActiveGlobalEffect(t) {
|
|
37697
37704
|
let e = null;
|
|
37698
37705
|
for (const r of this.clips)
|
|
37699
|
-
if (r instanceof
|
|
37706
|
+
if (r instanceof Ht && t >= r.display.from && (r.display.to === 0 || t <= r.display.to)) {
|
|
37700
37707
|
e = {
|
|
37701
37708
|
id: r.id,
|
|
37702
37709
|
key: r.effect.key,
|
|
@@ -37823,13 +37830,16 @@ class _y extends Vo {
|
|
|
37823
37830
|
r = null, this.syncSelectedClipsTransformsRealtime();
|
|
37824
37831
|
}));
|
|
37825
37832
|
}), this.activeTransformer.on("textClipResize", (o) => {
|
|
37826
|
-
this.textClipResizedWidth = o.newWidth;
|
|
37833
|
+
this.textClipResizedWidth = o.newWidth, this.textClipResizeHandle = o.handle, this.textClipResizedSx = o.sx, this.textClipResizedSy = o.sy;
|
|
37827
37834
|
}), this.activeTransformer.on("transformEnd", () => {
|
|
37828
37835
|
r !== null && (cancelAnimationFrame(r), r = null), this.syncSelectedClipsTransforms();
|
|
37829
37836
|
}), this.artboard.addChild(this.activeTransformer);
|
|
37830
37837
|
}
|
|
37831
37838
|
isUpdatingTextClipRealtime = !1;
|
|
37832
37839
|
textClipResizedWidth = null;
|
|
37840
|
+
textClipResizeHandle = null;
|
|
37841
|
+
textClipResizedSx = null;
|
|
37842
|
+
textClipResizedSy = null;
|
|
37833
37843
|
/**
|
|
37834
37844
|
* Sync sprite transforms in real-time during drag (for TextClip reflow)
|
|
37835
37845
|
* This is called during the drag operation to prevent visual scaling
|
|
@@ -37839,9 +37849,11 @@ class _y extends Vo {
|
|
|
37839
37849
|
if (!(this.selectedClips.size === 0 || this.activeTransformer == null) && !this.isUpdatingTextClipRealtime) {
|
|
37840
37850
|
this.isUpdatingTextClipRealtime = !0;
|
|
37841
37851
|
try {
|
|
37842
|
-
|
|
37852
|
+
const t = this.activeTransformer.activeHandle;
|
|
37853
|
+
if (t !== "mr" && t !== "ml") return;
|
|
37843
37854
|
for (const e of this.selectedClips) {
|
|
37844
|
-
if (!(e instanceof Gt))
|
|
37855
|
+
if (!(e instanceof Gt))
|
|
37856
|
+
continue;
|
|
37845
37857
|
const r = this.spriteRenderers.get(e);
|
|
37846
37858
|
if (r == null) continue;
|
|
37847
37859
|
const o = r.getRoot(), a = r.getSprite();
|
|
@@ -37849,13 +37861,13 @@ class _y extends Vo {
|
|
|
37849
37861
|
const h = Math.abs(o.scale.x * a.scale.x);
|
|
37850
37862
|
if (h === 1)
|
|
37851
37863
|
continue;
|
|
37852
|
-
const l = e.left, d = e.top, p = a.texture.width,
|
|
37864
|
+
const l = e.left, d = e.top, p = e.width, m = a.texture.width, v = h * m;
|
|
37853
37865
|
await e.updateStyle({
|
|
37854
37866
|
wordWrap: !0,
|
|
37855
|
-
wordWrapWidth:
|
|
37867
|
+
wordWrapWidth: v
|
|
37856
37868
|
});
|
|
37857
|
-
const
|
|
37858
|
-
|
|
37869
|
+
const y = await e.getTexture();
|
|
37870
|
+
y && (await r.updateFrame(y), a.scale.set(1, 1), o.scale.set(1, 1), t === "ml" ? e.left = l + p - e.width : e.left = l, e.top = d, o.x = e.left + e.width / 2, o.y = e.top + e.height / 2, this.activeTransformer.updateBounds());
|
|
37859
37871
|
}
|
|
37860
37872
|
} finally {
|
|
37861
37873
|
this.isUpdatingTextClipRealtime = !1;
|
|
@@ -37873,18 +37885,20 @@ class _y extends Vo {
|
|
|
37873
37885
|
if (e == null) continue;
|
|
37874
37886
|
const r = e.getRoot(), o = e.getSprite();
|
|
37875
37887
|
if (r == null || o == null || o.texture == null) continue;
|
|
37876
|
-
const a = o.texture.width, h = o.texture.height, l = Math.abs(r.scale.x * o.scale.x) * a, d = Math.abs(r.scale.y * o.scale.y) * h, p = t instanceof Gt && this.textClipResizedWidth !== null ? this.textClipResizedWidth : l,
|
|
37888
|
+
const a = o.texture.width, h = o.texture.height, l = Math.abs(r.scale.x * o.scale.x) * a, d = Math.abs(r.scale.y * o.scale.y) * h, p = (t instanceof Gt || t instanceof ae) && this.textClipResizedWidth !== null ? this.textClipResizedWidth : l, v = t.style.fontSize * Math.max(this.textClipResizedSx, this.textClipResizedSy), y = t.width, _ = r.x - p / 2, n = r.y - d / 2;
|
|
37877
37889
|
if (t instanceof Gt && this.textClipResizedWidth !== null) {
|
|
37878
|
-
|
|
37890
|
+
const u = {
|
|
37879
37891
|
wordWrap: !0,
|
|
37880
37892
|
wordWrapWidth: p
|
|
37881
|
-
}
|
|
37882
|
-
|
|
37883
|
-
|
|
37893
|
+
};
|
|
37894
|
+
let f = r.x;
|
|
37895
|
+
this.textClipResizeHandle === "mr" ? (f = t.left + p / 2, r.x = f) : this.textClipResizeHandle === "ml" ? (f = t.left + p / 2 - (p - y), r.x = f) : this.textClipResizeHandle === "br" || this.textClipResizeHandle === "tr" ? (f = t.left + p / 2, u.fontSize = v) : (this.textClipResizeHandle === "bl" || this.textClipResizeHandle === "tl") && (f = t.left + p / 2 - (p - y), u.fontSize = v), await t.updateStyle(u);
|
|
37896
|
+
const g = await t.getTexture();
|
|
37897
|
+
g && (await e.updateFrame(g), t.width = p, t.height = g.height, this.textClipResizedWidth = null, t.left = f - t.width / 2, t.top = r.y - t.height / 2, o.scale.set(1, 1), r.scale.set(1, 1));
|
|
37884
37898
|
} else {
|
|
37885
|
-
t.left =
|
|
37886
|
-
const
|
|
37887
|
-
t.angle =
|
|
37899
|
+
t.left = _, t.top = n, t.width = l, t.height = d;
|
|
37900
|
+
const u = t.flip == null ? 1 : -1;
|
|
37901
|
+
t.angle = u * r.angle;
|
|
37888
37902
|
}
|
|
37889
37903
|
}
|
|
37890
37904
|
this.activeTransformer != null && this.activeTransformer.updateBounds();
|
|
@@ -38109,23 +38123,23 @@ class Me {
|
|
|
38109
38123
|
}
|
|
38110
38124
|
const by = Me.getInstance();
|
|
38111
38125
|
export {
|
|
38112
|
-
|
|
38113
|
-
|
|
38126
|
+
ze as $,
|
|
38127
|
+
Ba as A,
|
|
38114
38128
|
At as B,
|
|
38115
|
-
|
|
38129
|
+
ot as C,
|
|
38116
38130
|
it as D,
|
|
38117
|
-
|
|
38131
|
+
B as E,
|
|
38118
38132
|
hr as F,
|
|
38119
38133
|
Ge as G,
|
|
38120
|
-
|
|
38134
|
+
Vt as H,
|
|
38121
38135
|
De as I,
|
|
38122
38136
|
_n as J,
|
|
38123
38137
|
_t as K,
|
|
38124
38138
|
eu as L,
|
|
38125
|
-
|
|
38139
|
+
V as M,
|
|
38126
38140
|
du as N,
|
|
38127
38141
|
Ti as O,
|
|
38128
|
-
|
|
38142
|
+
nt as P,
|
|
38129
38143
|
ct as Q,
|
|
38130
38144
|
fi as R,
|
|
38131
38145
|
hu as S,
|
|
@@ -38145,11 +38159,11 @@ export {
|
|
|
38145
38159
|
Da as a4,
|
|
38146
38160
|
N as a5,
|
|
38147
38161
|
J as a6,
|
|
38148
|
-
|
|
38162
|
+
zu as a7,
|
|
38149
38163
|
nd as a8,
|
|
38150
38164
|
ju as a9,
|
|
38151
38165
|
Gt as aA,
|
|
38152
|
-
|
|
38166
|
+
Ht as aB,
|
|
38153
38167
|
_i as aC,
|
|
38154
38168
|
xy as aD,
|
|
38155
38169
|
_y as aE,
|
|
@@ -38168,7 +38182,7 @@ export {
|
|
|
38168
38182
|
Ud as ae,
|
|
38169
38183
|
Ja as af,
|
|
38170
38184
|
Ln as ag,
|
|
38171
|
-
|
|
38185
|
+
Bn as ah,
|
|
38172
38186
|
nr as ai,
|
|
38173
38187
|
Ft as aj,
|
|
38174
38188
|
al as ak,
|
|
@@ -38184,7 +38198,7 @@ export {
|
|
|
38184
38198
|
uy as au,
|
|
38185
38199
|
dy as av,
|
|
38186
38200
|
Ct as aw,
|
|
38187
|
-
|
|
38201
|
+
ae as ax,
|
|
38188
38202
|
gt as ay,
|
|
38189
38203
|
ft as az,
|
|
38190
38204
|
Zu as b,
|
|
@@ -38193,7 +38207,7 @@ export {
|
|
|
38193
38207
|
xt as e,
|
|
38194
38208
|
Dn as f,
|
|
38195
38209
|
$u as g,
|
|
38196
|
-
|
|
38210
|
+
Bs as h,
|
|
38197
38211
|
Ra as i,
|
|
38198
38212
|
fa as j,
|
|
38199
38213
|
Lt as k,
|
|
@@ -38209,7 +38223,7 @@ export {
|
|
|
38209
38223
|
th as u,
|
|
38210
38224
|
Ne as v,
|
|
38211
38225
|
et as w,
|
|
38212
|
-
|
|
38213
|
-
|
|
38226
|
+
zd as x,
|
|
38227
|
+
zt as y,
|
|
38214
38228
|
ta as z
|
|
38215
38229
|
};
|