Skip to content

Intermact API Reference / @intermact/core / hitTest

Function: hitTest()

hitTest(entries, p): string | null

Defined in: packages/core/src/interaction/hit-test.ts:82

Return the id of the topmost entry hit by p (highest zIndex, then latest).

Parameters

entries

readonly HitEntry[]

p

AbsXY

Returns

string | null

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)