ofrohn / d3-celestial

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

Drawing on existing canvas object #106

Open donjajo opened 3 years ago

donjajo commented 3 years ago

Hi,

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

Thanks

ofrohn commented 3 years ago

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