muaz-khan / Canvas-Designer

Collaborative, extendable, JavaScript Canvas2D drawing tool, supports dozens of builtin tools, as well as generates JavaScript code for 2D animations.
https://www.webrtc-experiment.com/Canvas-Designer/
MIT License
368 stars 171 forks source link

how can I access a 'tool-box' ??? #56

Open LucasHimelfarb opened 5 years ago

LucasHimelfarb commented 5 years ago

iframe do not have ID

LucasHimelfarb commented 5 years ago

window.frames[0].document.getElementById('tool-box').style.display="none";

is working

muaz-khan commented 5 years ago

Actually I'm planning to remove <iframe>. Code will be appended directly into current DOM/HTML.

In that case, you'll be able to access tool-box using document.querySelector('.cd-tool-box').

Actually it is required to fix touch/move issues on mobile devices.

LucasHimelfarb commented 5 years ago

Thanks for answering, do you have any estimate of how much time it may take?