Interface Zoom

Index

Call signatures

Properties

Call signatures

(selection: Selection)

Applies the zoom behavior to the specified selection, registering the necessary event listeners to support panning and zooming.

Parameters

Properties

public on: (type: string, listener: (data: any, index?: number) => any) => D3.Behavior.Zoom

Registers a listener to receive events

param

Enent name to attach the listener to

param

Function to attach to event

public scale: { (): number; (scale: number): D3.Behavior.Zoom; }

Gets or set the current zoom scale

(): number

Get the current current zoom scale

Returns

number

(): Zoom

Set the current current zoom scale

Returns

Zoom

public scaleExtent: { (): number[]; (extent: number[]): D3.Behavior.Zoom; }

Gets or set the allowed scale range

(): Array<number>

Get the current allowed zoom range

Returns

Array<number>

(): Zoom

Set the allowable zoom range

Returns

Zoom

public translate: { (): number[]; (translate: number[]): D3.Behavior.Zoom; }

Gets or set the current zoom translation vector

(): Array<number>

Get the current zoom translation vector

Returns

Array<number>

(): Zoom

Set the current zoom translation vector

Returns

Zoom

public x: { (): D3.Scale.Scale; (x: D3.Scale.Scale): D3.Behavior.Zoom; }

Gets or set the X-Scale that should be adjusted when zooming

(): Scale

Get the X-Scale

Returns

Scale

(): Zoom

Set the X-Scale to be adjusted

Returns

Zoom

public y: { (): D3.Scale.Scale; (y: D3.Scale.Scale): D3.Behavior.Zoom; }

Gets or set the Y-Scale that should be adjusted when zooming

(): Scale

Get the Y-Scale

Returns

Scale

(): Zoom

Set the Y-Scale to be adjusted

Returns

Zoom