You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful if the numberOfEdges option could accept a callback which would calculate the number of edges based on the size/radius/circumference of the circle.
The new usage might look something like this:
constcircleToPolygon=require("circle-to-polygon");constcoordinates=[-27.4575887,-58.99029];constradius=100;constnumberOfEdges=({ c })=>c/4;letpolygon=circleToPolygon(coordinates,radius,{ numberOfEdges });
And the definition for getNumberOfEdges could be adjusted to this:
It would be very useful if the
numberOfEdges
option could accept a callback which would calculate the number of edges based on the size/radius/circumference of the circle.The new usage might look something like this:
And the definition for
getNumberOfEdges
could be adjusted to this:The text was updated successfully, but these errors were encountered: