From 3f1babec68b5d22babade28214ca9a7212d3cf8a Mon Sep 17 00:00:00 2001 From: jinfu <43539608+zhoujingfu@users.noreply.github.com> Date: Tue, 5 Dec 2023 21:32:09 +0800 Subject: [PATCH] fix: not render margin indicator in print mode #354 Co-authored-by: Hufe921 --- src/editor/core/draw/Draw.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/editor/core/draw/Draw.ts b/src/editor/core/draw/Draw.ts index 7c32093..a00d215 100644 --- a/src/editor/core/draw/Draw.ts +++ b/src/editor/core/draw/Draw.ts @@ -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, {