Skip to content

Untitled boolean in Mermaid Config Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/ArchitectureDiagramConfig/properties/randomize

在运行布局算法之前是否随机化初始节点位置。当为 false(默认值)时,节点从确定的初始位置开始。当为 true 时,节点从随机位置开始,这可能产生不同但潜在更合理间距的布局 layouts. Note: randomize: false alone does NOT guarantee identical renders, because the underlying fcose layout still uses Math.random() internally during its constraint solver — use the seed option for full determinism.

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

randomize Type

boolean

randomize Default Value

The default value is:

json
false
Opens in mermaid.ai