aoi-comp 1.0.5 → 1.0.7
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/README.md +1 -0
- package/dist/{BufferResource-CVU-ZRRz.js → BufferResource-DFDBAnSq.js} +8 -6
- package/dist/{CanvasPool-C3aVgvEX.js → CanvasPool-BsgAe0a6.js} +1 -1
- package/dist/{Geometry-CN7W9DnD.js → Geometry-aazo6sAf.js} +13 -12
- package/dist/{RenderTargetSystem-D_FiZPnb.js → RenderTargetSystem-CZF50Fmm.js} +9 -9
- package/dist/{browserAll-DqFkNC6q.js → browserAll-DaWcejVe.js} +12 -12
- package/dist/{canvasUtils-D0KM_fKp.js → canvasUtils-De2q5tyg.js} +1 -1
- package/dist/comps.js +16867 -1973
- package/dist/{getTextureBatchBindGroup-CLFTP_Vc.js → getTextureBatchBindGroup-DQkuEaQe.js} +1 -1
- package/dist/hooks-CdZsOQlG.js +527 -0
- package/dist/hooks.js +2 -2
- package/dist/index.js +1 -1
- package/dist/{init-CIaGzij5.js → init-DVx9p_OT.js} +4 -4
- package/dist/{init-DVXFVLyx.js → init-Dhh1Ipn5.js} +40 -34
- package/dist/{packages-BbFWPD88.js → packages-CZzUFKwt.js} +954 -725
- package/dist/style.css +1 -1
- package/dist/utils.js +2 -2
- package/dist/webworkerAll-c3PtPRAK.js +2 -0
- package/package.json +2 -1
- package/dist/CanvasRenderer-CVj7HTkL.js +0 -3460
- package/dist/WebGLRenderer-CurPxJtF.js +0 -2210
- package/dist/WebGPURenderer-CfiYFIN2.js +0 -1840
- package/dist/hooks-DByotZq7.js +0 -452
- package/dist/rolldown-runtime-CWhphoD1.js +0 -23
- package/dist/webworkerAll-XSXRmCFC.js +0 -2
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as e, Z as t, n, nt as r, p as i, r as a } from "./Geometry-
|
|
2
|
-
import { k as o, w as s } from "./RenderTargetSystem-
|
|
1
|
+
import { R as e, Z as t, n, nt as r, p as i, r as a } from "./Geometry-aazo6sAf.js";
|
|
2
|
+
import { k as o, w as s } from "./RenderTargetSystem-CZF50Fmm.js";
|
|
3
3
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/high-shader/shader-bits/localUniformBit.mjs
|
|
4
4
|
var c = {
|
|
5
5
|
name: "local-uniform-bit",
|
|
@@ -204,14 +204,16 @@ function v(e, t, n) {
|
|
|
204
204
|
l = o.offset / 4, r.push(`name = "${s}";`, `offset += ${l - i};`, _[e].ubo), c = !0;
|
|
205
205
|
break;
|
|
206
206
|
}
|
|
207
|
-
if (!c)
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
207
|
+
if (!c) {
|
|
208
|
+
if (o.data.size > 1) l = o.offset / 4, r.push(n(o, l - i));
|
|
209
|
+
else {
|
|
210
|
+
let e = t[o.data.type];
|
|
211
|
+
l = o.offset / 4, r.push(`
|
|
211
212
|
v = uv.${s};
|
|
212
213
|
offset += ${l - i};
|
|
213
214
|
${e};
|
|
214
215
|
`);
|
|
216
|
+
}
|
|
215
217
|
}
|
|
216
218
|
i = l;
|
|
217
219
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as e, b as t, q as n } from "./Geometry-
|
|
1
|
+
import { L as e, b as t, q as n } from "./Geometry-aazo6sAf.js";
|
|
2
2
|
var r = new class {
|
|
3
3
|
constructor(e) {
|
|
4
4
|
this._canvasPool = /* @__PURE__ */ Object.create(null), this.canvasOptions = e || {}, this.enableFullScreen = !1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { dt as e, mt as t } from "./packages-CZzUFKwt.js";
|
|
2
2
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/extensions/Extensions.mjs
|
|
3
3
|
var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "webgl-pipes", e.WebGLPipesAdaptor = "webgl-pipes-adaptor", e.WebGLSystem = "webgl-system", e.WebGPUPipes = "webgpu-pipes", e.WebGPUPipesAdaptor = "webgpu-pipes-adaptor", e.WebGPUSystem = "webgpu-system", e.CanvasSystem = "canvas-system", e.CanvasPipesAdaptor = "canvas-pipes-adaptor", e.CanvasPipes = "canvas-pipes", e.Asset = "asset", e.LoadParser = "load-parser", e.ResolveParser = "resolve-parser", e.CacheParser = "cache-parser", e.DetectionParser = "detection-parser", e.MaskEffect = "mask-effect", e.BlendMode = "blend-mode", e.TextureSource = "texture-source", e.TextureUploaderWebGL = "texture-uploader-webgl", e.TextureUploaderWebGPU = "texture-uploader-webgpu", e.Environment = "environment", e.ShapeBuilder = "shape-builder", e.Batcher = "batcher", e))(n || {}), r = (e) => {
|
|
4
4
|
if (typeof e == "function" || typeof e == "object" && e.extension) {
|
|
@@ -98,7 +98,7 @@ var n = /* @__PURE__ */ ((e) => (e.Application = "application", e.WebGLPipes = "
|
|
|
98
98
|
set y(e) {
|
|
99
99
|
this._y !== e && (this._y = e, this._observer._onUpdate(this));
|
|
100
100
|
}
|
|
101
|
-
}, s = (/* @__PURE__ */
|
|
101
|
+
}, s = (/* @__PURE__ */ t((/* @__PURE__ */ e(((e, t) => {
|
|
102
102
|
var n = Object.prototype.hasOwnProperty, r = "~";
|
|
103
103
|
function i() {}
|
|
104
104
|
Object.create && (i.prototype = Object.create(null), new i().__proto__ || (r = !1));
|
|
@@ -628,7 +628,7 @@ var pe = fe, me = class e extends s {
|
|
|
628
628
|
super(), this.options = t, this._gpuData = /* @__PURE__ */ Object.create(null), this._gcLastUsed = -1, this.uid = w("textureSource"), this._resourceType = "textureSource", this._resourceId = w("resource"), this.uploadMethodId = "unknown", this._resolution = 1, this.pixelWidth = 1, this.pixelHeight = 1, this.width = 1, this.height = 1, this.sampleCount = 1, this.mipLevelCount = 1, this.autoGenerateMipmaps = !1, this.format = "rgba8unorm", this.dimension = "2d", this.viewDimension = "2d", this.arrayLayerCount = 1, this._ownsStyle = !1, this.antialias = !1, this.transient = !1, this._touched = 0, this._batchTick = -1, this._textureBindLocation = -1, t = {
|
|
629
629
|
...e.defaultOptions,
|
|
630
630
|
...t
|
|
631
|
-
}, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution,
|
|
631
|
+
}, this.label = t.label ?? "", this.resource = t.resource, this.autoGarbageCollect = t.autoGarbageCollect, this._resolution = t.resolution, this.pixelWidth = t.width ? t.width * this._resolution : this.resource ? this.resourceWidth ?? 1 : 1, this.pixelHeight = t.height ? t.height * this._resolution : this.resource ? this.resourceHeight ?? 1 : 1, this.width = this.pixelWidth / this._resolution, this.height = this.pixelHeight / this._resolution, this.format = t.format, this.dimension = t.dimensions, this.viewDimension = t.viewDimension ?? t.dimensions, this.arrayLayerCount = t.arrayLayerCount, this.mipLevelCount = t.mipLevelCount, this.autoGenerateMipmaps = t.autoGenerateMipmaps, this.sampleCount = t.sampleCount, this.antialias = t.antialias, this.transient = t.transient ?? !1, this.alphaMode = t.alphaMode, this.style = new pe(le(t)), this._ownsStyle = !0, this.destroyed = !1, this._refreshPOT();
|
|
632
632
|
}
|
|
633
633
|
get source() {
|
|
634
634
|
return this;
|
|
@@ -777,7 +777,7 @@ he.extension = n.TextureSource;
|
|
|
777
777
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/TextureMatrix.mjs
|
|
778
778
|
var ge = new p(), _e = class {
|
|
779
779
|
constructor(e, t) {
|
|
780
|
-
this.mapCoord = new p(), this.uClampFrame = /* @__PURE__ */ new Float32Array(4), this.uClampOffset = /* @__PURE__ */ new Float32Array(2), this._updateID = 0, this.clampOffset = 0, t === void 0 ?
|
|
780
|
+
this.mapCoord = new p(), this.uClampFrame = /* @__PURE__ */ new Float32Array(4), this.uClampOffset = /* @__PURE__ */ new Float32Array(2), this._updateID = 0, this.clampOffset = 0, this.clampMargin = t === void 0 ? e.width < 10 ? 0 : .5 : t, this.isSimple = !1, this.texture = e;
|
|
781
781
|
}
|
|
782
782
|
get texture() {
|
|
783
783
|
return this._texture;
|
|
@@ -1444,7 +1444,7 @@ function Ue(e, t) {
|
|
|
1444
1444
|
var i, o, s = r[this.toHex()];
|
|
1445
1445
|
if (s) return s;
|
|
1446
1446
|
if (t?.closest) {
|
|
1447
|
-
var c = this.toRgb(), l =
|
|
1447
|
+
var c = this.toRgb(), l = 1 / 0, u = "black";
|
|
1448
1448
|
if (!a.length) for (var d in n) a[d] = new e(n[d]).toRgb();
|
|
1449
1449
|
for (var f in n) {
|
|
1450
1450
|
var p = (i = c, o = a[f], (i.r - o.r) ** 2 + (i.g - o.g) ** 2 + (i.b - o.b) ** 2);
|
|
@@ -1742,7 +1742,8 @@ var Qe = {
|
|
|
1742
1742
|
t.parentRenderLayer?.detach(t), this.emit("childRemoved", t, this, e), i[e].emit("removed", this);
|
|
1743
1743
|
}
|
|
1744
1744
|
return i.length > 0 && this._didViewChangeTick++, i;
|
|
1745
|
-
}
|
|
1745
|
+
}
|
|
1746
|
+
if (r === 0 && this.children.length === 0) return i;
|
|
1746
1747
|
throw RangeError("removeChildren: numeric values are outside the acceptable range.");
|
|
1747
1748
|
},
|
|
1748
1749
|
removeChildAt(e) {
|
|
@@ -2249,7 +2250,7 @@ var Tt = class {
|
|
|
2249
2250
|
t > -1 && this.renderGroupChildren.splice(t, 1), e.renderGroupParent = null;
|
|
2250
2251
|
}
|
|
2251
2252
|
addChild(e) {
|
|
2252
|
-
if (this.structureDidChange = !0, e.parentRenderGroup = this, e.updateTick = -1, e.parent === this.root ?
|
|
2253
|
+
if (this.structureDidChange = !0, e.parentRenderGroup = this, e.updateTick = -1, e.relativeRenderGroupDepth = e.parent === this.root ? 1 : e.parent.relativeRenderGroupDepth + 1, e.didChange = !0, this.onChildUpdate(e), e.renderGroup) {
|
|
2253
2254
|
this.addRenderGroupChild(e.renderGroup);
|
|
2254
2255
|
return;
|
|
2255
2256
|
}
|
|
@@ -2867,8 +2868,8 @@ function Wt(e, t, n) {
|
|
|
2867
2868
|
let i = n ? t.requestedFragmentPrecision : t.requestedVertexPrecision;
|
|
2868
2869
|
return i === "highp" && r !== "highp" && (i = "mediump"), `precision ${i} float;
|
|
2869
2870
|
${e}`;
|
|
2870
|
-
}
|
|
2871
|
-
return e;
|
|
2871
|
+
}
|
|
2872
|
+
return r !== "highp" && e.substring(0, 15) === "precision highp" ? e.replace("precision highp", "precision mediump") : e;
|
|
2872
2873
|
}
|
|
2873
2874
|
//#endregion
|
|
2874
2875
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/gl/shader/program/preprocessors/insertVersion.mjs
|
|
@@ -3265,10 +3266,10 @@ function ln({ groups: e }) {
|
|
|
3265
3266
|
function un(e, t) {
|
|
3266
3267
|
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
|
|
3267
3268
|
return {
|
|
3268
|
-
structs: [...e.structs, ...t.structs].filter((e) => n.has(e.name)
|
|
3269
|
+
structs: [...e.structs, ...t.structs].filter((e) => !n.has(e.name) && (n.add(e.name), !0)),
|
|
3269
3270
|
groups: [...e.groups, ...t.groups].filter((e) => {
|
|
3270
3271
|
let t = `${e.name}-${e.binding}`;
|
|
3271
|
-
return r.has(t)
|
|
3272
|
+
return !r.has(t) && (r.add(t), !0);
|
|
3272
3273
|
})
|
|
3273
3274
|
};
|
|
3274
3275
|
}
|
|
@@ -3636,7 +3637,7 @@ var On = Dn, kn = class e extends vn {
|
|
|
3636
3637
|
t = {
|
|
3637
3638
|
...e.defaultOptions,
|
|
3638
3639
|
...t
|
|
3639
|
-
}, super(t), this.enabled = !0, this._state = On.for2d(), this.blendMode = t.blendMode, this.padding = t.padding, typeof t.antialias == "boolean" ?
|
|
3640
|
+
}, super(t), this.enabled = !0, this._state = On.for2d(), this.blendMode = t.blendMode, this.padding = t.padding, this.antialias = typeof t.antialias == "boolean" ? t.antialias ? "on" : "off" : t.antialias, this.resolution = t.resolution, this.blendRequired = t.blendRequired, this.clipToViewport = t.clipToViewport, this.addResource("uTexture", 0, 1), t.blendRequired && this.addResource("uBackTexture", 0, 3);
|
|
3640
3641
|
}
|
|
3641
3642
|
apply(e, t, n, r) {
|
|
3642
3643
|
e.applyFilter(this, t, n, r);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as e, C as t, D as n, G as r, H as i, I as a, J as o, L as s, P as c, Q as l, R as u, T as d, V as f, W as p, Y as m, Z as h, _ as g, b as _, d as v, et as y, f as b, h as ee, i as te, it as x, j as ne, k as re, l as S, m as ie, n as ae, nt as oe, o as se, r as C, rt as w, s as ce, t as le, tt as ue, u as de, w as fe, x as pe, y as me, z as T } from "./Geometry-
|
|
1
|
+
import { B as e, C as t, D as n, G as r, H as i, I as a, J as o, L as s, P as c, Q as l, R as u, T as d, V as f, W as p, Y as m, Z as h, _ as g, b as _, d as v, et as y, f as b, h as ee, i as te, it as x, j as ne, k as re, l as S, m as ie, n as ae, nt as oe, o as se, r as C, rt as w, s as ce, t as le, tt as ue, u as de, w as fe, x as pe, y as me, z as T } from "./Geometry-aazo6sAf.js";
|
|
2
2
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/environment/autoDetectEnvironment.mjs
|
|
3
3
|
var E = [];
|
|
4
4
|
x.handleByNamedList(w.Environment, E);
|
|
@@ -90,7 +90,7 @@ var O = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.COLOR = 16384] = "C
|
|
|
90
90
|
render(e, n) {
|
|
91
91
|
this.tick++;
|
|
92
92
|
let r = e;
|
|
93
|
-
if (r instanceof t && (r = { container: r }, n && (o(m, "passing a second argument is deprecated, please use render options instead"), r.target = n.renderTexture)), r.target
|
|
93
|
+
if (r instanceof t && (r = { container: r }, n && (o(m, "passing a second argument is deprecated, please use render options instead"), r.target = n.renderTexture)), r.target || (r.target = this.view.renderTarget), r.target === this.view.renderTarget && (this._lastObjectRendered = r.container, r.clearColor ?? (r.clearColor = this.background.colorRgba), r.clear ?? (r.clear = this.background.clearBeforeRender)), r.clearColor) {
|
|
94
94
|
let e = Array.isArray(r.clearColor) && r.clearColor.length === 4;
|
|
95
95
|
r.clearColor = e ? r.clearColor : T.shared.setValue(r.clearColor).toArray();
|
|
96
96
|
}
|
|
@@ -206,7 +206,7 @@ Se.extension = {
|
|
|
206
206
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/utils/data/ViewableBuffer.mjs
|
|
207
207
|
var Ce = class {
|
|
208
208
|
constructor(e) {
|
|
209
|
-
typeof e == "number" ?
|
|
209
|
+
this.rawBinaryData = typeof e == "number" ? new ArrayBuffer(e) : e instanceof Uint8Array ? e.buffer : e, this.uint32View = new Uint32Array(this.rawBinaryData), this.float32View = new Float32Array(this.rawBinaryData), this.size = this.rawBinaryData.byteLength;
|
|
210
210
|
}
|
|
211
211
|
get int8View() {
|
|
212
212
|
return this._int8View ||= new Int8Array(this.rawBinaryData), this._int8View;
|
|
@@ -789,7 +789,7 @@ var z = Ct, wt = class {
|
|
|
789
789
|
this._renderer = t, t.gc.addResourceHash(this, "items", n, i ?? 0), this._onUnload = r, this.name = a;
|
|
790
790
|
}
|
|
791
791
|
add(e) {
|
|
792
|
-
return this.items[e.uid]
|
|
792
|
+
return !this.items[e.uid] && (this.items[e.uid] = e, e.once("unload", this.remove, this), e._gcLastUsed = this._renderer.gc.now, !0);
|
|
793
793
|
}
|
|
794
794
|
remove(e, ...t) {
|
|
795
795
|
if (!this.items[e.uid]) return;
|
|
@@ -912,7 +912,7 @@ var At = class {
|
|
|
912
912
|
}
|
|
913
913
|
buildStart(e) {
|
|
914
914
|
let t = this._batchersByInstructionSet[e.uid];
|
|
915
|
-
t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default
|
|
915
|
+
t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default || (t.default = new z({ maxTextures: this.renderer.limits.maxBatchableTextures }))), this._activeBatches = t, this._activeBatch = this._activeBatches.default;
|
|
916
916
|
for (let e in this._activeBatches) this._activeBatches[e].begin();
|
|
917
917
|
}
|
|
918
918
|
addToBatch(t, n) {
|
|
@@ -1504,7 +1504,7 @@ var Ht = new y(), Ut = class {
|
|
|
1504
1504
|
}
|
|
1505
1505
|
_updateRenderGroups(e) {
|
|
1506
1506
|
let t = this._renderer, n = t.renderPipes;
|
|
1507
|
-
if (e.runOnRender(t), e.instructionSet.renderPipes = n, e.structureDidChange ? Y(e.childrenRenderablesToUpdate.list, 0) : Vt(e, n), Lt(e), e.structureDidChange ? (e.structureDidChange = !1, this._buildInstructions(e, t)) : this._updateRenderables(e), e.childrenRenderablesToUpdate.index = 0, t.renderPipes.batch.upload(e.instructionSet), !
|
|
1507
|
+
if (e.runOnRender(t), e.instructionSet.renderPipes = n, e.structureDidChange ? Y(e.childrenRenderablesToUpdate.list, 0) : Vt(e, n), Lt(e), e.structureDidChange ? (e.structureDidChange = !1, this._buildInstructions(e, t)) : this._updateRenderables(e), e.childrenRenderablesToUpdate.index = 0, t.renderPipes.batch.upload(e.instructionSet), !e.isCachedAsTexture || e.textureNeedsUpdate) for (let t = 0; t < e.renderGroupChildren.length; t++) this._updateRenderGroups(e.renderGroupChildren[t]);
|
|
1508
1508
|
}
|
|
1509
1509
|
_updateRenderables(e) {
|
|
1510
1510
|
let { list: t, index: n } = e.childrenRenderablesToUpdate;
|
|
@@ -1767,7 +1767,7 @@ var tn = class e {
|
|
|
1767
1767
|
}, this._frequency, !1), this._collectionsHandler = this._renderer.scheduler.repeat(() => {
|
|
1768
1768
|
for (let e of this._managedCollections) {
|
|
1769
1769
|
let { context: t, collection: n, type: r } = e;
|
|
1770
|
-
r === "hash" ?
|
|
1770
|
+
t[n] = r === "hash" ? $t(t[n]) : en(t[n]);
|
|
1771
1771
|
}
|
|
1772
1772
|
}, this._frequency)) : (this._renderer.scheduler.cancel(this._handler), this._renderer.scheduler.cancel(this._collectionsHandler), this._handler = 0, this._collectionsHandler = 0));
|
|
1773
1773
|
}
|
|
@@ -1775,7 +1775,7 @@ var tn = class e {
|
|
|
1775
1775
|
this.now = performance.now(), e.renderGroup.gcTick = this._renderer.tick++, this._updateInstructionGCTick(e.renderGroup, e.renderGroup.gcTick);
|
|
1776
1776
|
}
|
|
1777
1777
|
postrender() {
|
|
1778
|
-
|
|
1778
|
+
this._ready && this.enabled && (this.run(), this._ready = !1);
|
|
1779
1779
|
}
|
|
1780
1780
|
_updateInstructionGCTick(e, t) {
|
|
1781
1781
|
e.instructionSet.gcTick = t, e.gcTick = t;
|
|
@@ -2259,7 +2259,7 @@ var fn = Z, pn = class e {
|
|
|
2259
2259
|
}
|
|
2260
2260
|
}
|
|
2261
2261
|
destroy() {
|
|
2262
|
-
|
|
2262
|
+
(this.colorAttachments || this.depthStencilAttachment) && (this.sizeSource.off("resize", this.onSourceResize, this), this._managedColorTextures && this.colorAttachments.forEach((e) => {
|
|
2263
2263
|
e.texture.destroy();
|
|
2264
2264
|
}), this.depthStencilAttachment && (this.depthStencilAttachment.texture.destroy(), delete this.depthStencilAttachment), this.colorAttachments = null, this._colorTextures = null);
|
|
2265
2265
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as e, F as t, R as n, _ as r, it as i, nt as a, rt as o, tt as s, v as c } from "./Geometry-
|
|
2
|
-
import "./init-
|
|
3
|
-
import "./init-
|
|
1
|
+
import { C as e, F as t, R as n, _ as r, it as i, nt as a, rt as o, tt as s, v as c } from "./Geometry-aazo6sAf.js";
|
|
2
|
+
import "./init-Dhh1Ipn5.js";
|
|
3
|
+
import "./init-DVx9p_OT.js";
|
|
4
4
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/dom/CanvasObserver.mjs
|
|
5
5
|
var l = class {
|
|
6
6
|
constructor(e) {
|
|
@@ -176,7 +176,7 @@ var k = (O.default ?? O)(globalThis.navigator), A = 9, j = 100, M = 0, N = 0, P
|
|
|
176
176
|
this._renderer.runners.postrender.add(this), this._renderer.lastObjectRendered && this._updateAccessibleObjects(this._renderer.lastObjectRendered);
|
|
177
177
|
}
|
|
178
178
|
_deactivate() {
|
|
179
|
-
if (
|
|
179
|
+
if (this._isActive && !this._isMobileAccessibility) {
|
|
180
180
|
this._isActive = !1, globalThis.document.removeEventListener("mousemove", this._boundOnMouseMove, !0), this._activateOnTab && globalThis.addEventListener("keydown", this._boundOnKeyDown, !1), this._renderer.runners.postrender.remove(this);
|
|
181
181
|
for (let e of this._children) e._accessibleDiv?.parentNode && (e._accessibleDiv.parentNode.removeChild(e._accessibleDiv), e._accessibleDiv = null), e._accessibleActive = !1;
|
|
182
182
|
for (let e in this._pools) this._pools[e].forEach((e) => {
|
|
@@ -252,10 +252,10 @@ var k = (O.default ?? O)(globalThis.navigator), A = 9, j = 100, M = 0, N = 0, P
|
|
|
252
252
|
e.target.getAttribute("aria-live") || e.target.setAttribute("aria-live", "polite"), this._dispatchEvent(e, ["mouseout"]);
|
|
253
253
|
}
|
|
254
254
|
_onKeyDown(e) {
|
|
255
|
-
e.keyCode
|
|
255
|
+
e.keyCode === A && this._activateOnTab && this._activate();
|
|
256
256
|
}
|
|
257
257
|
_onMouseMove(e) {
|
|
258
|
-
e.movementX
|
|
258
|
+
(e.movementX !== 0 || e.movementY !== 0) && this._deactivate();
|
|
259
259
|
}
|
|
260
260
|
destroy() {
|
|
261
261
|
this._deactivate(), this._destroyTouchHook(), this._canvasObserver?.destroy(), this._canvasObserver = null, this._div = null, this._pools = null, this._children = null, this._renderer = null, this._hookDiv = null, globalThis.removeEventListener("keydown", this._boundOnKeyDown), this._boundOnKeyDown = null, globalThis.document.removeEventListener("mousemove", this._boundOnMouseMove, !0), this._boundOnMouseMove = null;
|
|
@@ -350,7 +350,7 @@ var U = new class {
|
|
|
350
350
|
this._pauseUpdate = e;
|
|
351
351
|
}
|
|
352
352
|
addTickerListener() {
|
|
353
|
-
this._tickerAdded
|
|
353
|
+
!this._tickerAdded && this.domElement && (r.system.add(this._tickerUpdate, this, c.INTERACTION), this._tickerAdded = !0);
|
|
354
354
|
}
|
|
355
355
|
removeTickerListener() {
|
|
356
356
|
this._tickerAdded &&= (r.system.remove(this._tickerUpdate, this), !1);
|
|
@@ -739,8 +739,10 @@ var q = 2048, J = new s(), Y = new s(), X = class {
|
|
|
739
739
|
}
|
|
740
740
|
_notifyListeners(e, t) {
|
|
741
741
|
let n = e.currentTarget._events[t];
|
|
742
|
-
if (n)
|
|
743
|
-
|
|
742
|
+
if (n) {
|
|
743
|
+
if ("fn" in n) n.once && e.currentTarget.removeListener(t, n.fn, void 0, !0), n.fn.call(n.context, e);
|
|
744
|
+
else for (let r = 0, i = n.length; r < i && !e.propagationImmediatelyStopped; r++) n[r].once && e.currentTarget.removeListener(t, n[r].fn, void 0, !0), n[r].fn.call(n[r].context, e);
|
|
745
|
+
}
|
|
744
746
|
}
|
|
745
747
|
}, Z = 1, ee = {
|
|
746
748
|
touchstart: "pointerdown",
|
|
@@ -781,9 +783,7 @@ var q = 2048, J = new s(), Y = new s(), X = class {
|
|
|
781
783
|
case "function":
|
|
782
784
|
n(e);
|
|
783
785
|
break;
|
|
784
|
-
case "object":
|
|
785
|
-
t && Object.assign(this.domElement.style, n);
|
|
786
|
-
break;
|
|
786
|
+
case "object": t && Object.assign(this.domElement.style, n);
|
|
787
787
|
}
|
|
788
788
|
else t && typeof e == "string" && !Object.prototype.hasOwnProperty.call(this.cursorStyles, e) && (this.domElement.style.cursor = e);
|
|
789
789
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, W as t, b as n, rt as r, z as i } from "./Geometry-
|
|
1
|
+
import { $ as e, W as t, b as n, rt as r, z as i } from "./Geometry-aazo6sAf.js";
|
|
2
2
|
//#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/rendering/renderers/shared/texture/sources/ImageSource.mjs
|
|
3
3
|
var a = class extends t {
|
|
4
4
|
constructor(e) {
|