modern-canvas 0.14.25 → 0.14.27

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.
package/dist/index.js CHANGED
@@ -7882,7 +7882,7 @@ function kt(r, e) {
7882
7882
  right: w = 0,
7883
7883
  bottom: S = 0
7884
7884
  } = r.cropRect;
7885
- n.translate(g, v).scale(
7885
+ n.translate(-g, -v).scale(
7886
7886
  1 / Math.abs(1 + (g + w)),
7887
7887
  1 / Math.abs(1 + (v + S))
7888
7888
  ), o = !0;
@@ -8275,13 +8275,13 @@ class ae extends Ee {
8275
8275
  super(), this.parent = e, this.base = new Ti(), this.base.setPropertyAccessor(this);
8276
8276
  }
8277
8277
  base;
8278
- get innerText() {
8279
- return this._innerText;
8278
+ get textContent() {
8279
+ return this._textContent;
8280
8280
  }
8281
- set innerText(e) {
8281
+ set textContent(e) {
8282
8282
  this.setContent(e);
8283
8283
  }
8284
- _innerText = "";
8284
+ _textContent = "";
8285
8285
  _autoDrawMode;
8286
8286
  _autoDrawThreshold = 100;
8287
8287
  _texture = new ys({
@@ -8309,7 +8309,7 @@ class ae extends Ee {
8309
8309
  this.update(), this._updateTextureMap();
8310
8310
  break;
8311
8311
  }
8312
- e === "content" && (this._innerText = this.getStringContent());
8312
+ e === "content" && (this._textContent = this.getStringContent());
8313
8313
  }
8314
8314
  update() {
8315
8315
  this.base.fonts = this.base.fonts ?? this.parent.tree?.fonts, this.base.update();
@@ -22,9 +22,9 @@ export declare class Element2DText extends CoreObject {
22
22
  fonts: Fonts;
23
23
  drawMode: TextDrawMode;
24
24
  readonly base: Text;
25
- get innerText(): string;
26
- set innerText(val: string);
27
- protected _innerText: string;
25
+ get textContent(): string;
26
+ set textContent(val: string);
27
+ protected _textContent: string;
28
28
  protected _autoDrawMode?: TextDrawMode;
29
29
  protected _autoDrawThreshold: number;
30
30
  protected _texture: CanvasTexture;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "modern-canvas",
3
3
  "type": "module",
4
- "version": "0.14.25",
4
+ "version": "0.14.27",
5
5
  "packageManager": "pnpm@10.19.0",
6
6
  "description": "A JavaScript WebGL rendering engine. only the ESM.",
7
7
  "author": "wxm",