Skip to main content

Module resize

Module resize 

Source
Expand description

Resize policy — Resizable, PPT-style 8-handle resizing for selected elements.

A Resizable element’s selection box grows eight square handles (four corners + four edge midpoints). Dragging a handle resizes the element; as with Draggable, the actual mutation routes through Config::nudge only — implementations just map each handle to the nudge elements its horizontal / vertical motion drives. For the data area that mapping is its boundary edges (Element::DataAreaEdge): dragging the east handle moves the right boundary, the north-west corner moves the left and top boundaries, and so on — margins shift, the data area follows, and ticks/data stay aligned by construction.

Enums§

ResizeHandle
One of the eight resize handles, compass-named.

Constants§

ALL_HANDLES
HANDLE_SIZE
Edge length of a square resize handle, px.

Traits§

Resizable
A selectable element whose extent can be adjusted by dragging the eight handles on its selection box.

Functions§

handle_rects
The eight handle squares for a selection rect: corners + edge midpoints, each centered on its anchor point.