Skip to content

Commit 37a4244

Browse files
chore: remove unused imports
1 parent 4d5fb1a commit 37a4244

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

src/statevis/Controls.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { h, Component } from 'preact';
22
import { StateSelector } from '../selector/StateSelector';
3-
import { RENDERER_PRESETS, DEFAULT_RENDERER } from './renderers';
43
import { LayoutPrefs } from './LayoutPrefs';
54
import { Renderer } from './interface';
65
import { UIRouter } from '@uirouter/core';

src/statevis/StateVisWindow.tsx

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
1-
import { h, render, Component } from 'preact';
2-
import { StateSelector } from '../selector/StateSelector';
1+
import { h, Component } from 'preact';
32
import { toggleClass, addClass } from '../util/toggleClass';
4-
import { draggable, dragActions } from '../util/draggable';
5-
import { StateTree } from './tree/StateTree';
6-
import { Controls } from './Controls';
7-
import { DEFAULT_RENDERER, RENDERER_PRESETS } from './renderers';
8-
import { Renderer } from './interface';
93

104
export interface IProps {
115
minimized?: boolean; // ms
@@ -70,7 +64,7 @@ export class StateVisWindow extends Component<IProps, IState> {
7064

7165
toggleClass('minimized')(el);
7266
el.removeEventListener('click', unminimize);
73-
const animationEndListener = evt => {
67+
const animationEndListener = (evt) => {
7468
let bounds = el.getBoundingClientRect();
7569
el.style.top = bounds.top + 'px';
7670
el.style.left = bounds.left + 'px';
@@ -89,7 +83,7 @@ export class StateVisWindow extends Component<IProps, IState> {
8983
};
9084

9185
componentWillUnmount() {
92-
this.deregisterFns.forEach(fn => fn());
86+
this.deregisterFns.forEach((fn) => fn());
9387
}
9488

9589
componentDidMount() {
@@ -103,8 +97,8 @@ export class StateVisWindow extends Component<IProps, IState> {
10397
let _width = this.el.style.width;
10498
let _height = this.el.style.height;
10599

106-
let observer = new MutationObserver(mutations => {
107-
mutations.forEach(mutation => {
100+
let observer = new MutationObserver((mutations) => {
101+
mutations.forEach((mutation) => {
108102
if (mutation.attributeName == 'style') {
109103
let el = mutation.target,
110104
newwidth = el['style'].width,
@@ -135,7 +129,7 @@ export class StateVisWindow extends Component<IProps, IState> {
135129

136130
render() {
137131
return (
138-
<div className="uirStateVisContainer" ref={el => (this.el = el as HTMLElement)}>
132+
<div className="uirStateVisContainer" ref={(el) => (this.el = el as HTMLElement)}>
139133
{this.props.children}
140134
</div>
141135
);

0 commit comments

Comments
 (0)