modern-canvas 0.14.25 → 0.14.26
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
|
@@ -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
|
|
8279
|
-
return this.
|
|
8278
|
+
get textContent() {
|
|
8279
|
+
return this._textContent;
|
|
8280
8280
|
}
|
|
8281
|
-
set
|
|
8281
|
+
set textContent(e) {
|
|
8282
8282
|
this.setContent(e);
|
|
8283
8283
|
}
|
|
8284
|
-
|
|
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.
|
|
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
|
|
26
|
-
set
|
|
27
|
-
protected
|
|
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;
|