修改了mermaid的导出放大倍数

This commit is contained in:
史悦
2025-10-28 15:40:12 +08:00
parent fd518aa25e
commit 6824a091ac

View File

@@ -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;