question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Constellations styles does not apply

See original GitHub issue

Hi, community Why this code doesn’t work?

          Celestial.apply({
                constellations: {
                    lineStyle: { stroke: `rgb(${color.rgb.r}, ${color.rgb.g}, ${color.rgb.b})`, width: 0.8, opacity: 0.8 }
                },
                stars: {
                    style: {
                        fill: `rgb(${color.rgb.r}, ${color.rgb.g}, ${color.rgb.b})`,
                        opacity: `${color.rgb.a}`
                    }
                },
            })

Styles, that I’m applying to the stars are displayed normally, but constellations become black and without any styles. Does anybody can help with this trouble?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
ofrohncommented, Aug 11, 2020

Sorry for the late answer, I was very busy. You managed to pick the two settings that were problematic. The constellation line setting was my fault, Because the constellation styles can be different depending on rank (set in json data), the setting needs to be changed into an array. I did not do that for settings applied at runtime. You can of course directly specify an array of color values with up to three values if you want different colors. The issue should be fixed now (v.0.7.30) For the star fill color to work stars.style.colors = false also needs to be set, otherwise automatically generated spectral colors will be displayed.

0reactions
rwardanjancommented, Nov 15, 2020

I have still the same problem. I want to set default width of the lineStyle to 4 but it does not change…?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Don't Constellations Look Anything Like What They're ...
Don't worry, you're not alone. Many constellations, frankly, don't look anything like what they're named. With their intriguing names, one would expect to ......
Read more >
How Constellation Reflects To Style - Ne.Sense
Everyone generally believes that astrology affects how others perceive themselves. If you think that “wearing” also has different styles, and that “ ...
Read more >
The Constellations | IAU - International Astronomical Union
Name / Pronunciation Abbr. English Name Andromeda. an‑DRAH‑mih‑duh And the Chained Maiden Antlia. ANT‑lee‑uh Ant the Air Pump Apus. APE‑us, APP‑us Aps the Bird of Paradise...
Read more >
The network signature of constellation line figures | PLOS ONE
We ask whether the geometry of constellations is unique to a sky culture (are humanoid-like figures characteristic only to Babylonia, and ...
Read more >
Constellation | Definition, Origin, History, & Facts - Britannica
constellation, in astronomy, any of certain groupings of stars that were imagined—at least by those who named them—to form conspicuous ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found