@modoki/engine / index / hostCanvasUnder
Function: hostCanvasUnder()
hostCanvasUnder(
hostId,clientX,clientY):HTMLCanvasElement|null
The host canvas under the given client point, or null when the point isn't over one (a HUD tap, or a click in another editor panel). The editor's two canvases live in separate panels, so their rects never overlap and containment uniquely picks the right one.
Parameters
hostId
number
clientX
number
clientY
number
Returns
HTMLCanvasElement | null