@abi-software/flatmapvuer 1.5.6-beta.3 → 1.5.6-beta.5

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.5.6-beta.3",
3
+ "version": "1.5.6-beta.5",
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": "^3.2.2",
46
+ "@abi-software/flatmap-viewer": "^3.2.5",
47
47
  "@abi-software/map-utilities": "^1.1.2",
48
48
  "@abi-software/sparc-annotation": "0.3.1",
49
49
  "@abi-software/svg-sprite": "^1.0.1",
@@ -257,7 +257,7 @@ Please use `const` to assign meaningful names to them...
257
257
  <div
258
258
  class="pathway-location"
259
259
  :class="{ open: drawerOpen, close: !drawerOpen }"
260
- v-show="!(disableUI || isCentreLine)"
260
+ v-show="!disableUI"
261
261
  >
262
262
  <div
263
263
  class="pathway-container"
@@ -388,17 +388,6 @@ Please use `const` to assign meaningful names to them...
388
388
  ref="taxonSelection"
389
389
  key="taxonSelection"
390
390
  />
391
- <selections-group
392
- v-if="!(isCentreLine || isFC) && centreLines && centreLines.length > 0"
393
- title="Nerves"
394
- labelKey="label"
395
- identifierKey="key"
396
- :selections="centreLines"
397
- @changed="centreLinesSelected"
398
- @selections-data-changed="onSelectionsDataChanged"
399
- ref="centrelinesSelection"
400
- key="centrelinesSelection"
401
- />
402
391
  </div>
403
392
  <div
404
393
  @click="toggleDrawer"
@@ -519,8 +508,8 @@ Please use `const` to assign meaningful names to them...
519
508
  class="flatmap-radio"
520
509
  @change="setFlightPath3D"
521
510
  >
522
- <el-radio :label="false">2D</el-radio>
523
- <el-radio :label="true">3D</el-radio>
511
+ <el-radio :value="false">2D</el-radio>
512
+ <el-radio :value="true">3D</el-radio>
524
513
  </el-radio-group>
525
514
  </el-row>
526
515
  <el-row class="backgroundSpacer"></el-row>
@@ -531,8 +520,8 @@ Please use `const` to assign meaningful names to them...
531
520
  class="flatmap-radio"
532
521
  @change="setColour"
533
522
  >
534
- <el-radio :label="true">Colour</el-radio>
535
- <el-radio :label="false">Greyscale</el-radio>
523
+ <el-radio :value="true">Colour</el-radio>
524
+ <el-radio :value="false">Greyscale</el-radio>
536
525
  </el-radio-group>
537
526
  </el-row>
538
527
  <el-row class="backgroundSpacer"></el-row>
@@ -543,8 +532,8 @@ Please use `const` to assign meaningful names to them...
543
532
  class="flatmap-radio"
544
533
  @change="setOutlines"
545
534
  >
546
- <el-radio :label="true">Show</el-radio>
547
- <el-radio :label="false">Hide</el-radio>
535
+ <el-radio :value="true">Show</el-radio>
536
+ <el-radio :value="false">Hide</el-radio>
548
537
  </el-radio-group>
549
538
  </el-row>
550
539
  <el-row class="backgroundSpacer"></el-row>
@@ -1203,7 +1192,7 @@ export default {
1203
1192
  setColour: function (flag) {
1204
1193
  this.colourRadio = flag
1205
1194
  if (this.mapImp) {
1206
- this.mapImp.setColour({ colour: flag, outline: this.outlinesRadio })
1195
+ this.mapImp.setPaint({ colour: flag, outline: this.outlinesRadio })
1207
1196
  }
1208
1197
  },
1209
1198
  /**
@@ -1215,7 +1204,7 @@ export default {
1215
1204
  setOutlines: function (flag) {
1216
1205
  this.outlineRadio = flag
1217
1206
  if (this.mapImp) {
1218
- this.mapImp.setColour({ colour: this.colourRadio, outline: flag })
1207
+ this.mapImp.setPaint({ colour: this.colourRadio, outline: flag })
1219
1208
  }
1220
1209
  },
1221
1210
  /**
@@ -1226,9 +1215,6 @@ export default {
1226
1215
  resetView: function () {
1227
1216
  if (this.mapImp) {
1228
1217
  this.mapImp.resetMap()
1229
- if (this.$refs.centrelinesSelection) {
1230
- this.$refs.centrelinesSelection.reset()
1231
- }
1232
1218
  if (this.$refs.skcanSelection) {
1233
1219
  this.$refs.skcanSelection.reset()
1234
1220
  }
@@ -1263,18 +1249,6 @@ export default {
1263
1249
  this.mapImp.zoomOut()
1264
1250
  }
1265
1251
  },
1266
- /**
1267
- * @public
1268
- * Function to show or hide centrelines and nodes.
1269
- * The parameter ``payload`` is an object with a boolean property, ``value``,
1270
- * ``payload.value = true/false``.
1271
- * @arg {Object} `payload`
1272
- */
1273
- centreLinesSelected: function (payload) {
1274
- if (this.mapImp && this.mapImp.enableCentrelines) {
1275
- this.mapImp.enableCentrelines(payload.value)
1276
- }
1277
- },
1278
1252
  onSelectionsDataChanged: function (data) {
1279
1253
  this.$emit('pathway-selection-changed', data);
1280
1254
  },
@@ -2347,15 +2321,10 @@ export default {
2347
2321
  console.log(this.mapImp.options)
2348
2322
  if (this.mapImp.options?.style === 'functional') {
2349
2323
  this.isFC = true
2350
- } else if (this.mapImp.options?.style === 'centreline') {
2351
- this.isCentreLine = true
2352
2324
  }
2353
2325
  this.mapImp.setBackgroundOpacity(1)
2354
2326
  this.backgroundChangeCallback(this.currentBackground)
2355
2327
  this.pathways = this.mapImp.pathTypes()
2356
- if (!this.isCentreLine && this.mapImp.enableCentrelines) {
2357
- this.mapImp.enableCentrelines(false)
2358
- }
2359
2328
  //Disable layers for now
2360
2329
  //this.layers = this.mapImp.getLayers();
2361
2330
  this.processSystems(this.mapImp.getSystems())
@@ -2364,7 +2333,7 @@ export default {
2364
2333
  this.addResizeButtonToMinimap()
2365
2334
  this.loading = false
2366
2335
  this.computePathControlsMaximumHeight()
2367
- this.drawerOpen = !this.isCentreLine
2336
+ this.drawerOpen = true;
2368
2337
  this.mapResize()
2369
2338
  this.handleMapClick();
2370
2339
  /**
@@ -2675,13 +2644,6 @@ export default {
2675
2644
  key: 'VALID',
2676
2645
  },
2677
2646
  ],
2678
- centreLines: [
2679
- {
2680
- label: 'Display Nerves',
2681
- key: 'centrelines',
2682
- enabled: false,
2683
- },
2684
- ],
2685
2647
  systems: [],
2686
2648
  taxonConnectivity: [],
2687
2649
  pathwaysMaxHeight: 1000,
@@ -2707,7 +2669,6 @@ export default {
2707
2669
  helpModeActiveIndex: this.helpModeInitialIndex,
2708
2670
  yellowstar: yellowstar,
2709
2671
  isFC: false,
2710
- isCentreLine: false,
2711
2672
  inHelp: false,
2712
2673
  currentBackground: 'white',
2713
2674
  availableBackground: ['white', 'lightskyblue', 'black'],
@@ -2921,6 +2882,11 @@ export default {
2921
2882
  left: 0px;
2922
2883
  transform: translateX(0);
2923
2884
  transition: all var(--el-transition-duration);
2885
+ z-index: 99;
2886
+ display: flex;
2887
+ flex-direction: row;
2888
+ align-items: center;
2889
+
2924
2890
  &.open {
2925
2891
  transform: translateX(0);
2926
2892
  }
@@ -3466,7 +3432,6 @@ export default {
3466
3432
  }
3467
3433
  }
3468
3434
 
3469
- .open-drawer,
3470
3435
  .drawer-button {
3471
3436
  z-index: 8;
3472
3437
  width: 20px;
@@ -3476,18 +3441,6 @@ export default {
3476
3441
  vertical-align: middle;
3477
3442
  cursor: pointer;
3478
3443
  pointer-events: auto;
3479
- }
3480
-
3481
- .open-drawer {
3482
- position: absolute;
3483
- left: 0px;
3484
- background-color: #f7faff;
3485
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
3486
- }
3487
-
3488
- .drawer-button {
3489
- float: left;
3490
- margin-top: calc(50% - 36px);
3491
3444
  background-color: #f9f2fc;
3492
3445
 
3493
3446
  i {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div class="multi-container" ref="multiContainer">
3
- <div style="position: absolute; z-index: 10" v-if="!disableUI">
3
+ <div style="position: absolute; z-index: 100" v-if="!disableUI">
4
4
  <div class="species-display-text">Species</div>
5
5
  <el-popover
6
6
  content="Select a species"
@@ -752,9 +752,6 @@ export default {
752
752
  }
753
753
 
754
754
  .select-box {
755
- width: 120px;
756
- border-radius: 4px;
757
- border: 1px solid rgb(144, 147, 153);
758
755
  background-color: var(--white);
759
756
  font-weight: 500;
760
757
  color: rgb(48, 49, 51);
@@ -766,6 +763,27 @@ export default {
766
763
  padding-top: 0.25em;
767
764
  }
768
765
  :deep() {
766
+ .el-select__wrapper {
767
+ position: relative;
768
+ width: fit-content;
769
+ box-shadow: none;
770
+ border-radius: 4px;
771
+ border: 1px solid var(--el-border-color);
772
+ &.is-focused {
773
+ border-color: $app-primary-color;
774
+ }
775
+ }
776
+ .el-select__selection {
777
+ width: fit-content;
778
+ position: relative;
779
+ }
780
+ .el-select__placeholder {
781
+ position: relative;
782
+ top: auto;
783
+ transform: none;
784
+ min-width: 80px;
785
+ width: fit-content;
786
+ }
769
787
  .el-input {
770
788
  .el-input__wrapper{
771
789
  &is-focus,
@@ -49,6 +49,7 @@
49
49
  <el-checkbox
50
50
  class="my-checkbox"
51
51
  :label="item[identifierKey]"
52
+ :value="item[identifierKey]"
52
53
  @change="visibilityToggle(item[identifierKey], $event)"
53
54
  @click="onCheckboxNativeChange"
54
55
  :checked="!('enabled' in item) || item.enabled === true"