Skip to main content

extend_with_shape

Function extend_with_shape 

Source
pub fn extend_with_shape(base: &[ShapeId], shape: ShapeId) -> Tool
Expand description

Toggle shape into the shape selection base (shift-click): add it if absent, remove it if present. Resolves to the right tool for the resulting size — nothing → select tool, one → block-style single selection, many → multi-select.