Use this skill for tasks inside projects that depend on mmeditor, or when the user wants help building flows with MMEditor.
import MMEditor from "mmeditor" for app integration.window.MMEditor only for browser-script examples that load dist/MMEditor.browser.js.editor.schema.setInitData(...) or incremental graph APIs.editor.schema.format() and editor.controller.autoFit() to produce a readable first view.graph.node.registeNode(...) for custom nodes and graph.line.registeLine(...) for custom lines.graph.on(...) or editor.on(...) instead of patching internal rendering code.src/index.tsREADME.mddocs/README.mddocs/get-started.mddocs/demos.mddocs/custom-shape.mddocs/events.mddocs/migration-from-nebulagraph-veditor.mddocs/ as the public surface.Minimap is the documented plugin entry today.BrushSelector exists in source/types, but is not a documented stable public feature.import MMEditor from "mmeditor";
const editor = new MMEditor({
dom: document.getElementById("root") as HTMLDivElement,
showMiniMap: true,
});
await editor.schema.setInitData({ nodes: [], lines: [] });
editor.schema.format();
editor.controller.autoFit();
docs/get-started.md for initialization and data loading.docs/custom-shape.md before implementing custom node or line types.docs/events.md when wiring interactions or editor events.docs/demos.md to pick the closest runnable example before writing new sample code.