Skip to content

Conversation

@mcyph
Copy link
Collaborator

@mcyph mcyph commented Apr 25, 2021

What I've been doing as part of this change is moving non-transaction/"set" operations into mxCells (a list structure for working on mxCell in batch) and mxCell. Also fixed a few bugs with the storybook modules.

While doing things directly against mxCell is more direct and easier to read than through mxGraphModel or mxGraph, these changes may break existing code if the relevant methods in mxGraphModel or mxGraph are overridden. I think in these cases it may pay to disallow setting these properties with an error message and to write docs on how to migrate, as I can't at the moment think of a clean way of refactoring these modules without breaking compatibility to some degree.

mcyph added 8 commits April 25, 2021 12:12
# Conflicts:
#	src/pages/connections/HelloPort.js
#	src/pages/dnd_copypaste/Clipboard.js
#	src/pages/effects/Morph.js
#	src/pages/events/Boundary.js
#	src/pages/layout/AutoLayout.js
#	src/pages/layout/SwimLanes.js
#	src/pages/layout/Tree.js
#	src/pages/printing/PageBreaks.js
#	src/pages/shapes_stencils/Shape.js
#	src/pages/shapes_stencils/Stencils.js
#	src/pages/styles/HoverStyle.js
#	src/pages/styles/Stylesheet.js
#	src/pages/windows/Windows.js
#	src/pages/xml_json/FileIO.js
#	src/pages/xml_json/JsonData.js
#	src/pages/xml_json/UserObject.js
#	src/pages/zoom_offpage/OffPage.js
#	src/public/editors/config/editor-commons.xml
#	src/public/map-background/map-background.html
@mcyph mcyph requested a review from junsikshim April 25, 2021 13:09
Copy link
Collaborator

@junsikshim junsikshim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@junsikshim junsikshim merged commit cf437a9 into maxGraph:development Apr 26, 2021
@tbouffard tbouffard added the refactor Code refactoring label Nov 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactor Code refactoring

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants