Skip to content

Untitled number in Mermaid Config Schema ​

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

节点标签区域的最小宽度。比这个宽的标签会被加宽,所以短文本的节点也会有统一的宽度;节点自身的内边距会叠加上去,就像 wrappingWidth 的情况一样。设置了明确宽度的节点不受影响。

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

minNodeWidth Type ​

number

minNodeWidth Default Value ​

The default value is:

json
120
Opens in mermaid.ai