Class MermaidConfiguration
java.lang.Object
org.apache.maven.doxia.site.MermaidConfiguration
- All Implemented Interfaces:
Serializable, Cloneable
The configuration used for rendering Mermaid diagrams
(https://mermaid.ai/open-source/) on client-side.
- Version:
- $Revision$ $Date$
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.private ExternalJsThe URL from which to request the javascript used for rendering the diagrams.private booleanIf Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Method clone.booleanMethod equals.Get the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.Get the URL from which to request the javascript used for rendering the diagrams.inthashCode()Method hashCode.booleanGet if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used.voidSet the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.voidsetExternalJs(ExternalJs externalJs) Set the URL from which to request the javascript used for rendering the diagrams.voidsetUseTiny(boolean useTiny) Set if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used.toString()Method toString.
-
Field Details
-
externalJs
The URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site) -
useTiny
private boolean useTinyIf Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set -
config
The Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.
-
-
Constructor Details
-
MermaidConfiguration
public MermaidConfiguration()
-
-
Method Details
-
clone
Method clone. -
equals
-
getConfig
Get the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.- Returns:
- String
-
getExternalJs
Get the URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site).- Returns:
- ExternalJs
-
hashCode
-
isUseTiny
public boolean isUseTiny()Get if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set.- Returns:
- boolean
-
setConfig
Set the Mermaid configuration in JSON format as described in https://mermaid.ai/open-source/config/setup/mermaid/interfaces/MermaidConfig.html.- Parameters:
config- a config object.
-
setExternalJs
Set the URL from which to request the javascript used for rendering the diagrams. If not set an embedded version of Mermaid is used (which is automatically deployed to the site).- Parameters:
externalJs- a externalJs object.
-
setUseTiny
public void setUseTiny(boolean useTiny) Set if Tiny Mermaid (https://github.com/mermaid-js/mermaid/tree/develop/packages/tiny#tiny-mermaid) should be used. Only considered if "externalJsUrl" is not set.- Parameters:
useTiny- a useTiny object.
-
toString
-