Open lee-dohm opened 6 years ago
I like Position
and Span
as they're pretty frequently used in such libraries/APIs.
It might not be as much of an issue in Xray because I think those are DOM globals and we don't intend to make editor APIs available on the main thread. That said, I appreciate you sharing these kinds of thoughts.
One thing that we ran into problems with the original API were the
Point
andRange
classes. Since the browser APIs contain classes named the same, we ran into naming collisions causing issues for those attempting to use the Atom API. I figured I would record this piece of tribal knowledge here so that we can avoid it in Xray.Suggestions
Alternatives for
Point
:Location
Coordinate
Position
Alternatives for
Range
:Span
Section
Bounds
Dimension
Limits