@hailin-zheng/editor-core 1.0.52 → 1.0.53

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
@@ -2999,7 +2999,7 @@ class DocumentRenderObject extends BlockContainerRenderObject {
2999
2999
  textProps.fontStyle = 'italic';
3000
3000
  const size = ctx.contentContext.measureText(str, textProps);
3001
3001
  const alignCenterX = position.x + Math.ceil(pageWidth / 2) - Math.ceil(size.width / 2);
3002
- const paintY = position.y + this.rect.height - size.height - 5;
3002
+ const paintY = position.y + this.rect.height - this.footerLine;
3003
3003
  ctx.contentContext.drawText(str, textProps, alignCenterX, paintY, size.width, size.height);
3004
3004
  }
3005
3005
  clone() {
@@ -14638,10 +14638,6 @@ function createPrintTemplate({ width, height, orient }) {
14638
14638
  font-size: 0;
14639
14639
  }
14640
14640
  @media print {
14641
- @page {
14642
- size: ${orient};
14643
- margin: 0;
14644
- }
14645
14641
  html,
14646
14642
  body {
14647
14643
  width: ${width}mm;