More eslint fixes.

This commit is contained in:
Paulo Gustavo Veiga 2021-12-19 09:11:45 -08:00
parent 8a8e921c17
commit 48642f2dcf
2 changed files with 7 additions and 12 deletions

View File

@ -26,17 +26,12 @@ class Command {
this._id = Command._nextUUID();
}
/**
* @abstract
*/
// eslint-disable-next-line no-unused-vars
execute(commandContext) {
throw new Error('execute must be implemented.');
}
/**
* Triggered by the undo button - reverses the executed command
* @abstract
*/
// eslint-disable-next-line no-unused-vars
undoExecute(commandContext) {
throw new Error('undo must be implemented.');
}

View File

@ -17,7 +17,9 @@
*/
import { $assert, $defined } from '@wisemapping/core-js';
import { Point, CurvedLine, PolyLine, Line } from '@wisemapping/web2d';
import {
Point, CurvedLine, PolyLine, Line,
} from '@wisemapping/web2d';
import INodeModel, { TopicShape } from './model/INodeModel';
import TopicConfig from './TopicConfig';
@ -101,10 +103,8 @@ class ConnectionLine {
const targetTopic = this._targetTopic;
const targetPosition = targetTopic.getPosition();
let sPos;
let tPos;
sPos = sourceTopic.workoutOutgoingConnectionPoint(targetPosition);
tPos = targetTopic.workoutIncomingConnectionPoint(sourcePosition);
const sPos = sourceTopic.workoutOutgoingConnectionPoint(targetPosition);
const tPos = targetTopic.workoutIncomingConnectionPoint(sourcePosition);
line2d.setFrom(tPos.x, tPos.y);
line2d.setTo(sPos.x, sPos.y);