@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 CHANGED
@@ -21612,8 +21612,8 @@ var Draw = class {
21612
21612
  ctx,
21613
21613
  element.font
21614
21614
  );
21615
- metrics.boundingBoxAscent = basisMetrics.actualBoundingBoxAscent * scale;
21616
- metrics.boundingBoxDescent = basisMetrics.actualBoundingBoxDescent * scale;
21615
+ metrics.boundingBoxAscent = basisMetrics.fontBoundingBoxAscent * scale;
21616
+ metrics.boundingBoxDescent = basisMetrics.fontBoundingBoxDescent * scale;
21617
21617
  if (element.type === "superscript" /* SUPERSCRIPT */) {
21618
21618
  metrics.boundingBoxAscent += metrics.height / 2;
21619
21619
  } else if (element.type === "subscript" /* SUBSCRIPT */) {