Mermaid 配置架構
https://mermaid.dev.org.tw/schemas/config.schema.json
摘要 | 可延伸 | 狀態 | 可識別 | 自訂屬性 | 額外屬性 | 存取限制 | 定義於 |
---|---|---|---|---|---|---|---|
可以實例化 | 否 | 未知狀態 | 否 | 禁止 | 禁止 | 無 | config.schema.json |
Mermaid 配置類型
object
(Mermaid 配置)
Mermaid 配置屬性
theme
主題,CSS 樣式表。您也可以使用 themeCSS
來覆寫此值。
theme
為選用
類型:
字串
不能為 null
定義於: Mermaid 配置
主題類型
字串
主題約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"default" | |
"base" | |
"dark" | |
"forest" | |
"neutral" | |
"null" | 可以設定為停用任何預先定義的 mermaid 主題 |
主題預設值
預設值為
"default"
themeVariables
themeVariables
為選用
類型:未知
不能為 null
定義於:Mermaid 配置
tsType:
any
themeVariables 類型
未知
themeCSS
themeCSS
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
themeCSS 類型
字串
look
定義要用於圖表的主要外觀。
look
為必要
類型:
字串
不能為 null
定義於:Mermaid 配置
look 類型
字串
look 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"classic" | |
"handDrawn" |
look 預設值
預設值為
"classic"
handDrawnSeed
定義在使用 handDrawn 外觀時要使用的種子。這對於自動化測試非常重要,因為沒有種子的話,它們總是會發現差異。預設值為 0,這會給出一個隨機種子。
handDrawnSeed
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
handDrawnSeed 類型
數字
layout
定義用於呈現圖表的配置演算法。
layout
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
layout 類型
字串
layout 預設值
預設值為
"dagre"
maxTextSize
使用者文字圖表允許的最大大小
maxTextSize
為選用
類型:
數字
不能為 null
定義於:Mermaid 配置
maxTextSize 類型
數字
maxTextSize 預設值
預設值為
50000
maxEdges
定義圖表中可以繪製的最大邊數。
maxEdges
為選用
類型:
整數
不能為 null
定義於:Mermaid 配置
maxEdges 類型
整數
maxEdges 約束
最小值:此數字的值必須大於或等於:0
maxEdges 預設值
預設值為
500
elk
elk
為選用
類型:
物件
(詳細資訊)不能為 null
定義於:Mermaid 配置
elk 類型
物件
(詳細資訊)
darkMode
darkMode
為選用
類型:
布林值
不能為 null
定義於:Mermaid 配置
darkMode 類型
布林值
htmlLabels
htmlLabels
為選用
類型:
布林值
不能為 null
定義於:Mermaid 配置
htmlLabels 類型
布林值
fontFamily
指定要在呈現的圖表中使用字體。可以是任何可能的 CSS font-family
。請參閱 https://developer.mozilla.org/en-US/docs/Web/CSS/font-family
fontFamily
為必要
類型:
字串
不能為 null
定義於:Mermaid 配置
fontFamily 類型
字串
fontFamily 預設值
預設值為
"\"trebuchet ms\", verdana, arial, sans-serif;"
altFontFamily
altFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
altFontFamily 類型
字串
logLevel
此選項決定 mermaid 要使用的記錄量。
logLevel
為必要
類型:下列任一項:
字串
或數字
(詳細資訊)不能為 null
定義於:Mermaid 配置
logLevel 類型
下列任一項:字串
或 數字
(詳細資訊)
logLevel 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"trace" | 相當於 0 |
0 | |
"debug" | 相當於 1 |
1 | |
"info" | 相當於 2 |
2 | |
"warn" | 相當於 3 |
3 | |
"error" | 等同於 4 |
4 | |
「致命」 | 等同於 5 (預設值) |
5 |
logLevel 預設值
預設值為
5
securityLevel
解析圖表的信任等級
securityLevel
為必要
類型:
字串
不能為 null
定義於:Mermaid 設定
securityLevel 類型
字串
securityLevel 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
「strict」 | (**預設**)文字中的 HTML 標籤會被編碼,且點擊功能會被禁用。 |
「loose」 | 文字中允許 HTML 標籤,且點擊功能會被啟用。 |
「antiscript」 | 文字中允許 HTML 標籤(僅移除 script 元素),且點擊功能會被啟用。 |
「sandbox」 | 使用此安全等級時,所有渲染都會在沙盒化的 iframe 中進行。這會防止任何 JavaScript 在其中執行。這可能會阻礙圖表的互動功能,例如腳本、循序圖中的彈出視窗,或連結到其他分頁或目標等。 |
securityLevel 預設值
預設值為
"strict"
startOnLoad
決定 Mermaid 是否在頁面載入時啟動
startOnLoad
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
startOnLoad 類型
布林值
startOnLoad 預設值
預設值為
true
arrowMarkerAbsolute
控制 HTML 程式碼中的箭頭標記是絕對路徑還是錨點。如果您正在使用 base 標籤設定,這很重要。
arrowMarkerAbsolute
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
arrowMarkerAbsolute 類型
布林值
secure
此選項控制哪些 currentConfig
金鑰被視為安全,且只能透過呼叫 mermaid.initialize
進行變更。這可以防止惡意的圖表指令覆寫網站的預設安全性。
secure
為選用
類型:
string[]
不能為 null
定義於:Mermaid 設定
secure 類型
string[]
secure 預設值
預設值為
["secure", "securityLevel", "startOnLoad", "maxTextSize", "suppressErrorRendering", "maxEdges"]
legacyMathML
此選項指定 Mermaid 是否可以預期相依項會為沒有自身 MathML 實作的瀏覽器包含 KaTeX 樣式表。如果此選項被禁用,且不支援 MathML,則數學方程式將被警告取代。如果此選項被啟用,且不支援 MathML,Mermaid 將會回退到 KaTeX 的舊式渲染。
legacyMathML
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
legacyMathML 類型
布林值
forceLegacyMathML
此選項強制 Mermaid 依賴 KaTeX 自身的樣式表來渲染 MathML。由於作業系統字型和瀏覽器的 MathML 實作之間存在差異,如果一致的渲染很重要,則建議使用此選項。如果設定為 true,則會忽略 legacyMathML。
forceLegacyMathML
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
forceLegacyMathML 類型
布林值
deterministicIds
此選項控制 SVG 中節點產生的 ID 是隨機產生還是基於種子產生。如果設定為 false
,則 ID 是根據目前日期產生,因此不是確定的。這是預設行為。
如果您的檔案被檢入到原始碼控制(例如 git),且除非內容發生變更,否則不應變更,這很重要。
deterministicIds
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
deterministicIds 類型
布林值
deterministicIDSeed
此選項是確定性 ID 的可選種子。如果設定為 undefined
但 deterministicIds 為 true
,則會使用簡單的數字迭代器。您可以設定此屬性以將種子基於靜態字串。
deterministicIDSeed
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
deterministicIDSeed 類型
字串
flowchart
包含流程圖特定設定的物件
flowchart
為必要
類型:
object
(流程圖設定)不能為 null
定義於:Mermaid 設定
flowchart 類型
object
(流程圖設定)
全部
sequence
包含循序圖特定設定的物件
sequence
為必要
類型:
object
(循序圖設定)不能為 null
定義於:Mermaid 設定
sequence 類型
object
(循序圖設定)
全部
gantt
包含甘特圖特定設定的物件
gantt
為必要
類型:
object
(甘特圖設定)不能為 null
定義於:Mermaid 設定
gantt 類型
object
(甘特圖設定)
全部
journey
包含旅程圖特定設定的物件
journey
為必要
類型:
object
(旅程圖設定)不能為 null
定義於:Mermaid 設定
journey 類型
object
(旅程圖設定)
全部
timeline
timeline
為選用
類型:
object
(時間軸圖設定)不能為 null
定義於:Mermaid 設定
timeline 類型
object
(時間軸圖設定)
全部
class
class
為必要
類型:
object
(類別圖設定)不能為 null
定義於:Mermaid 設定
class 類型
object
(類別圖設定)
全部
state
包含實體關係圖特定設定的物件
state
為必要
類型:
object
(狀態圖設定)不能為 null
定義於:Mermaid 設定
state 類型
object
(狀態圖設定)
全部
er
包含實體關係圖特定設定的物件
er
為必要
類型:
object
(ER 圖設定)不能為 null
定義於:Mermaid 設定
er 類型
object
(ER 圖設定)
全部
pie
pie
為必要
類型:
object
(圓餅圖設定)不能為 null
定義於:Mermaid 設定
pie 類型
object
(圓餅圖設定)
全部
quadrantChart
quadrantChart
為必要
類型:
object
(象限圖設定)不能為 null
定義於:Mermaid 設定
quadrantChart 類型
object
(象限圖設定)
全部
xyChart
此物件包含 XY 圖表特定的設定
xyChart
為必要
類型:
object
(XY 圖表設定)不能為 null
定義於:Mermaid 設定
xyChart 類型
object
(XY 圖表設定)
全部
requirement
包含需求圖特定設定的物件
requirement
為必要
類型:
object
(需求圖設定)不能為 null
定義於:Mermaid 設定
requirement 類型
object
(需求圖設定)
全部
architecture
包含架構圖特定設定的物件
architecture
為必要
類型:
object
(架構圖設定)不能為 null
定義於:Mermaid 設定
architecture 類型
object
(架構圖設定)
全部
mindmap
包含心智圖特定設定的物件
mindmap
為必要
類型:
object
(心智圖設定)不能為 null
定義於:Mermaid 設定
mindmap 類型
object
(心智圖設定)
全部
看板 (kanban)
包含看板圖表特定設定的物件
kanban
為必要
類型:
object
(看板圖表設定 (Kanban Diagram Config))不能為 null
看板類型
object
(看板圖表設定 (Kanban Diagram Config))
全部
gitGraph
gitGraph
為必要
類型:
object
(Git 圖表設定 (Git Graph Diagram Config))不能為 null
gitGraph 類型
object
(Git 圖表設定 (Git Graph Diagram Config))
全部
c4
包含 C4 圖表特定設定的物件
c4
為必要
類型:
object
(C4 圖表設定 (C4 Diagram Config))不能為 null
c4 類型
object
(C4 圖表設定 (C4 Diagram Config))
全部
桑基圖 (sankey)
包含桑基圖表特定設定的物件。
sankey
為必要
類型:
object
(桑基圖表設定 (Sankey Diagram Config))不能為 null
桑基圖類型
object
(桑基圖表設定 (Sankey Diagram Config))
全部
封包 (packet)
包含封包圖表特定設定的物件。
packet
為必要
類型:
object
(封包圖表設定 (Packet Diagram Config))不能為 null
封包類型
object
(封包圖表設定 (Packet Diagram Config))
全部
區塊 (block)
包含區塊圖表特定設定的物件。
block
為必要
類型:
object
(區塊圖表設定 (Block Diagram Config))不能為 null
區塊類型
object
(區塊圖表設定 (Block Diagram Config))
全部
dompurifyConfig
傳遞給 dompurify
函式庫的設定選項。
dompurifyConfig
為選用
類型:
object
(DOM Purify 設定 (DOM Purify Configuration))不能為 null
tsType:
import('dompurify').Config
dompurifyConfig 類型
object
(DOM Purify 設定 (DOM Purify Configuration))
wrap
wrap
為選用
類型:
布林值
不能為 null
wrap 類型
布林值
fontSize
fontSize
為選用
類型:
數字
不能為 null
fontSize 類型
數字
fontSize 預設值
預設值為
16
markdownAutoWrap
markdownAutoWrap
為選用
類型:
布林值
不能為 null
markdownAutoWrap 類型
布林值
markdownAutoWrap 預設值
預設值為
true
suppressErrorRendering
抑制在 DOM 中插入「語法錯誤」圖表。當您想要控制應用程式中如何處理語法錯誤時,這會很有用。
suppressErrorRendering
為選用
類型:
布林值
不能為 null
suppressErrorRendering 類型
布林值
Mermaid 設定定義
定義群組 BaseDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/BaseDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
useWidth | 數字 | 選用 | 不能為 null | Mermaid 配置 |
useMaxWidth | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
useWidth
useWidth
為選用
類型:
數字
不能為 null
useWidth 類型
數字
useMaxWidth
當此旗標設定為 true
時,高度和寬度會設定為 100%,然後會根據可用空間進行縮放。如果設定為 false
,則會使用所需的絕對空間。
useMaxWidth
為選用
類型:
布林值
不能為 null
useMaxWidth 類型
布林值
useMaxWidth 預設值
預設值為
true
定義群組 C4DiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/C4DiagramConfig" }
diagramMarginX
C4 圖表左右的邊距,必須為正值。
diagramMarginX
為必要
類型:
整數
不能為 null
diagramMarginX 類型
整數
diagramMarginX 約束
最小值:此數字的值必須大於或等於:0
diagramMarginX 預設值
預設值為
50
diagramMarginY
C4 圖表上方和下方的邊距,必須為正值。
diagramMarginY
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
diagramMarginY 類型
整數
diagramMarginY 約束
最小值:此數字的值必須大於或等於:0
diagramMarginY 預設值
預設值為
10
c4ShapeMargin
形狀之間的邊距
c4ShapeMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
c4ShapeMargin 類型
整數
c4ShapeMargin 約束
最小值:此數字的值必須大於或等於:0
c4ShapeMargin 預設值
預設值為
50
c4ShapePadding
形狀之間的內距
c4ShapePadding
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
c4ShapePadding 類型
整數
c4ShapePadding 約束
最小值:此數字的值必須大於或等於:0
c4ShapePadding 預設值
預設值為
20
width
人員方塊的寬度
width
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
width 類型
整數
width 約束
最小值:此數字的值必須大於或等於:0
width 預設值
預設值為
216
height
人員方塊的高度
height
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
height 類型
整數
height 約束
最小值:此數字的值必須大於或等於:0
height 預設值
預設值為
60
boxMargin
方塊周圍的邊距
boxMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
boxMargin 類型
整數
boxMargin 約束
最小值:此數字的值必須大於或等於:0
boxMargin 預設值
預設值為
10
c4ShapeInRow
每行要放置多少個形狀。
c4ShapeInRow
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
c4ShapeInRow 類型
整數
c4ShapeInRow 約束
最小值:此數字的值必須大於或等於:0
c4ShapeInRow 預設值
預設值為
4
nextLinePaddingX
nextLinePaddingX
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
nextLinePaddingX 類型
數字
c4BoundaryInRow
每行要放置多少個邊界。
c4BoundaryInRow
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
c4BoundaryInRow 類型
整數
c4BoundaryInRow 約束
最小值:此數字的值必須大於或等於:0
c4BoundaryInRow 預設值
預設值為
2
personFontSize
這設定了圖表中 Person 形狀的字體大小
personFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
personFontSize 類型
以下任一:string
或 number
(詳細資訊)
personFontSize 預設值
預設值為
14
personFontFamily
這設定了圖表中 Person 形狀的字體粗細
personFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
personFontFamily 類型
字串
personFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
personFontWeight
這設定了圖表中 Person 形狀的字體粗細
personFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
personFontWeight 類型
以下任一:string
或 number
(詳細資訊)
personFontWeight 預設值
預設值為
"normal"
external_personFontSize
這設定了圖表中 External Person 形狀的字體大小
external_personFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_personFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_personFontSize 預設值
預設值為
14
external_personFontFamily
這設定了圖表中 External Person 形狀的字體系列
external_personFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
external_personFontFamily 類型
字串
external_personFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_personFontWeight
這設定了圖表中 External Person 形狀的字體粗細
external_personFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_personFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_personFontWeight 預設值
預設值為
"normal"
systemFontSize
這設定了圖表中 System 形狀的字體大小
systemFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
systemFontSize 類型
以下任一:string
或 number
(詳細資訊)
systemFontSize 預設值
預設值為
14
systemFontFamily
這設定了圖表中 System 形狀的字體系列
systemFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
systemFontFamily 類型
字串
systemFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
systemFontWeight
這設定了圖表中 System 形狀的字體粗細
systemFontWeight
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
systemFontWeight 類型
以下任一:string
或 number
( 詳細資訊 )
systemFontWeight 預設值
預設值為
"normal"
external_systemFontSize
此設定圖表中外部系統形狀的字體大小
external_systemFontSize
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
external_systemFontSize 類型
以下任一:string
或 number
( 詳細資訊 )
external_systemFontSize 預設值
預設值為
14
external_systemFontFamily
此設定圖表中外部系統形狀的字體系列
external_systemFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
external_systemFontFamily 類型
字串
external_systemFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_systemFontWeight
此設定圖表中外部系統形狀的字體粗細
external_systemFontWeight
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
external_systemFontWeight 類型
以下任一:string
或 number
( 詳細資訊 )
external_systemFontWeight 預設值
預設值為
"normal"
system_dbFontSize
此設定圖表中系統資料庫形狀的字體大小
system_dbFontSize
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
system_dbFontSize 類型
以下任一:string
或 number
( 詳細資訊 )
system_dbFontSize 預設值
預設值為
14
system_dbFontFamily
此設定圖表中系統資料庫形狀的字體系列
system_dbFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
system_dbFontFamily 類型
字串
system_dbFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
system_dbFontWeight
此設定圖表中系統資料庫形狀的字體粗細
system_dbFontWeight
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
system_dbFontWeight 類型
以下任一:string
或 number
( 詳細資訊 )
system_dbFontWeight 預設值
預設值為
"normal"
external_system_dbFontSize
此設定圖表中外部系統資料庫形狀的字體大小
external_system_dbFontSize
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
external_system_dbFontSize 類型
以下任一:string
或 number
( 詳細資訊 )
external_system_dbFontSize 預設值
預設值為
14
external_system_dbFontFamily
此設定圖表中外部系統資料庫形狀的字體系列
external_system_dbFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
external_system_dbFontFamily 類型
字串
external_system_dbFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_system_dbFontWeight
此設定圖表中外部系統資料庫形狀的字體粗細
external_system_dbFontWeight
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
external_system_dbFontWeight 類型
以下任一:string
或 number
( 詳細資訊 )
external_system_dbFontWeight 預設值
預設值為
"normal"
system_queueFontSize
此設定圖表中系統佇列形狀的字體大小
system_queueFontSize
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
system_queueFontSize 類型
以下任一:string
或 number
( 詳細資訊 )
system_queueFontSize 預設值
預設值為
14
system_queueFontFamily
此設定圖表中系統佇列形狀的字體系列
system_queueFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
system_queueFontFamily 類型
字串
system_queueFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
system_queueFontWeight
此設定圖表中系統佇列形狀的字體粗細
system_queueFontWeight
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
system_queueFontWeight 類型
以下任一:string
或 number
( 詳細資訊 )
system_queueFontWeight 預設值
預設值為
"normal"
external_system_queueFontSize
此設定圖表中外部系統佇列形狀的字體大小
external_system_queueFontSize
為選用
類型:以下任一:
string
或number
( 詳細資訊 )不能為 null
定義於:Mermaid 設定
external_system_queueFontSize 類型
以下任一:string
或 number
( 詳細資訊 )
external_system_queueFontSize 預設值
預設值為
14
external_system_queueFontFamily
此設定圖表中外部系統佇列形狀的字體系列
external_system_queueFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
external_system_queueFontFamily 類型
字串
external_system_queueFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_system_queueFontWeight
此設定用於圖表中外部系統佇列形狀的字體粗細。
external_system_queueFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_system_queueFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_system_queueFontWeight 預設值
預設值為
"normal"
boundaryFontSize
此設定用於圖表中邊界形狀的字體大小。
boundaryFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
boundaryFontSize 類型
以下任一:string
或 number
(詳細資訊)
boundaryFontSize 預設值
預設值為
14
boundaryFontFamily
此設定用於圖表中邊界形狀的字體系列。
boundaryFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
boundaryFontFamily 類型
字串
boundaryFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
boundaryFontWeight
此設定用於圖表中邊界形狀的字體粗細。
boundaryFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
boundaryFontWeight 類型
以下任一:string
或 number
(詳細資訊)
boundaryFontWeight 預設值
預設值為
"normal"
messageFontSize
此設定用於圖表中訊息形狀的字體大小。
messageFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
messageFontSize 類型
以下任一:string
或 number
(詳細資訊)
messageFontSize 預設值
預設值為
12
messageFontFamily
此設定用於圖表中訊息形狀的字體系列。
messageFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
messageFontFamily 類型
字串
messageFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
messageFontWeight
此設定用於圖表中訊息形狀的字體粗細。
messageFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
messageFontWeight 類型
以下任一:string
或 number
(詳細資訊)
messageFontWeight 預設值
預設值為
"normal"
containerFontSize
此設定用於圖表中容器形狀的字體大小。
containerFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
containerFontSize 類型
以下任一:string
或 number
(詳細資訊)
containerFontSize 預設值
預設值為
14
containerFontFamily
此設定用於圖表中容器形狀的字體系列。
containerFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
containerFontFamily 類型
字串
containerFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
containerFontWeight
此設定用於圖表中容器形狀的字體粗細。
containerFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
containerFontWeight 類型
以下任一:string
或 number
(詳細資訊)
containerFontWeight 預設值
預設值為
"normal"
external_containerFontSize
此設定用於圖表中外部容器形狀的字體大小。
external_containerFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_containerFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_containerFontSize 預設值
預設值為
14
external_containerFontFamily
此設定用於圖表中外部容器形狀的字體系列。
external_containerFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
external_containerFontFamily 類型
字串
external_containerFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_containerFontWeight
此設定用於圖表中外部容器形狀的字體粗細。
external_containerFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_containerFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_containerFontWeight 預設值
預設值為
"normal"
container_dbFontSize
此設定用於圖表中容器資料庫形狀的字體大小。
container_dbFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
container_dbFontSize 類型
以下任一:string
或 number
(詳細資訊)
container_dbFontSize 預設值
預設值為
14
container_dbFontFamily
此設定用於圖表中容器資料庫形狀的字體系列。
container_dbFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
container_dbFontFamily 類型
字串
container_dbFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
container_dbFontWeight
這設定圖表中容器資料庫形狀的字體粗細。
container_dbFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
container_dbFontWeight 類型
以下任一:string
或 number
(詳細資訊)
container_dbFontWeight 預設值
預設值為
"normal"
external_container_dbFontSize
這設定圖表中外部容器資料庫形狀的字體大小。
external_container_dbFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_container_dbFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_container_dbFontSize 預設值
預設值為
14
external_container_dbFontFamily
這設定圖表中外部容器資料庫形狀的字體系列。
external_container_dbFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
external_container_dbFontFamily 類型
字串
external_container_dbFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_container_dbFontWeight
這設定圖表中外部容器資料庫形狀的字體粗細。
external_container_dbFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_container_dbFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_container_dbFontWeight 預設值
預設值為
"normal"
container_queueFontSize
這設定圖表中容器佇列形狀的字體大小。
container_queueFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
container_queueFontSize 類型
以下任一:string
或 number
(詳細資訊)
container_queueFontSize 預設值
預設值為
14
container_queueFontFamily
這設定圖表中容器佇列形狀的字體系列。
container_queueFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
container_queueFontFamily 類型
字串
container_queueFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
container_queueFontWeight
這設定圖表中容器佇列形狀的字體粗細。
container_queueFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
container_queueFontWeight 類型
以下任一:string
或 number
(詳細資訊)
container_queueFontWeight 預設值
預設值為
"normal"
external_container_queueFontSize
這設定圖表中外部容器佇列形狀的字體大小。
external_container_queueFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_container_queueFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_container_queueFontSize 預設值
預設值為
14
external_container_queueFontFamily
這設定圖表中外部容器佇列形狀的字體系列。
external_container_queueFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
external_container_queueFontFamily 類型
字串
external_container_queueFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_container_queueFontWeight
這設定圖表中外部容器佇列形狀的字體粗細。
external_container_queueFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_container_queueFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_container_queueFontWeight 預設值
預設值為
"normal"
componentFontSize
這設定圖表中元件形狀的字體大小。
componentFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
componentFontSize 類型
以下任一:string
或 number
(詳細資訊)
componentFontSize 預設值
預設值為
14
componentFontFamily
這設定圖表中元件形狀的字體系列。
componentFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
componentFontFamily 類型
字串
componentFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
componentFontWeight
這設定圖表中元件形狀的字體粗細。
componentFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
componentFontWeight 類型
以下任一:string
或 number
(詳細資訊)
componentFontWeight 預設值
預設值為
"normal"
external_componentFontSize
這設定圖表中外部元件形狀的字體大小。
external_componentFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
external_componentFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_componentFontSize 預設值
預設值為
14
external_componentFontFamily
這設定圖表中外部元件形狀的字體系列。
external_componentFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
external_componentFontFamily 類型
字串
external_componentFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_componentFontWeight
此設定圖表中外部元件形狀的字體粗細
external_componentFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_componentFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_componentFontWeight 預設值
預設值為
"normal"
component_dbFontSize
此設定圖表中元件資料庫形狀的字體大小
component_dbFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
component_dbFontSize 類型
以下任一:string
或 number
(詳細資訊)
component_dbFontSize 預設值
預設值為
14
component_dbFontFamily
此設定圖表中元件資料庫形狀的字體系列
component_dbFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
component_dbFontFamily 類型
字串
component_dbFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
component_dbFontWeight
此設定圖表中元件資料庫形狀的字體粗細
component_dbFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
component_dbFontWeight 類型
以下任一:string
或 number
(詳細資訊)
component_dbFontWeight 預設值
預設值為
"normal"
external_component_dbFontSize
此設定圖表中外部元件資料庫形狀的字體大小
external_component_dbFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_component_dbFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_component_dbFontSize 預設值
預設值為
14
external_component_dbFontFamily
此設定圖表中外部元件資料庫形狀的字體系列
external_component_dbFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
external_component_dbFontFamily 類型
字串
external_component_dbFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_component_dbFontWeight
此設定圖表中外部元件資料庫形狀的字體粗細
external_component_dbFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_component_dbFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_component_dbFontWeight 預設值
預設值為
"normal"
component_queueFontSize
此設定圖表中元件佇列形狀的字體大小
component_queueFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
component_queueFontSize 類型
以下任一:string
或 number
(詳細資訊)
component_queueFontSize 預設值
預設值為
14
component_queueFontFamily
此設定圖表中元件佇列形狀的字體系列
component_queueFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
component_queueFontFamily 類型
字串
component_queueFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
component_queueFontWeight
此設定圖表中元件佇列形狀的字體粗細
component_queueFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
component_queueFontWeight 類型
以下任一:string
或 number
(詳細資訊)
component_queueFontWeight 預設值
預設值為
"normal"
external_component_queueFontSize
此設定圖表中外部元件佇列形狀的字體大小
external_component_queueFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_component_queueFontSize 類型
以下任一:string
或 number
(詳細資訊)
external_component_queueFontSize 預設值
預設值為
14
external_component_queueFontFamily
此設定圖表中外部元件佇列形狀的字體系列
external_component_queueFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 配置
external_component_queueFontFamily 類型
字串
external_component_queueFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
external_component_queueFontWeight
此設定圖表中外部元件佇列形狀的字體粗細
external_component_queueFontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 配置
external_component_queueFontWeight 類型
以下任一:string
或 number
(詳細資訊)
external_component_queueFontWeight 預設值
預設值為
"normal"
wrap
此設定圖表的自動換行狀態
wrap
為選用
類型:
布林值
不能為 null
定義於:Mermaid 配置
wrap 類型
布林值
wrap 預設值
預設值為
true
wrapPadding
此設定圖表的自動換行邊距(僅限兩側)
wrapPadding
為選用
類型:
數字
不能為 null
定義於:Mermaid 配置
wrapPadding 類型
數字
wrapPadding 預設值
預設值為
10
person_bg_color
person_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
person_bg_color 類型
字串
person_bg_color 預設值
預設值為
"#08427B"
person_border_color
person_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
person_border_color 類型
字串
person_border_color 預設值
預設值為
"#073B6F"
external_person_bg_color
external_person_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_person_bg_color 類型
字串
external_person_bg_color 預設值
預設值為
"#686868"
external_person_border_color
external_person_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_person_border_color 類型
字串
external_person_border_color 預設值
預設值為
"#8A8A8A"
system_bg_color
system_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
system_bg_color 類型
字串
system_bg_color 預設值
預設值為
"#1168BD"
system_border_color
system_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
system_border_color 類型
字串
system_border_color 預設值
預設值為
"#3C7FC0"
system_db_bg_color
system_db_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
system_db_bg_color 類型
字串
system_db_bg_color 預設值
預設值為
"#1168BD"
system_db_border_color
system_db_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
system_db_border_color 類型
字串
system_db_border_color 預設值
預設值為
"#3C7FC0"
system_queue_bg_color
system_queue_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
system_queue_bg_color 類型
字串
system_queue_bg_color 預設值
預設值為
"#1168BD"
system_queue_border_color
system_queue_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
system_queue_border_color 類型
字串
system_queue_border_color 預設值
預設值為
"#3C7FC0"
external_system_bg_color
external_system_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_system_bg_color 類型
字串
external_system_bg_color 預設值
預設值為
"#999999"
external_system_border_color
external_system_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_system_border_color 類型
字串
external_system_border_color 預設值
預設值為
"#8A8A8A"
external_system_db_bg_color
external_system_db_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_system_db_bg_color 類型
字串
external_system_db_bg_color 預設值
預設值為
"#999999"
external_system_db_border_color
external_system_db_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_system_db_border_color 類型
字串
external_system_db_border_color 預設值
預設值為
"#8A8A8A"
external_system_queue_bg_color
external_system_queue_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_system_queue_bg_color 類型
字串
external_system_queue_bg_color 預設值
預設值為
"#999999"
external_system_queue_border_color
external_system_queue_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_system_queue_border_color 類型
字串
external_system_queue_border_color 預設值
預設值為
"#8A8A8A"
container_bg_color
container_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
container_bg_color 類型
字串
container_bg_color 預設值
預設值為
"#438DD5"
container_border_color
container_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
container_border_color 類型
字串
container_border_color 預設值
預設值為
"#3C7FC0"
container_db_bg_color
container_db_bg_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
container_db_bg_color 類型
字串
container_db_bg_color 預設值
預設值為
"#438DD5"
container_db_border_color
container_db_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
container_db_border_color 類型
字串
container_db_border_color 預設值
預設值為
"#3C7FC0"
container_queue_bg_color
container_queue_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
container_queue_bg_color 類型
字串
container_queue_bg_color 預設值
預設值為
"#438DD5"
container_queue_border_color
container_queue_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
container_queue_border_color 類型
字串
container_queue_border_color 預設值
預設值為
"#3C7FC0"
external_container_bg_color
external_container_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_container_bg_color 類型
字串
external_container_bg_color 預設值
預設值為
"#B3B3B3"
external_container_border_color
external_container_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_container_border_color 類型
字串
external_container_border_color 預設值
預設值為
"#A6A6A6"
external_container_db_bg_color
external_container_db_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_container_db_bg_color 類型
字串
external_container_db_bg_color 預設值
預設值為
"#B3B3B3"
external_container_db_border_color
external_container_db_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_container_db_border_color 類型
字串
external_container_db_border_color 預設值
預設值為
"#A6A6A6"
external_container_queue_bg_color
external_container_queue_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_container_queue_bg_color 類型
字串
external_container_queue_bg_color 預設值
預設值為
"#B3B3B3"
external_container_queue_border_color
external_container_queue_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_container_queue_border_color 類型
字串
external_container_queue_border_color 預設值
預設值為
"#A6A6A6"
component_bg_color
component_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
component_bg_color 類型
字串
component_bg_color 預設值
預設值為
"#85BBF0"
component_border_color
component_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
component_border_color 類型
字串
component_border_color 預設值
預設值為
"#78A8D8"
component_db_bg_color
component_db_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
component_db_bg_color 類型
字串
component_db_bg_color 預設值
預設值為
"#85BBF0"
component_db_border_color
component_db_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
component_db_border_color 類型
字串
component_db_border_color 預設值
預設值為
"#78A8D8"
component_queue_bg_color
component_queue_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
component_queue_bg_color 類型
字串
component_queue_bg_color 預設值
預設值為
"#85BBF0"
component_queue_border_color
component_queue_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
component_queue_border_color 類型
字串
component_queue_border_color 預設值
預設值為
"#78A8D8"
external_component_bg_color
external_component_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_component_bg_color 類型
字串
external_component_bg_color 預設值
預設值為
"#CCCCCC"
external_component_border_color
external_component_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_component_border_color 類型
字串
external_component_border_color 預設值
預設值為
"#BFBFBF"
external_component_db_bg_color
external_component_db_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_component_db_bg_color 類型
字串
external_component_db_bg_color 預設值
預設值為
"#CCCCCC"
external_component_db_border_color
external_component_db_border_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_component_db_border_color 類型
字串
external_component_db_border_color 預設值
預設值為
"#BFBFBF"
external_component_queue_bg_color
external_component_queue_bg_color
為選用
類型:
字串
不能為 null
定義於:Mermaid Config
external_component_queue_bg_color 類型
字串
external_component_queue_bg_color 預設值
預設值為
"#CCCCCC"
external_component_queue_border_color
external_component_queue_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
external_component_queue_border_color 類型
字串
external_component_queue_border_color 預設值
預設值為
"#BFBFBF"
personFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
personFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
personFont 類型
未知 (字體計算器)
external_personFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_personFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_personFont 類型
未知 (字體計算器)
systemFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
systemFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
systemFont 類型
未知 (字體計算器)
external_systemFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_systemFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_systemFont 類型
未知 (字體計算器)
system_dbFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
system_dbFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
system_dbFont 類型
未知 (字體計算器)
external_system_dbFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_system_dbFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_system_dbFont 類型
未知 (字體計算器)
system_queueFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
system_queueFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
system_queueFont 類型
未知 (字體計算器)
external_system_queueFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_system_queueFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_system_queueFont 類型
未知 (字體計算器)
containerFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
containerFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
containerFont 類型
未知 (字體計算器)
external_containerFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_containerFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_containerFont 類型
未知 (字體計算器)
container_dbFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
container_dbFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
container_dbFont 類型
未知 (字體計算器)
external_container_dbFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_container_dbFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_container_dbFont 類型
未知 (字體計算器)
container_queueFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
container_queueFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
container_queueFont 類型
未知 (字體計算器)
external_container_queueFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_container_queueFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_container_queueFont 類型
未知 (字體計算器)
componentFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
componentFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
componentFont 類型
未知 (字體計算器)
external_componentFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_componentFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_componentFont 類型
未知 (字體計算器)
component_dbFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
component_dbFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
component_dbFont 類型
未知 (字體計算器)
external_component_dbFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_component_dbFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於: Mermaid 設定
tsType:
() => Partial<FontConfig>
external_component_dbFont 類型
未知 (字型計算器)
component_queueFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
component_queueFont
為選用
類型:未知 (字型計算器)
不能為 null
定義於: Mermaid 配置
tsType:
() => Partial<FontConfig>
component_queueFont 類型
未知 (字型計算器)
external_component_queueFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
external_component_queueFont
為選用
類型:未知 (字型計算器)
不能為 null
定義於: Mermaid 配置
tsType:
() => Partial<FontConfig>
external_component_queueFont 類型
未知 (字型計算器)
boundaryFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
boundaryFont
為選用
類型:未知 (字型計算器)
不能為 null
定義於: Mermaid 配置
tsType:
() => Partial<FontConfig>
boundaryFont 類型
未知 (字型計算器)
messageFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
messageFont
為選用
類型:未知 (字型計算器)
不能為 null
定義於: Mermaid 配置
tsType:
() => Partial<FontConfig>
messageFont 類型
未知 (字型計算器)
定義群組 GitGraphDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/GitGraphDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
titleTopMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
diagramPadding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
nodeLabel | 合併 | 選用 | 不能為 null | Mermaid 配置 |
mainBranchName | 字串 | 選用 | 不能為 null | Mermaid 配置 |
mainBranchOrder | 數字 | 選用 | 不能為 null | Mermaid 配置 |
showCommitLabel | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
showBranches | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
rotateCommitLabel | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
parallelCommits | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
arrowMarkerAbsolute | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
titleTopMargin
圖表上方文字的頂部邊距
titleTopMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
titleTopMargin 類型
整數
titleTopMargin 限制
最小值:此數字的值必須大於或等於:0
titleTopMargin 預設值
預設值為
25
diagramPadding
diagramPadding
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
diagramPadding 類型
數字
diagramPadding 預設值
預設值為
8
nodeLabel
nodeLabel
為選用
類型:
物件
(詳細資訊)不能為 null
定義於: Mermaid 配置
nodeLabel 類型
物件
(詳細資訊)
全部
nodeLabel 預設值
預設值為
{
"width": 75,
"height": 100,
"x": -25,
"y": 0
}
mainBranchName
mainBranchName
為選用
類型:
字串
不能為 null
定義於: Mermaid 配置
mainBranchName 類型
字串
mainBranchName 預設值
預設值為
"main"
mainBranchOrder
mainBranchOrder
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
mainBranchOrder 類型
數字
showCommitLabel
showCommitLabel
為選用
類型:
布林值
不能為 null
定義於: Mermaid 配置
showCommitLabel 類型
布林值
showCommitLabel 預設值
預設值為
true
showBranches
showBranches
為選用
類型:
布林值
不能為 null
定義於: Mermaid 配置
showBranches 類型
布林值
showBranches 預設值
預設值為
true
rotateCommitLabel
rotateCommitLabel
為選用
類型:
布林值
不能為 null
定義於: Mermaid 配置
rotateCommitLabel 類型
布林值
rotateCommitLabel 預設值
預設值為
true
parallelCommits
parallelCommits
為選用
類型:
布林值
不能為 null
定義於: Mermaid 配置
parallelCommits 類型
布林值
arrowMarkerAbsolute
控制 HTML 程式碼中的箭頭標記是絕對路徑還是錨點。如果您正在使用 base 標籤設定,這很重要。
arrowMarkerAbsolute
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
arrowMarkerAbsolute 類型
布林值
定義群組 NodeLabel
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/NodeLabel" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
width | 數字 | 選用 | 不能為 null | Mermaid 配置 |
height | 數字 | 選用 | 不能為 null | Mermaid 配置 |
x | 數字 | 選用 | 不能為 null | Mermaid 配置 |
y | 數字 | 選用 | 不能為 null | Mermaid 配置 |
width
width
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
width 類型
數字
height
height
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
height 類型
數字
x
x
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
x 類型
數字
y
y
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
y 類型
數字
定義群組 RequirementDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/RequirementDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
rect_fill | 字串 | 選用 | 不能為 null | Mermaid 配置 |
text_color | 字串 | 選用 | 不能為 null | Mermaid 配置 |
rect_border_size | 字串 | 選用 | 不能為 null | Mermaid 配置 |
rect_border_color | 字串 | 選用 | 不能為 null | Mermaid 配置 |
rect_min_width | 數字 | 選用 | 不能為 null | Mermaid 配置 |
rect_min_height | 數字 | 選用 | 不能為 null | Mermaid 配置 |
fontSize | 數字 | 選用 | 不能為 null | Mermaid 配置 |
rect_padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
line_height | 數字 | 選用 | 不能為 null | Mermaid 配置 |
rect_fill
rect_fill
為選用
類型:
字串
不能為 null
定義於: Mermaid 配置
rect_fill 類型
字串
rect_fill 預設值
預設值為
"#f9f9f9"
text_color
text_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 配置
text_color 類型
字串
text_color 預設值
預設值為
"#333"
rect_border_size
rect_border_size
為選用
類型:
字串
不能為 null
定義於: Mermaid 配置
rect_border_size 類型
字串
rect_border_size 預設值
預設值為
"0.5px"
rect_border_color
rect_border_color
為選用
類型:
字串
不能為 null
定義於: Mermaid 配置
rect_border_color 類型
字串
rect_border_color 預設值
預設值為
"#bbb"
rect_min_width
rect_min_width
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
rect_min_width 類型
數字
rect_min_width 預設值
預設值為
200
rect_min_height
rect_min_height
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
rect_min_height 類型
數字
rect_min_height 預設值
預設值為
200
fontSize
fontSize
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
fontSize 類型
數字
fontSize 預設值
預設值為
14
rect_padding
rect_padding
為選用
類型:
數字
不能為 null
定義於: Mermaid 配置
rect_padding 類型
數字
rect_padding 預設值
預設值為
10
line_height
line_height
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
line_height 類型
數字
line_height 預設值
預設值為
20
定義群組 ArchitectureDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/ArchitectureDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
padding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
iconSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
fontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
padding
padding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
padding 類型
數字
padding 預設值
預設值為
40
iconSize
iconSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
iconSize 類型
數字
iconSize 預設值
預設值為
80
fontSize
fontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
fontSize 類型
數字
fontSize 預設值
預設值為
16
定義群組 MindmapDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/MindmapDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
padding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
maxNodeWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
padding
padding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
padding 類型
數字
padding 預設值
預設值為
10
maxNodeWidth
maxNodeWidth
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
maxNodeWidth 類型
數字
maxNodeWidth 預設值
預設值為
200
定義群組 KanbanDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/KanbanDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
sectionWidth | 數字 | 選用 | 不能為 null | Mermaid 配置 |
ticketBaseUrl | 字串 | 選用 | 不能為 null | Mermaid 配置 |
padding
padding
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
padding 類型
數字
padding 預設值
預設值為
8
sectionWidth
sectionWidth
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
sectionWidth 類型
數字
sectionWidth 預設值
預設值為
200
ticketBaseUrl
ticketBaseUrl
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
ticketBaseUrl 類型
字串
定義群組 PieDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/PieDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
textPosition | 數字 | 選用 | 不能為 null | Mermaid 配置 |
textPosition
切片標籤從中心 0 到外邊緣 1 的軸向位置。
textPosition
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
textPosition 類型
數字
textPosition 限制
最大值:此數字的值必須小於或等於:1
最小值:此數字的值必須大於或等於:0
textPosition 預設值
預設值為
0.75
定義群組 QuadrantChartConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/QuadrantChartConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
chartWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
chartHeight | 數字 | 必要 | 不能為 null | Mermaid 配置 |
titleFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
titlePadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
quadrantPadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
xAxisLabelPadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
yAxisLabelPadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
xAxisLabelFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
yAxisLabelFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
quadrantLabelFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
quadrantTextTopPadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
pointTextPadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
pointLabelFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
pointRadius | 數字 | 必要 | 不能為 null | Mermaid 配置 |
xAxisPosition | 字串 | 必要 | 不能為 null | Mermaid 配置 |
yAxisPosition | 字串 | 必要 | 不能為 null | Mermaid 配置 |
quadrantInternalBorderStrokeWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
quadrantExternalBorderStrokeWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
chartWidth
圖表的寬度
chartWidth
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
chartWidth 類型
數字
chartWidth 限制
最小值:此數字的值必須大於或等於:0
chartWidth 預設值
預設值為
500
chartHeight
圖表的高度
chartHeight
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
chartHeight 類型
數字
chartHeight 限制
最小值:此數字的值必須大於或等於:0
chartHeight 預設值
預設值為
500
titleFontSize
圖表標題的頂部和底部邊距
titleFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
titleFontSize 類型
數字
titleFontSize 限制
最小值:此數字的值必須大於或等於:0
titleFontSize 預設值
預設值為
20
titlePadding
象限方塊周圍的邊距
titlePadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
titlePadding 類型
數字
titlePadding 限制
最小值:此數字的值必須大於或等於:0
titlePadding 預設值
預設值為
10
quadrantPadding
如果象限在頂部呈現,則象限標題從頂部算起的邊距
quadrantPadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
quadrantPadding 類型
數字
quadrantPadding 限制
最小值:此數字的值必須大於或等於:0
quadrantPadding 預設值
預設值為
5
xAxisLabelPadding
x 軸標籤周圍的邊距
xAxisLabelPadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
xAxisLabelPadding 類型
數字
xAxisLabelPadding 限制
最小值:此數字的值必須大於或等於:0
xAxisLabelPadding 預設值
預設值為
5
yAxisLabelPadding
y 軸標籤周圍的邊距
yAxisLabelPadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
yAxisLabelPadding 類型
數字
yAxisLabelPadding 限制
最小值:此數字的值必須大於或等於:0
yAxisLabelPadding 預設值
預設值為
5
xAxisLabelFontSize
x 軸標籤字體大小
xAxisLabelFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
xAxisLabelFontSize 類型
數字
xAxisLabelFontSize 限制
最小值:此數字的值必須大於或等於:0
xAxisLabelFontSize 預設值
預設值為
16
yAxisLabelFontSize
y 軸標籤字體大小
yAxisLabelFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
yAxisLabelFontSize 類型
數字
yAxisLabelFontSize 限制
最小值:此數字的值必須大於或等於:0
yAxisLabelFontSize 預設值
預設值為
16
quadrantLabelFontSize
象限標題字體大小
quadrantLabelFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
quadrantLabelFontSize 類型
數字
quadrantLabelFontSize 限制
最小值:此數字的值必須大於或等於:0
quadrantLabelFontSize 預設值
預設值為
16
quadrantTextTopPadding
如果象限在頂部呈現,則象限標題從頂部算起的邊距
quadrantTextTopPadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
quadrantTextTopPadding 類型
數字
quadrantTextTopPadding 限制
最小值:此數字的值必須大於或等於:0
quadrantTextTopPadding 預設值
預設值為
5
pointTextPadding
點與點標籤之間的間距
pointTextPadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
pointTextPadding 類型
數字
pointTextPadding 限制
最小值:此數字的值必須大於或等於:0
pointTextPadding 預設值
預設值為
5
pointLabelFontSize
點標題字體大小
pointLabelFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
pointLabelFontSize 類型
數字
pointLabelFontSize 限制
最小值:此數字的值必須大於或等於:0
pointLabelFontSize 預設值
預設值為
12
pointRadius
要繪製的點的半徑
pointRadius
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
pointRadius 類型
數字
pointRadius 限制
最小值:此數字的值必須大於或等於:0
pointRadius 預設值
預設值為
5
xAxisPosition
x 軸標籤的位置
xAxisPosition
為必要
類型:
字串
不能為 null
定義於:Mermaid 設定
xAxisPosition 類型
字串
xAxisPosition 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"頂部" | |
"底部" |
xAxisPosition 預設值
預設值為
"top"
yAxisPosition
y 軸標籤的位置
yAxisPosition
為必要
類型:
字串
不能為 null
定義於:Mermaid 設定
yAxisPosition 類型
字串
yAxisPosition 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"左" | |
"右" |
yAxisPosition 預設值
預設值為
"left"
quadrantInternalBorderStrokeWidth
象限內框邊緣的筆劃寬度
quadrantInternalBorderStrokeWidth
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
quadrantInternalBorderStrokeWidth 類型
數字
quadrantInternalBorderStrokeWidth 限制
最小值:此數字的值必須大於或等於:0
quadrantInternalBorderStrokeWidth 預設值
預設值為
1
quadrantExternalBorderStrokeWidth
象限外框邊緣的筆劃寬度
quadrantExternalBorderStrokeWidth
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
quadrantExternalBorderStrokeWidth 類型
數字
quadrantExternalBorderStrokeWidth 限制
最小值:此數字的值必須大於或等於:0
quadrantExternalBorderStrokeWidth 預設值
預設值為
2
定義群組 XYChartAxisConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/XYChartAxisConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
showLabel | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
labelFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
labelPadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
showTitle | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
titleFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
titlePadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
showTick | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
tickLength | 數字 | 必要 | 不能為 null | Mermaid 配置 |
tickWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
showAxisLine | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
axisLineWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
showLabel
是否顯示軸標籤(刻度文字)
showLabel
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
showLabel 類型
布林值
showLabel 預設值
預設值為
true
labelFontSize
軸標籤(刻度文字)的字體大小
labelFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
labelFontSize 類型
數字
labelFontSize 限制
最小值:此數字的值必須大於或等於:1
labelFontSize 預設值
預設值為
14
labelPadding
軸標籤(刻度文字)的頂部和底部空間
labelPadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
labelPadding 類型
數字
labelPadding 限制
最小值:此數字的值必須大於或等於:0
labelPadding 預設值
預設值為
5
showTitle
是否顯示軸標題
showTitle
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
showTitle 類型
布林值
showTitle 預設值
預設值為
true
titleFontSize
軸標題的字體大小
titleFontSize
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
titleFontSize 類型
數字
titleFontSize 限制
最小值:此數字的值必須大於或等於:1
titleFontSize 預設值
預設值為
16
titlePadding
軸標題的頂部和底部空間
titlePadding
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
titlePadding 類型
數字
titlePadding 限制
最小值:此數字的值必須大於或等於:0
titlePadding 預設值
預設值為
5
showTick
是否顯示軸刻度線
showTick
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
showTick 類型
布林值
showTick 預設值
預設值為
true
tickLength
軸刻度線的長度
tickLength
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
tickLength 類型
數字
tickLength 限制
最小值:此數字的值必須大於或等於:1
tickLength 預設值
預設值為
5
tickWidth
軸刻度線的寬度
tickWidth
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
tickWidth 類型
數字
tickWidth 限制
最小值:此數字的值必須大於或等於:1
tickWidth 預設值
預設值為
2
showAxisLine
是否顯示橫跨軸的線條
showAxisLine
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
showAxisLine 類型
布林值
showAxisLine 預設值
預設值為
true
axisLineWidth
軸線的寬度
axisLineWidth
為必要
類型:
數字
不能為 null
定義於:Mermaid 設定
axisLineWidth 類型
數字
axisLineWidth 限制
最小值:此數字的值必須大於或等於:1
axisLineWidth 預設值
預設值為
2
定義群組 XYChartConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/XYChartConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
width | 數字 | 必要 | 不能為 null | Mermaid 配置 |
height | 數字 | 必要 | 不能為 null | Mermaid 配置 |
titleFontSize | 數字 | 必要 | 不能為 null | Mermaid 配置 |
titlePadding | 數字 | 必要 | 不能為 null | Mermaid 配置 |
showTitle | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
xAxis | 物件 | 必要 | 不能為 null | Mermaid 配置 |
yAxis | 物件 | 必要 | 不能為 null | Mermaid 配置 |
chartOrientation | 未指定 | 必要 | 不能為 null | Mermaid 配置 |
plotReservedSpacePercent | 數字 | 必要 | 不能為 null | Mermaid 配置 |
width
圖表的寬度
width
為必要
類型:
數字
不能為 null
定義於: Mermaid Config
width 類型
數字
width 限制
最小值:此數字的值必須大於或等於:1
width 預設值
預設值為
700
height
圖表的高度
height
為必要
類型:
數字
不能為 null
定義於: Mermaid Config
height 類型
數字
height 限制
最小值:此數字的值必須大於或等於:1
height 預設值
預設值為
500
titleFontSize
圖表標題的字體大小
titleFontSize
為必要
類型:
數字
不能為 null
定義於: Mermaid Config
titleFontSize 類型
數字
titleFontSize 限制
最小值:此數字的值必須大於或等於:1
titleFontSize 預設值
預設值為
20
titlePadding
圖表標題的頂部和底部空間
titlePadding
為必要
類型:
數字
不能為 null
定義於: Mermaid Config
titlePadding 類型
數字
titlePadding 限制
最小值:此數字的值必須大於或等於:0
titlePadding 預設值
預設值為
10
showTitle
是否顯示圖表標題
showTitle
為必要
類型:
布林值
不能為 null
定義於: Mermaid Config
showTitle 類型
布林值
showTitle 預設值
預設值為
true
xAxis
此物件包含 XYChart 軸設定的設定
xAxis
為必要
類型:
object
(XYChart 軸設定)不能為 null
定義於: Mermaid Config
xAxis 類型
object
(XYChart 軸設定)
xAxis 預設值
預設值為
{
"$ref": "#/$defs/XYChartAxisConfig",
"title": "XYChart axis config",
"description": "This object contains configuration for XYChart axis config",
"type": "object",
"unevaluatedProperties": true,
"required": [
"showLabel",
"labelFontSize",
"labelPadding",
"showTitle",
"titleFontSize",
"titlePadding",
"showTick",
"tickLength",
"tickWidth",
"showAxisLine",
"axisLineWidth"
],
"properties": {
"showLabel": {
"description": "Should show the axis labels (tick text)",
"type": "boolean",
"default": true
},
"labelFontSize": {
"description": "font size of the axis labels (tick text)",
"type": "number",
"default": 14,
"minimum": 1
},
"labelPadding": {
"description": "top and bottom space from axis label (tick text)",
"type": "number",
"default": 5,
"minimum": 0
},
"showTitle": {
"description": "Should show the axis title",
"type": "boolean",
"default": true
},
"titleFontSize": {
"description": "font size of the axis title",
"type": "number",
"default": 16,
"minimum": 1
},
"titlePadding": {
"description": "top and bottom space from axis title",
"type": "number",
"default": 5,
"minimum": 0
},
"showTick": {
"description": "Should show the axis tick lines",
"type": "boolean",
"default": true
},
"tickLength": {
"description": "length of the axis tick lines",
"type": "number",
"default": 5,
"minimum": 1
},
"tickWidth": {
"description": "width of the axis tick lines",
"type": "number",
"default": 2,
"minimum": 1
},
"showAxisLine": {
"description": "Show line across the axis",
"type": "boolean",
"default": true
},
"axisLineWidth": {
"description": "Width of the axis line",
"type": "number",
"default": 2,
"minimum": 1
}
}
}
yAxis
此物件包含 XYChart 軸設定的設定
yAxis
為必要
類型:
object
(XYChart 軸設定)不能為 null
定義於: Mermaid Config
yAxis 類型
object
(XYChart 軸設定)
yAxis 預設值
預設值為
{
"$ref": "#/$defs/XYChartAxisConfig",
"title": "XYChart axis config",
"description": "This object contains configuration for XYChart axis config",
"type": "object",
"unevaluatedProperties": true,
"required": [
"showLabel",
"labelFontSize",
"labelPadding",
"showTitle",
"titleFontSize",
"titlePadding",
"showTick",
"tickLength",
"tickWidth",
"showAxisLine",
"axisLineWidth"
],
"properties": {
"showLabel": {
"description": "Should show the axis labels (tick text)",
"type": "boolean",
"default": true
},
"labelFontSize": {
"description": "font size of the axis labels (tick text)",
"type": "number",
"default": 14,
"minimum": 1
},
"labelPadding": {
"description": "top and bottom space from axis label (tick text)",
"type": "number",
"default": 5,
"minimum": 0
},
"showTitle": {
"description": "Should show the axis title",
"type": "boolean",
"default": true
},
"titleFontSize": {
"description": "font size of the axis title",
"type": "number",
"default": 16,
"minimum": 1
},
"titlePadding": {
"description": "top and bottom space from axis title",
"type": "number",
"default": 5,
"minimum": 0
},
"showTick": {
"description": "Should show the axis tick lines",
"type": "boolean",
"default": true
},
"tickLength": {
"description": "length of the axis tick lines",
"type": "number",
"default": 5,
"minimum": 1
},
"tickWidth": {
"description": "width of the axis tick lines",
"type": "number",
"default": 2,
"minimum": 1
},
"showAxisLine": {
"description": "Show line across the axis",
"type": "boolean",
"default": true
},
"axisLineWidth": {
"description": "Width of the axis line",
"type": "number",
"default": 2,
"minimum": 1
}
}
}
chartOrientation
繪圖將如何以水平或垂直方式繪製
chartOrientation
為必要
類型:未知
不能為 null
定義於: Mermaid Config
tsType:
"vertical" | "horizontal"
chartOrientation 類型
未知
chartOrientation 預設值
預設值為
"vertical"
plotReservedSpacePercent
圖表的繪圖將佔用的最小空間百分比
plotReservedSpacePercent
為必要
類型:
數字
不能為 null
定義於: Mermaid Config
plotReservedSpacePercent 類型
數字
plotReservedSpacePercent 限制
最小值: 此數字的值必須大於或等於: 30
plotReservedSpacePercent 預設值
預設值為
50
定義群組 ErDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/ErDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
titleTopMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
diagramPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
layoutDirection | 字串 | 必要 | 不能為 null | Mermaid 配置 |
minEntityWidth | 整數 | 必要 | 不能為 null | Mermaid 配置 |
minEntityHeight | 整數 | 必要 | 不能為 null | Mermaid 配置 |
entityPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
stroke | 字串 | 必要 | 不能為 null | Mermaid 配置 |
fill | 字串 | 必要 | 不能為 null | Mermaid 配置 |
fontSize | 整數 | 選用 | 不能為 null | Mermaid 配置 |
titleTopMargin
圖表上方文字的頂部邊距
titleTopMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid Config
titleTopMargin 類型
整數
titleTopMargin 限制
最小值:此數字的值必須大於或等於:0
titleTopMargin 預設值
預設值為
25
diagramPadding
整個圖表周圍的邊距量,以便嵌入的圖表有邊距,以像素為單位表示。
diagramPadding
為必要
類型:
整數
不能為 null
定義於: Mermaid Config
diagramPadding 類型
整數
diagramPadding 限制
最小值:此數字的值必須大於或等於:0
diagramPadding 預設值
預設值為
20
layoutDirection
實體佈局的方向偏好
layoutDirection
為必要
類型:
字串
不能為 null
定義於: Mermaid Config
layoutDirection 類型
字串
layoutDirection 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"TB" | 上到下 |
"BT" | 下到上 |
"LR" | 左到右 |
"RL" | 右到左 |
layoutDirection 預設值
預設值為
"TB"
minEntityWidth
實體框的最小寬度。以像素為單位表示。
minEntityWidth
為必要
類型:
整數
不能為 null
定義於: Mermaid Config
minEntityWidth 類型
整數
minEntityWidth 限制
最小值:此數字的值必須大於或等於:0
minEntityWidth 預設值
預設值為
100
minEntityHeight
實體框的最小高度。以像素為單位表示。
minEntityHeight
為必要
類型:
整數
不能為 null
定義於: Mermaid Config
minEntityHeight 類型
整數
minEntityHeight 限制
最小值:此數字的值必須大於或等於:0
minEntityHeight 預設值
預設值為
75
entityPadding
實體框中的文字與外框邊界之間的最小內部邊距。以像素為單位表示。
entityPadding
為必要
類型:
整數
不能為 null
定義於: Mermaid Config
entityPadding 類型
整數
entityPadding 限制
最小值:此數字的值必須大於或等於:0
entityPadding 預設值
預設值為
15
stroke
框邊和線條的筆觸顏色。
stroke
為必要
類型:
字串
不能為 null
定義於: Mermaid Config
stroke 類型
字串
stroke 預設值
預設值為
"gray"
fill
實體框的填充顏色
fill
為必要
類型:
字串
不能為 null
定義於: Mermaid Config
fill 類型
字串
fill 預設值
預設值為
"honeydew"
fontSize
字體大小(表示為代表像素數的整數)
fontSize
為選用
類型:
整數
不能為 null
定義於: Mermaid Config
fontSize 類型
整數
fontSize 限制
最小值:此數字的值必須大於或等於:0
fontSize 預設值
預設值為
12
定義群組 StateDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/StateDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
titleTopMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
arrowMarkerAbsolute | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
dividerMargin | 數字 | 選用 | 不能為 null | Mermaid 配置 |
sizeUnit | 數字 | 選用 | 不能為 null | Mermaid 配置 |
padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
textHeight | 數字 | 選用 | 不能為 null | Mermaid 配置 |
titleShift | 數字 | 選用 | 不能為 null | Mermaid 配置 |
noteMargin | 數字 | 選用 | 不能為 null | Mermaid 配置 |
nodeSpacing | 整數 | 選用 | 不能為 null | Mermaid 配置 |
rankSpacing | 整數 | 選用 | 不能為 null | Mermaid 配置 |
forkWidth | 數字 | 選用 | 不能為 null | Mermaid 配置 |
forkHeight | 數字 | 選用 | 不能為 null | Mermaid 配置 |
miniPadding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
fontSizeFactor | 數字 | 選用 | 不能為 null | Mermaid 配置 |
fontSize | 數字 | 選用 | 不能為 null | Mermaid 配置 |
labelHeight | 數字 | 選用 | 不能為 null | Mermaid 配置 |
edgeLengthFactor | 字串 | 選用 | 不能為 null | Mermaid 配置 |
compositTitleSize | 數字 | 選用 | 不能為 null | Mermaid 配置 |
radius | 數字 | 選用 | 不能為 null | Mermaid 配置 |
defaultRenderer | 字串 | 必要 | 不能為 null | Mermaid 配置 |
titleTopMargin
圖表上方文字的頂部邊距
titleTopMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid Config
titleTopMargin 類型
整數
titleTopMargin 約束
最小值:此數字的值必須大於或等於:0
titleTopMargin 預設值
預設值為
25
arrowMarkerAbsolute
arrowMarkerAbsolute
為選用
類型:
布林值
不能為 null
定義於: Mermaid 設定
arrowMarkerAbsolute 類型
布林值
dividerMargin
dividerMargin
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
dividerMargin 類型
數字
dividerMargin 預設值
預設值為
10
sizeUnit
sizeUnit
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
sizeUnit 類型
數字
sizeUnit 預設值
預設值為
5
padding
padding
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
padding 類型
數字
padding 預設值
預設值為
8
textHeight
textHeight
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
textHeight 類型
數字
textHeight 預設值
預設值為
10
titleShift
titleShift
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
titleShift 類型
數字
titleShift 預設值
預設值為
-15
noteMargin
noteMargin
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
noteMargin 類型
數字
noteMargin 預設值
預設值為
10
nodeSpacing
nodeSpacing
為選用
類型:
整數
不能為 null
定義於: Mermaid 設定
nodeSpacing 類型
整數
nodeSpacing 約束
最小值:此數字的值必須大於或等於:0
rankSpacing
rankSpacing
為選用
類型:
整數
不能為 null
定義於: Mermaid 設定
rankSpacing 類型
整數
rankSpacing 約束
最小值:此數字的值必須大於或等於:0
forkWidth
forkWidth
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
forkWidth 類型
數字
forkWidth 預設值
預設值為
70
forkHeight
forkHeight
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
forkHeight 類型
數字
forkHeight 預設值
預設值為
7
miniPadding
miniPadding
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
miniPadding 類型
數字
miniPadding 預設值
預設值為
2
fontSizeFactor
字體大小因子,用於在通過 dagre 佈局渲染之前,猜測邊緣標籤的寬度。如果/當切換字體時,這可能需要更新
fontSizeFactor
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
fontSizeFactor 類型
數字
fontSizeFactor 預設值
預設值為
5.02
fontSize
fontSize
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
fontSize 類型
數字
fontSize 預設值
預設值為
24
labelHeight
labelHeight
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
labelHeight 類型
數字
labelHeight 預設值
預設值為
16
edgeLengthFactor
edgeLengthFactor
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
edgeLengthFactor 類型
字串
edgeLengthFactor 預設值
預設值為
"20"
compositTitleSize
compositTitleSize
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
compositTitleSize 類型
數字
compositTitleSize 預設值
預設值為
35
radius
radius
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
radius 類型
數字
radius 預設值
預設值為
5
defaultRenderer
決定用於渲染的渲染引擎。
defaultRenderer
為必要
類型:
字串
不能為 null
定義於: Mermaid 設定
defaultRenderer 類型
字串
defaultRenderer 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"dagre-d3" | [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) 庫。 |
"dagre-wrapper" | 在 mermaid 中實作的 dagre 包裝器 |
"elk" | 使用 [elkjs](https://github.com/kieler/elkjs) 佈局 |
defaultRenderer 預設值
預設值為
"dagre-wrapper"
定義群組 ClassDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/ClassDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
titleTopMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
arrowMarkerAbsolute | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
dividerMargin | 數字 | 選用 | 不能為 null | Mermaid 配置 |
padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
textHeight | 數字 | 選用 | 不能為 null | Mermaid 配置 |
defaultRenderer | 字串 | 必要 | 不能為 null | Mermaid 配置 |
nodeSpacing | 整數 | 選用 | 不能為 null | Mermaid 配置 |
rankSpacing | 整數 | 選用 | 不能為 null | Mermaid 配置 |
diagramPadding | 整數 | 選用 | 不能為 null | Mermaid 配置 |
htmlLabels | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
hideEmptyMembersBox | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
titleTopMargin
圖表上方文字的頂部邊距
titleTopMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
titleTopMargin 類型
整數
titleTopMargin 約束
最小值:此數字的值必須大於或等於:0
titleTopMargin 預設值
預設值為
25
arrowMarkerAbsolute
控制 HTML 程式碼中的箭頭標記是絕對路徑還是錨點。如果您正在使用 base 標籤設定,這很重要。
arrowMarkerAbsolute
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
arrowMarkerAbsolute 類型
布林值
dividerMargin
dividerMargin
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
dividerMargin 類型
數字
dividerMargin 預設值
預設值為
10
padding
padding
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
padding 類型
數字
padding 預設值
預設值為
5
textHeight
textHeight
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
textHeight 類型
數字
textHeight 預設值
預設值為
10
defaultRenderer
決定用於渲染的渲染引擎。
defaultRenderer
為必要
類型:
字串
不能為 null
定義於: Mermaid 設定
defaultRenderer 類型
字串
defaultRenderer 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"dagre-d3" | [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) 庫。 |
"dagre-wrapper" | 在 mermaid 中實作的 dagre 包裝器 |
"elk" | 使用 [elkjs](https://github.com/kieler/elkjs) 佈局 |
defaultRenderer 預設值
預設值為
"dagre-wrapper"
nodeSpacing
nodeSpacing
為選用
類型:
整數
不能為 null
定義於: Mermaid 設定
nodeSpacing 類型
整數
nodeSpacing 約束
最小值:此數字的值必須大於或等於:0
rankSpacing
rankSpacing
為選用
類型:
整數
不能為 null
定義於:Mermaid 設定
rankSpacing 類型
整數
rankSpacing 約束
最小值:此數字的值必須大於或等於:0
diagramPadding
整個圖表周圍的邊距量,以便嵌入的圖表有邊距,以像素為單位表示。
diagramPadding
為選用
類型:
整數
不能為 null
定義於:Mermaid 設定
diagramPadding 類型
整數
diagramPadding 約束
最小值:此數字的值必須大於或等於:0
diagramPadding 預設值
預設值為
20
htmlLabels
htmlLabels
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
htmlLabels 類型
布林值
hideEmptyMembersBox
hideEmptyMembersBox
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
hideEmptyMembersBox 類型
布林值
定義群組 JourneyDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/JourneyDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
diagramMarginX | 整數 | 必要 | 不能為 null | Mermaid 配置 |
diagramMarginY | 整數 | 必要 | 不能為 null | Mermaid 配置 |
leftMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
width | 整數 | 必要 | 不能為 null | Mermaid 配置 |
height | 整數 | 必要 | 不能為 null | Mermaid 配置 |
boxMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
boxTextMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
noteMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
messageMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
messageAlign | 字串 | 必要 | 不能為 null | Mermaid 配置 |
bottomMarginAdj | 整數 | 必要 | 不能為 null | Mermaid 配置 |
rightAngles | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
taskFontSize | 多種 | 選用 | 不能為 null | Mermaid 配置 |
taskFontFamily | 字串 | 選用 | 不能為 null | Mermaid 配置 |
taskMargin | 數字 | 選用 | 不能為 null | Mermaid 配置 |
activationWidth | 數字 | 選用 | 不能為 null | Mermaid 配置 |
textPlacement | 字串 | 選用 | 不能為 null | Mermaid 配置 |
actorColours | 陣列 | 選用 | 不能為 null | Mermaid 配置 |
sectionFills | 陣列 | 選用 | 不能為 null | Mermaid 配置 |
sectionColours | 陣列 | 選用 | 不能為 null | Mermaid 配置 |
diagramMarginX
C4 圖表左右的邊距,必須為正值。
diagramMarginX
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
diagramMarginX 類型
整數
diagramMarginX 約束
最小值:此數字的值必須大於或等於:0
diagramMarginX 預設值
預設值為
50
diagramMarginY
C4 圖表上方和下方的邊距,必須為正值。
diagramMarginY
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
diagramMarginY 類型
整數
diagramMarginY 約束
最小值:此數字的值必須大於或等於:0
diagramMarginY 預設值
預設值為
10
leftMargin
參與者之間的邊距
leftMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
leftMargin 類型
整數
leftMargin 約束
最小值:此數字的值必須大於或等於:0
leftMargin 預設值
預設值為
150
width
參與者方塊的寬度
width
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
width 類型
整數
width 約束
最小值:此數字的值必須大於或等於:0
width 預設值
預設值為
150
height
參與者方塊的高度
height
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
height 類型
整數
height 約束
最小值:此數字的值必須大於或等於:0
height 預設值
預設值為
50
boxMargin
迴圈方塊周圍的邊距
boxMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
boxMargin 類型
整數
boxMargin 約束
最小值:此數字的值必須大於或等於:0
boxMargin 預設值
預設值為
10
boxTextMargin
迴圈/alt/opt 方塊中文字周圍的邊距
boxTextMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
boxTextMargin 類型
整數
boxTextMargin 約束
最小值:此數字的值必須大於或等於:0
boxTextMargin 預設值
預設值為
5
noteMargin
筆記周圍的邊距
noteMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
noteMargin 類型
整數
noteMargin 約束
最小值:此數字的值必須大於或等於:0
noteMargin 預設值
預設值為
10
messageMargin
訊息之間的間距。
messageMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
messageMargin 類型
整數
messageMargin 約束
最小值:此數字的值必須大於或等於:0
messageMargin 預設值
預設值為
35
messageAlign
多行訊息對齊方式
messageAlign
為必要
類型:
字串
不能為 null
定義於:Mermaid 設定
messageAlign 類型
字串
messageAlign 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"左" | |
"center" | |
"右" |
messageAlign 預設值
預設值為
"center"
bottomMarginAdj
向下延長圖表的邊緣。
根據 CSS 樣式,這可能需要調整。
bottomMarginAdj
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
bottomMarginAdj 類型
整數
bottomMarginAdj 約束
最小值:此數字的值必須大於或等於:0
bottomMarginAdj 預設值
預設值為
1
rightAngles
彎曲的箭頭變成直角
這會將起點和終點位於相同節點的箭頭顯示為直角,而不是曲線。
rightAngles
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
rightAngles 類型
布林值
taskFontSize
taskFontSize
為選用
類型:下列任一項:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
taskFontSize 類型
下列任一項:string
或 number
(詳細資訊)
taskFontSize 預設值
預設值為
14
taskFontFamily
taskFontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
taskFontFamily 類型
字串
taskFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
taskMargin
taskMargin
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
taskMargin 類型
數字
taskMargin 預設值
預設值為
50
activationWidth
啟用方塊的寬度
activationWidth
為選用
類型:
數字
不能為 null
定義於:Mermaid 設定
activationWidth 類型
數字
activationWidth 預設值
預設值為
10
textPlacement
文字放置方式:tspan | fo | 舊版僅文字
textPlacement
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
textPlacement 類型
字串
textPlacement 預設值
預設值為
"fo"
actorColours
actorColours
為選用
類型:
string[]
不能為 null
定義於:Mermaid 設定
actorColours 類型
string[]
actorColours 預設值
預設值為
["#8FBC8F", "#7CFC00", "#00FFFF", "#20B2AA", "#B0E0E6", "#FFFFE0"]
sectionFills
sectionFills
為選用
類型:
string[]
不能為 null
定義於: Mermaid 設定
sectionFills 類型
string[]
sectionFills 預設值
預設值為
["#191970", "#8B008B", "#4B0082", "#2F4F4F", "#800000", "#8B4513", "#00008B"]
sectionColours
sectionColours
為選用
類型:
string[]
不能為 null
定義於: Mermaid 設定
sectionColours 類型
string[]
sectionColours 預設值
預設值為
["#fff"]
定義群組 TimelineDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/TimelineDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
diagramMarginX | 整數 | 必要 | 不能為 null | Mermaid 配置 |
diagramMarginY | 整數 | 必要 | 不能為 null | Mermaid 配置 |
leftMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
width | 整數 | 必要 | 不能為 null | Mermaid 配置 |
height | 整數 | 必要 | 不能為 null | Mermaid 配置 |
padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
boxMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
boxTextMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
noteMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
messageMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
messageAlign | 字串 | 必要 | 不能為 null | Mermaid 配置 |
bottomMarginAdj | 整數 | 必要 | 不能為 null | Mermaid 配置 |
rightAngles | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
taskFontSize | 多種 | 選用 | 不能為 null | Mermaid 配置 |
taskFontFamily | 字串 | 選用 | 不能為 null | Mermaid 配置 |
taskMargin | 數字 | 選用 | 不能為 null | Mermaid 配置 |
activationWidth | 數字 | 選用 | 不能為 null | Mermaid 配置 |
textPlacement | 字串 | 選用 | 不能為 null | Mermaid 配置 |
actorColours | 陣列 | 選用 | 不能為 null | Mermaid 配置 |
sectionFills | 陣列 | 選用 | 不能為 null | Mermaid 配置 |
sectionColours | 陣列 | 選用 | 不能為 null | Mermaid 配置 |
disableMulticolor | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
diagramMarginX
C4 圖表左右的邊距,必須為正值。
diagramMarginX
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
diagramMarginX 類型
整數
diagramMarginX 限制
最小值:此數字的值必須大於或等於:0
diagramMarginX 預設值
預設值為
50
diagramMarginY
C4 圖表上方和下方的邊距,必須為正值。
diagramMarginY
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
diagramMarginY 類型
整數
diagramMarginY 限制
最小值:此數字的值必須大於或等於:0
diagramMarginY 預設值
預設值為
10
leftMargin
參與者之間的邊距
leftMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
leftMargin 類型
整數
leftMargin 限制
最小值:此數字的值必須大於或等於:0
leftMargin 預設值
預設值為
150
width
參與者方塊的寬度
width
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
width 類型
整數
width 限制
最小值:此數字的值必須大於或等於:0
width 預設值
預設值為
150
height
參與者方塊的高度
height
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
height 類型
整數
height 限制
最小值:此數字的值必須大於或等於:0
height 預設值
預設值為
50
padding
padding
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
padding 類型
數字
boxMargin
迴圈方塊周圍的邊距
boxMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
boxMargin 類型
整數
boxMargin 限制
最小值:此數字的值必須大於或等於:0
boxMargin 預設值
預設值為
10
boxTextMargin
迴圈/alt/opt 方塊中文字周圍的邊距
boxTextMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
boxTextMargin 類型
整數
boxTextMargin 限制
最小值:此數字的值必須大於或等於:0
boxTextMargin 預設值
預設值為
5
noteMargin
筆記周圍的邊距
noteMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
noteMargin 類型
整數
noteMargin 限制
最小值:此數字的值必須大於或等於:0
noteMargin 預設值
預設值為
10
messageMargin
訊息之間的間距。
messageMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
messageMargin 類型
整數
messageMargin 限制
最小值:此數字的值必須大於或等於:0
messageMargin 預設值
預設值為
35
messageAlign
多行訊息對齊方式
messageAlign
為必要
類型:
字串
不能為 null
定義於: Mermaid 設定
messageAlign 類型
字串
messageAlign 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"左" | |
"center" | |
"右" |
messageAlign 預設值
預設值為
"center"
bottomMarginAdj
向下延長圖表的邊緣。
根據 CSS 樣式,這可能需要調整。
bottomMarginAdj
為必要
類型:
整數
不能為 null
定義於: Mermaid 設定
bottomMarginAdj 類型
整數
bottomMarginAdj 限制
最小值:此數字的值必須大於或等於:0
bottomMarginAdj 預設值
預設值為
1
rightAngles
彎曲的箭頭變成直角
這會將起點和終點位於相同節點的箭頭顯示為直角,而不是曲線。
rightAngles
為選用
類型:
布林值
不能為 null
定義於: Mermaid 設定
rightAngles 類型
布林值
taskFontSize
taskFontSize
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於: Mermaid 設定
taskFontSize 類型
以下任一:string
或 number
(詳細資訊)
taskFontSize 預設值
預設值為
14
taskFontFamily
taskFontFamily
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
taskFontFamily 類型
字串
taskFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
taskMargin
taskMargin
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
taskMargin 類型
數字
taskMargin 預設值
預設值為
50
activationWidth
啟用方塊的寬度
activationWidth
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
activationWidth 類型
數字
activationWidth 預設值
預設值為
10
textPlacement
文字放置方式:tspan | fo | 舊版僅文字
textPlacement
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
textPlacement 類型
字串
textPlacement 預設值
預設值為
"fo"
actorColours
actorColours
為選用
類型:
string[]
不能為 null
定義於: Mermaid 設定
actorColours 類型
string[]
actorColours 預設值
預設值為
["#8FBC8F", "#7CFC00", "#00FFFF", "#20B2AA", "#B0E0E6", "#FFFFE0"]
sectionFills
sectionFills
為選用
類型:
string[]
不能為 null
定義於: Mermaid 設定
sectionFills 類型
string[]
sectionFills 預設值
預設值為
["#191970", "#8B008B", "#4B0082", "#2F4F4F", "#800000", "#8B4513", "#00008B"]
sectionColours
sectionColours
為選用
類型:
string[]
不能為 null
定義於: Mermaid 設定
sectionColours 類型
string[]
sectionColours 預設值
預設值為
["#fff"]
disableMulticolor
disableMulticolor
為選用
類型:
布林值
不能為 null
定義於: Mermaid 設定
disableMulticolor 類型
布林值
定義群組 GanttDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/GanttDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
titleTopMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
barHeight | 整數 | 必要 | 不能為 null | Mermaid 配置 |
barGap | 整數 | 選用 | 不能為 null | Mermaid 配置 |
topPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
rightPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
leftPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
gridLineStartPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
fontSize | 整數 | 必要 | 不能為 null | Mermaid 配置 |
sectionFontSize | 整數 | 必要 | 不能為 null | Mermaid 配置 |
numberSectionStyles | 整數 | 必要 | 不能為 null | Mermaid 配置 |
axisFormat | 字串 | 必要 | 不能為 null | Mermaid 配置 |
tickInterval | 字串 | 選用 | 不能為 null | Mermaid 配置 |
topAxis | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
displayMode | 字串 | 選用 | 不能為 null | Mermaid 配置 |
weekday | 字串 | 必要 | 不能為 null | Mermaid 配置 |
titleTopMargin
圖表上方文字的頂部邊距
titleTopMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
titleTopMargin 類型
整數
titleTopMargin 限制
最小值:此數字的值必須大於或等於:0
titleTopMargin 預設值
預設值為
25
barHeight
圖表中長條的高度
barHeight
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
barHeight 類型
整數
barHeight 限制
最小值:此數字的值必須大於或等於:0
barHeight 預設值
預設值為
20
barGap
甘特圖中不同活動之間的間距
barGap
為選用
類型:
整數
不能為 null
定義於:Mermaid 設定
barGap 類型
整數
barGap 限制
最小值:此數字的值必須大於或等於:0
barGap 預設值
預設值為
4
topPadding
標題與甘特圖之間,以及軸線與甘特圖之間的邊距。
topPadding
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
topPadding 類型
整數
topPadding 限制
最小值:此數字的值必須大於或等於:0
topPadding 預設值
預設值為
50
rightPadding
分配給活動右側區段名稱的空間
rightPadding
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
rightPadding 類型
整數
rightPadding 限制
最小值:此數字的值必須大於或等於:0
rightPadding 預設值
預設值為
75
leftPadding
分配給活動左側區段名稱的空間
leftPadding
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
leftPadding 類型
整數
leftPadding 限制
最小值:此數字的值必須大於或等於:0
leftPadding 預設值
預設值為
75
gridLineStartPadding
網格線的垂直起始位置
gridLineStartPadding
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
gridLineStartPadding 類型
整數
gridLineStartPadding 限制
最小值:此數字的值必須大於或等於:0
gridLineStartPadding 預設值
預設值為
35
fontSize
字體大小
fontSize
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
fontSize 類型
整數
fontSize 限制
最小值:此數字的值必須大於或等於:0
fontSize 預設值
預設值為
11
sectionFontSize
區段的字體大小
sectionFontSize
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
tsType:
string | number
sectionFontSize 類型
整數
sectionFontSize 限制
最小值:此數字的值必須大於或等於:0
sectionFontSize 預設值
預設值為
11
numberSectionStyles
交替區段樣式的數量
numberSectionStyles
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
numberSectionStyles 類型
整數
numberSectionStyles 限制
最小值:此數字的值必須大於或等於:0
numberSectionStyles 預設值
預設值為
4
axisFormat
軸線的日期/時間格式
這可能需要調整以符合您的地區和偏好。
axisFormat
為必要
類型:
字串
不能為 null
定義於:Mermaid 設定
axisFormat 類型
字串
axisFormat 預設值
預設值為
"%Y-%m-%d"
tickInterval
軸線刻度
模式為
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/;
tickInterval
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
tickInterval 類型
字串
tickInterval 限制
模式:字串必須符合下列正規表示式
/^([1-9][0-9]*)(millisecond|second|minute|hour|day|week|month)$/
topAxis
當此旗標設定時,日期標籤將新增至圖表的頂端
topAxis
為必要
類型:
布林值
不能為 null
定義於:Mermaid 設定
topAxis 類型
布林值
displayMode
控制顯示模式。
displayMode
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
displayMode 類型
字串
displayMode 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"" | |
"compact" | 啟用在同一列上顯示多個任務。 |
weekday
以星期為基礎的間隔應該從哪一天開始
weekday
為必要
類型:
字串
不能為 null
定義於:Mermaid 設定
weekday 類型
字串
weekday 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"monday" | |
"tuesday" | |
"wednesday" | |
"thursday" | |
"friday" | |
"saturday" | |
"sunday" |
weekday 預設值
預設值為
"sunday"
定義群組 SequenceDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/SequenceDiagramConfig" }
arrowMarkerAbsolute
arrowMarkerAbsolute
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
arrowMarkerAbsolute 類型
布林值
hideUnusedParticipants
hideUnusedParticipants
為選用
類型:
布林值
不能為 null
定義於:Mermaid 設定
hideUnusedParticipants 類型
布林值
activationWidth
啟用矩形的寬度
activationWidth
為必要
類型:
整數
不能為 null
定義於:Mermaid 設定
activationWidth 類型
整數
activationWidth 限制
最小值:此數字的值必須大於或等於:0
activationWidth 預設值
預設值為
10
diagramMarginX
序圖左右邊的邊距
diagramMarginX
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
diagramMarginX 類型
整數
diagramMarginX 約束
最小值:此數字的值必須大於或等於:0
diagramMarginX 預設值
預設值為
50
diagramMarginY
序圖上下方的邊距
diagramMarginY
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
diagramMarginY 類型
整數
diagramMarginY 約束
最小值:此數字的值必須大於或等於:0
diagramMarginY 預設值
預設值為
10
actorMargin
參與者之間的邊距
actorMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
actorMargin 類型
整數
actorMargin 約束
最小值:此數字的值必須大於或等於:0
actorMargin 預設值
預設值為
50
width
參與者方塊的寬度
width
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
width 類型
整數
width 約束
最小值:此數字的值必須大於或等於:0
width 預設值
預設值為
150
height
參與者方塊的高度
height
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
height 類型
整數
height 約束
最小值:此數字的值必須大於或等於:0
height 預設值
預設值為
50
boxMargin
迴圈方塊周圍的邊距
boxMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
boxMargin 類型
整數
boxMargin 約束
最小值:此數字的值必須大於或等於:0
boxMargin 預設值
預設值為
10
boxTextMargin
迴圈/alt/opt 方塊中文字周圍的邊距
boxTextMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
boxTextMargin 類型
整數
boxTextMargin 約束
最小值:此數字的值必須大於或等於:0
boxTextMargin 預設值
預設值為
5
noteMargin
筆記周圍的邊距
noteMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
noteMargin 類型
整數
noteMargin 約束
最小值:此數字的值必須大於或等於:0
noteMargin 預設值
預設值為
10
messageMargin
訊息之間的間距。
messageMargin
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
messageMargin 類型
整數
messageMargin 約束
最小值:此數字的值必須大於或等於:0
messageMargin 預設值
預設值為
35
messageAlign
多行訊息對齊方式
messageAlign
為必要
類型:
字串
不能為 null
定義於: Mermaid 配置
messageAlign 類型
字串
messageAlign 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"左" | |
"center" | |
"右" |
messageAlign 預設值
預設值為
"center"
mirrorActors
在圖表下方鏡像顯示參與者
mirrorActors
為必要
類型:
布林值
不能為 null
定義於: Mermaid 配置
mirrorActors 類型
布林值
mirrorActors 預設值
預設值為
true
forceMenus
強制參與者彈出選單始終可見(以支援 E2E 測試)。
forceMenus
為必要
類型:
布林值
不能為 null
定義於: Mermaid 配置
forceMenus 類型
布林值
bottomMarginAdj
向下延長圖表的邊緣。
根據 CSS 樣式,這可能需要調整。
bottomMarginAdj
為必要
類型:
整數
不能為 null
定義於: Mermaid 配置
bottomMarginAdj 類型
整數
bottomMarginAdj 約束
最小值:此數字的值必須大於或等於:0
bottomMarginAdj 預設值
預設值為
1
rightAngles
彎曲的箭頭變成直角
這會將起點和終點位於相同節點的箭頭顯示為直角,而不是曲線。
rightAngles
為必要
類型:
布林值
不能為 null
定義於: Mermaid 配置
rightAngles 類型
布林值
showSequenceNumbers
這會顯示節點編號
showSequenceNumbers
為必要
類型:
布林值
不能為 null
定義於: Mermaid 配置
showSequenceNumbers 類型
布林值
actorFontSize
這設定參與者描述的字體大小
actorFontSize
為必要
類型:以下任一項:
string
或number
(詳細資訊)不能為 null
定義於: Mermaid 配置
actorFontSize 類型
以下任一項:string
或 number
(詳細資訊)
actorFontSize 預設值
預設值為
14
actorFontFamily
這設定參與者描述的字體系列
actorFontFamily
為必要
類型:
字串
不能為 null
定義於: Mermaid 配置
actorFontFamily 類型
字串
actorFontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
actorFontWeight
這設定參與者描述的字體粗細
actorFontWeight
為必要
類型:以下任一項:
string
或number
(詳細資訊)不能為 null
定義於: Mermaid 配置
actorFontWeight 類型
以下任一項:string
或 number
(詳細資訊)
actorFontWeight 預設值
預設值為
400
noteFontSize
這設定附加於參與者的筆記的字體大小
noteFontSize
為必要
類型:以下任一項:
string
或number
(詳細資訊)不能為 null
定義於: Mermaid 配置
noteFontSize 類型
以下任一項:string
或 number
(詳細資訊)
noteFontSize 預設值
預設值為
14
noteFontFamily
這設定附加於參與者的筆記的字體系列
noteFontFamily
為必要
類型:
字串
不能為 null
定義於: Mermaid 配置
noteFontFamily 類型
字串
noteFontFamily 預設值
預設值為
"\"trebuchet ms\", verdana, arial, sans-serif"
noteFontWeight
這設定附加於參與者的筆記的字體粗細
noteFontWeight
為必要
類型:以下任一項:
string
或number
(詳細資訊)不能為 null
定義於: Mermaid 配置
noteFontWeight 類型
以下任一項:string
或 number
(詳細資訊)
noteFontWeight 預設值
預設值為
400
noteAlign
這設定附加於參與者的筆記的文字對齊方式
noteAlign
為必要
類型:
字串
不能為 null
定義於: Mermaid 配置
noteAlign 類型
字串
noteAlign 約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"左" | |
"center" | |
"右" |
noteAlign 預設值
預設值為
"center"
messageFontSize
設定角色訊息的字體大小
messageFontSize
為必要
類型:以下任一:
string
或number
(詳情)不能為 null
定義於:Mermaid 配置
messageFontSize 類型
以下任一:string
或 number
(詳情)
messageFontSize 預設值
預設值為
16
messageFontFamily
設定角色訊息的字體系列
messageFontFamily
為必要
類型:
字串
不能為 null
定義於:Mermaid 配置
messageFontFamily 類型
字串
messageFontFamily 預設值
預設值為
"\"trebuchet ms\", verdana, arial, sans-serif"
messageFontWeight
設定角色訊息的字體粗細
messageFontWeight
為必要
類型:以下任一:
string
或number
(詳情)不能為 null
定義於:Mermaid 配置
messageFontWeight 類型
以下任一:string
或 number
(詳情)
messageFontWeight 預設值
預設值為
400
wrap
此設定圖表的自動換行狀態
wrap
為選用
類型:
布林值
不能為 null
定義於:Mermaid 配置
wrap 類型
布林值
wrapPadding
此設定圖表的自動換行邊距(僅限兩側)
wrapPadding
為選用
類型:
數字
不能為 null
定義於:Mermaid 配置
wrapPadding 類型
數字
wrapPadding 預設值
預設值為
10
labelBoxWidth
設定迴圈框(loop、alt、opt、par)的寬度
labelBoxWidth
為選用
類型:
數字
不能為 null
定義於:Mermaid 配置
labelBoxWidth 類型
數字
labelBoxWidth 預設值
預設值為
50
labelBoxHeight
設定迴圈框(loop、alt、opt、par)的高度
labelBoxHeight
為選用
類型:
數字
不能為 null
定義於:Mermaid 配置
labelBoxHeight 類型
數字
labelBoxHeight 預設值
預設值為
20
messageFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
messageFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於:Mermaid 配置
tsType:
() => Partial<FontConfig>
messageFont 類型
未知 (字體計算器)
noteFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
noteFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於:Mermaid 配置
tsType:
() => Partial<FontConfig>
noteFont 類型
未知 (字體計算器)
actorFont
返回 FontConfig
的 JavaScript 函數。
預設情況下,這些函數會返回適當的 *FontSize
、*FontFamily
、*FontWeight
值。
例如,名為 boundaryFont
的字體計算器可以定義為
boundaryFont: function () {
return {
fontFamily: this.boundaryFontFamily,
fontSize: this.boundaryFontSize,
fontWeight: this.boundaryFontWeight,
};
}
actorFont
為選用
類型:未知 (字體計算器)
不能為 null
定義於:Mermaid 配置
tsType:
() => Partial<FontConfig>
actorFont 類型
未知 (字體計算器)
定義群組 FlowchartDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/FlowchartDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
titleTopMargin | 整數 | 必要 | 不能為 null | Mermaid 配置 |
subGraphTitleMargin | 物件 | 必要 | 不能為 null | Mermaid 配置 |
arrowMarkerAbsolute | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
diagramPadding | 整數 | 必要 | 不能為 null | Mermaid 配置 |
htmlLabels | 布林值 | 必要 | 不能為 null | Mermaid 配置 |
nodeSpacing | 整數 | 必要 | 不能為 null | Mermaid 配置 |
rankSpacing | 整數 | 必要 | 不能為 null | Mermaid 配置 |
curve | 字串 | 必要 | 不能為 null | Mermaid 配置 |
padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
defaultRenderer | 字串 | 必要 | 不能為 null | Mermaid 配置 |
wrappingWidth | 數字 | 必要 | 不能為 null | Mermaid 配置 |
titleTopMargin
圖表上方文字的頂部邊距
titleTopMargin
為必要
類型:
整數
不能為 null
定義於:Mermaid 配置
titleTopMargin 類型
整數
titleTopMargin 限制
最小值:此數字的值必須大於或等於:0
titleTopMargin 預設值
預設值為
25
subGraphTitleMargin
定義子圖標題的頂部/底部邊距
subGraphTitleMargin
為必要
類型:
object
(詳情)不能為 null
定義於:Mermaid 配置
subGraphTitleMargin 類型
object
(詳情)
subGraphTitleMargin 預設值
預設值為
{
"top": 0,
"bottom": 0
}
arrowMarkerAbsolute
arrowMarkerAbsolute
為選用
類型:
布林值
不能為 null
定義於:Mermaid 配置
arrowMarkerAbsolute 類型
布林值
diagramPadding
整個圖表周圍的邊距量,以便嵌入的圖表有邊距,以像素為單位表示。
diagramPadding
為必要
類型:
整數
不能為 null
定義於:Mermaid 配置
diagramPadding 類型
整數
diagramPadding 限制
最小值:此數字的值必須大於或等於:0
diagramPadding 預設值
預設值為
20
htmlLabels
設定是否應使用 html 標籤來呈現邊緣標籤的旗標。
htmlLabels
為必要
類型:
布林值
不能為 null
定義於:Mermaid 配置
htmlLabels 類型
布林值
htmlLabels 預設值
預設值為
true
nodeSpacing
定義同一層級節點之間的間距
適用於 TB(從上到下)或 BT(從下到上)圖表的水平間距,以及 LR 和 RL 圖表的垂直間距。
nodeSpacing
為必要
類型:
整數
不能為 null
定義於:Mermaid 配置
nodeSpacing 類型
整數
nodeSpacing 限制
最小值:此數字的值必須大於或等於:0
nodeSpacing 預設值
預設值為
50
rankSpacing
定義不同層級節點之間的間距
適用於 TB(從上到下)或 BT(從下到上)圖表的水平間距,以及 LR 和 RL 圖表的垂直間距。
rankSpacing
為必要
類型:
整數
不能為 null
定義於:Mermaid 配置
rankSpacing 類型
整數
rankSpacing 限制
最小值:此數字的值必須大於或等於:0
rankSpacing 預設值
預設值為
50
curve
定義 mermaid 如何呈現流程圖的曲線。
curve
為必要
類型:
字串
不能為 null
定義於:Mermaid 配置
curve 類型
字串
curve 限制
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"基礎" | |
"線性" | |
"基數" |
曲線預設值
預設值為
"basis"
內距
表示標籤與形狀之間的內距
僅用於新的實驗性渲染。
padding
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
內距類型
數字
內距預設值
預設值為
15
預設渲染器
決定用於渲染的渲染引擎。
defaultRenderer
為必要
類型:
字串
不能為 null
定義於: Mermaid 設定
預設渲染器類型
字串
預設渲染器約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"dagre-d3" | [dagre-d3-es](https://www.npmjs.com/package/dagre-d3-es) 庫。 |
"dagre-wrapper" | 在 mermaid 中實作的 dagre 包裝器 |
"elk" | 使用 [elkjs](https://github.com/kieler/elkjs) 佈局 |
預設渲染器預設值
預設值為
"dagre-wrapper"
文字換行寬度
文字換行的節點寬度。
當使用 Markdown 字串時,文字會自動換行,此值設定文字在換行前的最大寬度。
wrappingWidth
為必要
類型:
數字
不能為 null
定義於: Mermaid 設定
文字換行寬度類型
數字
文字換行寬度預設值
預設值為
200
定義群組 SankeyLinkColor
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/SankeyLinkColor" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|
定義群組 SankeyNodeAlignment
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/SankeyNodeAlignment" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|
定義群組 SankeyDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/SankeyDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
width | 數字 | 選用 | 不能為 null | Mermaid 配置 |
height | 數字 | 選用 | 不能為 null | Mermaid 配置 |
連結顏色 | 合併 | 選用 | 不能為 null | Mermaid 配置 |
節點對齊 | 字串 | 選用 | 不能為 null | Mermaid 配置 |
useMaxWidth | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
顯示數值 | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
前綴 | 字串 | 選用 | 不能為 null | Mermaid 配置 |
後綴 | 字串 | 選用 | 不能為 null | Mermaid 配置 |
寬度
width
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
寬度類型
數字
寬度預設值
預設值為
600
高度
height
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
高度類型
數字
高度預設值
預設值為
400
連結顏色
桑基圖中連結的顏色。
連結顏色
為選用
類型:合併類型 (詳情)
不能為 null
定義於: Mermaid 設定
連結顏色類型
合併類型 (詳情)
任一
連結顏色預設值
預設值為
"gradient"
節點對齊
控制桑基圖的對齊方式。
請參閱 https://github.com/d3/d3-sankey#alignments。
節點對齊
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
節點對齊類型
字串
節點對齊約束
列舉:此屬性的值必須等於下列其中一個值
值 | 說明 |
---|---|
"左" | 將所有輸入對齊到左側。 |
"右" | 將所有輸出對齊到右側。 |
"center" | 類似 `left`,但沒有任何傳入連結的節點會盡可能地移到右側。 |
"對齊" | 類似 `left`,但沒有任何傳出連結的節點會移到最右側。 |
節點對齊預設值
預設值為
"justify"
使用最大寬度
useMaxWidth
為選用
類型:
布林值
不能為 null
定義於: Mermaid 設定
使用最大寬度類型
布林值
顯示數值
切換以顯示或隱藏標題旁的數值。
顯示數值
為選用
類型:
布林值
不能為 null
定義於: Mermaid 設定
顯示數值類型
布林值
顯示數值預設值
預設值為
true
前綴
用於數值的前綴
前綴
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
前綴類型
字串
後綴
用於數值的後綴
後綴
為選用
類型:
字串
不能為 null
定義於: Mermaid 設定
後綴類型
字串
定義群組 PacketDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/PacketDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
行高 | 數字 | 選用 | 不能為 null | Mermaid 配置 |
位元寬度 | 數字 | 選用 | 不能為 null | Mermaid 配置 |
每行位元數 | 數字 | 選用 | 不能為 null | Mermaid 配置 |
顯示位元 | 布林值 | 選用 | 不能為 null | Mermaid 配置 |
水平內距 | 數字 | 選用 | 不能為 null | Mermaid 配置 |
垂直內距 | 數字 | 選用 | 不能為 null | Mermaid 配置 |
行高
封包圖中每一行的高度。
行高
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
行高類型
數字
行高約束
最小值:此數字的值必須大於或等於:1
行高預設值
預設值為
32
位元寬度
封包圖中每個位元的寬度。
位元寬度
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
位元寬度類型
數字
位元寬度約束
最小值:此數字的值必須大於或等於:1
位元寬度預設值
預設值為
32
每行位元數
每行要顯示的位元數。
每行位元數
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
每行位元數類型
數字
每行位元數約束
最小值:此數字的值必須大於或等於:1
每行位元數預設值
預設值為
32
顯示位元
切換以顯示或隱藏位元編號。
顯示位元
為選用
類型:
布林值
不能為 null
定義於: Mermaid 設定
顯示位元類型
布林值
顯示位元預設值
預設值為
true
水平內距
一行中區塊之間的水平內距。
水平內距
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
水平內距類型
數字
水平內距約束
最小值:此數字的值必須大於或等於:0
水平內距預設值
預設值為
5
垂直內距
行之間的垂直內距。
垂直內距
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
垂直內距類型
數字
垂直內距約束
最小值:此數字的值必須大於或等於:0
垂直內距預設值
預設值為
5
定義群組 BlockDiagramConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/BlockDiagramConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
padding | 數字 | 選用 | 不能為 null | Mermaid 配置 |
內距
padding
為選用
類型:
數字
不能為 null
定義於: Mermaid 設定
內距類型
數字
內距約束
最小值:此數字的值必須大於或等於:0
padding 預設值
預設值為
8
定義群組 FontCalculator
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/FontCalculator" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|
定義群組 FontConfig
使用以下方式參考此群組
{ "$ref": "https://mermaid.dev.org.tw/schemas/config.schema.json#/$defs/FontConfig" }
屬性 | 類型 | 必要 | 可為 Null | 定義者 |
---|---|---|---|---|
fontSize | 多種 | 選用 | 不能為 null | Mermaid 配置 |
fontFamily | 字串 | 選用 | 不能為 null | Mermaid 配置 |
fontWeight | 多種 | 選用 | 不能為 null | Mermaid 配置 |
fontSize
要使用的字體大小
fontSize
為選用
類型:以下任一:
string
或number
(CSS 字體大小)不能為 null
定義於:Mermaid 設定
fontSize 類型
以下任一:string
或 number
(CSS 字體大小)
fontSize 預設值
預設值為
14
fontFamily
要使用的 CSS font-family
。
fontFamily
為選用
類型:
字串
不能為 null
定義於:Mermaid 設定
fontFamily 類型
字串
fontFamily 預設值
預設值為
"\"Open Sans\", sans-serif"
fontWeight
要使用的字體粗細。
fontWeight
為選用
類型:以下任一:
string
或number
(詳細資訊)不能為 null
定義於:Mermaid 設定
fontWeight 類型
以下任一:string
或 number
(詳細資訊)
fontWeight 預設值
預設值為
"normal"