Skip to content

Base Diagram Config Schema

txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/BaseDiagramConfig
AbstractExtensibleStatusIdentifiableCustom PropertiesAdditional PropertiesAccess RestrictionsDefined In
Can be instantiatedNoUnknown statusNoForbiddenAllowednoneconfig.schema.json*

BaseDiagramConfig Type

object (Base Diagram Config)

BaseDiagramConfig Properties

PropertyTypeRequiredNullableDefined by
useWidthnumberOptionalcannot be nullMermaid Config
useMaxWidthbooleanOptionalcannot be nullMermaid Config

useWidth

useWidth

useWidth Type

number

useMaxWidth

当此标志设置为 true 时,高度和宽度设置为 100%,然后使用可用空间缩放。如果设置为 false,则使用所需的绝对空间。

useMaxWidth

useMaxWidth Type

boolean

useMaxWidth Default Value

The default value is:

json
true