Skip to content

Commit 8933ed7

Browse files
Update formatting
1 parent 6223584 commit 8933ed7

File tree

4 files changed

+6
-8
lines changed

4 files changed

+6
-8
lines changed

src/main/components/connectable/connection-preview.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,9 @@ class Preview extends Component<Props, State> {
9696
if (event instanceof PointerEvent) {
9797
position = new Point(event.clientX - offset.x, event.clientY - offset.y).scale(1 / zoomFactor);
9898
} else {
99-
position = new Point(
100-
event.targetTouches[0].clientX - offset.x,
101-
event.targetTouches[0].clientY - offset.y,
102-
).scale(1 / zoomFactor);
99+
position = new Point(event.targetTouches[0].clientX - offset.x, event.targetTouches[0].clientY - offset.y).scale(
100+
1 / zoomFactor,
101+
);
103102
}
104103

105104
this.setState({ position });

src/main/components/uml-element/movable/movable.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ export const movable = (
5151
moveWindow: { x: number; y: number } = { x: 0, y: 0 };
5252

5353
move = (x: number, y: number) => {
54-
55-
const {zoomFactor = 1} = this.props;
54+
const { zoomFactor = 1 } = this.props;
5655

5756
x = Math.round(x / 10) * 10;
5857
y = Math.round(y / 10) * 10;

src/main/services/editor/editor-repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {ApollonView, ChangeViewAction, ChangeZoomFactorAction, EditorActionTypes} from './editor-types';
1+
import { ApollonView, ChangeViewAction, ChangeZoomFactorAction, EditorActionTypes } from './editor-types';
22

33
export class EditorRepository {
44
static changeView = (view: ApollonView): ChangeViewAction => ({

src/main/utils/clamp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
*/
77
export const clamp = (value: number, min: number, max: number): number => {
88
return Math.max(min, Math.min(value, max));
9-
};
9+
};

0 commit comments

Comments
 (0)