Butterfly - JavaScript Diagramming library
		
			Nov 04, 2022
			in Slideshow
			2363 views
		
		
		
			
									Download
													
								
				
					
						User Rating:  0/5 ( 0 votes) 
						
					 
					
	Butterfly is a JavaScript Diagramming library which concentrate on flow layout canvas
	Features
	- 
		Simple & Powerful & Rich DEMO
 
	- 
		Manage the canvas in all aspects, developers only need to focus more on customized needs
 
	- 
		Use DOM/REACT/VUE to customize elements: flexibility and excellent expandability
 
											
						Source: github.com
									 
				
					
	Import Method
	
// Full version, including jQuery and lodash internally
import {Canvas, Group, Node, Edge} from 'butterfly-dag';
import 'butterfly-dag/dist/index.css';
// If your project uses jQuery and lodash, in order to reduce the size of the project, we suggest:
import {Canvas, Group, Node, Edge} from 'butterfly-dag/pack/index.js';
import 'butterfly-dag/pack/index.css';
	
		Create Canvas
 
	
import {Canvas} from 'butterfly-dag';
let canvas = new Canvas({
  root: dom,              //canvas root dom (require)
  zoomable: true,         //enable zoom canvas (option)
  moveable: true,         //enable move canvas (option)
  draggable: true,        //enable drag nodes (options)
});
canvas.draw({
  groups: [],  // group  data
  nodes: [],  // nodes data
  edges: []  // edges data
})
 
	API Document
	!!! 3.x API documentation, please go tohere;