Replies: 5 comments 23 replies
-
|
Hello @nbelyh |
Beta Was this translation helpful? Give feedback.
-
|
It's been on a a hiatus for a while, but @junsikshim made some pretty major progress a few months ago, and I've made reasonably large changes in the last few days in my branch at https://github.com/mcyph/mxGraph/tree/development. A big problem is that on the one hand many existing applications rely on the current version. On the other, it would be very tricky to make more than incremental changes to e.g. add support for new browser versions because of how complex and tightly integrated the library is. This is from the original authors in reference to the draw.io/diagrams.net project, but I think a lot of this also applies to mxGraph (maxGraph is an unofficial fork which started after development on mxGraph stopped):
Just like the touch element event issues you ran into, much of the logic of maxGraph extends across many files, and making one change can have unintended consequences. My hope was by introducing TypeScript and recent JavaScript syntax that it could reduce the cascade effect and allow more people to understand and build on the code. Unfortunately, in trying to sort out e.g. global assigning of variables to prototypes and the state of one graph affecting another it was pretty much inevitable that compatibility would be broken to some degree, potentially needing a rewrite of parts of previously written applications, if they would be feasible. For this reason, I think there is a case to keep both the existing version and the rewrite maintained, but personally for both real life reasons (juggling uni/work/other projects/PC instability..), and practical ones like that I don't have much experience with the previous version of the library mean that I could only provide minimal support for the older version, and so have mainly been focusing my efforts on the new code base. There are currently no tests, so whether things function correctly relies on manual testing - I think this may be inevitable because writing unit tests for something like this would be a gigantic task, if even possible for much of it. The currently available TypeScript definition files were a good first step, but they along with the types in the original documentation were incomplete and contained many inaccuracies which would be difficult to solve without coding the library itself in TypeScript. This is the first time I've had a chance in the last few months to develop, and am trying to focus on the following areas in the last few days:
The first couple of items are already some way towards being completed. I'd also like to finish off all the examples, including some ones which haven't yet been updated for the changed code, but think will work on the specifics after working thru the above issues. |
Beta Was this translation helpful? Give feedback.
-
|
Hello. I just want to confirm the status of this project. It looks active, but I feel like I'm seeing conflicting information, so I just want to know if this is something that could be used for a project that will start small with potential for growth. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
The first release of |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all, I am a newcomer, interested in keeping mxgraph alive as a library and not in a form of "diagrams.net"
Could you kindly update me, what is the status of this fork - is somebody working on this?
It looks like there is not much happening. Is it a dead project?
Beta Was this translation helpful? Give feedback.
All reactions