Skip to content

charton API


charton API / @chart-on/core / index / PrimitiveHit

Interface: PrimitiveHit ​

Defined in: packages/core/src/primitives.ts:54

What a primitive's hitTest returns for a point on it: the cursor to show and which part was hit.

Properties ​

cursor? ​

optional cursor?: string

Defined in: packages/core/src/primitives.ts:56

CSS cursor to show while hovering.


part? ​

optional part?: string

Defined in: packages/core/src/primitives.ts:58

Which part was hit, for the primitive's own use (e.g. 'line', 'label').