holostaff-widget 3.0.2 → 3.0.3

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.
Files changed (33) hide show
  1. package/dist/{CanvasRenderer-BL1L0Zug.js → CanvasRenderer-J_XwG2_5.js} +50 -50
  2. package/dist/{CanvasRenderer-BL1L0Zug.js.map → CanvasRenderer-J_XwG2_5.js.map} +1 -1
  3. package/dist/Filter-GqToX76B.js +670 -0
  4. package/dist/Filter-GqToX76B.js.map +1 -0
  5. package/dist/GpuStencilModesToPixi-Cc8Nerk4.js +222 -0
  6. package/dist/GpuStencilModesToPixi-Cc8Nerk4.js.map +1 -0
  7. package/dist/{RenderTargetSystem-CahYKOD4.js → RenderTargetSystem-Bl4mRBf3.js} +327 -391
  8. package/dist/RenderTargetSystem-Bl4mRBf3.js.map +1 -0
  9. package/dist/WebGLRenderer-BtNMOOvs.js +2237 -0
  10. package/dist/WebGLRenderer-BtNMOOvs.js.map +1 -0
  11. package/dist/{WebGPURenderer-SF1OSYpo.js → WebGPURenderer-89fMKfXn.js} +281 -374
  12. package/dist/WebGPURenderer-89fMKfXn.js.map +1 -0
  13. package/dist/{browserAll-B97ymwYI.js → browserAll-B7LFPR0f.js} +3 -3
  14. package/dist/{browserAll-B97ymwYI.js.map → browserAll-B7LFPR0f.js.map} +1 -1
  15. package/dist/{getTextureBatchBindGroup-BPB_9pp9.js → getTextureBatchBindGroup-CMmHwizJ.js} +3 -3
  16. package/dist/{getTextureBatchBindGroup-BPB_9pp9.js.map → getTextureBatchBindGroup-CMmHwizJ.js.map} +1 -1
  17. package/dist/hs-widget.es.js +2 -2
  18. package/dist/hs-widget.umd.js +360 -346
  19. package/dist/hs-widget.umd.js.map +1 -1
  20. package/dist/{index-qJyFW51-.js → index-BpOQ7Z5z.js} +11193 -9101
  21. package/dist/index-BpOQ7Z5z.js.map +1 -0
  22. package/dist/{webworkerAll-DYG_wBG4.js → webworkerAll-CAG5YOrW.js} +12 -12
  23. package/dist/{webworkerAll-DYG_wBG4.js.map → webworkerAll-CAG5YOrW.js.map} +1 -1
  24. package/package.json +1 -1
  25. package/dist/BufferResource-6mO-PO_c.js +0 -537
  26. package/dist/BufferResource-6mO-PO_c.js.map +0 -1
  27. package/dist/Geometry-B-K9I6MO.js +0 -1017
  28. package/dist/Geometry-B-K9I6MO.js.map +0 -1
  29. package/dist/RenderTargetSystem-CahYKOD4.js.map +0 -1
  30. package/dist/WebGLRenderer-Ci14rIHw.js +0 -2939
  31. package/dist/WebGLRenderer-Ci14rIHw.js.map +0 -1
  32. package/dist/WebGPURenderer-SF1OSYpo.js.map +0 -1
  33. package/dist/index-qJyFW51-.js.map +0 -1
@@ -1,7 +1,7 @@
1
- import { h as Dn, w as Wt, R as ft, i as Y, m as Gt, M as V, c as E, P as Mt, a as Ot, j as An, k as X, T as dt, I as we, D as ht, l as gt, e as lt, o as Qe, v as Bn, B as Ke, E as Fn, p as ot, V as Hn, q as ct, s as Je, f as Ln, A as Wn } from "./index-qJyFW51-.js";
2
- import { G as Yt, D as qn, m as zn, R as En, b as Un, B as Vn, n as $n, o as jn, p as Nn, A as Zn, C as On } from "./RenderTargetSystem-CahYKOD4.js";
3
- import { g as Yn } from "./getTextureBatchBindGroup-BPB_9pp9.js";
4
- import { S as tn, R as Xn } from "./Geometry-B-K9I6MO.js";
1
+ import { _ as Dn, w as Wt, R as ft, s as X, $ as Gt, M as V, E, P as Mt, u as Ot, a0 as An, O as Y, T as dt, a1 as we, D as ht, v as gt, e as lt, a2 as Qe, a3 as Bn, y as Ke, b as Fn, X as ot, a4 as Hn, a5 as ct, a6 as Je, j as Ln, A as Wn } from "./index-BpOQ7Z5z.js";
2
+ import { G as Xt, D as qn, m as zn, R as En, b as Un, B as Vn, n as $n, o as jn, p as Nn, A as Zn, C as On } from "./RenderTargetSystem-Bl4mRBf3.js";
3
+ import { g as Xn } from "./getTextureBatchBindGroup-CMmHwizJ.js";
4
+ import { S as tn, R as Yn } from "./Filter-GqToX76B.js";
5
5
  function Re(r, t, e = 2) {
6
6
  const n = t && t.length, s = n ? t[0] * e : r.length;
7
7
  let i = en(r, 0, s, e, !0);
@@ -1041,7 +1041,7 @@ class Dt {
1041
1041
  * @deprecated since 8.11.0, use {@link Polygon.lastX} instead.
1042
1042
  */
1043
1043
  get x() {
1044
- return Y("8.11.0", "Polygon.lastX is deprecated, please use Polygon.lastX instead."), this.points[this.points.length - 2];
1044
+ return X("8.11.0", "Polygon.lastX is deprecated, please use Polygon.lastX instead."), this.points[this.points.length - 2];
1045
1045
  }
1046
1046
  /**
1047
1047
  * Get the last Y coordinate of the polygon.
@@ -1049,7 +1049,7 @@ class Dt {
1049
1049
  * @deprecated since 8.11.0, use {@link Polygon.lastY} instead.
1050
1050
  */
1051
1051
  get y() {
1052
- return Y("8.11.0", "Polygon.y is deprecated, please use Polygon.lastY instead."), this.points[this.points.length - 1];
1052
+ return X("8.11.0", "Polygon.y is deprecated, please use Polygon.lastY instead."), this.points[this.points.length - 1];
1053
1053
  }
1054
1054
  /**
1055
1055
  * Get the first X coordinate of the polygon.
@@ -1642,7 +1642,7 @@ const ws = [], Rs = {
1642
1642
  * @returns This gradient instance for chaining
1643
1643
  */
1644
1644
  addColorStop(t, e) {
1645
- return this.colorStops.push({ offset: t, color: X.shared.setValue(e).toHexa() }), this;
1645
+ return this.colorStops.push({ offset: t, color: Y.shared.setValue(e).toHexa() }), this;
1646
1646
  }
1647
1647
  /**
1648
1648
  * Builds the internal texture and transform for the gradient.
@@ -1752,7 +1752,7 @@ function He(r, t) {
1752
1752
  }
1753
1753
  function Ds(r) {
1754
1754
  let t = r[0] ?? {};
1755
- return (typeof t == "number" || r[1]) && (Y("8.5.2", "use options object instead"), t = {
1755
+ return (typeof t == "number" || r[1]) && (X("8.5.2", "use options object instead"), t = {
1756
1756
  type: "linear",
1757
1757
  start: { x: r[0], y: r[1] },
1758
1758
  end: { x: r[2], y: r[3] },
@@ -1879,7 +1879,7 @@ class Es {
1879
1879
  * @see {Batcher#geometry}
1880
1880
  */
1881
1881
  get geometry() {
1882
- return Y(Bn, "GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead."), this.batcher.geometry;
1882
+ return X(Bn, "GraphicsContextRenderData#geometry is deprecated, please use batcher.geometry instead."), this.batcher.geometry;
1883
1883
  }
1884
1884
  destroy() {
1885
1885
  this.batcher.destroy(), this.instructions.destroy(), this.batcher = null, this.instructions = null;
@@ -1887,7 +1887,7 @@ class Es {
1887
1887
  }
1888
1888
  const xe = class oe {
1889
1889
  constructor(t) {
1890
- this._renderer = t, this._managedContexts = new Yt({ renderer: t, type: "resource", name: "graphicsContext" });
1890
+ this._renderer = t, this._managedContexts = new Xt({ renderer: t, type: "resource", name: "graphicsContext" });
1891
1891
  }
1892
1892
  /**
1893
1893
  * Runner init called, update the default options
@@ -1950,7 +1950,7 @@ const xe = class oe {
1950
1950
  const h = c.batches;
1951
1951
  for (let u = 0; u < h.length; u++) {
1952
1952
  const f = h[u];
1953
- f.bindGroup = Yn(
1953
+ f.bindGroup = Xn(
1954
1954
  f.textures.textures,
1955
1955
  f.textures.count,
1956
1956
  this._renderer.limits.maxBatchableTextures
@@ -2031,9 +2031,9 @@ function Os(r, t, e, n, s, i, o, a) {
2031
2031
  Math.max(0, a ?? ge.defaultOptions.bezierSmoothness)
2032
2032
  );
2033
2033
  let h = (Zs - l) / 1;
2034
- return h *= h, Ys(t, e, n, s, i, o, r, h), r;
2034
+ return h *= h, Xs(t, e, n, s, i, o, r, h), r;
2035
2035
  }
2036
- function Ys(r, t, e, n, s, i, o, a) {
2036
+ function Xs(r, t, e, n, s, i, o, a) {
2037
2037
  ce(o, r, t, e, n, s, i, a, 0), o.push(s, i);
2038
2038
  }
2039
2039
  function ce(r, t, e, n, s, i, o, a, c) {
@@ -2063,7 +2063,7 @@ function dn(r, t, e, n, s, i, o, a) {
2063
2063
  r.push(p, x), h += l;
2064
2064
  }
2065
2065
  }
2066
- function Xs(r, t, e, n, s, i) {
2066
+ function Ys(r, t, e, n, s, i) {
2067
2067
  const o = r[r.length - 2], c = r[r.length - 1] - e, l = o - t, h = s - e, u = n - t, f = Math.abs(c * u - l * h);
2068
2068
  if (f < 1e-8 || i === 0) {
2069
2069
  (r[r.length - 2] !== t || r[r.length - 1] !== e) && r.push(t, e);
@@ -2290,7 +2290,7 @@ class sr {
2290
2290
  arcTo(t, e, n, s, i) {
2291
2291
  this._ensurePoly();
2292
2292
  const o = this._currentPoly.points;
2293
- return Xs(o, t, e, n, s, i), this;
2293
+ return Ys(o, t, e, n, s, i), this;
2294
2294
  }
2295
2295
  /**
2296
2296
  * Adds an SVG-style arc to the path, allowing for elliptical arcs based on the SVG spec.
@@ -2993,7 +2993,7 @@ function ir(r) {
2993
2993
  i === "objectBoundingBox" ? "local" : "global"
2994
2994
  );
2995
2995
  for (let a = 0; a < r.children.length; a++) {
2996
- const c = r.children[a], l = z(c, "offset", 0), h = X.shared.setValue(c.getAttribute("stop-color")).toNumber();
2996
+ const c = r.children[a], l = z(c, "offset", 0), h = Y.shared.setValue(c.getAttribute("stop-color")).toNumber();
2997
2997
  o.addColorStop(l, h);
2998
2998
  }
2999
2999
  return o;
@@ -3065,7 +3065,7 @@ function Ee(r, t, e, n) {
3065
3065
  const s = qe(n);
3066
3066
  t.strokeStyle.fill = r.defs[s];
3067
3067
  } else
3068
- t.strokeStyle.color = X.shared.setValue(n).toNumber();
3068
+ t.strokeStyle.color = Y.shared.setValue(n).toNumber();
3069
3069
  t.useStroke = !0;
3070
3070
  }
3071
3071
  break;
@@ -3078,7 +3078,7 @@ function Ee(r, t, e, n) {
3078
3078
  const s = qe(n);
3079
3079
  t.fillStyle.fill = r.defs[s];
3080
3080
  } else
3081
- t.fillStyle.color = X.shared.setValue(n).toNumber();
3081
+ t.fillStyle.color = Y.shared.setValue(n).toNumber();
3082
3082
  t.useFill = !0;
3083
3083
  }
3084
3084
  break;
@@ -3259,7 +3259,7 @@ class xn {
3259
3259
  }
3260
3260
  }
3261
3261
  function ur(r) {
3262
- return X.isColorLike(r);
3262
+ return Y.isColorLike(r);
3263
3263
  }
3264
3264
  function $e(r) {
3265
3265
  return r instanceof xn;
@@ -3271,7 +3271,7 @@ function dr(r) {
3271
3271
  return r instanceof dt;
3272
3272
  }
3273
3273
  function fr(r, t, e) {
3274
- const n = X.shared.setValue(t ?? 0);
3274
+ const n = Y.shared.setValue(t ?? 0);
3275
3275
  return r.color = n.toNumber(), r.alpha = n.alpha === 1 ? e.alpha : n.alpha, r.texture = dt.WHITE, { ...e, ...r };
3276
3276
  }
3277
3277
  function pr(r, t, e) {
@@ -3284,7 +3284,7 @@ function Ze(r, t, e) {
3284
3284
  return t.buildGradient(), r.fill = t, r.color = 16777215, r.texture = t.texture, r.matrix = t.transform, r.textureSpace = t.textureSpace, { ...e, ...r };
3285
3285
  }
3286
3286
  function xr(r, t) {
3287
- const e = { ...t, ...r }, n = X.shared.setValue(e.color);
3287
+ const e = { ...t, ...r }, n = Y.shared.setValue(e.color);
3288
3288
  return e.alpha *= n.alpha, e.color = n.toNumber(), e;
3289
3289
  }
3290
3290
  function It(r, t) {
@@ -3328,7 +3328,7 @@ function gr(r, t) {
3328
3328
  }
3329
3329
  return e;
3330
3330
  }
3331
- const yr = new Mt(), Ye = new V(), ye = class at extends Fn {
3331
+ const yr = new Mt(), Xe = new V(), ye = class at extends Fn {
3332
3332
  constructor() {
3333
3333
  super(...arguments), this._gpuData = /* @__PURE__ */ Object.create(null), this.autoGarbageCollect = !0, this._gcLastUsed = -1, this.uid = Ot("graphicsContext"), this.dirty = !0, this.batchMode = "auto", this.instructions = [], this.destroyed = !1, this._activePath = new ut(), this._transform = new V(), this._fillStyle = { ...at.defaultFillStyle }, this._strokeStyle = { ...at.defaultStrokeStyle }, this._stateStack = [], this._tick = 0, this._bounds = new Ke(), this._boundsDirty = !0;
3334
3334
  }
@@ -3390,7 +3390,7 @@ const yr = new Mt(), Ye = new V(), ye = class at extends Fn {
3390
3390
  dh: o || t.frame.height,
3391
3391
  transform: this._transform.clone(),
3392
3392
  alpha: this._fillStyle.alpha,
3393
- style: e || e === 0 ? X.shared.setValue(e).toNumber() : 16777215
3393
+ style: e || e === 0 ? Y.shared.setValue(e).toNumber() : 16777215
3394
3394
  }
3395
3395
  }), this.onUpdate(), this;
3396
3396
  }
@@ -3405,7 +3405,7 @@ const yr = new Mt(), Ye = new V(), ye = class at extends Fn {
3405
3405
  fill(t, e) {
3406
3406
  let n;
3407
3407
  const s = this.instructions[this.instructions.length - 1];
3408
- return this._tick === 0 && (s == null ? void 0 : s.action) === "stroke" ? n = s.data.path : n = this._activePath.clone(), n ? (t != null && (e !== void 0 && typeof t == "number" && (Y(ot, "GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"), t = { color: t, alpha: e }), this._fillStyle = It(t, at.defaultFillStyle)), this.instructions.push({
3408
+ return this._tick === 0 && (s == null ? void 0 : s.action) === "stroke" ? n = s.data.path : n = this._activePath.clone(), n ? (t != null && (e !== void 0 && typeof t == "number" && (X(ot, "GraphicsContext.fill(color, alpha) is deprecated, use GraphicsContext.fill({ color, alpha }) instead"), t = { color: t, alpha: e }), this._fillStyle = It(t, at.defaultFillStyle)), this.instructions.push({
3409
3409
  action: "fill",
3410
3410
  // TODO copy fill style!
3411
3411
  data: { style: this.fillStyle, path: n }
@@ -3814,7 +3814,7 @@ const yr = new Mt(), Ye = new V(), ye = class at extends Fn {
3814
3814
  return t instanceof V ? (this._transform.set(t.a, t.b, t.c, t.d, t.tx, t.ty), this) : (this._transform.set(t, e, n, s, i, o), this);
3815
3815
  }
3816
3816
  transform(t, e, n, s, i, o) {
3817
- return t instanceof V ? (this._transform.append(t), this) : (Ye.set(t, e, n, s, i, o), this._transform.append(Ye), this);
3817
+ return t instanceof V ? (this._transform.append(t), this) : (Xe.set(t, e, n, s, i, o), this._transform.append(Xe), this);
3818
3818
  }
3819
3819
  /**
3820
3820
  * Applies a translation transformation to the graphics context, moving the origin by the specified amounts.
@@ -4010,7 +4010,7 @@ class _r {
4010
4010
  }
4011
4011
  const me = class he {
4012
4012
  constructor(t) {
4013
- this._renderer = t, this._managedContexts = new Yt({ renderer: t, type: "resource", name: "graphicsContext" });
4013
+ this._renderer = t, this._managedContexts = new Xt({ renderer: t, type: "resource", name: "graphicsContext" });
4014
4014
  }
4015
4015
  /**
4016
4016
  * Runner init called, update the default options
@@ -4075,7 +4075,7 @@ me.defaultOptions = {
4075
4075
  let br = me;
4076
4076
  class gn {
4077
4077
  constructor(t, e) {
4078
- this.state = tn.for2d(), this.renderer = t, this._adaptor = e, this.renderer.runners.contextChange.add(this), this._managedGraphics = new Yt({ renderer: t, type: "renderable", priority: -1, name: "graphics" });
4078
+ this.state = tn.for2d(), this.renderer = t, this._adaptor = e, this.renderer.runners.contextChange.add(this), this._managedGraphics = new Xt({ renderer: t, type: "renderable", priority: -1, name: "graphics" });
4079
4079
  }
4080
4080
  contextChange() {
4081
4081
  this._adaptor.contextChange(this.renderer);
@@ -4113,7 +4113,7 @@ class Cr {
4113
4113
  }
4114
4114
  class yn {
4115
4115
  constructor(t, e) {
4116
- this.state = tn.for2d(), this.renderer = t, this._adaptor = e, this.renderer.runners.contextChange.add(this), this._managedGraphics = new Yt({ renderer: t, type: "renderable", priority: -1, name: "graphics" });
4116
+ this.state = tn.for2d(), this.renderer = t, this._adaptor = e, this.renderer.runners.contextChange.add(this), this._managedGraphics = new Xt({ renderer: t, type: "renderable", priority: -1, name: "graphics" });
4117
4117
  }
4118
4118
  contextChange() {
4119
4119
  this._adaptor.contextChange(this.renderer);
@@ -4892,7 +4892,7 @@ class Zt extends Hn {
4892
4892
  * @deprecated since 8.0.0 Use {@link Graphics#setStrokeStyle} instead
4893
4893
  */
4894
4894
  lineStyle(t, e, n) {
4895
- Y(ot, "Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");
4895
+ X(ot, "Graphics#lineStyle is no longer needed. Use Graphics#setStrokeStyle to set the stroke style.");
4896
4896
  const s = {};
4897
4897
  return t && (s.width = t), e && (s.color = e), n && (s.alpha = n), this.context.strokeStyle = s, this;
4898
4898
  }
@@ -4902,7 +4902,7 @@ class Zt extends Hn {
4902
4902
  * @deprecated since 8.0.0 Use {@link Graphics#fill} instead
4903
4903
  */
4904
4904
  beginFill(t, e) {
4905
- Y(ot, "Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");
4905
+ X(ot, "Graphics#beginFill is no longer needed. Use Graphics#fill to fill the shape with the desired style.");
4906
4906
  const n = {};
4907
4907
  return t !== void 0 && (n.color = t), e !== void 0 && (n.alpha = e), this.context.fillStyle = n, this;
4908
4908
  }
@@ -4910,7 +4910,7 @@ class Zt extends Hn {
4910
4910
  * @deprecated since 8.0.0 Use {@link Graphics#fill} instead
4911
4911
  */
4912
4912
  endFill() {
4913
- Y(ot, "Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."), this.context.fill();
4913
+ X(ot, "Graphics#endFill is no longer needed. Use Graphics#fill to fill the shape with the desired style."), this.context.fill();
4914
4914
  const t = this.context.strokeStyle;
4915
4915
  return (t.width !== wt.defaultStrokeStyle.width || t.color !== wt.defaultStrokeStyle.color || t.alpha !== wt.defaultStrokeStyle.alpha) && this.context.stroke(), this;
4916
4916
  }
@@ -4919,46 +4919,46 @@ class Zt extends Hn {
4919
4919
  * @deprecated since 8.0.0 Use {@link Graphics#circle} instead
4920
4920
  */
4921
4921
  drawCircle(...t) {
4922
- return Y(ot, "Graphics#drawCircle has been renamed to Graphics#circle"), this._callContextMethod("circle", t);
4922
+ return X(ot, "Graphics#drawCircle has been renamed to Graphics#circle"), this._callContextMethod("circle", t);
4923
4923
  }
4924
4924
  /**
4925
4925
  * @param {...any} args
4926
4926
  * @deprecated since 8.0.0 Use {@link Graphics#ellipse} instead
4927
4927
  */
4928
4928
  drawEllipse(...t) {
4929
- return Y(ot, "Graphics#drawEllipse has been renamed to Graphics#ellipse"), this._callContextMethod("ellipse", t);
4929
+ return X(ot, "Graphics#drawEllipse has been renamed to Graphics#ellipse"), this._callContextMethod("ellipse", t);
4930
4930
  }
4931
4931
  /**
4932
4932
  * @param {...any} args
4933
4933
  * @deprecated since 8.0.0 Use {@link Graphics#poly} instead
4934
4934
  */
4935
4935
  drawPolygon(...t) {
4936
- return Y(ot, "Graphics#drawPolygon has been renamed to Graphics#poly"), this._callContextMethod("poly", t);
4936
+ return X(ot, "Graphics#drawPolygon has been renamed to Graphics#poly"), this._callContextMethod("poly", t);
4937
4937
  }
4938
4938
  /**
4939
4939
  * @param {...any} args
4940
4940
  * @deprecated since 8.0.0 Use {@link Graphics#rect} instead
4941
4941
  */
4942
4942
  drawRect(...t) {
4943
- return Y(ot, "Graphics#drawRect has been renamed to Graphics#rect"), this._callContextMethod("rect", t);
4943
+ return X(ot, "Graphics#drawRect has been renamed to Graphics#rect"), this._callContextMethod("rect", t);
4944
4944
  }
4945
4945
  /**
4946
4946
  * @param {...any} args
4947
4947
  * @deprecated since 8.0.0 Use {@link Graphics#roundRect} instead
4948
4948
  */
4949
4949
  drawRoundedRect(...t) {
4950
- return Y(ot, "Graphics#drawRoundedRect has been renamed to Graphics#roundRect"), this._callContextMethod("roundRect", t);
4950
+ return X(ot, "Graphics#drawRoundedRect has been renamed to Graphics#roundRect"), this._callContextMethod("roundRect", t);
4951
4951
  }
4952
4952
  /**
4953
4953
  * @param {...any} args
4954
4954
  * @deprecated since 8.0.0 Use {@link Graphics#star} instead
4955
4955
  */
4956
4956
  drawStar(...t) {
4957
- return Y(ot, "Graphics#drawStar has been renamed to Graphics#star"), this._callContextMethod("star", t);
4957
+ return X(ot, "Graphics#drawStar has been renamed to Graphics#star"), this._callContextMethod("star", t);
4958
4958
  }
4959
4959
  }
4960
4960
  let Pt;
4961
- function Xe(r) {
4961
+ function Ye(r) {
4962
4962
  const t = ht.get().createCanvas(6, 1), e = t.getContext("2d");
4963
4963
  return e.fillStyle = r, e.fillRect(0, 0, 6, 1), t;
4964
4964
  }
@@ -4966,7 +4966,7 @@ function mn() {
4966
4966
  if (Pt !== void 0)
4967
4967
  return Pt;
4968
4968
  try {
4969
- const r = Xe("#ff00ff"), t = Xe("#ffff00"), n = ht.get().createCanvas(6, 1).getContext("2d");
4969
+ const r = Ye("#ff00ff"), t = Ye("#ffff00"), n = ht.get().createCanvas(6, 1).getContext("2d");
4970
4970
  n.globalCompositeOperation = "multiply", n.drawImage(r, 0, 0), n.drawImage(t, 2, 0);
4971
4971
  const s = n.getImageData(2, 0, 1, 1);
4972
4972
  if (!s)
@@ -5035,14 +5035,14 @@ const A = {
5035
5035
  return e;
5036
5036
  },
5037
5037
  getTintedCanvas: (r, t) => {
5038
- const e = r.texture, n = X.shared.setValue(t).toHex(), s = e.tintCache || (e.tintCache = {}), i = s[n], o = e.source._resourceId;
5038
+ const e = r.texture, n = Y.shared.setValue(t).toHex(), s = e.tintCache || (e.tintCache = {}), i = s[n], o = e.source._resourceId;
5039
5039
  if ((i == null ? void 0 : i.tintId) === o)
5040
5040
  return i;
5041
5041
  const a = i && "getContext" in i ? i : ht.get().createCanvas();
5042
5042
  return A.tintMethod(e, t, a), a.tintId = o, s[n] = a, s[n];
5043
5043
  },
5044
5044
  getTintedPattern: (r, t) => {
5045
- const e = X.shared.setValue(t).toHex(), n = r.patternCache || (r.patternCache = {}), s = r.source._resourceId;
5045
+ const e = Y.shared.setValue(t).toHex(), n = r.patternCache || (r.patternCache = {}), s = r.source._resourceId;
5046
5046
  let i = n[e];
5047
5047
  return (i == null ? void 0 : i.tintId) === s || (A.canvas || (A.canvas = ht.get().createCanvas()), A.tintMethod(r, t, A.canvas), i = A.canvas.getContext("2d").createPattern(A.canvas, "repeat"), i.tintId = s, n[e] = i), i;
5048
5048
  },
@@ -5071,7 +5071,7 @@ const A = {
5071
5071
  const n = e.getContext("2d"), s = r.frame.clone(), i = r.source._resolution ?? r.source.resolution ?? 1, o = r.rotate;
5072
5072
  s.x *= i, s.y *= i, s.width *= i, s.height *= i;
5073
5073
  const a = ct.isVertical(o), c = a ? s.height : s.width, l = a ? s.width : s.height;
5074
- e.width = Math.ceil(c), e.height = Math.ceil(l), n.save(), n.fillStyle = X.shared.setValue(t).toHex(), n.fillRect(0, 0, c, l), n.globalCompositeOperation = "multiply";
5074
+ e.width = Math.ceil(c), e.height = Math.ceil(l), n.save(), n.fillStyle = Y.shared.setValue(t).toHex(), n.fillRect(0, 0, c, l), n.globalCompositeOperation = "multiply";
5075
5075
  const h = A.getCanvasSource(r);
5076
5076
  if (!h) {
5077
5077
  n.restore();
@@ -5103,7 +5103,7 @@ const A = {
5103
5103
  const n = e.getContext("2d"), s = r.frame.clone(), i = r.source._resolution ?? r.source.resolution ?? 1, o = r.rotate;
5104
5104
  s.x *= i, s.y *= i, s.width *= i, s.height *= i;
5105
5105
  const a = ct.isVertical(o), c = a ? s.height : s.width, l = a ? s.width : s.height;
5106
- e.width = Math.ceil(c), e.height = Math.ceil(l), n.save(), n.globalCompositeOperation = "copy", n.fillStyle = X.shared.setValue(t).toHex(), n.fillRect(0, 0, c, l), n.globalCompositeOperation = "destination-atop";
5106
+ e.width = Math.ceil(c), e.height = Math.ceil(l), n.save(), n.globalCompositeOperation = "copy", n.fillStyle = Y.shared.setValue(t).toHex(), n.fillRect(0, 0, c, l), n.globalCompositeOperation = "destination-atop";
5107
5107
  const h = A.getCanvasSource(r);
5108
5108
  if (!h) {
5109
5109
  n.restore();
@@ -5207,8 +5207,8 @@ const _e = class xt {
5207
5207
  let zt = x;
5208
5208
  const bt = S !== 16777215 && !st, Ct = G.width <= p.source.width && G.height <= p.source.height;
5209
5209
  bt && Ct && (zt = A.getTintedCanvas({ texture: p }, S));
5210
- const Xt = o.createPattern(zt, J);
5211
- if (!Xt) continue;
5210
+ const Yt = o.createPattern(zt, J);
5211
+ if (!Yt) continue;
5212
5212
  const be = _t, Ce = Tt;
5213
5213
  if (be === 0 || Ce === 0) continue;
5214
5214
  const Pe = 1 / be, Me = 1 / Ce, Se = (D.x1 - D.x0) * Pe, ve = (D.y1 - D.y0) * Pe, Te = (D.x3 - D.x0) * Me, ke = (D.y3 - D.y0) * Me, In = D.x0 - Se * nt - Te * mt, Gn = D.y0 - ve * nt - ke * mt, Qt = p.source.pixelWidth, Kt = p.source.pixelHeight;
@@ -5219,7 +5219,7 @@ const _e = class xt {
5219
5219
  ke * Kt,
5220
5220
  In * Qt,
5221
5221
  Gn * Kt
5222
- ), A.applyPatternTransform(Xt, xt._tempPatternMatrix), o.fillStyle = Xt, o.fillRect(nt, mt, _t, Tt);
5222
+ ), A.applyPatternTransform(Yt, xt._tempPatternMatrix), o.fillStyle = Yt, o.fillRect(nt, mt, _t, Tt);
5223
5223
  } else {
5224
5224
  const bt = S !== 16777215 || st ? A.getTintedCanvas({ texture: p }, S) : x, Ct = bt !== x;
5225
5225
  o.drawImage(
@@ -5492,7 +5492,7 @@ class Pn {
5492
5492
  clear(t, e) {
5493
5493
  const n = this.activeContext, s = this._renderer;
5494
5494
  if (n.clearRect(0, 0, s.width, s.height), t) {
5495
- const i = X.shared.setValue(t);
5495
+ const i = Y.shared.setValue(t);
5496
5496
  n.globalAlpha = e ?? i.alpha, n.fillStyle = i.toHex(), n.fillRect(0, 0, s.width, s.height), n.globalAlpha = 1;
5497
5497
  }
5498
5498
  }
@@ -5772,7 +5772,7 @@ class Fr {
5772
5772
  clear(t, e, n, s) {
5773
5773
  const o = this._renderTargetSystem.getGpuRenderTarget(t).context, a = s || { x: 0, y: 0, width: t.pixelWidth, height: t.pixelHeight };
5774
5774
  if (o.setTransform(1, 0, 0, 1, 0, 0), o.clearRect(a.x, a.y, a.width, a.height), n) {
5775
- const c = X.shared.setValue(n);
5775
+ const c = Y.shared.setValue(n);
5776
5776
  c.alpha > 0 && (o.globalAlpha = c.alpha, o.fillStyle = c.toHex(), o.fillRect(a.x, a.y, a.width, a.height), o.globalAlpha = 1);
5777
5777
  }
5778
5778
  }
@@ -5919,7 +5919,7 @@ class Vr extends Wn {
5919
5919
  constructor() {
5920
5920
  const t = {
5921
5921
  name: "canvas",
5922
- type: Xn.CANVAS,
5922
+ type: Yn.CANVAS,
5923
5923
  systems: kn,
5924
5924
  renderPipes: wn,
5925
5925
  renderPipeAdaptors: Rn
@@ -5930,4 +5930,4 @@ class Vr extends Wn {
5930
5930
  export {
5931
5931
  Vr as CanvasRenderer
5932
5932
  };
5933
- //# sourceMappingURL=CanvasRenderer-BL1L0Zug.js.map
5933
+ //# sourceMappingURL=CanvasRenderer-J_XwG2_5.js.map