1.0.6 • Published 3 years ago

mxgraph-type-definitions v1.0.6

Weekly downloads
111
License
Apache-2.0
Repository
github
Last release
3 years ago

mxGraph Type Definitions

Build npm version

This project is typescript definitions for mxGraph.

This project provide global type definitions for mxgraph, if you are working with official mxgraph npm package, please see our new package typed-mxgraph which design for mxgraph npm package.

Usage

install mxgraph-type-definitions dependencie and append node_modules/mxgraph-type-definitions to typeRoots in tsconfig.json

npm install --save-dev mxgraph-type-definitions
{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "esModuleInterop": true,
    "typeRoots": [
      "node_modules/@types",
      "node_modules/mxgraph-type-definitions"
    ]
  }
}

As #29 said, mxClient will not work if installed via npm. It is recommended to add this project as a submodule to you project. Here is a demo. If you are using this npm package, typed-mxgraph may be more appropriate.

Progress

The definitions currently target mxGraph 4.1.1. See the implementation status in the following table.

  • progress: initial support
    • not yet: no support at all
    • partial: implementation started but some classes/fields/methods are missing
    • completed: all classes/fields/methods should exist (fill an issue and/or provide a Pull Request if you detect an issue) but
      • TSDoc is not fully accurate
      • some type declaration may be wrong
  • checked: a finest review has been conducted about TSDoc, mxGraph types used by functions/methods, fields, ...
ModuleProgressChecked
editornot yetno
handlercompletedno
iocompletedno
layoutcompletedno
modelcompletedno
shapecompletedno
utilpartialno
viewpartialno
mxClient.d.tscompletedno

Also See

We are actively developing, if you want to be a contributor, please refer to the following links

Some Useful Regular Expressions

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago