d3-celestial icon indicating copy to clipboard operation
d3-celestial copied to clipboard

Is there a way to limit text within the bounds of the map itself?

Open tman16 opened this issue 4 years ago • 1 comments

Hi there

I have an issue displaying the constellation proper names, some of this text spills out side of the spherical map area (I am using the projection orthographic).

Is there a way to either force all text on the left-hand-side to align to the right and then visa versa. OR to prevent the text from appearing if any part of it falls outside of specifically the circle area?

tman16 avatar Jan 03 '20 15:01 tman16

Interesting question. I've never considered that a problem that names 'stick out' of the outline. But either option should be possible, depending on the position of each name and/or its distance to the border. Any option requires code change for the name display, I'll put it on the road map, but you're welcome to make a pull request ;)

ofrohn avatar Jan 25 '20 21:01 ofrohn