mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-31 10:54:15 +01:00 
			
		
		
		
	 5ff308f0c6
			
		
	
	5ff308f0c6
	
	
	
		
			
			* develop: Remove unnecessary tests chore: Add deprecation notices, improve types chore: Cleanup gitGraph tests refactor: Move setWrap to individual diagrams as necessary. refactor: Remove directives from grammar refactor: Update DBs to remove directive handling refactor: Move directive processing before parsing
		
			
				
	
	
	
		
			1.3 KiB
		
	
	
	
	
	
	
	
			
		
		
	
	
			1.3 KiB
		
	
	
	
	
	
	
	
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.
Interface: RenderResult
mermaidAPI.RenderResult
Properties
bindFunctions
• Optional bindFunctions: (element: Element) => void
Type declaration
▸ (element): void
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.
const { svg, bindFunctions } = mermaidAPI.render('id1', 'graph TD;A-->B');
div.innerHTML = svg;
bindFunctions?.(div); // To call bindFunctions only if it's present.
Parameters
| Name | Type | 
|---|---|
| element | Element | 
Returns
void
Defined in
svg
• svg: string
The svg code for the rendered graph.