主题
Untitled array in Mermaid Config Schema
txt
https://mermaid.js.org/schemas/config.schema.json#/properties/secure
此选项控制哪些 currentConfig
密钥被视为安全,并且只能通过调用 mermaid.initialize
进行更改。这可以防止恶意图形指令覆盖站点的默认安全性。
Abstract | Extensible | Status | Identifiable | Custom Properties | Additional Properties | Access Restrictions | Defined In |
---|---|---|---|---|---|---|---|
Can be instantiated | No | Unknown status | Unknown identifiability | Forbidden | Allowed | none | config.schema.json* |
secure Type
string[]
secure Default Value
The default value is:
json
["secure", "securityLevel", "startOnLoad", "maxTextSize", "suppressErrorRendering", "maxEdges"]