Skip to content

detectTarget

hhh edited this page Jan 31, 2022 · 2 revisions

detectTarget

/**
 * Detects the interaction target and returns an array
 * representing the path from `rootNode` to the target.
 * (Returns an empty array if there is no interactive target.)
 */
const detectTarget: (rootNode: CanvasNode<any>, x: number, y: number) => CanvasNode<any>[];

Documentation of canvasom

Clone this wiki locally