Interface Brush

Index

Call signatures

Properties

Methods

Call signatures

(selection: Selection)

Draws or redraws this brush into the specified selection of elements

Parameters

Properties

public extent: { (): any[]; (values: any[]): D3.Svg.Brush; }

Gets or sets the current brush extent

(): Array<any>

Gets the current brush extent

Returns

Array<any>

(): Brush

Sets the current brush extent

Returns

Brush

public on: { (type: string): (data: any, index: number) => any; (type: string, listener: (data: any, index: number) => any, capture?: boolean): D3.Svg.Brush; }

Gets or sets the listener for the specified event type

(): (data: any, index: number) => any

Gets the listener for the specified event type

Returns

(data: any, index: number) => any

(): Brush

Sets the listener for the specified event type

Returns

Brush

public x: { (): D3.Scale.Scale; (scale: D3.Scale.Scale): D3.Svg.Brush; }

Gets or sets the x-scale associated with the brush

(): Scale

Gets the x-scale associated with the brush

Returns

Scale

(): Brush

Sets the x-scale associated with the brush

Returns

Brush

public y: { (): D3.Scale.Scale; (scale: D3.Scale.Scale): D3.Svg.Brush; }

Gets or sets the x-scale associated with the brush

(): Scale

Gets the x-scale associated with the brush

Returns

Scale

(): Brush

Sets the x-scale associated with the brush

Returns

Brush

Methods

public clear(): Brush

Clears the extent, making the brush extent empty.

Returns

Brush

public empty(): boolean

Returns true if and only if the brush extent is empty

Returns

boolean