Testing of veltman/flubber Built with blockbuilder.org
Some countries break when calling
flubber.combine on them.
E.g. if you add the United States back in (by removing
840 from the end of line 46) you’ll get an error that:
Uncaught RangeError: Can't collapse topology into 10 pieces.
maxSegmentLength can cause more countries to break.
circlePath(x,y,radius) (line 31) returns a perfect SVG circle path, the result of interpolating to it is ~octagonal.
maxSegmentLength makes it more circular, but at the expense of performance.
Could be fixed by calling one final transition to go from the final interpolated step to the circle, but maybe that should be a built-in feature of the interpolator?
EDIT: should be fixed by https://github.com/veltman/flubber/pull/2/files