@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.js
CHANGED
@@ -5221,7 +5221,10 @@ class TextGroupRenderObject extends LeafRenderObject {
|
|
5221
5221
|
if (actualFontBoundingBoxAscent === undefined) {
|
5222
5222
|
t.data.attrs['dominant-baseline'] = 'hanging';
|
5223
5223
|
}
|
5224
|
-
if (props.fontWeight !== 'normal')
|
5224
|
+
if (props.fontWeight !== 'normal' && event.mode === 'view') {
|
5225
|
+
t.data.attrs['font-weight'] = this.element.props.fontWeight;
|
5226
|
+
//t.data.attrs['filter'] = 'url(#t_bold)'
|
5227
|
+
}
|
5225
5228
|
if (props.fontStyle !== 'normal') {
|
5226
5229
|
t.data.attrs['font-style'] = props.fontStyle;
|
5227
5230
|
}
|
@@ -5251,7 +5254,7 @@ class TextGroupRenderObject extends LeafRenderObject {
|
|
5251
5254
|
}
|
5252
5255
|
//处理null-text
|
5253
5256
|
if (this.element.isDecorate && this.element.disableClick && !this.element.parent) ;
|
5254
|
-
if (props.fontWeight === "bold") {
|
5257
|
+
if (props.fontWeight === "bold" && event.mode === 'print') {
|
5255
5258
|
const blurRate = props.fontSize * 0.5 / 15;
|
5256
5259
|
const g = {
|
5257
5260
|
sel: "g",
|
@@ -23461,7 +23464,7 @@ class DocEditor {
|
|
23461
23464
|
rule.setRuleOptions({ width: this.viewOptions.docPageSettings.width, pagePL, pagePR, docLeft });
|
23462
23465
|
}
|
23463
23466
|
version() {
|
23464
|
-
return "2.2.
|
23467
|
+
return "2.2.36";
|
23465
23468
|
}
|
23466
23469
|
switchPageHeaderEditor() {
|
23467
23470
|
this.docCtx.document.switchPageHeaderEditor(this.selectionState, null);
|