added react-mosaic-component to IdeContainer.js #230
Reference in New Issue
Block a user
Delete Branch "franknoirot/218"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I prefer this
react-mosaic-componentlayout manager package toreact-grid-layout, because it feels lighter weight and the drag-and-drop functionality behaves as I would expect it to intuitively, where the layout reflows resizing the other elements to fill the available space given the moved item's new dimensions.One cool feature of this package is that it allows for each pane to have a custom toolbar defined in a react component, so we could potentially incorporate the global toolbar buttons into the different panes if you preferred (save to editor, render to viewer, etc) or add a configuration gear icon button that allows the user to set preferences for each pane (like theme for the editor). And theming by CAD package seems very straightforward.
I had to add the layout state to
useIdeState, otherwise the layout will reset on any rerender of the component.Nice!
I've had a bit of a play and it looks good. I can already see it coming together. So good.
Happy with this call.