@mml-io/3d-web-client-core 0.0.0-experimental-b7a45d7-20240611 → 0.0.0-experimental-d03a2e8-20240611

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/build/index.js CHANGED
@@ -1231,7 +1231,7 @@ import {
1231
1231
  } from "three";
1232
1232
 
1233
1233
  // src/character/CanvasText.ts
1234
- import { Texture as Texture2, LinearFilter, RGBAFormat, MeshBasicMaterial } from "three";
1234
+ import { Texture, LinearFilter, RGBAFormat, MeshBasicMaterial } from "three";
1235
1235
  function getTextAlignOffset(textAlign, width) {
1236
1236
  switch (textAlign) {
1237
1237
  case "center":
@@ -1332,7 +1332,7 @@ function CanvasText(message, options) {
1332
1332
  }
1333
1333
  function THREECanvasTextTexture(text, options) {
1334
1334
  const canvas2 = CanvasText(text, options);
1335
- const texture = new Texture2(canvas2);
1335
+ const texture = new Texture(canvas2);
1336
1336
  texture.minFilter = LinearFilter;
1337
1337
  texture.magFilter = LinearFilter;
1338
1338
  texture.format = RGBAFormat;