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

Drawing on existing canvas object

Open donjajo opened this issue 3 years ago • 1 comments

Hi,

Is it possible to draw on an existing canvas element and position it. Rather than providing a html element?

Thanks

donjajo avatar Nov 21 '20 15:11 donjajo

The canvas is always created within a div element, id given by the configuration parameter container (default 'celestial-map') with the selector #celestial-map canvas you can always access it externally. sorry for the late answer

ofrohn avatar Feb 14 '21 20:02 ofrohn