Config class abstract

Annotations
  • @JS()
  • @anonymous

Constructors

Config({String securityLevel, String? theme, String themeCSS, num logLevel, bool startOnLoad, bool arrowMarkerAbsolute, FlowChartConfig flowchart, SequenceDiagramConfig sequence, GnattConfig gnatt, dynamic git})
factory

Properties

arrowMarkerAbsolute bool
arrowMarkerAbsolute - This options controls whether or arrow markers in html code will be absolute paths or an anchor, #. This matters if you are using base tag settings. default: false
getter/setter pair
deterministicIds bool
This option controls if the generated ids of nodes in the SVG are generated randomly or based on a seed. If set to false, the IDs are generated based on the current date and thus are not deterministic. This is the default behaviour. Notes: This matters if your files are checked into sourcecontrol e.g. git and should not change unless content is changed.
getter/setter pair
deterministicIDSeed bool?
This option is the optional seed for deterministic ids. if set to null but deterministicIds is true, a simple number iterator is used. You can set this attribute to base the seed on a static string.
getter/setter pair
flowchart FlowChartConfig
flowchart
getter/setter pair
git ↔ dynamic
getter/setter pair
gnatt GnattConfig
gantt
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
logLevel num
logLevel , decides the amount of logging to be used. See LogLevel class for possible values. default: LogLevel.Fatal
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secure List<String>
This option controls which currentConfig keys are considered secure and can only be changed via call to mermaidAPI.initialize. Calls to mermaidAPI.reinitialize cannot make changes to the secure keys in the current currentConfig. This prevents malicious graph directives from overriding a site's default security. Notes: Default value: ['secure', 'securityLevel', 'startOnLoad', 'maxTextSize']
getter/setter pair
securityLevel String
Disallow/allow potentially dangerous cross-site scripting behavior. See SecurityLevel class for possible values. default: SecurityLevel.Strict If the value is not present, the default behavior is SecurityLevel.Strict
getter/setter pair
sequence SequenceDiagramConfig
sequenceDiagram
getter/setter pair
startOnLoad bool
startOnLoad - This options controls whether or mermaid starts when the page loads default: true
getter/setter pair
theme String?
See Theme class for possible values.
getter/setter pair
themeCSS String
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

stringifyConfig(Config? c) String