wuepgg3-track 1.1.6 → 1.1.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.
@@ -1,11 +1,11 @@
1
- import { q as Le, G as te, t as re, u as He, k as se, M as v, v as ae, E as u, e as E, x as S, y as ze, z as O, F as b, R as F, H as ne, I as We, s as m, S as f, h as B, w as ie, J as q, K as Ve, b as K, B as k, i as U, L as M, j as T, N as w, O as Ne, a as je, Q as oe, V as le, W as ue, X as de, C as P, Y as ce, Z as $e, P as qe, c as Ke, T as Y, D as he, _ as J, $ as Ye, a0 as Je, a1 as Xe } from "./index-D4ybJ88D.mjs";
1
+ import { q as Le, G as se, t as ae, u as He, k as ne, M as v, v as ie, E as u, e as O, x as S, y as ze, z as F, F as b, R as L, H as oe, I as We, s as m, S as f, h as B, w as H, J as Y, K as Ve, b as J, B as k, i as U, L as M, j as T, N as w, O as Ne, a as je, Q as le, V as ue, W as de, X as ce, C as P, Y as A, Z as $e, P as qe, c as Ke, T as X, D as he, _ as Q, $ as Ye, a0 as Je, a1 as Xe } from "./index-m89tAXbR.mjs";
2
2
  import { S as fe, B as pe, c as Qe } from "./colorToUniform-zJcCVLeu.mjs";
3
- const me = class A extends Le {
3
+ const me = class I extends Le {
4
4
  /**
5
5
  * @param options - The optional parameters of this filter.
6
6
  */
7
7
  constructor(e) {
8
- e = { ...A.defaultOptions, ...e }, super(e), this.enabled = !0, this._state = fe.for2d(), this.blendMode = e.blendMode, this.padding = e.padding, typeof e.antialias == "boolean" ? this.antialias = e.antialias ? "on" : "off" : this.antialias = e.antialias, this.resolution = e.resolution, this.blendRequired = e.blendRequired, this.clipToViewport = e.clipToViewport, this.addResource("uTexture", 0, 1);
8
+ e = { ...I.defaultOptions, ...e }, super(e), this.enabled = !0, this._state = fe.for2d(), this.blendMode = e.blendMode, this.padding = e.padding, typeof e.antialias == "boolean" ? this.antialias = e.antialias ? "on" : "off" : this.antialias = e.antialias, this.resolution = e.resolution, this.blendRequired = e.blendRequired, this.clipToViewport = e.clipToViewport, this.addResource("uTexture", 0, 1);
9
9
  }
10
10
  /**
11
11
  * Applies the filter
@@ -36,7 +36,7 @@ const me = class A extends Le {
36
36
  static from(e) {
37
37
  const { gpu: t, gl: r, ...s } = e;
38
38
  let n, i;
39
- return t && (n = te.from(t)), r && (i = re.from(r)), new A({
39
+ return t && (n = se.from(t)), r && (i = ae.from(r)), new I({
40
40
  gpuProgram: n,
41
41
  glProgram: i,
42
42
  ...s
@@ -123,7 +123,7 @@ void main(void)
123
123
  vTextureCoord = filterTextureCoord(aPosition);
124
124
  vMaskCoord = getFilterCoord(aPosition);
125
125
  }
126
- `, X = `struct GlobalFilterUniforms {
126
+ `, Z = `struct GlobalFilterUniforms {
127
127
  uInputSize:vec4<f32>,
128
128
  uInputPixel:vec4<f32>,
129
129
  uInputClamp:vec4<f32>,
@@ -224,21 +224,21 @@ fn mainFragment(
224
224
  `;
225
225
  class rt extends Ze {
226
226
  constructor(e) {
227
- const { sprite: t, ...r } = e, s = new He(t.texture), n = new se({
227
+ const { sprite: t, ...r } = e, s = new He(t.texture), n = new ne({
228
228
  uFilterMatrix: { value: new v(), type: "mat3x3<f32>" },
229
229
  uMaskClamp: { value: s.uClampFrame, type: "vec4<f32>" },
230
230
  uAlpha: { value: 1, type: "f32" },
231
231
  uInverse: { value: e.inverse ? 1 : 0, type: "f32" }
232
- }), i = te.from({
232
+ }), i = se.from({
233
233
  vertex: {
234
- source: X,
234
+ source: Z,
235
235
  entryPoint: "mainVertex"
236
236
  },
237
237
  fragment: {
238
- source: X,
238
+ source: Z,
239
239
  entryPoint: "mainFragment"
240
240
  }
241
- }), o = re.from({
241
+ }), o = ae.from({
242
242
  vertex: tt,
243
243
  fragment: et,
244
244
  name: "mask-filter"
@@ -266,7 +266,7 @@ class rt extends Ze {
266
266
  ).prepend(this._textureMatrix.mapCoord), this.resources.uMaskTexture = this.sprite.texture.source, e.applyFilter(this, t, r, s);
267
267
  }
268
268
  }
269
- const L = class ve {
269
+ const z = class ve {
270
270
  constructor(e, t) {
271
271
  var r, s;
272
272
  this.state = fe.for2d(), this._batchersByInstructionSet = /* @__PURE__ */ Object.create(null), this._activeBatches = /* @__PURE__ */ Object.create(null), this.renderer = e, this._adaptor = t, (s = (r = this._adaptor).init) == null || s.call(r, this);
@@ -276,7 +276,7 @@ const L = class ve {
276
276
  }
277
277
  buildStart(e) {
278
278
  let t = this._batchersByInstructionSet[e.uid];
279
- t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default || (t.default = new ae({
279
+ t || (t = this._batchersByInstructionSet[e.uid] = /* @__PURE__ */ Object.create(null), t.default || (t.default = new ie({
280
280
  maxTextures: this.renderer.limits.maxBatchableTextures
281
281
  }))), this._activeBatches = t, this._activeBatch = this._activeBatches.default;
282
282
  for (const r in this._activeBatches)
@@ -322,7 +322,7 @@ const L = class ve {
322
322
  this._activeBatches = null;
323
323
  }
324
324
  };
325
- L.extension = {
325
+ z.extension = {
326
326
  type: [
327
327
  u.WebGLPipes,
328
328
  u.WebGPUPipes,
@@ -330,10 +330,10 @@ L.extension = {
330
330
  ],
331
331
  name: "batch"
332
332
  };
333
- L._availableBatchers = /* @__PURE__ */ Object.create(null);
334
- let xe = L;
335
- E.handleByMap(u.Batcher, xe._availableBatchers);
336
- E.add(ae);
333
+ z._availableBatchers = /* @__PURE__ */ Object.create(null);
334
+ let ge = z;
335
+ O.handleByMap(u.Batcher, ge._availableBatchers);
336
+ O.add(ie);
337
337
  const Bt = {
338
338
  name: "texture-bit",
339
339
  vertex: {
@@ -404,8 +404,8 @@ const Bt = {
404
404
  `
405
405
  )
406
406
  }
407
- }, st = new O();
408
- class at extends ne {
407
+ }, st = new F();
408
+ class at extends oe {
409
409
  constructor() {
410
410
  super(), this.filters = [new rt({
411
411
  sprite: new We(m.EMPTY),
@@ -427,7 +427,7 @@ class at extends ne {
427
427
  this.filters[0].inverse = e;
428
428
  }
429
429
  }
430
- class ge {
430
+ class xe {
431
431
  constructor(e) {
432
432
  this._activeMaskStage = [], this._renderer = e;
433
433
  }
@@ -497,7 +497,7 @@ class ge {
497
497
  });
498
498
  } else if (e.action === "pushMaskEnd") {
499
499
  const s = this._activeMaskStage[this._activeMaskStage.length - 1];
500
- r && (t.type === F.WEBGL && t.renderTarget.finishRenderPass(), t.renderTarget.pop(), t.globalUniforms.pop()), t.filter.push({
500
+ r && (t.type === L.WEBGL && t.renderTarget.finishRenderPass(), t.renderTarget.pop(), t.globalUniforms.pop()), t.filter.push({
501
501
  renderPipeId: "filter",
502
502
  action: "pushFilter",
503
503
  container: s.maskedContainer,
@@ -514,7 +514,7 @@ class ge {
514
514
  this._renderer = null, this._activeMaskStage = null;
515
515
  }
516
516
  }
517
- ge.extension = {
517
+ xe.extension = {
518
518
  type: [
519
519
  u.WebGLPipes,
520
520
  u.WebGPUPipes,
@@ -640,7 +640,7 @@ be.extension = {
640
640
  function At(a, e) {
641
641
  for (const t in a.attributes) {
642
642
  const r = a.attributes[t], s = e[t];
643
- s ? (r.format ?? (r.format = s.format), r.offset ?? (r.offset = s.offset), r.instance ?? (r.instance = s.instance)) : ie(`Attribute ${t} is not present in the shader, but is present in the geometry. Unable to infer attribute details.`);
643
+ s ? (r.format ?? (r.format = s.format), r.offset ?? (r.offset = s.offset), r.instance ?? (r.instance = s.instance)) : H(`Attribute ${t} is not present in the shader, but is present in the geometry. Unable to infer attribute details.`);
644
644
  }
645
645
  nt(a);
646
646
  }
@@ -652,20 +652,20 @@ function nt(a) {
652
652
  }
653
653
  for (const n in t) {
654
654
  const i = t[n];
655
- r[i.buffer.uid] += q(i.format).stride;
655
+ r[i.buffer.uid] += Y(i.format).stride;
656
656
  }
657
657
  for (const n in t) {
658
658
  const i = t[n];
659
- i.stride ?? (i.stride = r[i.buffer.uid]), i.start ?? (i.start = s[i.buffer.uid]), s[i.buffer.uid] += q(i.format).stride;
659
+ i.stride ?? (i.stride = r[i.buffer.uid]), i.start ?? (i.start = s[i.buffer.uid]), s[i.buffer.uid] += Y(i.format).stride;
660
660
  }
661
661
  }
662
- const g = [];
663
- g[f.NONE] = void 0;
664
- g[f.DISABLED] = {
662
+ const x = [];
663
+ x[f.NONE] = void 0;
664
+ x[f.DISABLED] = {
665
665
  stencilWriteMask: 0,
666
666
  stencilReadMask: 0
667
667
  };
668
- g[f.RENDERING_MASK_ADD] = {
668
+ x[f.RENDERING_MASK_ADD] = {
669
669
  stencilFront: {
670
670
  compare: "equal",
671
671
  passOp: "increment-clamp"
@@ -675,7 +675,7 @@ g[f.RENDERING_MASK_ADD] = {
675
675
  passOp: "increment-clamp"
676
676
  }
677
677
  };
678
- g[f.RENDERING_MASK_REMOVE] = {
678
+ x[f.RENDERING_MASK_REMOVE] = {
679
679
  stencilFront: {
680
680
  compare: "equal",
681
681
  passOp: "decrement-clamp"
@@ -685,7 +685,7 @@ g[f.RENDERING_MASK_REMOVE] = {
685
685
  passOp: "decrement-clamp"
686
686
  }
687
687
  };
688
- g[f.MASK_ACTIVE] = {
688
+ x[f.MASK_ACTIVE] = {
689
689
  stencilWriteMask: 0,
690
690
  stencilFront: {
691
691
  compare: "equal",
@@ -696,7 +696,7 @@ g[f.MASK_ACTIVE] = {
696
696
  passOp: "keep"
697
697
  }
698
698
  };
699
- g[f.INVERSE_MASK_ACTIVE] = {
699
+ x[f.INVERSE_MASK_ACTIVE] = {
700
700
  stencilWriteMask: 0,
701
701
  stencilFront: {
702
702
  compare: "not-equal",
@@ -722,7 +722,7 @@ class It {
722
722
  }
723
723
  ensureUniformGroup(e) {
724
724
  const t = this.getUniformGroupData(e);
725
- e.buffer || (e.buffer = new K({
725
+ e.buffer || (e.buffer = new J({
726
726
  data: new Float32Array(t.layout.size / 4),
727
727
  usage: k.UNIFORM | k.COPY_DST
728
728
  }));
@@ -747,7 +747,7 @@ class It {
747
747
  }
748
748
  syncUniformGroup(e, t, r) {
749
749
  const s = this.getUniformGroupData(e);
750
- e.buffer || (e.buffer = new K({
750
+ e.buffer || (e.buffer = new J({
751
751
  data: new Float32Array(s.layout.size / 4),
752
752
  usage: k.UNIFORM | k.COPY_DST
753
753
  }));
@@ -921,7 +921,7 @@ function Gt(a, e, t, r) {
921
921
  i
922
922
  );
923
923
  }
924
- function x(a, e) {
924
+ function g(a, e) {
925
925
  return `
926
926
  for (let i = 0; i < ${a * e}; i++) {
927
927
  data[offset + (((i / ${a})|0) * 4) + (i % ${a})] = v[i];
@@ -976,12 +976,12 @@ const it = {
976
976
  for (let i = 0; i < 16; i++) {
977
977
  data[offset + i] = v[i];
978
978
  }`,
979
- "mat3x2<f32>": x(3, 2),
980
- "mat4x2<f32>": x(4, 2),
981
- "mat2x3<f32>": x(2, 3),
982
- "mat4x3<f32>": x(4, 3),
983
- "mat2x4<f32>": x(2, 4),
984
- "mat3x4<f32>": x(3, 4)
979
+ "mat3x2<f32>": g(3, 2),
980
+ "mat4x2<f32>": g(4, 2),
981
+ "mat2x3<f32>": g(2, 3),
982
+ "mat4x3<f32>": g(4, 3),
983
+ "mat2x4<f32>": g(2, 4),
984
+ "mat3x4<f32>": g(3, 4)
985
985
  }, Dt = {
986
986
  ...it,
987
987
  "mat2x2<f32>": `
@@ -1109,7 +1109,7 @@ ye.defaultOptions = {
1109
1109
  /** is this a root element, true if this is gl context owners render target */
1110
1110
  isRoot: !1
1111
1111
  };
1112
- let I = ye;
1112
+ let G = ye;
1113
1113
  class Et {
1114
1114
  constructor(e) {
1115
1115
  this.rootViewPort = new w(), this.viewport = new w(), this.onRenderTargetChange = new Ne("onRenderTargetChange"), this.projectionMatrix = new v(), this.defaultClearColor = [0, 0, 0, 0], this._renderSurfaceToRenderTargetHash = /* @__PURE__ */ new Map(), this._gpuRenderTargetHash = /* @__PURE__ */ Object.create(null), this._renderTargetStack = [], this._renderer = e, e.renderableGC.addManagedHash(this, "_gpuRenderTargetHash");
@@ -1282,7 +1282,7 @@ class Et {
1282
1282
  }
1283
1283
  _initRenderTarget(e) {
1284
1284
  let t = null;
1285
- return U.test(e) && (e = Te(e).source), e instanceof I ? t = e : e instanceof T && (t = new I({
1285
+ return U.test(e) && (e = Te(e).source), e instanceof G ? t = e : e instanceof T && (t = new G({
1286
1286
  colorTextures: [e]
1287
1287
  }), e.source instanceof U && (t.isRoot = !0), e.once("destroy", () => {
1288
1288
  t.destroy(), this._renderSurfaceToRenderTargetHash.delete(e);
@@ -1351,7 +1351,7 @@ Ce.extension = {
1351
1351
  ],
1352
1352
  name: "customRender"
1353
1353
  };
1354
- function G(a, e) {
1354
+ function D(a, e) {
1355
1355
  const t = a.instructionSet, r = t.instructions;
1356
1356
  for (let s = 0; s < t.instructionSize; s++) {
1357
1357
  const n = r[s];
@@ -1389,7 +1389,7 @@ class Me {
1389
1389
  this._renderer.renderTarget.push(e.texture, !0, null, e.texture.frame), this._renderer.globalUniforms.push({
1390
1390
  worldTransformMatrix: t,
1391
1391
  worldColor: 4294967295
1392
- }), G(e, this._renderer.renderPipes), this._renderer.renderTarget.finishRenderPass(), this._renderer.renderTarget.pop(), this._renderer.globalUniforms.pop();
1392
+ }), D(e, this._renderer.renderPipes), this._renderer.renderTarget.finishRenderPass(), this._renderer.renderTarget.pop(), this._renderer.globalUniforms.pop();
1393
1393
  }
1394
1394
  e._batchableRenderGroup._batcher.updateElement(e._batchableRenderGroup), e._batchableRenderGroup._batcher.geometry.buffers[0].update();
1395
1395
  }
@@ -1397,7 +1397,7 @@ class Me {
1397
1397
  this._renderer.globalUniforms.push({
1398
1398
  worldTransformMatrix: e.inverseParentTextureTransform,
1399
1399
  worldColor: e.worldColorAlpha
1400
- }), G(e, this._renderer.renderPipes), this._renderer.globalUniforms.pop();
1400
+ }), D(e, this._renderer.renderPipes), this._renderer.globalUniforms.pop();
1401
1401
  }
1402
1402
  }
1403
1403
  Me.extension = {
@@ -1408,12 +1408,12 @@ Me.extension = {
1408
1408
  ],
1409
1409
  name: "renderGroup"
1410
1410
  };
1411
- function D(a, e) {
1411
+ function E(a, e) {
1412
1412
  e || (e = 0);
1413
1413
  for (let t = e; t < a.length && a[t]; t++)
1414
1414
  a[t] = null;
1415
1415
  }
1416
- const dt = new P(), Q = le | ue | de;
1416
+ const dt = new P(), ee = ue | de | ce;
1417
1417
  function Se(a, e = !1) {
1418
1418
  ct(a);
1419
1419
  const t = a.childrenToUpdate, r = a.updateTick++;
@@ -1423,7 +1423,7 @@ function Se(a, e = !1) {
1423
1423
  const c = o[d];
1424
1424
  c.parentRenderGroup === a && c.relativeRenderGroupDepth === n && we(c, r, 0);
1425
1425
  }
1426
- D(o, l), i.index = 0;
1426
+ E(o, l), i.index = 0;
1427
1427
  }
1428
1428
  if (e)
1429
1429
  for (let s = 0; s < a.renderGroupChildren.length; s++)
@@ -1437,7 +1437,7 @@ function ct(a) {
1437
1437
  a.worldTransform.appendFrom(
1438
1438
  e.relativeGroupTransform,
1439
1439
  r.worldTransform
1440
- ), a.worldColor = oe(
1440
+ ), a.worldColor = le(
1441
1441
  e.groupColor,
1442
1442
  r.worldColor
1443
1443
  ), t = e.groupAlpha * r.worldAlpha;
@@ -1455,7 +1455,7 @@ function we(a, e, t) {
1455
1455
  if (s && !s.renderGroup ? (t |= a._updateFlags, a.relativeGroupTransform.appendFrom(
1456
1456
  r,
1457
1457
  s.relativeGroupTransform
1458
- ), t & Q && Z(a, s, t)) : (t = a._updateFlags, a.relativeGroupTransform.copyFrom(r), t & Q && Z(a, dt, t)), !a.renderGroup) {
1458
+ ), t & ee && te(a, s, t)) : (t = a._updateFlags, a.relativeGroupTransform.copyFrom(r), t & ee && te(a, dt, t)), !a.renderGroup) {
1459
1459
  const n = a.children, i = n.length;
1460
1460
  for (let d = 0; d < i; d++)
1461
1461
  we(n[d], e, t);
@@ -1463,16 +1463,16 @@ function we(a, e, t) {
1463
1463
  l.renderPipeId && !o.structureDidChange && o.updateRenderable(l);
1464
1464
  }
1465
1465
  }
1466
- function Z(a, e, t) {
1467
- if (t & ue) {
1468
- a.groupColor = oe(
1466
+ function te(a, e, t) {
1467
+ if (t & de) {
1468
+ a.groupColor = le(
1469
1469
  a.localColor,
1470
1470
  e.groupColor
1471
1471
  );
1472
1472
  let r = a.localAlpha * e.groupAlpha;
1473
1473
  r = r < 0 ? 0 : r > 1 ? 1 : r, a.groupAlpha = r, a.groupColorAlpha = a.groupColor + ((r * 255 | 0) << 24);
1474
1474
  }
1475
- t & de && (a.groupBlendMode = a.localBlendMode === "inherit" ? e.groupBlendMode : a.localBlendMode), t & le && (a.globalDisplayStatus = a.localDisplayStatus & e.globalDisplayStatus), a._updateFlags = 0;
1475
+ t & ce && (a.groupBlendMode = a.localBlendMode === "inherit" ? e.groupBlendMode : a.localBlendMode), t & ue && (a.globalDisplayStatus = a.localDisplayStatus & e.globalDisplayStatus), a._updateFlags = 0;
1476
1476
  }
1477
1477
  function ht(a, e) {
1478
1478
  const { list: t, index: r } = a.childrenRenderablesToUpdate;
@@ -1499,7 +1499,7 @@ class Pe {
1499
1499
  this._updateCachedRenderGroups(e.renderGroup, null), this._updateRenderGroups(e.renderGroup), n.globalUniforms.start({
1500
1500
  worldTransformMatrix: t ? e.renderGroup.localTransform : e.renderGroup.worldTransform,
1501
1501
  worldColor: e.renderGroup.worldColorAlpha
1502
- }), G(e.renderGroup, o), o.uniformBatch && o.uniformBatch.renderEnd(), t && e.renderGroup.localTransform.copyFrom(i), e.parent = r, e.renderGroup.renderGroupParent = s;
1502
+ }), D(e.renderGroup, o), o.uniformBatch && o.uniformBatch.renderEnd(), t && e.renderGroup.localTransform.copyFrom(i), e.parent = r, e.renderGroup.renderGroupParent = s;
1503
1503
  }
1504
1504
  destroy() {
1505
1505
  this._renderer = null;
@@ -1525,13 +1525,13 @@ class Pe {
1525
1525
  r.height,
1526
1526
  i,
1527
1527
  o
1528
- ), e._textureBounds || (e._textureBounds = new O()), e._textureBounds.copyFrom(r), s !== e.texture && e.renderGroupParent && (e.renderGroupParent.structureDidChange = !0);
1528
+ ), e._textureBounds || (e._textureBounds = new F()), e._textureBounds.copyFrom(r), s !== e.texture && e.renderGroupParent && (e.renderGroupParent.structureDidChange = !0);
1529
1529
  }
1530
1530
  } else e.texture && (b.returnTexture(e.texture), e.texture = null);
1531
1531
  }
1532
1532
  _updateRenderGroups(e) {
1533
1533
  const t = this._renderer, r = t.renderPipes;
1534
- if (e.runOnRender(t), e.instructionSet.renderPipes = r, e.structureDidChange ? D(e.childrenRenderablesToUpdate.list, 0) : ht(e, r), Se(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))
1534
+ if (e.runOnRender(t), e.instructionSet.renderPipes = r, e.structureDidChange ? E(e.childrenRenderablesToUpdate.list, 0) : ht(e, r), Se(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))
1535
1535
  for (let s = 0; s < e.renderGroupChildren.length; s++)
1536
1536
  this._updateRenderGroups(e.renderGroupChildren[s]);
1537
1537
  }
@@ -1541,7 +1541,7 @@ class Pe {
1541
1541
  const n = t[s];
1542
1542
  n.didViewUpdate && e.updateRenderable(n);
1543
1543
  }
1544
- D(t, r);
1544
+ E(t, r);
1545
1545
  }
1546
1546
  _buildInstructions(e, t) {
1547
1547
  const r = e.root, s = e.instructionSet;
@@ -1599,9 +1599,9 @@ Re.extension = {
1599
1599
  ],
1600
1600
  name: "sprite"
1601
1601
  };
1602
- const H = class Be {
1602
+ const W = class Be {
1603
1603
  constructor() {
1604
- this.clearBeforeRender = !0, this._backgroundColor = new ce(0), this.color = this._backgroundColor, this.alpha = 1;
1604
+ this.clearBeforeRender = !0, this._backgroundColor = new A(0), this.color = this._backgroundColor, this.alpha = 1;
1605
1605
  }
1606
1606
  /**
1607
1607
  * initiates the background system
@@ -1615,7 +1615,9 @@ const H = class Be {
1615
1615
  return this._backgroundColor;
1616
1616
  }
1617
1617
  set color(e) {
1618
- this._backgroundColor.setValue(e);
1618
+ A.shared.setValue(e).alpha < 1 && this._backgroundColor.alpha === 1 && H(
1619
+ "Cannot set a transparent background on an opaque canvas. To enable transparency, set backgroundAlpha < 1 when initializing your Application."
1620
+ ), this._backgroundColor.setValue(e);
1619
1621
  }
1620
1622
  /** The background color alpha. Setting this to 0 will make the canvas transparent. */
1621
1623
  get alpha() {
@@ -1635,7 +1637,7 @@ const H = class Be {
1635
1637
  destroy() {
1636
1638
  }
1637
1639
  };
1638
- H.extension = {
1640
+ W.extension = {
1639
1641
  type: [
1640
1642
  u.WebGLSystem,
1641
1643
  u.WebGPUSystem,
@@ -1644,7 +1646,7 @@ H.extension = {
1644
1646
  name: "background",
1645
1647
  priority: 0
1646
1648
  };
1647
- H.defaultOptions = {
1649
+ W.defaultOptions = {
1648
1650
  /**
1649
1651
  * {@link WebGLOptions.backgroundAlpha}
1650
1652
  * @default 1
@@ -1661,9 +1663,9 @@ H.defaultOptions = {
1661
1663
  */
1662
1664
  clearBeforeRender: !0
1663
1665
  };
1664
- let pt = H;
1666
+ let pt = W;
1665
1667
  const y = {};
1666
- E.handle(u.BlendMode, (a) => {
1668
+ O.handle(u.BlendMode, (a) => {
1667
1669
  if (!a.name)
1668
1670
  throw new Error("BlendMode extension must have a name property");
1669
1671
  y[a.name] = a.ref;
@@ -1694,11 +1696,11 @@ class Ue {
1694
1696
  this._renderer.renderPipes.batch.break(e);
1695
1697
  const t = this._activeBlendMode;
1696
1698
  if (!y[t]) {
1697
- ie(`Unable to assign BlendMode: '${t}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);
1699
+ H(`Unable to assign BlendMode: '${t}'. You may want to include: import 'pixi.js/advanced-blend-modes'`);
1698
1700
  return;
1699
1701
  }
1700
1702
  let r = this._filterHash[t];
1701
- r || (r = this._filterHash[t] = new ne(), r.filters = [new y[t]()]);
1703
+ r || (r = this._filterHash[t] = new oe(), r.filters = [new y[t]()]);
1702
1704
  const s = {
1703
1705
  renderPipeId: "filter",
1704
1706
  action: "pushFilter",
@@ -1751,7 +1753,7 @@ const R = {
1751
1753
  png: "image/png",
1752
1754
  jpg: "image/jpeg",
1753
1755
  webp: "image/webp"
1754
- }, z = class Ae {
1756
+ }, V = class Ae {
1755
1757
  /** @param renderer - The renderer this System works for. */
1756
1758
  constructor(e) {
1757
1759
  this._renderer = e;
@@ -2071,21 +2073,21 @@ const R = {
2071
2073
  this._renderer = null;
2072
2074
  }
2073
2075
  };
2074
- z.extension = {
2076
+ V.extension = {
2075
2077
  type: [
2076
2078
  u.WebGLSystem,
2077
2079
  u.WebGPUSystem
2078
2080
  ],
2079
2081
  name: "extract"
2080
2082
  };
2081
- z.defaultImageOptions = {
2083
+ V.defaultImageOptions = {
2082
2084
  format: "png",
2083
2085
  quality: 1
2084
2086
  };
2085
- let mt = z;
2086
- class W extends m {
2087
+ let mt = V;
2088
+ class N extends m {
2087
2089
  static create(e) {
2088
- return new W({
2090
+ return new N({
2089
2091
  source: new T(e)
2090
2092
  });
2091
2093
  }
@@ -2100,7 +2102,7 @@ class W extends m {
2100
2102
  return this.source.resize(e, t, r), this;
2101
2103
  }
2102
2104
  }
2103
- const vt = new w(), xt = new O(), gt = [0, 0, 0, 0];
2105
+ const vt = new w(), gt = new F(), xt = [0, 0, 0, 0];
2104
2106
  class Ie {
2105
2107
  constructor(e) {
2106
2108
  this._renderer = e;
@@ -2151,10 +2153,10 @@ class Ie {
2151
2153
  });
2152
2154
  const t = e.resolution || this._renderer.resolution, r = e.antialias || this._renderer.view.antialias, s = e.target;
2153
2155
  let n = e.clearColor;
2154
- n ? n = Array.isArray(n) && n.length === 4 ? n : ce.shared.setValue(n).toArray() : n = gt;
2155
- const i = ((d = e.frame) == null ? void 0 : d.copyTo(vt)) || $e(s, xt).rectangle;
2156
+ n ? n = Array.isArray(n) && n.length === 4 ? n : A.shared.setValue(n).toArray() : n = xt;
2157
+ const i = ((d = e.frame) == null ? void 0 : d.copyTo(vt)) || $e(s, gt).rectangle;
2156
2158
  i.width = Math.max(i.width, 1 / t) | 0, i.height = Math.max(i.height, 1 / t) | 0;
2157
- const o = W.create({
2159
+ const o = N.create({
2158
2160
  ...e.textureSourceOptions,
2159
2161
  width: i.width,
2160
2162
  height: i.height,
@@ -2227,7 +2229,7 @@ class Ge {
2227
2229
  this.bind(e), this._globalUniformDataStack[this._stackIndex++] = this._currentGlobalUniformData;
2228
2230
  }
2229
2231
  pop() {
2230
- this._currentGlobalUniformData = this._globalUniformDataStack[--this._stackIndex - 1], this._renderer.type === F.WEBGL && this._currentGlobalUniformData.bindGroup.resources[0].update();
2232
+ this._currentGlobalUniformData = this._globalUniformDataStack[--this._stackIndex - 1], this._renderer.type === L.WEBGL && this._currentGlobalUniformData.bindGroup.resources[0].update();
2231
2233
  }
2232
2234
  get bindGroup() {
2233
2235
  return this._currentGlobalUniformData.bindGroup;
@@ -2239,7 +2241,7 @@ class Ge {
2239
2241
  return this._currentGlobalUniformData.bindGroup.resources[0];
2240
2242
  }
2241
2243
  _createUniforms() {
2242
- return new se({
2244
+ return new ne({
2243
2245
  uProjectionMatrix: { value: new v(), type: "mat3x3<f32>" },
2244
2246
  uWorldTransformMatrix: { value: new v(), type: "mat3x3<f32>" },
2245
2247
  // TODO - someone smart - set this to be a unorm8x4 rather than a vec4<f32>
@@ -2268,7 +2270,7 @@ class De {
2268
2270
  }
2269
2271
  /** Initializes the scheduler system and starts the ticker. */
2270
2272
  init() {
2271
- Y.system.add(this._update, this);
2273
+ X.system.add(this._update, this);
2272
2274
  }
2273
2275
  /**
2274
2276
  * Schedules a repeating task.
@@ -2320,7 +2322,7 @@ class De {
2320
2322
  * @internal
2321
2323
  */
2322
2324
  destroy() {
2323
- Y.system.remove(this._update, this), this._tasks.length = 0;
2325
+ X.system.remove(this._update, this), this._tasks.length = 0;
2324
2326
  }
2325
2327
  }
2326
2328
  De.extension = {
@@ -2332,12 +2334,12 @@ De.extension = {
2332
2334
  name: "scheduler",
2333
2335
  priority: 0
2334
2336
  };
2335
- let ee = !1;
2337
+ let re = !1;
2336
2338
  function bt(a) {
2337
- if (!ee) {
2339
+ if (!re) {
2338
2340
  if (he.get().getNavigator().userAgent.toLowerCase().indexOf("chrome") > -1) {
2339
2341
  const e = [
2340
- `%c %c %c %c %c PixiJS %c v${J} (${a}) http://www.pixijs.com/
2342
+ `%c %c %c %c %c PixiJS %c v${Q} (${a}) http://www.pixijs.com/
2341
2343
 
2342
2344
  `,
2343
2345
  "background: #E72264; padding:5px 0;",
@@ -2348,11 +2350,11 @@ function bt(a) {
2348
2350
  "color: #E72264; background: #FFFFFF; padding:5px 0;"
2349
2351
  ];
2350
2352
  globalThis.console.log(...e);
2351
- } else globalThis.console && globalThis.console.log(`PixiJS ${J} - ${a} - http://www.pixijs.com/`);
2352
- ee = !0;
2353
+ } else globalThis.console && globalThis.console.log(`PixiJS ${Q} - ${a} - http://www.pixijs.com/`);
2354
+ re = !0;
2353
2355
  }
2354
2356
  }
2355
- class V {
2357
+ class j {
2356
2358
  constructor(e) {
2357
2359
  this._renderer = e;
2358
2360
  }
@@ -2363,11 +2365,11 @@ class V {
2363
2365
  init(e) {
2364
2366
  if (e.hello) {
2365
2367
  let t = this._renderer.name;
2366
- this._renderer.type === F.WEBGL && (t += ` ${this._renderer.context.webGLVersion}`), bt(t);
2368
+ this._renderer.type === L.WEBGL && (t += ` ${this._renderer.context.webGLVersion}`), bt(t);
2367
2369
  }
2368
2370
  }
2369
2371
  }
2370
- V.extension = {
2372
+ j.extension = {
2371
2373
  type: [
2372
2374
  u.WebGLSystem,
2373
2375
  u.WebGPUSystem,
@@ -2376,7 +2378,7 @@ V.extension = {
2376
2378
  name: "hello",
2377
2379
  priority: -2
2378
2380
  };
2379
- V.defaultOptions = {
2381
+ j.defaultOptions = {
2380
2382
  /** {@link WebGLOptions.hello} */
2381
2383
  hello: !1
2382
2384
  };
@@ -2403,7 +2405,7 @@ function yt(a) {
2403
2405
  return a.length -= e, a;
2404
2406
  }
2405
2407
  let kt = 0;
2406
- const N = class Ee {
2408
+ const $ = class Ee {
2407
2409
  /**
2408
2410
  * Creates a new RenderableGCSystem instance.
2409
2411
  * @param renderer - The renderer this garbage collection system works for
@@ -2531,7 +2533,7 @@ const N = class Ee {
2531
2533
  this._updateInstructionGCTick(r, t);
2532
2534
  }
2533
2535
  };
2534
- N.extension = {
2536
+ $.extension = {
2535
2537
  type: [
2536
2538
  u.WebGLSystem,
2537
2539
  u.WebGPUSystem
@@ -2539,7 +2541,7 @@ N.extension = {
2539
2541
  name: "renderableGC",
2540
2542
  priority: 0
2541
2543
  };
2542
- N.defaultOptions = {
2544
+ $.defaultOptions = {
2543
2545
  /** Enable/disable the garbage collector */
2544
2546
  renderableGCActive: !0,
2545
2547
  /** Time in ms before an unused resource is collected (default 1 minute) */
@@ -2547,8 +2549,8 @@ N.defaultOptions = {
2547
2549
  /** How often to run garbage collection in ms (default 30 seconds) */
2548
2550
  renderableGCFrequency: 3e4
2549
2551
  };
2550
- let Ct = N;
2551
- const j = class Oe {
2552
+ let Ct = $;
2553
+ const q = class Oe {
2552
2554
  /** @param renderer - The renderer this System works for. */
2553
2555
  constructor(e) {
2554
2556
  this._renderer = e, this.count = 0, this.checkCount = 0;
@@ -2578,14 +2580,14 @@ const j = class Oe {
2578
2580
  this._renderer = null;
2579
2581
  }
2580
2582
  };
2581
- j.extension = {
2583
+ q.extension = {
2582
2584
  type: [
2583
2585
  u.WebGLSystem,
2584
2586
  u.WebGPUSystem
2585
2587
  ],
2586
2588
  name: "textureGC"
2587
2589
  };
2588
- j.defaultOptions = {
2590
+ q.defaultOptions = {
2589
2591
  /**
2590
2592
  * If set to true, this will enable the garbage collector on the GPU.
2591
2593
  * @default true
@@ -2607,8 +2609,8 @@ j.defaultOptions = {
2607
2609
  */
2608
2610
  textureGCCheckCountMax: 600
2609
2611
  };
2610
- let Mt = j;
2611
- const $ = class Fe {
2612
+ let Mt = q;
2613
+ const K = class Fe {
2612
2614
  /**
2613
2615
  * Whether CSS dimensions of canvas view should be resized to screen dimensions automatically.
2614
2616
  * This is only supported for HTMLCanvasElement and will be ignored if the canvas is an OffscreenCanvas.
@@ -2639,7 +2641,7 @@ const $ = class Fe {
2639
2641
  e = {
2640
2642
  ...Fe.defaultOptions,
2641
2643
  ...e
2642
- }, e.view && (Ye(Je, "ViewSystem.view has been renamed to ViewSystem.canvas"), e.canvas = e.view), this.screen = new w(0, 0, e.width, e.height), this.canvas = e.canvas || he.get().createCanvas(), this.antialias = !!e.antialias, this.texture = Te(this.canvas, e), this.renderTarget = new I({
2644
+ }, e.view && (Ye(Je, "ViewSystem.view has been renamed to ViewSystem.canvas"), e.canvas = e.view), this.screen = new w(0, 0, e.width, e.height), this.canvas = e.canvas || he.get().createCanvas(), this.antialias = !!e.antialias, this.texture = Te(this.canvas, e), this.renderTarget = new G({
2643
2645
  colorTextures: [this.texture],
2644
2646
  depth: !!e.depth,
2645
2647
  isRoot: !0
@@ -2666,7 +2668,7 @@ const $ = class Fe {
2666
2668
  (typeof e == "boolean" ? e : !!(e != null && e.removeView)) && this.canvas.parentNode && this.canvas.parentNode.removeChild(this.canvas);
2667
2669
  }
2668
2670
  };
2669
- $.extension = {
2671
+ K.extension = {
2670
2672
  type: [
2671
2673
  u.WebGLSystem,
2672
2674
  u.WebGPUSystem,
@@ -2675,7 +2677,7 @@ $.extension = {
2675
2677
  name: "view",
2676
2678
  priority: 0
2677
2679
  };
2678
- $.defaultOptions = {
2680
+ K.defaultOptions = {
2679
2681
  /**
2680
2682
  * {@link WebGLOptions.width}
2681
2683
  * @default 800
@@ -2697,11 +2699,11 @@ $.defaultOptions = {
2697
2699
  */
2698
2700
  antialias: !1
2699
2701
  };
2700
- let St = $;
2702
+ let St = K;
2701
2703
  const Ft = [
2702
2704
  pt,
2703
2705
  Ge,
2704
- V,
2706
+ j,
2705
2707
  St,
2706
2708
  Pe,
2707
2709
  Mt,
@@ -2712,17 +2714,17 @@ const Ft = [
2712
2714
  De
2713
2715
  ], Lt = [
2714
2716
  Ue,
2715
- xe,
2717
+ ge,
2716
2718
  Re,
2717
2719
  Me,
2718
- ge,
2720
+ xe,
2719
2721
  be,
2720
2722
  _e,
2721
2723
  Ce
2722
2724
  ];
2723
2725
  export {
2724
2726
  Ot as B,
2725
- g as G,
2727
+ x as G,
2726
2728
  Et as R,
2727
2729
  Ft as S,
2728
2730
  It as U,