2023-02-19 08:38:13 +01:00
> **Warning**
>
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
>
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/interfaces/mermaidAPI.RenderResult.md](../../../../packages/mermaid/src/docs/config/setup/interfaces/mermaidAPI.RenderResult.md).
# Interface: RenderResult
[mermaidAPI ](../modules/mermaidAPI.md ).RenderResult
## Properties
### bindFunctions
• `Optional` **bindFunctions** : (`element`: `Element` ) => `void`
#### Type declaration
▸ (`element`): `void`
2023-02-20 13:23:07 +01:00
Bind function to be called after the svg has been inserted into the DOM.
This is necessary for adding event listeners to the elements in the svg.
```js
const { svg, bindFunctions } = mermaidAPI.render('id1', 'graph TD;A-->B');
div.innerHTML = svg;
bindFunctions?.(div); // To call bindFunctions only if it's present.
```
2023-02-19 08:38:13 +01:00
##### Parameters
| Name | Type |
| :-------- | :-------- |
| `element` | `Element` |
##### Returns
`void`
#### Defined in
2023-12-08 05:27:08 +01:00
[mermaidAPI.ts:94 ](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L94 )
2023-12-06 16:41:07 +01:00
---
### diagramType
• **diagramType** : `string`
The diagram type, e.g. 'flowchart', 'sequence', etc.
#### Defined in
2023-12-08 05:27:08 +01:00
[mermaidAPI.ts:84 ](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L84 )
2023-02-19 08:38:13 +01:00
---
### svg
• **svg** : `string`
2023-02-20 13:23:07 +01:00
The svg code for the rendered graph.
2023-02-19 08:38:13 +01:00
#### Defined in
2023-12-08 05:27:08 +01:00
[mermaidAPI.ts:80 ](https://github.com/mermaid-js/mermaid/blob/master/packages/mermaid/src/mermaidAPI.ts#L80 )