Skip to content
Snippets Groups Projects
helpers.js 291 B
Newer Older
  • Learn to ignore specific revisions
  • Matthias Konitzny's avatar
    Matthias Konitzny committed
    
    function getWidth() {
        return document.getElementById('3d-graph').offsetWidth;
    }
    
    
    function getHeight() {
        return window.innerHeight - 200
    }
    
    
    function getCanvasDivNode() {
        const domNode = document.getElementById('3d-graph');
        return domNode.firstChild.firstChild.firstChild;
    }