主题
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
当此标志设置为 true
时,高度和宽度设置为 100%,然后使用可用空间缩放。如果设置为 false
,则使用所需的绝对空间。
useMaxWidth
is optional
Type:
boolean
cannot be null
defined in: Mermaid Config
useMaxWidth Type
boolean
useMaxWidth Default Value
The default value is:
json
true