# tui/dock/state The calling panel's dock geometry, or `nil` when no dock is open. ## Syntax
[tui/dock/state]
## Examples
set dk [tui/dock/state]
if ![nil? $dk] {
    echo "visible:" $dk~visible "content:" $dk~cw "x" $dk~ch
}
## Returns A map (or `nil`): | Key | Type | Meaning | | --- | ---- | ------- | | `:open` `:visible` `:floating` `:focused` | bool | state flags; `:visible` is false while the panel is popped, zoomed away, or too small | | `:edge` | keyword | `:top` / `:left` / `:bottom` / `:right` | | `:size` | number | outer size along the anchored axis (set via open/update) | | `:title` | string | dock title | | `:x` `:y` `:w` `:h` | number | outer rect in workspace cells, chrome included | | `:cw` `:ch` | number | drawable content cells | ## See Also `tui/dock/open`, `tui/dock/update`, `tui/dock/float`, `tui/dock/focused?`