Skip to content

Interface: ComponentPointerEvent ​

Experimental

A pointer event offered to component views before the chart's own hover / zoom / selection handling (see ComponentView.handlePointer). The object is reused between events: read it during the call, don't keep it.

Properties ​

PropertyTypeDescription
altKeybooleanExperimental
buttonnumberExperimental PointerEvent.button (0 primary) for down / up / click.
ctrlKeybooleanExperimental
cursorstring | undefinedExperimental Set by a component on a move to choose the cursor (e.g. 'pointer'). A view that returns false for the move, so that the points under it still hover, may set it too: it then stands for the cursor of the chart's own drag zones (GEO6: 'move' over a map that pans).
metaKeybooleanExperimental
nativeEvent | undefinedExperimental The DOM event (absent for click / dblclick, which the runtime synthesizes).
shiftKeybooleanExperimental
type"down" | "move" | "up" | "click" | "dblclick" | "wheel" | "leave"Experimental down / move / up (pointer events), click (down and up without moving), dblclick (second click within config.doubleClickDelay), wheel, leave (pointer left the chart).
xnumberExperimental Position in container CSS px (top-left origin), like plotArea and SubplotInfo.rect.
ynumberExperimental

Released under the MIT License.