aoi-comp 1.0.6 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-CN7W9DnD.js";
2
- import "./init-DVXFVLyx.js";
3
- import "./init-CIaGzij5.js";
1
+ import { C as e, F as t, R as n, _ as r, at as i, it as a, nt as o, tt as s, v as c } from "./Geometry-CmoUjYuy.js";
2
+ import "./init-W_GeGJkn.js";
3
+ import "./init-pj0uFHxN.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 (!(!this._isActive || this._isMobileAccessibility)) {
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 !== A || !this._activateOnTab || this._activate();
255
+ e.keyCode === A && this._activateOnTab && this._activate();
256
256
  }
257
257
  _onMouseMove(e) {
258
- e.movementX === 0 && e.movementY === 0 || this._deactivate();
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;
@@ -268,7 +268,7 @@ var k = (O.default ?? O)(globalThis.navigator), A = 9, j = 100, M = 0, N = 0, P
268
268
  }
269
269
  };
270
270
  z.extension = {
271
- type: [o.WebGLSystem, o.WebGPUSystem],
271
+ type: [a.WebGLSystem, a.WebGPUSystem],
272
272
  name: "accessibility"
273
273
  }, z.defaultOptions = {
274
274
  enabledByDefault: !1,
@@ -330,9 +330,9 @@ var B = z, V = {
330
330
  };
331
331
  H.extension = {
332
332
  type: [
333
- o.WebGLPipes,
334
- o.WebGPUPipes,
335
- o.CanvasPipes
333
+ a.WebGLPipes,
334
+ a.WebGPUPipes,
335
+ a.CanvasPipes
336
336
  ],
337
337
  name: "dom"
338
338
  };
@@ -350,7 +350,7 @@ var U = new class {
350
350
  this._pauseUpdate = e;
351
351
  }
352
352
  addTickerListener() {
353
- this._tickerAdded || !this.domElement || (r.system.add(this._tickerUpdate, this, c.INTERACTION), this._tickerAdded = !0);
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);
@@ -450,7 +450,7 @@ K.DOM_DELTA_PIXEL = 0, K.DOM_DELTA_LINE = 1, K.DOM_DELTA_PAGE = 2;
450
450
  //#region node_modules/.pnpm/pixi.js@8.20.1/node_modules/pixi.js/lib/events/EventBoundary.mjs
451
451
  var q = 2048, J = new s(), Y = new s(), X = class {
452
452
  constructor(e) {
453
- this.dispatch = new a(), this.moveOnAll = !1, this.enableGlobalMoveEvents = !0, this.mappingState = { trackingData: {} }, this.eventPool = /* @__PURE__ */ new Map(), this._allInteractiveElements = [], this._hitElements = [], this._isPointerMoveEvent = !1, this.rootTarget = e, this.hitPruneFn = this.hitPruneFn.bind(this), this.hitTestFn = this.hitTestFn.bind(this), this.mapPointerDown = this.mapPointerDown.bind(this), this.mapPointerMove = this.mapPointerMove.bind(this), this.mapPointerOut = this.mapPointerOut.bind(this), this.mapPointerOver = this.mapPointerOver.bind(this), this.mapPointerUp = this.mapPointerUp.bind(this), this.mapPointerUpOutside = this.mapPointerUpOutside.bind(this), this.mapWheel = this.mapWheel.bind(this), this.mappingTable = {}, this.addEventMapping("pointerdown", this.mapPointerDown), this.addEventMapping("pointermove", this.mapPointerMove), this.addEventMapping("pointerout", this.mapPointerOut), this.addEventMapping("pointerleave", this.mapPointerOut), this.addEventMapping("pointerover", this.mapPointerOver), this.addEventMapping("pointerup", this.mapPointerUp), this.addEventMapping("pointerupoutside", this.mapPointerUpOutside), this.addEventMapping("wheel", this.mapWheel);
453
+ this.dispatch = new o(), this.moveOnAll = !1, this.enableGlobalMoveEvents = !0, this.mappingState = { trackingData: {} }, this.eventPool = /* @__PURE__ */ new Map(), this._allInteractiveElements = [], this._hitElements = [], this._isPointerMoveEvent = !1, this.rootTarget = e, this.hitPruneFn = this.hitPruneFn.bind(this), this.hitTestFn = this.hitTestFn.bind(this), this.mapPointerDown = this.mapPointerDown.bind(this), this.mapPointerMove = this.mapPointerMove.bind(this), this.mapPointerOut = this.mapPointerOut.bind(this), this.mapPointerOver = this.mapPointerOver.bind(this), this.mapPointerUp = this.mapPointerUp.bind(this), this.mapPointerUpOutside = this.mapPointerUpOutside.bind(this), this.mapWheel = this.mapWheel.bind(this), this.mappingTable = {}, this.addEventMapping("pointerdown", this.mapPointerDown), this.addEventMapping("pointermove", this.mapPointerMove), this.addEventMapping("pointerout", this.mapPointerOut), this.addEventMapping("pointerleave", this.mapPointerOut), this.addEventMapping("pointerover", this.mapPointerOver), this.addEventMapping("pointerup", this.mapPointerUp), this.addEventMapping("pointerupoutside", this.mapPointerUpOutside), this.addEventMapping("wheel", this.mapWheel);
454
454
  }
455
455
  addEventMapping(e, t) {
456
456
  this.mappingTable[e] || (this.mappingTable[e] = []), this.mappingTable[e].push({
@@ -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) if ("fn" in n) n.once && e.currentTarget.removeListener(t, n.fn, void 0, !0), n.fn.call(n.context, e);
743
- 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);
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
  }
@@ -893,9 +893,9 @@ var q = 2048, J = new s(), Y = new s(), X = class {
893
893
  Q.extension = {
894
894
  name: "events",
895
895
  type: [
896
- o.WebGLSystem,
897
- o.CanvasSystem,
898
- o.WebGPUSystem
896
+ a.WebGLSystem,
897
+ a.CanvasSystem,
898
+ a.WebGPUSystem
899
899
  ],
900
900
  priority: -1
901
901
  }, Q.defaultEventFeatures = {
@@ -1,4 +1,4 @@
1
- import { $ as e, W as t, b as n, rt as r, z as i } from "./Geometry-CN7W9DnD.js";
1
+ import { $ as e, W as t, b as n, it as r, z as i } from "./Geometry-CmoUjYuy.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) {