path.context()

path.context([context]) If context is specified, sets the current render context and returns the path generator. If the context is null, then the path generator will return an SVG path string; if the context is non-null, the path generator will instead call methods on the specified context to render geometry. The context must implement the following subset of the CanvasRenderingContext2D API: context.beginPath() context.moveTo(x, y) context.lineTo(x, y) context.arc(x, y, radius, startAng

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.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()

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()

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.

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.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.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.