Skip to content

Vizzu / Modules / events / RectDrawEvent

Interface: RectDrawEvent\

events.RectDrawEvent

Event of drawing a rectangle or a marker (in which case rect is the boundary rectangle).

Type parameters

Name
T

Hierarchy

  • Event\<T>

    RectDrawEvent

Properties

renderingContext

Optional renderingContext: CanvasRenderingContext2D

For drawing events the rendering context of the underlying canvas set up for drawing the element.

Inherited from

Event.renderingContext


target

target: null | T

The element of the chart the event triggered on.

Inherited from

Event.target

Methods

preventDefault

preventDefault(): void

If called, the default action of the event will be canceled.

Returns

void

Inherited from

Event.preventDefault