@hailin-zheng/editor-core 2.0.2 → 2.0.4
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 +5 -5
- package/index-cjs.js.map +1 -1
- package/index.js +5 -5
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -3332,9 +3332,6 @@ class DocumentRenderObject extends BlockContainerRenderObject {
|
|
3332
3332
|
throw new Error('未实现');
|
3333
3333
|
}
|
3334
3334
|
exportPageNumHTML(event) {
|
3335
|
-
if (event.mode === 'print') {
|
3336
|
-
return null;
|
3337
|
-
}
|
3338
3335
|
const viewOptions = event.options;
|
3339
3336
|
const pageWidth = this.rect.width;
|
3340
3337
|
const pageIndex = this.getIndex() + 1 + viewOptions.pageNumOffset;
|
@@ -3418,6 +3415,9 @@ class DocumentRenderObject extends BlockContainerRenderObject {
|
|
3418
3415
|
};
|
3419
3416
|
}
|
3420
3417
|
exportPageCornerHTML(event) {
|
3418
|
+
if (event.mode === 'print') {
|
3419
|
+
return null;
|
3420
|
+
}
|
3421
3421
|
const padding = this.padding;
|
3422
3422
|
const { width: docWidth, height: docHeight } = event.options.docPageSettings;
|
3423
3423
|
let paddingPos = { x: padding.left, y: padding.top };
|
@@ -19480,8 +19480,8 @@ class DocumentSvg {
|
|
19480
19480
|
const rects = [];
|
19481
19481
|
this.pagePos = { x: item.rect.x, y: item.rect.y };
|
19482
19482
|
const pageSvg = this.getVNode(item, rects, { x: -item.rect.x, y: -item.rect.y });
|
19483
|
-
const selectionNode = pageSvg.children?.find(item => item.data?.attrs?.id === 'selection');
|
19484
|
-
const hightlightNode = pageSvg.children?.find(item => item.data?.attrs?.id === 'highlight');
|
19483
|
+
const selectionNode = pageSvg.children?.find(item => item && item.data?.attrs?.id === 'selection');
|
19484
|
+
const hightlightNode = pageSvg.children?.find(item => item && item.data?.attrs?.id === 'highlight');
|
19485
19485
|
selectionNode.children = rects.map(item => ({
|
19486
19486
|
sel: 'path',
|
19487
19487
|
data: {
|