fix: not render margin indicator in print mode #354

Co-authored-by: Hufe921 <huangyunfeihufe@hotmail.com>
This commit is contained in:
jinfu
2023-12-05 21:32:09 +08:00
committed by GitHub
co-authored by Hufe921
parent 910f75662f
commit 3f1babec68
+3 -1
View File
@@ -1788,7 +1788,9 @@ export class Draw {
// 绘制背景
this.background.render(ctx, pageNo)
// 绘制页边距
this.margin.render(ctx, pageNo)
if (this.mode !== EditorMode.PRINT) {
this.margin.render(ctx, pageNo)
}
// 渲染元素
const index = rowList[0].startIndex
this.drawRow(ctx, {