修改了mermaid的导出放大倍数
This commit is contained in:
@@ -1593,7 +1593,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
getMermaidExportScale() {
|
getMermaidExportScale() {
|
||||||
return Math.max(6, this.imageExportScale);
|
return Math.max(3, this.imageExportScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
parseSvgNumeric(value) {
|
parseSvgNumeric(value) {
|
||||||
@@ -1721,7 +1721,7 @@
|
|||||||
const widthCandidate = Math.max(computedTargetWidth, scaledBaseWidth) || null;
|
const widthCandidate = Math.max(computedTargetWidth, scaledBaseWidth) || null;
|
||||||
// 限制远程渲染服务的宽度参数,避免请求过大导致失败
|
// 限制远程渲染服务的宽度参数,避免请求过大导致失败
|
||||||
const MAX_MERMAID_WIDTH = 8192;
|
const MAX_MERMAID_WIDTH = 8192;
|
||||||
const width =
|
let width =
|
||||||
widthCandidate && Number.isFinite(widthCandidate)
|
widthCandidate && Number.isFinite(widthCandidate)
|
||||||
? Math.min(widthCandidate, MAX_MERMAID_WIDTH)
|
? Math.min(widthCandidate, MAX_MERMAID_WIDTH)
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
Reference in New Issue
Block a user