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