Home

Awesome

mxgraph-road-to-DefinitelyTyped

Archived on 2021-09-17See https://github.com/maxGraph/maxGraph (the mxGraph successor) that will natively support TypeScript in the future. For usage of types for the EOL mxGraph lib, see https://github.com/typed-mxgraph/typed-mxgraph.

This is a community effort followup to provide mxGraph TypeScript definition through the DefinitelyTyped project and close mxGraph integration in DefinitelyTyped.

DISCLAIMER

mxGraph TypeScript status and motivations

mxGraph is a javascript lib and its maintainers have no plan to support TypeScript. (See mxGraph #81). However, there is a large demand for this kind of support, especially from people who want to use mxGraph in Angular and React applications.

Various individual efforts exist to make mxGraph TypeScript usage easier and consist on:

Everybody is working individually on their own solutions leading to the following issues:

So, the current effort aims to help volunteers implement a single, documented, maintained, up to date solution, available through the DefinitelyTyped project project.

<!-- mxGraph issues about typescript: - https://github.com/jgraph/mxgraph/issues?q=is%3Aissue+typescript - https://github.com/jgraph/mxgraph2/issues?q=is%3Aissue+typescript - https://stackoverflow.com/search?q=mxgraph+typescript mxGraph usage in Angular application, for instance: https://github.com/jgraph/mxgraph/issues/88#issuecomment-389041312 TODO search for angular and react -->

Existing solutions

This is a non exhaustive list that presents various solutions with information about their activity status and implementation choices.

Notice that there are previous discussions on mxGraph GitHub issues

Previous attempts to make types available via DefinitelyTyped

Onboarding people who have individual repositories/packages

This current proposal is to invite all volunteers to contribute to the typed-mxgraph/typed-mxgraph repository (initial work started on hungtcs/mxgraph-type-definitions which has been deprecated on 2020-12-16). Then we may eventually propose a Pull Request to DefinitelyTyped.

If you think that there is something among the existing solutions that already provide a better support than the proposed repository, please submit an issue to start a discussion about that.

Approach

We will try to identify those people who have already developed mxGraph type definitions and contact them to see if they want to join this team effort. We'll track the contact followups below in this page.
First, we'll contact the original authors of a repository, then people who have forked it and/or have made contributions (locally or in the upstream repo).

If you find a repository not listed in the tracking list or in the existing solutions page, please feel free to contact the owner yourself and create a Pull Request in this repository to help us to track contacts.

If you are interested in this community effort, please submit an issue in this repository to start a discussion and describe how you want to participate. We welcome your participation!

You can also directly submit issues and Pull Requests in https://github.com/typed-mxgraph/typed-mxgraph for direct contributions to Typescript definitions.

Volunteers followup

The following people have already joined this initiative.

GH UserContactComments
@aibcmars-bpmn-visualization-js contributor
@aleicsaleics/mxgraph-types/issues#1Previously attempt to propose a PR to DefinitelyTyped
@csouchet-bpmn-visualization-js contributor
@hungtcshungtcs/mxgraph-type-definitions#1Accept that his repository serves for community contributions before moving to DefinitelyTyped
@tbouffard-Initiate and animate this community effort, main motivation: have a seamless mxGraph integration in bpmn-visualization-js

Pending requests

None for now!

<!-- | [@](https://github.com/) | []() (2020-04-) | | -->

Dismissed

GH UserReasonContactComments
@asualno longer work on a project that requires mxGraph and probably won't have the time to contribute activelyasual/mxgraph-factory#9He regularly updates types after new mxGraph releases
@lgleimno longer work on a project that requires mxGraph and probably won't have the time to contribute activelylgleim/mxgraph-typings#12His repository is probably the most forked and used on GitHub

Unreachable

GH UserContactComments
@amirazizamiraziz/ang-mxgraph#1 (2020-04-30)3 commits on January 2019 in a personal repository
@gooddaytodayDefinitelyTyped#5317 (2020-04-13)He created the mxGraph integration in DefinitelyTyped issue
@rabpeterrabpeter/ts-mxgraph-typings#1 (2020-04-14)Recent activities: new repository and npm packages publishing