path.bounds()

path.bounds(object) Returns the projected planar bounding box (typically in pixels) for the specified GeoJSON object. The bounding box is represented by a two-dimensional array: [[x₀, y₀], [x₁, y₁]], where x₀ is the minimum x-coordinate, y₀ is the minimum y-coordinate, x₁ is maximum x-coordinate, and y₁ is the maximum y-coordinate. This is handy for, say, zooming in to a particular feature. (Note that in projected planar coordinates, the minimum latitude is typically the maximum y-value, and

path.bezierCurveTo()

path.bezierCurveTo(cpx1, cpy1, cpx2, cpy2, x, y) Draws a cubic Bézier segment from the current point to the specified point ⟨x, y⟩, with the specified control points ⟨cpx1, cpy1⟩ and ⟨cpx2, cpy2⟩. Equivalent to context.bezierCurveTo and SVG’s cubic Bézier curve commands.

path.area()

path.area(object) Returns the projected planar area (typically in square pixels) for the specified GeoJSON object. Point, MultiPoint, LineString and MultiLineString features have zero area. For Polygon and MultiPolygon features, this method first computes the area of the exterior ring, and then subtracts the area of any interior holes. This method observes any clipping performed by the projection; see projection.clipAngle and projection.clipExtent.

path.arcTo()

path.arcTo(x1, y1, x2, y2, radius) Draws a circular arc segment with the specified radius that starts tangent to the line between the current point and the specified point ⟨x1, y1⟩ and ends tangent to the line between the specified points ⟨x1, y1⟩ and ⟨x2, y2⟩. If the first tangent point is not equal to the current point, a straight line is drawn between the current point and the first tangent point. Equivalent to context.arcTo and uses SVG’s elliptical arc curve commands.

path.arc()

path.arc(x, y, radius, startAngle, endAngle[, anticlockwise]) Draws a circular arc segment with the specified center ⟨x, y⟩, radius, startAngle and endAngle. If anticlockwise is true, the arc is drawn in the anticlockwise direction; otherwise, it is drawn in the clockwise direction. If the current point is not equal to the starting point of the arc, a straight line is drawn from the current point to the start of the arc. Equivalent to context.arc and uses SVG’s elliptical arc curve commands.

path()

path(object[, arguments…]) Renders the given object, which may be any GeoJSON feature or geometry object: Point - a single position. MultiPoint - an array of positions. LineString - an array of positions forming a continuous line. MultiLineString - an array of arrays of positions forming several lines. Polygon - an array of arrays of positions forming a polygon (possibly with holes). MultiPolygon - a multidimensional array of positions forming multiple polygons. GeometryCollection - an array

partition.size()

partition.size([size]) If size is specified, sets this partition layout’s size to the specified two-element array of numbers [width, height] and returns this partition layout. If size is not specified, returns the current size, which defaults to [1, 1].

partition.round()

partition.round([round]) If round is specified, enables or disables rounding according to the given boolean and returns this partition layout. If round is not specified, returns the current rounding state, which defaults to false.

partition.padding()

partition.padding([padding]) If padding is specified, sets the padding to the specified number and returns this partition layout. If padding is not specified, returns the current padding, which defaults to zero. The padding is used to separate a node’s adjacent children.

partition()

partition(root) Lays out the specified root hierarchy, assigning the following properties on root and its descendants: node.x0 - the left edge of the rectangle node.y0 - the top edge of the rectangle node.x1 - the right edge of the rectangle node.y1 - the bottom edge of the rectangle You must call root.sum before passing the hierarchy to the partition layout. You probably also want to call root.sort to order the hierarchy before computing the layout.