Returns the id of the polygon currently in anchor-edit mode, or null when no node is being edited. Read each frame so live selection / edit-target changes show up without re-creating the layer.
OptionalgetIn-flight anchor-marquee rect in world coords, or null. Drawn as a
rubber band while marqueeAnchorsAction is dragging.
Returns the pose for an id, or null if the node has been deleted. Non-polygon poses are tolerated (the layer no-ops on them).
OptionalgetFlat indices of the selected anchors. Selected anchors render filled; unselected ones hollow — the standard vector-editor cue for "these are what the arrow keys and Delete will act on". Omit when the consumer has no anchor selection to show.
OptionalisChrome-caps predicate. The layer asks 'path-edit.anchors' before
drawing anything, so paint and the anchor hit-test in
affordanceAt consult the same rule — otherwise a consumer that
hides the chrome still gets grabbable invisible anchors, or vice
versa. Omit to always draw when an edit target is set.
Optional styling overrides.