plugins/connectors/joint.connectors.jumpover.js
function findLineIntersections(line, crossCheckLines) {
        return util.toArray(crossCheckLines).reduce(function(res, crossCheckLine) {
            var intersection = line.intersection(crossCheckLine);
            if (intersection) {
                res.push(intersection);
            }
            return res;
        }, []);
    }
function findLineIntersections(line, crossCheckLines) {
        return util.toArray(crossCheckLines).reduce(function(res, crossCheckLine) {
            var intersection = line.intersection(crossCheckLine);
            if (intersection) {
                res.push(intersection);
            }
            return res;
        }, []);
    }
function findLineIntersections ( line , crossCheckLines ) { return util . toArray ( crossCheckLines ) . reduce ( function ( res , crossCheckLine ) { var intersection = line . intersection ( crossCheckLine ) ; if ( intersection ) { res . push ( intersection ) ; } return res ; } , [ ] ) ; }
Utility function to collect all intersection poinst of a single
line against group of other lines.
@param {g.line} line where to find points
@param {g.line[]} crossCheckLines lines to cross
@return {g.point[]} list of intersection points
Utility function to collect all intersection poinst of a single line against group of other lines .