laymur 0.3.5 → 0.3.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.
@@ -42,7 +42,7 @@ export declare class UIText extends UIElement {
42
42
  /** The 2D rendering context for drawing text on the canvas. */
43
43
  private readonly context;
44
44
  /** The canvas texture containing the rendered text. */
45
- private readonly texture;
45
+ private texture;
46
46
  /** Internal storage for the color tint. */
47
47
  private readonly colorInternal;
48
48
  /** Internal storage for the current text content. */
package/dist/index.js CHANGED
@@ -6184,7 +6184,10 @@ class UIText extends UIElement {
6184
6184
  this.height = this._private_canvas.height;
6185
6185
  this._private_targetAspectRatio = this._private_canvas.width / this._private_canvas.height;
6186
6186
  renderTextLines(this._private_paddingInternal.top, this._private_paddingInternal.left, lines, this._private_context);
6187
+ this._private_texture.dispose();
6188
+ this._private_texture = new CanvasTexture(this._private_canvas);
6187
6189
  this._private_texture.needsUpdate = true;
6190
+ this.sceneWrapper.setUniform(this.planeHandler, "map", this._private_texture);
6188
6191
  }
6189
6192
  }
6190
6193