Skip to main content

shape_layer_rank

Function shape_layer_rank 

Source
fn shape_layer_rank(id: ShapeId) -> u8
Expand description

Paint-layer precedence of a shape, matching Drawing::shapes order (blocks, ports, texts, images) with areas last. Paired with the entity’s write order it reproduces that walk exactly, which is how the index-limited candidate list and the linear scan stay one order.