| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
…sses instantiated by main Graph class such as the graph model and vertex/edge handlers
… method in MaxPopupMenu
|
@mcyph I don't understand the need to introduce GraphInstantiators, at least today. There are already ways to override the Graph defaults:
This is the historical mxGraph way. We can change it but this needs more discussions IMHO.
There are pros and cons for all solutions. Does it make sense? |
Sorry, something went wrong.
|
@tbouffard Have started a new discussion at #151 and moved my comments there, let me know your thoughts |
Sorry, something went wrong.
|
As I mention there, if wanting to keep with the conventions previously established by mxGraph I'm inclined to go with the create* factory functions and override them in subclasses, and will make this change in this branch in the interim. Bear in mind the "draft" status of this merge request - I'm heading overseas for a few weeks+knew I likely won't have time to work on it while away, but have tried to fix as many examples as I could in last few weeks. I would've liked to have fixed the editor examples too, but I thought that would take longer. If anyone would like to make changes to this or the other "Touches" branch in the meantime feel free. |
Sorry, something went wrong.
|
Thanks @mcyph for the quick feedback and the status. Don't worry, maxGraph already owes you a lot, so we can all wait a bit for the finalization of this contribution. 👍🏿 I saw the Draft status, that's exactly why I wanted to let you know eventual issues with the newly introduced GraphInstantiators prior you move forward. 😄 I will feed the new discussion with my ideas. |
Sorry, something went wrong.
…ators to the Graph constructor; fixes to the "Wires" story
|
About "Codec (does not appear to load elements; needs to be investigated)": |
Sorry, something went wrong.
# Conflicts: # packages/core/src/view/Graph.ts
Use single line comments instead of JSDoc styled-comments that could mess IDE and documentation generation
|
I am in the process of reviving this PR. |
Sorry, something went wrong.
Fix imports Adjust the code when needed Apply prettier Fix file header GraphLayout HtmlLabel MenuStyle ShowRegion Scrollbars Wires
|
I have made the following stories work with Storybook v7. They are still written in JavaScript (I didn't have time to port them to TypeScript):
The examples are still not fully working. As the mxGraph examples were previously migrated to nextjs/react, some original code may not have been ported correctly. |
Sorry, something went wrong.
It was used a long time ago when examples were written in an application developed with Next.js
| Back | FazBrowse Home | New Git URL |
Summary
Converted the following remaining "stashed" examples to StoryBook:
Mostly have finished converting, but issues still remain:
This is in addition to the PR at #149 which converted the "Pinch Zoom" example. Editor examples still remain unconverted, although some progress has been made converting the "Ports" example to StoryBook.
Also has some fixes for the default parameters for MaxPopupMenu to restore the original mxGraph behavior.
Description for the changelog
Converted remaining "stashed" non-Editor and touch-related examples to StoryBook.
Other info
[UPDATE] The following has been reverted, see #150 (comment), #151 and 43ab435.
This adds an additional parameter to the main Graph class to allow overriding the class constructors in the "instantiators" parameter. I think there may be a better term for this, and there is a good question whether this should be merged into the "plugins", or references to these class constructors set in the class variables and overridden in subclasses.
As in types.ts, the following are able to be overridden:
Still unresolved is how to allow "local" changes to style (color, size etc) variables in Constants.ts that are referred. I think it may make sense to allow providing these as an argument to Graph, or have some way of assigning these locally.