store/panelPlacement#
clearPersistedPanelPlacements()#
Drop the persisted placements so the next launch starts clean.
Returns#
void
parseStoredPanelPlacements()#
Read persisted placements.
restorePopouts is the user preference for reopening satellite windows at
launch. It is off by default. Docked panels are always restored.
Parameters#
| Parameter | Type |
|---|---|
raw |
string | null | undefined |
restorePopouts |
boolean |
Returns#
Record<string, PanelPlacement>
selectDockOccupantPanelId()#
Which panel instance currently owns the dock slot for an action.
A docked panel follows the active plot: one tab, retargeted as focus moves. The result is deterministic for a given state.
Parameters#
| Parameter | Type |
|---|---|
s |
WithPanelPlacement |
actionId |
string |
Returns#
string | null
serializePanelPlacements()#
Serialize placements for settings.panelPlacement, stamped with the schema version.
Parameters#
| Parameter | Type |
|---|---|
placements |
Record<string, PanelPlacement> |
Returns#
string
dockPanel#
PANEL_PLACEMENT_VERSION#
panelPlacement#
popOutPanel#
resetPanelPlacements#
RETIRED_PANEL_ACTIONS#
Plot actions that no longer open a panel; what a user docked or popped out is dropped on load.
selectActivePlotHostId#
Parameters#
| Parameter | Type |
|---|---|
s |
WithPanelPlacement |
Returns#
string | null
selectPanelPlacement#
Parameters#
| Parameter | Type |
|---|---|
s |
WithPanelPlacement |
panelId |
string |
Returns#
selectPanelPlacements#
Parameters#
| Parameter | Type |
|---|---|
s |
WithPanelPlacement |
Returns#
Record<string, PanelPlacement>
setActivePlotHost#
setPanelBounds#
setPanelOpen#
togglePanelOpen#
undockPanelsForAction#
PanelPlacement#
Properties#
bounds?#
Last known OS window rectangle. Clamped against real displays on restore.
dockNodeId?#
FlexLayout tab node currently hosting this panel. Advisory only: the tab is looked up by its component id.
host#
open#
PanelPlacementState#
Properties#
activePlotHostId#
Mount site of the plot the user last interacted with.
A docked panel follows the active plot — one instance that retargets, like
a VS Code sidebar — so this is what decides which PanelHost gets to
occupy a dock slot when several plots are on screen.
placements#
PanelHostKind#
Where every dockable panel currently lives, and whether it is open.
Records where each panel lives (docked or popped out) and whether it is open, so both survive closing and reopening a page.
Keyed by the panel id built by makePanelId.