three-text 0.6.2 → 0.6.3

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.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * three-text v0.6.2
3
+ * three-text v0.6.3
4
4
  * Copyright © 2025-2026 Jeremy Tribby, Countertype LLC
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
package/dist/index.d.ts CHANGED
@@ -410,7 +410,6 @@ interface TextOptions {
410
410
  geometryOptimization?: GeometryOptimizationOptions;
411
411
  layout?: LayoutOptions;
412
412
  color?: [number, number, number] | ColorOptions;
413
- /** Enable rotated RGSS-4 adaptive supersampling (4 samples per pixel). Takes effect when the GLSL rendering path is active. */
414
413
  adaptiveSupersampling?: boolean;
415
414
  }
416
415
  interface HyphenationPatternsMap {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * three-text v0.6.2
3
+ * three-text v0.6.3
4
4
  * Copyright © 2025-2026 Jeremy Tribby, Countertype LLC
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * three-text v0.6.2
3
+ * three-text v0.6.3
4
4
  * Copyright © 2025-2026 Jeremy Tribby, Countertype LLC
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
package/dist/index.min.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * three-text v0.6.2
3
+ * three-text v0.6.3
4
4
  * Copyright © 2025-2026 Jeremy Tribby, Countertype LLC
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * three-text v0.6.2
3
+ * three-text v0.6.3
4
4
  * Copyright © 2025-2026 Jeremy Tribby, Countertype LLC
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  * @license
3
- * three-text v0.6.2
3
+ * three-text v0.6.3
4
4
  * Copyright © 2025-2026 Jeremy Tribby, Countertype LLC
5
5
  * SPDX-License-Identifier: MIT
6
6
  */
@@ -208,7 +208,6 @@ interface TextOptions {
208
208
  geometryOptimization?: GeometryOptimizationOptions;
209
209
  layout?: LayoutOptions;
210
210
  color?: [number, number, number] | ColorOptions;
211
- /** Enable rotated RGSS-4 adaptive supersampling (4 samples per pixel). Takes effect when the GLSL rendering path is active. */
212
211
  adaptiveSupersampling?: boolean;
213
212
  }
214
213
  interface HyphenationPatternsMap {
@@ -370,7 +370,6 @@ export interface TextOptions {
370
370
  geometryOptimization?: GeometryOptimizationOptions;
371
371
  layout?: LayoutOptions;
372
372
  color?: [number, number, number] | ColorOptions;
373
- /** Enable rotated RGSS-4 adaptive supersampling (4 samples per pixel). Takes effect when the GLSL rendering path is active. */
374
373
  adaptiveSupersampling?: boolean;
375
374
  }
376
375
  export interface HyphenationPatternsMap {
@@ -12,6 +12,7 @@ export interface VectorTextResult {
12
12
  query(options: TextQueryOptions): TextRange[];
13
13
  getLoadedFont(): LoadedFont | undefined;
14
14
  measureTextWidth(text: string, letterSpacing?: number): number;
15
+ setColor(r: number, g: number, b: number): void;
15
16
  update(options: Partial<TextOptions>): Promise<VectorTextResult>;
16
17
  dispose(): void;
17
18
  }
@@ -69,6 +69,7 @@ interface VectorTextResult {
69
69
  query(options: TextQueryOptions): TextRange[];
70
70
  getLoadedFont(): LoadedFont | undefined;
71
71
  measureTextWidth(text: string, letterSpacing?: number): number;
72
+ setColor(r: number, g: number, b: number): void;
72
73
  update(options: Partial<TextOptions>): Promise<VectorTextResult>;
73
74
  dispose(): void;
74
75
  }
@@ -235,6 +235,7 @@ async function wrapCoreResult(coreResult, options) {
235
235
  glyphs: coreResult.glyphs,
236
236
  planeBounds: coreResult.planeBounds,
237
237
  query: (queryOptions) => coreResult.query(queryOptions),
238
+ setColor: (r, g, b) => slugMesh.setColor(r, g, b),
238
239
  getLoadedFont: () => coreResult.getLoadedFont(),
239
240
  measureTextWidth: (text, letterSpacing) => coreResult.measureTextWidth(text, letterSpacing),
240
241
  update: async (newOptions) => {
@@ -214,6 +214,7 @@ async function wrapCoreResult(coreResult, options) {
214
214
  glyphs: coreResult.glyphs,
215
215
  planeBounds: coreResult.planeBounds,
216
216
  query: (queryOptions) => coreResult.query(queryOptions),
217
+ setColor: (r, g, b) => slugMesh.setColor(r, g, b),
217
218
  getLoadedFont: () => coreResult.getLoadedFont(),
218
219
  measureTextWidth: (text, letterSpacing) => coreResult.measureTextWidth(text, letterSpacing),
219
220
  update: async (newOptions) => {
@@ -208,7 +208,6 @@ interface TextOptions {
208
208
  geometryOptimization?: GeometryOptimizationOptions;
209
209
  layout?: LayoutOptions;
210
210
  color?: [number, number, number] | ColorOptions;
211
- /** Enable rotated RGSS-4 adaptive supersampling (4 samples per pixel). Takes effect when the GLSL rendering path is active. */
212
211
  adaptiveSupersampling?: boolean;
213
212
  }
214
213
  interface HyphenationPatternsMap {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "three-text",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "3D font rendering and text layout engine for the web",
5
5
  "main": "dist/three/index.cjs",
6
6
  "module": "dist/three/index.js",
@@ -181,6 +181,6 @@
181
181
  "terser": "^5.43.1",
182
182
  "tslib": "^2.8.1",
183
183
  "typescript": "^5.9.2",
184
- "vitest": "^3.2.4"
184
+ "vitest": "^4.1.8"
185
185
  }
186
186
  }