PAIR-code/scatter-gl

[Feature Request] Intelligent label placement

RyanMullins opened this issue · 0 comments

Depending on the camera orientation/position in the space, it is possible and relatively easy to have labels extend beyond the viewable area and get clipped.

Screen Shot 2022-02-02 at 4 13 26 PM

Would it be possible to implement intelligent label placement such that the label anchor is set to the closer of the two. sides of the viewable area (i.e., if the point is closer to the left side, the the text is anchored to the left and extends to the right, but if the point is closer to the right side, the the text is anchored to the right and extends to the left)? I think this would minimize clipping potential without the math getting too fancy.