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

is there a way of changing lineStyle definition for one particular constellation?

Open oudeicrat opened this issue 3 years ago • 2 comments

Is there a way of changing lineStyle definition for one particular constellation? Even a hint about where I should look in the celestial.js file would be useful.

So far I found the showCon() function and I also found out the style definitions are processed in multiple confusing stages and finally there is a structure which contains each style property 3 times and I essentially gave up at that point for today.

oudeicrat avatar Aug 28 '20 18:08 oudeicrat

I'm afraid that isn't currently possible, except for the constellation that is selected and zoomed in through a select box in the form, by the showCon() function you have found. The array structure is according to ranking from 1 to 3 in the constellation.json data, in order to display constellations differently by size or brightness. I could add another style option for one single programmatically selected constellation, but I'm afraid that would make the styling even more confusing. One option would be to reset all the ranks to 1 and only set one to 2 by function, with that you could use the array functionality to style the selected const however you like.

ofrohn avatar Sep 13 '20 19:09 ofrohn

thanks, I'll try to hack the ranks

oudeicrat avatar Oct 06 '20 06:10 oudeicrat