Fix:修复当节点数量比较多时,导出的图片中水印没有完全覆盖整个图片的问题

This commit is contained in:
街角小林 2023-12-25 09:36:06 +08:00
parent 4d2665c98b
commit 9ea36a852f

View File

@ -416,11 +416,11 @@ class MindMap {
) {
this.width = rect.width
this.height = rect.height
this.watermark.draw()
this.watermark.onResize()
clone = svg.clone()
this.width = origWidth
this.height = origHeight
this.watermark.draw()
this.watermark.onResize()
}
// 添加必要的样式
clone.add(SVG(`<style>${cssContent}</style>`))