File tree Expand file tree Collapse file tree 3 files changed +10
-18
lines changed
Expand file tree Collapse file tree 3 files changed +10
-18
lines changed Original file line number Diff line number Diff line change 11import { IJupyterCadDoc , IJupyterCadModel } from '@jupytercad/schema' ;
22import { ISignal } from '@lumino/signaling' ;
33
4- import {
5- IJupyterCadTracker ,
6- IJupyterCadWidget
7- } from '@jupytercad/schema' ;
4+ import { IJupyterCadTracker , IJupyterCadWidget } from '@jupytercad/schema' ;
85import { IControlPanelModel } from '../types' ;
96import { JupyterCadWidget } from '../widget' ;
107import { 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 {
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 11import { ISignal } from '@lumino/signaling' ;
22import { IJupyterCadModel , IJupyterCadDoc , IDict } from '@jupytercad/schema' ;
3- import {
4- IJupyterCadTracker ,
5- IJupyterCadWidget
6- } from '@jupytercad/schema' ;
3+ import { IJupyterCadTracker , IJupyterCadWidget } from '@jupytercad/schema' ;
74import { MainViewModel } from './3dview/mainviewmodel' ;
85import { WidgetTracker } from '@jupyterlab/apputils' ;
96
You can’t perform that action at this time.
0 commit comments