ofrohn / d3-celestial

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

Changing the width causes issues. #138

Open TechnocracyArabic opened 1 year ago

TechnocracyArabic commented 1 year ago

Greetings, I'm having multiple issues with the width and hoping to find some solutions:

  1. The initial width (though it is set as 0) is not fit to page (parent width) unless if changed to any number and then set it to 0 again.
  2. Changing the width in the form to any number (say 500px) makes the canvas way bigger (as for 500px, the canvas will be 6252.5px); which causes the whole map to not be visible in frame. Same issue happens in this link: https://armchairastronautics.blogspot.com/p/skymap.html
  3. Changing the width will keep the stars, texts, lines and everything the same size (results to be very small or very big). You can use the link above to see this issue.

Thank you in advanced.