@hailin-zheng/editor-core 2.1.2 → 2.1.3
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 +11 -6
- package/index-cjs.js.map +1 -1
- package/index.js +11 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -16341,10 +16341,10 @@ class PermanentTeethElement extends LeafElement {
|
|
16341
16341
|
constructor() {
|
16342
16342
|
super('permanent-teeth');
|
16343
16343
|
this.props = new PermanentTeethProps();
|
16344
|
-
this.props.topLeft = '
|
16345
|
-
this.props.topRight = '
|
16346
|
-
this.props.bottomLeft = '
|
16347
|
-
this.props.bottomRight = '
|
16344
|
+
this.props.topLeft = '';
|
16345
|
+
this.props.topRight = '';
|
16346
|
+
this.props.bottomLeft = '';
|
16347
|
+
this.props.bottomRight = '';
|
16348
16348
|
}
|
16349
16349
|
clone(data) {
|
16350
16350
|
const clone = new PermanentTeethElement();
|
@@ -21126,13 +21126,18 @@ class DocumentSvg {
|
|
21126
21126
|
if (!this.viewOptions.virtualViewMode || this.mode === 'print') {
|
21127
21127
|
return true;
|
21128
21128
|
}
|
21129
|
+
const { scale } = this.viewOptions;
|
21129
21130
|
const viewBoxRect = {
|
21130
21131
|
x: this.viewOptions.pageOffset.x,
|
21131
21132
|
y: this.viewOptions.pageOffset.y,
|
21132
21133
|
width: this.viewOptions.viewSettings.width,
|
21133
21134
|
height: this.viewOptions.viewSettings.height
|
21134
21135
|
};
|
21135
|
-
const eleRect = item.rect;
|
21136
|
+
const eleRect = { ...item.rect };
|
21137
|
+
eleRect.x = eleRect.x * scale;
|
21138
|
+
eleRect.y = eleRect.y * scale;
|
21139
|
+
eleRect.width = eleRect.width * scale;
|
21140
|
+
eleRect.height = eleRect.height * scale;
|
21136
21141
|
return CommonUtil.isIntersect(viewBoxRect, eleRect);
|
21137
21142
|
}
|
21138
21143
|
getPageSvgVNode(item) {
|
@@ -28619,7 +28624,7 @@ class DocEditor {
|
|
28619
28624
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
28620
28625
|
}
|
28621
28626
|
version() {
|
28622
|
-
return "2.1.
|
28627
|
+
return "2.1.3";
|
28623
28628
|
}
|
28624
28629
|
}
|
28625
28630
|
|