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

When this flag is set to true, the height and width is set to 100% and is then scaled with the available space. If set to false, the absolute space required is used.

useMaxWidth

useMaxWidth Type

boolean

useMaxWidth Default Value

The default value is:

json
true