Skip to content

Untitled boolean in Mermaid Config Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/properties/elk/properties/keepEntryNodeOnTop

每个特定选项都会将递归流程的入口节点保持在布局的顶部。当流程自身回环(回边到一个早期节点)时,ELK的基于度的循环断开算法没有"entry point"的概念,可能会将第一次声明的节点排列在中间,从而打乱阅读顺序。启用后,每个循环组件的入口节点都会固定在第一层,这样图表仍然可以从入口点阅读。非循环流程总是有一个自然的源,因此这对它们没有影响。

Only applies when the cyclic flow has no node without incoming edges: if the loop is fed from outside (e.g. a start node pointing into it), that component already has a natural source and nothing is pinned. Detection is also scoped per container, so cycles that cross a subgraph boundary are not detected.

AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusUnknown identifiabilityForbiddenAllowednoneconfig.schema.json*

keepEntryNodeOnTop Type

boolean

keepEntryNodeOnTop Default Value

The default value is:

json
false
Opens in mermaid.ai