Skip to content

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented Apr 9, 2024

Previously, when a cell's style.foldable property was not set, everything happened as if it was set to false, whereas it should have considered as true. Thus, by default, the expand image was not displayed, and it was not possible to expand the cell.

The problem was due to an error during mxGraph migration.

Some stories exhibited the problem. The expand/collapse images and actions are now available.

  • Folding:
    • It has been migrated to TypeScript and updated to work better
    • Some mxGraph features still don't work (highlighting the parent when dragging a cell, parent association).
  • Swimlanes and Collapse. Some mxGraph features still don't work like applying custom style when the cell are collapsed

Notes

Closes #175

There is an issue in the code which detects if the cell is foldable. If not set in the style, the cell is considered as non foldable where it should be by default.
The mxGraph code wasn't migrated correctly

Folding story not full working - comparison with mxGraph

mxGraph 4.2.2 (https://jgraph.github.io/mxgraph/javascript/examples/folding.html)

PR_385_01_mxgaph_folding_example

maxGraph Folding story with this PR

PR_385_02_maxgraph_folding_story

Fixes in Collapse and Swimlanes

Collapse story

story_collapse

Swimlanes story

story_swimlanes

Previously, when a cell's `style.foldable` property was not set, everything happened as if it was
set to `false`, whereas it should have considered as `true`.
Thus, by default, the expand image was not displayed, and it was not possible to expand the cell.

The problem was due to an error during mxGraph migration.

The Folding story presented the problem. It has been migrated to TypeScript and updated to work
better. The expand/collapse images and actions are now available.
Some mxGraph features still don't work (highlighting the parent when dragging a cell, parent
association).
@tbouffard tbouffard added the bug Something isn't working label Apr 9, 2024
@tbouffard tbouffard marked this pull request as ready for review April 9, 2024 15:18
@tbouffard
Copy link
Member Author

Put in draft, the Swimlanes story should also display the expand/collapse image. To be tested

@tbouffard tbouffard marked this pull request as draft April 11, 2024 07:54
@tbouffard tbouffard marked this pull request as ready for review April 15, 2024 15:44
@tbouffard tbouffard merged commit fe00ecc into main Apr 16, 2024
@tbouffard tbouffard deleted the fix/Graph.isCellFoldable branch April 16, 2024 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The Folding Story is not fully working

1 participant