modern-canvas 0.14.35 → 0.14.36

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.
@@ -35,8 +35,8 @@ export declare class Aabb2D implements RectangleLike {
35
35
  constructor(min: Vector2Like, size: Vector2Like);
36
36
  constructor(x: number, y: number, width: number, height: number);
37
37
  update(): this;
38
- overlapsOnAxis(rect: Aabb2D, axis?: 'horizontal' | 'vertical'): boolean;
39
- containsPoint(point: Vector2Like): boolean;
38
+ overlap(rect: Aabb2D, axis?: 'x' | 'y'): boolean;
39
+ contains(value: Aabb2D | Vector2Like): boolean;
40
40
  getIntersectionRect(target: Aabb2D): Aabb2D;
41
41
  getArea(): number;
42
42
  toMinmax(): {
@@ -16,7 +16,7 @@ export declare class Obb2D extends Aabb2D implements RotatedRectangleLike {
16
16
  constructor();
17
17
  constructor(rect: RotatedRectangleLike);
18
18
  constructor(pointArray: Vector2Like[], rotation?: number);
19
- overlapsOnAxis(obb: Obb2D | Aabb2D, axis?: 'horizontal' | 'vertical'): boolean;
19
+ overlap(obb: Obb2D | Aabb2D, axis?: 'x' | 'y'): boolean;
20
20
  toCssStyle(): {
21
21
  left: string;
22
22
  top: string;
package/dist/index.js CHANGED
@@ -527,9 +527,9 @@ class ce extends ue {
527
527
  operate(e, t, s) {
528
528
  const { cols: i, rows: a, length: o, _array: n } = this;
529
529
  let l;
530
- typeof t == "number" ? l = Array.from({ length: o }, () => t) : t instanceof ee || t instanceof ce ? l = t.toArray() : l = t;
530
+ typeof t == "number" ? l = Array.from({ length: o }, () => t) : t instanceof te || t instanceof ce ? l = t.toArray() : l = t;
531
531
  let c, u = [];
532
- if (s ? s instanceof ee || s instanceof ce ? c = s : u = s : t instanceof ee ? c = new t.constructor() : c = this, t instanceof ee) {
532
+ if (s ? s instanceof te || s instanceof ce ? c = s : u = s : t instanceof te ? c = new t.constructor() : c = this, t instanceof te) {
533
533
  const { dim: d } = t;
534
534
  switch (e) {
535
535
  case "*":
@@ -614,7 +614,7 @@ class ce extends ue {
614
614
  return this._array.slice();
615
615
  }
616
616
  }
617
- class ee extends ue {
617
+ class te extends ue {
618
618
  constructor(e) {
619
619
  super(), this.dim = e;
620
620
  }
@@ -625,9 +625,9 @@ class ee extends ue {
625
625
  operate(e, t, s) {
626
626
  const { dim: i, _array: a } = this;
627
627
  let o;
628
- typeof t == "number" ? o = Array.from({ length: i }, () => t) : t instanceof ce || t instanceof ee ? o = t.toArray() : o = t;
628
+ typeof t == "number" ? o = Array.from({ length: i }, () => t) : t instanceof ce || t instanceof te ? o = t.toArray() : o = t;
629
629
  let n, l = [];
630
- if (s ? s instanceof ee ? n = s : l = s : n = this, t instanceof ce) {
630
+ if (s ? s instanceof te ? n = s : l = s : n = this, t instanceof ce) {
631
631
  const { cols: c } = t;
632
632
  switch (e) {
633
633
  case "*":
@@ -724,7 +724,7 @@ class ee extends ue {
724
724
  return this.toArray();
725
725
  }
726
726
  }
727
- class O extends ee {
727
+ class O extends te {
728
728
  get x() {
729
729
  return this._array[0];
730
730
  }
@@ -789,7 +789,7 @@ class O extends ee {
789
789
  return new O(t).clone().sub(e).multiply(s).add(e);
790
790
  }
791
791
  }
792
- class te {
792
+ class q {
793
793
  get x() {
794
794
  return this.min.x;
795
795
  }
@@ -870,22 +870,23 @@ class te {
870
870
  this.min.y + this.size.y
871
871
  ), this;
872
872
  }
873
- overlapsOnAxis(e, t) {
873
+ overlap(e, t) {
874
874
  switch (t) {
875
- case "horizontal":
875
+ case "x":
876
876
  return this.max.x >= e.min.x && e.max.x >= this.min.x;
877
- case "vertical":
877
+ case "y":
878
878
  return this.max.y >= e.min.y && e.max.y >= this.min.y;
879
879
  default:
880
- return this.overlapsOnAxis(e, "horizontal") && this.overlapsOnAxis(e, "vertical");
880
+ return this.overlap(e, "x") && this.overlap(e, "y");
881
881
  }
882
882
  }
883
- containsPoint(e) {
884
- return e.x >= this.min.x && e.x <= this.max.x && e.y >= this.min.y && e.y <= this.max.y;
883
+ contains(e) {
884
+ let t, s;
885
+ return e instanceof q ? (t = e.min, s = e.max) : (t = e, s = e), this.max.x >= s.x && this.max.y >= s.y && this.min.x <= t.x && this.min.y <= t.y;
885
886
  }
886
887
  getIntersectionRect(e) {
887
888
  const t = this.toMinmax(), s = e.toMinmax(), i = Math.max(t.min.x, s.min.x), a = Math.max(t.min.y, s.min.y), o = Math.min(t.max.x, s.max.x), n = Math.min(t.max.y, s.max.y);
888
- return o <= i || n <= a ? new te() : new te(
889
+ return o <= i || n <= a ? new q() : new q(
889
890
  i,
890
891
  a,
891
892
  Math.max(0, o - i),
@@ -921,7 +922,7 @@ class te {
921
922
  };
922
923
  }
923
924
  clone() {
924
- return new te(this.toJSON());
925
+ return new q(this.toJSON());
925
926
  }
926
927
  }
927
928
  wi([Pi]);
@@ -1026,7 +1027,7 @@ const fc = {
1026
1027
  return t < this.minSegments ? t = this.minSegments : t > this.maxSegments && (t = this.maxSegments), t;
1027
1028
  }
1028
1029
  };
1029
- class ta extends ee {
1030
+ class ta extends te {
1030
1031
  constructor(e = 0, t = 0, s = 0, i = 0) {
1031
1032
  super(4), this.set(e, t, s, i);
1032
1033
  }
@@ -1336,7 +1337,7 @@ class _s extends ce {
1336
1337
  ]);
1337
1338
  }
1338
1339
  }
1339
- class It extends te {
1340
+ class It extends q {
1340
1341
  /**
1341
1342
  * Rotation radians
1342
1343
  */
@@ -1348,9 +1349,9 @@ class It extends te {
1348
1349
  let t, s;
1349
1350
  e.length === 0 || (e.length === 1 ? (s = e[0], t = e[0].rotation) : e.length === 2 && (s = e[0], t = e[1])), s ? super(s) : super(), this.rotation = t ?? 0;
1350
1351
  }
1351
- overlapsOnAxis(e, t) {
1352
+ overlap(e, t) {
1352
1353
  if (!this.rotation && (!("rotation" in e) || !e.rotation))
1353
- return super.overlapsOnAxis(e, t);
1354
+ return super.overlap(e, t);
1354
1355
  {
1355
1356
  const s = (l, c) => Math.abs(l.x * c.x + l.y * c.y), i = (l) => {
1356
1357
  const { width: c, height: u, rotation: d = 0 } = l;
@@ -1592,7 +1593,7 @@ class N extends _s {
1592
1593
  return { a: e, c: t, tx: s, b: i, d: a, ty: o, tz: n };
1593
1594
  }
1594
1595
  }
1595
- class _c extends ee {
1596
+ class _c extends te {
1596
1597
  constructor() {
1597
1598
  super(3);
1598
1599
  }
@@ -2443,11 +2444,11 @@ ${Array.from({ length: e }, (l, c) => {
2443
2444
  } = s[ge];
2444
2445
  S < ge && _.blendMode !== Gr && (_.size = u - _.start, d.push(_), S = ge, _ = { id: ++f }, _.textures = g, _.start = u);
2445
2446
  const { width: Kt, height: Zt } = ti, ii = c / this._vertexSize, ai = (zr ? v.get(zr) : 255) ?? 255, oi = si ? 1 : 0, ni = ri ? 1 : 0;
2446
- let Pt, Et, J;
2447
- for (let Jt = Yt.length, Q = 0; Q < Jt; Q += 2)
2448
- Pt = Fr[Q], Et = Fr[Q + 1], Kt > 0 && Zt > 0 && (Pt = Math.ceil(Pt * Kt) / Kt, Et = Math.ceil(Et * Zt) / Zt), o[c++] = Yt[Q], o[c++] = Yt[Q + 1], o[c++] = Pt, o[c++] = Et, J = c * 4, n[J] = ai, n[J + 1] = ni, n[J + 2] = oi, n[J + 3] = 0, c++, J = c * 4, n[J] = wt[0], n[J + 1] = wt[1], n[J + 2] = wt[2], n[J + 3] = wt[3], c++;
2449
- for (let Jt = Lr.length, Q = 0; Q < Jt; Q++)
2450
- l[u++] = ii + Lr[Q];
2447
+ let Pt, Et, Q;
2448
+ for (let Jt = Yt.length, ee = 0; ee < Jt; ee += 2)
2449
+ Pt = Fr[ee], Et = Fr[ee + 1], Kt > 0 && Zt > 0 && (Pt = Math.ceil(Pt * Kt) / Kt, Et = Math.ceil(Et * Zt) / Zt), o[c++] = Yt[ee], o[c++] = Yt[ee + 1], o[c++] = Pt, o[c++] = Et, Q = c * 4, n[Q] = ai, n[Q + 1] = ni, n[Q + 2] = oi, n[Q + 3] = 0, c++, Q = c * 4, n[Q] = wt[0], n[Q + 1] = wt[1], n[Q + 2] = wt[2], n[Q + 3] = wt[3], c++;
2450
+ for (let Jt = Lr.length, ee = 0; ee < Jt; ee++)
2451
+ l[u++] = ii + Lr[ee];
2451
2452
  _.blendMode = Gr;
2452
2453
  }
2453
2454
  S = C + 1, _.size = u - _.start, d.push(_), _ = { id: ++f }, g = [], v = /* @__PURE__ */ new Map();
@@ -3407,7 +3408,7 @@ class Va extends W {
3407
3408
  }
3408
3409
  }
3409
3410
  class $a extends W {
3410
- current = new te(0, 0, 0, 0);
3411
+ current = new q(0, 0, 0, 0);
3411
3412
  install(e) {
3412
3413
  super.install(e), e.viewport = this;
3413
3414
  }
@@ -5079,7 +5080,7 @@ var vo = Object.defineProperty, bo = Object.getOwnPropertyDescriptor, Ye = (r, e
5079
5080
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5080
5081
  return s && i && vo(e, t, i), i;
5081
5082
  };
5082
- let q = class extends I {
5083
+ let Y = class extends I {
5083
5084
  constructor(r, e = []) {
5084
5085
  super(), this.setProperties(r).append(e);
5085
5086
  }
@@ -5134,28 +5135,28 @@ let q = class extends I {
5134
5135
  };
5135
5136
  Ye([
5136
5137
  h({ fallback: !1 })
5137
- ], q.prototype, "loop", 2);
5138
+ ], Y.prototype, "loop", 2);
5138
5139
  Ye([
5139
5140
  h({ fallback: 0 })
5140
- ], q.prototype, "delay", 2);
5141
+ ], Y.prototype, "delay", 2);
5141
5142
  Ye([
5142
5143
  h({ fallback: 0 })
5143
- ], q.prototype, "duration", 2);
5144
+ ], Y.prototype, "duration", 2);
5144
5145
  Ye([
5145
5146
  h({ fallback: !1 })
5146
- ], q.prototype, "paused", 2);
5147
+ ], Y.prototype, "paused", 2);
5147
5148
  Ye([
5148
5149
  h({ internal: !0, fallback: !1 })
5149
- ], q.prototype, "insideTimeRange", 2);
5150
- q = Ye([
5150
+ ], Y.prototype, "insideTimeRange", 2);
5151
+ Y = Ye([
5151
5152
  b("TimelineNode")
5152
- ], q);
5153
+ ], Y);
5153
5154
  var yo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, Xt = (r, e, t, s) => {
5154
5155
  for (var i = s > 1 ? void 0 : s ? xo(e, t) : e, a = r.length - 1, o; a >= 0; a--)
5155
5156
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5156
5157
  return s && i && yo(e, t, i), i;
5157
5158
  };
5158
- let Ge = class extends q {
5159
+ let Ge = class extends Y {
5159
5160
  _parentGlobalVisible;
5160
5161
  _globalVisible;
5161
5162
  get globalVisible() {
@@ -5378,7 +5379,7 @@ let X = class extends I {
5378
5379
  this.renderStart(r), super.render(r, e), this.renderEnd(r, t);
5379
5380
  }
5380
5381
  getRect() {
5381
- return new te(this.x, this.y, this.width, this.height);
5382
+ return new q(this.x, this.y, this.width, this.height);
5382
5383
  }
5383
5384
  toCanvasGlobal(r, e) {
5384
5385
  return this.canvasTransform.applyAffineInverse(r, e);
@@ -5413,7 +5414,7 @@ var Eo = Object.defineProperty, So = Object.getOwnPropertyDescriptor, _t = (r, e
5413
5414
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
5414
5415
  return s && i && Eo(e, t, i), i;
5415
5416
  };
5416
- let T = class extends q {
5417
+ let T = class extends Y {
5417
5418
  material;
5418
5419
  get _effectMode() {
5419
5420
  return this.effectMode ?? "parent";
@@ -5460,7 +5461,7 @@ let T = class extends q {
5460
5461
  e && this._effectMode === "transition" && (r.equal(this._previousSibling) ? (this._previousSibling = void 0, e.push(this)) : r.equal(this._nextSibling) && (this._nextSibling = void 0, e.push(this)));
5461
5462
  }
5462
5463
  getRect() {
5463
- return new te(this._rect);
5464
+ return new q(this._rect);
5464
5465
  }
5465
5466
  _processParent() {
5466
5467
  const r = this._tree?.renderStack;
@@ -6725,7 +6726,7 @@ var Ds = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, sn = (r, e
6725
6726
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
6726
6727
  return s && i && Ds(e, t, i), i;
6727
6728
  }, an = (r, e, t) => sn(r, e + "", t);
6728
- let Y = class extends T {
6729
+ let K = class extends T {
6729
6730
  _watermark;
6730
6731
  constructor(r, e = []) {
6731
6732
  super(), this.setProperties(r).append(e);
@@ -6748,7 +6749,7 @@ let Y = class extends T {
6748
6749
  this.watermarkWidth,
6749
6750
  this.watermarkWidth * this._watermark.height / this._watermark.width
6750
6751
  ] : [0, 0], i = Math.max(s[0], s[1]);
6751
- P.draw(r, Y.material, {
6752
+ P.draw(r, K.material, {
6752
6753
  uTexture: 0,
6753
6754
  inputSize: [e.width, e.height],
6754
6755
  zoom: [t[0], t[4]],
@@ -6775,7 +6776,7 @@ let Y = class extends T {
6775
6776
  });
6776
6777
  }
6777
6778
  };
6778
- an(Y, "material", new E({
6779
+ an(K, "material", new E({
6779
6780
  gl: {
6780
6781
  vertex: `attribute vec2 position;
6781
6782
  in vec2 uv;
@@ -6791,28 +6792,28 @@ void main() {
6791
6792
  }));
6792
6793
  Ae([
6793
6794
  h({ fallback: !1 })
6794
- ], Y.prototype, "checkerboard", 2);
6795
+ ], K.prototype, "checkerboard", 2);
6795
6796
  Ae([
6796
6797
  h({ fallback: "grid" })
6797
- ], Y.prototype, "checkerboardStyle", 2);
6798
+ ], K.prototype, "checkerboardStyle", 2);
6798
6799
  Ae([
6799
6800
  h({ fallback: !1 })
6800
- ], Y.prototype, "pixelGrid", 2);
6801
+ ], K.prototype, "pixelGrid", 2);
6801
6802
  Ae([
6802
6803
  h()
6803
- ], Y.prototype, "watermark", 2);
6804
+ ], K.prototype, "watermark", 2);
6804
6805
  Ae([
6805
6806
  h({ fallback: 100 })
6806
- ], Y.prototype, "watermarkWidth", 2);
6807
+ ], K.prototype, "watermarkWidth", 2);
6807
6808
  Ae([
6808
6809
  h({ fallback: 0.05 })
6809
- ], Y.prototype, "watermarkAlpha", 2);
6810
+ ], K.prototype, "watermarkAlpha", 2);
6810
6811
  Ae([
6811
6812
  h({ fallback: 0.5236 })
6812
- ], Y.prototype, "watermarkRotation", 2);
6813
- Y = Ae([
6813
+ ], K.prototype, "watermarkRotation", 2);
6814
+ K = Ae([
6814
6815
  b("DrawboardEffect")
6815
- ], Y);
6816
+ ], K);
6816
6817
  var Is = Object.defineProperty, on = Object.getOwnPropertyDescriptor, nn = (r, e, t) => e in r ? Is(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, Nr = (r, e, t, s) => {
6817
6818
  for (var i = s > 1 ? void 0 : s ? on(e, t) : e, a = r.length - 1, o; a >= 0; a--)
6818
6819
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
@@ -7330,14 +7331,14 @@ float turb(vec3 P, vec3 rep, float lacunarity, float gain) {
7330
7331
  }
7331
7332
  return abs(sum);
7332
7333
  }`;
7333
- let K = class extends T {
7334
+ let Z = class extends T {
7334
7335
  constructor(r, e = []) {
7335
7336
  super(), this.setProperties(r).append(e);
7336
7337
  }
7337
7338
  apply(r, e) {
7338
7339
  const t = this.angle * (Math.PI / 180), s = this.parallel ? [Math.cos(t), Math.sin(t)] : this.center;
7339
7340
  e.redraw(r, () => {
7340
- P.draw(r, K.material, {
7341
+ P.draw(r, Z.material, {
7341
7342
  sampler: 0,
7342
7343
  uDimensions: [e.width, e.height],
7343
7344
  uParallel: this.parallel ? 1 : 0,
@@ -7354,7 +7355,7 @@ let K = class extends T {
7354
7355
  });
7355
7356
  }
7356
7357
  };
7357
- bn(K, "material", new E({
7358
+ bn(Z, "material", new E({
7358
7359
  gl: {
7359
7360
  vertex: `precision mediump float;
7360
7361
  attribute vec2 position;
@@ -7411,28 +7412,28 @@ void main(void) {
7411
7412
  }));
7412
7413
  Ce([
7413
7414
  h({ fallback: 0 })
7414
- ], K.prototype, "time", 2);
7415
+ ], Z.prototype, "time", 2);
7415
7416
  Ce([
7416
7417
  h({ fallback: 30 })
7417
- ], K.prototype, "angle", 2);
7418
+ ], Z.prototype, "angle", 2);
7418
7419
  Ce([
7419
7420
  h({ fallback: 0.5 })
7420
- ], K.prototype, "gain", 2);
7421
+ ], Z.prototype, "gain", 2);
7421
7422
  Ce([
7422
7423
  h({ fallback: 2.5 })
7423
- ], K.prototype, "lacunarity", 2);
7424
+ ], Z.prototype, "lacunarity", 2);
7424
7425
  Ce([
7425
7426
  h({ fallback: !0 })
7426
- ], K.prototype, "parallel", 2);
7427
+ ], Z.prototype, "parallel", 2);
7427
7428
  Ce([
7428
7429
  h({ default: () => [0, 0] })
7429
- ], K.prototype, "center", 2);
7430
+ ], Z.prototype, "center", 2);
7430
7431
  Ce([
7431
7432
  h({ fallback: 1 })
7432
- ], K.prototype, "alpha", 2);
7433
- K = Ce([
7433
+ ], Z.prototype, "alpha", 2);
7434
+ Z = Ce([
7434
7435
  b("GodrayEffect")
7435
- ], K);
7436
+ ], Z);
7436
7437
  var xn = Object.defineProperty, wn = Object.getOwnPropertyDescriptor, jt = (r, e, t, s) => {
7437
7438
  for (var i = s > 1 ? void 0 : s ? wn(e, t) : e, a = r.length - 1, o; a >= 0; a--)
7438
7439
  (o = r[a]) && (i = (s ? o(e, t, i) : o(i)) || i);
@@ -7930,7 +7931,7 @@ function Ut(r, e) {
7930
7931
  }
7931
7932
  };
7932
7933
  }
7933
- var Bn = Object.defineProperty, Z = (r, e, t, s) => {
7934
+ var Bn = Object.defineProperty, J = (r, e, t, s) => {
7934
7935
  for (var i = void 0, a = r.length - 1, o; a >= 0; a--)
7935
7936
  (o = r[a]) && (i = o(e, t, i) || i);
7936
7937
  return i && Bn(e, t, i), i;
@@ -8027,37 +8028,37 @@ class z extends Se {
8027
8028
  this.updateFrameIndex();
8028
8029
  }
8029
8030
  }
8030
- Z([
8031
+ J([
8031
8032
  h({ fallback: !0 })
8032
8033
  ], z.prototype, "enabled");
8033
- Z([
8034
+ J([
8034
8035
  h()
8035
8036
  ], z.prototype, "color");
8036
- Z([
8037
+ J([
8037
8038
  h()
8038
8039
  ], z.prototype, "image");
8039
- Z([
8040
+ J([
8040
8041
  h()
8041
8042
  ], z.prototype, "linearGradient");
8042
- Z([
8043
+ J([
8043
8044
  h()
8044
8045
  ], z.prototype, "radialGradient");
8045
- Z([
8046
+ J([
8046
8047
  h()
8047
8048
  ], z.prototype, "cropRect");
8048
- Z([
8049
+ J([
8049
8050
  h()
8050
8051
  ], z.prototype, "stretchRect");
8051
- Z([
8052
+ J([
8052
8053
  h()
8053
8054
  ], z.prototype, "dpi");
8054
- Z([
8055
+ J([
8055
8056
  h()
8056
8057
  ], z.prototype, "rotateWithShape");
8057
- Z([
8058
+ J([
8058
8059
  h()
8059
8060
  ], z.prototype, "tile");
8060
- Z([
8061
+ J([
8061
8062
  h()
8062
8063
  ], z.prototype, "opacity");
8063
8064
  var Ln = Object.defineProperty, Fn = (r, e, t, s) => {
@@ -9031,12 +9032,12 @@ let Ee = class extends Me {
9031
9032
  return this.getGlobalAabb();
9032
9033
  }
9033
9034
  getAabb() {
9034
- return new te(
9035
+ return new q(
9035
9036
  this._getPointArray().map((r) => this.transform.apply(r))
9036
9037
  );
9037
9038
  }
9038
9039
  getGlobalAabb() {
9039
- return new te(
9040
+ return new q(
9040
9041
  this._getPointArray().map((r) => this.globalTransform.apply(r))
9041
9042
  );
9042
9043
  }
@@ -9303,7 +9304,7 @@ const dr = {
9303
9304
  easeOut: cl,
9304
9305
  easeInOut: hl
9305
9306
  };
9306
- let dt = class extends q {
9307
+ let dt = class extends Y {
9307
9308
  _keyframes = [];
9308
9309
  _isFirstUpdatePosition = !1;
9309
9310
  _cachedProps = new yi();
@@ -10054,7 +10055,7 @@ var ml = Object.defineProperty, gl = Object.getOwnPropertyDescriptor, vl = (r, e
10054
10055
  (o = r[a]) && (i = o(i) || i);
10055
10056
  return i;
10056
10057
  }, yl = (r, e, t) => vl(r, e + "", t);
10057
- let Ie = class extends q {
10058
+ let Ie = class extends Y {
10058
10059
  _sounds = [];
10059
10060
  /** PlatformAudio */
10060
10061
  _platformAudio = Fi ? new _l(this) : new ul(this);
@@ -10993,7 +10994,7 @@ async function xc(r) {
10993
10994
  });
10994
10995
  }
10995
10996
  export {
10996
- te as Aabb2D,
10997
+ q as Aabb2D,
10997
10998
  oo as AnimatedTexture,
10998
10999
  dt as Animation,
10999
11000
  Jl as Assets,
@@ -11018,7 +11019,7 @@ export {
11018
11019
  Se as CoreObject,
11019
11020
  pr as DEG_TO_RAD,
11020
11021
  us as DEVICE_PIXEL_RATIO,
11021
- Y as DrawboardEffect,
11022
+ K as DrawboardEffect,
11022
11023
  ie as DropShadowEffect,
11023
11024
  T as Effect,
11024
11025
  Mt as EffectMaterial,
@@ -11055,7 +11056,7 @@ export {
11055
11056
  W as GlSystem,
11056
11057
  $a as GlViewportSystem,
11057
11058
  $ as GlitchEffect,
11058
- K as GodrayEffect,
11059
+ Z as GodrayEffect,
11059
11060
  Ht as GradientTexture,
11060
11061
  ul as HTMLAudio,
11061
11062
  Ur as HTMLAudioContext,
@@ -11121,14 +11122,14 @@ export {
11121
11122
  L as Ticker,
11122
11123
  pt as TiltShiftTransition,
11123
11124
  we as Timeline,
11124
- q as TimelineNode,
11125
+ Y as TimelineNode,
11125
11126
  N as Transform2D,
11126
11127
  tl as TransformRect2D,
11127
11128
  Ve as Transition,
11128
11129
  zt as TwistTransition,
11129
11130
  gc as UvGeometry,
11130
11131
  Nt as UvMaterial,
11131
- ee as Vector,
11132
+ te as Vector,
11132
11133
  O as Vector2,
11133
11134
  _c as Vector3,
11134
11135
  ta as Vector4,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.14.35",
4
+ "version": "0.14.36",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",
@@ -64,7 +64,7 @@
64
64
  "colord": "^2.9.3",
65
65
  "earcut": "^3.0.2",
66
66
  "modern-font": "^0.4.4",
67
- "modern-idoc": "^0.10.8",
67
+ "modern-idoc": "^0.10.9",
68
68
  "modern-path2d": "^1.4.16",
69
69
  "modern-text": "^1.10.15"
70
70
  },
@@ -87,7 +87,7 @@
87
87
  "devDependencies": {
88
88
  "@antfu/eslint-config": "^6.7.3",
89
89
  "@types/earcut": "^3.0.0",
90
- "@types/node": "^25.0.3",
90
+ "@types/node": "^25.0.7",
91
91
  "bumpp": "^10.3.2",
92
92
  "conventional-changelog-cli": "^5.0.0",
93
93
  "eslint": "^9.39.2",
@@ -98,7 +98,7 @@
98
98
  "typescript": "^5.9.3",
99
99
  "unbuild": "^3.6.1",
100
100
  "vite": "^7.3.1",
101
- "vitest": "^4.0.16",
101
+ "vitest": "^4.0.17",
102
102
  "yoga-layout": "^3.2.1"
103
103
  },
104
104
  "simple-git-hooks": {