4.2.0 • Published 4 years ago

mxgraph-factory v4.2.0

Weekly downloads
77
License
Apache-2.0
Repository
github
Last release
4 years ago

mxGraph Factory

Overview

A tiny wrapper around mxgraph that provides a configurable TypeScript compatible package.

Usage

import { mxgraph, mxgraphFactory } from "mxgraph-factory";

const { mxGraph, mxGraphModel } = mxgraphFactory({
    mxLoadResources: false,
    mxLoadStylesheets: false,
});

const container = document.getElementById("mxgraph-container");
if (container) {
    const model: mxgraph.mxGraphModel = new mxGraphModel();
    const graph: mxgraph.mxGraph = new mxGraph(container, model);
}

License

Apache 2.0 License

4.2.0

4 years ago

4.1.1

4 years ago

4.1.0

4 years ago

4.0.6

4 years ago

4.0.3

5 years ago

3.9.8

5 years ago