index.js
/**
     * Handle mouse move into circle event - move user line endpoint to this circle (if this circle is next to from circle)
     * @param {object} event
     */
Handle mouse move into circle event - move user line endpoint to this circle (if this circle is next to from circle)
@param {object} event
Handle mouse move into circle event - move user line endpoint to this circle ( if this circle is next to from circle ) @param { object } event
function handleCircleOver(event){
        let to = event.data.target;
        if(lines[Line.getLineId(from.id, to.id, CIRCLE_COUNT)].hidden && from.isNeighbour(to.id)) {
            line.clear().lineStyle(3, 0x000000, 1);
            line.moveTo(from.x, from.y);
            line.lineTo(to.x, to.y);
            if(to.id !== from.id) {
                to.animateScale();
            }
            circleContainer.off('mousemove', handleMove);
            circleContainer.off('mouseup', handleUp);
        }
    }
function handleCircleOver ( event ) { let to = event . data . target ; if ( lines [ Line . getLineId ( from . id , to . id , CIRCLE_COUNT ) ] . hidden && from . isNeighbour ( to . id ) ) { line . clear ( ) . lineStyle ( 3 , 0x000000 , 1 ) ; line . moveTo ( from . x , from . y ) ; line . lineTo ( to . x , to . y ) ; if ( to . id !== from . id ) { to . animateScale ( ) ; } circleContainer . off ( 'mousemove' , handleMove ) ; circleContainer . off ( 'mouseup' , handleUp ) ; } }
Handle mouse move into circle event - move user line endpoint to this circle (if this circle is next to from circle)
 @param {object} event
Handle mouse move into circle event - move user line endpoint to this circle ( if this circle is next to from circle ) @param { object } event
// Move line endpoint to centre of pointed circle // Function render() is not neccesary, because circle scaling will do renderation