waveterm/frontend/layout/lib
Evan Simkowitz 164afeeb66
Unified node model to pass data from layout to blocks (#259)
This adds a new NodeModel, which can be passed from the TileLayout to
contained blocks. It contains all the layout data that the block should
care about, including focus status, whether a drag operation is
underway, whether the node is magnified, etc.

This also adds a focus stack for the layout, which will let the focus
switch to the last-focused node when the currently-focused one is
closed.

This also addresses a regression in the resize handles that caused them
to be offset from the cursor when dragged.

---------

Co-authored-by: sawka <mike.sawka@gmail.com>
2024-08-26 11:56:00 -07:00
..
layoutAtom.ts Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00
layoutModel.ts Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00
layoutModelHooks.ts Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00
layoutNode.ts Fix block numbering and switching with arrow keys (#258) 2024-08-21 17:43:11 -07:00
layoutTree.ts Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00
nodeRefMap.ts Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
tilelayout.less Fix flicker when dragging a node through a node gap (#231) 2024-08-15 14:53:13 -07:00
tilelayout.stories.less rename faraday to layout (#147) 2024-07-23 13:50:23 -07:00
TileLayout.stories.tsx New layout model (#210) 2024-08-14 18:40:41 -07:00
TileLayout.tsx Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00
types.ts Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00
utils.ts Unified node model to pass data from layout to blocks (#259) 2024-08-26 11:56:00 -07:00