@hailin-zheng/editor-core 2.0.3 → 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.js
CHANGED
@@ -3303,9 +3303,6 @@ class DocumentRenderObject extends BlockContainerRenderObject {
|
|
3303
3303
|
throw new Error('未实现');
|
3304
3304
|
}
|
3305
3305
|
exportPageNumHTML(event) {
|
3306
|
-
if (event.mode === 'print') {
|
3307
|
-
return null;
|
3308
|
-
}
|
3309
3306
|
const viewOptions = event.options;
|
3310
3307
|
const pageWidth = this.rect.width;
|
3311
3308
|
const pageIndex = this.getIndex() + 1 + viewOptions.pageNumOffset;
|
@@ -3389,6 +3386,9 @@ class DocumentRenderObject extends BlockContainerRenderObject {
|
|
3389
3386
|
};
|
3390
3387
|
}
|
3391
3388
|
exportPageCornerHTML(event) {
|
3389
|
+
if (event.mode === 'print') {
|
3390
|
+
return null;
|
3391
|
+
}
|
3392
3392
|
const padding = this.padding;
|
3393
3393
|
const { width: docWidth, height: docHeight } = event.options.docPageSettings;
|
3394
3394
|
let paddingPos = { x: padding.left, y: padding.top };
|
@@ -19451,8 +19451,8 @@ class DocumentSvg {
|
|
19451
19451
|
const rects = [];
|
19452
19452
|
this.pagePos = { x: item.rect.x, y: item.rect.y };
|
19453
19453
|
const pageSvg = this.getVNode(item, rects, { x: -item.rect.x, y: -item.rect.y });
|
19454
|
-
const selectionNode = pageSvg.children?.find(item => item.data?.attrs?.id === 'selection');
|
19455
|
-
const hightlightNode = pageSvg.children?.find(item => item.data?.attrs?.id === 'highlight');
|
19454
|
+
const selectionNode = pageSvg.children?.find(item => item && item.data?.attrs?.id === 'selection');
|
19455
|
+
const hightlightNode = pageSvg.children?.find(item => item && item.data?.attrs?.id === 'highlight');
|
19456
19456
|
selectionNode.children = rects.map(item => ({
|
19457
19457
|
sel: 'path',
|
19458
19458
|
data: {
|