Skip to content

Commit b634016

Browse files
committed
Lint
1 parent 886a827 commit b634016

File tree

6 files changed

+21
-6
lines changed

6 files changed

+21
-6
lines changed

examples/story_map.jGIS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,4 +204,4 @@
204204
"title": "Famous Statues"
205205
}
206206
}
207-
}
207+
}

packages/base/src/panelview/components/story-maps/StoryEditorPanel.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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) {

packages/base/src/panelview/components/story-maps/StoryViewerPanel.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

packages/base/src/panelview/leftpanel.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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';

packages/schema/src/interfaces.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

packages/schema/src/model.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)