OptionalgetOrdered children of parentId (or root siblings if null), in z-order:
index 0 is bottom, last index is top.
OptionalsetRewrite the order of parentId's children. Length and contents must
match the existing children — reorder only, no add/remove.
Optional adapter mixin for sibling z-order.
Both methods are optional. Reorder ops and
useReorderno-op when either is absent — adopt z-order incrementally without breaking existing adapters.Convention: array order IS z-order. Index 0 is the bottom of the stack, the last index is the top. Hit-testing should iterate the returned list in REVERSE (top to bottom). Render layers iterate FORWARD (bottom to top).
For groups,
parentIdmay be a group id; the group adapter routesgetChildren/setChildOrderto the group'smembers[]array.