Skip to content

@fabwcie/free-drawing / utils/order / applyOrder

Function: applyOrder() ​

applyOrder(nodes, ids): void

Defined in: packages/free-drawing/src/utils/order.ts:59

Put shapes of given ids in this stacking order (order of another client), other shapes keep their place

Parameters ​

nodes ​

Node<NodeConfig>[]

Shapes of a layer

ids ​

string[]

Ids of shapes, from bottom to top

Returns ​

void