Skip to main content

Module tool_cluster

Module tool_cluster 

Source
Expand description

The toolbar: eight parameterless tools floating at the bottom centre of the diagram (docs/cad-ui-spec.md §5), in three groups with a rule between each — what selects, what builds blocks, what annotates the sheet.

The order is the band’s own, which is the order the digit shortcuts run in, so a cell and the key that arms it cannot disagree. Select sits first and is visible on every platform; tapping the armed cell returns to it. The sheet tools are used less often, so they fold into one cell wearing the one used last, with a caret that opens all four.

It is floating chrome, so it is shadowed with a large radius — and it measures itself, since a framing must stay clear of where the bar is.

Re-exports§

pub use ToolCluster_completions::Component::ToolCluster;

Structs§

CellProps 🔒
Properties for the Cell component.
SheetToolsProps 🔒
Properties for the SheetTools component.
ToolClusterProps
Properties for the ToolCluster component.

Constants§

CARET 🔒
The caret half, which opens the four.
FACE 🔒
The folded cell’s face: the press half, sized like any other cell.
FACE_ARMED 🔒
FOLDED 🔒
The folded cell, which fills as a whole while its tool is armed.
FOLDED_ARMED 🔒
KEY 🔒
RULE 🔒
The rule between two groups.
SHEET_MENU 🔒
The four, rising above the bar.
TICK 🔒

Functions§

Cell 🔒
Props
SheetTools 🔒
The sheet tools, folded: a press on the face arms the one it wears, and the caret — or a long press, which a touch screen raises as a context menu — opens all four with the keys that arm them.
ToolCluster
Props
covers 🔒
What the bar covers of the diagram: its own columns, taken down to the canvas’s bottom edge — the gap beneath it is no room a framing may use.
digit 🔒
The bare digit that arms tool — its place on the band.
first 🔒
group_of 🔒
Which group tool has a cell in, if it has one at all.
members 🔒
The band’s tools in group, in the band’s order.