@hailin-zheng/editor-core 2.0.8 → 2.0.10

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/index-cjs.js CHANGED
@@ -4812,12 +4812,13 @@ class TextGroupRenderObject extends LeafRenderObject {
4812
4812
  });
4813
4813
  }
4814
4814
  if (this.element.props.underline) {
4815
+ const underHeight = this.element.props.fontSize * 1.2;
4815
4816
  event.highlights.push({
4816
4817
  sel: 'path',
4817
4818
  data: {
4818
4819
  ns: "http://www.w3.org/2000/svg",
4819
4820
  attrs: {
4820
- d: `M${event.relativePagePos.x} ${event.relativePagePos.y + this.rect.height} L${event.relativePagePos.x + this.rect.width} ${event.relativePagePos.y + this.rect.height}`,
4821
+ d: `M${event.relativePagePos.x} ${event.relativePagePos.y + underHeight} L${event.relativePagePos.x + this.rect.width} ${event.relativePagePos.y + underHeight}`,
4821
4822
  stroke: '#000',
4822
4823
  'stroke-width': 1,
4823
4824
  fill: 'none'
@@ -11599,6 +11600,9 @@ class DocumentBodyPartRenderObject extends MuiltBlockLineRenderObject {
11599
11600
  }
11600
11601
  exportHTML(event) {
11601
11602
  const t = super.exportHTML(event);
11603
+ if (this.element.isFocused) {
11604
+ t.children = [ElementUtil.getFillSvgRect(0, 0, this.rect.width, this.rect.height, event.options.selectPrintAreaBgColor)];
11605
+ }
11602
11606
  return t;
11603
11607
  }
11604
11608
  }