openvideo 0.2.9 → 0.2.10
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/{browserAll-BVbVNENq.js → browserAll-Bzyowlcf.js} +2 -2
- package/dist/clips/iclip.d.ts +4 -0
- package/dist/{index-X_sXWlZk.js → index-56Xwic2v.js} +372 -331
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +51 -51
- package/dist/json-serialization.d.ts +1 -0
- package/dist/sprite/base-sprite.d.ts +7 -0
- package/dist/studio/selection-manager.d.ts +1 -1
- package/dist/studio.d.ts +14 -0
- package/dist/transfomer/transformer.d.ts +2 -0
- package/dist/{webworkerAll-BDynptqx.js → webworkerAll-CgviF99W.js} +1 -1
- package/package.json +1 -1
|
@@ -18385,7 +18385,7 @@ const Lv = (r) => {
|
|
|
18385
18385
|
},
|
|
18386
18386
|
test: () => !0,
|
|
18387
18387
|
load: async () => {
|
|
18388
|
-
await import("./browserAll-
|
|
18388
|
+
await import("./browserAll-Bzyowlcf.js");
|
|
18389
18389
|
}
|
|
18390
18390
|
}, gC = {
|
|
18391
18391
|
extension: {
|
|
@@ -18395,7 +18395,7 @@ const Lv = (r) => {
|
|
|
18395
18395
|
},
|
|
18396
18396
|
test: () => typeof self < "u" && self.WorkerGlobalScope !== void 0,
|
|
18397
18397
|
load: async () => {
|
|
18398
|
-
await import("./webworkerAll-
|
|
18398
|
+
await import("./webworkerAll-CgviF99W.js");
|
|
18399
18399
|
}
|
|
18400
18400
|
};
|
|
18401
18401
|
class at {
|
|
@@ -57896,26 +57896,26 @@ const kW = [
|
|
|
57896
57896
|
Fb,
|
|
57897
57897
|
Ob,
|
|
57898
57898
|
kb
|
|
57899
|
-
], RW = [...Bb, zb], FW = [D2, qb, Yb], JB = [], $B = [],
|
|
57899
|
+
], RW = [...Bb, zb], FW = [D2, qb, Yb], JB = [], $B = [], ek = [];
|
|
57900
57900
|
Qe.handleByNamedList(F.WebGPUSystem, JB);
|
|
57901
57901
|
Qe.handleByNamedList(F.WebGPUPipes, $B);
|
|
57902
|
-
Qe.handleByNamedList(F.WebGPUPipesAdaptor,
|
|
57902
|
+
Qe.handleByNamedList(F.WebGPUPipesAdaptor, ek);
|
|
57903
57903
|
Qe.add(...kW, ...RW, ...FW);
|
|
57904
|
-
class
|
|
57904
|
+
class tk extends wl {
|
|
57905
57905
|
constructor() {
|
|
57906
57906
|
const e = {
|
|
57907
57907
|
name: "webgpu",
|
|
57908
57908
|
type: xr.WEBGPU,
|
|
57909
57909
|
systems: JB,
|
|
57910
57910
|
renderPipes: $B,
|
|
57911
|
-
renderPipeAdaptors:
|
|
57911
|
+
renderPipeAdaptors: ek
|
|
57912
57912
|
};
|
|
57913
57913
|
super(e);
|
|
57914
57914
|
}
|
|
57915
57915
|
}
|
|
57916
57916
|
const MW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
57917
57917
|
__proto__: null,
|
|
57918
|
-
WebGPURenderer:
|
|
57918
|
+
WebGPURenderer: tk
|
|
57919
57919
|
}, Symbol.toStringTag, { value: "Module" })), Zw = {
|
|
57920
57920
|
POINTS: "point-list",
|
|
57921
57921
|
LINES: "line-list",
|
|
@@ -58008,7 +58008,7 @@ function VW(r, e, t) {
|
|
|
58008
58008
|
const i = r.a, n = r.b, s = r.c, o = r.d, a = r.tx, l = r.ty, u = e.a, c = e.b, h = e.c, d = e.d;
|
|
58009
58009
|
t.a = i * u + n * h, t.b = i * c + n * d, t.c = s * u + o * h, t.d = s * c + o * d, t.tx = a * u + l * h + e.tx, t.ty = a * c + l * d + e.ty;
|
|
58010
58010
|
}
|
|
58011
|
-
class
|
|
58011
|
+
class rk {
|
|
58012
58012
|
constructor() {
|
|
58013
58013
|
this.batches = [], this.batched = !1;
|
|
58014
58014
|
}
|
|
@@ -58018,7 +58018,7 @@ class r4 {
|
|
|
58018
58018
|
}), this.batches.length = 0;
|
|
58019
58019
|
}
|
|
58020
58020
|
}
|
|
58021
|
-
class
|
|
58021
|
+
class ik {
|
|
58022
58022
|
constructor(e, t) {
|
|
58023
58023
|
this.state = kr.for2d(), this.renderer = e, this._adaptor = t, this.renderer.runners.contextChange.add(this);
|
|
58024
58024
|
}
|
|
@@ -58070,7 +58070,7 @@ class i4 {
|
|
|
58070
58070
|
return e._gpuData[this.renderer.uid] || this._initGpuDataForRenderable(e);
|
|
58071
58071
|
}
|
|
58072
58072
|
_initGpuDataForRenderable(e) {
|
|
58073
|
-
const t = new
|
|
58073
|
+
const t = new rk();
|
|
58074
58074
|
return e._gpuData[this.renderer.uid] = t, t;
|
|
58075
58075
|
}
|
|
58076
58076
|
_updateBatchesForRenderable(e, t) {
|
|
@@ -58084,7 +58084,7 @@ class i4 {
|
|
|
58084
58084
|
this.renderer = null, this._adaptor.destroy(), this._adaptor = null, this.state = null;
|
|
58085
58085
|
}
|
|
58086
58086
|
}
|
|
58087
|
-
|
|
58087
|
+
ik.extension = {
|
|
58088
58088
|
type: [
|
|
58089
58089
|
F.WebGLPipes,
|
|
58090
58090
|
F.WebGPUPipes,
|
|
@@ -58112,7 +58112,7 @@ function XW(r) {
|
|
|
58112
58112
|
indices: new Uint32Array(i)
|
|
58113
58113
|
});
|
|
58114
58114
|
}
|
|
58115
|
-
const
|
|
58115
|
+
const nk = class sk extends Pe {
|
|
58116
58116
|
/**
|
|
58117
58117
|
* Creates a new RenderLayer instance
|
|
58118
58118
|
* @param options - Configuration options for the RenderLayer
|
|
@@ -58120,7 +58120,7 @@ const n4 = class s4 extends Pe {
|
|
|
58120
58120
|
* @param {Function} [options.sortFunction] - Custom function to sort layer children. Default sorts by zIndex
|
|
58121
58121
|
*/
|
|
58122
58122
|
constructor(e = {}) {
|
|
58123
|
-
e = { ...
|
|
58123
|
+
e = { ...sk.defaultOptions, ...e }, super(), this.renderLayerChildren = [], this.sortableChildren = e.sortableChildren, this.sortFunction = e.sortFunction;
|
|
58124
58124
|
}
|
|
58125
58125
|
/**
|
|
58126
58126
|
* Adds one or more Containers to this render layer. The Containers will be rendered as part of this layer
|
|
@@ -58461,7 +58461,7 @@ const n4 = class s4 extends Pe {
|
|
|
58461
58461
|
throw new Error("RenderLayer.reparentChildAt() is not available with the render layer");
|
|
58462
58462
|
}
|
|
58463
58463
|
};
|
|
58464
|
-
|
|
58464
|
+
nk.defaultOptions = {
|
|
58465
58465
|
/** If true, layer children will be automatically sorted each render. Default is false. */
|
|
58466
58466
|
sortableChildren: !1,
|
|
58467
58467
|
/**
|
|
@@ -58474,8 +58474,8 @@ n4.defaultOptions = {
|
|
|
58474
58474
|
*/
|
|
58475
58475
|
sortFunction: (r, e) => r.zIndex - e.zIndex
|
|
58476
58476
|
};
|
|
58477
|
-
let YW =
|
|
58478
|
-
const
|
|
58477
|
+
let YW = nk;
|
|
58478
|
+
const ok = class ak extends Un {
|
|
58479
58479
|
constructor(...e) {
|
|
58480
58480
|
super({});
|
|
58481
58481
|
let t = e[0] ?? {};
|
|
@@ -58491,7 +58491,7 @@ const o4 = class a4 extends Un {
|
|
|
58491
58491
|
* @param options - Options to be applied to plane geometry
|
|
58492
58492
|
*/
|
|
58493
58493
|
build(e) {
|
|
58494
|
-
e = { ...
|
|
58494
|
+
e = { ...ak.defaultOptions, ...e }, this.verticesX = this.verticesX ?? e.verticesX, this.verticesY = this.verticesY ?? e.verticesY, this.width = this.width ?? e.width, this.height = this.height ?? e.height;
|
|
58495
58495
|
const t = this.verticesX * this.verticesY, i = [], n = [], s = [], o = this.verticesX - 1, a = this.verticesY - 1, l = this.width / o, u = this.height / a;
|
|
58496
58496
|
for (let h = 0; h < t; h++) {
|
|
58497
58497
|
const d = h % this.verticesX, f = h / this.verticesX | 0;
|
|
@@ -58512,14 +58512,14 @@ const o4 = class a4 extends Un {
|
|
|
58512
58512
|
this.buffers[0].data = new Float32Array(i), this.buffers[1].data = new Float32Array(n), this.indexBuffer.data = new Uint32Array(s), this.buffers[0].update(), this.buffers[1].update(), this.indexBuffer.update();
|
|
58513
58513
|
}
|
|
58514
58514
|
};
|
|
58515
|
-
|
|
58515
|
+
ok.defaultOptions = {
|
|
58516
58516
|
width: 100,
|
|
58517
58517
|
height: 100,
|
|
58518
58518
|
verticesX: 10,
|
|
58519
58519
|
verticesY: 10
|
|
58520
58520
|
};
|
|
58521
|
-
let Ah =
|
|
58522
|
-
function
|
|
58521
|
+
let Ah = ok;
|
|
58522
|
+
function lk(r, e, t, i) {
|
|
58523
58523
|
const n = t.buffers[0], s = n.data, { verticesX: o, verticesY: a } = t, l = r / (o - 1), u = e / (a - 1);
|
|
58524
58524
|
let c = 0;
|
|
58525
58525
|
const h = i[0], d = i[1], f = i[2], p = i[3], m = i[4], g = i[5], v = i[6], x = i[7], y = i[8];
|
|
@@ -58529,11 +58529,11 @@ function l4(r, e, t, i) {
|
|
|
58529
58529
|
}
|
|
58530
58530
|
n.update();
|
|
58531
58531
|
}
|
|
58532
|
-
function
|
|
58532
|
+
function uk(r, e) {
|
|
58533
58533
|
const t = e[0], i = e[1], n = e[2], s = e[3], o = e[4], a = e[5], l = e[6], u = e[7], c = e[8];
|
|
58534
58534
|
return r[0] = o * c - a * u, r[1] = n * u - i * c, r[2] = i * a - n * o, r[3] = a * l - s * c, r[4] = t * c - n * l, r[5] = n * s - t * a, r[6] = s * u - o * l, r[7] = i * l - t * u, r[8] = t * o - i * s, r;
|
|
58535
58535
|
}
|
|
58536
|
-
function
|
|
58536
|
+
function ck(r, e, t) {
|
|
58537
58537
|
const i = e[0], n = e[1], s = e[2], o = e[3], a = e[4], l = e[5], u = e[6], c = e[7], h = e[8], d = t[0], f = t[1], p = t[2], m = t[3], g = t[4], v = t[5], x = t[6], y = t[7], b = t[8];
|
|
58538
58538
|
return r[0] = d * i + f * o + p * u, r[1] = d * n + f * a + p * c, r[2] = d * s + f * l + p * h, r[3] = m * i + g * o + v * u, r[4] = m * n + g * a + v * c, r[5] = m * s + g * l + v * h, r[6] = x * i + y * o + b * u, r[7] = x * n + y * a + b * c, r[8] = x * s + y * l + b * h, r;
|
|
58539
58539
|
}
|
|
@@ -58545,7 +58545,7 @@ const jW = [0, 0, 0, 0, 0, 0, 0, 0, 0], KW = [0, 0, 0], pu = [0, 0, 0];
|
|
|
58545
58545
|
function Jw(r, e, t, i, n, s, o, a, l) {
|
|
58546
58546
|
const u = jW;
|
|
58547
58547
|
u[0] = e, u[1] = i, u[2] = s, u[3] = t, u[4] = n, u[5] = o, u[6] = 1, u[7] = 1, u[8] = 1;
|
|
58548
|
-
const c =
|
|
58548
|
+
const c = uk(
|
|
58549
58549
|
r,
|
|
58550
58550
|
// reusing out as adjugateM is only used once
|
|
58551
58551
|
u
|
|
@@ -58556,10 +58556,10 @@ function Jw(r, e, t, i, n, s, o, a, l) {
|
|
|
58556
58556
|
c,
|
|
58557
58557
|
pu
|
|
58558
58558
|
), d = r;
|
|
58559
|
-
return r[0] = h[0], r[1] = 0, r[2] = 0, r[3] = 0, r[4] = h[1], r[5] = 0, r[6] = 0, r[7] = 0, r[8] = h[2],
|
|
58559
|
+
return r[0] = h[0], r[1] = 0, r[2] = 0, r[3] = 0, r[4] = h[1], r[5] = 0, r[6] = 0, r[7] = 0, r[8] = h[2], ck(r, d, u);
|
|
58560
58560
|
}
|
|
58561
58561
|
const QW = [0, 0, 0, 0, 0, 0, 0, 0, 0], ZW = [0, 0, 0, 0, 0, 0, 0, 0, 0];
|
|
58562
|
-
function
|
|
58562
|
+
function hk(r, e, t, i, n, s, o, a, l, u, c, h, d, f, p, m, g) {
|
|
58563
58563
|
const v = Jw(
|
|
58564
58564
|
QW,
|
|
58565
58565
|
e,
|
|
@@ -58581,13 +58581,13 @@ function h4(r, e, t, i, n, s, o, a, l, u, c, h, d, f, p, m, g) {
|
|
|
58581
58581
|
m,
|
|
58582
58582
|
g
|
|
58583
58583
|
);
|
|
58584
|
-
return
|
|
58584
|
+
return ck(
|
|
58585
58585
|
r,
|
|
58586
|
-
|
|
58586
|
+
uk(v, v),
|
|
58587
58587
|
x
|
|
58588
58588
|
);
|
|
58589
58589
|
}
|
|
58590
|
-
class
|
|
58590
|
+
class dk extends Ah {
|
|
58591
58591
|
/**
|
|
58592
58592
|
* @param options - Options to be applied to MeshPlane
|
|
58593
58593
|
* @param options.width - The width of the plane
|
|
@@ -58618,7 +58618,7 @@ class d4 extends Ah {
|
|
|
58618
58618
|
}
|
|
58619
58619
|
/** Update the projection matrix based on the corners */
|
|
58620
58620
|
updateProjection() {
|
|
58621
|
-
const { width: e, height: t } = this, i = this.corners, n =
|
|
58621
|
+
const { width: e, height: t } = this, i = this.corners, n = hk(
|
|
58622
58622
|
this._projectionMatrix,
|
|
58623
58623
|
0,
|
|
58624
58624
|
0,
|
|
@@ -58645,7 +58645,7 @@ class d4 extends Ah {
|
|
|
58645
58645
|
i[7]
|
|
58646
58646
|
// bottom-left dest
|
|
58647
58647
|
);
|
|
58648
|
-
|
|
58648
|
+
lk(
|
|
58649
58649
|
e,
|
|
58650
58650
|
t,
|
|
58651
58651
|
this,
|
|
@@ -58653,13 +58653,13 @@ class d4 extends Ah {
|
|
|
58653
58653
|
);
|
|
58654
58654
|
}
|
|
58655
58655
|
}
|
|
58656
|
-
const
|
|
58656
|
+
const fk = class pk extends Yo {
|
|
58657
58657
|
/**
|
|
58658
58658
|
* @param options - Options to be applied to PerspectiveMesh
|
|
58659
58659
|
*/
|
|
58660
58660
|
constructor(e) {
|
|
58661
|
-
e = { ...
|
|
58662
|
-
const { texture: t, verticesX: i, verticesY: n, ...s } = e, o = new
|
|
58661
|
+
e = { ...pk.defaultOptions, ...e };
|
|
58662
|
+
const { texture: t, verticesX: i, verticesY: n, ...s } = e, o = new dk(si({
|
|
58663
58663
|
width: t.width,
|
|
58664
58664
|
height: t.height,
|
|
58665
58665
|
verticesX: i,
|
|
@@ -58760,7 +58760,7 @@ const f4 = class p4 extends Yo {
|
|
|
58760
58760
|
this.geometry.setCorners(e, t, i, n, s, o, a, l);
|
|
58761
58761
|
}
|
|
58762
58762
|
};
|
|
58763
|
-
|
|
58763
|
+
fk.defaultOptions = {
|
|
58764
58764
|
texture: Q.WHITE,
|
|
58765
58765
|
verticesX: 10,
|
|
58766
58766
|
verticesY: 10,
|
|
@@ -58773,7 +58773,7 @@ f4.defaultOptions = {
|
|
|
58773
58773
|
x3: 0,
|
|
58774
58774
|
y3: 100
|
|
58775
58775
|
};
|
|
58776
|
-
let JW =
|
|
58776
|
+
let JW = fk;
|
|
58777
58777
|
class $W extends Yo {
|
|
58778
58778
|
/**
|
|
58779
58779
|
* @param options - Options to be applied to MeshPlane
|
|
@@ -58833,12 +58833,12 @@ class $W extends Yo {
|
|
|
58833
58833
|
this.texture.off("update", this.textureUpdated, this), super.destroy(e);
|
|
58834
58834
|
}
|
|
58835
58835
|
}
|
|
58836
|
-
const
|
|
58836
|
+
const mk = class gk extends Un {
|
|
58837
58837
|
/**
|
|
58838
58838
|
* @param options - Options to be applied to rope geometry
|
|
58839
58839
|
*/
|
|
58840
58840
|
constructor(e) {
|
|
58841
|
-
const { width: t, points: i, textureScale: n } = { ...
|
|
58841
|
+
const { width: t, points: i, textureScale: n } = { ...gk.defaultOptions, ...e };
|
|
58842
58842
|
super({
|
|
58843
58843
|
positions: new Float32Array(i.length * 4),
|
|
58844
58844
|
uvs: new Float32Array(i.length * 4),
|
|
@@ -58901,7 +58901,7 @@ const m4 = class g4 extends Un {
|
|
|
58901
58901
|
this.textureScale > 0 ? this._build() : this.updateVertices();
|
|
58902
58902
|
}
|
|
58903
58903
|
};
|
|
58904
|
-
|
|
58904
|
+
mk.defaultOptions = {
|
|
58905
58905
|
/** The width (i.e., thickness) of the rope. */
|
|
58906
58906
|
width: 200,
|
|
58907
58907
|
/** An array of points that determine the rope. */
|
|
@@ -58909,8 +58909,8 @@ m4.defaultOptions = {
|
|
|
58909
58909
|
/** Rope texture scale, if zero then the rope texture is stretched. */
|
|
58910
58910
|
textureScale: 0
|
|
58911
58911
|
};
|
|
58912
|
-
let
|
|
58913
|
-
const
|
|
58912
|
+
let vk = mk;
|
|
58913
|
+
const xk = class yk extends Yo {
|
|
58914
58914
|
/**
|
|
58915
58915
|
* Note: The wrap mode of the texture is set to REPEAT if `textureScale` is positive.
|
|
58916
58916
|
* @param options
|
|
@@ -58921,7 +58921,7 @@ const x4 = class y4 extends Yo {
|
|
|
58921
58921
|
* and downsampling here. If set to zero, texture will be stretched instead.
|
|
58922
58922
|
*/
|
|
58923
58923
|
constructor(e) {
|
|
58924
|
-
const { texture: t, points: i, textureScale: n, ...s } = { ...
|
|
58924
|
+
const { texture: t, points: i, textureScale: n, ...s } = { ...yk.defaultOptions, ...e }, o = new vk(si({ width: t.height, points: i, textureScale: n }));
|
|
58925
58925
|
n > 0 && (t.source.style.addressMode = "repeat"), super(si({
|
|
58926
58926
|
...s,
|
|
58927
58927
|
texture: t,
|
|
@@ -58933,10 +58933,10 @@ const x4 = class y4 extends Yo {
|
|
|
58933
58933
|
(this.autoUpdate || e._width !== this.texture.height) && (e._width = this.texture.height, e.update());
|
|
58934
58934
|
}
|
|
58935
58935
|
};
|
|
58936
|
-
|
|
58936
|
+
xk.defaultOptions = {
|
|
58937
58937
|
textureScale: 0
|
|
58938
58938
|
};
|
|
58939
|
-
let eV =
|
|
58939
|
+
let eV = xk;
|
|
58940
58940
|
class tV extends Yo {
|
|
58941
58941
|
/**
|
|
58942
58942
|
* @param options - Options to be used for construction
|
|
@@ -59049,7 +59049,7 @@ class Fx {
|
|
|
59049
59049
|
destroy() {
|
|
59050
59050
|
}
|
|
59051
59051
|
}
|
|
59052
|
-
class
|
|
59052
|
+
class bk {
|
|
59053
59053
|
constructor(e, t) {
|
|
59054
59054
|
this.localUniforms = new dt({
|
|
59055
59055
|
uTransformMatrix: { value: new ae(), type: "mat3x3<f32>" },
|
|
@@ -59123,7 +59123,7 @@ class b4 {
|
|
|
59123
59123
|
this.localUniforms = null, this.localUniformsBindGroup = null, this._adaptor.destroy(), this._adaptor = null, this.renderer = null;
|
|
59124
59124
|
}
|
|
59125
59125
|
}
|
|
59126
|
-
|
|
59126
|
+
bk.extension = {
|
|
59127
59127
|
type: [
|
|
59128
59128
|
F.WebGLPipes,
|
|
59129
59129
|
F.WebGPUPipes,
|
|
@@ -59131,7 +59131,7 @@ b4.extension = {
|
|
|
59131
59131
|
],
|
|
59132
59132
|
name: "mesh"
|
|
59133
59133
|
};
|
|
59134
|
-
class
|
|
59134
|
+
class _k {
|
|
59135
59135
|
execute(e, t) {
|
|
59136
59136
|
const i = e.state, n = e.renderer, s = t.shader || e.defaultShader;
|
|
59137
59137
|
s.resources.uTexture = t.texture._source, s.resources.uniforms = e.localUniforms;
|
|
@@ -59141,7 +59141,7 @@ class _4 {
|
|
|
59141
59141
|
o.drawElements(o.TRIANGLES, t.particleChildren.length * 6, u, 0);
|
|
59142
59142
|
}
|
|
59143
59143
|
}
|
|
59144
|
-
class
|
|
59144
|
+
class wk {
|
|
59145
59145
|
execute(e, t) {
|
|
59146
59146
|
const i = e.renderer, n = t.shader || e.defaultShader;
|
|
59147
59147
|
n.groups[0] = i.renderPipes.uniformBatch.getUniformBindGroup(e.localUniforms, !0), n.groups[1] = i.texture.getTextureBindGroup(t.texture);
|
|
@@ -59162,7 +59162,7 @@ function Mx(r, e = null) {
|
|
|
59162
59162
|
e[i + 0] = n + 0, e[i + 1] = n + 1, e[i + 2] = n + 2, e[i + 3] = n + 0, e[i + 4] = n + 2, e[i + 5] = n + 3;
|
|
59163
59163
|
return e;
|
|
59164
59164
|
}
|
|
59165
|
-
function
|
|
59165
|
+
function Sk(r) {
|
|
59166
59166
|
return {
|
|
59167
59167
|
dynamicUpdate: $w(r, !0),
|
|
59168
59168
|
staticUpdate: $w(r, !1)
|
|
@@ -59198,7 +59198,7 @@ function $w(r, e) {
|
|
|
59198
59198
|
`);
|
|
59199
59199
|
return new Function("ps", "f32v", "u32v", n);
|
|
59200
59200
|
}
|
|
59201
|
-
class
|
|
59201
|
+
class Tk {
|
|
59202
59202
|
constructor(e) {
|
|
59203
59203
|
this._size = 0, this._generateParticleUpdateCache = {};
|
|
59204
59204
|
const t = this._size = e.size ?? 1e3, i = e.properties;
|
|
@@ -59244,7 +59244,7 @@ class T4 {
|
|
|
59244
59244
|
return this._generateParticleUpdateCache[t] ? this._generateParticleUpdateCache[t] : (this._generateParticleUpdateCache[t] = this.generateParticleUpdate(e), this._generateParticleUpdateCache[t]);
|
|
59245
59245
|
}
|
|
59246
59246
|
generateParticleUpdate(e) {
|
|
59247
|
-
return
|
|
59247
|
+
return Sk(e);
|
|
59248
59248
|
}
|
|
59249
59249
|
update(e, t) {
|
|
59250
59250
|
e.length > this._size && (t = !0, this._size = Math.max(e.length, this._size * 1.5 | 0), this.staticAttributeBuffer = new os(this._size * this._staticStride * 4 * 4), this.dynamicAttributeBuffer = new os(this._size * this._dynamicStride * 4 * 4), this.indexBuffer = Mx(this._size), this.geometry.indexBuffer.setDataWithSize(
|
|
@@ -59278,7 +59278,7 @@ function iV(r) {
|
|
|
59278
59278
|
}
|
|
59279
59279
|
return e.join("_");
|
|
59280
59280
|
}
|
|
59281
|
-
var
|
|
59281
|
+
var Ck = `varying vec2 vUV;
|
|
59282
59282
|
varying vec4 vColor;
|
|
59283
59283
|
|
|
59284
59284
|
uniform sampler2D uTexture;
|
|
@@ -59286,7 +59286,7 @@ uniform sampler2D uTexture;
|
|
|
59286
59286
|
void main(void){
|
|
59287
59287
|
vec4 color = texture2D(uTexture, vUV) * vColor;
|
|
59288
59288
|
gl_FragColor = color;
|
|
59289
|
-
}`,
|
|
59289
|
+
}`, Ak = `attribute vec2 aVertex;
|
|
59290
59290
|
attribute vec2 aUV;
|
|
59291
59291
|
attribute vec4 aColor;
|
|
59292
59292
|
|
|
@@ -59388,11 +59388,11 @@ fn mainFragment(
|
|
|
59388
59388
|
|
|
59389
59389
|
return sample;
|
|
59390
59390
|
}`;
|
|
59391
|
-
class
|
|
59391
|
+
class Ek extends Mr {
|
|
59392
59392
|
constructor() {
|
|
59393
59393
|
const e = ue.from({
|
|
59394
|
-
vertex:
|
|
59395
|
-
fragment:
|
|
59394
|
+
vertex: Ak,
|
|
59395
|
+
fragment: Ck
|
|
59396
59396
|
}), t = pe.from({
|
|
59397
59397
|
fragment: {
|
|
59398
59398
|
source: Dx,
|
|
@@ -59433,7 +59433,7 @@ class jb {
|
|
|
59433
59433
|
uColor: { value: new Float32Array(4), type: "vec4<f32>" },
|
|
59434
59434
|
uRound: { value: 1, type: "f32" },
|
|
59435
59435
|
uResolution: { value: [0, 0], type: "vec2<f32>" }
|
|
59436
|
-
}), this.renderer = e, this.adaptor = t, this.defaultShader = new
|
|
59436
|
+
}), this.renderer = e, this.adaptor = t, this.defaultShader = new Ek(), this.state = kr.for2d();
|
|
59437
59437
|
}
|
|
59438
59438
|
validateRenderable(e) {
|
|
59439
59439
|
return !1;
|
|
@@ -59445,7 +59445,7 @@ class jb {
|
|
|
59445
59445
|
return e._gpuData[this.renderer.uid] || this._initBuffer(e);
|
|
59446
59446
|
}
|
|
59447
59447
|
_initBuffer(e) {
|
|
59448
|
-
return e._gpuData[this.renderer.uid] = new
|
|
59448
|
+
return e._gpuData[this.renderer.uid] = new Tk({
|
|
59449
59449
|
size: e.particleChildren.length,
|
|
59450
59450
|
properties: e._properties
|
|
59451
59451
|
}), e._gpuData[this.renderer.uid];
|
|
@@ -59472,29 +59472,29 @@ class jb {
|
|
|
59472
59472
|
this.renderer = null, this.defaultShader && (this.defaultShader.destroy(), this.defaultShader = null);
|
|
59473
59473
|
}
|
|
59474
59474
|
}
|
|
59475
|
-
class
|
|
59475
|
+
class Pk extends jb {
|
|
59476
59476
|
constructor(e) {
|
|
59477
|
-
super(e, new
|
|
59477
|
+
super(e, new _k());
|
|
59478
59478
|
}
|
|
59479
59479
|
}
|
|
59480
|
-
|
|
59480
|
+
Pk.extension = {
|
|
59481
59481
|
type: [
|
|
59482
59482
|
F.WebGLPipes
|
|
59483
59483
|
],
|
|
59484
59484
|
name: "particle"
|
|
59485
59485
|
};
|
|
59486
|
-
class
|
|
59486
|
+
class Ik extends jb {
|
|
59487
59487
|
constructor(e) {
|
|
59488
|
-
super(e, new
|
|
59488
|
+
super(e, new wk());
|
|
59489
59489
|
}
|
|
59490
59490
|
}
|
|
59491
|
-
|
|
59491
|
+
Ik.extension = {
|
|
59492
59492
|
type: [
|
|
59493
59493
|
F.WebGPUPipes
|
|
59494
59494
|
],
|
|
59495
59495
|
name: "particle"
|
|
59496
59496
|
};
|
|
59497
|
-
const
|
|
59497
|
+
const Bk = class Ox {
|
|
59498
59498
|
constructor(e) {
|
|
59499
59499
|
if (e instanceof Q)
|
|
59500
59500
|
this.texture = e, xc(this, Ox.defaultOptions, {});
|
|
@@ -59583,7 +59583,7 @@ const B4 = class Ox {
|
|
|
59583
59583
|
this.color = this._tint + ((this._alpha * 255 | 0) << 24);
|
|
59584
59584
|
}
|
|
59585
59585
|
};
|
|
59586
|
-
|
|
59586
|
+
Bk.defaultOptions = {
|
|
59587
59587
|
anchorX: 0,
|
|
59588
59588
|
anchorY: 0,
|
|
59589
59589
|
x: 0,
|
|
@@ -59594,7 +59594,7 @@ B4.defaultOptions = {
|
|
|
59594
59594
|
tint: 16777215,
|
|
59595
59595
|
alpha: 1
|
|
59596
59596
|
};
|
|
59597
|
-
let nV =
|
|
59597
|
+
let nV = Bk;
|
|
59598
59598
|
const Ux = {
|
|
59599
59599
|
vertex: {
|
|
59600
59600
|
attributeName: "aVertex",
|
|
@@ -59710,7 +59710,7 @@ const Ux = {
|
|
|
59710
59710
|
`,
|
|
59711
59711
|
dynamic: !1
|
|
59712
59712
|
}
|
|
59713
|
-
}, sV = new Dt(0, 0, 0, 0),
|
|
59713
|
+
}, sV = new Dt(0, 0, 0, 0), kk = class zx extends Ri {
|
|
59714
59714
|
/**
|
|
59715
59715
|
* @param options - The options for creating the sprite.
|
|
59716
59716
|
*/
|
|
@@ -60042,7 +60042,7 @@ const Ux = {
|
|
|
60042
60042
|
throw new Error("ParticleContainer.reparentChildAt() is not available with the particle container");
|
|
60043
60043
|
}
|
|
60044
60044
|
};
|
|
60045
|
-
|
|
60045
|
+
kk.defaultOptions = {
|
|
60046
60046
|
/** Specifies which properties are dynamic. */
|
|
60047
60047
|
dynamicProperties: {
|
|
60048
60048
|
/** Indicates if vertex positions are dynamic. */
|
|
@@ -60059,10 +60059,10 @@ k4.defaultOptions = {
|
|
|
60059
60059
|
/** Indicates if pixels should be rounded for rendering. */
|
|
60060
60060
|
roundPixels: !1
|
|
60061
60061
|
};
|
|
60062
|
-
let oV =
|
|
60063
|
-
const
|
|
60062
|
+
let oV = kk;
|
|
60063
|
+
const Rk = class Fk extends Ah {
|
|
60064
60064
|
constructor(e = {}) {
|
|
60065
|
-
e = { ...
|
|
60065
|
+
e = { ...Fk.defaultOptions, ...e }, super({
|
|
60066
60066
|
width: e.width,
|
|
60067
60067
|
height: e.height,
|
|
60068
60068
|
verticesX: 4,
|
|
@@ -60098,7 +60098,7 @@ const R4 = class F4 extends Ah {
|
|
|
60098
60098
|
e[2] = e[10] = e[18] = e[26] = t * this._leftWidth, e[9] = e[11] = e[13] = e[15] = i * this._topHeight, e[4] = e[12] = e[20] = e[28] = 1 - t * this._rightWidth, e[17] = e[19] = e[21] = e[23] = 1 - i * this._bottomHeight, this.getBuffer("aUV").update();
|
|
60099
60099
|
}
|
|
60100
60100
|
};
|
|
60101
|
-
|
|
60101
|
+
Rk.defaultOptions = {
|
|
60102
60102
|
/** The width of the NineSlicePlane, setting this will actually modify the vertices and UV's of this plane. */
|
|
60103
60103
|
width: 100,
|
|
60104
60104
|
/** The height of the NineSlicePlane, setting this will actually modify the vertices and UV's of this plane. */
|
|
@@ -60116,8 +60116,8 @@ R4.defaultOptions = {
|
|
|
60116
60116
|
/** The original height of the texture */
|
|
60117
60117
|
originalHeight: 100
|
|
60118
60118
|
};
|
|
60119
|
-
let ln =
|
|
60120
|
-
const
|
|
60119
|
+
let ln = Rk;
|
|
60120
|
+
const Mk = class Dk extends Ri {
|
|
60121
60121
|
constructor(e) {
|
|
60122
60122
|
e instanceof Q && (e = { texture: e });
|
|
60123
60123
|
const {
|
|
@@ -60135,7 +60135,7 @@ const M4 = class D4 extends Ri {
|
|
|
60135
60135
|
super({
|
|
60136
60136
|
label: "NineSliceSprite",
|
|
60137
60137
|
...h
|
|
60138
|
-
}), this.renderPipeId = "nineSliceSprite", this.batched = !0, this._leftWidth = s ?? u?.defaultBorders?.left ?? ln.defaultOptions.leftWidth, this._topHeight = a ?? u?.defaultBorders?.top ?? ln.defaultOptions.topHeight, this._rightWidth = o ?? u?.defaultBorders?.right ?? ln.defaultOptions.rightWidth, this._bottomHeight = l ?? u?.defaultBorders?.bottom ?? ln.defaultOptions.bottomHeight, this._width = t ?? u.width ?? ln.defaultOptions.width, this._height = i ?? u.height ?? ln.defaultOptions.height, this.allowChildren = !1, this.texture = u ??
|
|
60138
|
+
}), this.renderPipeId = "nineSliceSprite", this.batched = !0, this._leftWidth = s ?? u?.defaultBorders?.left ?? ln.defaultOptions.leftWidth, this._topHeight = a ?? u?.defaultBorders?.top ?? ln.defaultOptions.topHeight, this._rightWidth = o ?? u?.defaultBorders?.right ?? ln.defaultOptions.rightWidth, this._bottomHeight = l ?? u?.defaultBorders?.bottom ?? ln.defaultOptions.bottomHeight, this._width = t ?? u.width ?? ln.defaultOptions.width, this._height = i ?? u.height ?? ln.defaultOptions.height, this.allowChildren = !1, this.texture = u ?? Dk.defaultOptions.texture, this.roundPixels = c ?? !1, this._anchor = new at(
|
|
60139
60139
|
{
|
|
60140
60140
|
_onUpdate: () => {
|
|
60141
60141
|
this.onViewUpdate();
|
|
@@ -60435,12 +60435,12 @@ const M4 = class D4 extends Ri {
|
|
|
60435
60435
|
e.minX = -t._x * i, e.maxX = e.minX + i, e.minY = -t._y * n, e.maxY = e.minY + n;
|
|
60436
60436
|
}
|
|
60437
60437
|
};
|
|
60438
|
-
|
|
60438
|
+
Mk.defaultOptions = {
|
|
60439
60439
|
/** @default Texture.EMPTY */
|
|
60440
60440
|
texture: Q.EMPTY
|
|
60441
60441
|
};
|
|
60442
|
-
let
|
|
60443
|
-
class aV extends
|
|
60442
|
+
let Ok = Mk;
|
|
60443
|
+
class aV extends Ok {
|
|
60444
60444
|
constructor(...e) {
|
|
60445
60445
|
let t = e[0];
|
|
60446
60446
|
t instanceof Q && (J(Te, "NineSlicePlane now uses the options object {texture, leftWidth, rightWidth, topHeight, bottomHeight}"), t = {
|
|
@@ -60452,7 +60452,7 @@ class aV extends O4 {
|
|
|
60452
60452
|
}), J(Te, "NineSlicePlane is deprecated. Use NineSliceSprite instead."), super(t);
|
|
60453
60453
|
}
|
|
60454
60454
|
}
|
|
60455
|
-
class
|
|
60455
|
+
class Uk extends Eh {
|
|
60456
60456
|
constructor() {
|
|
60457
60457
|
super(), this.geometry = new ln();
|
|
60458
60458
|
}
|
|
@@ -60460,7 +60460,7 @@ class U4 extends Eh {
|
|
|
60460
60460
|
this.geometry.destroy();
|
|
60461
60461
|
}
|
|
60462
60462
|
}
|
|
60463
|
-
class
|
|
60463
|
+
class zk {
|
|
60464
60464
|
constructor(e) {
|
|
60465
60465
|
this._renderer = e;
|
|
60466
60466
|
}
|
|
@@ -60486,14 +60486,14 @@ class z4 {
|
|
|
60486
60486
|
return e._gpuData[this._renderer.uid] || this._initGPUSprite(e);
|
|
60487
60487
|
}
|
|
60488
60488
|
_initGPUSprite(e) {
|
|
60489
|
-
const t = e._gpuData[this._renderer.uid] = new
|
|
60489
|
+
const t = e._gpuData[this._renderer.uid] = new Uk(), i = t;
|
|
60490
60490
|
return i.renderable = e, i.transform = e.groupTransform, i.texture = e._texture, i.roundPixels = this._renderer._roundPixels | e._roundPixels, e.didViewUpdate || this._updateBatchableSprite(e, i), t;
|
|
60491
60491
|
}
|
|
60492
60492
|
destroy() {
|
|
60493
60493
|
this._renderer = null;
|
|
60494
60494
|
}
|
|
60495
60495
|
}
|
|
60496
|
-
|
|
60496
|
+
zk.extension = {
|
|
60497
60497
|
type: [
|
|
60498
60498
|
F.WebGLPipes,
|
|
60499
60499
|
F.WebGPUPipes,
|
|
@@ -60501,7 +60501,7 @@ z4.extension = {
|
|
|
60501
60501
|
],
|
|
60502
60502
|
name: "nineSliceSprite"
|
|
60503
60503
|
};
|
|
60504
|
-
const
|
|
60504
|
+
const Lk = {
|
|
60505
60505
|
name: "tiling-bit",
|
|
60506
60506
|
vertex: {
|
|
60507
60507
|
header: (
|
|
@@ -60566,7 +60566,7 @@ const L4 = {
|
|
|
60566
60566
|
`
|
|
60567
60567
|
)
|
|
60568
60568
|
}
|
|
60569
|
-
},
|
|
60569
|
+
}, Nk = {
|
|
60570
60570
|
name: "tiling-bit",
|
|
60571
60571
|
vertex: {
|
|
60572
60572
|
header: (
|
|
@@ -60612,20 +60612,20 @@ const L4 = {
|
|
|
60612
60612
|
}
|
|
60613
60613
|
};
|
|
60614
60614
|
let Y0, q0;
|
|
60615
|
-
class
|
|
60615
|
+
class Gk extends Mr {
|
|
60616
60616
|
constructor() {
|
|
60617
60617
|
Y0 ?? (Y0 = Go({
|
|
60618
60618
|
name: "tiling-sprite-shader",
|
|
60619
60619
|
bits: [
|
|
60620
60620
|
yo,
|
|
60621
|
-
|
|
60621
|
+
Lk,
|
|
60622
60622
|
Wo
|
|
60623
60623
|
]
|
|
60624
60624
|
})), q0 ?? (q0 = Ho({
|
|
60625
60625
|
name: "tiling-sprite-shader",
|
|
60626
60626
|
bits: [
|
|
60627
60627
|
wh,
|
|
60628
|
-
|
|
60628
|
+
Nk,
|
|
60629
60629
|
Vo
|
|
60630
60630
|
]
|
|
60631
60631
|
}));
|
|
@@ -60663,7 +60663,7 @@ class G4 extends Mr {
|
|
|
60663
60663
|
), h.invert(), a.uniforms.uMapCoord = c.mapCoord, a.uniforms.uClampFrame = c.uClampFrame, a.uniforms.uClampOffset = c.uClampOffset, a.uniforms.uTextureTransform = h, a.uniforms.uSizeAnchor[0] = e, a.uniforms.uSizeAnchor[1] = t, a.uniforms.uSizeAnchor[2] = n, a.uniforms.uSizeAnchor[3] = s, o && (this.resources.uTexture = o.source, this.resources.uSampler = o.source.style);
|
|
60664
60664
|
}
|
|
60665
60665
|
}
|
|
60666
|
-
class
|
|
60666
|
+
class Hk extends Un {
|
|
60667
60667
|
constructor() {
|
|
60668
60668
|
super({
|
|
60669
60669
|
positions: new Float32Array([0, 0, 1, 0, 1, 1, 0, 1]),
|
|
@@ -60672,11 +60672,11 @@ class H4 extends Un {
|
|
|
60672
60672
|
});
|
|
60673
60673
|
}
|
|
60674
60674
|
}
|
|
60675
|
-
function
|
|
60675
|
+
function Wk(r, e) {
|
|
60676
60676
|
const t = r.anchor.x, i = r.anchor.y;
|
|
60677
60677
|
e[0] = -t * r.width, e[1] = -i * r.height, e[2] = (1 - t) * r.width, e[3] = -i * r.height, e[4] = (1 - t) * r.width, e[5] = (1 - i) * r.height, e[6] = -t * r.width, e[7] = (1 - i) * r.height;
|
|
60678
60678
|
}
|
|
60679
|
-
function
|
|
60679
|
+
function Vk(r, e, t, i) {
|
|
60680
60680
|
let n = 0;
|
|
60681
60681
|
const s = r.length / (e || 2), o = i.a, a = i.b, l = i.c, u = i.d, c = i.tx, h = i.ty;
|
|
60682
60682
|
for (t *= e; n < s; ) {
|
|
@@ -60684,15 +60684,15 @@ function V4(r, e, t, i) {
|
|
|
60684
60684
|
r[t] = o * d + l * f + c, r[t + 1] = a * d + u * f + h, t += e, n++;
|
|
60685
60685
|
}
|
|
60686
60686
|
}
|
|
60687
|
-
function
|
|
60687
|
+
function Xk(r, e) {
|
|
60688
60688
|
const t = r.texture, i = t.frame.width, n = t.frame.height;
|
|
60689
60689
|
let s = 0, o = 0;
|
|
60690
60690
|
r.applyAnchorToTexture && (s = r.anchor.x, o = r.anchor.y), e[0] = e[6] = -s, e[2] = e[4] = 1 - s, e[1] = e[3] = -o, e[5] = e[7] = 1 - o;
|
|
60691
60691
|
const a = ae.shared;
|
|
60692
|
-
a.copyFrom(r._tileTransform.matrix), a.tx /= r.width, a.ty /= r.height, a.invert(), a.scale(r.width / i, r.height / n),
|
|
60692
|
+
a.copyFrom(r._tileTransform.matrix), a.tx /= r.width, a.ty /= r.height, a.invert(), a.scale(r.width / i, r.height / n), Vk(e, 2, 0, a);
|
|
60693
60693
|
}
|
|
60694
|
-
const Lu = new
|
|
60695
|
-
class
|
|
60694
|
+
const Lu = new Hk();
|
|
60695
|
+
class Yk {
|
|
60696
60696
|
constructor() {
|
|
60697
60697
|
this.canBatch = !0, this.geometry = new Un({
|
|
60698
60698
|
indices: Lu.indices.slice(),
|
|
@@ -60704,7 +60704,7 @@ class Y4 {
|
|
|
60704
60704
|
this.geometry.destroy(), this.shader?.destroy();
|
|
60705
60705
|
}
|
|
60706
60706
|
}
|
|
60707
|
-
class
|
|
60707
|
+
class qk {
|
|
60708
60708
|
constructor(e) {
|
|
60709
60709
|
this._state = kr.default2d, this._renderer = e;
|
|
60710
60710
|
}
|
|
@@ -60730,7 +60730,7 @@ class q4 {
|
|
|
60730
60730
|
const a = n.batchableMesh;
|
|
60731
60731
|
e.didViewUpdate && (this._updateBatchableMesh(e), a.geometry = s, a.renderable = e, a.transform = e.groupTransform, a.setTexture(e._texture)), a.roundPixels = this._renderer._roundPixels | e._roundPixels, i.addToBatch(a, t);
|
|
60732
60732
|
} else
|
|
60733
|
-
i.break(t), n.shader || (n.shader = new
|
|
60733
|
+
i.break(t), n.shader || (n.shader = new Gk()), this.updateRenderable(e), t.add(e);
|
|
60734
60734
|
}
|
|
60735
60735
|
execute(e) {
|
|
60736
60736
|
const { shader: t } = this._getTilingSpriteData(e);
|
|
@@ -60767,12 +60767,12 @@ class q4 {
|
|
|
60767
60767
|
return e._gpuData[this._renderer.uid] || this._initTilingSpriteData(e);
|
|
60768
60768
|
}
|
|
60769
60769
|
_initTilingSpriteData(e) {
|
|
60770
|
-
const t = new
|
|
60770
|
+
const t = new Yk();
|
|
60771
60771
|
return t.renderable = e, e._gpuData[this._renderer.uid] = t, t;
|
|
60772
60772
|
}
|
|
60773
60773
|
_updateBatchableMesh(e) {
|
|
60774
60774
|
const t = this._getTilingSpriteData(e), { geometry: i } = t, n = e.texture.source.style;
|
|
60775
|
-
n.addressMode !== "repeat" && (n.addressMode = "repeat", n.update()),
|
|
60775
|
+
n.addressMode !== "repeat" && (n.addressMode = "repeat", n.update()), Xk(e, i.uvs), Wk(e, i.positions);
|
|
60776
60776
|
}
|
|
60777
60777
|
destroy() {
|
|
60778
60778
|
this._renderer = null;
|
|
@@ -60783,7 +60783,7 @@ class q4 {
|
|
|
60783
60783
|
return this._renderer.type === xr.WEBGL && (n = this._renderer.context.supports.nonPowOf2wrapping), t.canBatch = i.textureMatrix.isSimple && (n || i.source.isPowerOfTwo), t.canBatch;
|
|
60784
60784
|
}
|
|
60785
60785
|
}
|
|
60786
|
-
|
|
60786
|
+
qk.extension = {
|
|
60787
60787
|
type: [
|
|
60788
60788
|
F.WebGLPipes,
|
|
60789
60789
|
F.WebGPUPipes,
|
|
@@ -60791,7 +60791,7 @@ q4.extension = {
|
|
|
60791
60791
|
],
|
|
60792
60792
|
name: "tilingSprite"
|
|
60793
60793
|
};
|
|
60794
|
-
const
|
|
60794
|
+
const jk = {
|
|
60795
60795
|
name: "local-uniform-msdf-bit",
|
|
60796
60796
|
vertex: {
|
|
60797
60797
|
header: (
|
|
@@ -60844,7 +60844,7 @@ const j4 = {
|
|
|
60844
60844
|
`
|
|
60845
60845
|
)
|
|
60846
60846
|
}
|
|
60847
|
-
},
|
|
60847
|
+
}, Kk = {
|
|
60848
60848
|
name: "local-uniform-msdf-bit",
|
|
60849
60849
|
vertex: {
|
|
60850
60850
|
header: (
|
|
@@ -60886,7 +60886,7 @@ const j4 = {
|
|
|
60886
60886
|
`
|
|
60887
60887
|
)
|
|
60888
60888
|
}
|
|
60889
|
-
},
|
|
60889
|
+
}, Qk = {
|
|
60890
60890
|
name: "msdf-bit",
|
|
60891
60891
|
fragment: {
|
|
60892
60892
|
header: (
|
|
@@ -60921,7 +60921,7 @@ const j4 = {
|
|
|
60921
60921
|
`
|
|
60922
60922
|
)
|
|
60923
60923
|
}
|
|
60924
|
-
},
|
|
60924
|
+
}, Zk = {
|
|
60925
60925
|
name: "msdf-bit",
|
|
60926
60926
|
fragment: {
|
|
60927
60927
|
header: (
|
|
@@ -60958,7 +60958,7 @@ const j4 = {
|
|
|
60958
60958
|
}
|
|
60959
60959
|
};
|
|
60960
60960
|
let j0, K0;
|
|
60961
|
-
class
|
|
60961
|
+
class Jk extends Mr {
|
|
60962
60962
|
constructor(e) {
|
|
60963
60963
|
const t = new dt({
|
|
60964
60964
|
uColor: { value: new Float32Array([1, 1, 1, 1]), type: "vec4<f32>" },
|
|
@@ -60971,8 +60971,8 @@ class J4 extends Mr {
|
|
|
60971
60971
|
bits: [
|
|
60972
60972
|
ah,
|
|
60973
60973
|
uh(e),
|
|
60974
|
-
|
|
60975
|
-
|
|
60974
|
+
jk,
|
|
60975
|
+
Qk,
|
|
60976
60976
|
Wo
|
|
60977
60977
|
]
|
|
60978
60978
|
})), K0 ?? (K0 = Ho({
|
|
@@ -60980,8 +60980,8 @@ class J4 extends Mr {
|
|
|
60980
60980
|
bits: [
|
|
60981
60981
|
lh,
|
|
60982
60982
|
ch(e),
|
|
60983
|
-
|
|
60984
|
-
|
|
60983
|
+
Kk,
|
|
60984
|
+
Zk,
|
|
60985
60985
|
Vo
|
|
60986
60986
|
]
|
|
60987
60987
|
})), super({
|
|
@@ -60994,12 +60994,12 @@ class J4 extends Mr {
|
|
|
60994
60994
|
});
|
|
60995
60995
|
}
|
|
60996
60996
|
}
|
|
60997
|
-
class $
|
|
60997
|
+
class $k extends Ke {
|
|
60998
60998
|
destroy() {
|
|
60999
60999
|
this.context.customShader && this.context.customShader.destroy(), super.destroy();
|
|
61000
61000
|
}
|
|
61001
61001
|
}
|
|
61002
|
-
class
|
|
61002
|
+
class e4 {
|
|
61003
61003
|
constructor(e) {
|
|
61004
61004
|
this._renderer = e;
|
|
61005
61005
|
}
|
|
@@ -61017,7 +61017,7 @@ class ek {
|
|
|
61017
61017
|
}
|
|
61018
61018
|
_updateContext(e, t) {
|
|
61019
61019
|
const { context: i } = t, n = Mo.getFont(e.text, e._style);
|
|
61020
|
-
i.clear(), n.distanceField.type !== "none" && (i.customShader || (i.customShader = new
|
|
61020
|
+
i.clear(), n.distanceField.type !== "none" && (i.customShader || (i.customShader = new Jk(this._renderer.limits.maxBatchableTextures)));
|
|
61021
61021
|
const s = Ht.graphemeSegmenter(e.text), o = e._style;
|
|
61022
61022
|
let a = n.baseLineOffset;
|
|
61023
61023
|
const l = mh(s, o, n, !0), u = o.padding, c = l.scale;
|
|
@@ -61051,7 +61051,7 @@ class ek {
|
|
|
61051
61051
|
return e._gpuData[this._renderer.uid] || this.initGpuText(e);
|
|
61052
61052
|
}
|
|
61053
61053
|
initGpuText(e) {
|
|
61054
|
-
const t = new $
|
|
61054
|
+
const t = new $k();
|
|
61055
61055
|
return e._gpuData[this._renderer.uid] = t, this._updateContext(e, t), t;
|
|
61056
61056
|
}
|
|
61057
61057
|
_updateDistanceField(e) {
|
|
@@ -61062,7 +61062,7 @@ class ek {
|
|
|
61062
61062
|
this._renderer = null;
|
|
61063
61063
|
}
|
|
61064
61064
|
}
|
|
61065
|
-
|
|
61065
|
+
e4.extension = {
|
|
61066
61066
|
type: [
|
|
61067
61067
|
F.WebGLPipes,
|
|
61068
61068
|
F.WebGPUPipes,
|
|
@@ -61073,7 +61073,7 @@ ek.extension = {
|
|
|
61073
61073
|
function eS(r, e) {
|
|
61074
61074
|
e.groupTransform = r.groupTransform, e.groupColorAlpha = r.groupColorAlpha, e.groupColor = r.groupColor, e.groupBlendMode = r.groupBlendMode, e.globalDisplayStatus = r.globalDisplayStatus, e.groupTransform = r.groupTransform, e.localDisplayStatus = r.localDisplayStatus, e.groupAlpha = r.groupAlpha, e._roundPixels = r._roundPixels;
|
|
61075
61075
|
}
|
|
61076
|
-
function
|
|
61076
|
+
function t4(r) {
|
|
61077
61077
|
const { text: e, style: t, chars: i } = r, n = t, s = Mo.getFont(e, n), o = Ht.graphemeSegmenter(e), a = mh(o, n, s, !0), l = a.scale, u = [], c = [], h = [], d = t.lineHeight ? t.lineHeight : s.lineHeight * l;
|
|
61078
61078
|
let f = 0;
|
|
61079
61079
|
for (const p of a.lines) {
|
|
@@ -61099,7 +61099,7 @@ function tk(r) {
|
|
|
61099
61099
|
}
|
|
61100
61100
|
return { chars: u, lines: h, words: c };
|
|
61101
61101
|
}
|
|
61102
|
-
class
|
|
61102
|
+
class r4 extends kl {
|
|
61103
61103
|
/**
|
|
61104
61104
|
* Creates an instance of BatchableHTMLText.
|
|
61105
61105
|
* @param renderer - The renderer instance to be used.
|
|
@@ -61124,7 +61124,7 @@ function kc(r, e) {
|
|
|
61124
61124
|
const s = e._anchor._x * n * 2, o = e._anchor._y * n * 2;
|
|
61125
61125
|
i.minX -= n - s, i.minY -= n - o, i.maxX -= n - s, i.maxY -= n - o;
|
|
61126
61126
|
}
|
|
61127
|
-
class
|
|
61127
|
+
class i4 {
|
|
61128
61128
|
constructor(e) {
|
|
61129
61129
|
this._renderer = e;
|
|
61130
61130
|
}
|
|
@@ -61164,14 +61164,14 @@ class ik {
|
|
|
61164
61164
|
return e._gpuData[this._renderer.uid] || this.initGpuText(e);
|
|
61165
61165
|
}
|
|
61166
61166
|
initGpuText(e) {
|
|
61167
|
-
const t = new
|
|
61167
|
+
const t = new r4(this._renderer);
|
|
61168
61168
|
return t.renderable = e, t.transform = e.groupTransform, t.texture = Q.EMPTY, t.bounds = { minX: 0, maxX: 1, minY: 0, maxY: 0 }, t.roundPixels = this._renderer._roundPixels | e._roundPixels, e._resolution = e._autoResolution ? this._renderer.resolution : e.resolution, e._gpuData[this._renderer.uid] = t, t;
|
|
61169
61169
|
}
|
|
61170
61170
|
destroy() {
|
|
61171
61171
|
this._renderer = null;
|
|
61172
61172
|
}
|
|
61173
61173
|
}
|
|
61174
|
-
|
|
61174
|
+
i4.extension = {
|
|
61175
61175
|
type: [
|
|
61176
61176
|
F.WebGLPipes,
|
|
61177
61177
|
F.WebGPUPipes,
|
|
@@ -61179,7 +61179,7 @@ ik.extension = {
|
|
|
61179
61179
|
],
|
|
61180
61180
|
name: "htmlText"
|
|
61181
61181
|
};
|
|
61182
|
-
function
|
|
61182
|
+
function n4() {
|
|
61183
61183
|
const { userAgent: r } = Ce.get().getNavigator();
|
|
61184
61184
|
return /^((?!chrome|android).)*safari/i.test(r);
|
|
61185
61185
|
}
|
|
@@ -61195,7 +61195,7 @@ function Kb(r, e, t, i) {
|
|
|
61195
61195
|
);
|
|
61196
61196
|
return s.source.uploadMethodId = "image", s.source.resource = r, s.source.alphaMode = "premultiply-alpha-on-upload", s.frame.width = e / i, s.frame.height = t / i, s.source.emit("update", s.source), s.updateUvs(), s;
|
|
61197
61197
|
}
|
|
61198
|
-
function
|
|
61198
|
+
function s4(r, e) {
|
|
61199
61199
|
const t = e.fontFamily, i = [], n = {}, s = /font-family:([^;"\s]+)/g, o = r.match(s);
|
|
61200
61200
|
function a(l) {
|
|
61201
61201
|
n[l] || (i.push(l), n[l] = !0);
|
|
@@ -61215,14 +61215,14 @@ function sk(r, e) {
|
|
|
61215
61215
|
}
|
|
61216
61216
|
return i;
|
|
61217
61217
|
}
|
|
61218
|
-
async function
|
|
61218
|
+
async function o4(r) {
|
|
61219
61219
|
const t = await (await Ce.get().fetch(r)).blob(), i = new FileReader();
|
|
61220
61220
|
return await new Promise((s, o) => {
|
|
61221
61221
|
i.onloadend = () => s(i.result), i.onerror = o, i.readAsDataURL(t);
|
|
61222
61222
|
});
|
|
61223
61223
|
}
|
|
61224
|
-
async function
|
|
61225
|
-
const t = await
|
|
61224
|
+
async function a4(r, e) {
|
|
61225
|
+
const t = await o4(e);
|
|
61226
61226
|
return `@font-face {
|
|
61227
61227
|
font-family: "${r.fontFamily}";
|
|
61228
61228
|
font-weight: ${r.fontWeight};
|
|
@@ -61231,7 +61231,7 @@ async function ak(r, e) {
|
|
|
61231
61231
|
}`;
|
|
61232
61232
|
}
|
|
61233
61233
|
const Nu = /* @__PURE__ */ new Map();
|
|
61234
|
-
async function
|
|
61234
|
+
async function l4(r) {
|
|
61235
61235
|
const e = r.filter((t) => je.has(`${t}-and-url`)).map((t) => {
|
|
61236
61236
|
if (!Nu.has(t)) {
|
|
61237
61237
|
const { entries: i } = je.get(`${t}-and-url`), n = [];
|
|
@@ -61239,7 +61239,7 @@ async function lk(r) {
|
|
|
61239
61239
|
const o = s.url, l = s.faces.map((u) => ({ weight: u.weight, style: u.style }));
|
|
61240
61240
|
n.push(
|
|
61241
61241
|
...l.map(
|
|
61242
|
-
(u) =>
|
|
61242
|
+
(u) => a4(
|
|
61243
61243
|
{
|
|
61244
61244
|
fontWeight: u.weight,
|
|
61245
61245
|
fontStyle: u.style,
|
|
@@ -61260,13 +61260,13 @@ async function lk(r) {
|
|
|
61260
61260
|
return (await Promise.all(e)).join(`
|
|
61261
61261
|
`);
|
|
61262
61262
|
}
|
|
61263
|
-
function
|
|
61263
|
+
function u4(r, e, t, i, n) {
|
|
61264
61264
|
const { domElement: s, styleElement: o, svgRoot: a } = n;
|
|
61265
61265
|
s.innerHTML = `<style>${e.cssStyle}</style><div style='padding:0;'>${r}</div>`, s.setAttribute("style", `transform: scale(${t});transform-origin: top left; display: inline-block`), o.textContent = i;
|
|
61266
61266
|
const { width: l, height: u } = n.image;
|
|
61267
61267
|
return a.setAttribute("width", l.toString()), a.setAttribute("height", u.toString()), new XMLSerializer().serializeToString(a);
|
|
61268
61268
|
}
|
|
61269
|
-
function
|
|
61269
|
+
function c4(r, e) {
|
|
61270
61270
|
const t = ki.getOptimalCanvasAndContext(
|
|
61271
61271
|
r.width,
|
|
61272
61272
|
r.height,
|
|
@@ -61274,14 +61274,14 @@ function ck(r, e) {
|
|
|
61274
61274
|
), { context: i } = t;
|
|
61275
61275
|
return i.clearRect(0, 0, r.width, r.height), i.drawImage(r, 0, 0), t;
|
|
61276
61276
|
}
|
|
61277
|
-
function
|
|
61277
|
+
function h4(r, e, t) {
|
|
61278
61278
|
return new Promise(async (i) => {
|
|
61279
61279
|
t && await new Promise((n) => setTimeout(n, 100)), r.onload = () => {
|
|
61280
61280
|
i();
|
|
61281
61281
|
}, r.src = `data:image/svg+xml;charset=utf8,${encodeURIComponent(e)}`, r.crossOrigin = "anonymous";
|
|
61282
61282
|
});
|
|
61283
61283
|
}
|
|
61284
|
-
class
|
|
61284
|
+
class d4 {
|
|
61285
61285
|
constructor(e) {
|
|
61286
61286
|
this._activeTextures = {}, this._renderer = e, this._createCanvas = e.type === xr.WEBGPU;
|
|
61287
61287
|
}
|
|
@@ -61340,13 +61340,13 @@ class dk {
|
|
|
61340
61340
|
return this._buildTexturePromise(e);
|
|
61341
61341
|
}
|
|
61342
61342
|
async _buildTexturePromise(e) {
|
|
61343
|
-
const { text: t, style: i, resolution: n, textureStyle: s } = e, o = Pt.get(R2), a =
|
|
61343
|
+
const { text: t, style: i, resolution: n, textureStyle: s } = e, o = Pt.get(R2), a = s4(t, i), l = await l4(a), u = F2(t, i, l, o), c = Math.ceil(Math.ceil(Math.max(1, u.width) + i.padding * 2) * n), h = Math.ceil(Math.ceil(Math.max(1, u.height) + i.padding * 2) * n), d = o.image, f = 2;
|
|
61344
61344
|
d.width = (c | 0) + f, d.height = (h | 0) + f;
|
|
61345
|
-
const p =
|
|
61346
|
-
await
|
|
61345
|
+
const p = u4(t, i, n, l, o);
|
|
61346
|
+
await h4(d, p, n4() && a.length > 0);
|
|
61347
61347
|
const m = d;
|
|
61348
61348
|
let g;
|
|
61349
|
-
this._createCanvas && (g =
|
|
61349
|
+
this._createCanvas && (g = c4(d, n));
|
|
61350
61350
|
const v = Kb(
|
|
61351
61351
|
g ? g.canvas : m,
|
|
61352
61352
|
d.width - f,
|
|
@@ -61372,7 +61372,7 @@ class dk {
|
|
|
61372
61372
|
this._activeTextures = null;
|
|
61373
61373
|
}
|
|
61374
61374
|
}
|
|
61375
|
-
|
|
61375
|
+
d4.extension = {
|
|
61376
61376
|
type: [
|
|
61377
61377
|
F.WebGLSystem,
|
|
61378
61378
|
F.WebGPUSystem,
|
|
@@ -61581,7 +61581,7 @@ class Qb extends Pe {
|
|
|
61581
61581
|
super.destroy(e), this.chars = [], this.words = [], this.lines = [], (typeof e == "boolean" ? e : e?.style) && this._style.destroy(e), this._style = null, this._originalText = "";
|
|
61582
61582
|
}
|
|
61583
61583
|
}
|
|
61584
|
-
const
|
|
61584
|
+
const f4 = class Gu extends Qb {
|
|
61585
61585
|
constructor(e) {
|
|
61586
61586
|
const t = {
|
|
61587
61587
|
...Gu.defaultOptions,
|
|
@@ -61624,14 +61624,14 @@ const fk = class Gu extends Qb {
|
|
|
61624
61624
|
});
|
|
61625
61625
|
}
|
|
61626
61626
|
splitFn() {
|
|
61627
|
-
return
|
|
61627
|
+
return t4({
|
|
61628
61628
|
text: this._originalText,
|
|
61629
61629
|
style: this._style,
|
|
61630
61630
|
chars: this._canReuseChars ? this.chars : []
|
|
61631
61631
|
});
|
|
61632
61632
|
}
|
|
61633
61633
|
};
|
|
61634
|
-
|
|
61634
|
+
f4.defaultOptions = {
|
|
61635
61635
|
autoSplit: !0,
|
|
61636
61636
|
// Auto-update on text/style changes
|
|
61637
61637
|
lineAnchor: 0,
|
|
@@ -61641,7 +61641,7 @@ fk.defaultOptions = {
|
|
|
61641
61641
|
charAnchor: 0
|
|
61642
61642
|
// Top-left alignment
|
|
61643
61643
|
};
|
|
61644
|
-
let ml =
|
|
61644
|
+
let ml = f4;
|
|
61645
61645
|
function uV(r, e, t) {
|
|
61646
61646
|
switch (r) {
|
|
61647
61647
|
case "center":
|
|
@@ -61653,7 +61653,7 @@ function uV(r, e, t) {
|
|
|
61653
61653
|
return 0;
|
|
61654
61654
|
}
|
|
61655
61655
|
}
|
|
61656
|
-
function
|
|
61656
|
+
function p4(r) {
|
|
61657
61657
|
return r === "\r" || r === `
|
|
61658
61658
|
` || r === `\r
|
|
61659
61659
|
`;
|
|
@@ -61662,7 +61662,7 @@ function cV(r, e, t) {
|
|
|
61662
61662
|
const i = [];
|
|
61663
61663
|
let n = e.lines[0], s = "", o = [], a = 0;
|
|
61664
61664
|
return t.wordWrap = !1, r.forEach((l) => {
|
|
61665
|
-
const u = /^\s*$/.test(l), c =
|
|
61665
|
+
const u = /^\s*$/.test(l), c = p4(l), h = s.length === 0 && u;
|
|
61666
61666
|
if (u && !c && h)
|
|
61667
61667
|
return;
|
|
61668
61668
|
c || (s += l);
|
|
@@ -61674,7 +61674,7 @@ function cV(r, e, t) {
|
|
|
61674
61674
|
}), o = [], s = "", a++, n = e.lines[a]);
|
|
61675
61675
|
}), i;
|
|
61676
61676
|
}
|
|
61677
|
-
function
|
|
61677
|
+
function m4(r) {
|
|
61678
61678
|
const { text: e, style: t, chars: i } = r, n = t, s = Ht.measureText(e, n), o = Ht.graphemeSegmenter(e), a = cV(o, s, n.clone()), l = n.align, u = s.lineWidths.reduce((g, v) => Math.max(g, v), 0), c = [], h = [], d = [];
|
|
61679
61679
|
let f = 0;
|
|
61680
61680
|
const p = n.stroke?.width || 0, m = n.dropShadow?.distance || 0;
|
|
@@ -61685,7 +61685,7 @@ function mk(r) {
|
|
|
61685
61685
|
let b = uV(l, y, u), T = new Pe({ label: "word" });
|
|
61686
61686
|
T.x = b, g.chars.forEach((P, A) => {
|
|
61687
61687
|
if (P.metric.width !== 0) {
|
|
61688
|
-
if (
|
|
61688
|
+
if (p4(P.char)) {
|
|
61689
61689
|
b += P.metric.width - p;
|
|
61690
61690
|
return;
|
|
61691
61691
|
}
|
|
@@ -61703,7 +61703,7 @@ function mk(r) {
|
|
|
61703
61703
|
}), T.children.length > 0 && (d.push(T), x.addChild(T)), f += s.lineHeight;
|
|
61704
61704
|
}), { chars: c, lines: h, words: d };
|
|
61705
61705
|
}
|
|
61706
|
-
const
|
|
61706
|
+
const g4 = class Hu extends Qb {
|
|
61707
61707
|
constructor(e) {
|
|
61708
61708
|
const t = {
|
|
61709
61709
|
...Hu.defaultOptions,
|
|
@@ -61746,14 +61746,14 @@ const gk = class Hu extends Qb {
|
|
|
61746
61746
|
});
|
|
61747
61747
|
}
|
|
61748
61748
|
splitFn() {
|
|
61749
|
-
return
|
|
61749
|
+
return m4({
|
|
61750
61750
|
text: this._originalText,
|
|
61751
61751
|
style: this._style,
|
|
61752
61752
|
chars: this._canReuseChars ? this.chars : []
|
|
61753
61753
|
});
|
|
61754
61754
|
}
|
|
61755
61755
|
};
|
|
61756
|
-
|
|
61756
|
+
g4.defaultOptions = {
|
|
61757
61757
|
autoSplit: !0,
|
|
61758
61758
|
// Auto-update on text/style changes
|
|
61759
61759
|
lineAnchor: 0,
|
|
@@ -61763,8 +61763,8 @@ gk.defaultOptions = {
|
|
|
61763
61763
|
charAnchor: 0
|
|
61764
61764
|
// Top-left alignment
|
|
61765
61765
|
};
|
|
61766
|
-
let hV =
|
|
61767
|
-
class
|
|
61766
|
+
let hV = g4;
|
|
61767
|
+
class v4 extends kl {
|
|
61768
61768
|
constructor(e) {
|
|
61769
61769
|
super(), this._renderer = e, e.runners.resolutionChange.add(this);
|
|
61770
61770
|
}
|
|
@@ -61777,7 +61777,7 @@ class vk extends kl {
|
|
|
61777
61777
|
e.getReferenceCount(this.currentKey) > 0 ? e.decreaseReferenceCount(this.currentKey) : this.texture && e.returnTexture(this.texture), this._renderer.runners.resolutionChange.remove(this), this._renderer = null;
|
|
61778
61778
|
}
|
|
61779
61779
|
}
|
|
61780
|
-
class
|
|
61780
|
+
class x4 {
|
|
61781
61781
|
constructor(e) {
|
|
61782
61782
|
this._renderer = e;
|
|
61783
61783
|
}
|
|
@@ -61805,14 +61805,14 @@ class xk {
|
|
|
61805
61805
|
return e._gpuData[this._renderer.uid] || this.initGpuText(e);
|
|
61806
61806
|
}
|
|
61807
61807
|
initGpuText(e) {
|
|
61808
|
-
const t = new
|
|
61808
|
+
const t = new v4(this._renderer);
|
|
61809
61809
|
return t.currentKey = "--", t.renderable = e, t.transform = e.groupTransform, t.bounds = { minX: 0, maxX: 1, minY: 0, maxY: 0 }, t.roundPixels = this._renderer._roundPixels | e._roundPixels, e._gpuData[this._renderer.uid] = t, t;
|
|
61810
61810
|
}
|
|
61811
61811
|
destroy() {
|
|
61812
61812
|
this._renderer = null;
|
|
61813
61813
|
}
|
|
61814
61814
|
}
|
|
61815
|
-
|
|
61815
|
+
x4.extension = {
|
|
61816
61816
|
type: [
|
|
61817
61817
|
F.WebGLPipes,
|
|
61818
61818
|
F.WebGPUPipes,
|
|
@@ -61820,7 +61820,7 @@ xk.extension = {
|
|
|
61820
61820
|
],
|
|
61821
61821
|
name: "text"
|
|
61822
61822
|
};
|
|
61823
|
-
class
|
|
61823
|
+
class y4 {
|
|
61824
61824
|
constructor(e) {
|
|
61825
61825
|
this._activeTextures = {}, this._renderer = e;
|
|
61826
61826
|
}
|
|
@@ -61934,7 +61934,7 @@ class yk {
|
|
|
61934
61934
|
this._activeTextures = null;
|
|
61935
61935
|
}
|
|
61936
61936
|
}
|
|
61937
|
-
|
|
61937
|
+
y4.extension = {
|
|
61938
61938
|
type: [
|
|
61939
61939
|
F.WebGLSystem,
|
|
61940
61940
|
F.WebGPUSystem,
|
|
@@ -61968,7 +61968,7 @@ function dV(r) {
|
|
|
61968
61968
|
const n = `_${tS[i]}`;
|
|
61969
61969
|
e[t++] = r[n];
|
|
61970
61970
|
}
|
|
61971
|
-
return t =
|
|
61971
|
+
return t = b4(r._fill, e, t), t = pV(r._stroke, e, t), t = mV(r.dropShadow, e, t), t = fV(r.filters, e, t), e.join("-");
|
|
61972
61972
|
}
|
|
61973
61973
|
function fV(r, e, t) {
|
|
61974
61974
|
if (!r)
|
|
@@ -61977,11 +61977,11 @@ function fV(r, e, t) {
|
|
|
61977
61977
|
e[t++] = i.uid;
|
|
61978
61978
|
return t;
|
|
61979
61979
|
}
|
|
61980
|
-
function
|
|
61980
|
+
function b4(r, e, t) {
|
|
61981
61981
|
return r && (e[t++] = r.color, e[t++] = r.alpha, e[t++] = r.fill?.styleKey), t;
|
|
61982
61982
|
}
|
|
61983
61983
|
function pV(r, e, t) {
|
|
61984
|
-
return r && (t =
|
|
61984
|
+
return r && (t = b4(r, e, t), e[t++] = r.width, e[t++] = r.alignment, e[t++] = r.cap, e[t++] = r.join, e[t++] = r.miterLimit), t;
|
|
61985
61985
|
}
|
|
61986
61986
|
function mV(r, e, t) {
|
|
61987
61987
|
return r && (e[t++] = r.alpha, e[t++] = r.angle, e[t++] = r.blur, e[t++] = r.distance, e[t++] = ye.shared.setValue(r.color).toNumber()), t;
|
|
@@ -62022,7 +62022,7 @@ const vV = [
|
|
|
62022
62022
|
// Dark Magenta
|
|
62023
62023
|
];
|
|
62024
62024
|
let xV = 0;
|
|
62025
|
-
function
|
|
62025
|
+
function _4(r, e = 0, t = { color: "#000000" }) {
|
|
62026
62026
|
r.renderGroup && (t.color = vV[xV++]);
|
|
62027
62027
|
let i = "";
|
|
62028
62028
|
for (let o = 0; o < e; o++)
|
|
@@ -62033,10 +62033,10 @@ function _k(r, e = 0, t = { color: "#000000" }) {
|
|
|
62033
62033
|
r.renderGroup && (s += " (RenderGroup)"), r.filters && (s += "(*filters)"), console.log(s, `color:${t.color}; font-weight:bold;`), e++;
|
|
62034
62034
|
for (let o = 0; o < r.children.length; o++) {
|
|
62035
62035
|
const a = r.children[o];
|
|
62036
|
-
|
|
62036
|
+
_4(a, e, { ...t });
|
|
62037
62037
|
}
|
|
62038
62038
|
}
|
|
62039
|
-
function
|
|
62039
|
+
function w4(r, e = 0, t = { index: 0, color: "#000000" }) {
|
|
62040
62040
|
let i = "";
|
|
62041
62041
|
for (let s = 0; s < e; s++)
|
|
62042
62042
|
i += " ";
|
|
@@ -62044,7 +62044,7 @@ function wk(r, e = 0, t = { index: 0, color: "#000000" }) {
|
|
|
62044
62044
|
console.log(n, `color:${t.color}; font-weight:bold;`), e++;
|
|
62045
62045
|
for (let s = 0; s < r.renderGroupChildren.length; s++) {
|
|
62046
62046
|
const o = r.renderGroupChildren[s];
|
|
62047
|
-
|
|
62047
|
+
w4(o, e, { ...t, index: s });
|
|
62048
62048
|
}
|
|
62049
62049
|
}
|
|
62050
62050
|
Qe.add(mC, gC);
|
|
@@ -62071,10 +62071,10 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62071
62071
|
BatchGeometry: mE,
|
|
62072
62072
|
BatchTextureArray: uE,
|
|
62073
62073
|
BatchableGraphics: ph,
|
|
62074
|
-
BatchableHTMLText:
|
|
62074
|
+
BatchableHTMLText: r4,
|
|
62075
62075
|
BatchableMesh: Eh,
|
|
62076
62076
|
BatchableSprite: kl,
|
|
62077
|
-
BatchableText:
|
|
62077
|
+
BatchableText: v4,
|
|
62078
62078
|
Batcher: fE,
|
|
62079
62079
|
BatcherPipe: U2,
|
|
62080
62080
|
BigPool: Pt,
|
|
@@ -62083,8 +62083,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62083
62083
|
BitmapFont: _2,
|
|
62084
62084
|
BitmapFontManager: Mo,
|
|
62085
62085
|
BitmapText: k2,
|
|
62086
|
-
BitmapTextGraphics: $
|
|
62087
|
-
BitmapTextPipe:
|
|
62086
|
+
BitmapTextGraphics: $k,
|
|
62087
|
+
BitmapTextPipe: e4,
|
|
62088
62088
|
BlendModeFilter: St,
|
|
62089
62089
|
BlendModePipe: bb,
|
|
62090
62090
|
BlurFilter: Ss,
|
|
@@ -62103,8 +62103,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62103
62103
|
CanvasSource: Ci,
|
|
62104
62104
|
CanvasTextGenerator: xo,
|
|
62105
62105
|
CanvasTextMetrics: Ht,
|
|
62106
|
-
CanvasTextPipe:
|
|
62107
|
-
CanvasTextSystem:
|
|
62106
|
+
CanvasTextPipe: x4,
|
|
62107
|
+
CanvasTextSystem: y4,
|
|
62108
62108
|
Circle: Al,
|
|
62109
62109
|
Color: ye,
|
|
62110
62110
|
ColorBlend: AA,
|
|
@@ -62178,8 +62178,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62178
62178
|
GlGraphicsAdaptor: hb,
|
|
62179
62179
|
GlLimitsSystem: K2,
|
|
62180
62180
|
GlMeshAdaptor: db,
|
|
62181
|
-
GlParticleContainerAdaptor:
|
|
62182
|
-
GlParticleContainerPipe:
|
|
62181
|
+
GlParticleContainerAdaptor: _k,
|
|
62182
|
+
GlParticleContainerPipe: Pk,
|
|
62183
62183
|
GlProgram: ue,
|
|
62184
62184
|
GlProgramData: rB,
|
|
62185
62185
|
GlRenderTarget: XI,
|
|
@@ -62205,8 +62205,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62205
62205
|
GpuLimitsSystem: Db,
|
|
62206
62206
|
GpuMeshAdapter: qb,
|
|
62207
62207
|
GpuMipmapGenerator: ZB,
|
|
62208
|
-
GpuParticleContainerAdaptor:
|
|
62209
|
-
GpuParticleContainerPipe:
|
|
62208
|
+
GpuParticleContainerAdaptor: wk,
|
|
62209
|
+
GpuParticleContainerPipe: Ik,
|
|
62210
62210
|
GpuProgram: pe,
|
|
62211
62211
|
GpuRenderTarget: YB,
|
|
62212
62212
|
GpuRenderTargetAdaptor: qB,
|
|
@@ -62222,14 +62222,14 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62222
62222
|
GraphicsContext: $t,
|
|
62223
62223
|
GraphicsContextRenderData: NE,
|
|
62224
62224
|
GraphicsContextSystem: m2,
|
|
62225
|
-
GraphicsGpuData:
|
|
62225
|
+
GraphicsGpuData: rk,
|
|
62226
62226
|
GraphicsPath: ii,
|
|
62227
|
-
GraphicsPipe:
|
|
62227
|
+
GraphicsPipe: ik,
|
|
62228
62228
|
HTMLText: kI,
|
|
62229
|
-
HTMLTextPipe:
|
|
62229
|
+
HTMLTextPipe: i4,
|
|
62230
62230
|
HTMLTextRenderData: R2,
|
|
62231
62231
|
HTMLTextStyle: _h,
|
|
62232
|
-
HTMLTextSystem:
|
|
62232
|
+
HTMLTextSystem: d4,
|
|
62233
62233
|
HardLightBlend: FA,
|
|
62234
62234
|
HardMixBlend: MA,
|
|
62235
62235
|
HelloSystem: Th,
|
|
@@ -62251,7 +62251,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62251
62251
|
Mesh: Yo,
|
|
62252
62252
|
MeshGeometry: Un,
|
|
62253
62253
|
MeshGpuData: Fx,
|
|
62254
|
-
MeshPipe:
|
|
62254
|
+
MeshPipe: bk,
|
|
62255
62255
|
MeshPlane: $W,
|
|
62256
62256
|
MeshRope: eV,
|
|
62257
62257
|
MeshSimple: tV,
|
|
@@ -62259,21 +62259,21 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62259
62259
|
NegationBlend: NA,
|
|
62260
62260
|
NineSliceGeometry: ln,
|
|
62261
62261
|
NineSlicePlane: aV,
|
|
62262
|
-
NineSliceSprite:
|
|
62263
|
-
NineSliceSpriteGpuData:
|
|
62264
|
-
NineSliceSpritePipe:
|
|
62262
|
+
NineSliceSprite: Ok,
|
|
62263
|
+
NineSliceSpriteGpuData: Uk,
|
|
62264
|
+
NineSliceSpritePipe: zk,
|
|
62265
62265
|
NoiseFilter: UH,
|
|
62266
62266
|
ObservablePoint: at,
|
|
62267
62267
|
OverlayBlend: GA,
|
|
62268
62268
|
PI_2: vC,
|
|
62269
62269
|
Particle: nV,
|
|
62270
|
-
ParticleBuffer:
|
|
62270
|
+
ParticleBuffer: Tk,
|
|
62271
62271
|
ParticleContainer: oV,
|
|
62272
62272
|
ParticleContainerPipe: jb,
|
|
62273
|
-
ParticleShader:
|
|
62273
|
+
ParticleShader: Ek,
|
|
62274
62274
|
PassthroughFilter: hI,
|
|
62275
62275
|
PerspectiveMesh: JW,
|
|
62276
|
-
PerspectivePlaneGeometry:
|
|
62276
|
+
PerspectivePlaneGeometry: dk,
|
|
62277
62277
|
PinLightBlend: HA,
|
|
62278
62278
|
PipelineSystem: Lb,
|
|
62279
62279
|
PlaneGeometry: Ah,
|
|
@@ -62285,7 +62285,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62285
62285
|
PrepareQueue: EI,
|
|
62286
62286
|
PrepareSystem: FI,
|
|
62287
62287
|
PrepareUpload: RI,
|
|
62288
|
-
QuadGeometry:
|
|
62288
|
+
QuadGeometry: Hk,
|
|
62289
62289
|
RAD_TO_DEG: xC,
|
|
62290
62290
|
Rectangle: ce,
|
|
62291
62291
|
RenderContainer: GW,
|
|
@@ -62301,7 +62301,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62301
62301
|
RendererType: xr,
|
|
62302
62302
|
ResizePlugin: rE,
|
|
62303
62303
|
Resolver: Dn,
|
|
62304
|
-
RopeGeometry:
|
|
62304
|
+
RopeGeometry: vk,
|
|
62305
62305
|
RoundedRectangle: sh,
|
|
62306
62306
|
SCALE_MODES: UW,
|
|
62307
62307
|
STENCIL_MODES: _t,
|
|
@@ -62309,7 +62309,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62309
62309
|
SaturationBlend: WA,
|
|
62310
62310
|
SchedulerSystem: Tb,
|
|
62311
62311
|
ScissorMask: KH,
|
|
62312
|
-
SdfShader:
|
|
62312
|
+
SdfShader: Jk,
|
|
62313
62313
|
Shader: Mr,
|
|
62314
62314
|
ShaderStage: eo,
|
|
62315
62315
|
ShapePath: YE,
|
|
@@ -62341,9 +62341,9 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62341
62341
|
TickerListener: Fu,
|
|
62342
62342
|
TickerPlugin: iE,
|
|
62343
62343
|
TilingSprite: CI,
|
|
62344
|
-
TilingSpriteGpuData:
|
|
62345
|
-
TilingSpritePipe:
|
|
62346
|
-
TilingSpriteShader:
|
|
62344
|
+
TilingSpriteGpuData: Yk,
|
|
62345
|
+
TilingSpritePipe: qk,
|
|
62346
|
+
TilingSpriteShader: Gk,
|
|
62347
62347
|
Transform: SI,
|
|
62348
62348
|
Triangle: B2,
|
|
62349
62349
|
UNIFORM_TO_ARRAY_SETTERS: cB,
|
|
@@ -62368,7 +62368,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62368
62368
|
WGSL_TO_STD40_SIZE: J2,
|
|
62369
62369
|
WRAP_MODES: OW,
|
|
62370
62370
|
WebGLRenderer: GB,
|
|
62371
|
-
WebGPURenderer:
|
|
62371
|
+
WebGPURenderer: tk,
|
|
62372
62372
|
WebWorkerAdapter: EH,
|
|
62373
62373
|
WorkerManager: gx,
|
|
62374
62374
|
accessibilityTarget: UG,
|
|
@@ -62379,8 +62379,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62379
62379
|
alphaFrag: qP,
|
|
62380
62380
|
alphaWgsl: wx,
|
|
62381
62381
|
appendSVGPath: hx,
|
|
62382
|
-
applyMatrix:
|
|
62383
|
-
applyProjectiveTransformationToPlane:
|
|
62382
|
+
applyMatrix: Vk,
|
|
62383
|
+
applyProjectiveTransformationToPlane: lk,
|
|
62384
62384
|
applyStyleParams: Rx,
|
|
62385
62385
|
assignWithIgnore: xc,
|
|
62386
62386
|
autoDetectEnvironment: HG,
|
|
@@ -62392,7 +62392,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62392
62392
|
bitmapFontTextParser: Du,
|
|
62393
62393
|
bitmapFontXMLParser: fx,
|
|
62394
62394
|
bitmapFontXMLStringParser: px,
|
|
62395
|
-
bitmapTextSplit:
|
|
62395
|
+
bitmapTextSplit: t4,
|
|
62396
62396
|
blendTemplateFrag: SA,
|
|
62397
62397
|
blendTemplateVert: TA,
|
|
62398
62398
|
blendTemplateWgsl: CA,
|
|
@@ -62421,7 +62421,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62421
62421
|
cacheTextureArray: oP,
|
|
62422
62422
|
calculatePathArea: QE,
|
|
62423
62423
|
calculateProjection: ZI,
|
|
62424
|
-
canvasTextSplit:
|
|
62424
|
+
canvasTextSplit: m4,
|
|
62425
62425
|
checkChildrenDidChange: Vy,
|
|
62426
62426
|
checkDataUrl: Is,
|
|
62427
62427
|
checkExtension: Qr,
|
|
@@ -62449,7 +62449,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62449
62449
|
compileInputs: rx,
|
|
62450
62450
|
compileOutputs: gE,
|
|
62451
62451
|
compileShader: Ix,
|
|
62452
|
-
compute2DProjection:
|
|
62452
|
+
compute2DProjection: hk,
|
|
62453
62453
|
convertFormatIfRequired: cH,
|
|
62454
62454
|
convertToList: Vr,
|
|
62455
62455
|
copySearchParams: yc,
|
|
@@ -62494,7 +62494,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62494
62494
|
extensions: Qe,
|
|
62495
62495
|
extractAttributesFromGlProgram: nB,
|
|
62496
62496
|
extractAttributesFromGpuProgram: fA,
|
|
62497
|
-
extractFontFamilies:
|
|
62497
|
+
extractFontFamilies: s4,
|
|
62498
62498
|
extractStructAndGroups: Mu,
|
|
62499
62499
|
extractSubpaths: KE,
|
|
62500
62500
|
extractSvgUrlId: ux,
|
|
@@ -62514,7 +62514,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62514
62514
|
generateGpuLayoutGroups: pA,
|
|
62515
62515
|
generateLayout: XH,
|
|
62516
62516
|
generateLayoutHash: mA,
|
|
62517
|
-
generateParticleUpdateFunction:
|
|
62517
|
+
generateParticleUpdateFunction: Sk,
|
|
62518
62518
|
generateProgram: lB,
|
|
62519
62519
|
generateShaderSyncCode: tB,
|
|
62520
62520
|
generateTextStyleKey: dV,
|
|
@@ -62533,7 +62533,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62533
62533
|
getFastGlobalBounds: NW,
|
|
62534
62534
|
getFastGlobalBoundsMixin: UC,
|
|
62535
62535
|
getFillInstructionData: Q7,
|
|
62536
|
-
getFontCss:
|
|
62536
|
+
getFontCss: l4,
|
|
62537
62537
|
getFontFamilyName: vP,
|
|
62538
62538
|
getGeometryBounds: pE,
|
|
62539
62539
|
getGlTypeFromFormat: HI,
|
|
@@ -62546,12 +62546,12 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62546
62546
|
getOrientationOfPoints: kE,
|
|
62547
62547
|
getPo2TextureFromSource: Kb,
|
|
62548
62548
|
getResolutionOfUrl: gh,
|
|
62549
|
-
getSVGUrl:
|
|
62549
|
+
getSVGUrl: u4,
|
|
62550
62550
|
getSupportedCompressedTextureFormats: C2,
|
|
62551
62551
|
getSupportedGPUCompressedTextureFormats: xx,
|
|
62552
62552
|
getSupportedGlCompressedTextureFormats: vx,
|
|
62553
62553
|
getSupportedTextureFormats: Il,
|
|
62554
|
-
getTemporaryCanvasFromImage:
|
|
62554
|
+
getTemporaryCanvasFromImage: c4,
|
|
62555
62555
|
getTestContext: $y,
|
|
62556
62556
|
getTextureBatchBindGroup: oh,
|
|
62557
62557
|
getTextureDefaultMatrix: rV,
|
|
@@ -62583,7 +62583,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62583
62583
|
isMobile: nA,
|
|
62584
62584
|
isPow2: Gv,
|
|
62585
62585
|
isRenderingToScreen: JI,
|
|
62586
|
-
isSafari:
|
|
62586
|
+
isSafari: n4,
|
|
62587
62587
|
isSingleItem: sl,
|
|
62588
62588
|
isWebGLSupported: Sl,
|
|
62589
62589
|
isWebGPUSupported: Tl,
|
|
@@ -62593,14 +62593,14 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62593
62593
|
loadBitmapFont: nP,
|
|
62594
62594
|
loadDDS: X9,
|
|
62595
62595
|
loadEnvironmentExtensions: t2,
|
|
62596
|
-
loadFontAsBase64:
|
|
62597
|
-
loadFontCSS:
|
|
62596
|
+
loadFontAsBase64: o4,
|
|
62597
|
+
loadFontCSS: a4,
|
|
62598
62598
|
loadImageBitmap: _P,
|
|
62599
62599
|
loadJson: mP,
|
|
62600
62600
|
loadKTX: sH,
|
|
62601
62601
|
loadKTX2: uH,
|
|
62602
62602
|
loadKTX2onWorker: zP,
|
|
62603
|
-
loadSVGImage:
|
|
62603
|
+
loadSVGImage: h4,
|
|
62604
62604
|
loadSvg: yP,
|
|
62605
62605
|
loadTextures: S2,
|
|
62606
62606
|
loadTxt: gP,
|
|
@@ -62609,15 +62609,15 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62609
62609
|
localUniformBit: yo,
|
|
62610
62610
|
localUniformBitGl: wh,
|
|
62611
62611
|
localUniformBitGroup2: DI,
|
|
62612
|
-
localUniformMSDFBit:
|
|
62613
|
-
localUniformMSDFBitGl:
|
|
62612
|
+
localUniformMSDFBit: jk,
|
|
62613
|
+
localUniformMSDFBitGl: Kk,
|
|
62614
62614
|
log2: sG,
|
|
62615
62615
|
logDebugTexture: gV,
|
|
62616
62616
|
logProgramError: aB,
|
|
62617
|
-
logRenderGroupScene:
|
|
62618
|
-
logScene:
|
|
62619
|
-
mSDFBit:
|
|
62620
|
-
mSDFBitGl:
|
|
62617
|
+
logRenderGroupScene: w4,
|
|
62618
|
+
logScene: _4,
|
|
62619
|
+
mSDFBit: Qk,
|
|
62620
|
+
mSDFBitGl: Zk,
|
|
62621
62621
|
mapFormatToGlFormat: _B,
|
|
62622
62622
|
mapFormatToGlInternalFormat: wB,
|
|
62623
62623
|
mapFormatToGlType: SB,
|
|
@@ -62649,8 +62649,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62649
62649
|
parseSVGPath: sE,
|
|
62650
62650
|
parseSVGStyle: x2,
|
|
62651
62651
|
particleData: Ux,
|
|
62652
|
-
particlesFrag:
|
|
62653
|
-
particlesVert:
|
|
62652
|
+
particlesFrag: Ck,
|
|
62653
|
+
particlesVert: Ak,
|
|
62654
62654
|
particlesWgsl: Dx,
|
|
62655
62655
|
passthroughFrag: cI,
|
|
62656
62656
|
passthroughWgsl: Ax,
|
|
@@ -62673,9 +62673,9 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62673
62673
|
scaleModeToGlFilter: kx,
|
|
62674
62674
|
setBasisTranscoderPath: F9,
|
|
62675
62675
|
setKTXTranscoderPath: aH,
|
|
62676
|
-
setPositions:
|
|
62676
|
+
setPositions: Wk,
|
|
62677
62677
|
setProgramName: cA,
|
|
62678
|
-
setUvs:
|
|
62678
|
+
setUvs: Xk,
|
|
62679
62679
|
shapeBuilders: Xo,
|
|
62680
62680
|
sortMixin: WC,
|
|
62681
62681
|
spritesheetAsset: iA,
|
|
@@ -62688,8 +62688,8 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62688
62688
|
textureBit: OI,
|
|
62689
62689
|
textureBitGl: UI,
|
|
62690
62690
|
textureFrom: ZC,
|
|
62691
|
-
tilingBit:
|
|
62692
|
-
tilingBitGl:
|
|
62691
|
+
tilingBit: Lk,
|
|
62692
|
+
tilingBitGl: Nk,
|
|
62693
62693
|
toFillStyle: yn,
|
|
62694
62694
|
toLocalGlobalMixin: VC,
|
|
62695
62695
|
toStrokeStyle: hl,
|
|
@@ -67222,6 +67222,17 @@ class sq extends vy {
|
|
|
67222
67222
|
const t = this._volume !== e;
|
|
67223
67223
|
this._volume = e, t && this.emit("propsChange", { volume: e });
|
|
67224
67224
|
}
|
|
67225
|
+
_locked = !1;
|
|
67226
|
+
/**
|
|
67227
|
+
* Whether the sprite is locked (preventing interactions)
|
|
67228
|
+
*/
|
|
67229
|
+
get locked() {
|
|
67230
|
+
return this._locked;
|
|
67231
|
+
}
|
|
67232
|
+
set locked(e) {
|
|
67233
|
+
const t = this._locked !== e;
|
|
67234
|
+
this._locked = e, t && this.emit("propsChange", { locked: e });
|
|
67235
|
+
}
|
|
67225
67236
|
/**
|
|
67226
67237
|
* Flip clip horizontally or vertically
|
|
67227
67238
|
*/
|
|
@@ -67416,7 +67427,7 @@ class sq extends vy {
|
|
|
67416
67427
|
* Used for cloning or copying state between {@link OffscreenSprite} instances
|
|
67417
67428
|
*/
|
|
67418
67429
|
copyStateTo(e) {
|
|
67419
|
-
e.animatKeyFrame = this.animatKeyFrame, e.animatOpts = this.animatOpts, e.zIndex = this.zIndex, e.opacity = this.opacity, e.volume = this.volume, e.flip = this.flip, e.left = this.left, e.top = this.top, e.width = this.width, e.height = this.height, e.angle = this.angle, e.display = { ...this.display }, e.duration = this.duration, e.playbackRate = this.playbackRate, e.trim = { ...this.trim }, e.style = JSON.parse(JSON.stringify(this.style || {})), e.animations = [...this.animations], e.chromaKey = { ...this.chromaKey }, "src" in this && "src" in e && (e.src = this.src);
|
|
67430
|
+
e.animatKeyFrame = this.animatKeyFrame, e.animatOpts = this.animatOpts, e.zIndex = this.zIndex, e.opacity = this.opacity, e.volume = this.volume, e.flip = this.flip, e.left = this.left, e.top = this.top, e.width = this.width, e.height = this.height, e.angle = this.angle, e.display = { ...this.display }, e.duration = this.duration, e.playbackRate = this.playbackRate, e.trim = { ...this.trim }, e.style = JSON.parse(JSON.stringify(this.style || {})), e.animations = [...this.animations], e.chromaKey = { ...this.chromaKey }, e.locked = this.locked, "src" in this && "src" in e && (e.src = this.src);
|
|
67420
67431
|
}
|
|
67421
67432
|
/**
|
|
67422
67433
|
* Update multiple properties at once
|
|
@@ -67596,7 +67607,8 @@ class zn extends sq {
|
|
|
67596
67607
|
...t && { animation: t },
|
|
67597
67608
|
...i.length > 0 && { animations: i },
|
|
67598
67609
|
...e && { main: !0 },
|
|
67599
|
-
chromaKey: this.chromaKey
|
|
67610
|
+
chromaKey: this.chromaKey,
|
|
67611
|
+
locked: this.locked
|
|
67600
67612
|
};
|
|
67601
67613
|
}
|
|
67602
67614
|
/**
|
|
@@ -68070,11 +68082,11 @@ function pt(r) {
|
|
|
68070
68082
|
}
|
|
68071
68083
|
}
|
|
68072
68084
|
}
|
|
68073
|
-
const
|
|
68085
|
+
const S4 = (r) => r === "transparent", on = (r, e = 16777215) => S4(r) ? { color: e, alpha: 0 } : {
|
|
68074
68086
|
color: pt(r) ?? e,
|
|
68075
68087
|
alpha: 1
|
|
68076
68088
|
};
|
|
68077
|
-
function
|
|
68089
|
+
function T4(r) {
|
|
68078
68090
|
try {
|
|
68079
68091
|
const t = new ye(r).toRgbArray();
|
|
68080
68092
|
return {
|
|
@@ -68644,7 +68656,7 @@ class Ts extends zn {
|
|
|
68644
68656
|
u.value < 1 && u.mode === "dynamic" && a ? v = u.value + (1 - u.value) * c : v = 1 + (u.value - 1) * c, n.scale.set(v, v);
|
|
68645
68657
|
}
|
|
68646
68658
|
}
|
|
68647
|
-
const d = o.isKeyWord && !
|
|
68659
|
+
const d = o.isKeyWord && !S4(this.opts.keyword);
|
|
68648
68660
|
let f = 16777215, p = 1;
|
|
68649
68661
|
if (o.isKeyWord && a && d)
|
|
68650
68662
|
({ color: f, alpha: p } = on(
|
|
@@ -69125,7 +69137,7 @@ let Rc = class an extends zn {
|
|
|
69125
69137
|
`Failed to decode image from ${e.src}. The image may be decoded, in an unsupported format, or there may be CORS issues.`
|
|
69126
69138
|
) : i;
|
|
69127
69139
|
}
|
|
69128
|
-
return t.left = e.left, t.top = e.top, t.width = e.width, t.height = e.height, t.angle = e.angle, t.display.from = e.display.from, t.display.to = e.display.to, t.duration = e.duration, t.playbackRate = e.playbackRate, t.zIndex = e.zIndex, t.opacity = e.opacity, t.flip = e.flip, e.style && (t.style = { ...t.style, ...e.style }), e.animation && t.setAnimation(e.animation.keyFrames, e.animation.opts), e.id && (t.id = e.id), e.effects && (t.effects = e.effects), e.transition && (t.transition = e.transition), e.chromaKey && (t.chromaKey = { ...t.chromaKey, ...e.chromaKey }), t;
|
|
69140
|
+
return t.left = e.left, t.top = e.top, t.width = e.width, t.height = e.height, t.angle = e.angle, t.display.from = e.display.from, t.display.to = e.display.to, t.duration = e.duration, t.playbackRate = e.playbackRate, t.zIndex = e.zIndex, t.opacity = e.opacity, t.flip = e.flip, e.style && (t.style = { ...t.style, ...e.style }), e.animation && t.setAnimation(e.animation.keyFrames, e.animation.opts), e.id && (t.id = e.id), e.effects && (t.effects = e.effects), e.transition && (t.transition = e.transition), e.chromaKey && (t.chromaKey = { ...t.chromaKey, ...e.chromaKey }), e.locked !== void 0 && (t.locked = e.locked), t;
|
|
69129
69141
|
}
|
|
69130
69142
|
};
|
|
69131
69143
|
function Zb(r, e) {
|
|
@@ -69483,7 +69495,7 @@ class Gr extends zn {
|
|
|
69483
69495
|
const { start: p = 0, end: m = this._meta.duration, step: g } = t ?? {};
|
|
69484
69496
|
if (g) {
|
|
69485
69497
|
let v = p;
|
|
69486
|
-
for (this.thumbFinder && (await this.thumbFinder.destroy(), this.thumbFinder = null), this.thumbFinder = new
|
|
69498
|
+
for (this.thumbFinder && (await this.thumbFinder.destroy(), this.thumbFinder = null), this.thumbFinder = new C4(
|
|
69487
69499
|
await this.localFile.createReader(),
|
|
69488
69500
|
this.videoSamples,
|
|
69489
69501
|
{
|
|
@@ -69644,7 +69656,7 @@ class Gr extends zn {
|
|
|
69644
69656
|
if (e.type !== "Video")
|
|
69645
69657
|
throw new Error(`Expected Video, got ${e.type}`);
|
|
69646
69658
|
const t = e.audio !== void 0 ? { audio: e.audio, volume: e.volume } : { volume: e.volume }, i = await Do.getReadableStream(e.src), n = new Gr(i, t, e.src);
|
|
69647
|
-
return n.left = e.left, n.top = e.top, n.width = e.width, n.height = e.height, n.angle = e.angle, n.display.from = e.display.from, n.display.to = e.display.to, n.duration = e.duration, n.playbackRate = e.playbackRate, n.zIndex = e.zIndex, n.opacity = e.opacity, n.flip = e.flip, e.style && (n.style = { ...n.style, ...e.style }), e.animation && n.setAnimation(e.animation.keyFrames, e.animation.opts), e.id && (n.id = e.id), e.effects && (n.effects = e.effects), e.transition && (n.transition = e.transition), e.trim && (n.trim.from = e.trim.from < 1e6 ? e.trim.from * 1e6 : e.trim.from, n.trim.to = e.trim.to < 1e6 ? e.trim.to * 1e6 : e.trim.to), e.volume !== void 0 && (n.volume = e.volume), e.chromaKey && (n.chromaKey = { ...n.chromaKey, ...e.chromaKey }), n;
|
|
69659
|
+
return n.left = e.left, n.top = e.top, n.width = e.width, n.height = e.height, n.angle = e.angle, n.display.from = e.display.from, n.display.to = e.display.to, n.duration = e.duration, n.playbackRate = e.playbackRate, n.zIndex = e.zIndex, n.opacity = e.opacity, n.flip = e.flip, e.style && (n.style = { ...n.style, ...e.style }), e.animation && n.setAnimation(e.animation.keyFrames, e.animation.opts), e.id && (n.id = e.id), e.effects && (n.effects = e.effects), e.transition && (n.transition = e.transition), e.trim && (n.trim.from = e.trim.from < 1e6 ? e.trim.from * 1e6 : e.trim.from, n.trim.to = e.trim.to < 1e6 ? e.trim.to * 1e6 : e.trim.to), e.volume !== void 0 && (n.volume = e.volume), e.chromaKey && (n.chromaKey = { ...n.chromaKey, ...e.chromaKey }), e.locked !== void 0 && (n.locked = e.locked), n;
|
|
69648
69660
|
}
|
|
69649
69661
|
/**
|
|
69650
69662
|
* Create HTMLVideoElement for playback
|
|
@@ -69783,7 +69795,7 @@ function vq(r, e, t, i, n) {
|
|
|
69783
69795
|
targetSampleRate: nt.sampleRate
|
|
69784
69796
|
}
|
|
69785
69797
|
),
|
|
69786
|
-
videoFrameFinder: r.video == null || t.length === 0 ? null : new
|
|
69798
|
+
videoFrameFinder: r.video == null || t.length === 0 ? null : new C4(
|
|
69787
69799
|
e,
|
|
69788
69800
|
t,
|
|
69789
69801
|
r.video
|
|
@@ -69878,7 +69890,7 @@ function nS(r, e = 0, t) {
|
|
|
69878
69890
|
data: t === "video" ? null : r.data
|
|
69879
69891
|
};
|
|
69880
69892
|
}
|
|
69881
|
-
class
|
|
69893
|
+
class C4 {
|
|
69882
69894
|
constructor(e, t, i) {
|
|
69883
69895
|
this.localFileReader = e, this.samples = t, this.conf = i;
|
|
69884
69896
|
}
|
|
@@ -69940,7 +69952,7 @@ class Ck {
|
|
|
69940
69952
|
if (n[0]?.is_idr !== !0)
|
|
69941
69953
|
ze.warn("First sample not idr frame");
|
|
69942
69954
|
else {
|
|
69943
|
-
const s = performance.now(), o = await
|
|
69955
|
+
const s = performance.now(), o = await A4(n, this.localFileReader), a = performance.now() - s;
|
|
69944
69956
|
if (a > 1e3) {
|
|
69945
69957
|
const l = n[0], u = n.at(-1), c = u.offset + u.size - l.offset;
|
|
69946
69958
|
ze.warn(
|
|
@@ -70014,7 +70026,7 @@ class Ck {
|
|
|
70014
70026
|
softDecode: this.downgradeSoftDecode,
|
|
70015
70027
|
clipIdCnt: Jb,
|
|
70016
70028
|
sleepCnt: this.sleepCnt,
|
|
70017
|
-
memInfo:
|
|
70029
|
+
memInfo: E4()
|
|
70018
70030
|
});
|
|
70019
70031
|
destroy = async () => {
|
|
70020
70032
|
if (this.curAborter.abort = !0, this.videoFrames.forEach((e) => e.close()), this.videoFrames = [], this.decoder && this.decoder.state !== "closed") {
|
|
@@ -70132,7 +70144,7 @@ class yq {
|
|
|
70132
70144
|
pcmLen: this.pcmData.frameCnt,
|
|
70133
70145
|
clipIdCnt: Jb,
|
|
70134
70146
|
sleepCnt: this.sleepCnt,
|
|
70135
|
-
memInfo:
|
|
70147
|
+
memInfo: E4()
|
|
70136
70148
|
});
|
|
70137
70149
|
destroy = () => {
|
|
70138
70150
|
this.decoder = null, this.curAborter.abort = !0, this.pcmData = {
|
|
@@ -70228,7 +70240,7 @@ function sS(r, e) {
|
|
|
70228
70240
|
}
|
|
70229
70241
|
return r.data = r.data.slice(n), r.frameCnt -= e, t;
|
|
70230
70242
|
}
|
|
70231
|
-
async function
|
|
70243
|
+
async function A4(r, e) {
|
|
70232
70244
|
const t = r[0], i = r.at(-1);
|
|
70233
70245
|
if (i == null) return [];
|
|
70234
70246
|
const n = i.offset + i.size - t.offset;
|
|
@@ -70336,7 +70348,7 @@ function Nx(r) {
|
|
|
70336
70348
|
}
|
|
70337
70349
|
t != null && t.cts < 2e5 && (t.duration += t.cts, t.cts = 0);
|
|
70338
70350
|
}
|
|
70339
|
-
function
|
|
70351
|
+
function E4() {
|
|
70340
70352
|
try {
|
|
70341
70353
|
const r = performance.memory;
|
|
70342
70354
|
return {
|
|
@@ -70351,7 +70363,7 @@ function Ek() {
|
|
|
70351
70363
|
}
|
|
70352
70364
|
}
|
|
70353
70365
|
async function Cq(r, e, t, i, n, s) {
|
|
70354
|
-
const o = await e.createReader(), a = await
|
|
70366
|
+
const o = await e.createReader(), a = await A4(
|
|
70355
70367
|
r.filter(
|
|
70356
70368
|
(c) => !c.deleted && c.is_sync && c.cts >= n.start && c.cts <= n.end
|
|
70357
70369
|
),
|
|
@@ -71115,7 +71127,7 @@ class Xi extends zn {
|
|
|
71115
71127
|
return t.transitionEffect = e.transitionEffect, t.fromClipId = e.fromClipId || null, t.toClipId = e.toClipId || null, t.left = e.left, t.top = e.top, t.width = e.width, t.height = e.height, t.angle = e.angle, t.display.from = e.display.from, t.display.to = e.display.to, t.duration = e.duration, t.playbackRate = e.playbackRate, t.zIndex = e.zIndex, t.opacity = e.opacity, t.flip = e.flip, e.animation && t.setAnimation(e.animation.keyFrames, e.animation.opts), e.id && (t.id = e.id), await t.ready, t;
|
|
71116
71128
|
}
|
|
71117
71129
|
}
|
|
71118
|
-
function
|
|
71130
|
+
function P4(r, e) {
|
|
71119
71131
|
let t = !1;
|
|
71120
71132
|
async function i() {
|
|
71121
71133
|
const n = r.getReader();
|
|
@@ -71133,7 +71145,7 @@ function Pk(r, e) {
|
|
|
71133
71145
|
t = !0;
|
|
71134
71146
|
};
|
|
71135
71147
|
}
|
|
71136
|
-
class
|
|
71148
|
+
class I4 {
|
|
71137
71149
|
readable;
|
|
71138
71150
|
writable;
|
|
71139
71151
|
inputBufOffset = 0;
|
|
@@ -71266,7 +71278,7 @@ async function kq(r, e) {
|
|
|
71266
71278
|
for (const c of r) {
|
|
71267
71279
|
let h = null, d = null, f = null, p = null;
|
|
71268
71280
|
if (await new Promise(async (m) => {
|
|
71269
|
-
|
|
71281
|
+
P4(c.pipeThrough(new I4()), {
|
|
71270
71282
|
onDone: m,
|
|
71271
71283
|
onChunk: async ({ chunkType: g, data: v }) => {
|
|
71272
71284
|
if (g === "ready") {
|
|
@@ -71431,7 +71443,7 @@ function Ote(r, e) {
|
|
|
71431
71443
|
u || (u = !0, h?.(E));
|
|
71432
71444
|
};
|
|
71433
71445
|
let f = null, p = null, m = [], g = 0, v = 0, x = 0, y = !0, b = nt.sampleRate;
|
|
71434
|
-
|
|
71446
|
+
P4(r.pipeThrough(new I4()), {
|
|
71435
71447
|
onDone: async () => {
|
|
71436
71448
|
await p?.stop(), f?.close(), d();
|
|
71437
71449
|
},
|
|
@@ -71795,7 +71807,7 @@ void main(void)
|
|
|
71795
71807
|
intensity: { value: 0.5, type: "f32" },
|
|
71796
71808
|
sliceCount: { value: 12, type: "f32" },
|
|
71797
71809
|
rgbShift: { value: 0.01, type: "f32" }
|
|
71798
|
-
},
|
|
71810
|
+
}, B4 = `
|
|
71799
71811
|
in vec2 vTextureCoord;
|
|
71800
71812
|
in vec4 vColor;
|
|
71801
71813
|
|
|
@@ -71826,7 +71838,7 @@ void main(void)
|
|
|
71826
71838
|
|
|
71827
71839
|
gl_FragColor = color;
|
|
71828
71840
|
}
|
|
71829
|
-
`,
|
|
71841
|
+
`, k4 = {
|
|
71830
71842
|
pixelSize: { value: 0.02, type: "f32" },
|
|
71831
71843
|
uTime: { value: 0, type: "f32" },
|
|
71832
71844
|
jitterStrength: { value: 0.8, type: "f32" }
|
|
@@ -74735,7 +74747,7 @@ void main() {
|
|
|
74735
74747
|
uZoomSpeed: { value: 5, type: "f32" },
|
|
74736
74748
|
uMaxZoom: { value: 2, type: "f32" },
|
|
74737
74749
|
uBlurStrength: { value: 0.01, type: "f32" }
|
|
74738
|
-
},
|
|
74750
|
+
}, R4 = `
|
|
74739
74751
|
precision highp float;
|
|
74740
74752
|
|
|
74741
74753
|
varying vec2 vTextureCoord;
|
|
@@ -74836,8 +74848,8 @@ const vQ = {
|
|
|
74836
74848
|
},
|
|
74837
74849
|
pixelate: {
|
|
74838
74850
|
label: "Pixelate",
|
|
74839
|
-
fragment:
|
|
74840
|
-
uniforms:
|
|
74851
|
+
fragment: B4,
|
|
74852
|
+
uniforms: k4
|
|
74841
74853
|
},
|
|
74842
74854
|
rgbGlitch: {
|
|
74843
74855
|
label: "RGB Glitch",
|
|
@@ -75165,7 +75177,7 @@ const vQ = {
|
|
|
75165
75177
|
uniforms: gQ
|
|
75166
75178
|
}
|
|
75167
75179
|
};
|
|
75168
|
-
function
|
|
75180
|
+
function F4() {
|
|
75169
75181
|
return {
|
|
75170
75182
|
...vQ,
|
|
75171
75183
|
...Ph
|
|
@@ -75173,7 +75185,7 @@ function Fk() {
|
|
|
75173
75185
|
}
|
|
75174
75186
|
function xQ() {
|
|
75175
75187
|
const r = Object.keys(Ph);
|
|
75176
|
-
return Object.entries(
|
|
75188
|
+
return Object.entries(F4()).map(([e, t]) => ({
|
|
75177
75189
|
key: e,
|
|
75178
75190
|
label: t.label,
|
|
75179
75191
|
isCustom: r.includes(e),
|
|
@@ -75320,13 +75332,13 @@ fn mainFragment(
|
|
|
75320
75332
|
}
|
|
75321
75333
|
|
|
75322
75334
|
return sample * color.a;
|
|
75323
|
-
}`, _Q = Object.defineProperty, wQ = (r, e, t) => e in r ? _Q(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t,
|
|
75324
|
-
const
|
|
75335
|
+
}`, _Q = Object.defineProperty, wQ = (r, e, t) => e in r ? _Q(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, M4 = (r, e, t) => (wQ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
75336
|
+
const D4 = class O4 extends ge {
|
|
75325
75337
|
/**
|
|
75326
75338
|
* @param options - The options of the adjustment filter.
|
|
75327
75339
|
*/
|
|
75328
75340
|
constructor(e) {
|
|
75329
|
-
e = { ...
|
|
75341
|
+
e = { ...O4.DEFAULT_OPTIONS, ...e };
|
|
75330
75342
|
const t = pe.from({
|
|
75331
75343
|
vertex: {
|
|
75332
75344
|
source: Me,
|
|
@@ -75361,7 +75373,7 @@ const Dk = class Ok extends ge {
|
|
|
75361
75373
|
}
|
|
75362
75374
|
}
|
|
75363
75375
|
}
|
|
75364
|
-
}),
|
|
75376
|
+
}), M4(this, "uniforms"), this.uniforms = this.resources.adjustmentUniforms.uniforms;
|
|
75365
75377
|
}
|
|
75366
75378
|
/**
|
|
75367
75379
|
* Amount of luminance
|
|
@@ -75444,7 +75456,7 @@ const Dk = class Ok extends ge {
|
|
|
75444
75456
|
this.uniforms.uColor[3] = e;
|
|
75445
75457
|
}
|
|
75446
75458
|
};
|
|
75447
|
-
|
|
75459
|
+
M4(D4, "DEFAULT_OPTIONS", {
|
|
75448
75460
|
gamma: 1,
|
|
75449
75461
|
contrast: 1,
|
|
75450
75462
|
saturation: 1,
|
|
@@ -75454,7 +75466,7 @@ Mk(Dk, "DEFAULT_OPTIONS", {
|
|
|
75454
75466
|
blue: 1,
|
|
75455
75467
|
alpha: 1
|
|
75456
75468
|
});
|
|
75457
|
-
let SQ =
|
|
75469
|
+
let SQ = D4;
|
|
75458
75470
|
var TQ = `
|
|
75459
75471
|
in vec2 vTextureCoord;
|
|
75460
75472
|
out vec4 finalColor;
|
|
@@ -75581,11 +75593,11 @@ fn mainFragment(
|
|
|
75581
75593
|
|
|
75582
75594
|
return color;
|
|
75583
75595
|
}`, PQ = Object.defineProperty, IQ = (r, e, t) => e in r ? PQ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, ts = (r, e, t) => (IQ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
75584
|
-
const
|
|
75596
|
+
const U4 = class z4 extends ge {
|
|
75585
75597
|
/** @ignore */
|
|
75586
75598
|
constructor(...e) {
|
|
75587
75599
|
let t = e[0] ?? {};
|
|
75588
|
-
(typeof t == "number" || Array.isArray(t)) && (J("6.0.0", "KawaseBlurFilter constructor params are now options object. See params: { strength, quality, clamp, pixelSize }"), t = { strength: t }, e[1] !== void 0 && (t.quality = e[1]), e[2] !== void 0 && (t.clamp = e[2])), t = { ...
|
|
75600
|
+
(typeof t == "number" || Array.isArray(t)) && (J("6.0.0", "KawaseBlurFilter constructor params are now options object. See params: { strength, quality, clamp, pixelSize }"), t = { strength: t }, e[1] !== void 0 && (t.quality = e[1]), e[2] !== void 0 && (t.clamp = e[2])), t = { ...z4.DEFAULT_OPTIONS, ...t };
|
|
75589
75601
|
const i = pe.from({
|
|
75590
75602
|
vertex: {
|
|
75591
75603
|
source: Me,
|
|
@@ -75720,13 +75732,13 @@ const Uk = class zk extends ge {
|
|
|
75720
75732
|
this._kernels = i, this._updatePadding();
|
|
75721
75733
|
}
|
|
75722
75734
|
};
|
|
75723
|
-
ts(
|
|
75735
|
+
ts(U4, "DEFAULT_OPTIONS", {
|
|
75724
75736
|
strength: 4,
|
|
75725
75737
|
quality: 3,
|
|
75726
75738
|
clamp: !1,
|
|
75727
75739
|
pixelSize: { x: 1, y: 1 }
|
|
75728
75740
|
});
|
|
75729
|
-
let e1 =
|
|
75741
|
+
let e1 = U4;
|
|
75730
75742
|
var BQ = `in vec2 vTextureCoord;
|
|
75731
75743
|
out vec4 finalColor;
|
|
75732
75744
|
|
|
@@ -75810,10 +75822,10 @@ fn mainFragment(
|
|
|
75810
75822
|
|
|
75811
75823
|
return select(vec4<f32>(0.), color, brightness > extractBrightnessUniforms.uThreshold);
|
|
75812
75824
|
}
|
|
75813
|
-
`, MQ = Object.defineProperty, DQ = (r, e, t) => e in r ? MQ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t,
|
|
75814
|
-
const
|
|
75825
|
+
`, MQ = Object.defineProperty, DQ = (r, e, t) => e in r ? MQ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, L4 = (r, e, t) => (DQ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
75826
|
+
const N4 = class G4 extends ge {
|
|
75815
75827
|
constructor(e) {
|
|
75816
|
-
e = { ...
|
|
75828
|
+
e = { ...G4.DEFAULT_OPTIONS, ...e };
|
|
75817
75829
|
const t = pe.from({
|
|
75818
75830
|
vertex: {
|
|
75819
75831
|
source: Me,
|
|
@@ -75836,7 +75848,7 @@ const Nk = class Gk extends ge {
|
|
|
75836
75848
|
uThreshold: { value: e.threshold, type: "f32" }
|
|
75837
75849
|
}
|
|
75838
75850
|
}
|
|
75839
|
-
}),
|
|
75851
|
+
}), L4(this, "uniforms"), this.uniforms = this.resources.extractBrightnessUniforms.uniforms;
|
|
75840
75852
|
}
|
|
75841
75853
|
/**
|
|
75842
75854
|
* Defines how bright a color needs to be extracted.
|
|
@@ -75849,17 +75861,17 @@ const Nk = class Gk extends ge {
|
|
|
75849
75861
|
this.uniforms.uThreshold = e;
|
|
75850
75862
|
}
|
|
75851
75863
|
};
|
|
75852
|
-
|
|
75864
|
+
L4(N4, "DEFAULT_OPTIONS", {
|
|
75853
75865
|
threshold: 0.5
|
|
75854
75866
|
});
|
|
75855
|
-
let OQ =
|
|
75867
|
+
let OQ = N4;
|
|
75856
75868
|
var UQ = Object.defineProperty, zQ = (r, e, t) => e in r ? UQ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Ws = (r, e, t) => (zQ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
75857
|
-
const
|
|
75869
|
+
const H4 = class W4 extends ge {
|
|
75858
75870
|
/**
|
|
75859
75871
|
* @param options - Options for the AdvancedBloomFilter constructor.
|
|
75860
75872
|
*/
|
|
75861
75873
|
constructor(e) {
|
|
75862
|
-
e = { ...
|
|
75874
|
+
e = { ...W4.DEFAULT_OPTIONS, ...e };
|
|
75863
75875
|
const t = pe.from({
|
|
75864
75876
|
vertex: {
|
|
75865
75877
|
source: Me,
|
|
@@ -75970,7 +75982,7 @@ const Hk = class Wk extends ge {
|
|
|
75970
75982
|
this._blurFilter.pixelSizeY = e;
|
|
75971
75983
|
}
|
|
75972
75984
|
};
|
|
75973
|
-
Ws(
|
|
75985
|
+
Ws(H4, "DEFAULT_OPTIONS", {
|
|
75974
75986
|
threshold: 0.5,
|
|
75975
75987
|
bloomScale: 1,
|
|
75976
75988
|
brightness: 1,
|
|
@@ -75978,7 +75990,7 @@ Ws(Hk, "DEFAULT_OPTIONS", {
|
|
|
75978
75990
|
quality: 4,
|
|
75979
75991
|
pixelSize: { x: 1, y: 1 }
|
|
75980
75992
|
});
|
|
75981
|
-
let LQ =
|
|
75993
|
+
let LQ = H4;
|
|
75982
75994
|
var NQ = `precision highp float;
|
|
75983
75995
|
in vec2 vTextureCoord;
|
|
75984
75996
|
out vec4 finalColor;
|
|
@@ -76178,13 +76190,13 @@ fn unmapCoord(coord: vec2<f32> ) -> vec2<f32>
|
|
|
76178
76190
|
mappedCoord /= gfu.uInputSize.xy;
|
|
76179
76191
|
return mappedCoord;
|
|
76180
76192
|
}`, HQ = Object.defineProperty, WQ = (r, e, t) => e in r ? HQ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Gx = (r, e, t) => (WQ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
76181
|
-
const
|
|
76193
|
+
const V4 = class X4 extends ge {
|
|
76182
76194
|
/** @ignore */
|
|
76183
76195
|
constructor(...e) {
|
|
76184
76196
|
let t = e[0] ?? {};
|
|
76185
76197
|
typeof t == "number" && (J("6.0.0", "AsciiFilter constructor params are now options object. See params: { size, color, replaceColor }"), t = { size: t });
|
|
76186
76198
|
const i = t?.color && t.replaceColor !== !1;
|
|
76187
|
-
t = { ...
|
|
76199
|
+
t = { ...X4.DEFAULT_OPTIONS, ...t };
|
|
76188
76200
|
const n = pe.from({
|
|
76189
76201
|
vertex: {
|
|
76190
76202
|
source: Me,
|
|
@@ -76244,12 +76256,12 @@ const Vk = class Xk extends ge {
|
|
|
76244
76256
|
this.uniforms.uReplaceColor = e ? 1 : 0;
|
|
76245
76257
|
}
|
|
76246
76258
|
};
|
|
76247
|
-
Gx(
|
|
76259
|
+
Gx(V4, "DEFAULT_OPTIONS", {
|
|
76248
76260
|
size: 8,
|
|
76249
76261
|
color: 16777215,
|
|
76250
76262
|
replaceColor: !1
|
|
76251
76263
|
});
|
|
76252
|
-
let VQ =
|
|
76264
|
+
let VQ = V4;
|
|
76253
76265
|
var XQ = `precision highp float;
|
|
76254
76266
|
in vec2 vTextureCoord;
|
|
76255
76267
|
out vec4 finalColor;
|
|
@@ -76391,12 +76403,12 @@ fn mainFragment(
|
|
|
76391
76403
|
|
|
76392
76404
|
return vec4<f32>(color.rgb * color.a, color.a);
|
|
76393
76405
|
}`, $Q = Object.defineProperty, eZ = (r, e, t) => e in r ? $Q(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Vs = (r, e, t) => (eZ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
76394
|
-
const
|
|
76406
|
+
const Y4 = class q4 extends ge {
|
|
76395
76407
|
/**
|
|
76396
76408
|
* @param options - Options for the BevelFilter constructor.
|
|
76397
76409
|
*/
|
|
76398
76410
|
constructor(e) {
|
|
76399
|
-
e = { ...
|
|
76411
|
+
e = { ...q4.DEFAULT_OPTIONS, ...e };
|
|
76400
76412
|
const t = pe.from({
|
|
76401
76413
|
vertex: {
|
|
76402
76414
|
source: Me,
|
|
@@ -76502,7 +76514,7 @@ const Yk = class qk extends ge {
|
|
|
76502
76514
|
this.uniforms.uTransform[0] = this.thickness * Math.cos(this._rotation), this.uniforms.uTransform[1] = this.thickness * Math.sin(this._rotation);
|
|
76503
76515
|
}
|
|
76504
76516
|
};
|
|
76505
|
-
Vs(
|
|
76517
|
+
Vs(Y4, "DEFAULT_OPTIONS", {
|
|
76506
76518
|
rotation: 45,
|
|
76507
76519
|
thickness: 2,
|
|
76508
76520
|
lightColor: 16777215,
|
|
@@ -76510,9 +76522,9 @@ Vs(Yk, "DEFAULT_OPTIONS", {
|
|
|
76510
76522
|
shadowColor: 0,
|
|
76511
76523
|
shadowAlpha: 0.7
|
|
76512
76524
|
});
|
|
76513
|
-
let tZ =
|
|
76525
|
+
let tZ = Y4;
|
|
76514
76526
|
var rZ = Object.defineProperty, iZ = (r, e, t) => e in r ? rZ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Wu = (r, e, t) => (iZ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
76515
|
-
const
|
|
76527
|
+
const j4 = class K4 extends QP {
|
|
76516
76528
|
/** @ignore */
|
|
76517
76529
|
constructor(...e) {
|
|
76518
76530
|
let t = e[0] ?? {};
|
|
@@ -76521,7 +76533,7 @@ const jk = class Kk extends QP {
|
|
|
76521
76533
|
let i = t;
|
|
76522
76534
|
Array.isArray(i) && (i = { x: i[0], y: i[1] }), t = { strength: i }, e[1] !== void 0 && (t.quality = e[1]), e[2] !== void 0 && (t.resolution = e[2]), e[3] !== void 0 && (t.kernelSize = e[3]);
|
|
76523
76535
|
}
|
|
76524
|
-
t = { ...
|
|
76536
|
+
t = { ...K4.DEFAULT_OPTIONS, ...t }, super(), Wu(this, "_blurXFilter"), Wu(this, "_blurYFilter"), Wu(this, "_strength"), this._strength = { x: 2, y: 2 }, t.strength && (typeof t.strength == "number" ? (this._strength.x = t.strength, this._strength.y = t.strength) : (this._strength.x = t.strength.x, this._strength.y = t.strength.y)), this._blurXFilter = new go({
|
|
76525
76537
|
...t,
|
|
76526
76538
|
horizontal: !0,
|
|
76527
76539
|
strength: this.strengthX
|
|
@@ -76613,13 +76625,13 @@ const jk = class Kk extends QP {
|
|
|
76613
76625
|
J("6.0.0", "BloomFilter.blurY is deprecated, please use BloomFilter.strengthY instead"), this.strengthY = e;
|
|
76614
76626
|
}
|
|
76615
76627
|
};
|
|
76616
|
-
Wu(
|
|
76628
|
+
Wu(j4, "DEFAULT_OPTIONS", {
|
|
76617
76629
|
strength: { x: 2, y: 2 },
|
|
76618
76630
|
quality: 4,
|
|
76619
76631
|
resolution: 1,
|
|
76620
76632
|
kernelSize: 5
|
|
76621
76633
|
});
|
|
76622
|
-
let nZ =
|
|
76634
|
+
let nZ = j4;
|
|
76623
76635
|
var sZ = `precision highp float;
|
|
76624
76636
|
in vec2 vTextureCoord;
|
|
76625
76637
|
out vec4 finalColor;
|
|
@@ -76722,13 +76734,13 @@ fn compareVec2(x: vec2<f32>, y: vec2<f32>) -> bool
|
|
|
76722
76734
|
}
|
|
76723
76735
|
|
|
76724
76736
|
return false;
|
|
76725
|
-
}`, aZ = Object.defineProperty, lZ = (r, e, t) => e in r ? aZ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t,
|
|
76726
|
-
const
|
|
76737
|
+
}`, aZ = Object.defineProperty, lZ = (r, e, t) => e in r ? aZ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Q4 = (r, e, t) => (lZ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
76738
|
+
const Z4 = class J4 extends ge {
|
|
76727
76739
|
/**
|
|
76728
76740
|
* @param options - Options for the BulgePinchFilter constructor.
|
|
76729
76741
|
*/
|
|
76730
76742
|
constructor(e) {
|
|
76731
|
-
e = { ...
|
|
76743
|
+
e = { ...J4.DEFAULT_OPTIONS, ...e };
|
|
76732
76744
|
const t = pe.from({
|
|
76733
76745
|
vertex: {
|
|
76734
76746
|
source: Me,
|
|
@@ -76754,7 +76766,7 @@ const Zk = class Jk extends ge {
|
|
|
76754
76766
|
uStrength: { value: e.strength, type: "f32" }
|
|
76755
76767
|
}
|
|
76756
76768
|
}
|
|
76757
|
-
}),
|
|
76769
|
+
}), Q4(this, "uniforms"), this.uniforms = this.resources.bulgePinchUniforms.uniforms, Object.assign(this, e);
|
|
76758
76770
|
}
|
|
76759
76771
|
/**
|
|
76760
76772
|
* Override existing apply method in `Filter`
|
|
@@ -76816,12 +76828,12 @@ const Zk = class Jk extends ge {
|
|
|
76816
76828
|
this.uniforms.uStrength = e;
|
|
76817
76829
|
}
|
|
76818
76830
|
};
|
|
76819
|
-
|
|
76831
|
+
Q4(Z4, "DEFAULT_OPTIONS", {
|
|
76820
76832
|
center: { x: 0.5, y: 0.5 },
|
|
76821
76833
|
radius: 100,
|
|
76822
76834
|
strength: 1
|
|
76823
76835
|
});
|
|
76824
|
-
let uZ =
|
|
76836
|
+
let uZ = Z4;
|
|
76825
76837
|
var cZ = `precision highp float;
|
|
76826
76838
|
in vec2 vTextureCoord;
|
|
76827
76839
|
in vec2 vFilterCoord;
|
|
@@ -77829,7 +77841,7 @@ fn mainFragment(
|
|
|
77829
77841
|
|
|
77830
77842
|
return vec4<f32>(mix(realColor, adjusted, colorMapUniforms.uMix).rgb, realColor.a);
|
|
77831
77843
|
}`, PZ = Object.defineProperty, IZ = (r, e, t) => e in r ? PZ(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Li = (r, e, t) => (IZ(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
77832
|
-
const $
|
|
77844
|
+
const $4 = class eR extends ge {
|
|
77833
77845
|
/** @ignore */
|
|
77834
77846
|
constructor(...e) {
|
|
77835
77847
|
let t = e[0] ?? {};
|
|
@@ -77916,12 +77928,12 @@ const $k = class eR extends ge {
|
|
|
77916
77928
|
), super.destroy();
|
|
77917
77929
|
}
|
|
77918
77930
|
};
|
|
77919
|
-
Li($
|
|
77931
|
+
Li($4, "DEFAULT_OPTIONS", {
|
|
77920
77932
|
colorMap: Q.WHITE,
|
|
77921
77933
|
nearest: !1,
|
|
77922
77934
|
mix: 1
|
|
77923
77935
|
});
|
|
77924
|
-
let BZ = $
|
|
77936
|
+
let BZ = $4;
|
|
77925
77937
|
var kZ = `in vec2 vTextureCoord;
|
|
77926
77938
|
out vec4 finalColor;
|
|
77927
77939
|
|
|
@@ -84743,7 +84755,7 @@ async function KR({ name: r, renderer: e, values: t }) {
|
|
|
84743
84755
|
const l = see[r];
|
|
84744
84756
|
s = { ...aS[r], ...t }, r === "colorMapFilter" && (s.colorMap = await as.load(oee)), r === "simpleLightmapFilter" && (s.lightMap = await as.load(aee)), i = new l(s);
|
|
84745
84757
|
} else {
|
|
84746
|
-
const l =
|
|
84758
|
+
const l = F4(), u = Object.keys(l).find(
|
|
84747
84759
|
(m) => m.toLowerCase() === r.toLowerCase()
|
|
84748
84760
|
);
|
|
84749
84761
|
if (!u)
|
|
@@ -85100,7 +85112,7 @@ class QR {
|
|
|
85100
85112
|
if (!t) {
|
|
85101
85113
|
const s = new ue({
|
|
85102
85114
|
vertex: $b,
|
|
85103
|
-
fragment:
|
|
85115
|
+
fragment: R4,
|
|
85104
85116
|
name: "ChromaKeyShader"
|
|
85105
85117
|
}), o = new dt({
|
|
85106
85118
|
uKeyColor: { value: [0, 1, 0], type: "vec3<f32>" },
|
|
@@ -85116,7 +85128,7 @@ class QR {
|
|
|
85116
85128
|
const a = this.animationContainer.filters || [];
|
|
85117
85129
|
this.animationContainer.filters = [...a, t];
|
|
85118
85130
|
}
|
|
85119
|
-
const i = t.resources.chromaUniforms.uniforms, n =
|
|
85131
|
+
const i = t.resources.chromaUniforms.uniforms, n = T4(e.color);
|
|
85120
85132
|
n && (i.uKeyColor[0] = n.r / 255, i.uKeyColor[1] = n.g / 255, i.uKeyColor[2] = n.b / 255), i.uSimilarity = e.similarity, i.uSpill = e.spill;
|
|
85121
85133
|
}
|
|
85122
85134
|
updateTransforms() {
|
|
@@ -88841,9 +88853,9 @@ function ZR({ name: r, renderer: e }) {
|
|
|
88841
88853
|
}), y && (c = Pee, h = {
|
|
88842
88854
|
...it.basics,
|
|
88843
88855
|
...Iee
|
|
88844
|
-
}), b && (c =
|
|
88856
|
+
}), b && (c = B4, h = {
|
|
88845
88857
|
...it.basics,
|
|
88846
|
-
...
|
|
88858
|
+
...k4
|
|
88847
88859
|
}), T && (c = Ree, h = {
|
|
88848
88860
|
...it.basics,
|
|
88849
88861
|
...Fee
|
|
@@ -89313,12 +89325,12 @@ function hte(r) {
|
|
|
89313
89325
|
uKeyColor: { value: [0, 1, 0], type: "vec3<f32>" },
|
|
89314
89326
|
uSimilarity: { value: 0.1, type: "f32" },
|
|
89315
89327
|
uSpill: { value: 0, type: "f32" }
|
|
89316
|
-
}), $e =
|
|
89328
|
+
}), $e = T4(b.chromaKey.color);
|
|
89317
89329
|
$e && (Be.uniforms.uKeyColor[0] = $e.r / 255, Be.uniforms.uKeyColor[1] = $e.g / 255, Be.uniforms.uKeyColor[2] = $e.b / 255), Be.uniforms.uSimilarity = b.chromaKey.similarity, Be.uniforms.uSpill = b.chromaKey.spill;
|
|
89318
89330
|
const Ct = new ge({
|
|
89319
89331
|
glProgram: new ue({
|
|
89320
89332
|
vertex: $b,
|
|
89321
|
-
fragment:
|
|
89333
|
+
fragment: R4,
|
|
89322
89334
|
name: "ChromaKeyShader"
|
|
89323
89335
|
}),
|
|
89324
89336
|
resources: {
|
|
@@ -89696,13 +89708,13 @@ class Ui extends Ke {
|
|
|
89696
89708
|
this.rect(-4, -4, 8, 8), this.fill({ color: "#ffffff" }), this.stroke({ width: 1, color: e }), this.hitArea = new ce(-15, -15, 30, 30);
|
|
89697
89709
|
}
|
|
89698
89710
|
#r = (e) => {
|
|
89699
|
-
this.#e = !0, this.cursor = "grabbing", this.callbacks.beginDrag(this.handle, e.global)
|
|
89711
|
+
this.#e = !0, this.cursor = "grabbing", this.callbacks.beginDrag(this.handle, e.global);
|
|
89700
89712
|
};
|
|
89701
89713
|
#n = (e) => {
|
|
89702
|
-
this.#e &&
|
|
89714
|
+
this.#e && this.callbacks.updateDrag(this.handle, e.global);
|
|
89703
89715
|
};
|
|
89704
89716
|
#u = (e) => {
|
|
89705
|
-
this.#e && (this.#e = !1, this.cursor = "pointer", this.callbacks.endDrag()
|
|
89717
|
+
this.#e && (this.#e = !1, this.cursor = "pointer", this.callbacks.endDrag());
|
|
89706
89718
|
};
|
|
89707
89719
|
}
|
|
89708
89720
|
class Mc {
|
|
@@ -89962,7 +89974,7 @@ class hS extends Pe {
|
|
|
89962
89974
|
this.#f();
|
|
89963
89975
|
}
|
|
89964
89976
|
#S = (e) => {
|
|
89965
|
-
this.#f(), this.#m.copyFrom(this.#r), this.isDragging = !0, this.lastPointer.copyFrom(e.global), this.cursor = "grabbing";
|
|
89977
|
+
e.button === 0 && (this.opts.locked || (this.#f(), this.#m.copyFrom(this.#r), this.isDragging = !0, this.lastPointer.copyFrom(e.global), this.cursor = "grabbing"));
|
|
89966
89978
|
};
|
|
89967
89979
|
#y = () => {
|
|
89968
89980
|
this.isDragging && this.#v(), this.cursor = "default";
|
|
@@ -90071,7 +90083,7 @@ class hS extends Pe {
|
|
|
90071
90083
|
this.parent && this.position.copyFrom(this.parent.toLocal(this.#r)), this.rotation = e;
|
|
90072
90084
|
const i = 1 / ((this.parent ? Math.abs(this.parent.worldTransform.a) : 1) || 1), n = this.#s;
|
|
90073
90085
|
this.wireframe.draw(n, i);
|
|
90074
|
-
const s = n.x + n.width / 2, o = n.y + n.height / 2,
|
|
90086
|
+
const s = n.x + n.width / 2, o = n.y + n.height / 2, l = this.opts.locked ? [] : this.opts.clip?.getVisibleHandles?.() ?? [
|
|
90075
90087
|
"tl",
|
|
90076
90088
|
"tr",
|
|
90077
90089
|
"bl",
|
|
@@ -90081,7 +90093,7 @@ class hS extends Pe {
|
|
|
90081
90093
|
"mt",
|
|
90082
90094
|
"mb",
|
|
90083
90095
|
"rot"
|
|
90084
|
-
],
|
|
90096
|
+
], u = [
|
|
90085
90097
|
this.#e.tl,
|
|
90086
90098
|
this.#e.tr,
|
|
90087
90099
|
this.#e.bl,
|
|
@@ -90092,9 +90104,9 @@ class hS extends Pe {
|
|
|
90092
90104
|
this.#e.mb,
|
|
90093
90105
|
this.#e.rot
|
|
90094
90106
|
];
|
|
90095
|
-
for (const
|
|
90096
|
-
|
|
90097
|
-
this.#e.tl.visible =
|
|
90107
|
+
for (const c of u)
|
|
90108
|
+
c.scale.set(i);
|
|
90109
|
+
this.#e.tl.visible = l.includes("tl"), this.#e.tr.visible = l.includes("tr"), this.#e.bl.visible = l.includes("bl"), this.#e.br.visible = l.includes("br"), this.#e.ml.visible = l.includes("ml"), this.#e.mr.visible = l.includes("mr"), this.#e.mt.visible = l.includes("mt"), this.#e.mb.visible = l.includes("mb"), this.#e.rot.visible = l.includes("rot"), this.#e.tl.position.set(n.x, n.y), this.#e.tr.position.set(n.x + n.width, n.y), this.#e.bl.position.set(n.x, n.y + n.height), this.#e.br.position.set(n.x + n.width, n.y + n.height), this.#e.ml.position.set(n.x, o), this.#e.mr.position.set(n.x + n.width, o), this.#e.mt.position.set(s, n.y), this.#e.mb.position.set(s, n.y + n.height), this.#e.rot.position.set(s, n.y - 30 * i), this.#R(i);
|
|
90098
90110
|
}
|
|
90099
90111
|
/**
|
|
90100
90112
|
* Draw individual bounding boxes for selected items
|
|
@@ -90381,37 +90393,46 @@ class mte {
|
|
|
90381
90393
|
return;
|
|
90382
90394
|
const e = [];
|
|
90383
90395
|
let t = null;
|
|
90384
|
-
for (const
|
|
90385
|
-
const
|
|
90386
|
-
if (
|
|
90387
|
-
const
|
|
90388
|
-
|
|
90396
|
+
for (const s of this.selectedClips) {
|
|
90397
|
+
const o = this.studio.spriteRenderers.get(s);
|
|
90398
|
+
if (o == null) continue;
|
|
90399
|
+
const a = o.getRoot();
|
|
90400
|
+
a != null && (e.push(a), this.selectedClips.size === 1 && (t = s));
|
|
90389
90401
|
}
|
|
90390
90402
|
if (e.length === 0) {
|
|
90391
90403
|
console.warn("Cannot create transformer: no sprites found");
|
|
90392
90404
|
return;
|
|
90393
90405
|
}
|
|
90406
|
+
const i = t?.locked ?? !1;
|
|
90394
90407
|
this.activeTransformer = new hS({
|
|
90395
90408
|
group: e,
|
|
90396
90409
|
clip: t,
|
|
90397
90410
|
// Only pass clip for single selection
|
|
90398
90411
|
artboardWidth: this.studio.opts.width,
|
|
90399
|
-
artboardHeight: this.studio.opts.height
|
|
90412
|
+
artboardHeight: this.studio.opts.height,
|
|
90413
|
+
locked: i
|
|
90400
90414
|
});
|
|
90401
|
-
let
|
|
90415
|
+
let n = null;
|
|
90402
90416
|
this.activeTransformer.on("transforming", () => {
|
|
90403
|
-
|
|
90404
|
-
|
|
90417
|
+
n === null && (n = requestAnimationFrame(() => {
|
|
90418
|
+
n = null, this.syncSelectedClipsTransformsRealtime(), this.studio.pixiApp?.render();
|
|
90405
90419
|
}));
|
|
90406
|
-
}), this.activeTransformer.on("textClipResize", (
|
|
90407
|
-
this.textClipResizedWidth =
|
|
90420
|
+
}), this.activeTransformer.on("textClipResize", (s) => {
|
|
90421
|
+
this.textClipResizedWidth = s.newWidth, this.textClipResizeHandle = s.handle, this.textClipResizedSx = s.sx, this.textClipResizedSy = s.sy;
|
|
90408
90422
|
}), this.activeTransformer.on("transformEnd", async () => {
|
|
90409
|
-
|
|
90410
|
-
for (const
|
|
90411
|
-
this.studio.emit("clip:updated", { clip:
|
|
90412
|
-
|
|
90413
|
-
|
|
90414
|
-
|
|
90423
|
+
n !== null && (cancelAnimationFrame(n), n = null), await this.syncSelectedClipsTransforms();
|
|
90424
|
+
for (const s of this.selectedClips)
|
|
90425
|
+
this.studio.emit("clip:updated", { clip: s });
|
|
90426
|
+
this.studio.emit("transform:end", {
|
|
90427
|
+
transformer: this.activeTransformer
|
|
90428
|
+
});
|
|
90429
|
+
}), this.activeTransformer.on("pointerdown", (s) => {
|
|
90430
|
+
if (s.button !== 0) return;
|
|
90431
|
+
this.studio.emit("transform:start", {
|
|
90432
|
+
transformer: this.activeTransformer
|
|
90433
|
+
});
|
|
90434
|
+
const o = this.getTopmostClipAtPoint(s.global);
|
|
90435
|
+
o && !this.selectedClips.has(o) && (this.selectClip(o, s.shiftKey), s.stopPropagation());
|
|
90415
90436
|
}), this.studio.artboard.addChild(this.activeTransformer), this.activeTransformer.showImmediate(), this.studio.pixiApp?.render();
|
|
90416
90437
|
}
|
|
90417
90438
|
// Copied Sync Logic
|
|
@@ -90868,7 +90889,9 @@ class xte {
|
|
|
90868
90889
|
});
|
|
90869
90890
|
}
|
|
90870
90891
|
async removeClip(e, t = { permanent: !0 }) {
|
|
90871
|
-
const { permanent: i } = t
|
|
90892
|
+
const { permanent: i } = t;
|
|
90893
|
+
if (e.locked) return;
|
|
90894
|
+
const n = this.clips.findIndex((c) => c === e);
|
|
90872
90895
|
if (n === -1) return;
|
|
90873
90896
|
if (e instanceof Xi) {
|
|
90874
90897
|
if (e.fromClipId) {
|
|
@@ -90912,6 +90935,7 @@ class xte {
|
|
|
90912
90935
|
async removeClips(e, t = { permanent: !0 }) {
|
|
90913
90936
|
if (e.length !== 0) {
|
|
90914
90937
|
for (const i of e) {
|
|
90938
|
+
if (i.locked) continue;
|
|
90915
90939
|
const n = this.clips.findIndex((u) => u === i);
|
|
90916
90940
|
if (n === -1) continue;
|
|
90917
90941
|
if (i instanceof Xi) {
|
|
@@ -90961,7 +90985,7 @@ class xte {
|
|
|
90961
90985
|
}
|
|
90962
90986
|
async updateClip(e, t) {
|
|
90963
90987
|
const i = this.clips.find((n) => n.id === e);
|
|
90964
|
-
i && (await this.applyClipUpdate(i, t), await this.recalculateMaxDuration(), await this.studio.updateFrame(this.studio.currentTime), this.updateTransformer(i), this.studio.emit("clip:updated", { clip: i }));
|
|
90988
|
+
i && (i.locked && !("locked" in t) || (i.locked && "locked" in t && (Object.keys(t).length === 1 || (t = { locked: t.locked })), await this.applyClipUpdate(i, t), await this.recalculateMaxDuration(), await this.studio.updateFrame(this.studio.currentTime), this.updateTransformer(i), this.studio.emit("clip:updated", { clip: i })));
|
|
90965
90989
|
}
|
|
90966
90990
|
async updateClips(e) {
|
|
90967
90991
|
const t = [];
|
|
@@ -91195,7 +91219,7 @@ class xte {
|
|
|
91195
91219
|
* Duplicate all currently selected clips
|
|
91196
91220
|
*/
|
|
91197
91221
|
async duplicateSelected() {
|
|
91198
|
-
const e = this.studio.selection.selectedClips, t = Array.from(e);
|
|
91222
|
+
const e = this.studio.selection.selectedClips, t = Array.from(e).filter((n) => !n.locked);
|
|
91199
91223
|
if (t.length === 0) return;
|
|
91200
91224
|
const i = [];
|
|
91201
91225
|
for (const n of t) {
|
|
@@ -91223,7 +91247,12 @@ class xte {
|
|
|
91223
91247
|
console.warn("[Studio] Split requires exactly one selected clip");
|
|
91224
91248
|
return;
|
|
91225
91249
|
}
|
|
91226
|
-
const i = t[0]
|
|
91250
|
+
const i = t[0];
|
|
91251
|
+
if (i.locked) {
|
|
91252
|
+
console.warn("[Studio] Cannot split a locked clip");
|
|
91253
|
+
return;
|
|
91254
|
+
}
|
|
91255
|
+
const n = e ?? this.studio.currentTime;
|
|
91227
91256
|
if (n <= i.display.from || i.display.to > 0 && n >= i.display.to) {
|
|
91228
91257
|
console.warn("[Studio] Split time is outside clip bounds");
|
|
91229
91258
|
return;
|
|
@@ -91262,7 +91291,12 @@ class xte {
|
|
|
91262
91291
|
console.warn("[Studio] Trim requires exactly one selected clip");
|
|
91263
91292
|
return;
|
|
91264
91293
|
}
|
|
91265
|
-
const i = t[0]
|
|
91294
|
+
const i = t[0];
|
|
91295
|
+
if (i.locked) {
|
|
91296
|
+
console.warn("[Studio] Cannot trim a locked clip");
|
|
91297
|
+
return;
|
|
91298
|
+
}
|
|
91299
|
+
const n = e * 1e6, s = i.playbackRate || 1, o = n * s;
|
|
91266
91300
|
if (n >= i.duration) {
|
|
91267
91301
|
console.warn("[Studio] Trim amount exceeds clip duration");
|
|
91268
91302
|
return;
|
|
@@ -92731,6 +92765,13 @@ class Xte extends vy {
|
|
|
92731
92765
|
deselectClip() {
|
|
92732
92766
|
this.selection.deselectClip();
|
|
92733
92767
|
}
|
|
92768
|
+
/**
|
|
92769
|
+
* Toggle lock state of a clip
|
|
92770
|
+
*/
|
|
92771
|
+
async lockClip(e, t) {
|
|
92772
|
+
const i = this.timeline.getClipById(e);
|
|
92773
|
+
i && (await this.timeline.updateClip(e, { locked: t }), this.emit("clip:lock-changed", { clip: i, locked: t }), this.selection.selectedClips.has(i) && this.selection.recreateTransformer(), await this.updateFrame(this.currentTime));
|
|
92774
|
+
}
|
|
92734
92775
|
/**
|
|
92735
92776
|
* Export current studio state to JSON
|
|
92736
92777
|
* @param sourceUrlMap Optional map of clips to their source URLs (required for proper serialization)
|
|
@@ -92746,19 +92787,19 @@ class Xte extends vy {
|
|
|
92746
92787
|
export {
|
|
92747
92788
|
Hte as $,
|
|
92748
92789
|
OG as A,
|
|
92749
|
-
|
|
92790
|
+
e4 as B,
|
|
92750
92791
|
Pe as C,
|
|
92751
92792
|
WP as D,
|
|
92752
92793
|
YP as E,
|
|
92753
92794
|
FH as F,
|
|
92754
|
-
|
|
92755
|
-
|
|
92795
|
+
ik as G,
|
|
92796
|
+
d4 as H,
|
|
92756
92797
|
Rc as I,
|
|
92757
92798
|
KR as J,
|
|
92758
92799
|
aS as K,
|
|
92759
92800
|
ze as L,
|
|
92760
|
-
|
|
92761
|
-
|
|
92801
|
+
bk as M,
|
|
92802
|
+
zk as N,
|
|
92762
92803
|
Nte as O,
|
|
92763
92804
|
Fc as P,
|
|
92764
92805
|
Ute as Q,
|
|
@@ -92767,7 +92808,7 @@ export {
|
|
|
92767
92808
|
iE as T,
|
|
92768
92809
|
zte as U,
|
|
92769
92810
|
Gr as V,
|
|
92770
|
-
|
|
92811
|
+
F4 as W,
|
|
92771
92812
|
xQ as X,
|
|
92772
92813
|
Lte as Y,
|
|
92773
92814
|
ZR as Z,
|
|
@@ -92784,13 +92825,13 @@ export {
|
|
|
92784
92825
|
z as a8,
|
|
92785
92826
|
B as a9,
|
|
92786
92827
|
m2 as b,
|
|
92787
|
-
|
|
92788
|
-
|
|
92828
|
+
Pk as c,
|
|
92829
|
+
Ik as d,
|
|
92789
92830
|
Qe as e,
|
|
92790
|
-
|
|
92791
|
-
|
|
92792
|
-
|
|
92793
|
-
|
|
92831
|
+
y4 as f,
|
|
92832
|
+
x4 as g,
|
|
92833
|
+
i4 as h,
|
|
92834
|
+
qk as i,
|
|
92794
92835
|
pI as j,
|
|
92795
92836
|
dI as k,
|
|
92796
92837
|
Bq as l,
|