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,5 +1,5 @@
1
- import { R as e, Z as t, n, nt as r, p as i, r as a } from "./Geometry-CN7W9DnD.js";
2
- import { k as o, w as s } from "./RenderTargetSystem-D_FiZPnb.js";
1
+ import { R as e, Z as t, n, nt as r, p as i, r as a } from "./Geometry-CmoUjYuy.js";
2
+ import { k as o, w as s } from "./RenderTargetSystem-BwBGe2Se.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) if (o.data.size > 1) l = o.offset / 4, r.push(n(o, l - i));
208
- else {
209
- let e = t[o.data.type];
210
- l = o.offset / 4, r.push(`
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-CN7W9DnD.js";
1
+ import { L as e, b as t, q as n } from "./Geometry-CmoUjYuy.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 { i as e, t } from "./rolldown-runtime-CWhphoD1.js";
1
+ import { gt as e, pt as t } from "./packages-B-izsU7O.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) {
@@ -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, t.width ? this.pixelWidth = t.width * this._resolution : this.pixelWidth = this.resource ? this.resourceWidth ?? 1 : 1, t.height ? this.pixelHeight = t.height * this._resolution : this.pixelHeight = 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();
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 ? this.clampMargin = e.width < 10 ? 0 : .5 : this.clampMargin = t, this.isSimple = !1, this.texture = e;
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 = Infinity, u = "black";
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
- } else if (r === 0 && this.children.length === 0) return i;
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 ? e.relativeRenderGroupDepth = 1 : e.relativeRenderGroupDepth = e.parent.relativeRenderGroupDepth + 1, e.didChange = !0, this.onChildUpdate(e), e.renderGroup) {
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
- } else if (r !== "highp" && e.substring(0, 15) === "precision highp") return e.replace("precision highp", "precision mediump");
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) ? !1 : (n.add(e.name), !0)),
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) ? !1 : (r.add(t), !0);
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" ? this.antialias = t.antialias ? "on" : "off" : this.antialias = 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
+ }, 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);
@@ -3799,4 +3800,4 @@ var Fn = class extends s {
3799
3800
  }
3800
3801
  };
3801
3802
  //#endregion
3802
- export { C as $, lt as A, A as B, kt as C, pt as D, St as E, Ze as F, pe as G, _e as H, z as I, D as J, le as K, Je as L, V as M, B as N, H as O, et as P, ne as Q, R, At as S, wt as T, he as U, k as V, O as W, ae as X, T as Y, w as Z, Lt as _, bn as a, Nt as b, _n as c, gn as d, p as et, dn as f, K as g, Vt as h, An as i, a as it, ot as j, dt as k, Q as l, Qt as m, jn as n, s as nt, On as o, en as p, se as q, $ as r, n as rt, vn as s, Fn as t, d as tt, Z as u, G as v, Tt as w, jt as x, Pt as y, We as z };
3803
+ export { C as $, lt as A, A as B, kt as C, pt as D, St as E, Ze as F, pe as G, _e as H, z as I, D as J, le as K, Je as L, V as M, B as N, H as O, et as P, ne as Q, R, At as S, wt as T, he as U, k as V, O as W, ae as X, T as Y, w as Z, Lt as _, bn as a, a as at, Nt as b, _n as c, gn as d, p as et, dn as f, K as g, Vt as h, An as i, n as it, ot as j, dt as k, Q as l, Qt as m, jn as n, s as nt, On as o, en as p, se as q, $ as r, o as rt, vn as s, Fn as t, d as tt, Z as u, G as v, Tt as w, jt as x, Pt as y, We as z };