@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-cjs.js +1 -5
- package/index-cjs.js.map +1 -1
- package/index.js +1 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -3008,7 +3008,7 @@ class DocumentRenderObject extends BlockContainerRenderObject {
|
|
3008
3008
|
textProps.fontStyle = 'italic';
|
3009
3009
|
const size = ctx.contentContext.measureText(str, textProps);
|
3010
3010
|
const alignCenterX = position.x + Math.ceil(pageWidth / 2) - Math.ceil(size.width / 2);
|
3011
|
-
const paintY = position.y + this.rect.height -
|
3011
|
+
const paintY = position.y + this.rect.height - this.footerLine;
|
3012
3012
|
ctx.contentContext.drawText(str, textProps, alignCenterX, paintY, size.width, size.height);
|
3013
3013
|
}
|
3014
3014
|
clone() {
|
@@ -14647,10 +14647,6 @@ function createPrintTemplate({ width, height, orient }) {
|
|
14647
14647
|
font-size: 0;
|
14648
14648
|
}
|
14649
14649
|
@media print {
|
14650
|
-
@page {
|
14651
|
-
size: ${orient};
|
14652
|
-
margin: 0;
|
14653
|
-
}
|
14654
14650
|
html,
|
14655
14651
|
body {
|
14656
14652
|
width: ${width}mm;
|