Interface Path

Index

Call signatures

Properties

Methods

Call signatures

(feature: any, index?: any): string

Returns the path data string for the given feature

Parameters

  • feature: any
  • index?: any optional

Returns

string

Properties

public context: { (): string; (context: D3.Geo.Context): D3.Geo.Path; }

get or set the render context.

(): string

return an SVG path string invoked on the given feature.

Returns

string

(): Path

sets the render context and returns the path generator

Returns

Path

public pointRadius: { (): number; (radius: number): D3.Geo.Path; (radius: (feature: any, index: number) => number): D3.Geo.Path; }

get or set the radius to display point features.

(): number

returns the current radius

Returns

number

(): Path

sets the radius used to display Point and MultiPoint features to the specified number

Returns

Path

(): Path

sets the radius used to display Point and MultiPoint features to the specified number

Returns

Path

public projection: { (): D3.Geo.Projection; (projection: D3.Geo.Projection): D3.Geo.Path; }

get or set the geographic projection.

(): Projection

get the geographic projection.

Returns

Projection

(): Path

set the geographic projection.

Returns

Path

Methods

public area(feature: any): any

Computes the projected area

Parameters

  • feature: any

Returns

any

public bounds(feature: any): any

Computes the projected bounding box

Parameters

  • feature: any

Returns

any

public centroid(feature: any): any

Computes the projected centroid

Parameters

  • feature: any

Returns

any