d3-celestial
d3-celestial copied to clipboard
Is there a way to limit text within the bounds of the map itself?
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?
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 ;)