Base Diagram Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/$defs/BaseDiagramConfig
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | No | Forbidden | Allowed | none | config.schema.json* |
BaseDiagramConfig Type
object
(Base Diagram Config)
BaseDiagramConfig Properties
Property | Type | Required | Nullable | Defined by |
---|---|---|---|---|
useWidth | number | Optional | cannot be null | Mermaid Config |
useMaxWidth | boolean | Optional | cannot be null | Mermaid Config |
useWidth
useWidth
is optional
Type:
number
cannot be null
defined in: Mermaid Config
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
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
useMaxWidth Type
boolean
useMaxWidth Default Value
The default value is:
json
true