-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(grid) Grid Element Direct Lookup Ordered Correctly. (#6667)
- Moved a lot of common types and functions used when obtaining values from elements for grids into `grid-measurements.tsx`. - Added `getGridElementMeasurementHelperData` to retrieve the necessary details for a grid element, along with some supporting functions. - Extracted out a `getGlobalFrame` function for the common lookup used. - Changed some test ID values in two components as they created the same ones. - `PaddingResizeControl` set to the `bottom` priority so that it doesn't end up on top of the track resizing controls. - `GridControl` now gets the cell dimensions directly from the grid element. - `GridElementContainingBlock` gets the grid child dimensions directly. - Added `HelperControlsStateContext` and made the connected change to `StoreName`. - Added `helperControlsStore` to `Editor`. - Added contexts for the helper store to `EditorRoot` and `HotRoot`. - Wrapped the contents of `GridElementContainingBlocks` and `GridMeasurementHelpers` with the new helper store context. - Added calls to update the helper store in the regular and test dispatch flows.
- Loading branch information
1 parent
1e2a340
commit 45e9742
Showing
17 changed files
with
544 additions
and
389 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.