Documentation
¶
Overview ¶
Package panelayout owns the presentation-neutral pane tree shared by project and global workspace previews. It knows structure, geometry, and the default placement policy, but nothing about terminals, documents, issues, rendering, or persistence.
Index ¶
- func ClampRatio(ratio int) int
- func LayoutPanes(root *Node, box Box, floors Floors) (leaves []Placement, dividers []Divider, fits bool)
- func MaxID(node *Node) int
- func SetRatio(root *Node, splitID, ratio int) bool
- type Axis
- type Box
- type Divider
- type Floor
- type Floors
- type Kind
- type Layout
- type Node
- type OpenPlan
- type Placement
- type Split
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClampRatio ¶
func LayoutPanes ¶
Types ¶
type Box ¶
type Box = termpreview.Box
type Node ¶
func Clone ¶
Clone returns a detached copy suitable for trial layout before committing a split that may not fit the current viewport.