How to use the raphael.isBBoxIntersect function in raphael

To help you get started, we’ve selected a few raphael examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github RockyRen / mindmaptree / src / libs / Renderer / Drag.js View on Github external
function _getOverlapNodeId(){
        let nodeBBox = node.shape.getBBox();
        for(let id in addableBoxSet){
            let curBBox = addableBoxSet[id];
            if(Raphael.isBBoxIntersect(nodeBBox, curBBox)){
                return id;
            }
        }
        return null;
    }