ShapeMixin.moveAfter
Moves this shape immediately after the given sibling in render order.
ShapeMixin.moveAfter() method
Moves this shape immediately after the given sibling in render order.
Signature:
moveAfter(sibling: Shape): void;Parameters
Parameter | Type | Description |
|---|---|---|
sibling | The shape to move this shape after. |
Returns: void
Remarks
If sibling has a different parent, this shape is reparented to the sibling's parent as part of the move.
Example
const [first, second] = group.shapes;
first.moveAfter(second);Last updated: August 6, 2026 at 1:25 AMEdit this page