mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-10 17:33:24 +01:00
More eslint fixes.
This commit is contained in:
parent
8a8e921c17
commit
48642f2dcf
@ -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.');
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user