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
This way APIs could accept an interface of { points: Point[] } and be made to work with both Polygon-type shapes and Line-type shapes easily.
This would also allow for destructuring line.points to quickly renaming variables, for example:
// could be...let[a,b]=line.points// instead of...leta=line.p1letb=line.p2
(I'm just opening issues as I use the library and run into problems or inconveniences, but let me know if you'd prefer I not open these kind of ideas issues.)
The text was updated successfully, but these errors were encountered:
This way APIs could accept an interface of
{ points: Point[] }
and be made to work with bothPolygon
-type shapes andLine
-type shapes easily.This would also allow for destructuring
line.points
to quickly renaming variables, for example:(I'm just opening issues as I use the library and run into problems or inconveniences, but let me know if you'd prefer I not open these kind of ideas issues.)
The text was updated successfully, but these errors were encountered: