Interface D3ZoomEvent<ZoomRefElement, Datum>

A D3 Zoom Event

The first generic refers to the type of reference element to which the zoom behavior is attached. The second generic refers to the type of the datum of the reference element.

interface D3ZoomEvent {
    sourceEvent: any;
    target: ZoomBehavior<ZoomRefElement, Datum>;
    transform: ZoomTransform;
    type: string;
}

Type Parameters

Properties

sourceEvent: any

The underlying input event, such as mousemove or touchmove.

target: ZoomBehavior<ZoomRefElement, Datum>

The ZoomBehavior associated with the event

transform: ZoomTransform

The current zoom transform

type: string

The event type for the zoom event