@mlightcad/mtext-renderer 0.10.8 → 0.10.9
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 +849 -828
- package/dist/index.umd.cjs +6 -6
- package/dist/mtext-renderer-worker.js +783 -762
- package/lib/renderer/mtextProcessor.d.ts +10 -0
- package/package.json +1 -1
|
@@ -132,6 +132,16 @@ export declare class MTextProcessor {
|
|
|
132
132
|
* Font size of current character
|
|
133
133
|
*/
|
|
134
134
|
get currentFontSize(): number;
|
|
135
|
+
/**
|
|
136
|
+
* The drawing-space text height used for layout calculations.
|
|
137
|
+
*
|
|
138
|
+
* `currentFontSize` includes a font-specific scale factor so glyph outlines
|
|
139
|
+
* from different font formats render at comparable visual sizes. That scale
|
|
140
|
+
* must not leak into CAD layout metrics such as line height and attachment
|
|
141
|
+
* offsets, otherwise middle/bottom aligned text shifts vertically depending
|
|
142
|
+
* on the active font.
|
|
143
|
+
*/
|
|
144
|
+
get currentLayoutFontSize(): number;
|
|
135
145
|
/**
|
|
136
146
|
* The height of current line of texts
|
|
137
147
|
*/
|