@abi-software/flatmapvuer 1.4.1-beta.5 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "1.4.1-beta.5",
3
+ "version": "1.4.2",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@abi-software/flatmap-viewer": "3.1.4",
47
- "@abi-software/map-utilities": "^1.1.0-beta.2",
47
+ "@abi-software/map-utilities": "1.1.0",
48
48
  "@abi-software/sparc-annotation": "0.3.1",
49
49
  "@abi-software/svg-sprite": "1.0.0",
50
50
  "@element-plus/icons-vue": "^2.3.1",
@@ -59,7 +59,7 @@
59
59
  "@cypress/webpack-dev-server": "^3.6.1",
60
60
  "@vitejs/plugin-vue": "^4.6.2",
61
61
  "@vuese/markdown-render": "^2.11.3",
62
- "@vuese/parser": "^2.9.1",
62
+ "@vuese/parser": "^2.10.3",
63
63
  "auto-changelog": "^2.4.0",
64
64
  "babel-eslint": "^10.1.0",
65
65
  "chokidar": "^3.6.0",
@@ -92,8 +92,5 @@
92
92
  "browserslist": [
93
93
  "> 1%",
94
94
  "last 2 versions"
95
- ],
96
- "optionalDependencies": {
97
- "@rollup/rollup-linux-x64-gnu": "^4.21.1"
98
- }
95
+ ]
99
96
  }
package/src/App.vue CHANGED
@@ -77,7 +77,6 @@
77
77
  :displayMinimap="true"
78
78
  :enableOpenMapUI="true"
79
79
  :flatmapAPI="flatmapAPI"
80
- :sparcAPI="sparcAPI"
81
80
  :disableUI="disableUI"
82
81
  @open-pubmed-url="onOpenPubmedUrl"
83
82
  @pathway-selection-changed="onPathwaySelectionChanged"
@@ -110,9 +109,6 @@ import './icons/mapicon-species-style.css'
110
109
  import MultiFlatmapVuer from './components/MultiFlatmapVuer.vue'
111
110
  import { HelpModeDialog } from '@abi-software/map-utilities'
112
111
  import '@abi-software/map-utilities/dist/style.css'
113
- import { mapStores } from 'pinia';
114
- import { useSettingsStore } from './stores/settings';
115
- import { getOrganCuries } from './services/scicrunchQueries'
116
112
 
117
113
  export default {
118
114
  name: 'app',
@@ -149,7 +145,6 @@ export default {
149
145
  if (this.consoleOn) console.log(component)
150
146
  let taxon = component.mapImp.describes
151
147
  let id = component.mapImp.addMarker('UBERON:0000948')
152
-
153
148
  window.flatmapImp = component.mapImp
154
149
  component.enablePanZoomEvents(true)
155
150
  //component.showPathwaysDrawer(false);
@@ -290,7 +285,6 @@ export default {
290
285
  useHelpModeDialog: true,
291
286
  multiflatmapRef: null,
292
287
  mapSettings: [],
293
- sparcAPI: import.meta.env.VITE_SPARC_API,
294
288
  //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
295
289
  //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
296
290
  flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/",
@@ -299,15 +293,11 @@ export default {
299
293
  //flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
300
294
  //flatmapAPI: "https://mapcore-demo.org/staging/flatmap/v1/"
301
295
  // flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/",
302
- ElIconSetting: shallowRef(ElIconSetting),
296
+ ElIconSetting: shallowRef(ElIconSetting)
303
297
  }
304
298
  },
305
299
  mounted: function () {
306
300
  this.multiflatmapRef = this.$refs.multi;
307
- getOrganCuries(this.sparcAPI).then((organCuries) => this.settingsStore.updateOrganCuries(organCuries))
308
- },
309
- computed: {
310
- ...mapStores(useSettingsStore),
311
301
  },
312
302
  watch: {
313
303
  helpMode: function (newVal) {
@@ -176,13 +176,17 @@ Please use `const` to assign meaningful names to them...
176
176
  ref="zoomInPopover"
177
177
  >
178
178
  <template #reference>
179
- <map-svg-icon
180
- icon="zoomIn"
181
- class="icon-button zoomIn"
179
+ <div
180
+ class="icon-button-container"
182
181
  @click="zoomIn()"
183
182
  @mouseover="showTooltip(1)"
184
183
  @mouseout="hideTooltip(1)"
185
- />
184
+ >
185
+ <map-svg-icon
186
+ class="icon-button zoomIn"
187
+ icon="zoomIn"
188
+ />
189
+ </div>
186
190
  </template>
187
191
  </el-popover>
188
192
  <el-popover
@@ -196,13 +200,17 @@ Please use `const` to assign meaningful names to them...
196
200
  ref="zoomOutPopover"
197
201
  >
198
202
  <template #reference>
199
- <map-svg-icon
200
- icon="zoomOut"
201
- class="icon-button zoomOut"
203
+ <div
204
+ class="icon-button-container"
202
205
  @click="zoomOut()"
203
206
  @mouseover="showTooltip(2)"
204
207
  @mouseout="hideTooltip(2)"
205
- />
208
+ >
209
+ <map-svg-icon
210
+ class="icon-button zoomOut"
211
+ icon="zoomOut"
212
+ />
213
+ </div>
206
214
  </template>
207
215
  </el-popover>
208
216
  <el-popover
@@ -221,13 +229,17 @@ Please use `const` to assign meaningful names to them...
221
229
  window
222
230
  </div>
223
231
  <template #reference>
224
- <map-svg-icon
225
- icon="fitWindow"
226
- class="icon-button fitWindow"
232
+ <div
233
+ class="icon-button-container"
227
234
  @click="resetView()"
228
235
  @mouseover="showTooltip(3)"
229
236
  @mouseout="hideTooltip(3)"
230
- />
237
+ >
238
+ <map-svg-icon
239
+ class="icon-button fitWindow"
240
+ icon="fitWindow"
241
+ />
242
+ </div>
231
243
  </template>
232
244
  </el-popover>
233
245
  </div>
@@ -285,7 +297,7 @@ Please use `const` to assign meaningful names to them...
285
297
  width="200"
286
298
  trigger="manual"
287
299
  popper-class="flatmap-popper flatmap-marker-popper"
288
- :visible="hoverVisibilities[5].value"
300
+ :visible="hoverVisibilities[0].value"
289
301
  ref="markerPopover"
290
302
  >
291
303
  <template #reference>
@@ -426,7 +438,7 @@ Please use `const` to assign meaningful names to them...
426
438
  ref="backgroundPopover"
427
439
  :virtual-ref="backgroundIconRef"
428
440
  placement="top-start"
429
- width="330"
441
+ width="320"
430
442
  :teleported="false"
431
443
  trigger="click"
432
444
  popper-class="background-popper h-auto"
@@ -453,14 +465,13 @@ Please use `const` to assign meaningful names to them...
453
465
  </el-row>
454
466
  </el-row>
455
467
  <template v-if="viewingMode === 'Annotation' && userInformation">
456
- <el-row class="backgroundSpacer"></el-row>
457
468
  <el-row class="backgroundText">Drawn By*</el-row>
458
469
  <el-row class="backgroundControl">
459
470
  <el-select
460
471
  :teleported="false"
461
472
  v-model="drawnType"
462
473
  placeholder="Select"
463
- class="select-box annotationSelector"
474
+ class="select-box"
464
475
  popper-class="flatmap_dropdown"
465
476
  @change="setDrawnType"
466
477
  >
@@ -476,14 +487,13 @@ Please use `const` to assign meaningful names to them...
476
487
  </el-option>
477
488
  </el-select>
478
489
  </el-row>
479
- <el-row class="backgroundSpacer"></el-row>
480
490
  <el-row class="backgroundText">Annotated By*</el-row>
481
491
  <el-row class="backgroundControl">
482
492
  <el-select
483
493
  :teleported="false"
484
494
  v-model="annotatedType"
485
495
  placeholder="Select"
486
- class="select-box annotationSelector"
496
+ class="select-box"
487
497
  popper-class="flatmap_dropdown"
488
498
  @change="setAnnotatedType"
489
499
  >
@@ -500,41 +510,6 @@ Please use `const` to assign meaningful names to them...
500
510
  </el-select>
501
511
  </el-row>
502
512
  </template>
503
- <el-row class="backgroundSpacer" v-if="viewingMode === 'Exploration' && !isFC"></el-row>
504
- <el-row class="backgroundText" v-if="viewingMode === 'Exploration' && !isFC">Markers display</el-row>
505
- <el-row class="backgroundControl" v-if="viewingMode === 'Exploration' && !isFC">
506
- <el-col :span="14">
507
- <el-radio-group
508
- v-model="imageRadio"
509
- class="flatmap-radio"
510
- @change="setImage"
511
- >
512
- <el-radio :label="false">Standard</el-radio>
513
- <el-radio :label="true">Image</el-radio>
514
- </el-radio-group>
515
- </el-col>
516
- <el-col :span="10" v-if="imageRadio">
517
- <el-select
518
- :teleported="false"
519
- v-model="imageType"
520
- placeholder="Select"
521
- class="select-box imageSelector"
522
- popper-class="flatmap_dropdown"
523
- @change="setImageType"
524
- >
525
- <el-option
526
- v-for="item in imageTypes"
527
- :key="item"
528
- :label="item"
529
- :value="item"
530
- >
531
- <el-row>
532
- <el-col :span="12">{{ item }}</el-col>
533
- </el-row>
534
- </el-option>
535
- </el-select>
536
- </el-col>
537
- </el-row>
538
513
  <el-row class="backgroundSpacer" v-if="displayFlightPathOption"></el-row>
539
514
  <el-row class="backgroundText" v-if="displayFlightPathOption">Flight path display</el-row>
540
515
  <el-row class="backgroundControl" v-if="displayFlightPathOption">
@@ -602,14 +577,18 @@ Please use `const` to assign meaningful names to them...
602
577
  ref="openMapPopover"
603
578
  >
604
579
  <template #reference>
605
- <map-svg-icon
580
+ <div
606
581
  v-if="enableOpenMapUI && openMapOptions.length > 0"
607
582
  ref="openMapRef"
608
- icon="openMap"
609
- class="icon-button open-map-button"
583
+ class="icon-button-container"
610
584
  @mouseover="showTooltip(4)"
611
585
  @mouseout="hideTooltip(4)"
612
- />
586
+ >
587
+ <map-svg-icon
588
+ icon="openMap"
589
+ class="icon-button open-map-button"
590
+ />
591
+ </div>
613
592
  </template>
614
593
  </el-popover>
615
594
  </el-row>
@@ -624,13 +603,17 @@ Please use `const` to assign meaningful names to them...
624
603
  ref="settingsPopover"
625
604
  >
626
605
  <template #reference>
627
- <map-svg-icon
606
+ <div
628
607
  ref="backgroundIconRef"
629
- icon="changeBckgd"
630
- class="icon-button"
608
+ class="icon-button-container"
631
609
  @mouseover="showTooltip(5)"
632
610
  @mouseout="hideTooltip(5)"
633
- />
611
+ >
612
+ <map-svg-icon
613
+ icon="changeBckgd"
614
+ class="icon-button"
615
+ />
616
+ </div>
634
617
  </template>
635
618
  </el-popover>
636
619
  </el-row>
@@ -639,10 +622,9 @@ Please use `const` to assign meaningful names to them...
639
622
  ref="tooltip"
640
623
  class="tooltip"
641
624
  v-show="tooltipDisplay"
642
- :tooltipType="tooltipType"
643
- :provenanceEntry="provenanceEntry"
644
625
  :annotationEntry="annotationEntry"
645
- :imageEntry="imageEntry"
626
+ :tooltipEntry="tooltipEntry"
627
+ :annotationDisplay="viewingMode === 'Annotation'"
646
628
  @annotation="commitAnnotationEvent"
647
629
  />
648
630
  </div>
@@ -681,18 +663,10 @@ import yellowstar from '../icons/yellowstar'
681
663
  import ResizeSensor from 'css-element-queries/src/ResizeSensor'
682
664
  import * as flatmap from '@abi-software/flatmap-viewer'
683
665
  import { AnnotationService } from '@abi-software/sparc-annotation'
684
- import { mapState, mapStores } from 'pinia'
685
- import { useMainStore } from '@/stores/index'
686
- import { useSettingsStore } from '@/stores/settings'
666
+ import { mapState } from 'pinia'
667
+ import { useMainStore } from '@/store/index'
687
668
  import { DrawToolbar, Tooltip, TreeControls } from '@abi-software/map-utilities'
688
669
  import '@abi-software/map-utilities/dist/style.css'
689
- import {
690
- getBiolucidaThumbnails,
691
- getSegmentationThumbnails,
692
- getScaffoldThumbnails,
693
- getPlotThumbnails
694
- } from '../services/scicrunchQueries'
695
- import imageMixin from '../mixins/imageMixin'
696
670
 
697
671
  const centroid = (geometry) => {
698
672
  let featureGeometry = { lng: 0, lat: 0, }
@@ -781,7 +755,6 @@ const createUnfilledTooltipData = function () {
781
755
  */
782
756
  export default {
783
757
  name: 'FlatmapVuer',
784
- mixins:[imageMixin],
785
758
  components: {
786
759
  Button,
787
760
  Col,
@@ -814,69 +787,6 @@ export default {
814
787
  return { annotator }
815
788
  },
816
789
  methods: {
817
- /**
818
- * @vuese
819
- * Function to add image thumbnails to the map.
820
- */
821
- populateImageThumbnails: async function (type) {
822
- if (this.mapImp) {
823
- this.closeTooltip()
824
- this.mapImp.clearMarkers();
825
- const identifiers = this.mapImp.anatomicalIdentifiers
826
- const imageThumbnails = this.settingsStore.getImageThumbnails(type, identifiers)
827
- this.populateMapWithImages(this.mapImp, imageThumbnails, type)
828
- }
829
- },
830
- /**
831
- * @vuese
832
- * Function to fetching image thumbnails.
833
- */
834
- fetchImageThumbnails: async function (type) {
835
- let thumbnails = {}
836
- const organCuries = this.settingsStore.organCuries
837
- if (type === 'Image') {
838
- thumbnails = await getBiolucidaThumbnails(this.sparcAPI, organCuries, type)
839
- } else if (type === 'Segmentation') {
840
- thumbnails = await getSegmentationThumbnails(this.sparcAPI, organCuries, type)
841
- } else if (type === 'Scaffold') {
842
- thumbnails = await getScaffoldThumbnails(this.sparcAPI, organCuries, type)
843
- } else if (type === 'Plot') {
844
- thumbnails = await getPlotThumbnails(this.sparcAPI, organCuries, type)
845
- }
846
- this.settingsStore.updateImageThumbnails(type, thumbnails)
847
- },
848
- /**
849
- * @vuese
850
- * Function to switch the type of displayed image.
851
- * @arg type
852
- */
853
- setImageType: async function (type) {
854
- this.imageType = type
855
- if (this.mapImp) {
856
- if (!this.settingsStore.imageTypeCached(type)) {
857
- this.loading = true
858
- await this.fetchImageThumbnails(type)
859
- this.loading = false
860
- }
861
- this.populateImageThumbnails(type)
862
- }
863
- },
864
- /**
865
- * @vuese
866
- * Function to switch show or hide images.
867
- * @arg flag
868
- */
869
- setImage: function (flag) {
870
- this.imageRadio = flag
871
- if (this.mapImp) {
872
- if (flag) {
873
- this.setImageType(this.imageType)
874
- } else {
875
- this.mapImp.clearMarkers();
876
- }
877
- this.$emit('imageThumbnailDisplay', flag)
878
- }
879
- },
880
790
  /**
881
791
  * @vuese
882
792
  * Function to initialise drawing.
@@ -1745,7 +1655,6 @@ export default {
1745
1655
  userData: args,
1746
1656
  eventType: eventType,
1747
1657
  provenanceTaxonomy: taxons,
1748
- markerType: this.imageRadio ? this.imageType : "Standard",
1749
1658
  }
1750
1659
  if (eventType === 'click') {
1751
1660
  this.featuresAlert = data.alert
@@ -1780,6 +1689,7 @@ export default {
1780
1689
  }
1781
1690
  if (
1782
1691
  data &&
1692
+ data.type !== 'marker' &&
1783
1693
  eventType === 'click' &&
1784
1694
  !(this.viewingMode === 'Neuron Connection') &&
1785
1695
  // Disable popup when drawing
@@ -1813,16 +1723,6 @@ export default {
1813
1723
  * @arg data
1814
1724
  */
1815
1725
  checkAndCreatePopups: async function (data) {
1816
- this.imageEntry = []
1817
- this.provenanceEntry = {}
1818
- if (data.feature.type === 'marker' && this.imageRadio) {
1819
- this.tooltipType = 'image'
1820
- const imageThumbnails = this.settingsStore.getImageThumbnails(this.imageType, [data.resource[0]])
1821
- if (data.resource[0] in imageThumbnails) {
1822
- this.imageEntry = markRaw(imageThumbnails[data.resource[0]])
1823
- }
1824
- this.displayTooltip(data.feature.models)
1825
- } else {
1826
1726
  // Call flatmap database to get the connection data
1827
1727
  if (this.viewingMode === 'Annotation') {
1828
1728
  if (data.feature) {
@@ -1830,7 +1730,6 @@ export default {
1830
1730
  ...data.feature,
1831
1731
  resourceId: this.serverURL,
1832
1732
  }
1833
- this.tooltipType = 'annotation'
1834
1733
  if (data.feature.featureId && data.feature.models) {
1835
1734
  this.displayTooltip(data.feature.models)
1836
1735
  } else if (data.feature.feature) {
@@ -1864,11 +1763,9 @@ export default {
1864
1763
  results[1] ||
1865
1764
  (data.feature.hyperlinks && data.feature.hyperlinks.length > 0)
1866
1765
  ) {
1867
- this.tooltipType = 'provenance'
1868
1766
  this.resourceForTooltip = data.resource[0]
1869
1767
  data.resourceForTooltip = this.resourceForTooltip
1870
1768
  this.createTooltipFromNeuronCuration(data)
1871
- }
1872
1769
  }
1873
1770
  }
1874
1771
  },
@@ -1907,7 +1804,7 @@ export default {
1907
1804
  * @arg data
1908
1805
  */
1909
1806
  createTooltipFromNeuronCuration: async function (data) {
1910
- this.provenanceEntry = await this.flatmapQueries.createTooltipData(data)
1807
+ this.tooltipEntry = await this.flatmapQueries.createTooltipData(data)
1911
1808
  this.displayTooltip(data.resource[0])
1912
1809
  },
1913
1810
  /**
@@ -2108,7 +2005,7 @@ export default {
2108
2005
  options.annotationFeatureGeometry = geometry
2109
2006
  } else {
2110
2007
  featureId = this.mapImp.modelFeatureIds(feature)[0]
2111
- if (!this.activeDrawTool && !this.imageEntry.length) {
2008
+ if (!this.activeDrawTool) {
2112
2009
  options.positionAtLastClick = true
2113
2010
  }
2114
2011
  }
@@ -2120,12 +2017,9 @@ export default {
2120
2017
  // const featureIds = [feature];
2121
2018
  // this.moveMap(featureIds);
2122
2019
  if (this.featuresAlert) {
2123
- this.provenanceEntry['featuresAlert'] = this.featuresAlert;
2020
+ this.tooltipEntry['featuresAlert'] = this.featuresAlert;
2124
2021
  }
2125
- this.$emit('connectivity-info-open', this.provenanceEntry);
2126
- }
2127
- if (this.imageThumbnailSidebar && this.viewingMode === 'Exploration') {
2128
- this.$emit('image-thumbnail-open', this.imageEntry)
2022
+ this.$emit('connectivity-info-open', this.tooltipEntry);
2129
2023
  }
2130
2024
  // If UI is not disabled,
2131
2025
  // And connectivityInfoSidebar is not set (default) or set to `false`
@@ -2136,10 +2030,8 @@ export default {
2136
2030
  this.viewingMode === 'Annotation' ||
2137
2031
  (
2138
2032
  this.viewingMode === 'Exploration' &&
2139
- (
2140
- (!this.connectivityInfoSidebar && this.hasTooltipEntry()) ||
2141
- (!this.imageThumbnailSidebar && this.imageEntry.length)
2142
- )
2033
+ !this.connectivityInfoSidebar &&
2034
+ this.hasTooltipEntry()
2143
2035
  )
2144
2036
  )
2145
2037
  ) {
@@ -2158,7 +2050,7 @@ export default {
2158
2050
  origins,
2159
2051
  provenanceTaxonomy,
2160
2052
  provenanceTaxonomyLabel
2161
- } = this.provenanceEntry;
2053
+ } = this.tooltipEntry;
2162
2054
 
2163
2055
  return Boolean(
2164
2056
  components?.length ||
@@ -2462,9 +2354,9 @@ export default {
2462
2354
  this.addResizeButtonToMinimap()
2463
2355
  this.loading = false
2464
2356
  this.computePathControlsMaximumHeight()
2465
- this.drawerOpen = !this.isCentreLine
2357
+ this.drawerOpen = !this.isCentreLine
2466
2358
  this.mapResize()
2467
- this.handleMapClick()
2359
+ this.handleMapClick();
2468
2360
  /**
2469
2361
  * This is ``onFlatmapReady`` event.
2470
2362
  * @arg ``this`` (Component Vue Instance)
@@ -2481,8 +2373,7 @@ export default {
2481
2373
 
2482
2374
  if (_map) {
2483
2375
  _map.on('click', (e) => {
2484
- // Tmeporary add imageEntry length
2485
- if (this.provenanceEntry.featureId || this.imageEntry.length) {
2376
+ if (this.tooltipEntry.featureId) {
2486
2377
  this.$emit('connectivity-info-close');
2487
2378
  }
2488
2379
  });
@@ -2729,12 +2620,12 @@ export default {
2729
2620
  */
2730
2621
  sparcAPI: {
2731
2622
  type: String,
2732
- default: 'https://api.sparc.science',
2623
+ default: 'https://api.sparc.science/',
2733
2624
  },
2734
2625
  /**
2735
2626
  * Flag to disable UIs on Map
2736
2627
  */
2737
- disableUI: {
2628
+ disableUI: {
2738
2629
  type: Boolean,
2739
2630
  default: false,
2740
2631
  },
@@ -2745,17 +2636,11 @@ export default {
2745
2636
  type: Boolean,
2746
2637
  default: false,
2747
2638
  },
2748
- /**
2749
- * The option to show image thumbnail in sidebar
2750
- */
2751
- imageThumbnailSidebar: {
2752
- type: Boolean,
2753
- default: false,
2754
- },
2755
2639
  },
2756
2640
  provide() {
2757
2641
  return {
2758
2642
  flatmapAPI: this.flatmapAPI,
2643
+ sparcAPI: this.sparcAPI,
2759
2644
  $annotator: this.annotator,
2760
2645
  getFeaturesAlert: () => this.featuresAlert,
2761
2646
  userApiKey: this.userToken,
@@ -2774,8 +2659,6 @@ export default {
2774
2659
  serverURL: undefined,
2775
2660
  layers: [],
2776
2661
  pathways: [],
2777
- imageEntry: markRaw([]),
2778
- tooltipType: 'provenance',
2779
2662
  sckanDisplay: [
2780
2663
  {
2781
2664
  label: 'Display Path with SCKAN',
@@ -2820,7 +2703,7 @@ export default {
2820
2703
  availableBackground: ['white', 'lightskyblue', 'black'],
2821
2704
  loading: false,
2822
2705
  flatmapMarker: flatmapMarker,
2823
- provenanceEntry: createUnfilledTooltipData(),
2706
+ tooltipEntry: createUnfilledTooltipData(),
2824
2707
  connectivityTooltipVisible: false,
2825
2708
  drawerOpen: false,
2826
2709
  featuresAlert: undefined,
@@ -2843,9 +2726,6 @@ export default {
2843
2726
  drawnTypes: ['All tools', 'Point', 'LineString', 'Polygon', 'None'],
2844
2727
  annotatedType: 'Anyone',
2845
2728
  annotatedTypes: ['Anyone', 'Me', 'Others'],
2846
- imageRadio: false,
2847
- imageType: 'Image',
2848
- imageTypes: ['Image', 'Segmentation', 'Scaffold', 'Plot'],
2849
2729
  openMapRef: undefined,
2850
2730
  backgroundIconRef: undefined,
2851
2731
  toolbarOptions: [
@@ -2883,12 +2763,11 @@ export default {
2883
2763
  with: true,
2884
2764
  without: true,
2885
2765
  }
2886
- }),
2766
+ })
2887
2767
  }
2888
2768
  },
2889
2769
  computed: {
2890
2770
  ...mapState(useMainStore, ['userToken']),
2891
- ...mapStores(useSettingsStore),
2892
2771
  isValidDrawnCreated: function () {
2893
2772
  return Object.keys(this.drawnCreatedEvent).length > 0
2894
2773
  },
@@ -3392,6 +3271,10 @@ export default {
3392
3271
  }
3393
3272
  }
3394
3273
 
3274
+ .icon-button-container {
3275
+ display: inline-block;
3276
+ }
3277
+
3395
3278
  .icon-button {
3396
3279
  height: 24px !important;
3397
3280
  width: 24px !important;
@@ -3726,12 +3609,7 @@ export default {
3726
3609
  background-color: var(--white);
3727
3610
  font-weight: 500;
3728
3611
  color: rgb(48, 49, 51);
3729
- &.annotationSelector {
3730
- width: 150px!important;
3731
- }
3732
- &.imageSelector {
3733
- width: 125px!important;
3734
- }
3612
+ width: 150px!important;
3735
3613
  }
3736
3614
 
3737
3615
  :deep(.flatmap_dropdown) {
@@ -81,9 +81,6 @@
81
81
  style="height: 100%"
82
82
  :flatmapAPI="flatmapAPI"
83
83
  :sparcAPI="sparcAPI"
84
- @imageThumbnailDisplay="onImageThumbnailDisplay"
85
- :imageThumbnailSidebar="imageThumbnailSidebar"
86
- @image-thumbnail-open="onImageThumbnailOpen"
87
84
  />
88
85
  </div>
89
86
  </template>
@@ -267,12 +264,6 @@ export default {
267
264
  onConnectivityInfoOpen: function (entryData) {
268
265
  this.$emit('connectivity-info-open', entryData);
269
266
  },
270
- onImageThumbnailDisplay: function (payload) {
271
- this.$emit('imageThumbnailDisplay', payload);
272
- },
273
- onImageThumbnailOpen: function (payload) {
274
- this.$emit('image-thumbnail-open', payload);
275
- },
276
267
  onSelectionsDataChanged: function (data) {
277
268
  this.$emit('pathway-selection-changed', data);
278
269
  },
@@ -709,7 +700,7 @@ export default {
709
700
  */
710
701
  sparcAPI: {
711
702
  type: String,
712
- default: 'https://api.sparc.science',
703
+ default: 'https://api.sparc.science/',
713
704
  },
714
705
  /**
715
706
  * Flag to disable UIs on Map
@@ -725,13 +716,6 @@ export default {
725
716
  type: Boolean,
726
717
  default: false,
727
718
  },
728
- /**
729
- * The option to show image thumbnail in sidebar
730
- */
731
- imageThumbnailSidebar: {
732
- type: Boolean,
733
- default: false,
734
- },
735
719
  },
736
720
  data: function () {
737
721
  return {
package/src/main.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { createApp } from 'vue'
2
2
  import { createPinia } from 'pinia'
3
3
  import App from './App.vue'
4
- import { useMainStore } from '@/stores/index'
4
+ import { useMainStore } from '@/store/index'
5
5
 
6
6
  const pinia = createPinia()
7
7
  const app = createApp(App)
@@ -256,7 +256,11 @@ let FlatmapQueries = function () {
256
256
  }
257
257
  })
258
258
  .catch((error) => {
259
- console.error('Error:', error)
259
+ if (error.name === 'AbortError') {
260
+ // This error is from AbortController's abort method.
261
+ } else {
262
+ console.error('Error:', error)
263
+ }
260
264
  resolve(false)
261
265
  })
262
266
  })