z_order
Change the stacking order of SVG elements: send objects to the front, back, or step them forward/backward, or place them above/below a target while preserving visual position.
Instructions
Change stacking order (what is drawn on top). front/back: top/bottom within the element's own
layer or group. forward/backward: one step past the next object it overlaps (visible change).
above/below: directly above/below target, moving into target's layer/group if needed while keeping
the visual position. Several ids keep their relative order. Returns each id's position.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| doc_id | No | ||
| target | No | ||
| preview | No | ||
| operation | Yes |