Web的简单dag编辑器工具
用法
安装
yarn add simple-dag-editor
在里面
import { Editor } from 'simple-dag-editor'
const editor = new Editor ( {
container : string , // editor container dom selector
page : string , // editor canvas page container dom selector
itempanel : string , // editor items panel container dom selector
} )
套准形状
editor.registerShape(shapeName, shape) interface IShape {
shape : string
1