reacthub-pixitweenjs 0.2.29 → 0.2.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +120 -120
- package/dist/index.umd.js +37 -37
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as at from "react";
|
|
2
|
-
import Wl, { useState as
|
|
2
|
+
import Wl, { useState as le, useRef as dt, useLayoutEffect as Yl, useCallback as Pe, useEffect as Pr, useContext as yi, useReducer as Xh } from "react";
|
|
3
3
|
import { PixiComponent as Wh, applyDefaultProps as Yh, withFilters as sa, Container as Ft, Sprite as aa, useApp as Kl, AnimatedSprite as Kh, Graphics as Zh, Text as Qh } from "@pixi/react";
|
|
4
4
|
import _e from "gsap";
|
|
5
|
-
import * as
|
|
5
|
+
import * as de from "pixi.js";
|
|
6
6
|
import { Sound as Jh } from "@pixi/sound";
|
|
7
7
|
var Le = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
8
8
|
function Mr(e) {
|
|
@@ -1752,7 +1752,7 @@ var pa = ha, Lr = ef, Mf = yf, Lf = pa("%TypeError%"), Tn = pa("%WeakMap%", !0),
|
|
|
1752
1752
|
parse: wd,
|
|
1753
1753
|
stringify: xd
|
|
1754
1754
|
}, Ad = Rc;
|
|
1755
|
-
function
|
|
1755
|
+
function he() {
|
|
1756
1756
|
this.protocol = null, this.slashes = null, this.auth = null, this.host = null, this.port = null, this.hostname = null, this.hash = null, this.search = null, this.query = null, this.pathname = null, this.path = null, this.href = null;
|
|
1757
1757
|
}
|
|
1758
1758
|
var Sd = /^([a-z0-9.+-]+:)/i, Od = /:[0-9]*$/, Rd = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/, Id = [
|
|
@@ -1801,12 +1801,12 @@ var Sd = /^([a-z0-9.+-]+:)/i, Od = /:[0-9]*$/, Rd = /^(\/\/?(?!\/)[^?\s]*)(\?[^\
|
|
|
1801
1801
|
"file:": !0
|
|
1802
1802
|
}, Ds = Td;
|
|
1803
1803
|
function _i(e, t, r) {
|
|
1804
|
-
if (e && typeof e == "object" && e instanceof
|
|
1804
|
+
if (e && typeof e == "object" && e instanceof he)
|
|
1805
1805
|
return e;
|
|
1806
|
-
var n = new
|
|
1806
|
+
var n = new he();
|
|
1807
1807
|
return n.parse(e, t, r), n;
|
|
1808
1808
|
}
|
|
1809
|
-
|
|
1809
|
+
he.prototype.parse = function(e, t, r) {
|
|
1810
1810
|
if (typeof e != "string")
|
|
1811
1811
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof e);
|
|
1812
1812
|
var n = e.indexOf("?"), i = n !== -1 && n < e.indexOf("#") ? "?" : "#", s = e.split(i), a = /\\/g;
|
|
@@ -1875,9 +1875,9 @@ ce.prototype.parse = function(e, t, r) {
|
|
|
1875
1875
|
return this.href = this.format(), this;
|
|
1876
1876
|
};
|
|
1877
1877
|
function Md(e) {
|
|
1878
|
-
return typeof e == "string" && (e = _i(e)), e instanceof
|
|
1878
|
+
return typeof e == "string" && (e = _i(e)), e instanceof he ? e.format() : he.prototype.format.call(e);
|
|
1879
1879
|
}
|
|
1880
|
-
|
|
1880
|
+
he.prototype.format = function() {
|
|
1881
1881
|
var e = this.auth || "";
|
|
1882
1882
|
e && (e = encodeURIComponent(e), e = e.replace(/%3A/i, ":"), e += "@");
|
|
1883
1883
|
var t = this.protocol || "", r = this.pathname || "", n = this.hash || "", i = !1, s = "";
|
|
@@ -1890,15 +1890,15 @@ ce.prototype.format = function() {
|
|
|
1890
1890
|
function Ld(e, t) {
|
|
1891
1891
|
return _i(e, !1, !0).resolve(t);
|
|
1892
1892
|
}
|
|
1893
|
-
|
|
1893
|
+
he.prototype.resolve = function(e) {
|
|
1894
1894
|
return this.resolveObject(_i(e, !1, !0)).format();
|
|
1895
1895
|
};
|
|
1896
|
-
|
|
1896
|
+
he.prototype.resolveObject = function(e) {
|
|
1897
1897
|
if (typeof e == "string") {
|
|
1898
|
-
var t = new
|
|
1898
|
+
var t = new he();
|
|
1899
1899
|
t.parse(e, !1, !0), e = t;
|
|
1900
1900
|
}
|
|
1901
|
-
for (var r = new
|
|
1901
|
+
for (var r = new he(), n = Object.keys(this), i = 0; i < n.length; i++) {
|
|
1902
1902
|
var s = n[i];
|
|
1903
1903
|
r[s] = this[s];
|
|
1904
1904
|
}
|
|
@@ -1960,7 +1960,7 @@ ce.prototype.resolveObject = function(e) {
|
|
|
1960
1960
|
}
|
|
1961
1961
|
return g = g || r.host && b.length, g && !A && b.unshift(""), b.length > 0 ? r.pathname = b.join("/") : (r.pathname = null, r.path = null), (r.pathname !== null || r.search !== null) && (r.path = (r.pathname ? r.pathname : "") + (r.search ? r.search : "")), r.auth = e.auth || r.auth, r.slashes = r.slashes || e.slashes, r.href = r.format(), r;
|
|
1962
1962
|
};
|
|
1963
|
-
|
|
1963
|
+
he.prototype.parseHost = function() {
|
|
1964
1964
|
var e = this.host, t = Od.exec(e);
|
|
1965
1965
|
t && (t = t[0], t !== ":" && (this.port = t.substr(1)), e = e.substr(0, e.length - t.length)), e && (this.hostname = e);
|
|
1966
1966
|
};
|
|
@@ -2595,7 +2595,7 @@ function Tu(e, t) {
|
|
|
2595
2595
|
}
|
|
2596
2596
|
throw new Error("Unrecognized source type to auto-detect Resource");
|
|
2597
2597
|
}
|
|
2598
|
-
class
|
|
2598
|
+
class ce {
|
|
2599
2599
|
constructor(t) {
|
|
2600
2600
|
this.items = [], this._name = t, this._aliasCount = 0;
|
|
2601
2601
|
}
|
|
@@ -2634,13 +2634,13 @@ class fe {
|
|
|
2634
2634
|
return this._name;
|
|
2635
2635
|
}
|
|
2636
2636
|
}
|
|
2637
|
-
Object.defineProperties(
|
|
2638
|
-
dispatch: { value:
|
|
2639
|
-
run: { value:
|
|
2637
|
+
Object.defineProperties(ce.prototype, {
|
|
2638
|
+
dispatch: { value: ce.prototype.emit },
|
|
2639
|
+
run: { value: ce.prototype.emit }
|
|
2640
2640
|
});
|
|
2641
2641
|
class cn {
|
|
2642
2642
|
constructor(t = 0, r = 0) {
|
|
2643
|
-
this._width = t, this._height = r, this.destroyed = !1, this.internal = !1, this.onResize = new
|
|
2643
|
+
this._width = t, this._height = r, this.destroyed = !1, this.internal = !1, this.onResize = new ce("setRealSize"), this.onUpdate = new ce("update"), this.onError = new ce("onError");
|
|
2644
2644
|
}
|
|
2645
2645
|
bind(t) {
|
|
2646
2646
|
this.onResize.add(t), this.onUpdate.add(t), this.onError.add(t), (this._width || this._height) && this.onResize.emit(this._width, this._height);
|
|
@@ -2843,7 +2843,7 @@ class qs {
|
|
|
2843
2843
|
}
|
|
2844
2844
|
let sp = 0, Kt = class Au {
|
|
2845
2845
|
constructor(t, r = !0, n = !1) {
|
|
2846
|
-
this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = n, this.static = r, this.id = sp++, this.disposeRunner = new
|
|
2846
|
+
this.data = t || new Float32Array(1), this._glBuffers = {}, this._updateID = 0, this.index = n, this.static = r, this.id = sp++, this.disposeRunner = new ce("disposeBuffer");
|
|
2847
2847
|
}
|
|
2848
2848
|
update(t) {
|
|
2849
2849
|
t instanceof Array && (t = new Float32Array(t)), this.data = t || this.data, this._updateID++;
|
|
@@ -2910,7 +2910,7 @@ const up = {
|
|
|
2910
2910
|
};
|
|
2911
2911
|
class Nr {
|
|
2912
2912
|
constructor(t = [], r = {}) {
|
|
2913
|
-
this.buffers = t, this.indexBuffer = null, this.attributes = r, this.glVertexArrayObjects = {}, this.id = lp++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new
|
|
2913
|
+
this.buffers = t, this.indexBuffer = null, this.attributes = r, this.glVertexArrayObjects = {}, this.id = lp++, this.instanced = !1, this.instanceCount = 1, this.disposeRunner = new ce("disposeGeometry"), this.refCount = 0;
|
|
2914
2914
|
}
|
|
2915
2915
|
addAttribute(t, r, n = 0, i = !1, s, a, o, l = !1) {
|
|
2916
2916
|
if (!r)
|
|
@@ -4038,7 +4038,7 @@ let Oe = gr;
|
|
|
4038
4038
|
Oe.defaultVertexPrecision = Jt.HIGH;
|
|
4039
4039
|
Oe.defaultFragmentPrecision = br.apple.device ? Jt.HIGH : Jt.MEDIUM;
|
|
4040
4040
|
let Ap = 0;
|
|
4041
|
-
class
|
|
4041
|
+
class fe {
|
|
4042
4042
|
constructor(t, r, n) {
|
|
4043
4043
|
this.group = !0, this.syncUniforms = {}, this.dirtyId = 0, this.id = Ap++, this.static = !!r, this.ubo = !!n, t instanceof Kt ? (this.buffer = t, this.buffer.type = be.UNIFORM_BUFFER, this.autoManage = !1, this.ubo = !0) : (this.uniforms = t, this.ubo && (this.buffer = new Kt(new Float32Array(1)), this.buffer.type = be.UNIFORM_BUFFER, this.autoManage = !0));
|
|
4044
4044
|
}
|
|
@@ -4047,20 +4047,20 @@ class de {
|
|
|
4047
4047
|
}
|
|
4048
4048
|
add(t, r, n) {
|
|
4049
4049
|
if (!this.ubo)
|
|
4050
|
-
this.uniforms[t] = new
|
|
4050
|
+
this.uniforms[t] = new fe(r, n);
|
|
4051
4051
|
else
|
|
4052
4052
|
throw new Error("[UniformGroup] uniform groups in ubo mode cannot be modified, or have uniform groups nested in them");
|
|
4053
4053
|
}
|
|
4054
4054
|
static from(t, r, n) {
|
|
4055
|
-
return new
|
|
4055
|
+
return new fe(t, r, n);
|
|
4056
4056
|
}
|
|
4057
4057
|
static uboFrom(t, r) {
|
|
4058
|
-
return new
|
|
4058
|
+
return new fe(t, r ?? !0, !0);
|
|
4059
4059
|
}
|
|
4060
4060
|
}
|
|
4061
4061
|
class mn {
|
|
4062
4062
|
constructor(t, r) {
|
|
4063
|
-
this.uniformBindCount = 0, this.program = t, r ? r instanceof
|
|
4063
|
+
this.uniformBindCount = 0, this.program = t, r ? r instanceof fe ? this.uniformGroup = r : this.uniformGroup = new fe(r) : this.uniformGroup = new fe({}), this.disposeRunner = new ce("disposeShader");
|
|
4064
4064
|
}
|
|
4065
4065
|
checkUniformExists(t, r) {
|
|
4066
4066
|
if (r.uniforms[t])
|
|
@@ -4095,7 +4095,7 @@ class Sp {
|
|
|
4095
4095
|
const n = new Int32Array(t);
|
|
4096
4096
|
for (let s = 0; s < t; s++)
|
|
4097
4097
|
n[s] = s;
|
|
4098
|
-
this.defaultGroupCache[t] =
|
|
4098
|
+
this.defaultGroupCache[t] = fe.from({ uSamplers: n }, !0);
|
|
4099
4099
|
let i = this.fragTemplate;
|
|
4100
4100
|
i = i.replace(/%count%/gi, `${t}`), i = i.replace(/%forloop%/gi, this.generateSampleSrc(t)), this.programCache[t] = new Oe(this.vertexSrc, i);
|
|
4101
4101
|
}
|
|
@@ -4199,9 +4199,9 @@ void main(void){
|
|
|
4199
4199
|
vColor = aColor * tint;
|
|
4200
4200
|
}
|
|
4201
4201
|
`;
|
|
4202
|
-
const
|
|
4202
|
+
const ne = class extends Mu {
|
|
4203
4203
|
constructor(e) {
|
|
4204
|
-
super(e), this.setShaderGenerator(), this.geometryClass = Su, this.vertexSize = 6, this.state = xi.for2d(), this.size =
|
|
4204
|
+
super(e), this.setShaderGenerator(), this.geometryClass = Su, this.vertexSize = 6, this.state = xi.for2d(), this.size = ne.defaultBatchSize * 4, this._vertexCount = 0, this._indexCount = 0, this._bufferedElements = [], this._bufferedTextures = [], this._bufferSize = 0, this._shader = null, this._packedGeometries = [], this._packedGeometryPoolSize = 2, this._flushId = 0, this._aBuffers = {}, this._iBuffers = {}, this.maxTextures = 1, this.renderer.on("prerender", this.onPrerender, this), e.runners.contextChange.add(this), this._dcIndex = 0, this._aIndex = 0, this._iIndex = 0, this._attributeBuffer = null, this._indexBuffer = null, this._tempBoundTextures = [];
|
|
4205
4205
|
}
|
|
4206
4206
|
static get defaultMaxTextures() {
|
|
4207
4207
|
return this._defaultMaxTextures = this._defaultMaxTextures ?? Rp(32), this._defaultMaxTextures;
|
|
@@ -4225,14 +4225,14 @@ const ie = class extends Mu {
|
|
|
4225
4225
|
return Ip;
|
|
4226
4226
|
}
|
|
4227
4227
|
setShaderGenerator({
|
|
4228
|
-
vertex: e =
|
|
4229
|
-
fragment: t =
|
|
4228
|
+
vertex: e = ne.defaultVertexSrc,
|
|
4229
|
+
fragment: t = ne.defaultFragmentTemplate
|
|
4230
4230
|
} = {}) {
|
|
4231
4231
|
this.shaderGenerator = new Sp(e, t);
|
|
4232
4232
|
}
|
|
4233
4233
|
contextChange() {
|
|
4234
4234
|
const e = this.renderer.gl;
|
|
4235
|
-
yt.PREFER_ENV === or.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),
|
|
4235
|
+
yt.PREFER_ENV === or.WEBGL_LEGACY ? this.maxTextures = 1 : (this.maxTextures = Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS), ne.defaultMaxTextures), this.maxTextures = np(this.maxTextures, e)), this._shader = this.shaderGenerator.generateShader(this.maxTextures);
|
|
4236
4236
|
for (let t = 0; t < this._packedGeometryPoolSize; t++)
|
|
4237
4237
|
this._packedGeometries[t] = new this.geometryClass();
|
|
4238
4238
|
this.initFlushBuffers();
|
|
@@ -4241,7 +4241,7 @@ const ie = class extends Mu {
|
|
|
4241
4241
|
const {
|
|
4242
4242
|
_drawCallPool: e,
|
|
4243
4243
|
_textureArrayPool: t
|
|
4244
|
-
} =
|
|
4244
|
+
} = ne, r = this.size / 4, n = Math.floor(r / this.maxTextures) + 1;
|
|
4245
4245
|
for (; e.length < r; )
|
|
4246
4246
|
e.push(new qs());
|
|
4247
4247
|
for (; t.length < n; )
|
|
@@ -4259,7 +4259,7 @@ const ie = class extends Mu {
|
|
|
4259
4259
|
const {
|
|
4260
4260
|
_bufferedTextures: e,
|
|
4261
4261
|
maxTextures: t
|
|
4262
|
-
} = this, r =
|
|
4262
|
+
} = this, r = ne._textureArrayPool, n = this.renderer.batch, i = this._tempBoundTextures, s = this.renderer.textureGC.count;
|
|
4263
4263
|
let a = ++gt._globalBatch, o = 0, l = r[0], h = 0;
|
|
4264
4264
|
n.copyBoundTextures(i, t);
|
|
4265
4265
|
for (let c = 0; c < this._bufferSize; ++c) {
|
|
@@ -4277,7 +4277,7 @@ const ie = class extends Mu {
|
|
|
4277
4277
|
_attributeBuffer: i,
|
|
4278
4278
|
_indexBuffer: s,
|
|
4279
4279
|
vertexSize: a
|
|
4280
|
-
} = this, o =
|
|
4280
|
+
} = this, o = ne._drawCallPool;
|
|
4281
4281
|
let l = this._dcIndex, h = this._aIndex, c = this._iIndex, f = o[l];
|
|
4282
4282
|
f.start = this._iIndex, f.texArray = e;
|
|
4283
4283
|
for (let u = t; u < r; ++u) {
|
|
@@ -4298,10 +4298,10 @@ const ie = class extends Mu {
|
|
|
4298
4298
|
_attributeBuffer: t,
|
|
4299
4299
|
_indexBuffer: r
|
|
4300
4300
|
} = this;
|
|
4301
|
-
|
|
4301
|
+
ne.canUploadSameBuffer ? (e[this._flushId]._buffer.update(t.rawBinaryData), e[this._flushId]._indexBuffer.update(r), this.renderer.geometry.updateBuffers()) : (this._packedGeometryPoolSize <= this._flushId && (this._packedGeometryPoolSize++, e[this._flushId] = new this.geometryClass()), e[this._flushId]._buffer.update(t.rawBinaryData), e[this._flushId]._indexBuffer.update(r), this.renderer.geometry.bind(e[this._flushId]), this.renderer.geometry.updateBuffers(), this._flushId++);
|
|
4302
4302
|
}
|
|
4303
4303
|
drawBatches() {
|
|
4304
|
-
const e = this._dcIndex, { gl: t, state: r } = this.renderer, n =
|
|
4304
|
+
const e = this._dcIndex, { gl: t, state: r } = this.renderer, n = ne._drawCallPool;
|
|
4305
4305
|
let i = null;
|
|
4306
4306
|
for (let s = 0; s < e; s++) {
|
|
4307
4307
|
const { texArray: a, type: o, size: l, start: h, blend: c } = n[s];
|
|
@@ -4312,7 +4312,7 @@ const ie = class extends Mu {
|
|
|
4312
4312
|
this._vertexCount !== 0 && (this._attributeBuffer = this.getAttributeBuffer(this._vertexCount), this._indexBuffer = this.getIndexBuffer(this._indexCount), this._aIndex = 0, this._iIndex = 0, this._dcIndex = 0, this.buildTexturesAndDrawCalls(), this.updateGeometry(), this.drawBatches(), this._bufferSize = 0, this._vertexCount = 0, this._indexCount = 0);
|
|
4313
4313
|
}
|
|
4314
4314
|
start() {
|
|
4315
|
-
this.renderer.state.set(this.state), this.renderer.texture.ensureSamplerType(this.maxTextures), this.renderer.shader.bind(this._shader),
|
|
4315
|
+
this.renderer.state.set(this.state), this.renderer.texture.ensureSamplerType(this.maxTextures), this.renderer.shader.bind(this._shader), ne.canUploadSameBuffer && this.renderer.geometry.bind(this._packedGeometries[this._flushId]);
|
|
4316
4316
|
}
|
|
4317
4317
|
stop() {
|
|
4318
4318
|
this.flush();
|
|
@@ -4345,15 +4345,15 @@ const ie = class extends Mu {
|
|
|
4345
4345
|
r[i++] = o + h[p];
|
|
4346
4346
|
}
|
|
4347
4347
|
};
|
|
4348
|
-
let
|
|
4349
|
-
|
|
4350
|
-
|
|
4348
|
+
let ae = ne;
|
|
4349
|
+
ae.defaultBatchSize = 4096;
|
|
4350
|
+
ae.extension = {
|
|
4351
4351
|
name: "batch",
|
|
4352
4352
|
type: pt.RendererPlugin
|
|
4353
4353
|
};
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
Et.add(
|
|
4354
|
+
ae._drawCallPool = [];
|
|
4355
|
+
ae._textureArrayPool = [];
|
|
4356
|
+
Et.add(ae);
|
|
4357
4357
|
var Cp = `varying vec2 vTextureCoord;
|
|
4358
4358
|
|
|
4359
4359
|
uniform sampler2D uSampler;
|
|
@@ -4620,7 +4620,7 @@ class Pp extends va {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
class Vs {
|
|
4622
4622
|
constructor(t, r) {
|
|
4623
|
-
this.width = Math.round(t || 100), this.height = Math.round(r || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new
|
|
4623
|
+
this.width = Math.round(t || 100), this.height = Math.round(r || 100), this.stencil = !1, this.depth = !1, this.dirtyId = 0, this.dirtyFormat = 0, this.dirtySize = 0, this.depthTexture = null, this.colorTextures = [], this.glFramebuffers = {}, this.disposeRunner = new ce("disposeFramebuffer"), this.multisample = Bt.NONE;
|
|
4624
4624
|
}
|
|
4625
4625
|
get colorTexture() {
|
|
4626
4626
|
return this.colorTextures[0];
|
|
@@ -5083,7 +5083,7 @@ class Fp {
|
|
|
5083
5083
|
const Mn = [new nt(), new nt(), new nt(), new nt()], hs = new Rt();
|
|
5084
5084
|
class $u {
|
|
5085
5085
|
constructor(t) {
|
|
5086
|
-
this.renderer = t, this.defaultFilterStack = [{}], this.texturePool = new Uu(), this.statePool = [], this.quad = new Mp(), this.quadUv = new Lp(), this.tempRect = new Tt(), this.activeState = {}, this.globalUniforms = new
|
|
5086
|
+
this.renderer = t, this.defaultFilterStack = [{}], this.texturePool = new Uu(), this.statePool = [], this.quad = new Mp(), this.quadUv = new Lp(), this.tempRect = new Tt(), this.activeState = {}, this.globalUniforms = new fe({
|
|
5087
5087
|
outputFrame: new Tt(),
|
|
5088
5088
|
inputSize: new Float32Array(4),
|
|
5089
5089
|
inputPixel: new Float32Array(4),
|
|
@@ -6346,7 +6346,7 @@ class ly extends vi {
|
|
|
6346
6346
|
}
|
|
6347
6347
|
addRunners(...t) {
|
|
6348
6348
|
t.forEach((r) => {
|
|
6349
|
-
this.runners[r] = new
|
|
6349
|
+
this.runners[r] = new ce(r);
|
|
6350
6350
|
});
|
|
6351
6351
|
}
|
|
6352
6352
|
addSystem(t, r) {
|
|
@@ -6402,15 +6402,15 @@ const Xn = class {
|
|
|
6402
6402
|
this.renderer = null;
|
|
6403
6403
|
}
|
|
6404
6404
|
};
|
|
6405
|
-
let
|
|
6406
|
-
|
|
6407
|
-
|
|
6408
|
-
|
|
6409
|
-
|
|
6405
|
+
let oe = Xn;
|
|
6406
|
+
oe.defaultMode = oa.AUTO;
|
|
6407
|
+
oe.defaultMaxIdle = 60 * 60;
|
|
6408
|
+
oe.defaultCheckCountMax = 60 * 10;
|
|
6409
|
+
oe.extension = {
|
|
6410
6410
|
type: pt.RendererSystem,
|
|
6411
6411
|
name: "textureGC"
|
|
6412
6412
|
};
|
|
6413
|
-
Et.add(
|
|
6413
|
+
Et.add(oe);
|
|
6414
6414
|
class fs {
|
|
6415
6415
|
constructor(t) {
|
|
6416
6416
|
this.texture = t, this.width = -1, this.height = -1, this.dirtyId = -1, this.dirtyStyleId = -1, this.mipmap = !1, this.wrapMode = 33071, this.type = vt.UNSIGNED_BYTE, this.internalFormat = et.RGBA, this.samplerType = 0;
|
|
@@ -6778,50 +6778,50 @@ Object.defineProperties(yt, {
|
|
|
6778
6778
|
},
|
|
6779
6779
|
SPRITE_MAX_TEXTURES: {
|
|
6780
6780
|
get() {
|
|
6781
|
-
return
|
|
6781
|
+
return ae.defaultMaxTextures;
|
|
6782
6782
|
},
|
|
6783
6783
|
set(e) {
|
|
6784
|
-
wt("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"),
|
|
6784
|
+
wt("7.1.0", "settings.SPRITE_MAX_TEXTURES is deprecated, use BatchRenderer.defaultMaxTextures"), ae.defaultMaxTextures = e;
|
|
6785
6785
|
}
|
|
6786
6786
|
},
|
|
6787
6787
|
SPRITE_BATCH_SIZE: {
|
|
6788
6788
|
get() {
|
|
6789
|
-
return
|
|
6789
|
+
return ae.defaultBatchSize;
|
|
6790
6790
|
},
|
|
6791
6791
|
set(e) {
|
|
6792
|
-
wt("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"),
|
|
6792
|
+
wt("7.1.0", "settings.SPRITE_BATCH_SIZE is deprecated, use BatchRenderer.defaultBatchSize"), ae.defaultBatchSize = e;
|
|
6793
6793
|
}
|
|
6794
6794
|
},
|
|
6795
6795
|
CAN_UPLOAD_SAME_BUFFER: {
|
|
6796
6796
|
get() {
|
|
6797
|
-
return
|
|
6797
|
+
return ae.canUploadSameBuffer;
|
|
6798
6798
|
},
|
|
6799
6799
|
set(e) {
|
|
6800
|
-
wt("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"),
|
|
6800
|
+
wt("7.1.0", "settings.CAN_UPLOAD_SAME_BUFFER is deprecated, use BatchRenderer.canUploadSameBuffer"), ae.canUploadSameBuffer = e;
|
|
6801
6801
|
}
|
|
6802
6802
|
},
|
|
6803
6803
|
GC_MODE: {
|
|
6804
6804
|
get() {
|
|
6805
|
-
return
|
|
6805
|
+
return oe.defaultMode;
|
|
6806
6806
|
},
|
|
6807
6807
|
set(e) {
|
|
6808
|
-
wt("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"),
|
|
6808
|
+
wt("7.1.0", "settings.GC_MODE is deprecated, use TextureGCSystem.defaultMode"), oe.defaultMode = e;
|
|
6809
6809
|
}
|
|
6810
6810
|
},
|
|
6811
6811
|
GC_MAX_IDLE: {
|
|
6812
6812
|
get() {
|
|
6813
|
-
return
|
|
6813
|
+
return oe.defaultMaxIdle;
|
|
6814
6814
|
},
|
|
6815
6815
|
set(e) {
|
|
6816
|
-
wt("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"),
|
|
6816
|
+
wt("7.1.0", "settings.GC_MAX_IDLE is deprecated, use TextureGCSystem.defaultMaxIdle"), oe.defaultMaxIdle = e;
|
|
6817
6817
|
}
|
|
6818
6818
|
},
|
|
6819
6819
|
GC_MAX_CHECK_COUNT: {
|
|
6820
6820
|
get() {
|
|
6821
|
-
return
|
|
6821
|
+
return oe.defaultCheckCountMax;
|
|
6822
6822
|
},
|
|
6823
6823
|
set(e) {
|
|
6824
|
-
wt("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"),
|
|
6824
|
+
wt("7.1.0", "settings.GC_MAX_CHECK_COUNT is deprecated, use TextureGCSystem.defaultCheckCountMax"), oe.defaultCheckCountMax = e;
|
|
6825
6825
|
}
|
|
6826
6826
|
},
|
|
6827
6827
|
PRECISION_VERTEX: {
|
|
@@ -7142,7 +7142,7 @@ sh.extension = {
|
|
|
7142
7142
|
Et.add(sh);
|
|
7143
7143
|
const Ws = class extends ly {
|
|
7144
7144
|
constructor(e) {
|
|
7145
|
-
super(), this.type = Jl.WEBGL, e = Object.assign({}, yt.RENDER_OPTIONS, e), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new
|
|
7145
|
+
super(), this.type = Jl.WEBGL, e = Object.assign({}, yt.RENDER_OPTIONS, e), this.gl = null, this.CONTEXT_UID = 0, this.globalUniforms = new fe({
|
|
7146
7146
|
projectionMatrix: new Rt()
|
|
7147
7147
|
}, !0);
|
|
7148
7148
|
const t = {
|
|
@@ -8676,7 +8676,7 @@ const uh = {
|
|
|
8676
8676
|
hi.triangulate(e, t);
|
|
8677
8677
|
}
|
|
8678
8678
|
};
|
|
8679
|
-
var
|
|
8679
|
+
var se = /* @__PURE__ */ ((e) => (e.MITER = "miter", e.BEVEL = "bevel", e.ROUND = "round", e))(se || {}), Je = /* @__PURE__ */ ((e) => (e.BUTT = "butt", e.ROUND = "round", e.SQUARE = "square", e))(Je || {});
|
|
8680
8680
|
const kr = {
|
|
8681
8681
|
adaptive: !0,
|
|
8682
8682
|
maxLength: 10,
|
|
@@ -8793,33 +8793,33 @@ function wy(e, t) {
|
|
|
8793
8793
|
y = n[(D - 1) * 2], b = n[(D - 1) * 2 + 1], _ = n[D * 2], v = n[D * 2 + 1], x = n[(D + 1) * 2], S = n[(D + 1) * 2 + 1], w = -(b - v), E = y - _, T = Math.sqrt(w * w + E * E), w /= T, E /= T, w *= p, E *= p, N = -(v - S), A = _ - x, T = Math.sqrt(N * N + A * A), N /= T, A /= T, N *= p, A *= p;
|
|
8794
8794
|
const z = _ - y, $ = b - v, k = _ - x, I = S - v, P = z * k + $ * I, L = $ * k - I * z, j = L < 0;
|
|
8795
8795
|
if (Math.abs(L) < 1e-3 * Math.abs(P)) {
|
|
8796
|
-
c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), P >= 0 && (s.join ===
|
|
8796
|
+
c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), P >= 0 && (s.join === se.ROUND ? u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 4 : u += 2, c.push(_ - N * C, v - A * C, _ + N * R, v + A * R));
|
|
8797
8797
|
continue;
|
|
8798
8798
|
}
|
|
8799
8799
|
const G = (-w + y) * (-E + v) - (-w + _) * (-E + b), M = (-N + x) * (-A + v) - (-N + _) * (-A + S), B = (z * M - k * G) / L, q = (I * G - $ * M) / L, H = (B - _) * (B - _) + (q - v) * (q - v), X = _ + (B - _) * R, K = v + (q - v) * R, tt = _ - (B - _) * C, rt = v - (q - v) * C, ot = Math.min(z * z + $ * $, k * k + I * I), ut = j ? R : C, It = ot + ut * ut * m, St = H <= It;
|
|
8800
8800
|
let V = s.join;
|
|
8801
|
-
if (V ===
|
|
8801
|
+
if (V === se.MITER && H / m > g && (V = se.BEVEL), St)
|
|
8802
8802
|
switch (V) {
|
|
8803
|
-
case
|
|
8803
|
+
case se.MITER: {
|
|
8804
8804
|
c.push(X, K, tt, rt);
|
|
8805
8805
|
break;
|
|
8806
8806
|
}
|
|
8807
|
-
case
|
|
8807
|
+
case se.BEVEL: {
|
|
8808
8808
|
j ? c.push(X, K, _ + w * C, v + E * C, X, K, _ + N * C, v + A * C) : c.push(_ - w * R, v - E * R, tt, rt, _ - N * R, v - A * R, tt, rt), u += 2;
|
|
8809
8809
|
break;
|
|
8810
8810
|
}
|
|
8811
|
-
case
|
|
8811
|
+
case se.ROUND: {
|
|
8812
8812
|
j ? (c.push(X, K, _ + w * C, v + E * C), u += qe(_, v, _ + w * C, v + E * C, _ + N * C, v + A * C, c, !0) + 4, c.push(X, K, _ + N * C, v + A * C)) : (c.push(_ - w * R, v - E * R, tt, rt), u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 4, c.push(_ - N * R, v - A * R, tt, rt));
|
|
8813
8813
|
break;
|
|
8814
8814
|
}
|
|
8815
8815
|
}
|
|
8816
8816
|
else {
|
|
8817
8817
|
switch (c.push(_ - w * R, v - E * R, _ + w * C, v + E * C), V) {
|
|
8818
|
-
case
|
|
8818
|
+
case se.MITER: {
|
|
8819
8819
|
j ? c.push(tt, rt, tt, rt) : c.push(X, K, X, K), u += 2;
|
|
8820
8820
|
break;
|
|
8821
8821
|
}
|
|
8822
|
-
case
|
|
8822
|
+
case se.ROUND: {
|
|
8823
8823
|
j ? u += qe(_, v, _ + w * C, v + E * C, _ + N * C, v + A * C, c, !0) + 2 : u += qe(_, v, _ - w * R, v - E * R, _ - N * R, v - A * R, c, !1) + 2;
|
|
8824
8824
|
break;
|
|
8825
8825
|
}
|
|
@@ -9101,7 +9101,7 @@ class Ri {
|
|
|
9101
9101
|
}
|
|
9102
9102
|
class Aa extends Ri {
|
|
9103
9103
|
constructor() {
|
|
9104
|
-
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Je.BUTT, this.join =
|
|
9104
|
+
super(...arguments), this.width = 0, this.alignment = 0.5, this.native = !1, this.cap = Je.BUTT, this.join = se.MITER, this.miterLimit = 10;
|
|
9105
9105
|
}
|
|
9106
9106
|
clone() {
|
|
9107
9107
|
const t = new Aa();
|
|
@@ -9151,7 +9151,7 @@ const ms = {}, Kn = class extends ar {
|
|
|
9151
9151
|
alignment: 0.5,
|
|
9152
9152
|
native: !1,
|
|
9153
9153
|
cap: Je.BUTT,
|
|
9154
|
-
join:
|
|
9154
|
+
join: se.MITER,
|
|
9155
9155
|
miterLimit: 10
|
|
9156
9156
|
};
|
|
9157
9157
|
e = Object.assign(t, e), this.normalizeColor(e), this.currentPath && this.startPoly();
|
|
@@ -9314,7 +9314,7 @@ const ms = {}, Kn = class extends ar {
|
|
|
9314
9314
|
const s = {
|
|
9315
9315
|
tint: new Float32Array([1, 1, 1, 1]),
|
|
9316
9316
|
translationMatrix: new Rt(),
|
|
9317
|
-
default:
|
|
9317
|
+
default: fe.from({ uSamplers: i }, !0)
|
|
9318
9318
|
}, a = e.plugins[r]._shader.program;
|
|
9319
9319
|
ms[r] = new mn(a, s);
|
|
9320
9320
|
}
|
|
@@ -10437,7 +10437,7 @@ let Xy = class Qt extends Vy {
|
|
|
10437
10437
|
function Wy(e, t, r, n) {
|
|
10438
10438
|
for (const i in t) {
|
|
10439
10439
|
const s = r[i], a = n[i], o = t[i];
|
|
10440
|
-
s !== a && (s && e
|
|
10440
|
+
s !== a && (s && e.removeEventListener(o, s), a && e.addEventListener(o, a));
|
|
10441
10441
|
}
|
|
10442
10442
|
}
|
|
10443
10443
|
const jn = {}, Yy = Rt.IDENTITY, Ky = {
|
|
@@ -10468,7 +10468,7 @@ const jn = {}, Yy = Rt.IDENTITY, Ky = {
|
|
|
10468
10468
|
onDoubleClick: a,
|
|
10469
10469
|
uniqueId: o = ""
|
|
10470
10470
|
}) => {
|
|
10471
|
-
const l =
|
|
10471
|
+
const l = de.utils.string2hex("#F3C409"), h = de.utils.string2hex("#F3C409"), c = at.useRef({
|
|
10472
10472
|
isDragging: !1
|
|
10473
10473
|
}), f = at.useCallback(() => {
|
|
10474
10474
|
s && !c.current.isDragging && s(!0);
|
|
@@ -10589,7 +10589,7 @@ const vn = at.createContext({}), tr = {
|
|
|
10589
10589
|
}, rA = ({
|
|
10590
10590
|
children: e
|
|
10591
10591
|
}) => {
|
|
10592
|
-
const [t, r] =
|
|
10592
|
+
const [t, r] = le(!1), [n, i] = le(!1), s = dt(), a = dt(), o = dt(1e-3);
|
|
10593
10593
|
Yl(() => (a.current = _e.context(() => {
|
|
10594
10594
|
s.current && s.current.progress(0).kill(), s.current = _e.timeline({
|
|
10595
10595
|
paused: !0,
|
|
@@ -10905,7 +10905,7 @@ function Yg(e) {
|
|
|
10905
10905
|
}
|
|
10906
10906
|
var Kg = Yg;
|
|
10907
10907
|
const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], Ma = (e) => {
|
|
10908
|
-
const [t, r] = at.useState(!1), [, n] =
|
|
10908
|
+
const [t, r] = at.useState(!1), [, n] = le(!1), [, i] = le(!1), s = dt(null), a = dt(null), o = dt(null), l = dt(null), { tl: h } = yi(vn), {
|
|
10909
10909
|
uniqueId: c,
|
|
10910
10910
|
startAt: f,
|
|
10911
10911
|
endAt: u,
|
|
@@ -10963,9 +10963,9 @@ const ee = /* @__PURE__ */ Mr(Kg), Zg = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1,
|
|
|
10963
10963
|
},
|
|
10964
10964
|
[]
|
|
10965
10965
|
), C = sa(Ft, {
|
|
10966
|
-
...A > 0 && { blur:
|
|
10966
|
+
...A > 0 && { blur: de.filters.BlurFilter },
|
|
10967
10967
|
...!ee(T) && { adjust: wa },
|
|
10968
|
-
matrix:
|
|
10968
|
+
matrix: de.filters.ColorMatrixFilter
|
|
10969
10969
|
}), F = (b == null ? void 0 : b.enabled) || v && v !== Ye.Normal;
|
|
10970
10970
|
return /* @__PURE__ */ ft.jsxs(Ft, { ref: a, children: [
|
|
10971
10971
|
/* @__PURE__ */ ft.jsxs(
|
|
@@ -11435,27 +11435,27 @@ function s0(e, t, r) {
|
|
|
11435
11435
|
}
|
|
11436
11436
|
function El(e, t, r, n) {
|
|
11437
11437
|
var i = [
|
|
11438
|
-
|
|
11439
|
-
|
|
11440
|
-
|
|
11438
|
+
ue(Math.round(e).toString(16)),
|
|
11439
|
+
ue(Math.round(t).toString(16)),
|
|
11440
|
+
ue(Math.round(r).toString(16))
|
|
11441
11441
|
];
|
|
11442
11442
|
return n && i[0].charAt(0) == i[0].charAt(1) && i[1].charAt(0) == i[1].charAt(1) && i[2].charAt(0) == i[2].charAt(1) ? i[0].charAt(0) + i[1].charAt(0) + i[2].charAt(0) : i.join("");
|
|
11443
11443
|
}
|
|
11444
11444
|
function a0(e, t, r, n, i) {
|
|
11445
11445
|
var s = [
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11446
|
+
ue(Math.round(e).toString(16)),
|
|
11447
|
+
ue(Math.round(t).toString(16)),
|
|
11448
|
+
ue(Math.round(r).toString(16)),
|
|
11449
|
+
ue(Ah(n))
|
|
11450
11450
|
];
|
|
11451
11451
|
return i && s[0].charAt(0) == s[0].charAt(1) && s[1].charAt(0) == s[1].charAt(1) && s[2].charAt(0) == s[2].charAt(1) && s[3].charAt(0) == s[3].charAt(1) ? s[0].charAt(0) + s[1].charAt(0) + s[2].charAt(0) + s[3].charAt(0) : s.join("");
|
|
11452
11452
|
}
|
|
11453
11453
|
function Tl(e, t, r, n) {
|
|
11454
11454
|
var i = [
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11455
|
+
ue(Ah(n)),
|
|
11456
|
+
ue(Math.round(e).toString(16)),
|
|
11457
|
+
ue(Math.round(t).toString(16)),
|
|
11458
|
+
ue(Math.round(r).toString(16))
|
|
11459
11459
|
];
|
|
11460
11460
|
return i.join("");
|
|
11461
11461
|
}
|
|
@@ -11750,7 +11750,7 @@ function _0(e) {
|
|
|
11750
11750
|
function x0(e) {
|
|
11751
11751
|
return typeof e == "string" && e.indexOf("%") != -1;
|
|
11752
11752
|
}
|
|
11753
|
-
function
|
|
11753
|
+
function ue(e) {
|
|
11754
11754
|
return e.length == 1 ? "0" + e : "" + e;
|
|
11755
11755
|
}
|
|
11756
11756
|
function Kr(e) {
|
|
@@ -11762,7 +11762,7 @@ function Ah(e) {
|
|
|
11762
11762
|
function Sl(e) {
|
|
11763
11763
|
return Yt(e) / 255;
|
|
11764
11764
|
}
|
|
11765
|
-
var
|
|
11765
|
+
var ie = function() {
|
|
11766
11766
|
var e = "[-\\+]?\\d+%?", t = "[-\\+]?\\d*\\.\\d+%?", r = "(?:" + t + ")|(?:" + e + ")", n = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?", i = "[\\s|\\(]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")[,|\\s]+(" + r + ")\\s*\\)?";
|
|
11767
11767
|
return {
|
|
11768
11768
|
CSS_UNIT: new RegExp(r),
|
|
@@ -11779,7 +11779,7 @@ var se = function() {
|
|
|
11779
11779
|
};
|
|
11780
11780
|
}();
|
|
11781
11781
|
function Te(e) {
|
|
11782
|
-
return !!
|
|
11782
|
+
return !!ie.CSS_UNIT.exec(e);
|
|
11783
11783
|
}
|
|
11784
11784
|
function w0(e) {
|
|
11785
11785
|
e = e.replace(t0, "").replace(e0, "").toLowerCase();
|
|
@@ -11789,24 +11789,24 @@ function w0(e) {
|
|
|
11789
11789
|
else if (e == "transparent")
|
|
11790
11790
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
11791
11791
|
var r;
|
|
11792
|
-
return (r =
|
|
11792
|
+
return (r = ie.rgb.exec(e)) ? { r: r[1], g: r[2], b: r[3] } : (r = ie.rgba.exec(e)) ? { r: r[1], g: r[2], b: r[3], a: r[4] } : (r = ie.hsl.exec(e)) ? { h: r[1], s: r[2], l: r[3] } : (r = ie.hsla.exec(e)) ? { h: r[1], s: r[2], l: r[3], a: r[4] } : (r = ie.hsv.exec(e)) ? { h: r[1], s: r[2], v: r[3] } : (r = ie.hsva.exec(e)) ? { h: r[1], s: r[2], v: r[3], a: r[4] } : (r = ie.hex8.exec(e)) ? {
|
|
11793
11793
|
r: Yt(r[1]),
|
|
11794
11794
|
g: Yt(r[2]),
|
|
11795
11795
|
b: Yt(r[3]),
|
|
11796
11796
|
a: Sl(r[4]),
|
|
11797
11797
|
format: t ? "name" : "hex8"
|
|
11798
|
-
} : (r =
|
|
11798
|
+
} : (r = ie.hex6.exec(e)) ? {
|
|
11799
11799
|
r: Yt(r[1]),
|
|
11800
11800
|
g: Yt(r[2]),
|
|
11801
11801
|
b: Yt(r[3]),
|
|
11802
11802
|
format: t ? "name" : "hex"
|
|
11803
|
-
} : (r =
|
|
11803
|
+
} : (r = ie.hex4.exec(e)) ? {
|
|
11804
11804
|
r: Yt(r[1] + "" + r[1]),
|
|
11805
11805
|
g: Yt(r[2] + "" + r[2]),
|
|
11806
11806
|
b: Yt(r[3] + "" + r[3]),
|
|
11807
11807
|
a: Sl(r[4] + "" + r[4]),
|
|
11808
11808
|
format: t ? "name" : "hex8"
|
|
11809
|
-
} : (r =
|
|
11809
|
+
} : (r = ie.hex3.exec(e)) ? {
|
|
11810
11810
|
r: Yt(r[1] + "" + r[1]),
|
|
11811
11811
|
g: Yt(r[2] + "" + r[2]),
|
|
11812
11812
|
b: Yt(r[3] + "" + r[3]),
|
|
@@ -13963,9 +13963,9 @@ const kT = (e) => ({
|
|
|
13963
13963
|
}
|
|
13964
13964
|
);
|
|
13965
13965
|
}, UT = at.memo(DT), $T = sa(Ft, {
|
|
13966
|
-
blur:
|
|
13966
|
+
blur: de.filters.BlurFilter,
|
|
13967
13967
|
adjust: wa,
|
|
13968
|
-
matrix:
|
|
13968
|
+
matrix: de.filters.ColorMatrixFilter
|
|
13969
13969
|
}), jT = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], GT = {
|
|
13970
13970
|
isPlaying: !1,
|
|
13971
13971
|
progress: 0,
|
|
@@ -13976,7 +13976,7 @@ const kT = (e) => ({
|
|
|
13976
13976
|
size: { width: 50, height: 50 },
|
|
13977
13977
|
isDragging: !1
|
|
13978
13978
|
}, aA = (e) => {
|
|
13979
|
-
const [t, r] = at.useState([]), [, n] = at.useState(0), [i, s] = at.useState([]), [, a] =
|
|
13979
|
+
const [t, r] = at.useState([]), [, n] = at.useState(0), [i, s] = at.useState([]), [, a] = le(0), [, o] = le(!1), [l, h] = le(!1), [, c] = le(!1), [f, u] = IT({ autoPlay: !1 }), d = at.useRef(null), p = dt(null), m = dt(null), g = dt(null), y = dt(null), b = dt(null), _ = dt(GT), { tl: v } = yi(vn), { frames: x, delays: S, loaded: w } = f, {
|
|
13980
13980
|
uniqueId: E,
|
|
13981
13981
|
src: N,
|
|
13982
13982
|
startAt: A,
|
|
@@ -14028,19 +14028,19 @@ const kT = (e) => ({
|
|
|
14028
14028
|
);
|
|
14029
14029
|
at.useEffect(() => {
|
|
14030
14030
|
if (!ee(x)) {
|
|
14031
|
-
const _t = sT(x, (
|
|
14032
|
-
const { data: qt, width: $a, height: zh } =
|
|
14033
|
-
return
|
|
14031
|
+
const _t = sT(x, (re) => {
|
|
14032
|
+
const { data: qt, width: $a, height: zh } = re, Vh = new Uint8Array(qt);
|
|
14033
|
+
return de.Texture.fromBuffer(Vh, $a, zh);
|
|
14034
14034
|
}), xt = _t.map(
|
|
14035
|
-
(
|
|
14036
|
-
texture:
|
|
14035
|
+
(re, qt) => ({
|
|
14036
|
+
texture: re,
|
|
14037
14037
|
time: S[qt]
|
|
14038
14038
|
})
|
|
14039
14039
|
);
|
|
14040
14040
|
r(_t), s(xt);
|
|
14041
14041
|
let Mt = 0;
|
|
14042
|
-
S.forEach((
|
|
14043
|
-
Mt +=
|
|
14042
|
+
S.forEach((re) => {
|
|
14043
|
+
Mt += re * 10;
|
|
14044
14044
|
}), n(Mt);
|
|
14045
14045
|
}
|
|
14046
14046
|
}, [x, S]);
|
|
@@ -14070,14 +14070,14 @@ const kT = (e) => ({
|
|
|
14070
14070
|
onUpdateParams: []
|
|
14071
14071
|
}, Mt = Oa(I || "None");
|
|
14072
14072
|
_t = _e.context(() => {
|
|
14073
|
-
var
|
|
14073
|
+
var re, qt;
|
|
14074
14074
|
ee(Mt.from) ? ee(Mt.to) ? ee(Mt.fromTo) ? v.current.to(m.current, { alpha: 1, duration: 0.01 }, A).from(y.current, { ...xt }, A).to(
|
|
14075
14075
|
m.current,
|
|
14076
14076
|
{ alpha: 0, duration: 0.1 },
|
|
14077
14077
|
Number(T) - 0.1
|
|
14078
14078
|
) : v.current.fromTo(
|
|
14079
14079
|
m.current,
|
|
14080
|
-
(
|
|
14080
|
+
(re = Mt.fromTo) == null ? void 0 : re.from,
|
|
14081
14081
|
(qt = Mt.fromTo) == null ? void 0 : qt.to,
|
|
14082
14082
|
A
|
|
14083
14083
|
).from(y.current, { ...xt }, A).to(m.current, { alpha: 0, duration: 0.2 }, T - 0.2) : v.current.to(
|
|
@@ -21572,7 +21572,7 @@ var Hh = { exports: {} };
|
|
|
21572
21572
|
var qT = Hh.exports;
|
|
21573
21573
|
const HT = /* @__PURE__ */ Mr(qT);
|
|
21574
21574
|
const oA = (e) => {
|
|
21575
|
-
const [t, r] =
|
|
21575
|
+
const [t, r] = le(!1);
|
|
21576
21576
|
console.log("allProps", e);
|
|
21577
21577
|
const n = dt(null), i = dt(null), s = dt(null), a = dt(null), o = dt(16), l = dt(null), {
|
|
21578
21578
|
uniqueId: h,
|
|
@@ -21616,7 +21616,7 @@ const oA = (e) => {
|
|
|
21616
21616
|
}, [O]);
|
|
21617
21617
|
const P = ["italic", "oblique"].includes(T) ? T : void 0, L = ["bold", "lighter", "100", "200", "300"].includes(
|
|
21618
21618
|
A
|
|
21619
|
-
) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = at.useMemo(() => new
|
|
21619
|
+
) ? A : void 0, j = Number(I) > 0 ? I : void 0, G = at.useMemo(() => new de.TextStyle({
|
|
21620
21620
|
fontFamily: N,
|
|
21621
21621
|
fontSize: O,
|
|
21622
21622
|
fill: R || "white",
|
|
@@ -21737,9 +21737,9 @@ const oA = (e) => {
|
|
|
21737
21737
|
) })
|
|
21738
21738
|
] }) });
|
|
21739
21739
|
}, zT = sa(Ft, {
|
|
21740
|
-
blur:
|
|
21740
|
+
blur: de.filters.BlurFilter,
|
|
21741
21741
|
adjust: wa,
|
|
21742
|
-
matrix:
|
|
21742
|
+
matrix: de.filters.ColorMatrixFilter
|
|
21743
21743
|
}), VT = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], XT = {
|
|
21744
21744
|
isPlaying: !1,
|
|
21745
21745
|
progress: 0,
|
|
@@ -21750,10 +21750,10 @@ const oA = (e) => {
|
|
|
21750
21750
|
size: { width: 50, height: 50 },
|
|
21751
21751
|
isDragging: !1
|
|
21752
21752
|
}, lA = (e) => {
|
|
21753
|
-
const [t, r] = at.useState(!1), [, n] =
|
|
21753
|
+
const [t, r] = at.useState(!1), [, n] = le(!1), [, i] = at.useState({
|
|
21754
21754
|
isWaiting: !1,
|
|
21755
21755
|
isStalled: !1
|
|
21756
|
-
}), [s, a] = at.useState(), [o, l] =
|
|
21756
|
+
}), [s, a] = at.useState(), [o, l] = le(!1), h = dt(null), c = dt(null), f = dt(null), u = dt(null), d = dt(null), p = dt(null), m = dt(XT), {
|
|
21757
21757
|
tl: g,
|
|
21758
21758
|
playerTimeRef: y,
|
|
21759
21759
|
isDragging: b
|
|
@@ -21893,8 +21893,8 @@ const oA = (e) => {
|
|
|
21893
21893
|
i({ isWaiting: !1, isStalled: !1 });
|
|
21894
21894
|
}, _t = function() {
|
|
21895
21895
|
i({ isWaiting: !1, isStalled: !0 });
|
|
21896
|
-
}, xt = Math.round((Number(N) + Number.EPSILON) * 100) / 100, Mt = Math.round((Number(A) + Number.EPSILON) * 100) / 100,
|
|
21897
|
-
return console.log("urlTimestap",
|
|
21896
|
+
}, xt = Math.round((Number(N) + Number.EPSILON) * 100) / 100, Mt = Math.round((Number(A) + Number.EPSILON) * 100) / 100, re = `${X}#t=${xt},${Mt}`;
|
|
21897
|
+
return console.log("urlTimestap", re), de.Texture.fromLoader(W, re, _, {
|
|
21898
21898
|
pixiIdPrefix: _,
|
|
21899
21899
|
resourceOptions: {
|
|
21900
21900
|
autoPlay: !1,
|