hungtcs / mxgraph-type-definitions

mxgraph type definitions
https://www.npmjs.com/package/mxgraph-type-definitions
Apache License 2.0
20 stars 8 forks source link

Contact: let's share efforts to implement 'mxgraph-type-definitions' #1

Closed tbouffard closed 4 years ago

tbouffard commented 4 years ago

Hi, I am contacting you to propose my help (and probably additional help from some of my colleagues) to work with you on this project. My goal is to have a mxgraph types definition directly available in DefinitelyTyped, see https://github.com/DefinitelyTyped/DefinitelyTyped/issues/5317

Currently, there are a lot of repositories that try to develop an attempt for such types but none reach completeness and the efforts are spread all around instead of mutualizing everyone energy on a single solution.

I have recently found your repository: it looks like very promising and you are currently actively working on it. I especially like the fact that, unlike other repositories, you define a definition file per mxgraph class. IMHO, this is a huge benefits in the maintainability field: it will be easier to know where to look/go when a new function is added to mxgraph and must be reflect to the types definition. This will avoid having a very large definition file as mxgraph defines a lot of types, so this will also easier to navigate and have a look at the code.

Here is a list of repositories I know that try to achieve types definition for mxgraph (they all miss a lot of functions and it is unclear which mxgraph they target)

Currently, these repositories have an advantage on yours: they added documentation to class/function which helps when using an IDE. However, this documentation is directly copied from the mxgraph source code, so it is not fully JSDoc compliant. I think this in an area on which your current implementation may be improved and I could help on this (among other thing)

I hope to hear from you soon Thomas

hungtcs commented 4 years ago

Hi @tbouffard, The content of this repository is currently very imperfect, most of these files comes from mxGraph API Specification, I don't have any special maintenance, just supplement it when I need to use the missing parts.

It's a great honor to work with you, what should I do now? I have no experience of working with other people on GitHub.

tbouffard commented 4 years ago

hello @hungtcs good news

For now, there is nothing special to do on the repository on your side (in the following I added links to the GitHub help in case you need information about the way contributions can be done).

I am going to fork it, do some changes and propose a pull request that you would be able to review and eventually merge into your repository

As 1st attempt, I am going to have a look at the shape folder.

tbouffard commented 4 years ago

1st contribution now available for review and discussion, see #2

hungtcs commented 4 years ago

Hi @tbouffard! #2 is merged. And my local project has some uncommitted changes to the shape module, which are now merged.

tbouffard commented 4 years ago

@hungtcs thanks again for the merge

I have started an effort to have mxGraph TypeScript available through DefinitelyTyped, see https://github.com/process-analytics/mxgraph-road-to-DefinitelyTyped Will you ok to join me on this?

I have proposed your repository as the working place to implement the definitions, I guess that for now, this shouldn't change anything for you except that you may receive more contributions and some discussions may happen about the definitions implementation

hungtcs commented 4 years ago

@tbouffard My pleasure :smiley:

tbouffard commented 4 years ago

Great, I have udpated the readme of the followup repo. I close his PR as we are done on this subject.