Resources/public/js/map/src/entrypoint.js
/**
     * Disable pointer events on svg and update the diagram height according to the svg height
     */
Disable pointer events on svg and update the diagram height according to the svg height
Disable pointer events on svg and update the diagram height according to the svg height
function updateStyle () {
        var g = document.querySelector('#' + id + ' svg > g');
        var svg = document.querySelector('#' + id + ' svg');
        var wrapper = document.getElementById('svg-' + id);
        var svgHeight = g.getBoundingClientRect().height + 50;
        var svgWidth = g.getBoundingClientRect().width + 50;
        g.style.pointerEvents = 'none';
        var heightMargin = g.getBoundingClientRect().top - svg.getBoundingClientRect().top;
        svgHeight += heightMargin;
        var widthMargin = g.getBoundingClientRect().left - svg.getBoundingClientRect().left;
        svgWidth += widthMargin;
        svg.setAttribute('height', svgHeight + 'px');
        svg.setAttribute('width', svgWidth + 'px');
        wrapper.style.height = svgHeight + 'px';
        wrapper.style.overflow = 'auto';
    }
function updateStyle ( ) { var g = document . querySelector ( '#' + id + ' svg > g' ) ; var svg = document . querySelector ( '#' + id + ' svg' ) ; var wrapper = document . getElementById ( 'svg-' + id ) ; var svgHeight = g . getBoundingClientRect ( ) . height + 50 ; var svgWidth = g . getBoundingClientRect ( ) . width + 50 ; g . style . pointerEvents = 'none' ; var heightMargin = g . getBoundingClientRect ( ) . top - svg . getBoundingClientRect ( ) . top ; svgHeight += heightMargin ; var widthMargin = g . getBoundingClientRect ( ) . left - svg . getBoundingClientRect ( ) . left ; svgWidth += widthMargin ; svg . setAttribute ( 'height' , svgHeight + 'px' ) ; svg . setAttribute ( 'width' , svgWidth + 'px' ) ; wrapper . style . height = svgHeight + 'px' ; wrapper . style . overflow = 'auto' ; }
Disable pointer events on svg and update the diagram height according to the svg height
Disable pointer events on svg and update the diagram height according to the svg height