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(); this._id = Command._nextUUID();
} }
/** // eslint-disable-next-line no-unused-vars
* @abstract
*/
execute(commandContext) { execute(commandContext) {
throw new Error('execute must be implemented.'); throw new Error('execute must be implemented.');
} }
/** // eslint-disable-next-line no-unused-vars
* Triggered by the undo button - reverses the executed command
* @abstract
*/
undoExecute(commandContext) { undoExecute(commandContext) {
throw new Error('undo must be implemented.'); throw new Error('undo must be implemented.');
} }

View File

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