Skip to main content

move_shape

Function move_shape 

Source
pub fn move_shape(
    indexed: &IndexedDocument<'_>,
    shape: Shape,
    delta: Vec2,
    builder: &mut CommitBuilder,
)
Expand description

Inventory row “Move Shape”: drag one shape to a new position. Blocks, ports, text, and areas commit on the grid; artwork — a free-floating image or a block’s icon — moves in free pixels, and an icon is held inside the block it belongs to.