ts-mxgraph-factory
TypeScript icon, indicating that this package has built-in type declarations

4.0.8-rc1 • Public • Published

Typescript 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

Readme

Keywords

Package Sidebar

Install

npm i ts-mxgraph-factory

Weekly Downloads

26

Version

4.0.8-rc1

License

Apache-2.0

Unpacked Size

3.93 MB

Total Files

9

Last publish

Collaborators

  • rabpeter