Skip to content

Commit bd2e9ef

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent cd78edb commit bd2e9ef

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

packages/base/src/panelview/model.ts

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import { IJupyterCadDoc, IJupyterCadModel } from '@jupytercad/schema';
22
import { ISignal } from '@lumino/signaling';
33

4-
import {
5-
IJupyterCadTracker,
6-
IJupyterCadWidget
7-
} from '@jupytercad/schema';
4+
import { IJupyterCadTracker, IJupyterCadWidget } from '@jupytercad/schema';
85
import { IControlPanelModel } from '../types';
96
import { JupyterCadWidget } from '../widget';
107
import { MainViewModel } from '../3dview/mainviewmodel';
@@ -15,10 +12,7 @@ export class ControlPanelModel implements IControlPanelModel {
1512
this._documentChanged = this._tracker.currentChanged;
1613
}
1714

18-
get documentChanged(): ISignal<
19-
IJupyterCadTracker,
20-
IJupyterCadWidget | null
21-
> {
15+
get documentChanged(): ISignal<IJupyterCadTracker, IJupyterCadWidget | null> {
2216
return this._documentChanged;
2317
}
2418

@@ -35,8 +29,8 @@ export class ControlPanelModel implements IControlPanelModel {
3529
}
3630

3731
get mainViewModel(): MainViewModel | undefined {
38-
return (this._tracker.currentWidget as JupyterCadWidget | null)
39-
?.content.currentViewModel;
32+
return (this._tracker.currentWidget as JupyterCadWidget | null)?.content
33+
.currentViewModel;
4034
}
4135

4236
disconnect(f: any): void {

packages/base/src/panelview/objectproperties.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ export class ObjectProperties extends PanelWithToolbar {
8282

8383
if (changed.model.sharedModel.editable) {
8484
currentModel = changed.model;
85-
const clients = currentModel?.sharedModel.awareness.getStates() as Map<
86-
number,
87-
IJupyterCadClientState
88-
>;
85+
const clients =
86+
currentModel?.sharedModel.awareness.getStates() as Map<
87+
number,
88+
IJupyterCadClientState
89+
>;
8990
updateTitle(currentModel as JupyterCadModel, clients);
9091
currentModel?.clientStateChanged.connect(updateTitle);
9192

packages/base/src/types.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { ISignal } from '@lumino/signaling';
22
import { IJupyterCadModel, IJupyterCadDoc, IDict } from '@jupytercad/schema';
3-
import {
4-
IJupyterCadTracker,
5-
IJupyterCadWidget
6-
} from '@jupytercad/schema';
3+
import { IJupyterCadTracker, IJupyterCadWidget } from '@jupytercad/schema';
74
import { MainViewModel } from './3dview/mainviewmodel';
85
import { WidgetTracker } from '@jupyterlab/apputils';
96

0 commit comments

Comments
 (0)