@abi-software/flatmapvuer 1.4.0 → 1.4.1

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.0",
3
+ "version": "1.4.1",
4
4
  "license": "Apache-2.0",
5
5
  "files": [
6
6
  "dist/*",
@@ -43,7 +43,7 @@
43
43
  "./src/*": "./src/*"
44
44
  },
45
45
  "dependencies": {
46
- "@abi-software/flatmap-viewer": "2.9.5",
46
+ "@abi-software/flatmap-viewer": "3.1.4",
47
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",
package/src/App.vue CHANGED
@@ -261,6 +261,10 @@ export default {
261
261
  iconClass: 'mapicon-icon_cat',
262
262
  displayWarning: true,
263
263
  },
264
+ Vagus: {
265
+ taxo: 'UBERON:1759',
266
+ displayWarning: true,
267
+ },
264
268
  Sample: { taxo: 'NCBITaxon:1', displayWarning: true },
265
269
  'Functional Connectivity': {
266
270
  taxo: 'FunctionalConnectivity',
@@ -283,8 +287,9 @@ export default {
283
287
  mapSettings: [],
284
288
  //flatmapAPI: "https://mapcore-demo.org/current/flatmap/v2/"
285
289
  //flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
286
- //flatmapAPI: "https://mapcoe-demo.org/current/flatmap/v3/",
287
- flatmapAPI: 'https://mapcore-demo.org/devel/flatmap/v4/',
290
+ flatmapAPI: "https://mapcore-demo.org/current/flatmap/v3/",
291
+ //flatmapAPI: 'https://mapcore-demo.org/devel/flatmap/v4/',
292
+ //flatmapAPI: 'https://mapcore-demo.org/curation/flatmap/',
288
293
  //flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
289
294
  //flatmapAPI: "https://mapcore-demo.org/staging/flatmap/v1/"
290
295
  // flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/",
@@ -245,7 +245,7 @@ Please use `const` to assign meaningful names to them...
245
245
  <div
246
246
  class="pathway-location"
247
247
  :class="{ open: drawerOpen, close: !drawerOpen }"
248
- v-show="!disableUI"
248
+ v-show="!(disableUI || isCentreLine)"
249
249
  >
250
250
  <div
251
251
  class="pathway-container"
@@ -377,7 +377,7 @@ Please use `const` to assign meaningful names to them...
377
377
  key="taxonSelection"
378
378
  />
379
379
  <selections-group
380
- v-if="!isFC && centreLines && centreLines.length > 0"
380
+ v-if="!(isCentreLine || isFC) && centreLines && centreLines.length > 0"
381
381
  title="Nerves"
382
382
  labelKey="label"
383
383
  identifierKey="key"
@@ -2314,13 +2314,18 @@ export default {
2314
2314
  onFlatmapReady: function () {
2315
2315
  // onFlatmapReady is used for functions that need to run immediately after the flatmap is loaded
2316
2316
  this.sensor = markRaw(new ResizeSensor(this.$refs.display, this.mapResize))
2317
- if (this.mapImp.options && this.mapImp.options.style === 'functional') {
2317
+ console.log(this.mapImp.options)
2318
+ if (this.mapImp.options?.style === 'functional') {
2318
2319
  this.isFC = true
2320
+ } else if (this.mapImp.options?.style === 'centreline') {
2321
+ this.isCentreLine = true
2319
2322
  }
2320
2323
  this.mapImp.setBackgroundOpacity(1)
2321
2324
  this.backgroundChangeCallback(this.currentBackground)
2322
2325
  this.pathways = this.mapImp.pathTypes()
2323
- this.mapImp.enableCentrelines(false)
2326
+ if (!this.isCentreLine) {
2327
+ this.mapImp.enableCentrelines(false)
2328
+ }
2324
2329
  //Disable layers for now
2325
2330
  //this.layers = this.mapImp.getLayers();
2326
2331
  this.processSystems(this.mapImp.getSystems())
@@ -2329,7 +2334,7 @@ export default {
2329
2334
  this.addResizeButtonToMinimap()
2330
2335
  this.loading = false
2331
2336
  this.computePathControlsMaximumHeight()
2332
- this.drawerOpen = true
2337
+ this.drawerOpen = !this.isCentreLine
2333
2338
  this.mapResize()
2334
2339
  this.handleMapClick();
2335
2340
  /**
@@ -2672,6 +2677,7 @@ export default {
2672
2677
  helpModeActiveIndex: this.helpModeInitialIndex,
2673
2678
  yellowstar: yellowstar,
2674
2679
  isFC: false,
2680
+ isCentreLine: false,
2675
2681
  inHelp: false,
2676
2682
  currentBackground: 'white',
2677
2683
  availableBackground: ['white', 'lightskyblue', 'black'],