MMEditor

mmeditor

基于 nebulagraph-veditor 的 TypeScript 重写版 SVG 流程图编辑器。

Install

npm install mmeditor

Quick Start

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());

Features

Develop

npm install
npm start        # dev server
npm run build    # build library
npm run build:all # build everything

License

ISC