主题
Untitled object in Mermaid Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/properties/elk
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
elk Type
object
(Details)
elk Properties
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
mergeEdges | boolean | Optional | cannot be null | Mermaid Config |
nodePlacementStrategy | string | Optional | cannot be null | Mermaid Config |
cycleBreakingStrategy | string | Optional | cannot be null | Mermaid Config |
mergeEdges
Elk 特定选项允许边在方便的地方共享路径。它可以制作漂亮的图表,但也会使图表更难阅读。
mergeEdges
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
mergeEdges Type
boolean
nodePlacementStrategy
Elk 特定选项影响节点的放置方式。
nodePlacementStrategy
is optional
Type:
string
cannot be null
defined in: Mermaid Config
nodePlacementStrategy Type
string
nodePlacementStrategy Constraints
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"SIMPLE" | |
"NETWORK_SIMPLEX" | |
"LINEAR_SEGMENTS" | |
"BRANDES_KOEPF" |
nodePlacementStrategy Default Value
The default value is:
json
"BRANDES_KOEPF"
cycleBreakingStrategy
此策略决定如何在图中查找循环并决定哪些边需要调整以打破循环。
cycleBreakingStrategy
is optional
Type:
string
cannot be null
defined in: Mermaid Config
cycleBreakingStrategy Type
string
cycleBreakingStrategy Constraints
enum: the value of this property must be equal to one of the following values:
Value | Explanation |
---|---|
"GREEDY" | |
"DEPTH_FIRST" | |
"INTERACTIVE" | |
"MODEL_ORDER" | |
"GREEDY_MODEL_ORDER" |
cycleBreakingStrategy Default Value
The default value is:
json
"GREEDY_MODEL_ORDER"