openvideo 0.2.15 → 0.2.16
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-1klNNaYF.js → browserAll-B3JM-tAA.js} +2 -2
- package/dist/clips/video-clip.d.ts +4 -4
- package/dist/{index-CqBdAdbt.js → index-T-Me9eJ5.js} +397 -389
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +61 -61
- package/dist/{webworkerAll-05Hpn3rq.js → webworkerAll-CkYxS0eA.js} +1 -1
- package/package.json +1 -1
|
@@ -15149,7 +15149,7 @@ class L6 {
|
|
|
15149
15149
|
`);
|
|
15150
15150
|
}
|
|
15151
15151
|
}
|
|
15152
|
-
const fi = new L6(),
|
|
15152
|
+
const fi = new L6(), Ee = {
|
|
15153
15153
|
debug: fi.debug,
|
|
15154
15154
|
info: fi.info,
|
|
15155
15155
|
warn: fi.warn,
|
|
@@ -15160,16 +15160,16 @@ const fi = new L6(), ze = {
|
|
|
15160
15160
|
*/
|
|
15161
15161
|
setLogLevel: (r) => {
|
|
15162
15162
|
const e = r;
|
|
15163
|
-
e ===
|
|
15163
|
+
e === Ee.debug ? fi.setThreshold(
|
|
15164
15164
|
0
|
|
15165
15165
|
/* DEBUG */
|
|
15166
|
-
) : e ===
|
|
15166
|
+
) : e === Ee.info ? fi.setThreshold(
|
|
15167
15167
|
1
|
|
15168
15168
|
/* INFO */
|
|
15169
|
-
) : e ===
|
|
15169
|
+
) : e === Ee.warn ? fi.setThreshold(
|
|
15170
15170
|
2
|
|
15171
15171
|
/* WARN */
|
|
15172
|
-
) : e ===
|
|
15172
|
+
) : e === Ee.error && fi.setThreshold(
|
|
15173
15173
|
3
|
|
15174
15174
|
/* ERROR */
|
|
15175
15175
|
);
|
|
@@ -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-B3JM-tAA.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-CkYxS0eA.js");
|
|
18399
18399
|
}
|
|
18400
18400
|
};
|
|
18401
18401
|
class at {
|
|
@@ -19495,7 +19495,7 @@ function iG() {
|
|
|
19495
19495
|
}
|
|
19496
19496
|
}
|
|
19497
19497
|
iG();
|
|
19498
|
-
const
|
|
19498
|
+
const Pe = {
|
|
19499
19499
|
/**
|
|
19500
19500
|
* | Rotation | Direction |
|
|
19501
19501
|
* |----------|-----------|
|
|
@@ -19652,7 +19652,7 @@ const Ee = {
|
|
|
19652
19652
|
* @param {GD8Symmetry} rotationFirst - First operation
|
|
19653
19653
|
* @returns {GD8Symmetry} Result
|
|
19654
19654
|
*/
|
|
19655
|
-
sub: (r, e) => Nv[r][
|
|
19655
|
+
sub: (r, e) => Nv[r][Pe.inv(e)],
|
|
19656
19656
|
/**
|
|
19657
19657
|
* Adds 180 degrees to rotation, which is a commutative
|
|
19658
19658
|
* operation.
|
|
@@ -19679,7 +19679,7 @@ const Ee = {
|
|
|
19679
19679
|
* @returns {GD8Symmetry} Approximation of the vector into
|
|
19680
19680
|
* one of the eight symmetries.
|
|
19681
19681
|
*/
|
|
19682
|
-
byDirection: (r, e) => Math.abs(r) * 2 <= Math.abs(e) ? e >= 0 ?
|
|
19682
|
+
byDirection: (r, e) => Math.abs(r) * 2 <= Math.abs(e) ? e >= 0 ? Pe.S : Pe.N : Math.abs(e) * 2 <= Math.abs(r) ? r > 0 ? Pe.E : Pe.W : e > 0 ? r > 0 ? Pe.SE : Pe.SW : r > 0 ? Pe.NE : Pe.NW,
|
|
19683
19683
|
/**
|
|
19684
19684
|
* Helps sprite to compensate texture packer rotation.
|
|
19685
19685
|
* @group groupD8
|
|
@@ -19689,7 +19689,7 @@ const Ee = {
|
|
|
19689
19689
|
* @param {number} ty - sprite anchoring
|
|
19690
19690
|
*/
|
|
19691
19691
|
matrixAppendRotationInv: (r, e, t = 0, i = 0) => {
|
|
19692
|
-
const n = yC[
|
|
19692
|
+
const n = yC[Pe.inv(e)];
|
|
19693
19693
|
n.tx = t, n.ty = i, r.append(n);
|
|
19694
19694
|
},
|
|
19695
19695
|
/**
|
|
@@ -19704,17 +19704,17 @@ const Ee = {
|
|
|
19704
19704
|
*/
|
|
19705
19705
|
transformRectCoords: (r, e, t, i) => {
|
|
19706
19706
|
const { x: n, y: s, width: o, height: a } = r, { x: l, y: u, width: c, height: h } = e;
|
|
19707
|
-
return t ===
|
|
19707
|
+
return t === Pe.E ? (i.set(n + l, s + u, o, a), i) : t === Pe.S ? i.set(
|
|
19708
19708
|
c - s - a + l,
|
|
19709
19709
|
n + u,
|
|
19710
19710
|
a,
|
|
19711
19711
|
o
|
|
19712
|
-
) : t ===
|
|
19712
|
+
) : t === Pe.W ? i.set(
|
|
19713
19713
|
c - n - o + l,
|
|
19714
19714
|
h - s - a + u,
|
|
19715
19715
|
o,
|
|
19716
19716
|
a
|
|
19717
|
-
) : t ===
|
|
19717
|
+
) : t === Pe.N ? i.set(
|
|
19718
19718
|
s + l,
|
|
19719
19719
|
h - n - o + u,
|
|
19720
19720
|
a,
|
|
@@ -20676,7 +20676,7 @@ class Q extends yr {
|
|
|
20676
20676
|
let u = this.rotate;
|
|
20677
20677
|
if (u) {
|
|
20678
20678
|
const c = a / 2, h = l / 2, d = s + c, f = o + h;
|
|
20679
|
-
u =
|
|
20679
|
+
u = Pe.add(u, Pe.NW), e.x0 = d + c * Pe.uX(u), e.y0 = f + h * Pe.uY(u), u = Pe.add(u, 2), e.x1 = d + c * Pe.uX(u), e.y1 = f + h * Pe.uY(u), u = Pe.add(u, 2), e.x2 = d + c * Pe.uX(u), e.y2 = f + h * Pe.uY(u), u = Pe.add(u, 2), e.x3 = d + c * Pe.uX(u), e.y3 = f + h * Pe.uY(u);
|
|
20680
20680
|
} else
|
|
20681
20681
|
e.x0 = s, e.y0 = o, e.x1 = s + a, e.y1 = o, e.x2 = s + a, e.y2 = o + l, e.x3 = s, e.y3 = o + l;
|
|
20682
20682
|
}
|
|
@@ -22933,8 +22933,8 @@ class XC {
|
|
|
22933
22933
|
this._texturePool = {};
|
|
22934
22934
|
}
|
|
22935
22935
|
}
|
|
22936
|
-
const
|
|
22937
|
-
Es.register(
|
|
22936
|
+
const Ue = new XC();
|
|
22937
|
+
Es.register(Ue);
|
|
22938
22938
|
class vc {
|
|
22939
22939
|
constructor() {
|
|
22940
22940
|
this.renderPipeId = "renderGroup", this.root = null, this.canBundle = !1, this.renderGroupParent = null, this.renderGroupChildren = [], this.worldTransform = new ae(), this.worldColorAlpha = 4294967295, this.worldColor = 16777215, this.worldAlpha = 1, this.childrenToUpdate = /* @__PURE__ */ Object.create(null), this.updateTick = 0, this.gcTick = 0, this.childrenRenderablesToUpdate = { list: [], index: 0 }, this.structureDidChange = !0, this.instructionSet = new Xy(), this._onRenderContainers = [], this.textureNeedsUpdate = !0, this.isCachedAsTexture = !1, this._matrixDirty = 7;
|
|
@@ -22951,7 +22951,7 @@ class vc {
|
|
|
22951
22951
|
this.textureOptions = e, this.isCachedAsTexture = !0, this.textureNeedsUpdate = !0;
|
|
22952
22952
|
}
|
|
22953
22953
|
disableCacheAsTexture() {
|
|
22954
|
-
this.isCachedAsTexture = !1, this.texture && (
|
|
22954
|
+
this.isCachedAsTexture = !1, this.texture && (Ue.returnTexture(this.texture, !0), this.texture = null);
|
|
22955
22955
|
}
|
|
22956
22956
|
updateCacheTexture() {
|
|
22957
22957
|
this.textureNeedsUpdate = !0;
|
|
@@ -23097,7 +23097,7 @@ function xc(r, e, t = {}) {
|
|
|
23097
23097
|
!t[i] && e[i] !== void 0 && (r[i] = e[i]);
|
|
23098
23098
|
}
|
|
23099
23099
|
const y0 = new at(null), ql = new at(null), b0 = new at(null, 1, 1), jl = new at(null), nl = 1, Zc = 2, lo = 4, bG = 8;
|
|
23100
|
-
class
|
|
23100
|
+
class Ie extends yr {
|
|
23101
23101
|
constructor(e = {}) {
|
|
23102
23102
|
super(), this.uid = rt("renderable"), this._updateFlags = 15, this.renderGroup = null, this.parentRenderGroup = null, this.parentRenderGroupIndex = 0, this.didChange = !1, this.didViewUpdate = !1, this.relativeRenderGroupDepth = 0, this.children = [], this.parent = null, this.includeInBuild = !0, this.measurable = !0, this.isSimple = !0, this.parentRenderLayer = null, this.updateTick = -1, this.localTransform = new ae(), this.relativeGroupTransform = new ae(), this.groupTransform = this.relativeGroupTransform, this.destroyed = !1, this._position = new at(this, 0, 0), this._scale = b0, this._pivot = ql, this._origin = jl, this._skew = y0, this._cx = 1, this._sx = 0, this._cy = 0, this._sy = 1, this._rotation = 0, this.localColor = 16777215, this.localAlpha = 1, this.groupAlpha = 1, this.groupColor = 16777215, this.groupColorAlpha = 4294967295, this.localBlendMode = "inherit", this.groupBlendMode = "normal", this.localDisplayStatus = 7, this.globalDisplayStatus = 7, this._didContainerChangeTick = 0, this._didViewChangeTick = 0, this._didLocalTransformChangeId = -1, this.effects = [], xc(this, e, {
|
|
23103
23103
|
children: !0,
|
|
@@ -23111,7 +23111,7 @@ class Pe extends yr {
|
|
|
23111
23111
|
* @deprecated since 8.8.0
|
|
23112
23112
|
*/
|
|
23113
23113
|
static mixin(e) {
|
|
23114
|
-
J("8.8.0", "Container.mixin is deprecated, please use extensions.mixin instead."), Qe.mixin(
|
|
23114
|
+
J("8.8.0", "Container.mixin is deprecated, please use extensions.mixin instead."), Qe.mixin(Ie, e);
|
|
23115
23115
|
}
|
|
23116
23116
|
// = 'default';
|
|
23117
23117
|
/**
|
|
@@ -23788,7 +23788,7 @@ class Pe extends yr {
|
|
|
23788
23788
|
}
|
|
23789
23789
|
}
|
|
23790
23790
|
Qe.mixin(
|
|
23791
|
-
|
|
23791
|
+
Ie,
|
|
23792
23792
|
RC,
|
|
23793
23793
|
UC,
|
|
23794
23794
|
VC,
|
|
@@ -23802,7 +23802,7 @@ Qe.mixin(
|
|
|
23802
23802
|
LC,
|
|
23803
23803
|
FC
|
|
23804
23804
|
);
|
|
23805
|
-
class Ri extends
|
|
23805
|
+
class Ri extends Ie {
|
|
23806
23806
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
23807
23807
|
constructor(e) {
|
|
23808
23808
|
super(e), this.canBundle = !0, this.allowChildren = !1, this._roundPixels = 0, this._lastUsed = -1, this._gpuData = /* @__PURE__ */ Object.create(null), this._bounds = new Dt(0, 1, 0, 0), this._boundsDirty = !0;
|
|
@@ -24235,7 +24235,7 @@ class jy {
|
|
|
24235
24235
|
this.reset();
|
|
24236
24236
|
}
|
|
24237
24237
|
static test(e) {
|
|
24238
|
-
return e instanceof
|
|
24238
|
+
return e instanceof Ie;
|
|
24239
24239
|
}
|
|
24240
24240
|
}
|
|
24241
24241
|
jy.extension = F.MaskEffect;
|
|
@@ -29239,7 +29239,7 @@ const s7 = [
|
|
|
29239
29239
|
}
|
|
29240
29240
|
render(e, t) {
|
|
29241
29241
|
let i = e;
|
|
29242
|
-
if (i instanceof
|
|
29242
|
+
if (i instanceof Ie && (i = { container: i }, t && (J(Te, "passing a second argument is deprecated, please use render options instead"), i.target = t.renderTexture)), i.target || (i.target = this.view.renderTarget), i.target === this.view.renderTarget && (this._lastObjectRendered = i.container, i.clearColor ?? (i.clearColor = this.background.colorRgba), i.clear ?? (i.clear = this.background.clearBeforeRender)), i.clearColor) {
|
|
29243
29243
|
const n = Array.isArray(i.clearColor) && i.clearColor.length === 4;
|
|
29244
29244
|
i.clearColor = n ? i.clearColor : ye.shared.setValue(i.clearColor).toArray();
|
|
29245
29245
|
}
|
|
@@ -29550,7 +29550,7 @@ s2.extension = {
|
|
|
29550
29550
|
};
|
|
29551
29551
|
const tE = class Jv {
|
|
29552
29552
|
constructor(...e) {
|
|
29553
|
-
this.stage = new
|
|
29553
|
+
this.stage = new Ie(), e[0] !== void 0 && J(Te, "Application constructor options are deprecated, please use Application.init() instead.");
|
|
29554
29554
|
}
|
|
29555
29555
|
/**
|
|
29556
29556
|
* Initializes the PixiJS application with the specified options.
|
|
@@ -29572,7 +29572,7 @@ const tE = class Jv {
|
|
|
29572
29572
|
* ```
|
|
29573
29573
|
*/
|
|
29574
29574
|
async init(e) {
|
|
29575
|
-
e = { ...e }, this.stage || (this.stage = new
|
|
29575
|
+
e = { ...e }, this.stage || (this.stage = new Ie()), this.renderer = await eE(e), Jv._plugins.forEach((t) => {
|
|
29576
29576
|
t.init.call(this, e);
|
|
29577
29577
|
});
|
|
29578
29578
|
}
|
|
@@ -32105,7 +32105,7 @@ hE.defaultOptions = {
|
|
|
32105
32105
|
indicesInitialSize: 6
|
|
32106
32106
|
};
|
|
32107
32107
|
let fE = hE;
|
|
32108
|
-
var
|
|
32108
|
+
var ze = /* @__PURE__ */ ((r) => (r[r.MAP_READ = 1] = "MAP_READ", r[r.MAP_WRITE = 2] = "MAP_WRITE", r[r.COPY_SRC = 4] = "COPY_SRC", r[r.COPY_DST = 8] = "COPY_DST", r[r.INDEX = 16] = "INDEX", r[r.VERTEX = 32] = "VERTEX", r[r.UNIFORM = 64] = "UNIFORM", r[r.STORAGE = 128] = "STORAGE", r[r.INDIRECT = 256] = "INDIRECT", r[r.QUERY_RESOLVE = 512] = "QUERY_RESOLVE", r[r.STATIC = 1024] = "STATIC", r))(ze || {});
|
|
32109
32109
|
class gr extends yr {
|
|
32110
32110
|
/**
|
|
32111
32111
|
* Creates a new Buffer with the given options
|
|
@@ -32135,10 +32135,10 @@ class gr extends yr {
|
|
|
32135
32135
|
}
|
|
32136
32136
|
/** whether the buffer is static or not */
|
|
32137
32137
|
get static() {
|
|
32138
|
-
return !!(this.descriptor.usage &
|
|
32138
|
+
return !!(this.descriptor.usage & ze.STATIC);
|
|
32139
32139
|
}
|
|
32140
32140
|
set static(e) {
|
|
32141
|
-
e ? this.descriptor.usage |=
|
|
32141
|
+
e ? this.descriptor.usage |= ze.STATIC : this.descriptor.usage &= ~ze.STATIC;
|
|
32142
32142
|
}
|
|
32143
32143
|
/**
|
|
32144
32144
|
* Sets the data in the buffer to the given value. This will immediately update the buffer on the GPU.
|
|
@@ -32175,8 +32175,8 @@ class gr extends yr {
|
|
|
32175
32175
|
}
|
|
32176
32176
|
function u2(r, e) {
|
|
32177
32177
|
if (!(r instanceof gr)) {
|
|
32178
|
-
let t = e ?
|
|
32179
|
-
r instanceof Array && (e ? (r = new Uint32Array(r), t =
|
|
32178
|
+
let t = e ? ze.INDEX : ze.VERTEX;
|
|
32179
|
+
r instanceof Array && (e ? (r = new Uint32Array(r), t = ze.INDEX | ze.COPY_DST) : (r = new Float32Array(r), t = ze.VERTEX | ze.COPY_DST)), r = new gr({
|
|
32180
32180
|
data: r,
|
|
32181
32181
|
label: e ? "index-mesh-buffer" : "vertex-mesh-buffer",
|
|
32182
32182
|
usage: t
|
|
@@ -32286,12 +32286,12 @@ class mE extends Ps {
|
|
|
32286
32286
|
const t = new gr({
|
|
32287
32287
|
data: y7,
|
|
32288
32288
|
label: "attribute-batch-buffer",
|
|
32289
|
-
usage:
|
|
32289
|
+
usage: ze.VERTEX | ze.COPY_DST,
|
|
32290
32290
|
shrinkToFit: !1
|
|
32291
32291
|
}), i = new gr({
|
|
32292
32292
|
data: b7,
|
|
32293
32293
|
label: "index-batch-buffer",
|
|
32294
|
-
usage:
|
|
32294
|
+
usage: ze.INDEX | ze.COPY_DST,
|
|
32295
32295
|
// | BufferUsage.STATIC,
|
|
32296
32296
|
shrinkToFit: !1
|
|
32297
32297
|
}), n = 24;
|
|
@@ -33140,8 +33140,8 @@ function RE(r, e, t, i, n, s) {
|
|
|
33140
33140
|
));
|
|
33141
33141
|
continue;
|
|
33142
33142
|
}
|
|
33143
|
-
const oe = (-S + b) * (-I + A) - (-S + P) * (-I + T), te = (-M + E) * (-O + A) - (-M + P) * (-O + _), xe = ($ * te - be * oe) / G,
|
|
33144
|
-
|
|
33143
|
+
const oe = (-S + b) * (-I + A) - (-S + P) * (-I + T), te = (-M + E) * (-O + A) - (-M + P) * (-O + _), xe = ($ * te - be * oe) / G, Oe = (Ae * oe - K * te) / G, Be = (xe - P) * (xe - P) + (Oe - A) * (Oe - A), we = P + (xe - P) * D, Ve = A + (Oe - A) * D, Re = P - (xe - P) * k, st = A - (Oe - A) * k, Je = Math.min($ * $ + K * K, be * be + Ae * Ae), ke = ne ? D : k, $e = Je + ke * ke * x;
|
|
33144
|
+
Be <= $e ? a.join === "bevel" || Be / x > y ? (ne ? (f.push(we, Ve), f.push(P + S * k, A + I * k), f.push(we, Ve), f.push(P + M * k, A + O * k)) : (f.push(P - S * D, A - I * D), f.push(Re, st), f.push(P - M * D, A - O * D), f.push(Re, st)), m += 2) : a.join === "round" ? ne ? (f.push(we, Ve), f.push(P + S * k, A + I * k), m += qn(
|
|
33145
33145
|
P,
|
|
33146
33146
|
A,
|
|
33147
33147
|
P + S * k,
|
|
@@ -33150,7 +33150,7 @@ function RE(r, e, t, i, n, s) {
|
|
|
33150
33150
|
A + O * k,
|
|
33151
33151
|
f,
|
|
33152
33152
|
!0
|
|
33153
|
-
) + 4, f.push(we, Ve), f.push(P + M * k, A + O * k)) : (f.push(P - S * D, A - I * D), f.push(
|
|
33153
|
+
) + 4, f.push(we, Ve), f.push(P + M * k, A + O * k)) : (f.push(P - S * D, A - I * D), f.push(Re, st), m += qn(
|
|
33154
33154
|
P,
|
|
33155
33155
|
A,
|
|
33156
33156
|
P - S * D,
|
|
@@ -33159,7 +33159,7 @@ function RE(r, e, t, i, n, s) {
|
|
|
33159
33159
|
A - O * D,
|
|
33160
33160
|
f,
|
|
33161
33161
|
!1
|
|
33162
|
-
) + 4, f.push(P - M * D, A - O * D), f.push(
|
|
33162
|
+
) + 4, f.push(P - M * D, A - O * D), f.push(Re, st)) : (f.push(we, Ve), f.push(Re, st)) : (f.push(P - S * D, A - I * D), f.push(P + S * k, A + I * k), a.join === "round" ? ne ? m += qn(
|
|
33163
33163
|
P,
|
|
33164
33164
|
A,
|
|
33165
33165
|
P + S * k,
|
|
@@ -33177,7 +33177,7 @@ function RE(r, e, t, i, n, s) {
|
|
|
33177
33177
|
A - O * D,
|
|
33178
33178
|
f,
|
|
33179
33179
|
!1
|
|
33180
|
-
) + 2 : a.join === "miter" &&
|
|
33180
|
+
) + 2 : a.join === "miter" && Be / x <= y && (ne ? (f.push(Re, st), f.push(Re, st)) : (f.push(we, Ve), f.push(we, Ve)), m += 2), f.push(P - M * D, A - O * D), f.push(P + M * k, A + O * k), m += 2);
|
|
33181
33181
|
}
|
|
33182
33182
|
b = r[(p - 2) * 2], T = r[(p - 2) * 2 + 1], P = r[(p - 1) * 2], A = r[(p - 1) * 2 + 1], S = -(T - A), I = b - P, U = Math.sqrt(S * S + I * I), S /= U, I /= U, S *= v, I *= v, f.push(P - S * D, A - I * D), f.push(P + S * k, A + I * k), h || (a.cap === "round" ? m += qn(
|
|
33183
33183
|
P - S * (D - k) * 0.5,
|
|
@@ -36248,7 +36248,7 @@ class _2 extends o2 {
|
|
|
36248
36248
|
frame: a,
|
|
36249
36249
|
source: l,
|
|
36250
36250
|
rotate: u
|
|
36251
|
-
} = i[o.page], c =
|
|
36251
|
+
} = i[o.page], c = Pe.transformRectCoords(
|
|
36252
36252
|
o,
|
|
36253
36253
|
a,
|
|
36254
36254
|
u,
|
|
@@ -40164,10 +40164,10 @@ function VP() {
|
|
|
40164
40164
|
function xe(w) {
|
|
40165
40165
|
return w && (w.nodeType === K.DOCUMENT_NODE || w.nodeType === K.DOCUMENT_FRAGMENT_NODE || w.nodeType === K.ELEMENT_NODE);
|
|
40166
40166
|
}
|
|
40167
|
-
function
|
|
40168
|
-
return w && (we(w) || Ve(w) ||
|
|
40167
|
+
function Oe(w) {
|
|
40168
|
+
return w && (we(w) || Ve(w) || Be(w) || w.nodeType === K.DOCUMENT_FRAGMENT_NODE || w.nodeType === K.COMMENT_NODE || w.nodeType === K.PROCESSING_INSTRUCTION_NODE);
|
|
40169
40169
|
}
|
|
40170
|
-
function
|
|
40170
|
+
function Be(w) {
|
|
40171
40171
|
return w && w.nodeType === K.DOCUMENT_TYPE_NODE;
|
|
40172
40172
|
}
|
|
40173
40173
|
function we(w) {
|
|
@@ -40176,11 +40176,11 @@ function VP() {
|
|
|
40176
40176
|
function Ve(w) {
|
|
40177
40177
|
return w && w.nodeType === K.TEXT_NODE;
|
|
40178
40178
|
}
|
|
40179
|
-
function
|
|
40179
|
+
function Re(w, C) {
|
|
40180
40180
|
var R = w.childNodes || [];
|
|
40181
|
-
if (e(R, we) ||
|
|
40181
|
+
if (e(R, we) || Be(C))
|
|
40182
40182
|
return !1;
|
|
40183
|
-
var N = e(R,
|
|
40183
|
+
var N = e(R, Be);
|
|
40184
40184
|
return !(C && N && R.indexOf(N) > R.indexOf(C));
|
|
40185
40185
|
}
|
|
40186
40186
|
function st(w, C) {
|
|
@@ -40190,7 +40190,7 @@ function VP() {
|
|
|
40190
40190
|
}
|
|
40191
40191
|
if (e(R, N))
|
|
40192
40192
|
return !1;
|
|
40193
|
-
var re = e(R,
|
|
40193
|
+
var re = e(R, Be);
|
|
40194
40194
|
return !(C && re && R.indexOf(re) > R.indexOf(C));
|
|
40195
40195
|
}
|
|
40196
40196
|
function Je(w, C, R) {
|
|
@@ -40200,30 +40200,30 @@ function VP() {
|
|
|
40200
40200
|
throw new M(S, "child not in parent");
|
|
40201
40201
|
if (
|
|
40202
40202
|
// 4. If `node` is not a DocumentFragment, DocumentType, Element, or CharacterData node, then throw a "HierarchyRequestError" DOMException.
|
|
40203
|
-
!
|
|
40203
|
+
!Oe(C) || // 5. If either `node` is a Text node and `parent` is a document,
|
|
40204
40204
|
// the sax parser currently adds top level text nodes, this will be fixed in 0.9.0
|
|
40205
40205
|
// || (node.nodeType === Node.TEXT_NODE && parent.nodeType === Node.DOCUMENT_NODE)
|
|
40206
40206
|
// or `node` is a doctype and `parent` is not a document, then throw a "HierarchyRequestError" DOMException.
|
|
40207
|
-
|
|
40207
|
+
Be(C) && w.nodeType !== K.DOCUMENT_NODE
|
|
40208
40208
|
)
|
|
40209
40209
|
throw new M(
|
|
40210
40210
|
_,
|
|
40211
40211
|
"Unexpected node type " + C.nodeType + " for parent node type " + w.nodeType
|
|
40212
40212
|
);
|
|
40213
40213
|
}
|
|
40214
|
-
function
|
|
40214
|
+
function ke(w, C, R) {
|
|
40215
40215
|
var N = w.childNodes || [], re = C.childNodes || [];
|
|
40216
40216
|
if (C.nodeType === K.DOCUMENT_FRAGMENT_NODE) {
|
|
40217
40217
|
var _e = re.filter(we);
|
|
40218
40218
|
if (_e.length > 1 || e(re, Ve))
|
|
40219
40219
|
throw new M(_, "More than one element or text in fragment");
|
|
40220
|
-
if (_e.length === 1 && !
|
|
40220
|
+
if (_e.length === 1 && !Re(w, R))
|
|
40221
40221
|
throw new M(_, "Element in fragment can not be inserted before doctype");
|
|
40222
40222
|
}
|
|
40223
|
-
if (we(C) && !
|
|
40223
|
+
if (we(C) && !Re(w, R))
|
|
40224
40224
|
throw new M(_, "Only one element can be added and only after doctype");
|
|
40225
|
-
if (
|
|
40226
|
-
if (e(N,
|
|
40225
|
+
if (Be(C)) {
|
|
40226
|
+
if (e(N, Be))
|
|
40227
40227
|
throw new M(_, "Only one doctype is allowed");
|
|
40228
40228
|
var ot = e(N, we);
|
|
40229
40229
|
if (R && N.indexOf(ot) < N.indexOf(R))
|
|
@@ -40243,9 +40243,9 @@ function VP() {
|
|
|
40243
40243
|
}
|
|
40244
40244
|
if (we(C) && !st(w, R))
|
|
40245
40245
|
throw new M(_, "Only one element can be added and only after doctype");
|
|
40246
|
-
if (
|
|
40246
|
+
if (Be(C)) {
|
|
40247
40247
|
if (e(N, function(Zr) {
|
|
40248
|
-
return
|
|
40248
|
+
return Be(Zr) && Zr !== R;
|
|
40249
40249
|
}))
|
|
40250
40250
|
throw new M(_, "Only one doctype is allowed");
|
|
40251
40251
|
var ot = e(N, we);
|
|
@@ -40254,7 +40254,7 @@ function VP() {
|
|
|
40254
40254
|
}
|
|
40255
40255
|
}
|
|
40256
40256
|
function Ct(w, C, R, N) {
|
|
40257
|
-
Je(w, C, R), w.nodeType === K.DOCUMENT_NODE && (N ||
|
|
40257
|
+
Je(w, C, R), w.nodeType === K.DOCUMENT_NODE && (N || ke)(w, C, R);
|
|
40258
40258
|
var re = C.parentNode;
|
|
40259
40259
|
if (re && re.removeChild(C), C.nodeType === T) {
|
|
40260
40260
|
var _e = C.firstChild;
|
|
@@ -40367,7 +40367,7 @@ function VP() {
|
|
|
40367
40367
|
},
|
|
40368
40368
|
//document factory method:
|
|
40369
40369
|
createElement: function(w) {
|
|
40370
|
-
var C = new
|
|
40370
|
+
var C = new Fe();
|
|
40371
40371
|
C.ownerDocument = this, C.nodeName = w, C.tagName = w, C.localName = w, C.childNodes = new O();
|
|
40372
40372
|
var R = C.attributes = new D();
|
|
40373
40373
|
return R._ownerElement = C, C;
|
|
@@ -40402,7 +40402,7 @@ function VP() {
|
|
|
40402
40402
|
},
|
|
40403
40403
|
// Introduced in DOM Level 2:
|
|
40404
40404
|
createElementNS: function(w, C) {
|
|
40405
|
-
var R = new
|
|
40405
|
+
var R = new Fe(), N = C.split(":"), re = R.attributes = new D();
|
|
40406
40406
|
return R.childNodes = new O(), R.ownerDocument = this, R.nodeName = C, R.tagName = C, R.namespaceURI = w, N.length == 2 ? (R.prefix = N[0], R.localName = N[1]) : R.localName = C, re._ownerElement = R, R;
|
|
40407
40407
|
},
|
|
40408
40408
|
// Introduced in DOM Level 2:
|
|
@@ -40411,10 +40411,10 @@ function VP() {
|
|
|
40411
40411
|
return R.ownerDocument = this, R.nodeName = C, R.name = C, R.namespaceURI = w, R.specified = !0, N.length == 2 ? (R.prefix = N[0], R.localName = N[1]) : R.localName = C, R;
|
|
40412
40412
|
}
|
|
40413
40413
|
}, u(ve, K);
|
|
40414
|
-
function
|
|
40414
|
+
function Fe() {
|
|
40415
40415
|
this._nsMap = {};
|
|
40416
40416
|
}
|
|
40417
|
-
|
|
40417
|
+
Fe.prototype = {
|
|
40418
40418
|
nodeType: h,
|
|
40419
40419
|
hasAttribute: function(w) {
|
|
40420
40420
|
return this.getAttributeNode(w) != null;
|
|
@@ -40482,7 +40482,7 @@ function VP() {
|
|
|
40482
40482
|
}), N;
|
|
40483
40483
|
});
|
|
40484
40484
|
}
|
|
40485
|
-
}, ve.prototype.getElementsByTagName =
|
|
40485
|
+
}, ve.prototype.getElementsByTagName = Fe.prototype.getElementsByTagName, ve.prototype.getElementsByTagNameNS = Fe.prototype.getElementsByTagNameNS, u(Fe, K);
|
|
40486
40486
|
function li() {
|
|
40487
40487
|
}
|
|
40488
40488
|
li.prototype.nodeType = d, u(li, K);
|
|
@@ -40770,7 +40770,7 @@ function VP() {
|
|
|
40770
40770
|
}
|
|
40771
40771
|
} catch {
|
|
40772
40772
|
}
|
|
40773
|
-
return Oi.DocumentType = Rl, Oi.DOMException = M, Oi.DOMImplementation = $, Oi.Element =
|
|
40773
|
+
return Oi.DocumentType = Rl, Oi.DOMException = M, Oi.DOMImplementation = $, Oi.Element = Fe, Oi.Node = K, Oi.NodeList = O, Oi.XMLSerializer = i1, Oi;
|
|
40774
40774
|
}
|
|
40775
40775
|
var fa = {}, W0 = {}, Rw;
|
|
40776
40776
|
function wH() {
|
|
@@ -42939,24 +42939,24 @@ function SH() {
|
|
|
42939
42939
|
function U(qe) {
|
|
42940
42940
|
if (qe > 65535) {
|
|
42941
42941
|
qe -= 65536;
|
|
42942
|
-
var
|
|
42943
|
-
return String.fromCharCode(
|
|
42942
|
+
var Fe = 55296 + (qe >> 10), li = 56320 + (qe & 1023);
|
|
42943
|
+
return String.fromCharCode(Fe, li);
|
|
42944
42944
|
} else
|
|
42945
42945
|
return String.fromCharCode(qe);
|
|
42946
42946
|
}
|
|
42947
42947
|
function V(qe) {
|
|
42948
|
-
var
|
|
42949
|
-
return Object.hasOwnProperty.call(I,
|
|
42948
|
+
var Fe = qe.slice(1, -1);
|
|
42949
|
+
return Object.hasOwnProperty.call(I, Fe) ? I[Fe] : Fe.charAt(0) === "#" ? U(parseInt(Fe.substr(1).replace("x", "0x"))) : (O.error("entity not found:" + qe), qe);
|
|
42950
42950
|
}
|
|
42951
42951
|
function D(qe) {
|
|
42952
42952
|
if (qe > ve) {
|
|
42953
|
-
var
|
|
42954
|
-
K && k(ve), M.characters(
|
|
42953
|
+
var Fe = _.substring(ve, qe).replace(/&#?\w+;/g, V);
|
|
42954
|
+
K && k(ve), M.characters(Fe, 0, qe - ve), ve = qe;
|
|
42955
42955
|
}
|
|
42956
42956
|
}
|
|
42957
|
-
function k(qe,
|
|
42958
|
-
for (; qe >= H && (
|
|
42959
|
-
X =
|
|
42957
|
+
function k(qe, Fe) {
|
|
42958
|
+
for (; qe >= H && (Fe = $.exec(_)); )
|
|
42959
|
+
X = Fe.index, H = X + Fe[0].length, K.lineNumber++;
|
|
42960
42960
|
K.columnNumber = qe - X + 1;
|
|
42961
42961
|
}
|
|
42962
42962
|
for (var X = 0, H = 0, $ = /.*(?:\r\n?|\n)|.*$/g, K = M.locator, be = [{ currentNSMap: S }], Ae = {}, ve = 0; ; ) {
|
|
@@ -42973,12 +42973,12 @@ function SH() {
|
|
|
42973
42973
|
case "/":
|
|
42974
42974
|
var Je = _.indexOf(">", G + 3), te = _.substring(G + 2, Je).replace(/[ \t\n\r]+$/g, ""), xe = be.pop();
|
|
42975
42975
|
Je < 0 ? (te = _.substring(G + 2).replace(/[\s<].*/, ""), O.error("end tag name: " + te + " is not complete:" + xe.tagName), Je = G + 1 + te.length) : te.match(/\s</) && (te = te.replace(/[\s<].*/, ""), O.error("end tag name: " + te + " maybe not complete"), Je = G + 1 + te.length);
|
|
42976
|
-
var
|
|
42976
|
+
var Oe = xe.localNSMap, Be = xe.tagName == te, we = Be || xe.tagName && xe.tagName.toLowerCase() == te.toLowerCase();
|
|
42977
42977
|
if (we) {
|
|
42978
|
-
if (M.endElement(xe.uri, xe.localName, te),
|
|
42979
|
-
for (var Ve in
|
|
42980
|
-
Object.prototype.hasOwnProperty.call(
|
|
42981
|
-
|
|
42978
|
+
if (M.endElement(xe.uri, xe.localName, te), Oe)
|
|
42979
|
+
for (var Ve in Oe)
|
|
42980
|
+
Object.prototype.hasOwnProperty.call(Oe, Ve) && M.endPrefixMapping(Ve);
|
|
42981
|
+
Be || O.fatalError("end tag name: " + te + " is not match the current start tagName:" + xe.tagName);
|
|
42982
42982
|
} else
|
|
42983
42983
|
be.push(xe);
|
|
42984
42984
|
Je++;
|
|
@@ -42992,16 +42992,16 @@ function SH() {
|
|
|
42992
42992
|
break;
|
|
42993
42993
|
default:
|
|
42994
42994
|
K && k(G);
|
|
42995
|
-
var
|
|
42996
|
-
if (!
|
|
42997
|
-
for (var $e = m(K, {}), Ct = 0; Ct <
|
|
42998
|
-
var Ot =
|
|
42995
|
+
var Re = new A(), st = be[be.length - 1].currentNSMap, Je = g(_, G, Re, st, V, O), ke = Re.length;
|
|
42996
|
+
if (!Re.closed && y(_, Je, Re.tagName, Ae) && (Re.closed = !0, I.nbsp || O.warning("unclosed xml attribute")), K && ke) {
|
|
42997
|
+
for (var $e = m(K, {}), Ct = 0; Ct < ke; Ct++) {
|
|
42998
|
+
var Ot = Re[Ct];
|
|
42999
42999
|
k(Ot.offset), Ot.locator = m(K, {});
|
|
43000
43000
|
}
|
|
43001
|
-
M.locator = $e, v(
|
|
43001
|
+
M.locator = $e, v(Re, M, st) && be.push(Re), M.locator = K;
|
|
43002
43002
|
} else
|
|
43003
|
-
v(
|
|
43004
|
-
r.isHTML(
|
|
43003
|
+
v(Re, M, st) && be.push(Re);
|
|
43004
|
+
r.isHTML(Re.uri) && !Re.closed ? Je = x(_, Je, Re.tagName, V, M) : Je++;
|
|
43005
43005
|
}
|
|
43006
43006
|
} catch (qe) {
|
|
43007
43007
|
if (qe instanceof d)
|
|
@@ -45056,7 +45056,7 @@ const rI = class iI extends ge {
|
|
|
45056
45056
|
if (this._uniforms.uStrength = this.strength / this.passes, this.passes === 1)
|
|
45057
45057
|
e.applyFilter(this, t, i, n);
|
|
45058
45058
|
else {
|
|
45059
|
-
const s =
|
|
45059
|
+
const s = Ue.getSameSizeTexture(t);
|
|
45060
45060
|
let o = t, a = s;
|
|
45061
45061
|
this._state.blend = !1;
|
|
45062
45062
|
const l = e.renderer.type === xr.WEBGPU;
|
|
@@ -45065,7 +45065,7 @@ const rI = class iI extends ge {
|
|
|
45065
45065
|
const c = a;
|
|
45066
45066
|
a = o, o = c;
|
|
45067
45067
|
}
|
|
45068
|
-
this._state.blend = !0, e.applyFilter(this, o, i, n),
|
|
45068
|
+
this._state.blend = !0, e.applyFilter(this, o, i, n), Ue.returnTexture(s);
|
|
45069
45069
|
}
|
|
45070
45070
|
}
|
|
45071
45071
|
/**
|
|
@@ -45121,8 +45121,8 @@ class Ss extends ge {
|
|
|
45121
45121
|
apply(e, t, i, n) {
|
|
45122
45122
|
const s = Math.abs(this.blurXFilter.strength), o = Math.abs(this.blurYFilter.strength);
|
|
45123
45123
|
if (s && o) {
|
|
45124
|
-
const a =
|
|
45125
|
-
this.blurXFilter.blendMode = "normal", this.blurXFilter.apply(e, t, a, !0), this.blurYFilter.blendMode = this.blendMode, this.blurYFilter.apply(e, a, i, n),
|
|
45124
|
+
const a = Ue.getSameSizeTexture(t);
|
|
45125
|
+
this.blurXFilter.blendMode = "normal", this.blurXFilter.apply(e, t, a, !0), this.blurYFilter.blendMode = this.blendMode, this.blurYFilter.apply(e, a, i, n), Ue.returnTexture(a);
|
|
45126
45126
|
} else o ? (this.blurYFilter.blendMode = this.blendMode, this.blurYFilter.apply(e, t, i, n)) : (this.blurXFilter.blendMode = this.blendMode, this.blurXFilter.apply(e, t, i, n));
|
|
45127
45127
|
}
|
|
45128
45128
|
updatePadding() {
|
|
@@ -47442,7 +47442,7 @@ class pI {
|
|
|
47442
47442
|
l,
|
|
47443
47443
|
n.width,
|
|
47444
47444
|
n.height
|
|
47445
|
-
), i.outputRenderSurface =
|
|
47445
|
+
), i.outputRenderSurface = Ue.getOptimalTexture(
|
|
47446
47446
|
a.width,
|
|
47447
47447
|
a.height,
|
|
47448
47448
|
i.resolution,
|
|
@@ -47454,7 +47454,7 @@ class pI {
|
|
|
47454
47454
|
/** @internal */
|
|
47455
47455
|
pop() {
|
|
47456
47456
|
const e = this.renderer, t = this._popFilterData();
|
|
47457
|
-
t.skip || (e.globalUniforms.pop(), e.renderTarget.finishRenderPass(), this._activeFilterData = t, this._applyFiltersToTexture(t, !1), t.blendRequired &&
|
|
47457
|
+
t.skip || (e.globalUniforms.pop(), e.renderTarget.finishRenderPass(), this._activeFilterData = t, this._applyFiltersToTexture(t, !1), t.blendRequired && Ue.returnTexture(t.backTexture), Ue.returnTexture(t.inputTexture));
|
|
47458
47458
|
}
|
|
47459
47459
|
/**
|
|
47460
47460
|
* Copies the last render surface to a texture.
|
|
@@ -47463,7 +47463,7 @@ class pI {
|
|
|
47463
47463
|
* @param previousBounds - The previous bounds to use for offsetting the copy.
|
|
47464
47464
|
*/
|
|
47465
47465
|
getBackTexture(e, t, i) {
|
|
47466
|
-
const n = e.colorTexture.source._resolution, s =
|
|
47466
|
+
const n = e.colorTexture.source._resolution, s = Ue.getOptimalTexture(
|
|
47467
47467
|
t.width,
|
|
47468
47468
|
t.height,
|
|
47469
47469
|
n,
|
|
@@ -47553,7 +47553,7 @@ class pI {
|
|
|
47553
47553
|
* @param previousFilterData - The previous filter data for back texture calculation
|
|
47554
47554
|
*/
|
|
47555
47555
|
_setupFilterTextures(e, t, i, n) {
|
|
47556
|
-
if (e.backTexture = Q.EMPTY, e.inputTexture =
|
|
47556
|
+
if (e.backTexture = Q.EMPTY, e.inputTexture = Ue.getOptimalTexture(
|
|
47557
47557
|
t.width,
|
|
47558
47558
|
t.height,
|
|
47559
47559
|
e.resolution,
|
|
@@ -47643,7 +47643,7 @@ class pI {
|
|
|
47643
47643
|
s[o].apply(this, i, e.outputRenderSurface, t);
|
|
47644
47644
|
else {
|
|
47645
47645
|
let l = e.inputTexture;
|
|
47646
|
-
const u =
|
|
47646
|
+
const u = Ue.getOptimalTexture(
|
|
47647
47647
|
n.width,
|
|
47648
47648
|
n.height,
|
|
47649
47649
|
l.source._resolution,
|
|
@@ -47658,7 +47658,7 @@ class pI {
|
|
|
47658
47658
|
const f = l;
|
|
47659
47659
|
l = c, c = f;
|
|
47660
47660
|
}
|
|
47661
|
-
s[a].apply(this, l, e.outputRenderSurface, t),
|
|
47661
|
+
s[a].apply(this, l, e.outputRenderSurface, t), Ue.returnTexture(u);
|
|
47662
47662
|
}
|
|
47663
47663
|
}
|
|
47664
47664
|
_calculateFilterBounds(e, t, i, n, s) {
|
|
@@ -48029,7 +48029,7 @@ const xI = class yI {
|
|
|
48029
48029
|
add(e) {
|
|
48030
48030
|
const t = Array.isArray(e) ? e : [e];
|
|
48031
48031
|
for (const i of t)
|
|
48032
|
-
i instanceof
|
|
48032
|
+
i instanceof Ie ? this._addContainer(i) : this.resolveQueueItem(i, this.queue);
|
|
48033
48033
|
return this;
|
|
48034
48034
|
}
|
|
48035
48035
|
/**
|
|
@@ -48851,17 +48851,17 @@ const _I = class wI extends Ps {
|
|
|
48851
48851
|
data: i,
|
|
48852
48852
|
label: "attribute-mesh-positions",
|
|
48853
48853
|
shrinkToFit: o,
|
|
48854
|
-
usage:
|
|
48854
|
+
usage: ze.VERTEX | ze.COPY_DST
|
|
48855
48855
|
}), l = new gr({
|
|
48856
48856
|
data: n,
|
|
48857
48857
|
label: "attribute-mesh-uvs",
|
|
48858
48858
|
shrinkToFit: o,
|
|
48859
|
-
usage:
|
|
48859
|
+
usage: ze.VERTEX | ze.COPY_DST
|
|
48860
48860
|
}), u = new gr({
|
|
48861
48861
|
data: s,
|
|
48862
48862
|
label: "index-mesh-buffer",
|
|
48863
48863
|
shrinkToFit: o,
|
|
48864
|
-
usage:
|
|
48864
|
+
usage: ze.INDEX | ze.COPY_DST
|
|
48865
48865
|
});
|
|
48866
48866
|
super({
|
|
48867
48867
|
attributes: {
|
|
@@ -50464,7 +50464,7 @@ class EI extends bI {
|
|
|
50464
50464
|
* @param queue
|
|
50465
50465
|
*/
|
|
50466
50466
|
resolveQueueItem(e, t) {
|
|
50467
|
-
return e instanceof
|
|
50467
|
+
return e instanceof Ie ? this.resolveContainerQueueItem(e, t) : e instanceof ct || e instanceof Q ? t.push(e.source) : e instanceof $t && t.push(e), null;
|
|
50468
50468
|
}
|
|
50469
50469
|
/**
|
|
50470
50470
|
* Resolve the given container and return an item for the queue
|
|
@@ -51339,7 +51339,7 @@ class z2 {
|
|
|
51339
51339
|
e.mask.mask.measurable = !0;
|
|
51340
51340
|
const s = _l(e.mask.mask, !0, qH);
|
|
51341
51341
|
e.mask.mask.measurable = !1, s.ceil();
|
|
51342
|
-
const o = t.renderTarget.renderTarget.colorTexture.source, a =
|
|
51342
|
+
const o = t.renderTarget.renderTarget.colorTexture.source, a = Ue.getOptimalTexture(
|
|
51343
51343
|
s.width,
|
|
51344
51344
|
s.height,
|
|
51345
51345
|
o._resolution,
|
|
@@ -51372,7 +51372,7 @@ class z2 {
|
|
|
51372
51372
|
} else if (e.action === "popMaskEnd") {
|
|
51373
51373
|
t.filter.pop();
|
|
51374
51374
|
const n = this._activeMaskStage.pop();
|
|
51375
|
-
i &&
|
|
51375
|
+
i && Ue.returnTexture(n.filterTexture), Pt.return(n.filterEffect);
|
|
51376
51376
|
}
|
|
51377
51377
|
}
|
|
51378
51378
|
destroy() {
|
|
@@ -51610,7 +51610,7 @@ class G2 {
|
|
|
51610
51610
|
if (e._updateID === i.updateID)
|
|
51611
51611
|
return i;
|
|
51612
51612
|
i.updateID = e._updateID, t.bindBuffer(i.type, i.buffer);
|
|
51613
|
-
const n = e.data, s = e.descriptor.usage &
|
|
51613
|
+
const n = e.data, s = e.descriptor.usage & ze.STATIC ? t.STATIC_DRAW : t.DYNAMIC_DRAW;
|
|
51614
51614
|
return n ? i.byteLength >= n.byteLength ? t.bufferSubData(i.type, 0, n, 0, e._updateSize / n.BYTES_PER_ELEMENT) : (i.byteLength = n.byteLength, t.bufferData(i.type, n, s)) : (i.byteLength = e.descriptor.size, t.bufferData(i.type, i.byteLength, s)), i;
|
|
51615
51615
|
}
|
|
51616
51616
|
/** dispose all WebGL resources of all managed buffers */
|
|
@@ -51639,7 +51639,7 @@ class G2 {
|
|
|
51639
51639
|
createGLBuffer(e) {
|
|
51640
51640
|
const { _gl: t } = this;
|
|
51641
51641
|
let i = Ga.ARRAY_BUFFER;
|
|
51642
|
-
e.descriptor.usage &
|
|
51642
|
+
e.descriptor.usage & ze.INDEX ? i = Ga.ELEMENT_ARRAY_BUFFER : e.descriptor.usage & ze.UNIFORM && (i = Ga.UNIFORM_BUFFER);
|
|
51643
51643
|
const n = new zI(t.createBuffer(), i);
|
|
51644
51644
|
return this._gpuBuffers[e.uid] = n, e.on("destroy", this.onBufferDestroy, this), n;
|
|
51645
51645
|
}
|
|
@@ -52407,7 +52407,7 @@ class Z2 {
|
|
|
52407
52407
|
const t = this.getUniformGroupData(e);
|
|
52408
52408
|
e.buffer || (e.buffer = new gr({
|
|
52409
52409
|
data: new Float32Array(t.layout.size / 4),
|
|
52410
|
-
usage:
|
|
52410
|
+
usage: ze.UNIFORM | ze.COPY_DST
|
|
52411
52411
|
}));
|
|
52412
52412
|
}
|
|
52413
52413
|
getUniformGroupData(e) {
|
|
@@ -52432,7 +52432,7 @@ class Z2 {
|
|
|
52432
52432
|
const n = this.getUniformGroupData(e);
|
|
52433
52433
|
e.buffer || (e.buffer = new gr({
|
|
52434
52434
|
data: new Float32Array(n.layout.size / 4),
|
|
52435
|
-
usage:
|
|
52435
|
+
usage: ze.UNIFORM | ze.COPY_DST
|
|
52436
52436
|
}));
|
|
52437
52437
|
let s = null;
|
|
52438
52438
|
return t || (t = e.buffer.data, s = e.buffer.dataInt32), i || (i = 0), n.syncFunction(e.uniforms, t, s, i), !0;
|
|
@@ -54933,7 +54933,7 @@ function Pc(r, e) {
|
|
|
54933
54933
|
for (let t = e; t < r.length && r[t]; t++)
|
|
54934
54934
|
r[t] = null;
|
|
54935
54935
|
}
|
|
54936
|
-
const mW = new
|
|
54936
|
+
const mW = new Ie(), jw = lo | nl | Zc;
|
|
54937
54937
|
function mb(r, e = !1) {
|
|
54938
54938
|
TB(r);
|
|
54939
54939
|
const t = r.childrenToUpdate, i = r.updateTick++;
|
|
@@ -55036,8 +55036,8 @@ class vb {
|
|
|
55036
55036
|
const i = e.root.getLocalBounds();
|
|
55037
55037
|
i.ceil();
|
|
55038
55038
|
const n = e.texture;
|
|
55039
|
-
e.texture &&
|
|
55040
|
-
const s = this._renderer, o = e.textureOptions.resolution || s.view.resolution, a = e.textureOptions.antialias ?? s.view.antialias, l = e.textureOptions.scaleMode ?? "linear", u =
|
|
55039
|
+
e.texture && Ue.returnTexture(e.texture, !0);
|
|
55040
|
+
const s = this._renderer, o = e.textureOptions.resolution || s.view.resolution, a = e.textureOptions.antialias ?? s.view.antialias, l = e.textureOptions.scaleMode ?? "linear", u = Ue.getOptimalTexture(
|
|
55041
55041
|
i.width,
|
|
55042
55042
|
i.height,
|
|
55043
55043
|
o,
|
|
@@ -55045,7 +55045,7 @@ class vb {
|
|
|
55045
55045
|
);
|
|
55046
55046
|
u._source.style = new Br({ scaleMode: l }), e.texture = u, e._textureBounds || (e._textureBounds = new Dt()), e._textureBounds.copyFrom(i), n !== e.texture && e.renderGroupParent && (e.renderGroupParent.structureDidChange = !0);
|
|
55047
55047
|
}
|
|
55048
|
-
} else e.texture && (
|
|
55048
|
+
} else e.texture && (Ue.returnTexture(e.texture, !0), e.texture = null);
|
|
55049
55049
|
}
|
|
55050
55050
|
_updateRenderGroups(e) {
|
|
55051
55051
|
const t = this._renderer, i = t.renderPipes;
|
|
@@ -55301,7 +55301,7 @@ const X0 = {
|
|
|
55301
55301
|
this._renderer = e;
|
|
55302
55302
|
}
|
|
55303
55303
|
_normalizeOptions(e, t = {}) {
|
|
55304
|
-
return e instanceof
|
|
55304
|
+
return e instanceof Ie || e instanceof Q ? {
|
|
55305
55305
|
target: e,
|
|
55306
55306
|
...t
|
|
55307
55307
|
} : {
|
|
@@ -55486,7 +55486,7 @@ const X0 = {
|
|
|
55486
55486
|
pixels(e) {
|
|
55487
55487
|
e = this._normalizeOptions(e);
|
|
55488
55488
|
const t = e.target, i = this._renderer, n = t instanceof Q ? t : i.textureGenerator.generateTexture(e), s = i.texture.getPixels(n);
|
|
55489
|
-
return t instanceof
|
|
55489
|
+
return t instanceof Ie && n.destroy(!0), s;
|
|
55490
55490
|
}
|
|
55491
55491
|
/**
|
|
55492
55492
|
* Creates a texture from a display object or existing texture.
|
|
@@ -55687,7 +55687,7 @@ class wb {
|
|
|
55687
55687
|
* @category rendering
|
|
55688
55688
|
*/
|
|
55689
55689
|
generateTexture(e) {
|
|
55690
|
-
e instanceof
|
|
55690
|
+
e instanceof Ie && (e = {
|
|
55691
55691
|
target: e,
|
|
55692
55692
|
frame: void 0,
|
|
55693
55693
|
textureSourceOptions: {},
|
|
@@ -56791,8 +56791,8 @@ class zb {
|
|
|
56791
56791
|
this._bindGroupHash = /* @__PURE__ */ Object.create(null), this._buffers = [], this._bindGroups = [], this._bufferResources = [], this._renderer = e, this._renderer.renderableGC.addManagedHash(this, "_bindGroupHash"), this._batchBuffer = new HB({ minUniformOffsetAlignment: tn });
|
|
56792
56792
|
const t = 256 / tn;
|
|
56793
56793
|
for (let i = 0; i < t; i++) {
|
|
56794
|
-
let n =
|
|
56795
|
-
i === 0 && (n |=
|
|
56794
|
+
let n = ze.UNIFORM | ze.COPY_DST;
|
|
56795
|
+
i === 0 && (n |= ze.COPY_SRC), this._buffers.push(new gr({
|
|
56796
56796
|
data: this._batchBuffer.data,
|
|
56797
56797
|
usage: n
|
|
56798
56798
|
}));
|
|
@@ -57954,7 +57954,7 @@ class zW {
|
|
|
57954
57954
|
const n = t.width, s = t.height;
|
|
57955
57955
|
if (i) {
|
|
57956
57956
|
const o = e.width / 2 / n, a = e.height / 2 / s, l = e.x / n + o, u = e.y / s + a;
|
|
57957
|
-
i =
|
|
57957
|
+
i = Pe.add(i, Pe.NW), this.x0 = l + o * Pe.uX(i), this.y0 = u + a * Pe.uY(i), i = Pe.add(i, 2), this.x1 = l + o * Pe.uX(i), this.y1 = u + a * Pe.uY(i), i = Pe.add(i, 2), this.x2 = l + o * Pe.uX(i), this.y2 = u + a * Pe.uY(i), i = Pe.add(i, 2), this.x3 = l + o * Pe.uX(i), this.y3 = u + a * Pe.uY(i);
|
|
57958
57958
|
} else
|
|
57959
57959
|
this.x0 = e.x / n, this.y0 = e.y / s, this.x1 = (e.x + e.width) / n, this.y1 = e.y / s, this.x2 = (e.x + e.width) / n, this.y2 = (e.y + e.height) / s, this.x3 = e.x / n, this.y3 = (e.y + e.height) / s;
|
|
57960
57960
|
this.uvsFloat32[0] = this.x0, this.uvsFloat32[1] = this.y0, this.uvsFloat32[2] = this.x1, this.uvsFloat32[3] = this.y1, this.uvsFloat32[4] = this.x2, this.uvsFloat32[5] = this.y2, this.uvsFloat32[6] = this.x3, this.uvsFloat32[7] = this.y3;
|
|
@@ -58112,7 +58112,7 @@ function XW(r) {
|
|
|
58112
58112
|
indices: new Uint32Array(i)
|
|
58113
58113
|
});
|
|
58114
58114
|
}
|
|
58115
|
-
const nk = class sk extends
|
|
58115
|
+
const nk = class sk extends Ie {
|
|
58116
58116
|
/**
|
|
58117
58117
|
* Creates a new RenderLayer instance
|
|
58118
58118
|
* @param options - Configuration options for the RenderLayer
|
|
@@ -59214,12 +59214,12 @@ class Tk {
|
|
|
59214
59214
|
data: new Float32Array(1),
|
|
59215
59215
|
label: "static-particle-buffer",
|
|
59216
59216
|
shrinkToFit: !1,
|
|
59217
|
-
usage:
|
|
59217
|
+
usage: ze.VERTEX | ze.COPY_DST
|
|
59218
59218
|
}), this._dynamicBuffer = new gr({
|
|
59219
59219
|
data: new Float32Array(1),
|
|
59220
59220
|
label: "dynamic-particle-buffer",
|
|
59221
59221
|
shrinkToFit: !1,
|
|
59222
|
-
usage:
|
|
59222
|
+
usage: ze.VERTEX | ze.COPY_DST
|
|
59223
59223
|
});
|
|
59224
59224
|
for (const c in i) {
|
|
59225
59225
|
const h = i[c], d = Ki(h.format);
|
|
@@ -61079,9 +61079,9 @@ function t4(r) {
|
|
|
61079
61079
|
for (const p of a.lines) {
|
|
61080
61080
|
if (p.chars.length === 0)
|
|
61081
61081
|
continue;
|
|
61082
|
-
const m = new
|
|
61082
|
+
const m = new Ie({ label: "line" });
|
|
61083
61083
|
m.y = f, h.push(m);
|
|
61084
|
-
let g = new
|
|
61084
|
+
let g = new Ie({ label: "word" }), v = 0;
|
|
61085
61085
|
for (let x = 0; x < p.chars.length; x++) {
|
|
61086
61086
|
const y = p.chars[x];
|
|
61087
61087
|
if (!y || !s.chars[y])
|
|
@@ -61093,7 +61093,7 @@ function t4(r) {
|
|
|
61093
61093
|
style: n,
|
|
61094
61094
|
label: `char-${y}`,
|
|
61095
61095
|
x: p.charPositions[x] * l - p.charPositions[v] * l
|
|
61096
|
-
}), T || (u.push(A), g.addChild(A)), (T || P) && g.children.length > 0 && (g.x = p.charPositions[v] * l, c.push(g), m.addChild(g), g = new
|
|
61096
|
+
}), T || (u.push(A), g.addChild(A)), (T || P) && g.children.length > 0 && (g.x = p.charPositions[v] * l, c.push(g), m.addChild(g), g = new Ie({ label: "word" }), v = x + 1);
|
|
61097
61097
|
}
|
|
61098
61098
|
f += d;
|
|
61099
61099
|
}
|
|
@@ -61187,7 +61187,7 @@ const lV = new Dt();
|
|
|
61187
61187
|
function Kb(r, e, t, i) {
|
|
61188
61188
|
const n = lV;
|
|
61189
61189
|
n.minX = 0, n.minY = 0, n.maxX = r.width / i | 0, n.maxY = r.height / i | 0;
|
|
61190
|
-
const s =
|
|
61190
|
+
const s = Ue.getOptimalTexture(
|
|
61191
61191
|
n.width,
|
|
61192
61192
|
n.height,
|
|
61193
61193
|
i,
|
|
@@ -61363,7 +61363,7 @@ class d4 {
|
|
|
61363
61363
|
});
|
|
61364
61364
|
}
|
|
61365
61365
|
_cleanUp(e) {
|
|
61366
|
-
|
|
61366
|
+
Ue.returnTexture(e, !0), e.source.resource = null, e.source.uploadMethodId = "unknown";
|
|
61367
61367
|
}
|
|
61368
61368
|
destroy() {
|
|
61369
61369
|
this._renderer = null;
|
|
@@ -61380,7 +61380,7 @@ d4.extension = {
|
|
|
61380
61380
|
],
|
|
61381
61381
|
name: "htmlText"
|
|
61382
61382
|
};
|
|
61383
|
-
class Qb extends
|
|
61383
|
+
class Qb extends Ie {
|
|
61384
61384
|
constructor(e) {
|
|
61385
61385
|
const {
|
|
61386
61386
|
text: t,
|
|
@@ -61679,10 +61679,10 @@ function m4(r) {
|
|
|
61679
61679
|
let f = 0;
|
|
61680
61680
|
const p = n.stroke?.width || 0, m = n.dropShadow?.distance || 0;
|
|
61681
61681
|
return a.forEach((g, v) => {
|
|
61682
|
-
const x = new
|
|
61682
|
+
const x = new Ie({ label: `line-${v}` });
|
|
61683
61683
|
x.y = f, h.push(x);
|
|
61684
61684
|
const y = s.lineWidths[v];
|
|
61685
|
-
let b = uV(l, y, u), T = new
|
|
61685
|
+
let b = uV(l, y, u), T = new Ie({ label: "word" });
|
|
61686
61686
|
T.x = b, g.chars.forEach((P, A) => {
|
|
61687
61687
|
if (P.metric.width !== 0) {
|
|
61688
61688
|
if (p4(P.char)) {
|
|
@@ -61690,7 +61690,7 @@ function m4(r) {
|
|
|
61690
61690
|
return;
|
|
61691
61691
|
}
|
|
61692
61692
|
if (P.char === " ")
|
|
61693
|
-
T.children.length > 0 && (d.push(T), x.addChild(T)), b += P.metric.width + n.letterSpacing - p, T = new
|
|
61693
|
+
T.children.length > 0 && (d.push(T), x.addChild(T)), b += P.metric.width + n.letterSpacing - p, T = new Ie({ label: "word" }), T.x = b;
|
|
61694
61694
|
else {
|
|
61695
61695
|
let E;
|
|
61696
61696
|
i.length > 0 ? (E = i.shift(), E.text = P.char, E.style = n, E.setFromMatrix(ae.IDENTITY), E.x = b - T.x - m * A) : E = new bh({
|
|
@@ -61848,7 +61848,7 @@ class y4 {
|
|
|
61848
61848
|
*/
|
|
61849
61849
|
returnTexture(e) {
|
|
61850
61850
|
const t = e.source;
|
|
61851
|
-
t.resource = null, t.uploadMethodId = "unknown", t.alphaMode = "no-premultiply-alpha",
|
|
61851
|
+
t.resource = null, t.uploadMethodId = "unknown", t.alphaMode = "no-premultiply-alpha", Ue.returnTexture(e, !0);
|
|
61852
61852
|
}
|
|
61853
61853
|
/**
|
|
61854
61854
|
* Renders text to its canvas, and updates its texture.
|
|
@@ -62094,7 +62094,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62094
62094
|
Buffer: gr,
|
|
62095
62095
|
BufferImageSource: jc,
|
|
62096
62096
|
BufferResource: Sh,
|
|
62097
|
-
BufferUsage:
|
|
62097
|
+
BufferUsage: ze,
|
|
62098
62098
|
CLEAR: ur,
|
|
62099
62099
|
Cache: je,
|
|
62100
62100
|
CanvasObserver: Zy,
|
|
@@ -62114,7 +62114,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62114
62114
|
ColorMaskPipe: L2,
|
|
62115
62115
|
ColorMatrixFilter: vo,
|
|
62116
62116
|
CompressedSource: Pl,
|
|
62117
|
-
Container:
|
|
62117
|
+
Container: Ie,
|
|
62118
62118
|
Culler: GP,
|
|
62119
62119
|
CullerPlugin: HP,
|
|
62120
62120
|
CustomRenderPipe: fb,
|
|
@@ -62332,7 +62332,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62332
62332
|
Texture: Q,
|
|
62333
62333
|
TextureGCSystem: OB,
|
|
62334
62334
|
TextureMatrix: Ny,
|
|
62335
|
-
TexturePool:
|
|
62335
|
+
TexturePool: Ue,
|
|
62336
62336
|
TexturePoolClass: XC,
|
|
62337
62337
|
TextureSource: ct,
|
|
62338
62338
|
TextureStyle: Br,
|
|
@@ -62573,7 +62573,7 @@ const yV = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
62573
62573
|
gpuUploadCompressedTextureResource: KB,
|
|
62574
62574
|
gpuUploadImageResource: Vb,
|
|
62575
62575
|
gpuUploadVideoResource: QB,
|
|
62576
|
-
groupD8:
|
|
62576
|
+
groupD8: Pe,
|
|
62577
62577
|
hasCachedCanvasTexture: $H,
|
|
62578
62578
|
hslWgsl: NH,
|
|
62579
62579
|
hslgl: th,
|
|
@@ -67554,11 +67554,7 @@ class zn extends sq {
|
|
|
67554
67554
|
* });
|
|
67555
67555
|
*/
|
|
67556
67556
|
set(e, t = 30) {
|
|
67557
|
-
|
|
67558
|
-
const i = e.duration < 1e6 ? e.duration / t * 1e6 : e.duration;
|
|
67559
|
-
this.duration = i, this.display.from !== void 0 && (this.display.to = this.display.from + i);
|
|
67560
|
-
}
|
|
67561
|
-
return this;
|
|
67557
|
+
return e.display && (e.display.from !== void 0 && (this.display.from = e.display.from), e.display.to !== void 0 && (this.display.to = e.display.to)), e.x !== void 0 && (this.left = e.x), e.y !== void 0 && (this.top = e.y), e.width !== void 0 && (this.width = e.width), e.height !== void 0 && (this.height = e.height), e.duration !== void 0 && (this.duration = e.duration, this.display.from !== void 0 && (this.display.to = this.display.from + this.duration)), this;
|
|
67562
67558
|
}
|
|
67563
67559
|
/**
|
|
67564
67560
|
* Base implementation of toJSON that handles common clip properties
|
|
@@ -67653,7 +67649,7 @@ class zn extends sq {
|
|
|
67653
67649
|
this.left = (e - this.width) / 2, this.top = (t - this.height) / 2;
|
|
67654
67650
|
}
|
|
67655
67651
|
destroy() {
|
|
67656
|
-
this.destroyed || (this.destroyed = !0,
|
|
67652
|
+
this.destroyed || (this.destroyed = !0, Ee.info("BaseClip destroy"), super.destroy(), this.lastVf?.close(), this.lastVf = null);
|
|
67657
67653
|
}
|
|
67658
67654
|
}
|
|
67659
67655
|
let Q0 = null;
|
|
@@ -67904,7 +67900,7 @@ class ti extends zn {
|
|
|
67904
67900
|
sampleRate: nt.sampleRate
|
|
67905
67901
|
}));
|
|
67906
67902
|
const t = performance.now(), i = e instanceof ReadableStream ? await lq(e, ti.ctx) : e;
|
|
67907
|
-
|
|
67903
|
+
Ee.info("Audio clip decoded complete:", performance.now() - t), this._meta.duration = i[0].length / nt.sampleRate * 1e6, this.chan0Buf = i[0], this.chan1Buf = i[1] ?? this.chan0Buf, Ee.info(
|
|
67908
67904
|
"Audio clip convert to AudioData, time:",
|
|
67909
67905
|
performance.now() - t
|
|
67910
67906
|
);
|
|
@@ -67981,7 +67977,7 @@ class ti extends zn {
|
|
|
67981
67977
|
* Destroy instance and release resources
|
|
67982
67978
|
*/
|
|
67983
67979
|
destroy() {
|
|
67984
|
-
this.chan0Buf = new Float32Array(0), this.chan1Buf = new Float32Array(0),
|
|
67980
|
+
this.chan0Buf = new Float32Array(0), this.chan1Buf = new Float32Array(0), Ee.info("---- audioclip destroy ----"), super.destroy();
|
|
67985
67981
|
}
|
|
67986
67982
|
toJSON(e = !1) {
|
|
67987
67983
|
return {
|
|
@@ -68443,7 +68439,7 @@ class Ts extends zn {
|
|
|
68443
68439
|
this.textStyleBase = new Et(u), this.ready = (async () => {
|
|
68444
68440
|
await this.refreshCaptions();
|
|
68445
68441
|
const c = { ...this._meta };
|
|
68446
|
-
return
|
|
68442
|
+
return Ee.info("CaptionClip ready:", c), c;
|
|
68447
68443
|
})();
|
|
68448
68444
|
}
|
|
68449
68445
|
/**
|
|
@@ -68513,7 +68509,7 @@ class Ts extends zn {
|
|
|
68513
68509
|
try {
|
|
68514
68510
|
typeof document < "u" && await document.fonts.ready;
|
|
68515
68511
|
const e = this._width, t = this._height, i = this.originalOpts?.verticalAlign || "center";
|
|
68516
|
-
this.pixiTextContainer ? this.pixiTextContainer.removeChildren() : this.pixiTextContainer = new
|
|
68512
|
+
this.pixiTextContainer ? this.pixiTextContainer.removeChildren() : this.pixiTextContainer = new Ie(), this.wordTexts.forEach((G) => {
|
|
68517
68513
|
G.destroyed || G.destroy();
|
|
68518
68514
|
}), this.wordTexts = [];
|
|
68519
68515
|
const n = Ht.measureText(" ", this.textStyle), s = [];
|
|
@@ -68522,15 +68518,15 @@ class Ts extends zn {
|
|
|
68522
68518
|
let te = G.text || "";
|
|
68523
68519
|
oe === "uppercase" ? te = te.toUpperCase() : oe === "lowercase" ? te = te.toLowerCase() : oe === "title" && (te = te.replace(
|
|
68524
68520
|
/\w\S*/g,
|
|
68525
|
-
(
|
|
68526
|
-
)), te.split(/\s+/).filter((
|
|
68527
|
-
const
|
|
68528
|
-
text:
|
|
68521
|
+
(Oe) => Oe.charAt(0).toUpperCase() + Oe.substring(1).toLowerCase()
|
|
68522
|
+
)), te.split(/\s+/).filter((Oe) => Oe.length > 0).forEach((Oe) => {
|
|
68523
|
+
const Be = new ml({
|
|
68524
|
+
text: Oe,
|
|
68529
68525
|
style: this.textStyle
|
|
68530
68526
|
});
|
|
68531
|
-
|
|
68532
|
-
const we = "#ffffff", Ve = typeof we == "object" && we !== null && "type" in we ? 16777215 : we,
|
|
68533
|
-
|
|
68527
|
+
Be.segmentIndex = ne;
|
|
68528
|
+
const we = "#ffffff", Ve = typeof we == "object" && we !== null && "type" in we ? 16777215 : we, Re = pt(Ve);
|
|
68529
|
+
Be.tint = Re ?? 16777215, s.push(Be);
|
|
68534
68530
|
});
|
|
68535
68531
|
}), this.wordTexts = s;
|
|
68536
68532
|
const o = this._visualPaddingX, a = this._visualPaddingY, l = this.opts.lineHeight * (this.opts.fontSize || 30), u = new ml({
|
|
@@ -68547,8 +68543,8 @@ class Ts extends zn {
|
|
|
68547
68543
|
const m = this.opts.textBoxStyle.textAlign || this.opts.align, g = this.opts.textBoxStyle, v = g.style === "tiktok", x = [], y = g.horizontalPadding ?? 0, b = g.verticalPadding ?? 0;
|
|
68548
68544
|
let T = [], P = 0, A = 0;
|
|
68549
68545
|
this.wordTexts.forEach((G, ne) => {
|
|
68550
|
-
const oe = G.getLocalBounds(), te = Math.ceil(oe.width || G.width), xe = Math.ceil(oe.height || G.height),
|
|
68551
|
-
!
|
|
68546
|
+
const oe = G.getLocalBounds(), te = Math.ceil(oe.width || G.width), xe = Math.ceil(oe.height || G.height), Oe = G.segmentIndex, Be = this.opts.words[Oe], we = ne > 0 ? this.wordTexts[ne - 1] : null, Ve = we ? this.opts.words[we.segmentIndex] : null, Re = Ve && Be && Be.paragraphIndex !== void 0 && Be.paragraphIndex !== Ve.paragraphIndex || this.opts.wordsPerLine === "single", st = P + (P > 0 ? c : 0) + te;
|
|
68547
|
+
!Re && (st <= f + 1 || T.length === 0) ? (T.push(G), P = st, A = Math.max(A, xe)) : (T.length > 0 && p.push({
|
|
68552
68548
|
words: T,
|
|
68553
68549
|
width: P,
|
|
68554
68550
|
height: Math.max(A, l) + b * 2
|
|
@@ -68572,7 +68568,7 @@ class Ts extends zn {
|
|
|
68572
68568
|
i === "top" ? $ = K : i === "bottom" ? $ = X - H - K : $ = (X - H) / 2;
|
|
68573
68569
|
let be = $;
|
|
68574
68570
|
if (p.forEach((G) => {
|
|
68575
|
-
const ne = new
|
|
68571
|
+
const ne = new Ie();
|
|
68576
68572
|
ne.label = "lineContainer", this.pixiTextContainer.addChild(ne);
|
|
68577
68573
|
let oe = 0;
|
|
68578
68574
|
const te = G.width;
|
|
@@ -68582,9 +68578,9 @@ class Ts extends zn {
|
|
|
68582
68578
|
y: be,
|
|
68583
68579
|
w: te + y * 2,
|
|
68584
68580
|
h: G.height
|
|
68585
|
-
}), G.words.forEach((
|
|
68586
|
-
const we =
|
|
68587
|
-
|
|
68581
|
+
}), G.words.forEach((Oe, Be) => {
|
|
68582
|
+
const we = Oe.getLocalBounds(), Ve = we.width || Oe.width, Re = we.height || Oe.height;
|
|
68583
|
+
Oe.pivot.set(Ve / 2, Re / 2), Oe.x = Math.round(oe + Ve / 2), Oe.y = Math.round(G.height / 2), ne.addChild(Oe), oe += Ve + (Be < G.words.length - 1 ? c : 0);
|
|
68588
68584
|
}), be += G.height;
|
|
68589
68585
|
}), v && x.length > 0) {
|
|
68590
68586
|
const G = new Ke();
|
|
@@ -68617,7 +68613,7 @@ class Ts extends zn {
|
|
|
68617
68613
|
target: this.renderTexture
|
|
68618
68614
|
});
|
|
68619
68615
|
} catch (G) {
|
|
68620
|
-
|
|
68616
|
+
Ee.warn("CaptionClip: Could not render captions during refresh", G);
|
|
68621
68617
|
}
|
|
68622
68618
|
const Ae = !this._isWidthConstrained, ve = this.height === 0 || this._lastContentHeight === 0 || Math.abs(this.height - this._lastContentHeight) < 2;
|
|
68623
68619
|
if (Ae && this._initialLayoutApplied && e > 0 && t > 0) {
|
|
@@ -68785,7 +68781,7 @@ class Ts extends zn {
|
|
|
68785
68781
|
}
|
|
68786
68782
|
destroy() {
|
|
68787
68783
|
if (!this.destroyed) {
|
|
68788
|
-
|
|
68784
|
+
Ee.info("Caption destroy");
|
|
68789
68785
|
try {
|
|
68790
68786
|
this.wordTexts.forEach((e) => {
|
|
68791
68787
|
e != null && !e.destroyed && e.destroy({ children: !0 });
|
|
@@ -68978,10 +68974,10 @@ let Rc = class an extends zn {
|
|
|
68978
68974
|
try {
|
|
68979
68975
|
i = Q.from(n);
|
|
68980
68976
|
} catch (l) {
|
|
68981
|
-
|
|
68977
|
+
Ee.warn("Failed to create Pixi texture from bitmap:", l);
|
|
68982
68978
|
}
|
|
68983
68979
|
} catch (o) {
|
|
68984
|
-
throw
|
|
68980
|
+
throw Ee.error(`Failed to load blob image from ${e}`, o), o;
|
|
68985
68981
|
}
|
|
68986
68982
|
else
|
|
68987
68983
|
n = await Do.getImageBitmap(e);
|
|
@@ -69049,7 +69045,7 @@ let Rc = class an extends zn {
|
|
|
69049
69045
|
duration: this.frames.reduce((n, s) => n + (s.duration ?? 0), 0),
|
|
69050
69046
|
width: i.codedWidth,
|
|
69051
69047
|
height: i.codedHeight
|
|
69052
|
-
},
|
|
69048
|
+
}, Ee.info("Image ready:", this._meta);
|
|
69053
69049
|
}
|
|
69054
69050
|
tickInterceptor = async (e, t) => t;
|
|
69055
69051
|
async tick(e) {
|
|
@@ -69106,7 +69102,7 @@ let Rc = class an extends zn {
|
|
|
69106
69102
|
t !== -1 && this.effects.splice(t, 1);
|
|
69107
69103
|
}
|
|
69108
69104
|
destroy() {
|
|
69109
|
-
|
|
69105
|
+
Ee.info("Image destroy"), this.img?.close(), this.frames.forEach((e) => e.close()), this.pixiTexture = null, super.destroy();
|
|
69110
69106
|
}
|
|
69111
69107
|
toJSON(e = !1) {
|
|
69112
69108
|
return {
|
|
@@ -69282,7 +69278,7 @@ function Z0(r) {
|
|
|
69282
69278
|
class Gr extends zn {
|
|
69283
69279
|
type = "Video";
|
|
69284
69280
|
insId = Jb++;
|
|
69285
|
-
logger =
|
|
69281
|
+
logger = Ee.create(`Video id:${this.insId},`);
|
|
69286
69282
|
ready;
|
|
69287
69283
|
_meta = {
|
|
69288
69284
|
// microseconds
|
|
@@ -69467,57 +69463,62 @@ class Gr extends zn {
|
|
|
69467
69463
|
);
|
|
69468
69464
|
return new Promise(
|
|
69469
69465
|
async (l, u) => {
|
|
69470
|
-
|
|
69471
|
-
const h = this.decoderConf.video;
|
|
69466
|
+
const c = [], h = this.decoderConf.video;
|
|
69472
69467
|
if (h == null || this.videoSamples.length === 0) {
|
|
69473
|
-
|
|
69468
|
+
l([]);
|
|
69474
69469
|
return;
|
|
69475
69470
|
}
|
|
69471
|
+
let d = null;
|
|
69476
69472
|
i.addEventListener("abort", () => {
|
|
69477
69473
|
u(Error(n));
|
|
69478
69474
|
});
|
|
69479
|
-
|
|
69480
|
-
|
|
69481
|
-
|
|
69482
|
-
|
|
69483
|
-
|
|
69484
|
-
|
|
69485
|
-
|
|
69486
|
-
|
|
69487
|
-
|
|
69488
|
-
|
|
69489
|
-
|
|
69490
|
-
|
|
69491
|
-
|
|
69492
|
-
|
|
69493
|
-
|
|
69494
|
-
|
|
69495
|
-
|
|
69496
|
-
|
|
69497
|
-
let v = p;
|
|
69498
|
-
for (this.thumbFinder && (await this.thumbFinder.destroy(), this.thumbFinder = null), this.thumbFinder = new C4(
|
|
69499
|
-
await this.localFile.createReader(),
|
|
69500
|
-
this.videoSamples,
|
|
69501
|
-
{
|
|
69502
|
-
...h,
|
|
69503
|
-
hardwareAcceleration: this.opts.__unsafe_hardwareAcceleration__
|
|
69475
|
+
try {
|
|
69476
|
+
const { start: f = 0, end: p = this._meta.duration, step: m } = t ?? {};
|
|
69477
|
+
if (m) {
|
|
69478
|
+
let g = f;
|
|
69479
|
+
for (this.thumbFinder && (await this.thumbFinder.destroy(), this.thumbFinder = null), d = new C4(
|
|
69480
|
+
await this.localFile.createReader(),
|
|
69481
|
+
this.videoSamples,
|
|
69482
|
+
{
|
|
69483
|
+
...h,
|
|
69484
|
+
hardwareAcceleration: this.opts.__unsafe_hardwareAcceleration__
|
|
69485
|
+
}
|
|
69486
|
+
), this.thumbFinder = d; g <= p && !i.aborted; ) {
|
|
69487
|
+
const v = await d.find(g);
|
|
69488
|
+
if (v) {
|
|
69489
|
+
const x = await a(v);
|
|
69490
|
+
c.push({ ts: v.timestamp, img: x });
|
|
69491
|
+
}
|
|
69492
|
+
g += m;
|
|
69504
69493
|
}
|
|
69505
|
-
|
|
69506
|
-
|
|
69507
|
-
|
|
69508
|
-
|
|
69509
|
-
|
|
69510
|
-
|
|
69511
|
-
await Cq(
|
|
69512
|
-
this.videoSamples,
|
|
69513
|
-
this.localFile,
|
|
69514
|
-
h,
|
|
69515
|
-
i,
|
|
69516
|
-
{ start: p, end: m },
|
|
69517
|
-
(v, x) => {
|
|
69518
|
-
v != null && f(v), x && d();
|
|
69494
|
+
if (c.length === 0 && !i.aborted) {
|
|
69495
|
+
const v = await d.find(0);
|
|
69496
|
+
if (v) {
|
|
69497
|
+
const x = await a(v);
|
|
69498
|
+
c.push({ ts: v.timestamp, img: x });
|
|
69499
|
+
}
|
|
69519
69500
|
}
|
|
69520
|
-
|
|
69501
|
+
} else
|
|
69502
|
+
await Cq(
|
|
69503
|
+
this.videoSamples,
|
|
69504
|
+
this.localFile,
|
|
69505
|
+
h,
|
|
69506
|
+
i,
|
|
69507
|
+
{ start: f, end: p },
|
|
69508
|
+
async (g, v) => {
|
|
69509
|
+
if (g != null) {
|
|
69510
|
+
const x = await a(g);
|
|
69511
|
+
c.push({ ts: g.timestamp, img: x });
|
|
69512
|
+
}
|
|
69513
|
+
}
|
|
69514
|
+
);
|
|
69515
|
+
} catch (f) {
|
|
69516
|
+
u(f);
|
|
69517
|
+
return;
|
|
69518
|
+
} finally {
|
|
69519
|
+
d && (await d.destroy(), this.thumbFinder === d && (this.thumbFinder = null));
|
|
69520
|
+
}
|
|
69521
|
+
l(c);
|
|
69521
69522
|
}
|
|
69522
69523
|
);
|
|
69523
69524
|
}
|
|
@@ -69656,7 +69657,7 @@ class Gr extends zn {
|
|
|
69656
69657
|
if (e.type !== "Video")
|
|
69657
69658
|
throw new Error(`Expected Video, got ${e.type}`);
|
|
69658
69659
|
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);
|
|
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
|
|
69660
|
+
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, n.trim.to = 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;
|
|
69660
69661
|
}
|
|
69661
69662
|
/**
|
|
69662
69663
|
* Create HTMLVideoElement for playback
|
|
@@ -69829,15 +69830,15 @@ async function iS(r, e = {}) {
|
|
|
69829
69830
|
d.mp4boxFile,
|
|
69830
69831
|
d.info
|
|
69831
69832
|
);
|
|
69832
|
-
if (i.video = m ?? null, i.audio = g ?? null, m == null && g == null &&
|
|
69833
|
+
if (i.video = m ?? null, i.audio = g ?? null, m == null && g == null && Ee.error("Video no video and audio track"), g != null) {
|
|
69833
69834
|
const { supported: v } = await AudioDecoder.isConfigSupported(g);
|
|
69834
|
-
v ||
|
|
69835
|
+
v || Ee.error(`Video audio codec is not supported: ${g.codec}`);
|
|
69835
69836
|
}
|
|
69836
69837
|
if (m != null) {
|
|
69837
69838
|
const { supported: v } = await VideoDecoder.isConfigSupported(m);
|
|
69838
|
-
v ||
|
|
69839
|
+
v || Ee.error(`Video video codec is not supported: ${m.codec}`);
|
|
69839
69840
|
}
|
|
69840
|
-
|
|
69841
|
+
Ee.info(
|
|
69841
69842
|
"mp4BoxFile moov ready",
|
|
69842
69843
|
{
|
|
69843
69844
|
...d.info,
|
|
@@ -69865,7 +69866,7 @@ async function iS(r, e = {}) {
|
|
|
69865
69866
|
throw Error("Video stream is done, but not emit ready");
|
|
69866
69867
|
if (h == null)
|
|
69867
69868
|
throw Error("Video stream not contain any sample");
|
|
69868
|
-
return Nx(n),
|
|
69869
|
+
return Nx(n), Ee.info("mp4 stream parsed"), {
|
|
69869
69870
|
videoSamples: n,
|
|
69870
69871
|
audioSamples: s,
|
|
69871
69872
|
decoderConf: i,
|
|
@@ -69950,12 +69951,12 @@ class C4 {
|
|
|
69950
69951
|
if (i) {
|
|
69951
69952
|
const n = this.samples.slice(this.videoDecCursorIdx, t);
|
|
69952
69953
|
if (n[0]?.is_idr !== !0)
|
|
69953
|
-
|
|
69954
|
+
Ee.warn("First sample not idr frame");
|
|
69954
69955
|
else {
|
|
69955
69956
|
const s = performance.now(), o = await A4(n, this.localFileReader), a = performance.now() - s;
|
|
69956
69957
|
if (a > 1e3) {
|
|
69957
69958
|
const l = n[0], u = n.at(-1), c = u.offset + u.size - l.offset;
|
|
69958
|
-
|
|
69959
|
+
Ee.warn(
|
|
69959
69960
|
`Read video samples time cost: ${Math.round(
|
|
69960
69961
|
a
|
|
69961
69962
|
)}ms, file chunk size: ${c}`
|
|
@@ -69966,7 +69967,7 @@ class C4 {
|
|
|
69966
69967
|
onDecodingError: (l) => {
|
|
69967
69968
|
if (this.downgradeSoftDecode)
|
|
69968
69969
|
throw l;
|
|
69969
|
-
this.outputFrameCnt === 0 && (this.downgradeSoftDecode = !0,
|
|
69970
|
+
this.outputFrameCnt === 0 && (this.downgradeSoftDecode = !0, Ee.warn("Downgrade to software decode"), this.reset());
|
|
69970
69971
|
}
|
|
69971
69972
|
}), this.inputChunkCnt += o.length;
|
|
69972
69973
|
}
|
|
@@ -70004,13 +70005,13 @@ class C4 {
|
|
|
70004
70005
|
},
|
|
70005
70006
|
error: (i) => {
|
|
70006
70007
|
if (i.message.includes("Codec reclaimed due to inactivity")) {
|
|
70007
|
-
this.decoder = null,
|
|
70008
|
+
this.decoder = null, Ee.warn(i.message);
|
|
70008
70009
|
return;
|
|
70009
70010
|
}
|
|
70010
70011
|
const n = `VideoFinder VideoDecoder err: ${i.message}, config: ${JSON.stringify(t)}, state: ${JSON.stringify(
|
|
70011
70012
|
this.getState()
|
|
70012
70013
|
)}`;
|
|
70013
|
-
throw
|
|
70014
|
+
throw Ee.error(n), Error(n);
|
|
70014
70015
|
}
|
|
70015
70016
|
}), this.decoder.configure(t);
|
|
70016
70017
|
};
|
|
@@ -70029,16 +70030,11 @@ class C4 {
|
|
|
70029
70030
|
memInfo: E4()
|
|
70030
70031
|
});
|
|
70031
70032
|
destroy = async () => {
|
|
70032
|
-
if (this.curAborter.abort = !0, this.videoFrames.forEach((e) => e.close()), this.videoFrames = [], this.decoder && this.decoder.state !== "closed")
|
|
70033
|
-
try {
|
|
70034
|
-
await this.decoder.flush();
|
|
70035
|
-
} catch {
|
|
70036
|
-
}
|
|
70033
|
+
if (this.curAborter.abort = !0, this.videoFrames.forEach((e) => e.close()), this.videoFrames = [], this.decoder && this.decoder.state !== "closed")
|
|
70037
70034
|
try {
|
|
70038
70035
|
this.decoder.close();
|
|
70039
70036
|
} catch {
|
|
70040
70037
|
}
|
|
70041
|
-
}
|
|
70042
70038
|
this.decoder = null, this.localFileReader.close();
|
|
70043
70039
|
};
|
|
70044
70040
|
}
|
|
@@ -70185,7 +70181,7 @@ function bq(r, e, t) {
|
|
|
70185
70181
|
inputCnt: i,
|
|
70186
70182
|
outputCnt: n
|
|
70187
70183
|
})}`;
|
|
70188
|
-
throw
|
|
70184
|
+
throw Ee.error(d), Error(d);
|
|
70189
70185
|
}
|
|
70190
70186
|
return {
|
|
70191
70187
|
decode(c) {
|
|
@@ -70376,9 +70372,9 @@ async function Cq(r, e, t, i, n, s) {
|
|
|
70376
70372
|
let l = 0;
|
|
70377
70373
|
Lx(u(), a, {
|
|
70378
70374
|
onDecodingError: (c) => {
|
|
70379
|
-
|
|
70375
|
+
Ee.warn("thumbnailsByKeyFrame", c), l === 0 ? Lx(u(!0), a, {
|
|
70380
70376
|
onDecodingError: (h) => {
|
|
70381
|
-
o.close(),
|
|
70377
|
+
o.close(), Ee.error("thumbnailsByKeyFrame retry soft deocde", h);
|
|
70382
70378
|
}
|
|
70383
70379
|
}) : (s(null, !0), o.close());
|
|
70384
70380
|
}
|
|
@@ -70402,7 +70398,7 @@ async function Cq(r, e, t, i, n, s) {
|
|
|
70402
70398
|
inputCnt: a.length
|
|
70403
70399
|
}
|
|
70404
70400
|
)}`;
|
|
70405
|
-
throw
|
|
70401
|
+
throw Ee.error(p), Error(p);
|
|
70406
70402
|
}
|
|
70407
70403
|
});
|
|
70408
70404
|
return i.addEventListener("abort", () => {
|
|
@@ -70411,8 +70407,20 @@ async function Cq(r, e, t, i, n, s) {
|
|
|
70411
70407
|
}
|
|
70412
70408
|
}
|
|
70413
70409
|
function Aq(r, e, t) {
|
|
70414
|
-
|
|
70415
|
-
|
|
70410
|
+
return async (i) => {
|
|
70411
|
+
try {
|
|
70412
|
+
const n = Math.max(1, Math.round(r)), s = Math.max(1, Math.round(e));
|
|
70413
|
+
Ee.info(`[Video.convtr] START: ${n}x${s}, ts: ${i.timestamp}`), Ee.info("[Video.convtr] Creating OffscreenCanvas");
|
|
70414
|
+
const o = new OffscreenCanvas(n, s);
|
|
70415
|
+
Ee.info("[Video.convtr] Getting Context");
|
|
70416
|
+
const a = o.getContext("2d");
|
|
70417
|
+
Ee.info("[Video.convtr] Drawing image"), a.drawImage(i, 0, 0, n, s), Ee.info("[Video.convtr] Closing VideoFrame"), i.close(), Ee.info("[Video.convtr] Calling convertToBlob");
|
|
70418
|
+
const l = await o.convertToBlob(t);
|
|
70419
|
+
return Ee.info(`[Video.convtr] FINISHED: ${l.size} bytes`), l;
|
|
70420
|
+
} catch (n) {
|
|
70421
|
+
throw Ee.error(`[Video.convtr] ERROR: ${n?.message || n}`), n;
|
|
70422
|
+
}
|
|
70423
|
+
};
|
|
70416
70424
|
}
|
|
70417
70425
|
class Tn extends zn {
|
|
70418
70426
|
type = "Text";
|
|
@@ -70725,7 +70733,7 @@ class Tn extends zn {
|
|
|
70725
70733
|
n === "uppercase" ? i = i.toUpperCase() : n === "lowercase" ? i = i.toLowerCase() : n === "title" && (i = i.replace(
|
|
70726
70734
|
/\w\S*/g,
|
|
70727
70735
|
(k) => k.charAt(0).toUpperCase() + k.substring(1).toLowerCase()
|
|
70728
|
-
)), typeof document < "u" && await document.fonts.ready, this.pixiTextContainer ? this.pixiTextContainer.removeChildren() : this.pixiTextContainer = new
|
|
70736
|
+
)), typeof document < "u" && await document.fonts.ready, this.pixiTextContainer ? this.pixiTextContainer.removeChildren() : this.pixiTextContainer = new Ie();
|
|
70729
70737
|
const s = i.split(/\s+/).filter((k) => k.length > 0);
|
|
70730
70738
|
this.wordTexts.forEach((k) => k.destroy()), this.wordTexts = s.map((k) => {
|
|
70731
70739
|
const X = new ml({
|
|
@@ -70857,7 +70865,7 @@ class Tn extends zn {
|
|
|
70857
70865
|
}
|
|
70858
70866
|
destroy() {
|
|
70859
70867
|
if (!this.destroyed) {
|
|
70860
|
-
|
|
70868
|
+
Ee.info("Text destroy");
|
|
70861
70869
|
try {
|
|
70862
70870
|
this.pixiTextContainer != null && (this.pixiTextContainer.destroyed || this.pixiTextContainer.destroy({ children: !0 }));
|
|
70863
70871
|
} catch {
|
|
@@ -71345,7 +71353,7 @@ function Fq(r) {
|
|
|
71345
71353
|
output: (i) => {
|
|
71346
71354
|
e.push(i);
|
|
71347
71355
|
},
|
|
71348
|
-
error:
|
|
71356
|
+
error: Ee.error
|
|
71349
71357
|
});
|
|
71350
71358
|
return t.configure(r), {
|
|
71351
71359
|
decode: async (i) => {
|
|
@@ -71377,7 +71385,7 @@ function Mq(r, e) {
|
|
|
71377
71385
|
e(Bq(o));
|
|
71378
71386
|
},
|
|
71379
71387
|
error: (o) => {
|
|
71380
|
-
|
|
71388
|
+
Ee.error("AudioEncoder error:", o, ", config:", t);
|
|
71381
71389
|
}
|
|
71382
71390
|
});
|
|
71383
71391
|
i.configure(t);
|
|
@@ -71412,7 +71420,7 @@ function Dq(r, e, t) {
|
|
|
71412
71420
|
r[Math.floor(i / o) - s] *= s / n;
|
|
71413
71421
|
}
|
|
71414
71422
|
function Ute(r, e) {
|
|
71415
|
-
|
|
71423
|
+
Ee.info("mixinMP4AndAudio, opts:", {
|
|
71416
71424
|
volume: e.volume,
|
|
71417
71425
|
loop: e.loop
|
|
71418
71426
|
});
|
|
@@ -75216,7 +75224,7 @@ function yQ() {
|
|
|
75216
75224
|
}));
|
|
75217
75225
|
}
|
|
75218
75226
|
const Nte = yQ();
|
|
75219
|
-
var
|
|
75227
|
+
var Me = `in vec2 aPosition;
|
|
75220
75228
|
out vec2 vTextureCoord;
|
|
75221
75229
|
|
|
75222
75230
|
uniform vec4 uInputSize;
|
|
@@ -75243,7 +75251,7 @@ void main(void)
|
|
|
75243
75251
|
gl_Position = filterVertexPosition();
|
|
75244
75252
|
vTextureCoord = filterTextureCoord();
|
|
75245
75253
|
}
|
|
75246
|
-
`,
|
|
75254
|
+
`, De = `struct GlobalFilterUniforms {
|
|
75247
75255
|
uInputSize:vec4<f32>,
|
|
75248
75256
|
uInputPixel:vec4<f32>,
|
|
75249
75257
|
uInputClamp:vec4<f32>,
|
|
@@ -75363,7 +75371,7 @@ const D4 = class O4 extends ge {
|
|
|
75363
75371
|
e = { ...O4.DEFAULT_OPTIONS, ...e };
|
|
75364
75372
|
const t = pe.from({
|
|
75365
75373
|
vertex: {
|
|
75366
|
-
source:
|
|
75374
|
+
source: De,
|
|
75367
75375
|
entryPoint: "mainVertex"
|
|
75368
75376
|
},
|
|
75369
75377
|
fragment: {
|
|
@@ -75371,7 +75379,7 @@ const D4 = class O4 extends ge {
|
|
|
75371
75379
|
entryPoint: "mainFragment"
|
|
75372
75380
|
}
|
|
75373
75381
|
}), i = ue.from({
|
|
75374
|
-
vertex:
|
|
75382
|
+
vertex: Me,
|
|
75375
75383
|
fragment: bQ,
|
|
75376
75384
|
name: "adjustment-filter"
|
|
75377
75385
|
});
|
|
@@ -75622,7 +75630,7 @@ const U4 = class z4 extends ge {
|
|
|
75622
75630
|
(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 };
|
|
75623
75631
|
const i = pe.from({
|
|
75624
75632
|
vertex: {
|
|
75625
|
-
source:
|
|
75633
|
+
source: De,
|
|
75626
75634
|
entryPoint: "mainVertex"
|
|
75627
75635
|
},
|
|
75628
75636
|
fragment: {
|
|
@@ -75630,7 +75638,7 @@ const U4 = class z4 extends ge {
|
|
|
75630
75638
|
entryPoint: "mainFragment"
|
|
75631
75639
|
}
|
|
75632
75640
|
}), n = ue.from({
|
|
75633
|
-
vertex:
|
|
75641
|
+
vertex: Me,
|
|
75634
75642
|
fragment: t?.clamp ? EQ : CQ,
|
|
75635
75643
|
name: "kawase-blur-filter"
|
|
75636
75644
|
});
|
|
@@ -75655,12 +75663,12 @@ const U4 = class z4 extends ge {
|
|
|
75655
75663
|
if (this._quality === 1 || this._blur === 0)
|
|
75656
75664
|
a = this._kernels[0] + 0.5, this.uniforms.uOffset[0] = a * s, this.uniforms.uOffset[1] = a * o, e.applyFilter(this, t, i, n);
|
|
75657
75665
|
else {
|
|
75658
|
-
const l =
|
|
75666
|
+
const l = Ue.getSameSizeTexture(t);
|
|
75659
75667
|
let u = t, c = l, h;
|
|
75660
75668
|
const d = this._quality - 1;
|
|
75661
75669
|
for (let f = 0; f < d; f++)
|
|
75662
75670
|
a = this._kernels[f] + 0.5, this.uniforms.uOffset[0] = a * s, this.uniforms.uOffset[1] = a * o, e.applyFilter(this, u, c, !0), h = u, u = c, c = h;
|
|
75663
|
-
a = this._kernels[d] + 0.5, this.uniforms.uOffset[0] = a * s, this.uniforms.uOffset[1] = a * o, e.applyFilter(this, u, i, n),
|
|
75671
|
+
a = this._kernels[d] + 0.5, this.uniforms.uOffset[0] = a * s, this.uniforms.uOffset[1] = a * o, e.applyFilter(this, u, i, n), Ue.returnTexture(l);
|
|
75664
75672
|
}
|
|
75665
75673
|
}
|
|
75666
75674
|
/**
|
|
@@ -75850,7 +75858,7 @@ const N4 = class G4 extends ge {
|
|
|
75850
75858
|
e = { ...G4.DEFAULT_OPTIONS, ...e };
|
|
75851
75859
|
const t = pe.from({
|
|
75852
75860
|
vertex: {
|
|
75853
|
-
source:
|
|
75861
|
+
source: De,
|
|
75854
75862
|
entryPoint: "mainVertex"
|
|
75855
75863
|
},
|
|
75856
75864
|
fragment: {
|
|
@@ -75858,7 +75866,7 @@ const N4 = class G4 extends ge {
|
|
|
75858
75866
|
entryPoint: "mainFragment"
|
|
75859
75867
|
}
|
|
75860
75868
|
}), i = ue.from({
|
|
75861
|
-
vertex:
|
|
75869
|
+
vertex: Me,
|
|
75862
75870
|
fragment: FQ,
|
|
75863
75871
|
name: "extract-brightness-filter"
|
|
75864
75872
|
});
|
|
@@ -75896,7 +75904,7 @@ const H4 = class W4 extends ge {
|
|
|
75896
75904
|
e = { ...W4.DEFAULT_OPTIONS, ...e };
|
|
75897
75905
|
const t = pe.from({
|
|
75898
75906
|
vertex: {
|
|
75899
|
-
source:
|
|
75907
|
+
source: De,
|
|
75900
75908
|
entryPoint: "mainVertex"
|
|
75901
75909
|
},
|
|
75902
75910
|
fragment: {
|
|
@@ -75904,7 +75912,7 @@ const H4 = class W4 extends ge {
|
|
|
75904
75912
|
entryPoint: "mainFragment"
|
|
75905
75913
|
}
|
|
75906
75914
|
}), i = ue.from({
|
|
75907
|
-
vertex:
|
|
75915
|
+
vertex: Me,
|
|
75908
75916
|
fragment: kQ,
|
|
75909
75917
|
name: "advanced-bloom-filter"
|
|
75910
75918
|
});
|
|
@@ -75931,10 +75939,10 @@ const H4 = class W4 extends ge {
|
|
|
75931
75939
|
* @ignore
|
|
75932
75940
|
*/
|
|
75933
75941
|
apply(e, t, i, n) {
|
|
75934
|
-
const s =
|
|
75942
|
+
const s = Ue.getSameSizeTexture(t);
|
|
75935
75943
|
this._extractFilter.apply(e, t, s, !0);
|
|
75936
|
-
const o =
|
|
75937
|
-
this._blurFilter.apply(e, s, o, !0), this.uniforms.uBloomScale = this.bloomScale, this.uniforms.uBrightness = this.brightness, this.resources.uMapTexture = o.source, e.applyFilter(this, t, i, n),
|
|
75944
|
+
const o = Ue.getSameSizeTexture(t);
|
|
75945
|
+
this._blurFilter.apply(e, s, o, !0), this.uniforms.uBloomScale = this.bloomScale, this.uniforms.uBrightness = this.brightness, this.resources.uMapTexture = o.source, e.applyFilter(this, t, i, n), Ue.returnTexture(o), Ue.returnTexture(s);
|
|
75938
75946
|
}
|
|
75939
75947
|
/**
|
|
75940
75948
|
* Defines how bright a color needs to be extracted.
|
|
@@ -76221,7 +76229,7 @@ const V4 = class X4 extends ge {
|
|
|
76221
76229
|
t = { ...X4.DEFAULT_OPTIONS, ...t };
|
|
76222
76230
|
const n = pe.from({
|
|
76223
76231
|
vertex: {
|
|
76224
|
-
source:
|
|
76232
|
+
source: De,
|
|
76225
76233
|
entryPoint: "mainVertex"
|
|
76226
76234
|
},
|
|
76227
76235
|
fragment: {
|
|
@@ -76229,7 +76237,7 @@ const V4 = class X4 extends ge {
|
|
|
76229
76237
|
entryPoint: "mainFragment"
|
|
76230
76238
|
}
|
|
76231
76239
|
}), s = ue.from({
|
|
76232
|
-
vertex:
|
|
76240
|
+
vertex: Me,
|
|
76233
76241
|
fragment: GQ,
|
|
76234
76242
|
name: "ascii-filter"
|
|
76235
76243
|
});
|
|
@@ -76330,7 +76338,7 @@ class ZQ extends Ss {
|
|
|
76330
76338
|
super(e), QQ(this, "_blendPass"), this.blendRequired = !0, this.padding = 0, this._blendPass = new ge({
|
|
76331
76339
|
gpuProgram: pe.from({
|
|
76332
76340
|
vertex: {
|
|
76333
|
-
source:
|
|
76341
|
+
source: De,
|
|
76334
76342
|
entryPoint: "mainVertex"
|
|
76335
76343
|
},
|
|
76336
76344
|
fragment: {
|
|
@@ -76339,7 +76347,7 @@ class ZQ extends Ss {
|
|
|
76339
76347
|
}
|
|
76340
76348
|
}),
|
|
76341
76349
|
glProgram: ue.from({
|
|
76342
|
-
vertex:
|
|
76350
|
+
vertex: Me,
|
|
76343
76351
|
fragment: YQ,
|
|
76344
76352
|
name: "drop-shadow-filter"
|
|
76345
76353
|
}),
|
|
@@ -76354,8 +76362,8 @@ class ZQ extends Ss {
|
|
|
76354
76362
|
* @ignore
|
|
76355
76363
|
*/
|
|
76356
76364
|
apply(e, t, i, n) {
|
|
76357
|
-
const s = e._activeFilterData.backTexture, o =
|
|
76358
|
-
super.apply(e, s, o, !0), this._blendPass.resources.uBackground = o.source, this._blendPass.apply(e, t, i, n),
|
|
76365
|
+
const s = e._activeFilterData.backTexture, o = Ue.getSameSizeTexture(t);
|
|
76366
|
+
super.apply(e, s, o, !0), this._blendPass.resources.uBackground = o.source, this._blendPass.apply(e, t, i, n), Ue.returnTexture(o);
|
|
76359
76367
|
}
|
|
76360
76368
|
updatePadding() {
|
|
76361
76369
|
this.padding = 0;
|
|
@@ -76433,7 +76441,7 @@ const Y4 = class q4 extends ge {
|
|
|
76433
76441
|
e = { ...q4.DEFAULT_OPTIONS, ...e };
|
|
76434
76442
|
const t = pe.from({
|
|
76435
76443
|
vertex: {
|
|
76436
|
-
source:
|
|
76444
|
+
source: De,
|
|
76437
76445
|
entryPoint: "mainVertex"
|
|
76438
76446
|
},
|
|
76439
76447
|
fragment: {
|
|
@@ -76441,7 +76449,7 @@ const Y4 = class q4 extends ge {
|
|
|
76441
76449
|
entryPoint: "mainFragment"
|
|
76442
76450
|
}
|
|
76443
76451
|
}), i = ue.from({
|
|
76444
|
-
vertex:
|
|
76452
|
+
vertex: Me,
|
|
76445
76453
|
fragment: JQ,
|
|
76446
76454
|
name: "bevel-filter"
|
|
76447
76455
|
});
|
|
@@ -76571,8 +76579,8 @@ const j4 = class K4 extends QP {
|
|
|
76571
76579
|
* @ignore
|
|
76572
76580
|
*/
|
|
76573
76581
|
apply(e, t, i, n) {
|
|
76574
|
-
const s =
|
|
76575
|
-
e.applyFilter(this, t, i, n), this._blurXFilter.apply(e, t, s, !0), this._blurYFilter.apply(e, s, i, !1),
|
|
76582
|
+
const s = Ue.getSameSizeTexture(t);
|
|
76583
|
+
e.applyFilter(this, t, i, n), this._blurXFilter.apply(e, t, s, !0), this._blurYFilter.apply(e, s, i, !1), Ue.returnTexture(s);
|
|
76576
76584
|
}
|
|
76577
76585
|
/**
|
|
76578
76586
|
* Sets the strength of both the blurX and blurY properties simultaneously
|
|
@@ -76765,7 +76773,7 @@ const Z4 = class J4 extends ge {
|
|
|
76765
76773
|
e = { ...J4.DEFAULT_OPTIONS, ...e };
|
|
76766
76774
|
const t = pe.from({
|
|
76767
76775
|
vertex: {
|
|
76768
|
-
source:
|
|
76776
|
+
source: De,
|
|
76769
76777
|
entryPoint: "mainVertex"
|
|
76770
76778
|
},
|
|
76771
76779
|
fragment: {
|
|
@@ -76773,7 +76781,7 @@ const Z4 = class J4 extends ge {
|
|
|
76773
76781
|
entryPoint: "mainFragment"
|
|
76774
76782
|
}
|
|
76775
76783
|
}), i = ue.from({
|
|
76776
|
-
vertex:
|
|
76784
|
+
vertex: Me,
|
|
76777
76785
|
fragment: oZ,
|
|
76778
76786
|
name: "bulge-pinch-filter"
|
|
76779
76787
|
});
|
|
@@ -77871,7 +77879,7 @@ const $4 = class eR extends ge {
|
|
|
77871
77879
|
throw Error("No color map texture source was provided to ColorMapFilter");
|
|
77872
77880
|
const i = pe.from({
|
|
77873
77881
|
vertex: {
|
|
77874
|
-
source:
|
|
77882
|
+
source: De,
|
|
77875
77883
|
entryPoint: "mainVertex"
|
|
77876
77884
|
},
|
|
77877
77885
|
fragment: {
|
|
@@ -77879,7 +77887,7 @@ const $4 = class eR extends ge {
|
|
|
77879
77887
|
entryPoint: "mainFragment"
|
|
77880
77888
|
}
|
|
77881
77889
|
}), n = ue.from({
|
|
77882
|
-
vertex:
|
|
77890
|
+
vertex: Me,
|
|
77883
77891
|
fragment: EZ,
|
|
77884
77892
|
name: "color-map-filter"
|
|
77885
77893
|
});
|
|
@@ -77991,7 +77999,7 @@ const tR = class rR extends ge {
|
|
|
77991
77999
|
(typeof t == "number" || Array.isArray(t) || t instanceof Float32Array) && (J("6.0.0", "ColorOverlayFilter constructor params are now options object. See params: { color, alpha }"), t = { color: t }, e[1] !== void 0 && (t.alpha = e[1])), t = { ...rR.DEFAULT_OPTIONS, ...t };
|
|
77992
78000
|
const i = pe.from({
|
|
77993
78001
|
vertex: {
|
|
77994
|
-
source:
|
|
78002
|
+
source: De,
|
|
77995
78003
|
entryPoint: "mainVertex"
|
|
77996
78004
|
},
|
|
77997
78005
|
fragment: {
|
|
@@ -77999,7 +78007,7 @@ const tR = class rR extends ge {
|
|
|
77999
78007
|
entryPoint: "mainFragment"
|
|
78000
78008
|
}
|
|
78001
78009
|
}), n = ue.from({
|
|
78002
|
-
vertex:
|
|
78010
|
+
vertex: Me,
|
|
78003
78011
|
fragment: RZ,
|
|
78004
78012
|
name: "color-overlay-filter"
|
|
78005
78013
|
});
|
|
@@ -78090,7 +78098,7 @@ const iR = class nR extends ge {
|
|
|
78090
78098
|
(typeof t == "number" || Array.isArray(t) || t instanceof Float32Array) && (J("6.0.0", "ColorReplaceFilter constructor params are now options object. See params: { originalColor, targetColor, tolerance }"), t = { originalColor: t }, e[1] !== void 0 && (t.targetColor = e[1]), e[2] !== void 0 && (t.tolerance = e[2])), t = { ...nR.DEFAULT_OPTIONS, ...t };
|
|
78091
78099
|
const i = pe.from({
|
|
78092
78100
|
vertex: {
|
|
78093
|
-
source:
|
|
78101
|
+
source: De,
|
|
78094
78102
|
entryPoint: "mainVertex"
|
|
78095
78103
|
},
|
|
78096
78104
|
fragment: {
|
|
@@ -78098,7 +78106,7 @@ const iR = class nR extends ge {
|
|
|
78098
78106
|
entryPoint: "mainFragment"
|
|
78099
78107
|
}
|
|
78100
78108
|
}), n = ue.from({
|
|
78101
|
-
vertex:
|
|
78109
|
+
vertex: Me,
|
|
78102
78110
|
fragment: UZ,
|
|
78103
78111
|
name: "color-replace-filter"
|
|
78104
78112
|
});
|
|
@@ -78257,7 +78265,7 @@ const oR = class aR extends ge {
|
|
|
78257
78265
|
Array.isArray(t) && (J("6.0.0", "ConvolutionFilter constructor params are now options object. See params: { matrix, width, height }"), t = { matrix: t }, e[1] !== void 0 && (t.width = e[1]), e[2] !== void 0 && (t.height = e[2])), t = { ...aR.DEFAULT_OPTIONS, ...t };
|
|
78258
78266
|
const i = t.width ?? 200, n = t.height ?? 200, s = pe.from({
|
|
78259
78267
|
vertex: {
|
|
78260
|
-
source:
|
|
78268
|
+
source: De,
|
|
78261
78269
|
entryPoint: "mainVertex"
|
|
78262
78270
|
},
|
|
78263
78271
|
fragment: {
|
|
@@ -78265,7 +78273,7 @@ const oR = class aR extends ge {
|
|
|
78265
78273
|
entryPoint: "mainFragment"
|
|
78266
78274
|
}
|
|
78267
78275
|
}), o = ue.from({
|
|
78268
|
-
vertex:
|
|
78276
|
+
vertex: Me,
|
|
78269
78277
|
fragment: HZ,
|
|
78270
78278
|
name: "convolution-filter"
|
|
78271
78279
|
});
|
|
@@ -78418,7 +78426,7 @@ class KZ extends ge {
|
|
|
78418
78426
|
constructor() {
|
|
78419
78427
|
const e = pe.from({
|
|
78420
78428
|
vertex: {
|
|
78421
|
-
source:
|
|
78429
|
+
source: De,
|
|
78422
78430
|
entryPoint: "mainVertex"
|
|
78423
78431
|
},
|
|
78424
78432
|
fragment: {
|
|
@@ -78426,7 +78434,7 @@ class KZ extends ge {
|
|
|
78426
78434
|
entryPoint: "mainFragment"
|
|
78427
78435
|
}
|
|
78428
78436
|
}), t = ue.from({
|
|
78429
|
-
vertex:
|
|
78437
|
+
vertex: Me,
|
|
78430
78438
|
fragment: qZ,
|
|
78431
78439
|
name: "cross-hatch-filter"
|
|
78432
78440
|
});
|
|
@@ -78642,7 +78650,7 @@ const lR = class uR extends ge {
|
|
|
78642
78650
|
e = { ...uR.DEFAULT_OPTIONS, ...e };
|
|
78643
78651
|
const t = pe.from({
|
|
78644
78652
|
vertex: {
|
|
78645
|
-
source:
|
|
78653
|
+
source: De,
|
|
78646
78654
|
entryPoint: "mainVertex"
|
|
78647
78655
|
},
|
|
78648
78656
|
fragment: {
|
|
@@ -78650,7 +78658,7 @@ const lR = class uR extends ge {
|
|
|
78650
78658
|
entryPoint: "mainFragment"
|
|
78651
78659
|
}
|
|
78652
78660
|
}), i = ue.from({
|
|
78653
|
-
vertex:
|
|
78661
|
+
vertex: Me,
|
|
78654
78662
|
fragment: QZ,
|
|
78655
78663
|
name: "crt-filter"
|
|
78656
78664
|
});
|
|
@@ -78877,7 +78885,7 @@ const cR = class hR extends ge {
|
|
|
78877
78885
|
uGrayScale: { value: t.grayscale ? 1 : 0, type: "f32" }
|
|
78878
78886
|
}, n = pe.from({
|
|
78879
78887
|
vertex: {
|
|
78880
|
-
source:
|
|
78888
|
+
source: De,
|
|
78881
78889
|
entryPoint: "mainVertex"
|
|
78882
78890
|
},
|
|
78883
78891
|
fragment: {
|
|
@@ -78885,7 +78893,7 @@ const cR = class hR extends ge {
|
|
|
78885
78893
|
entryPoint: "mainFragment"
|
|
78886
78894
|
}
|
|
78887
78895
|
}), s = ue.from({
|
|
78888
|
-
vertex:
|
|
78896
|
+
vertex: Me,
|
|
78889
78897
|
fragment: tJ,
|
|
78890
78898
|
name: "dot-filter"
|
|
78891
78899
|
});
|
|
@@ -78998,7 +79006,7 @@ const dR = class fR extends ge {
|
|
|
78998
79006
|
e = { ...fR.DEFAULT_OPTIONS, ...e };
|
|
78999
79007
|
const t = pe.from({
|
|
79000
79008
|
vertex: {
|
|
79001
|
-
source:
|
|
79009
|
+
source: De,
|
|
79002
79010
|
entryPoint: "mainVertex"
|
|
79003
79011
|
},
|
|
79004
79012
|
fragment: {
|
|
@@ -79006,7 +79014,7 @@ const dR = class fR extends ge {
|
|
|
79006
79014
|
entryPoint: "mainFragment"
|
|
79007
79015
|
}
|
|
79008
79016
|
}), i = ue.from({
|
|
79009
|
-
vertex:
|
|
79017
|
+
vertex: Me,
|
|
79010
79018
|
fragment: aJ,
|
|
79011
79019
|
name: "drop-shadow-filter"
|
|
79012
79020
|
});
|
|
@@ -79027,7 +79035,7 @@ const dR = class fR extends ge {
|
|
|
79027
79035
|
}), this._basePass = new ge({
|
|
79028
79036
|
gpuProgram: pe.from({
|
|
79029
79037
|
vertex: {
|
|
79030
|
-
source:
|
|
79038
|
+
source: De,
|
|
79031
79039
|
entryPoint: "mainVertex"
|
|
79032
79040
|
},
|
|
79033
79041
|
fragment: {
|
|
@@ -79046,7 +79054,7 @@ const dR = class fR extends ge {
|
|
|
79046
79054
|
}
|
|
79047
79055
|
}),
|
|
79048
79056
|
glProgram: ue.from({
|
|
79049
|
-
vertex:
|
|
79057
|
+
vertex: Me,
|
|
79050
79058
|
fragment: `
|
|
79051
79059
|
in vec2 vTextureCoord;
|
|
79052
79060
|
out vec4 finalColor;
|
|
@@ -79067,8 +79075,8 @@ const dR = class fR extends ge {
|
|
|
79067
79075
|
* @ignore
|
|
79068
79076
|
*/
|
|
79069
79077
|
apply(e, t, i, n) {
|
|
79070
|
-
const s =
|
|
79071
|
-
e.applyFilter(this, t, s, !0), this._blurFilter.apply(e, s, i, n), this.shadowOnly || e.applyFilter(this._basePass, t, i, !1),
|
|
79078
|
+
const s = Ue.getSameSizeTexture(t);
|
|
79079
|
+
e.applyFilter(this, t, s, !0), this._blurFilter.apply(e, s, i, n), this.shadowOnly || e.applyFilter(this._basePass, t, i, !1), Ue.returnTexture(s);
|
|
79072
79080
|
}
|
|
79073
79081
|
/**
|
|
79074
79082
|
* Set the offset position of the drop-shadow relative to the original image.
|
|
@@ -79273,7 +79281,7 @@ class vJ extends ge {
|
|
|
79273
79281
|
constructor(e = 5) {
|
|
79274
79282
|
const t = pe.from({
|
|
79275
79283
|
vertex: {
|
|
79276
|
-
source:
|
|
79284
|
+
source: De,
|
|
79277
79285
|
entryPoint: "mainVertex"
|
|
79278
79286
|
},
|
|
79279
79287
|
fragment: {
|
|
@@ -79281,7 +79289,7 @@ class vJ extends ge {
|
|
|
79281
79289
|
entryPoint: "mainFragment"
|
|
79282
79290
|
}
|
|
79283
79291
|
}), i = ue.from({
|
|
79284
|
-
vertex:
|
|
79292
|
+
vertex: Me,
|
|
79285
79293
|
fragment: dJ,
|
|
79286
79294
|
name: "emboss-filter"
|
|
79287
79295
|
});
|
|
@@ -79544,7 +79552,7 @@ const pR = class mR extends ge {
|
|
|
79544
79552
|
e = { ...mR.defaults, ...e };
|
|
79545
79553
|
const t = pe.from({
|
|
79546
79554
|
vertex: {
|
|
79547
|
-
source:
|
|
79555
|
+
source: De,
|
|
79548
79556
|
entryPoint: "mainVertex"
|
|
79549
79557
|
},
|
|
79550
79558
|
fragment: {
|
|
@@ -79552,7 +79560,7 @@ const pR = class mR extends ge {
|
|
|
79552
79560
|
entryPoint: "mainFragment"
|
|
79553
79561
|
}
|
|
79554
79562
|
}), i = ue.from({
|
|
79555
|
-
vertex:
|
|
79563
|
+
vertex: Me,
|
|
79556
79564
|
fragment: xJ,
|
|
79557
79565
|
name: "glitch-filter"
|
|
79558
79566
|
}), n = document.createElement("canvas");
|
|
@@ -79935,7 +79943,7 @@ const gR = class vR extends ge {
|
|
|
79935
79943
|
e = { ...vR.DEFAULT_OPTIONS, ...e };
|
|
79936
79944
|
const t = e.distance ?? 10, i = e.quality ?? 0.1, n = pe.from({
|
|
79937
79945
|
vertex: {
|
|
79938
|
-
source:
|
|
79946
|
+
source: De,
|
|
79939
79947
|
entryPoint: "mainVertex"
|
|
79940
79948
|
},
|
|
79941
79949
|
fragment: {
|
|
@@ -79943,7 +79951,7 @@ const gR = class vR extends ge {
|
|
|
79943
79951
|
entryPoint: "mainFragment"
|
|
79944
79952
|
}
|
|
79945
79953
|
}), s = ue.from({
|
|
79946
|
-
vertex:
|
|
79954
|
+
vertex: Me,
|
|
79947
79955
|
fragment: SJ.replace(/__ANGLE_STEP_SIZE__/gi, `${(1 / i / t).toFixed(7)}`).replace(/__DIST__/gi, `${t.toFixed(0)}.0`),
|
|
79948
79956
|
name: "glow-filter"
|
|
79949
79957
|
});
|
|
@@ -80407,7 +80415,7 @@ const xR = class yR extends ge {
|
|
|
80407
80415
|
e = { ...yR.DEFAULT_OPTIONS, ...e };
|
|
80408
80416
|
const t = pe.from({
|
|
80409
80417
|
vertex: {
|
|
80410
|
-
source:
|
|
80418
|
+
source: De,
|
|
80411
80419
|
entryPoint: "mainVertex"
|
|
80412
80420
|
},
|
|
80413
80421
|
fragment: {
|
|
@@ -80415,7 +80423,7 @@ const xR = class yR extends ge {
|
|
|
80415
80423
|
entryPoint: "mainFragment"
|
|
80416
80424
|
}
|
|
80417
80425
|
}), i = ue.from({
|
|
80418
|
-
vertex:
|
|
80426
|
+
vertex: Me,
|
|
80419
80427
|
fragment: PJ.replace("${PERLIN}", BJ),
|
|
80420
80428
|
name: "god-ray-filter"
|
|
80421
80429
|
});
|
|
@@ -80573,7 +80581,7 @@ class UJ extends ge {
|
|
|
80573
80581
|
constructor() {
|
|
80574
80582
|
const e = pe.from({
|
|
80575
80583
|
vertex: {
|
|
80576
|
-
source:
|
|
80584
|
+
source: De,
|
|
80577
80585
|
entryPoint: "mainVertex"
|
|
80578
80586
|
},
|
|
80579
80587
|
fragment: {
|
|
@@ -80581,7 +80589,7 @@ class UJ extends ge {
|
|
|
80581
80589
|
entryPoint: "mainFragment"
|
|
80582
80590
|
}
|
|
80583
80591
|
}), t = ue.from({
|
|
80584
|
-
vertex:
|
|
80592
|
+
vertex: Me,
|
|
80585
80593
|
fragment: DJ,
|
|
80586
80594
|
name: "grayscale-filter"
|
|
80587
80595
|
});
|
|
@@ -80719,7 +80727,7 @@ const bR = class _R extends ge {
|
|
|
80719
80727
|
e = { ..._R.DEFAULT_OPTIONS, ...e };
|
|
80720
80728
|
const t = pe.from({
|
|
80721
80729
|
vertex: {
|
|
80722
|
-
source:
|
|
80730
|
+
source: De,
|
|
80723
80731
|
entryPoint: "mainVertex"
|
|
80724
80732
|
},
|
|
80725
80733
|
fragment: {
|
|
@@ -80727,7 +80735,7 @@ const bR = class _R extends ge {
|
|
|
80727
80735
|
entryPoint: "mainFragment"
|
|
80728
80736
|
}
|
|
80729
80737
|
}), i = ue.from({
|
|
80730
|
-
vertex:
|
|
80738
|
+
vertex: Me,
|
|
80731
80739
|
fragment: zJ,
|
|
80732
80740
|
name: "hsl-adjustment-filter"
|
|
80733
80741
|
});
|
|
@@ -80901,7 +80909,7 @@ const wR = class SR extends ge {
|
|
|
80901
80909
|
t = { ...SR.DEFAULT_OPTIONS, ...t };
|
|
80902
80910
|
const i = pe.from({
|
|
80903
80911
|
vertex: {
|
|
80904
|
-
source:
|
|
80912
|
+
source: De,
|
|
80905
80913
|
entryPoint: "mainVertex"
|
|
80906
80914
|
},
|
|
80907
80915
|
fragment: {
|
|
@@ -80909,7 +80917,7 @@ const wR = class SR extends ge {
|
|
|
80909
80917
|
entryPoint: "mainFragment"
|
|
80910
80918
|
}
|
|
80911
80919
|
}), n = ue.from({
|
|
80912
|
-
vertex:
|
|
80920
|
+
vertex: Me,
|
|
80913
80921
|
fragment: WJ,
|
|
80914
80922
|
name: "motion-blur-filter"
|
|
80915
80923
|
});
|
|
@@ -81081,7 +81089,7 @@ const TR = class CR extends ge {
|
|
|
81081
81089
|
Array.isArray(t) && (J("6.0.0", "MultiColorReplaceFilter constructor params are now options object. See params: { replacements, tolerance, maxColors }"), t = { replacements: t }, e[1] && (t.tolerance = e[1]), e[2] && (t.maxColors = e[2])), t = { ...CR.DEFAULT_OPTIONS, ...t };
|
|
81082
81090
|
const i = t.maxColors ?? t.replacements.length, n = pe.from({
|
|
81083
81091
|
vertex: {
|
|
81084
|
-
source:
|
|
81092
|
+
source: De,
|
|
81085
81093
|
entryPoint: "mainVertex"
|
|
81086
81094
|
},
|
|
81087
81095
|
fragment: {
|
|
@@ -81089,7 +81097,7 @@ const TR = class CR extends ge {
|
|
|
81089
81097
|
entryPoint: "mainFragment"
|
|
81090
81098
|
}
|
|
81091
81099
|
}), s = ue.from({
|
|
81092
|
-
vertex:
|
|
81100
|
+
vertex: Me,
|
|
81093
81101
|
fragment: jJ.replace(/\$\{MAX_COLORS\}/g, i.toFixed(0)),
|
|
81094
81102
|
name: "multi-color-replace-filter"
|
|
81095
81103
|
});
|
|
@@ -81452,7 +81460,7 @@ const AR = class ER extends ge {
|
|
|
81452
81460
|
e = { ...ER.DEFAULT_OPTIONS, ...e };
|
|
81453
81461
|
const t = pe.from({
|
|
81454
81462
|
vertex: {
|
|
81455
|
-
source:
|
|
81463
|
+
source: De,
|
|
81456
81464
|
entryPoint: "mainVertex"
|
|
81457
81465
|
},
|
|
81458
81466
|
fragment: {
|
|
@@ -81460,7 +81468,7 @@ const AR = class ER extends ge {
|
|
|
81460
81468
|
entryPoint: "mainFragment"
|
|
81461
81469
|
}
|
|
81462
81470
|
}), i = ue.from({
|
|
81463
|
-
vertex:
|
|
81471
|
+
vertex: Me,
|
|
81464
81472
|
fragment: $J,
|
|
81465
81473
|
name: "old-film-filter"
|
|
81466
81474
|
});
|
|
@@ -81705,7 +81713,7 @@ const Ih = class rs extends ge {
|
|
|
81705
81713
|
typeof t == "number" && (J("6.0.0", "OutlineFilter constructor params are now options object. See params: { thickness, color, quality, alpha, knockout }"), t = { thickness: t }, e[1] !== void 0 && (t.color = e[1]), e[2] !== void 0 && (t.quality = e[2]), e[3] !== void 0 && (t.alpha = e[3]), e[4] !== void 0 && (t.knockout = e[4])), t = { ...rs.DEFAULT_OPTIONS, ...t };
|
|
81706
81714
|
const i = t.quality ?? 0.1, n = pe.from({
|
|
81707
81715
|
vertex: {
|
|
81708
|
-
source:
|
|
81716
|
+
source: De,
|
|
81709
81717
|
entryPoint: "mainVertex"
|
|
81710
81718
|
},
|
|
81711
81719
|
fragment: {
|
|
@@ -81713,7 +81721,7 @@ const Ih = class rs extends ge {
|
|
|
81713
81721
|
entryPoint: "mainFragment"
|
|
81714
81722
|
}
|
|
81715
81723
|
}), s = ue.from({
|
|
81716
|
-
vertex:
|
|
81724
|
+
vertex: Me,
|
|
81717
81725
|
fragment: n$.replace(/\$\{ANGLE_STEP\}/, rs.getAngleStep(i).toFixed(7)),
|
|
81718
81726
|
name: "outline-filter"
|
|
81719
81727
|
});
|
|
@@ -81912,7 +81920,7 @@ class h$ extends ge {
|
|
|
81912
81920
|
constructor(e = 10) {
|
|
81913
81921
|
const t = pe.from({
|
|
81914
81922
|
vertex: {
|
|
81915
|
-
source:
|
|
81923
|
+
source: De,
|
|
81916
81924
|
entryPoint: "mainVertex"
|
|
81917
81925
|
},
|
|
81918
81926
|
fragment: {
|
|
@@ -81920,7 +81928,7 @@ class h$ extends ge {
|
|
|
81920
81928
|
entryPoint: "mainFragment"
|
|
81921
81929
|
}
|
|
81922
81930
|
}), i = ue.from({
|
|
81923
|
-
vertex:
|
|
81931
|
+
vertex: Me,
|
|
81924
81932
|
fragment: u$,
|
|
81925
81933
|
name: "pixelate-filter"
|
|
81926
81934
|
});
|
|
@@ -82141,7 +82149,7 @@ const PR = class IR extends ge {
|
|
|
82141
82149
|
t = { ...IR.DEFAULT_OPTIONS, ...t };
|
|
82142
82150
|
const i = pe.from({
|
|
82143
82151
|
vertex: {
|
|
82144
|
-
source:
|
|
82152
|
+
source: De,
|
|
82145
82153
|
entryPoint: "mainVertex"
|
|
82146
82154
|
},
|
|
82147
82155
|
fragment: {
|
|
@@ -82149,7 +82157,7 @@ const PR = class IR extends ge {
|
|
|
82149
82157
|
entryPoint: "mainFragment"
|
|
82150
82158
|
}
|
|
82151
82159
|
}), n = ue.from({
|
|
82152
|
-
vertex:
|
|
82160
|
+
vertex: Me,
|
|
82153
82161
|
fragment: d$,
|
|
82154
82162
|
name: "radial-blur-filter"
|
|
82155
82163
|
});
|
|
@@ -82358,7 +82366,7 @@ const BR = class kR extends ge {
|
|
|
82358
82366
|
e = { ...kR.DEFAULT_OPTIONS, ...e };
|
|
82359
82367
|
const t = pe.from({
|
|
82360
82368
|
vertex: {
|
|
82361
|
-
source:
|
|
82369
|
+
source: De,
|
|
82362
82370
|
entryPoint: "mainVertex"
|
|
82363
82371
|
},
|
|
82364
82372
|
fragment: {
|
|
@@ -82366,7 +82374,7 @@ const BR = class kR extends ge {
|
|
|
82366
82374
|
entryPoint: "mainFragment"
|
|
82367
82375
|
}
|
|
82368
82376
|
}), i = ue.from({
|
|
82369
|
-
vertex:
|
|
82377
|
+
vertex: Me,
|
|
82370
82378
|
fragment: v$,
|
|
82371
82379
|
name: "reflection-filter"
|
|
82372
82380
|
});
|
|
@@ -82573,7 +82581,7 @@ const FR = class MR extends ge {
|
|
|
82573
82581
|
(Array.isArray(t) || "x" in t && "y" in t) && (J("6.0.0", "RGBSplitFilter constructor params are now options object. See params: { red, green, blue }"), t = { red: t }, e[1] !== void 0 && (t.green = e[1]), e[2] !== void 0 && (t.blue = e[2])), t = { ...MR.DEFAULT_OPTIONS, ...t };
|
|
82574
82582
|
const i = pe.from({
|
|
82575
82583
|
vertex: {
|
|
82576
|
-
source:
|
|
82584
|
+
source: De,
|
|
82577
82585
|
entryPoint: "mainVertex"
|
|
82578
82586
|
},
|
|
82579
82587
|
fragment: {
|
|
@@ -82581,7 +82589,7 @@ const FR = class MR extends ge {
|
|
|
82581
82589
|
entryPoint: "mainFragment"
|
|
82582
82590
|
}
|
|
82583
82591
|
}), n = ue.from({
|
|
82584
|
-
vertex:
|
|
82592
|
+
vertex: Me,
|
|
82585
82593
|
fragment: w$,
|
|
82586
82594
|
name: "rgb-split-filter"
|
|
82587
82595
|
});
|
|
@@ -82864,7 +82872,7 @@ const DR = class OR extends ge {
|
|
|
82864
82872
|
(Array.isArray(t) || "x" in t && "y" in t) && (J("6.0.0", "ShockwaveFilter constructor params are now options object. See params: { center, speed, amplitude, wavelength, brightness, radius, time }"), t = { center: t, ...e[1] }, e[2] !== void 0 && (t.time = e[2])), t = { ...OR.DEFAULT_OPTIONS, ...t };
|
|
82865
82873
|
const i = pe.from({
|
|
82866
82874
|
vertex: {
|
|
82867
|
-
source:
|
|
82875
|
+
source: De,
|
|
82868
82876
|
entryPoint: "mainVertex"
|
|
82869
82877
|
},
|
|
82870
82878
|
fragment: {
|
|
@@ -82872,7 +82880,7 @@ const DR = class OR extends ge {
|
|
|
82872
82880
|
entryPoint: "mainFragment"
|
|
82873
82881
|
}
|
|
82874
82882
|
}), n = ue.from({
|
|
82875
|
-
vertex:
|
|
82883
|
+
vertex: Me,
|
|
82876
82884
|
fragment: E$,
|
|
82877
82885
|
name: "shockwave-filter"
|
|
82878
82886
|
});
|
|
@@ -83057,7 +83065,7 @@ const UR = class zR extends ge {
|
|
|
83057
83065
|
throw Error("No light map texture source was provided to SimpleLightmapFilter");
|
|
83058
83066
|
const i = pe.from({
|
|
83059
83067
|
vertex: {
|
|
83060
|
-
source:
|
|
83068
|
+
source: De,
|
|
83061
83069
|
entryPoint: "mainVertex"
|
|
83062
83070
|
},
|
|
83063
83071
|
fragment: {
|
|
@@ -83065,7 +83073,7 @@ const UR = class zR extends ge {
|
|
|
83065
83073
|
entryPoint: "mainFragment"
|
|
83066
83074
|
}
|
|
83067
83075
|
}), n = ue.from({
|
|
83068
|
-
vertex:
|
|
83076
|
+
vertex: Me,
|
|
83069
83077
|
fragment: R$,
|
|
83070
83078
|
name: "simple-lightmap-filter"
|
|
83071
83079
|
});
|
|
@@ -83258,7 +83266,7 @@ const LR = class NR extends ge {
|
|
|
83258
83266
|
e = { ...NR.defaults, ...e };
|
|
83259
83267
|
const t = pe.from({
|
|
83260
83268
|
vertex: {
|
|
83261
|
-
source:
|
|
83269
|
+
source: De,
|
|
83262
83270
|
entryPoint: "mainVertex"
|
|
83263
83271
|
},
|
|
83264
83272
|
fragment: {
|
|
@@ -83266,7 +83274,7 @@ const LR = class NR extends ge {
|
|
|
83266
83274
|
entryPoint: "mainFragment"
|
|
83267
83275
|
}
|
|
83268
83276
|
}), i = ue.from({
|
|
83269
|
-
vertex:
|
|
83277
|
+
vertex: Me,
|
|
83270
83278
|
fragment: U$,
|
|
83271
83279
|
name: "simplex-filter"
|
|
83272
83280
|
});
|
|
@@ -83468,7 +83476,7 @@ const GR = class HR extends ge {
|
|
|
83468
83476
|
};
|
|
83469
83477
|
const n = pe.from({
|
|
83470
83478
|
vertex: {
|
|
83471
|
-
source:
|
|
83479
|
+
source: De,
|
|
83472
83480
|
entryPoint: "mainVertex"
|
|
83473
83481
|
},
|
|
83474
83482
|
fragment: {
|
|
@@ -83476,7 +83484,7 @@ const GR = class HR extends ge {
|
|
|
83476
83484
|
entryPoint: "mainFragment"
|
|
83477
83485
|
}
|
|
83478
83486
|
}), s = ue.from({
|
|
83479
|
-
vertex:
|
|
83487
|
+
vertex: Me,
|
|
83480
83488
|
fragment: W$,
|
|
83481
83489
|
name: "tilt-shift-axis-filter"
|
|
83482
83490
|
});
|
|
@@ -83531,8 +83539,8 @@ class Q$ extends $0 {
|
|
|
83531
83539
|
* @ignore
|
|
83532
83540
|
*/
|
|
83533
83541
|
apply(e, t, i, n) {
|
|
83534
|
-
const s =
|
|
83535
|
-
e.applyFilter(this, t, s, !0), e.applyFilter(this._tiltShiftYFilter, s, i, n),
|
|
83542
|
+
const s = Ue.getSameSizeTexture(t);
|
|
83543
|
+
e.applyFilter(this, t, s, !0), e.applyFilter(this._tiltShiftYFilter, s, i, n), Ue.returnTexture(s);
|
|
83536
83544
|
}
|
|
83537
83545
|
/** @ignore */
|
|
83538
83546
|
updateDelta() {
|
|
@@ -83725,7 +83733,7 @@ const VR = class XR extends ge {
|
|
|
83725
83733
|
e = { ...XR.DEFAULT_OPTIONS, ...e };
|
|
83726
83734
|
const t = pe.from({
|
|
83727
83735
|
vertex: {
|
|
83728
|
-
source:
|
|
83736
|
+
source: De,
|
|
83729
83737
|
entryPoint: "mainVertex"
|
|
83730
83738
|
},
|
|
83731
83739
|
fragment: {
|
|
@@ -83733,7 +83741,7 @@ const VR = class XR extends ge {
|
|
|
83733
83741
|
entryPoint: "mainFragment"
|
|
83734
83742
|
}
|
|
83735
83743
|
}), i = ue.from({
|
|
83736
|
-
vertex:
|
|
83744
|
+
vertex: Me,
|
|
83737
83745
|
fragment: Z$,
|
|
83738
83746
|
name: "twist-filter"
|
|
83739
83747
|
});
|
|
@@ -84019,7 +84027,7 @@ const qR = class jR extends ge {
|
|
|
84019
84027
|
e = { ...jR.DEFAULT_OPTIONS, ...e };
|
|
84020
84028
|
const t = e.maxKernelSize ?? 32, i = pe.from({
|
|
84021
84029
|
vertex: {
|
|
84022
|
-
source:
|
|
84030
|
+
source: De,
|
|
84023
84031
|
entryPoint: "mainVertex"
|
|
84024
84032
|
},
|
|
84025
84033
|
fragment: {
|
|
@@ -84027,7 +84035,7 @@ const qR = class jR extends ge {
|
|
|
84027
84035
|
entryPoint: "mainFragment"
|
|
84028
84036
|
}
|
|
84029
84037
|
}), n = ue.from({
|
|
84030
|
-
vertex:
|
|
84038
|
+
vertex: Me,
|
|
84031
84039
|
fragment: ree.replace("${MAX_KERNEL_SIZE}", t.toFixed(1)),
|
|
84032
84040
|
name: "zoom-blur-filter"
|
|
84033
84041
|
});
|
|
@@ -84840,7 +84848,7 @@ class QR {
|
|
|
84840
84848
|
const n = this.canvas.getContext("2d");
|
|
84841
84849
|
if (n == null)
|
|
84842
84850
|
throw new Error("Failed to create 2d context for PixiSpriteRenderer");
|
|
84843
|
-
this.context = n, this.root = new
|
|
84851
|
+
this.context = n, this.root = new Ie(), this.root.label = "RootContainer", this.root.visible = !1, this.animationContainer = new Ie(), this.animationContainer.label = "AnimationContainer", this.root.addChild(this.animationContainer), this.targetContainer && this.targetContainer.addChild(this.root);
|
|
84844
84852
|
}
|
|
84845
84853
|
pixiSprite = null;
|
|
84846
84854
|
mirrorSprites = [];
|
|
@@ -84929,7 +84937,7 @@ class QR {
|
|
|
84929
84937
|
const b = this.pixiSprite.texture?.width ?? 1, T = this.pixiSprite.texture?.height ?? 1, P = this.sprite.type === "Caption", A = !P && i && i !== 0 ? Math.abs(i) / b : 1, E = !P && n && n !== 0 ? Math.abs(n) / T : 1;
|
|
84930
84938
|
if (y) {
|
|
84931
84939
|
if (!this.isMirrorActive) {
|
|
84932
|
-
if (this.isMirrorActive = !0, this.mirrorContainer = new
|
|
84940
|
+
if (this.isMirrorActive = !0, this.mirrorContainer = new Ie(), this.mirrorContainer.label = "MirrorContainer", this.animationContainer) {
|
|
84933
84941
|
const M = this.animationContainer.getChildIndex(this.pixiSprite);
|
|
84934
84942
|
this.animationContainer.removeChild(this.pixiSprite), this.mirrorContainer.addChild(this.pixiSprite), this.animationContainer.addChildAt(this.mirrorContainer, M);
|
|
84935
84943
|
}
|
|
@@ -85035,7 +85043,7 @@ class QR {
|
|
|
85035
85043
|
applyShadow(e) {
|
|
85036
85044
|
const t = e.dropShadow, i = Math.abs(this.sprite.width ?? 0), n = Math.abs(this.sprite.height ?? 0);
|
|
85037
85045
|
if (t && i > 0 && n > 0 && (t.blur > 0 || t.distance > 0)) {
|
|
85038
|
-
this.shadowContainer == null && (this.shadowContainer = new
|
|
85046
|
+
this.shadowContainer == null && (this.shadowContainer = new Ie(), this.shadowContainer.label = "ShadowContainer", this.shadowGraphics = new Ke(), this.shadowContainer.addChild(this.shadowGraphics), this.animationContainer.addChildAt(this.shadowContainer, 0));
|
|
85039
85047
|
const s = pt(t.color) ?? 0, o = t.alpha ?? 0.5, a = t.blur ?? 0, l = t.distance ?? 0, u = t.angle ?? 0, c = Math.cos(u) * l, h = Math.sin(u) * l;
|
|
85040
85048
|
this.shadowContainer.position.set(c, h), this.shadowGraphics.clear();
|
|
85041
85049
|
const d = e.borderRadius || 0;
|
|
@@ -88942,14 +88950,14 @@ function ZR({ name: r, renderer: e }) {
|
|
|
88942
88950
|
if ((i.width !== G || i.height !== ne) && (i.setSize({ width: G, height: ne }), n.resize(G, ne)), oe instanceof Q ? ve.resources.from = oe.source : (s.resource = oe, s.update(), ve.resources.from = s), te instanceof Q ? ve.resources.to = te.source : (o.resource = te, o.update(), ve.resources.to = o), a && l && u) {
|
|
88943
88951
|
if (u.width !== G || u.height !== ne) {
|
|
88944
88952
|
u.width = G, u.height = ne;
|
|
88945
|
-
const
|
|
88946
|
-
if (
|
|
88947
|
-
const
|
|
88948
|
-
for (let we = 0; we <
|
|
88953
|
+
const Oe = u.getContext("2d");
|
|
88954
|
+
if (Oe) {
|
|
88955
|
+
const Be = Oe.createImageData(G, ne);
|
|
88956
|
+
for (let we = 0; we < Be.data.length; we += 4) {
|
|
88949
88957
|
const Ve = Math.random();
|
|
88950
|
-
|
|
88958
|
+
Be.data[we] = Ve * 255, Be.data[we + 1] = Ve * 255, Be.data[we + 2] = Ve * 255, Be.data[we + 3] = 255;
|
|
88951
88959
|
}
|
|
88952
|
-
|
|
88960
|
+
Oe.putImageData(Be, 0, 0);
|
|
88953
88961
|
}
|
|
88954
88962
|
}
|
|
88955
88963
|
l.resource = u, l.update();
|
|
@@ -88991,7 +88999,7 @@ class Xte extends vy {
|
|
|
88991
88999
|
numberOfChannels: nt.channelCount
|
|
88992
89000
|
})).supported) ?? !1;
|
|
88993
89001
|
}
|
|
88994
|
-
logger =
|
|
89002
|
+
logger = Ee.create(`id:${hte++},`);
|
|
88995
89003
|
destroyed = !1;
|
|
88996
89004
|
sprites = [];
|
|
88997
89005
|
canvas;
|
|
@@ -89289,66 +89297,66 @@ function dte(r) {
|
|
|
89289
89297
|
return E;
|
|
89290
89298
|
}, f = (b, T, P) => {
|
|
89291
89299
|
if (!e) return;
|
|
89292
|
-
const A = b.style || {}, { renderTransform: E } = b, _ = (E?.mirror ?? 0) > 0.5, S = T instanceof Q ? T : Q.from(T), I = E?.x ?? 0, M = E?.y ?? 0, O = E?.angle ?? 0, U = E?.scale ?? 1, V = E?.scaleX ?? 1, D = E?.scaleY ?? 1, k = E?.opacity ?? 1, X = E?.blur ?? 0, H = E?.brightness ?? 1, $ = S.width || 1, K = S.height || 1, be = b.type === "Caption", Ae = !be && b.width && b.width !== 0 ? Math.abs(b.width) / $ : 1, ve = !be && b.height && b.height !== 0 ? Math.abs(b.height) / K : 1, G = Ae * U * V, ne = ve * U * D, oe = new
|
|
89300
|
+
const A = b.style || {}, { renderTransform: E } = b, _ = (E?.mirror ?? 0) > 0.5, S = T instanceof Q ? T : Q.from(T), I = E?.x ?? 0, M = E?.y ?? 0, O = E?.angle ?? 0, U = E?.scale ?? 1, V = E?.scaleX ?? 1, D = E?.scaleY ?? 1, k = E?.opacity ?? 1, X = E?.blur ?? 0, H = E?.brightness ?? 1, $ = S.width || 1, K = S.height || 1, be = b.type === "Caption", Ae = !be && b.width && b.width !== 0 ? Math.abs(b.width) / $ : 1, ve = !be && b.height && b.height !== 0 ? Math.abs(b.height) / K : 1, G = Ae * U * V, ne = ve * U * D, oe = new Ie();
|
|
89293
89301
|
oe.x = b.center.x + I, oe.y = b.center.y + M, oe.rotation = (b.flip == null ? 1 : -1) * ((b.angle + O) * Math.PI) / 180, oe.alpha = b.opacity * k;
|
|
89294
89302
|
const te = new Ze(S);
|
|
89295
89303
|
te.anchor.set(0.5, 0.5);
|
|
89296
89304
|
let xe = [];
|
|
89297
89305
|
if (_) {
|
|
89298
|
-
const
|
|
89299
|
-
te.position.set(0, 0), te.scale.set(
|
|
89306
|
+
const ke = G, $e = ne, Ct = $ * ke, Ot = K * $e;
|
|
89307
|
+
te.position.set(0, 0), te.scale.set(ke, $e);
|
|
89300
89308
|
const qe = [
|
|
89301
|
-
[Ct, 0, -
|
|
89309
|
+
[Ct, 0, -ke, $e],
|
|
89302
89310
|
// right
|
|
89303
|
-
[-Ct, 0, -
|
|
89311
|
+
[-Ct, 0, -ke, $e],
|
|
89304
89312
|
// left
|
|
89305
|
-
[0, Ot,
|
|
89313
|
+
[0, Ot, ke, -$e],
|
|
89306
89314
|
// bottom
|
|
89307
|
-
[0, -Ot,
|
|
89315
|
+
[0, -Ot, ke, -$e],
|
|
89308
89316
|
// top
|
|
89309
|
-
[Ct, Ot, -
|
|
89317
|
+
[Ct, Ot, -ke, -$e],
|
|
89310
89318
|
// bottom-right
|
|
89311
|
-
[-Ct, Ot, -
|
|
89319
|
+
[-Ct, Ot, -ke, -$e],
|
|
89312
89320
|
// bottom-left
|
|
89313
|
-
[Ct, -Ot, -
|
|
89321
|
+
[Ct, -Ot, -ke, -$e],
|
|
89314
89322
|
// top-right
|
|
89315
|
-
[-Ct, -Ot, -
|
|
89323
|
+
[-Ct, -Ot, -ke, -$e]
|
|
89316
89324
|
// top-left
|
|
89317
89325
|
];
|
|
89318
|
-
for (const [
|
|
89326
|
+
for (const [Fe, li, Ln, jo] of qe) {
|
|
89319
89327
|
const Zi = new Ze(S);
|
|
89320
|
-
Zi.anchor.set(0.5, 0.5), Zi.position.set(
|
|
89328
|
+
Zi.anchor.set(0.5, 0.5), Zi.position.set(Fe, li), Zi.scale.set(Ln, jo), xe.push(Zi);
|
|
89321
89329
|
}
|
|
89322
89330
|
if (b.flip === "horizontal") {
|
|
89323
|
-
te.scale.x = -
|
|
89324
|
-
for (let
|
|
89325
|
-
xe[
|
|
89331
|
+
te.scale.x = -ke;
|
|
89332
|
+
for (let Fe = 0; Fe < 8; Fe++)
|
|
89333
|
+
xe[Fe].scale.x = -qe[Fe][2];
|
|
89326
89334
|
} else if (b.flip === "vertical") {
|
|
89327
89335
|
te.scale.y = -$e;
|
|
89328
|
-
for (let
|
|
89329
|
-
xe[
|
|
89336
|
+
for (let Fe = 0; Fe < 8; Fe++)
|
|
89337
|
+
xe[Fe].scale.y = -qe[Fe][3];
|
|
89330
89338
|
}
|
|
89331
89339
|
oe.addChild(te);
|
|
89332
|
-
for (const
|
|
89333
|
-
oe.addChild(
|
|
89340
|
+
for (const Fe of xe)
|
|
89341
|
+
oe.addChild(Fe);
|
|
89334
89342
|
} else
|
|
89335
89343
|
b.flip === "horizontal" ? (te.scale.x = -G, te.scale.y = ne) : b.flip === "vertical" ? (te.scale.x = G, te.scale.y = -ne) : (te.scale.x = G, te.scale.y = ne), oe.addChild(te);
|
|
89336
|
-
const
|
|
89344
|
+
const Oe = [];
|
|
89337
89345
|
if (X > 0) {
|
|
89338
|
-
const
|
|
89339
|
-
|
|
89346
|
+
const ke = new Ss();
|
|
89347
|
+
ke.strength = X, ke.quality = 4, ke.repeatEdgePixels = !0, Oe.push(ke);
|
|
89340
89348
|
}
|
|
89341
89349
|
if (H !== 1) {
|
|
89342
|
-
const
|
|
89343
|
-
|
|
89350
|
+
const ke = new vo();
|
|
89351
|
+
ke.brightness(H, !1), Oe.push(ke);
|
|
89344
89352
|
}
|
|
89345
89353
|
if (b.chromaKey && b.chromaKey.enabled) {
|
|
89346
|
-
const
|
|
89354
|
+
const ke = new dt({
|
|
89347
89355
|
uKeyColor: { value: [0, 1, 0], type: "vec3<f32>" },
|
|
89348
89356
|
uSimilarity: { value: 0.1, type: "f32" },
|
|
89349
89357
|
uSpill: { value: 0, type: "f32" }
|
|
89350
89358
|
}), $e = T4(b.chromaKey.color);
|
|
89351
|
-
$e && (
|
|
89359
|
+
$e && (ke.uniforms.uKeyColor[0] = $e.r / 255, ke.uniforms.uKeyColor[1] = $e.g / 255, ke.uniforms.uKeyColor[2] = $e.b / 255), ke.uniforms.uSimilarity = b.chromaKey.similarity, ke.uniforms.uSpill = b.chromaKey.spill;
|
|
89352
89360
|
const Ct = new ge({
|
|
89353
89361
|
glProgram: new ue({
|
|
89354
89362
|
vertex: $b,
|
|
@@ -89356,33 +89364,33 @@ function dte(r) {
|
|
|
89356
89364
|
name: "ChromaKeyShader"
|
|
89357
89365
|
}),
|
|
89358
89366
|
resources: {
|
|
89359
|
-
chromaUniforms:
|
|
89367
|
+
chromaUniforms: ke
|
|
89360
89368
|
}
|
|
89361
89369
|
});
|
|
89362
|
-
|
|
89370
|
+
Oe.push(Ct);
|
|
89363
89371
|
}
|
|
89364
|
-
oe.filters =
|
|
89365
|
-
const
|
|
89372
|
+
oe.filters = Oe;
|
|
89373
|
+
const Be = A.borderRadius || 0;
|
|
89366
89374
|
let we = null;
|
|
89367
|
-
|
|
89375
|
+
Be > 0 && (we = new Ke(), we.roundRect(
|
|
89368
89376
|
-$ / 2,
|
|
89369
89377
|
-K / 2,
|
|
89370
89378
|
$,
|
|
89371
89379
|
K,
|
|
89372
|
-
Math.min(
|
|
89380
|
+
Math.min(Be, $ / 2, K / 2)
|
|
89373
89381
|
), we.fill({ color: 16777215, alpha: 1 }), te.addChild(we), te.mask = we);
|
|
89374
89382
|
const Ve = A.stroke;
|
|
89375
|
-
let
|
|
89383
|
+
let Re = null;
|
|
89376
89384
|
if (Ve && Ve.width > 0) {
|
|
89377
|
-
|
|
89378
|
-
const
|
|
89379
|
-
if (
|
|
89385
|
+
Re = new Ke();
|
|
89386
|
+
const ke = pt(Ve.color) ?? 16777215;
|
|
89387
|
+
if (Re.setStrokeStyle({
|
|
89380
89388
|
width: Ve.width,
|
|
89381
|
-
color:
|
|
89389
|
+
color: ke,
|
|
89382
89390
|
alignment: 1
|
|
89383
|
-
}),
|
|
89384
|
-
const $e = Math.min(
|
|
89385
|
-
|
|
89391
|
+
}), Be > 0) {
|
|
89392
|
+
const $e = Math.min(Be, $ / 2, K / 2);
|
|
89393
|
+
Re.roundRect(
|
|
89386
89394
|
-$ / 2,
|
|
89387
89395
|
-K / 2,
|
|
89388
89396
|
$,
|
|
@@ -89390,24 +89398,24 @@ function dte(r) {
|
|
|
89390
89398
|
$e
|
|
89391
89399
|
);
|
|
89392
89400
|
} else
|
|
89393
|
-
|
|
89401
|
+
Re.rect(
|
|
89394
89402
|
-$ / 2,
|
|
89395
89403
|
-K / 2,
|
|
89396
89404
|
$,
|
|
89397
89405
|
K
|
|
89398
89406
|
);
|
|
89399
|
-
|
|
89407
|
+
Re.stroke(), te.addChild(Re);
|
|
89400
89408
|
}
|
|
89401
89409
|
const st = A.dropShadow;
|
|
89402
89410
|
let Je = null;
|
|
89403
89411
|
if (st && (st.blur > 0 || st.distance > 0)) {
|
|
89404
89412
|
Je = new Ke();
|
|
89405
|
-
const
|
|
89406
|
-
if (
|
|
89407
|
-
const li = Math.min(
|
|
89413
|
+
const ke = pt(st.color) ?? 0, $e = st.alpha ?? 0.5, Ct = st.distance ?? 0, Ot = st.angle ?? 0, qe = Math.cos(Ot) * Ct, Fe = Math.sin(Ot) * Ct;
|
|
89414
|
+
if (Be > 0) {
|
|
89415
|
+
const li = Math.min(Be, $ / 2, K / 2);
|
|
89408
89416
|
Je.roundRect(
|
|
89409
89417
|
-$ / 2 + qe,
|
|
89410
|
-
-K / 2 +
|
|
89418
|
+
-K / 2 + Fe,
|
|
89411
89419
|
$,
|
|
89412
89420
|
K,
|
|
89413
89421
|
li
|
|
@@ -89415,22 +89423,22 @@ function dte(r) {
|
|
|
89415
89423
|
} else
|
|
89416
89424
|
Je.rect(
|
|
89417
89425
|
-$ / 2 + qe,
|
|
89418
|
-
-K / 2 +
|
|
89426
|
+
-K / 2 + Fe,
|
|
89419
89427
|
$,
|
|
89420
89428
|
K
|
|
89421
89429
|
);
|
|
89422
|
-
Je.fill({ color:
|
|
89430
|
+
Je.fill({ color: ke, alpha: $e }), oe.addChildAt(Je, 0);
|
|
89423
89431
|
}
|
|
89424
89432
|
e.renderer.render({
|
|
89425
89433
|
container: oe,
|
|
89426
89434
|
target: P,
|
|
89427
89435
|
clear: !0
|
|
89428
|
-
}), T instanceof Q || te.texture.destroy(!0),
|
|
89429
|
-
for (const
|
|
89436
|
+
}), T instanceof Q || te.texture.destroy(!0), Re && Re.destroy(), we && we.destroy(), Je && Je.destroy();
|
|
89437
|
+
for (const ke of xe) ke.destroy();
|
|
89430
89438
|
te.destroy(), oe.destroy();
|
|
89431
89439
|
};
|
|
89432
89440
|
let p = null, m = null, g = null;
|
|
89433
|
-
n && e != null && (p = new
|
|
89441
|
+
n && e != null && (p = new Ie(), m = new Ie(), g = new Ie(), m.sortableChildren = !0, g.sortableChildren = !0, e.stage.addChild(m), e.stage.addChild(g), p.visible = !1, e.stage.addChild(p));
|
|
89434
89442
|
const v = [...t].sort((b, T) => b.zIndex - T.zIndex);
|
|
89435
89443
|
return { render: async (b) => {
|
|
89436
89444
|
const T = [];
|
|
@@ -89847,7 +89855,7 @@ class Mc {
|
|
|
89847
89855
|
const cS = {
|
|
89848
89856
|
delta: new ae()
|
|
89849
89857
|
};
|
|
89850
|
-
class hS extends
|
|
89858
|
+
class hS extends Ie {
|
|
89851
89859
|
group;
|
|
89852
89860
|
wireframe = new mte();
|
|
89853
89861
|
selectionOutlines = new Ke();
|
|
@@ -89955,7 +89963,7 @@ class hS extends Pe {
|
|
|
89955
89963
|
const i = (u) => {
|
|
89956
89964
|
if (u.label === "MainSprite" && u instanceof Ze) return u;
|
|
89957
89965
|
for (const c of u.children)
|
|
89958
|
-
if (c instanceof
|
|
89966
|
+
if (c instanceof Ie) {
|
|
89959
89967
|
const h = i(c);
|
|
89960
89968
|
if (h) return h;
|
|
89961
89969
|
}
|
|
@@ -91940,7 +91948,7 @@ class Yte extends vy {
|
|
|
91940
91948
|
autoDensity: !0,
|
|
91941
91949
|
autoStart: !1
|
|
91942
91950
|
// Prevent auto-rendering to avoid race conditions during async updates
|
|
91943
|
-
}), this.pixiApp = t, t.render(), t.stage.eventMode = "static", t.stage.hitArea = t.screen, this.artboard = new
|
|
91951
|
+
}), this.pixiApp = t, t.render(), t.stage.eventMode = "static", t.stage.hitArea = t.screen, this.artboard = new Ie(), this.artboard.label = "ArtboardRoot", t.stage.addChild(this.artboard), this.selection.init(t, this.artboard), this.artboardBg = new Ke(), this.artboardBg.rect(0, 0, this.opts.width, this.opts.height).fill({ color: 0 }), this.artboard.addChild(this.artboardBg), this.clipContainer = new Ie(), this.clipContainer.label = "ClipContainer", this.artboard.addChild(this.clipContainer), this.artboardMask = new Ke(), this.artboardMask.rect(0, 0, this.opts.width, this.opts.height).fill({ color: 16777215 }), this.clipContainer.addChild(this.artboardMask), this.clipContainer.mask = this.artboardMask, this.clipsEffectContainer = new Ie(), this.clipsEffectContainer.label = "ClipsEffect", this.clipsEffectContainer.visible = !1, this.clipsEffectContainer.zIndex = 1, this.clipsEffectContainer.sortableChildren = !0, this.clipContainer.addChild(this.clipsEffectContainer), this.clipsNormalContainer = new Ie(), this.clipsNormalContainer.label = "ClipsNormal", this.clipsNormalContainer.zIndex = 10, this.clipsNormalContainer.sortableChildren = !0, this.clipContainer.addChild(this.clipsNormalContainer), this.transFromTexture = Ft.create({
|
|
91944
91952
|
width: this.opts.width,
|
|
91945
91953
|
height: this.opts.height
|
|
91946
91954
|
}), this.transToTexture = Ft.create({
|
|
@@ -92578,7 +92586,7 @@ class Yte extends vy {
|
|
|
92578
92586
|
*/
|
|
92579
92587
|
renderClipToTransitionTexture(e, t, i) {
|
|
92580
92588
|
if (!this.pixiApp) return;
|
|
92581
|
-
const n = e.style || {}, { renderTransform: s } = e, o = (s?.mirror ?? 0) > 0.5, a = t instanceof Q ? t : Q.from(t), l = s?.x ?? 0, u = s?.y ?? 0, c = s?.angle ?? 0, h = s?.scale ?? 1, d = s?.opacity ?? 1, f = s?.blur ?? 0, p = s?.brightness ?? 1, m = a.width || 1, g = a.height || 1, v = e.type === "Caption", x = !v && e.width && e.width !== 0 ? Math.abs(e.width) / m : 1, y = !v && e.height && e.height !== 0 ? Math.abs(e.height) / g : 1, b = new
|
|
92589
|
+
const n = e.style || {}, { renderTransform: s } = e, o = (s?.mirror ?? 0) > 0.5, a = t instanceof Q ? t : Q.from(t), l = s?.x ?? 0, u = s?.y ?? 0, c = s?.angle ?? 0, h = s?.scale ?? 1, d = s?.opacity ?? 1, f = s?.blur ?? 0, p = s?.brightness ?? 1, m = a.width || 1, g = a.height || 1, v = e.type === "Caption", x = !v && e.width && e.width !== 0 ? Math.abs(e.width) / m : 1, y = !v && e.height && e.height !== 0 ? Math.abs(e.height) / g : 1, b = new Ie();
|
|
92582
92590
|
b.x = e.center.x + l, b.y = e.center.y + u, b.rotation = (e.flip == null ? 1 : -1) * ((e.angle + c) * Math.PI) / 180, b.alpha = e.opacity * d;
|
|
92583
92591
|
const T = new Ze(a);
|
|
92584
92592
|
T.anchor.set(0.5, 0.5);
|
|
@@ -92852,7 +92860,7 @@ export {
|
|
|
92852
92860
|
Wte as $,
|
|
92853
92861
|
OG as A,
|
|
92854
92862
|
e4 as B,
|
|
92855
|
-
|
|
92863
|
+
Ie as C,
|
|
92856
92864
|
WP as D,
|
|
92857
92865
|
YP as E,
|
|
92858
92866
|
FH as F,
|
|
@@ -92861,7 +92869,7 @@ export {
|
|
|
92861
92869
|
Rc as I,
|
|
92862
92870
|
KR as J,
|
|
92863
92871
|
aS as K,
|
|
92864
|
-
|
|
92872
|
+
Ee as L,
|
|
92865
92873
|
bk as M,
|
|
92866
92874
|
zk as N,
|
|
92867
92875
|
Gte as O,
|