Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

D3ZoomEvent

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 <ZoomRefElement extends ZoomedElementBaseType, Datum> {
sourceEvent: any;
target: ZoomBehavior<ZoomRefElement, Datum>;
transform: ZoomTransform;
type:
| "start"
| "zoom"
| "end"
| string;
}

§Type Parameters

§
ZoomRefElement extends ZoomedElementBaseType
[src]
§
Datum
[src]

§Properties

§
sourceEvent: any
[src]

The underlying input event, such as mousemove or touchmove.

§
target: ZoomBehavior<ZoomRefElement, Datum>
[src]

The ZoomBehavior associated with the event

§

The current zoom transform

§
type: "start" | "zoom" | "end" | string
[src]

The event type for the zoom event