Giter Site home page Giter Site logo

hungtcs / mxgraph-type-definitions Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 8.0 555 KB

mxgraph type definitions

Home Page: https://www.npmjs.com/package/mxgraph-type-definitions

License: Apache License 2.0

TypeScript 73.97% JavaScript 26.03%
mxgraph types typescript type-definitions

mxgraph-type-definitions's Introduction

NOTE 2020-12-16: Now we decide to migrate to typed-mxgraph, which is a more complete repository that matches the npm package. v1.0.6 is the final version.

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, ...
Module Progress Checked
editor not yet no
handler completed no
io completed no
layout completed no
model completed no
shape completed no
util partial no
view partial no
mxClient.d.ts completed no

Also See

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

Some Useful Regular Expressions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.