@mlightcad/mtext-renderer 0.12.3 → 0.12.4
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 +1091 -1096
- package/dist/index.umd.cjs +8 -8
- package/dist/mtext-renderer-worker.js +1048 -1050
- package/lib/font/meshFont.d.ts +3 -2
- package/lib/renderer/mtext.d.ts +2 -1
- package/package.json +1 -1
package/lib/font/meshFont.d.ts
CHANGED
|
@@ -146,9 +146,10 @@ export declare class MeshFont extends BaseFont {
|
|
|
146
146
|
* Gets the shape to display when a character is not found in the font.
|
|
147
147
|
* Uses "?" as a replacement character.
|
|
148
148
|
* @param size - The desired size of the not found shape
|
|
149
|
-
* @returns The shape data for the not found indicator
|
|
149
|
+
* @returns The shape data for the not found indicator, or undefined if "?"
|
|
150
|
+
* cannot be loaded from this font
|
|
150
151
|
*/
|
|
151
|
-
getNotFoundTextShape(size: number): MeshTextShape;
|
|
152
|
+
getNotFoundTextShape(size: number): MeshTextShape | undefined;
|
|
152
153
|
/**
|
|
153
154
|
* Estimates memory used by this mesh font (parsed opentype + glyphs + geometry cache).
|
|
154
155
|
*/
|
package/lib/renderer/mtext.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ import * as THREE from 'three';
|
|
|
7
7
|
*/
|
|
8
8
|
export interface MTextDrawOptions {
|
|
9
9
|
/**
|
|
10
|
-
* Wait for fonts referenced by the content/style
|
|
10
|
+
* Wait for fonts referenced by the content/style — and, when awaiting, the
|
|
11
|
+
* configured default/symbol fallback chains — to finish loading before
|
|
11
12
|
* building geometry.
|
|
12
13
|
*
|
|
13
14
|
* Defaults to `true` when {@link FontManager.lazyFontLoading} is false, or
|