@windoc/core 0.2.10 → 0.2.11
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -21533,8 +21533,8 @@ var Draw = class {
|
|
|
21533
21533
|
ctx,
|
|
21534
21534
|
element.font
|
|
21535
21535
|
);
|
|
21536
|
-
metrics.boundingBoxAscent = basisMetrics.
|
|
21537
|
-
metrics.boundingBoxDescent = basisMetrics.
|
|
21536
|
+
metrics.boundingBoxAscent = basisMetrics.fontBoundingBoxAscent * scale;
|
|
21537
|
+
metrics.boundingBoxDescent = basisMetrics.fontBoundingBoxDescent * scale;
|
|
21538
21538
|
if (element.type === "superscript" /* SUPERSCRIPT */) {
|
|
21539
21539
|
metrics.boundingBoxAscent += metrics.height / 2;
|
|
21540
21540
|
} else if (element.type === "subscript" /* SUBSCRIPT */) {
|