mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
Clarification
This commit is contained in:
@@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
## mermaidAPI
|
## mermaidAPI
|
||||||
|
|
||||||
This is the api to be used when handling the integration with the web page instead of using the default integration
|
This is the api to be used when optionally handling the integration with the web page, instead of using the default integration provided by mermaid.js.
|
||||||
(mermaid.js).
|
|
||||||
|
|
||||||
The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph definition as text, renders the graph/diagram and returns an svg element for the graph.
|
The core of this api is the [**render**](https://github.com/knsv/mermaid/blob/master/docs/mermaidAPI.md#render) function which, given a graph definition as text, renders the graph/diagram and returns an svg element for the graph.
|
||||||
|
|
||||||
It is is then up to the user of the API to make use of the svg, either insert it
|
It is is then up to the user of the API to make use of the svg, either insert it somewhere in the page or do something completely different.
|
||||||
somewhere in the page or do something completely different.
|
|
||||||
|
In addition to the render function, a number of behavioral options are available.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user