Philippe Rivière
Philippe Rivière
I'm curious about this. Wouldn't it also work by changing the sign of alpha? Could be nice to prototype in a notebook.
It would certainly be considered! My question about prototyping is also a way to ask how this could be used in a concrete application.
see also https://github.com/d3/d3-color/pull/71
I'm seeing the same behavior with Firefox and Safari. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/toFixed, which has a detailed explanation (for 2.55).
linked documentation PR https://github.com/d3/d3/pull/3803
We can define the spherical pre-clip shapes with more intermediate points—it still won't be a perfect line, but the issue will not be visible. On top of that, it's difficult...
PS: There might be a way to do the correct planar clipping, but it will be for another time :)
d3-geo doesn't include a generic planar clipping algorithm (see https://github.com/d3/d3-polygon/issues/4). It would be neat to have a generic clipping function (polygon postclip), but I don't think there is an easy...
The "rounded path" needs to be a polygon with as many vertices as necessary to give a good enough precision?
you could try this: ```svg ``` (and remove the antimeridian clip)