Skip to content

@modoki/engine / index / collectHandles

Function: collectHandles()

collectHandles(filter?): InteractionHandle[]

Collect handles from every registered provider, optionally filtered. A provider that throws is skipped (one bad editor can't break the whole report).

DUPLICATE IDS ARE A BUG, and a silent one: resolveHandle takes the FIRST match, so a second handle sharing an id is simply never reachable and tap_handle drives the wrong element with no signal. Canvas ids are generated and unique by construction; chrome ids are hand-authored data-ui-id strings on the honour system. Warn loudly (dev only — this is an editor-side registry) rather than let a wrong click look like a right one.

Parameters

filter?

HandleFilter

Returns

InteractionHandle[]

Built with Modoki.