基于 nebulagraph-veditor 的 TypeScript 重写版 SVG 流程图编辑器。
npm install mmeditor
import MMEditor from "mmeditor";
const editor = new MMEditor({ dom: document.getElementById("root") });
// add node
editor.graph.node.addNode({
uuid: "node1",
type: "default",
name: "Node 1",
x: 100,
y: 100,
});
// get data
console.log(editor.schema.getData());
npm install
npm start # dev server
npm run build # build library
npm run build:all # build everything
ISC