index.js
/**
     * Handle mouse move out of circle
     * @param {object} event
     */
Handle mouse move out of circle
@param {object} event
Handle mouse move out of circle @param { object } event
function handleCircleOut(event){
        let to = event.currentTarget;
        if(from.isNeighbour(to.id) || to.id === from.id) {
            line.clear().lineStyle(1, 0x000000, 1);
            line.moveTo(from.x, from.y);
            line.lineTo(to.x, to.y);
            if(to.id !== from.id) {
                to.animateScale(false);
            } else {
                render();
            }
            circleContainer.on('mousemove', handleMove);
            circleContainer.on('mouseup', handleUp);
        }
    }
function handleCircleOut ( event ) { let to = event . currentTarget ; if ( from . isNeighbour ( to . id ) || to . id === from . id ) { line . clear ( ) . lineStyle ( 1 , 0x000000 , 1 ) ; line . moveTo ( from . x , from . y ) ; line . lineTo ( to . x , to . y ) ; if ( to . id !== from . id ) { to . animateScale ( false ) ; } else { render ( ) ; } circleContainer . on ( 'mousemove' , handleMove ) ; circleContainer . on ( 'mouseup' , handleUp ) ; } }
Handle mouse move out of circle
 @param {object} event
Handle mouse move out of circle @param { object } event
// Move line endpoint to cursor position // Enlarge pointed circle // Function render() is not neccesary, because circle scaling will do renderation