Skip to content

Commit

Permalink
document pathFixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Fil committed Jul 7, 2020
1 parent d9546bb commit a649bbb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ path.closePath();

Constructs a new path serializer that implements [CanvasPathMethods](http://www.w3.org/TR/2dcontext/#canvaspathmethods).

<a name="pathFixed" href="#path">#</a> d3.<b>pathFixed</b>([<i>digits</i>]) · [Source](https://github.com/d3/d3-path/blob/master/src/path.js)<!-- , [Examples](https://observablehq.com/@d3/d3-path) -->

Returns a new path serializer akin to [path](#path), with all numbers rounded to *digits* digits after comma.

<a name="path_moveTo" href="#path_moveTo">#</a> <i>path</i>.<b>moveTo</b>(<i>x</i>, <i>y</i>)

Move to the specified point ⟨*x*, *y*⟩. Equivalent to [*context*.moveTo](http://www.w3.org/TR/2dcontext/#dom-context-2d-moveto) and SVG’s [“moveto” command](http://www.w3.org/TR/SVG/paths.html#PathDataMovetoCommands).
Expand Down

0 comments on commit a649bbb

Please sign in to comment.