DockManager
Source: Dock.ts:126
Docks dialogs to the sides of a host element. Sides claim bands in first-use order, while dialogs on the same side stack and share its length.
Draggable edges render in a separate layer, keeping panels flush and preventing clipped seams or thickness-related layout adjustments.
Constructor
new DockManager(params): DockManagerInstance Methods
_register()
Puts the dialog under the manager's watch, which is all that being known to it means: where it ends up is left to whoever asked - attach reads the dialog's own dock option, dock is told a side outright, and either of them can be the first here.
layout()
Recomputes every side from the host rectangle, taking a band off it in dock order.
_dockSize()
What a side opens at for this dialog: its width standing on end, or its height.
_band()
The band a side takes off a rectangle, and what the sides after it will see.
_slot()
Returns a newcomer's stack share: the existing average, normalized to 1 / (count + 1).
_openDocked()
A dialog can ask to open docked, and it takes its side as soon as it turns up - a dialog created hidden would otherwise let a later one claim the corner first. A side with nothing shown in it costs no room until something is.
Instance Fields
freeRect
The rectangle no side has taken, in host coordinates.