mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 03:33:48 +01:00
Fix basic formating lint issues.
This commit is contained in:
parent
b7c793daa7
commit
924408f83f
@ -17,7 +17,6 @@
|
||||
*/
|
||||
import { $assert, $defined } from '@wisemapping/core-js';
|
||||
import EventBus from './layout/EventBus';
|
||||
import NodeModel from './model/NodeModel';
|
||||
|
||||
class CommandContext {
|
||||
constructor(designer) {
|
||||
|
@ -20,7 +20,7 @@ import { $assert, $defined } from '@wisemapping/core-js';
|
||||
import {
|
||||
Point, CurvedLine, PolyLine, Line,
|
||||
} from '@wisemapping/web2d';
|
||||
import INodeModel, { TopicShape } from './model/INodeModel';
|
||||
import { TopicShape } from './model/INodeModel';
|
||||
import TopicConfig from './TopicConfig';
|
||||
|
||||
class ConnectionLine {
|
||||
|
@ -41,7 +41,7 @@ class CurvedLinePeer extends ElementPeer {
|
||||
this._control1.y = Number.parseFloat(this._control1.y, 10);
|
||||
}
|
||||
if (change) {
|
||||
this._updatePath();
|
||||
this._updatePath();
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ class CurvedLinePeer extends ElementPeer {
|
||||
&& $defined(this._y2)
|
||||
) {
|
||||
this._calculateAutoControlPoints(avoidControlPointFix);
|
||||
|
||||
|
||||
const path = `M${this._x1.toFixed(2)},${this._y1.toFixed(2)} C${(this._control1.x + this._x1).toFixed(2)},${this._control1.y + this._y1
|
||||
} ${(this._control2.x + this._x2).toFixed(2)},${(this._control2.y + this._y2).toFixed(2)} ${(this._x2).toFixed(2)},${(this._y2).toFixed(2)}${this._lineStyle
|
||||
? ` ${(this._control2.x + this._x2).toFixed(2)},${(this._control2.y + this._y2 + 3).toFixed(2)} ${(this._control1.x + this._x1
|
||||
|
@ -47,7 +47,7 @@ class RectPeer extends ElementPeer {
|
||||
setSize(width, height) {
|
||||
super.setSize(width, height);
|
||||
const min = width < height ? width : height;
|
||||
|
||||
|
||||
if ($defined(this._arc)) {
|
||||
// Transform percentages to SVG format.
|
||||
const arc = (min / 2) * this._arc;
|
||||
|
@ -1,5 +1,3 @@
|
||||
import { $defined } from '@wisemapping/core-js';
|
||||
|
||||
// quick hand-made version of $.css()
|
||||
export const getStyle = (elem, prop) => {
|
||||
const result = window.getComputedStyle(elem)[prop];
|
||||
|
Loading…
Reference in New Issue
Block a user