Replies: 3 comments 1 reply
-
I agree that lineIntersect is a bit confusing considering it works on LineStrings and Polygons. I would be happy to rename it to intersectionPoints if that helps provide clarity to users |
Beta Was this translation helpful? Give feedback.
-
I don't know of any other renames offhand, but I made a PR for lineIntersect #2187 |
Beta Was this translation helpful? Give feedback.
-
Rebooting this discussion, within the context of the boolean* functions, which I find a bit clunky. Can appreciate a legacy argument for highlighting a boolean return type via the function name. With typescript more prevalent now don't think that's as important. Now that we have named exports (and can export the same function multiple times with different names), could we start transitioning names to roll off the tongue more easily?
Some of the above suggestions collide with other function names - concave and convex - though we could in turn name those functions better as concaveHull and convexHull. Regarding the original topic - lineIntersect - could we move in the other direction, and have just a single Same would go for That said though, a note on
|
Beta Was this translation helpful? Give feedback.
-
If we're working towards a release of v7 then now would be a good time to rename any modules as a breaking change.
lineIntersect
to becomeintersectionPoints
. Rationale being is that this module supports both polygons and lines, and I think the proposed name is a bit clearer as to what it does and returns.Any other thoughts for candidates @mfedderly @JamesLMilner @twelch ?
Beta Was this translation helpful? Give feedback.
All reactions