Skip to content
EliteChart

HitResult

Documentation


Documentation / @elitechart/drawings / HitResult

Defined in: core/dist/index.d.ts:692

Result of hit-testing a drawing at a given screen point. handle lets the chart show a resize cursor when the pointer is over an endpoint vs a grab cursor for the body.

Example

code
const r: HitResult = { hit: true, handle: 'end' };

Properties

handle?

code
readonly optional handle?: string;

Defined in: core/dist/index.d.ts:695

Which handle was hit — 'start', 'end', 'body', etc. Undefined if not on a handle.


hit

code
readonly hit: boolean;

Defined in: core/dist/index.d.ts:693