Skip to content

store/panelPlacement#

clearPersistedPanelPlacements()#

function clearPersistedPanelPlacements(): void;

Drop the persisted placements so the next launch starts clean.

Returns#

void


parseStoredPanelPlacements()#

function parseStoredPanelPlacements(raw, restorePopouts): Record<string, PanelPlacement>;

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()#

function selectDockOccupantPanelId(s, actionId): string | null;

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()#

function serializePanelPlacements(placements): string;

Serialize placements for settings.panelPlacement, stamped with the schema version.

Parameters#

Parameter Type
placements Record<string, PanelPlacement>

Returns#

string


dockPanel#

const dockPanel: any;

PANEL_PLACEMENT_VERSION#

const PANEL_PLACEMENT_VERSION: 1 = 1;

panelPlacement#

const panelPlacement: any;

popOutPanel#

const popOutPanel: any;

resetPanelPlacements#

const resetPanelPlacements: any;

RETIRED_PANEL_ACTIONS#

const RETIRED_PANEL_ACTIONS: ReadonlySet<string>;

Plot actions that no longer open a panel; what a user docked or popped out is dropped on load.


selectActivePlotHostId#

const selectActivePlotHostId: (s) => string | null;

Parameters#

Parameter Type
s WithPanelPlacement

Returns#

string | null


selectPanelPlacement#

const selectPanelPlacement: (s, panelId) => PanelPlacement;

Parameters#

Parameter Type
s WithPanelPlacement
panelId string

Returns#

PanelPlacement


selectPanelPlacements#

const selectPanelPlacements: (s) => Record<string, PanelPlacement>;

Parameters#

Parameter Type
s WithPanelPlacement

Returns#

Record<string, PanelPlacement>


setActivePlotHost#

const setActivePlotHost: any;

setPanelBounds#

const setPanelBounds: any;

setPanelOpen#

const setPanelOpen: any;

togglePanelOpen#

const togglePanelOpen: any;

undockPanelsForAction#

const undockPanelsForAction: any;

PanelPlacement#

Properties#

bounds?#

optional bounds?: PopoutBounds;

Last known OS window rectangle. Clamped against real displays on restore.

dockNodeId?#

optional dockNodeId?: string;

FlexLayout tab node currently hosting this panel. Advisory only: the tab is looked up by its component id.

host#

host: PanelHostKind;

open#

open: boolean;

PanelPlacementState#

Properties#

activePlotHostId#

activePlotHostId: string | null;

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#

placements: Record<string, PanelPlacement>;

PanelHostKind#

type PanelHostKind = "popout" | "dock";

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.