Skip to content
EliteChart

HitResult

Documentation


Documentation / @elitechart/core / HitResult

Defined in: drawing/types.ts:46

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: drawing/types.ts:49

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


hit

code
readonly hit: boolean;

Defined in: drawing/types.ts:47