From 45418d803ccae304f85b399b77a11e6206b9ffb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A1=97=E8=A7=92=E5=B0=8F=E6=9E=97?= <1013335014@qq.com> Date: Wed, 12 Mar 2025 09:12:10 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A=E5=AF=BC=E5=87=BApng=E3=80=81svg?= =?UTF-8?q?=E3=80=81pdf=E6=97=B6=E5=85=88=E7=BB=93=E6=9D=9F=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E6=AD=A3=E5=9C=A8=E8=BF=9B=E8=A1=8C=E7=9A=84=E6=96=87?= =?UTF-8?q?=E6=9C=AC=E7=BC=96=E8=BE=91=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E8=8A=82=E7=82=B9=E6=96=87=E6=9C=AC=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E7=A9=BA=E7=99=BD=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- simple-mind-map/src/plugins/Export.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simple-mind-map/src/plugins/Export.js b/simple-mind-map/src/plugins/Export.js index bb57645b..f1e32456 100644 --- a/simple-mind-map/src/plugins/Export.js +++ b/simple-mind-map/src/plugins/Export.js @@ -286,6 +286,7 @@ class Export { * 方法2.把svg的图片提取出来再挨个绘制到canvas里,最后一起转换 */ async png(name, transparent = false, node = null) { + this.mindMap.renderer.textEdit.hideEditTextBox() this.handleNodeExport(node) const { str, clipData } = await this.getSvgData(node) const svgUrl = await this.fixSvgStrAndToBlob(str) @@ -330,6 +331,7 @@ class Export { // 导出为svg async svg(name) { + this.mindMap.renderer.textEdit.hideEditTextBox() const { node } = await this.getSvgData() node.first().before(SVG(`