ofrohn / d3-celestial

A star map with d3.js
BSD 3-Clause "New" or "Revised" License
631 stars 179 forks source link

Can we change constellation line color with some function? #110

Open kgoyal000 opened 3 years ago

kgoyal000 commented 3 years ago

Thanks again for reading this query

Hope you are doing great :)

I was wondering is there any callback available with which we can change styles that are not present in the advance form? Like I want to change constellation lines color but without calling celestial.display() it doesn't seem possible and this method creates another copy without replacing the old canvas

ofrohn commented 3 years ago

celestial.display() is only for the initial display of the map, to update the styles use Celestial.apply({config}) with any parameters documented in the readme