Skip to content

Commit

Permalink
feat: adjust watermark rendering layer #948
Browse files Browse the repository at this point in the history
  • Loading branch information
Hufe921 committed Jan 2, 2025
1 parent a6eccc7 commit 0f53552
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/editor/core/draw/Draw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2419,6 +2419,10 @@ export class Draw {
if (!isPrintMode) {
this.area.render(ctx, pageNo)
}
// 绘制水印
if (pageMode !== PageMode.CONTINUITY && this.options.watermark.data) {
this.waterMark.render(ctx)
}
// 绘制页边距
if (!isPrintMode) {
this.margin.render(ctx, pageNo)
Expand Down Expand Up @@ -2466,10 +2470,6 @@ export class Draw {
if (!isPrintMode && this.search.getSearchKeyword()) {
this.search.render(ctx, pageNo)
}
// 绘制水印
if (pageMode !== PageMode.CONTINUITY && this.options.watermark.data) {
this.waterMark.render(ctx)
}
// 绘制空白占位符
if (this.elementList.length <= 1 && !this.elementList[0]?.listId) {
this.placeholder.render(ctx)
Expand Down

0 comments on commit 0f53552

Please sign in to comment.