Callable
- __call(feature: any, index?: number): string
-
Parameters
-
feature: any
-
Optional index: number
Returns string
Methods
area
- area(feature: any): number
-
Parameters
Returns number
bounds
- bounds(feature: any): [[number, number], [number, number]]
-
Parameters
Returns [[number, number], [number, number]]
centroid
- centroid(feature: any): [number, number]
-
Parameters
Returns [number, number]
context
- context(): CanvasRenderingContext2D
- context(context: CanvasRenderingContext2D): Path
-
Returns CanvasRenderingContext2D
-
Parameters
-
context: CanvasRenderingContext2D
pointRadius
- pointRadius(): number | function
- pointRadius(radius: number): Path
- pointRadius(radius: function): Path
-
Returns number
|
function
-
Parameters
-
Parameters
-
radius: function
-
- (datum: any, index: number): number
-
Parameters
Returns number
projection
-
Returns Transform
|
function
-
Parameters
-
Parameters
-
projection: function
-
- (coordinates: [number, number]): [number, number]
-
Parameters
-
coordinates: [number, number]
Returns [number, number]