You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, first I want to thank you for all the amazing work you have done on this d3-celestial library.
I had a question about the 16x16 margins you are adding around the map. in the getWidth() function it calculates the width of the map from the parent then it subtracts this margin. Is there any way around this? I would like the parent component to control these margins and not have them added in. Thanks!
function getWidth() {
var w = 0;
if (isNumber(cfg.width) && cfg.width > 0) w = cfg.width;
else if (parent) w = parent.getBoundingClientRect().width - margin[0] *2; <---
else w = window.getBoundingClientRect().width - margin[0]*2; <---
//if (isNumber(cfg.background.width)) w -= cfg.background.width;
return w;
}
The text was updated successfully, but these errors were encountered:
Hi, first I want to thank you for all the amazing work you have done on this d3-celestial library.
I had a question about the 16x16 margins you are adding around the map. in the getWidth() function it calculates the width of the map from the parent then it subtracts this margin. Is there any way around this? I would like the parent component to control these margins and not have them added in. Thanks!
function getWidth() {
var w = 0;
if (isNumber(cfg.width) && cfg.width > 0) w = cfg.width;
else if (parent) w = parent.getBoundingClientRect().width - margin[0] *2; <---
else w = window.getBoundingClientRect().width - margin[0]*2; <---
//if (isNumber(cfg.background.width)) w -= cfg.background.width;
return w;
}
The text was updated successfully, but these errors were encountered: