File tree Expand file tree Collapse file tree 6 files changed +21
-6
lines changed
Expand file tree Collapse file tree 6 files changed +21
-6
lines changed Original file line number Diff line number Diff line change 204204 "title": "Famous Statues"
205205 }
206206 }
207- }
207+ }
Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ export function StoryEditorPanel({ model }: IStoryPanelProps) {
2727 } , [ model , model . sharedModel . stories ] ) ;
2828
2929 const syncStoryData = ( properties : IDict ) => {
30- model . sharedModel . updateStoryMap ( storySegmentId , properties as IJGISStoryMap ) ;
30+ model . sharedModel . updateStoryMap (
31+ storySegmentId ,
32+ properties as IJGISStoryMap ,
33+ ) ;
3134 } ;
3235
3336 if ( ! story ) {
Original file line number Diff line number Diff line change @@ -171,7 +171,10 @@ function StoryViewerPanel({ model }: IStoryViewerPanelProps) {
171171 model . sharedModel . awareness . on ( 'change' , handleSelectedStorySegmentChange ) ;
172172
173173 return ( ) => {
174- model . sharedModel . awareness . off ( 'change' , handleSelectedStorySegmentChange ) ;
174+ model . sharedModel . awareness . off (
175+ 'change' ,
176+ handleSelectedStorySegmentChange ,
177+ ) ;
175178 } ;
176179 } , [ model , storyData ] ) ;
177180
Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ export const LeftPanel: React.FC<ILeftPanelProps> = (
6767
6868 const processLayer = (
6969 layer : IJGISLayerItem ,
70- ) : { filtered : IJGISLayerItem | null ; storySegment : IJGISLayerItem | null } => {
70+ ) : {
71+ filtered : IJGISLayerItem | null ;
72+ storySegment : IJGISLayerItem | null ;
73+ } => {
7174 if ( typeof layer === 'string' ) {
7275 const layerData = props . model . getLayer ( layer ) ;
7376 const isStorySegment = layerData ?. type === 'StorySegmentLayer' ;
Original file line number Diff line number Diff line change @@ -280,7 +280,10 @@ export interface IJupyterGISModel extends DocumentRegistry.IModel {
280280 triggerLayerUpdate ( layerId : string , layer : IJGISLayer ) : void ;
281281
282282 disposed : ISignal < any , void > ;
283- getSelectedStory ( ) : { storySegmentId : string ; story : IJGISStoryMap | undefined } ;
283+ getSelectedStory ( ) : {
284+ storySegmentId : string ;
285+ story : IJGISStoryMap | undefined ;
286+ } ;
284287 addStorySegment ( ) : { storySegmentId : string ; storyMapId : string } | null ;
285288}
286289
Original file line number Diff line number Diff line change @@ -608,7 +608,10 @@ export class JupyterGISModel implements IJupyterGISModel {
608608 * Placeholder in case we eventually want to support multiple stories
609609 * @returns First/only story
610610 */
611- getSelectedStory ( ) : { storySegmentId : string ; story : IJGISStoryMap | undefined } {
611+ getSelectedStory ( ) : {
612+ storySegmentId : string ;
613+ story : IJGISStoryMap | undefined ;
614+ } {
612615 const stories = this . sharedModel . stories ;
613616 const storyId = Object . keys ( stories ) [ 0 ] ;
614617
You can’t perform that action at this time.
0 commit comments