@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.js CHANGED
@@ -4782,12 +4782,13 @@ class TextGroupRenderObject extends LeafRenderObject {
4782
4782
  });
4783
4783
  }
4784
4784
  if (this.element.props.underline) {
4785
+ const underHeight = this.element.props.fontSize * 1.2;
4785
4786
  event.highlights.push({
4786
4787
  sel: 'path',
4787
4788
  data: {
4788
4789
  ns: "http://www.w3.org/2000/svg",
4789
4790
  attrs: {
4790
- d: `M${event.relativePagePos.x} ${event.relativePagePos.y + this.rect.height} L${event.relativePagePos.x + this.rect.width} ${event.relativePagePos.y + this.rect.height}`,
4791
+ d: `M${event.relativePagePos.x} ${event.relativePagePos.y + underHeight} L${event.relativePagePos.x + this.rect.width} ${event.relativePagePos.y + underHeight}`,
4791
4792
  stroke: '#000',
4792
4793
  'stroke-width': 1,
4793
4794
  fill: 'none'
@@ -11569,6 +11570,9 @@ class DocumentBodyPartRenderObject extends MuiltBlockLineRenderObject {
11569
11570
  }
11570
11571
  exportHTML(event) {
11571
11572
  const t = super.exportHTML(event);
11573
+ if (this.element.isFocused) {
11574
+ t.children = [ElementUtil.getFillSvgRect(0, 0, this.rect.width, this.rect.height, event.options.selectPrintAreaBgColor)];
11575
+ }
11572
11576
  return t;
11573
11577
  }
11574
11578
  }