@hailin-zheng/editor-core 2.2.35 → 2.2.36
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 +6 -3
- package/index-cjs.js.map +1 -1
- package/index.js +6 -3
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index-cjs.js
CHANGED
@@ -5250,7 +5250,10 @@ class TextGroupRenderObject extends LeafRenderObject {
|
|
5250
5250
|
if (actualFontBoundingBoxAscent === undefined) {
|
5251
5251
|
t.data.attrs['dominant-baseline'] = 'hanging';
|
5252
5252
|
}
|
5253
|
-
if (props.fontWeight !== 'normal')
|
5253
|
+
if (props.fontWeight !== 'normal' && event.mode === 'view') {
|
5254
|
+
t.data.attrs['font-weight'] = this.element.props.fontWeight;
|
5255
|
+
//t.data.attrs['filter'] = 'url(#t_bold)'
|
5256
|
+
}
|
5254
5257
|
if (props.fontStyle !== 'normal') {
|
5255
5258
|
t.data.attrs['font-style'] = props.fontStyle;
|
5256
5259
|
}
|
@@ -5280,7 +5283,7 @@ class TextGroupRenderObject extends LeafRenderObject {
|
|
5280
5283
|
}
|
5281
5284
|
//处理null-text
|
5282
5285
|
if (this.element.isDecorate && this.element.disableClick && !this.element.parent) ;
|
5283
|
-
if (props.fontWeight === "bold") {
|
5286
|
+
if (props.fontWeight === "bold" && event.mode === 'print') {
|
5284
5287
|
const blurRate = props.fontSize * 0.5 / 15;
|
5285
5288
|
const g = {
|
5286
5289
|
sel: "g",
|
@@ -23490,7 +23493,7 @@ class DocEditor {
|
|
23490
23493
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
23491
23494
|
}
|
23492
23495
|
version() {
|
23493
|
-
return "2.2.
|
23496
|
+
return "2.2.36";
|
23494
23497
|
}
|
23495
23498
|
switchPageHeaderEditor() {
|
23496
23499
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|