# ts-mxgraph

> A Tiny Typescript Wrapper for mxgraph

Latest version **1.0.0** (published 2020-01-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install ts-mxgraph
pnpm add ts-mxgraph
yarn add ts-mxgraph
bun add ts-mxgraph
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2020-01-28 |
| First published | 2020-01-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | rabpeter |
| Maintainers | rabpeter |
| Keywords | typescript, mxgraph |

## Links

- npm: https://www.npmjs.com/package/ts-mxgraph
- Repository: https://github.com/rabpeter/ts-mxgraph
- Homepage: https://github.com/rabpeter/ts-mxgraph#readme
- Issues: https://github.com/rabpeter/ts-mxgraph/issues
- npm.io page: https://npm.io/package/ts-mxgraph

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2020-01-28

## README

# A Tiny Typescript Wrapper for mxgraph

## Overview

A tiny wrapper around [mxgraph](https://github.com/jgraph/mxgraph-js) that
provides a configurable TypeScript compatible package.

## Usage
```sh
npm i -D ts-mxgraph
```

```typescript
import { mxgraph, mxgraphFactory } from "ts-mxgraph";

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](LICENSE)

---
_Source: https://npm.io/package/ts-mxgraph · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
