NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #514 most downloaded on npm
Serialize Canvas path commands to SVG.
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 1.5 years
Most releases are documented
notes for 19 of 23 stable releases
Nothing withdrawn
no release was ever pulled
11 years old
24 releases · first in 2015
Add d3.pathRound . #10 #12
Update dependencies. Make build reproducible.
One column per quarter.
v3.0.1
Compare
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ .
This package now requires Node.js 12 or higher. For more, please read Sindre Sorhus’s FAQ.
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 envi
This release adopts ES2015 language features such as for-of and drops support for older browsers, including IE. If you need to support pre-ES2015 environments, you should stick with d3-path 1.x or use a transpiler.
Nothing published for this version
Adopt explicit files when publishing.
Fix coercion of anticlockwise argument to path .arc . Thanks, @Fil ! #21
Housekeeping.
Update dependencies.
Update dependencies.
Ignore small-angle arcs in _path_.arc to workaround rendering bug in Chrome on Ubuntu.
Use string concatenation instead of _array_.join to improve performance (#9).
Nothing published for this version
Add module entry point to package.json.
module entry point to package.json.The d3.path serializer implements the CanvasPathMethods API, allowing you to write code that can render to either Canvas or SVG. For example, given so
The d3.path serializer implements the CanvasPathMethods API, allowing you to write code that can render to either Canvas or SVG. For example, given some code that draws to a canvas:
function drawCircle(context, radius) {
context.moveTo(radius, 0);
context.arc(0, 0, radius, 0, 2 * Math.PI);
}
You can render to SVG as follows:
var context = d3.path();
drawCircle(context, 40);
pathElement.setAttribute("d", context.toString());
The path serializer enables d3-shape to support both Canvas and SVG; see line.context and area.context, for example.
See CHANGES for all D3 changes since 3.x.
Export to the global d3 in vanilla environments (d3/d3#2840).
d3 in vanilla environments (d3/d3#2840).- Fix _path_.constructor (#5).
Nothing published for this version
Nothing published for this version
Don’t emit an elliptical arc (A) command if the radius of _path_.arc is zero.
_path_.arc now implements the optional _anticlockwise_ flag.
Removed _path_.beginPath; it’s not part of the CanvasPathMethods API.
Fix various bugs in _path_.arc and _path_.arcTo.
instanceof path.Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →