fireMouseMoved(event) {
        const portPos = this.port.getPosition();
        const zoomLevelPercentage = this.engine.getModel().getZoomLevel() / 100;
        const engineOffsetX = this.engine.getModel().getOffsetX() / zoomLevelPercentage;
        const engineOffsetY = this.engine.getModel().getOffsetY() / zoomLevelPercentage;
        const initialXRelative = this.initialXRelative / zoomLevelPercentage;
        const initialYRelative = this.initialYRelative / zoomLevelPercentage;
        const linkNextX = portPos.x - engineOffsetX + (initialXRelative - portPos.x) + event.virtualDisplacementX;
        const linkNextY = portPos.y - engineOffsetY + (initialYRelative - portPos.y) + event.virtualDisplacementY;
        this.link.getLastPoint().setPosition(linkNextX, linkNextY);
        this.engine.repaintCanvas();
    }
/**
     * Calculates the link's far-end point position on mouse move.
     * In order to be as precise as possible the mouse initialXRelative & initialYRelative are taken into account as well
     * as the possible engine offset
     */
Calculates the link's far-end point position on mouse move.
In order to be as precise as possible the mouse initialXRelative & initialYRelative are taken into account as well
as the possible engine offset
Calculates the link ' s far - end point position on mouse move . In order to be as precise as possible the mouse initialXRelative & initialYRelative are taken into account as well as the possible engine offset
fireMouseMoved(event) {
        const portPos = this.port.getPosition();
        const zoomLevelPercentage = this.engine.getModel().getZoomLevel() / 100;
        const engineOffsetX = this.engine.getModel().getOffsetX() / zoomLevelPercentage;
        const engineOffsetY = this.engine.getModel().getOffsetY() / zoomLevelPercentage;
        const initialXRelative = this.initialXRelative / zoomLevelPercentage;
        const initialYRelative = this.initialYRelative / zoomLevelPercentage;
        const linkNextX = portPos.x - engineOffsetX + (initialXRelative - portPos.x) + event.virtualDisplacementX;
        const linkNextY = portPos.y - engineOffsetY + (initialYRelative - portPos.y) + event.virtualDisplacementY;
        this.link.getLastPoint().setPosition(linkNextX, linkNextY);
        this.engine.repaintCanvas();
    }
fireMouseMoved ( event ) { const portPos = this . port . getPosition ( ) ; const zoomLevelPercentage = this . engine . getModel ( ) . getZoomLevel ( ) / 100 ; const engineOffsetX = this . engine . getModel ( ) . getOffsetX ( ) / zoomLevelPercentage ; const engineOffsetY = this . engine . getModel ( ) . getOffsetY ( ) / zoomLevelPercentage ; const initialXRelative = this . initialXRelative / zoomLevelPercentage ; const initialYRelative = this . initialYRelative / zoomLevelPercentage ; const linkNextX = portPos . x - engineOffsetX + ( initialXRelative - portPos . x ) + event . virtualDisplacementX ; const linkNextY = portPos . y - engineOffsetY + ( initialYRelative - portPos . y ) + event . virtualDisplacementY ; this . link . getLastPoint ( ) . setPosition ( linkNextX , linkNextY ) ; this . engine . repaintCanvas ( ) ; }
Calculates the link's far-end point position on mouse move.
Calculates the link ' s far - end point position on mouse move .