From 6824a091ac4d699a70fd180e006d1d4c7d429525 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E6=82=A6?= Date: Tue, 28 Oct 2025 15:40:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86mermaid=E7=9A=84?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=94=BE=E5=A4=A7=E5=80=8D=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/core/app-shell.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/core/app-shell.js b/js/core/app-shell.js index bf431ea..811b0dd 100644 --- a/js/core/app-shell.js +++ b/js/core/app-shell.js @@ -1593,7 +1593,7 @@ } getMermaidExportScale() { - return Math.max(6, this.imageExportScale); + return Math.max(3, this.imageExportScale); } parseSvgNumeric(value) { @@ -1721,7 +1721,7 @@ const widthCandidate = Math.max(computedTargetWidth, scaledBaseWidth) || null; // 限制远程渲染服务的宽度参数,避免请求过大导致失败 const MAX_MERMAID_WIDTH = 8192; - const width = + let width = widthCandidate && Number.isFinite(widthCandidate) ? Math.min(widthCandidate, MAX_MERMAID_WIDTH) : null;