@abi-software/flatmapvuer 0.2.4-beta-3 → 0.2.4-beta-6

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-lock.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.2.4-beta-2",
3
+ "version": "0.2.4-beta-6",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
7
7
  "@abi-software/flatmap-viewer": {
8
- "version": "2.2.0-beta.6",
9
- "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.2.0-beta.6.tgz",
10
- "integrity": "sha512-R2ejDar9zs6jvizJbq8ECbeZCx2qbrNiurhjDcmNquFeyoOb6lA6wrYK9I5n5HSnXh+H1wQemvKbke+PnH1K+Q==",
8
+ "version": "2.2.0-beta.7",
9
+ "resolved": "https://registry.npmjs.org/@abi-software/flatmap-viewer/-/flatmap-viewer-2.2.0-beta.7.tgz",
10
+ "integrity": "sha512-keAB4wn7nEw7eBA9Z4HyODVSbZiKqRk1l40Z9gVQXQ4ZYUwh4MqFZsYNvfdujciBsUj0hrl/mphHNKXAGIOu2g==",
11
11
  "requires": {
12
12
  "@babel/runtime": "^7.10.4",
13
13
  "@turf/area": "^6.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.2.4-beta-3",
3
+ "version": "0.2.4-beta-6",
4
4
  "main": "./dist/flatmapvuer.common.js",
5
5
  "files": [
6
6
  "dist/*",
@@ -16,7 +16,7 @@
16
16
  "lint": "vue-cli-service lint"
17
17
  },
18
18
  "dependencies": {
19
- "@abi-software/flatmap-viewer": "2.2.0-beta.6",
19
+ "@abi-software/flatmap-viewer": "2.2.0-beta.7",
20
20
  "@abi-software/svg-sprite": "^0.1.14",
21
21
  "core-js": "^3.3.2",
22
22
  "css-element-queries": "^1.2.2",
package/src/App.vue CHANGED
@@ -60,6 +60,7 @@ export default {
60
60
  let taxon = component.mapImp.describes;
61
61
  let id = component.mapImp.addMarker("UBERON:0000948", "simulation");
62
62
  component.enablePanZoomEvents(true);
63
+ component.showPathwaysDrawer(false);
63
64
  console.log(taxon, id);
64
65
  },
65
66
  panZoomcallback: function(payload) {
@@ -72,12 +73,12 @@ export default {
72
73
  searchable: true,
73
74
  pathControls: true,
74
75
  minZoom: 4,
75
- availableSpecies : {"Human":{taxo: "NCBITaxon:9606", iconClass:"icon-mapicon_human", displayWarning:true},
76
- "Rat":{taxo: "NCBITaxon:10114", iconClass:"icon-mapicon_rat", displayWarning:false},
77
- "Mouse":{taxo: "NCBITaxon:10090", iconClass:"icon-mapicon_mouse", displayWarning:true},
76
+ availableSpecies : {"Human":{taxo: "NCBITaxon:9606", iconClass:"mapicon-icon_human", displayWarning:true},
77
+ "Rat":{taxo: "NCBITaxon:10114", iconClass:"mapicon-icon_rat", displayWarning:false},
78
+ "Mouse":{taxo: "NCBITaxon:10090", iconClass:"mapicon-icon_mouse", displayWarning:true},
78
79
  "Kember":{taxo: "ABI:1000001", displayWarning:true},
79
- "Pig":{taxo: "NCBITaxon:9823", iconClass:"icon-mapicon_pig", displayWarning:true},
80
- "Cat":{taxo: "NCBITaxon:9685", iconClass:"icon-mapicon_cat", displayWarning:true},
80
+ "Pig":{taxo: "NCBITaxon:9823", iconClass:"mapicon-icon_pig", displayWarning:true},
81
+ "Cat":{taxo: "NCBITaxon:9685", iconClass:"mapicon-icon_cat", displayWarning:true},
81
82
  "digestive tract":{taxo: "digestive tract", displayWarning:true}
82
83
  },
83
84
  tooltipContent: undefined,
@@ -90,7 +91,7 @@ export default {
90
91
  initial: "digestive tract",
91
92
  helpMode: false,
92
93
  //flatmapAPI: "https://mapcore-demo.org/fccb/flatmap/"
93
- flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v3/"
94
+ flatmapAPI: "https://mapcore-demo.org/devel/flatmap/v1/"
94
95
  }
95
96
  },
96
97
  mounted: function() {
@@ -585,6 +585,13 @@ export default {
585
585
  if (this.entry == state.entry) this._viewportToBeSet = state.viewport;
586
586
  }
587
587
  },
588
+ showMinimap: function(flag) {
589
+ if (this.mapImp)
590
+ this.mapImp.showMinimap(flag);
591
+ },
592
+ showPathwaysDrawer: function(flag) {
593
+ this.drawerOpen = flag;
594
+ },
588
595
  /**
589
596
  * Function to display features with annotation matching the provided term.
590
597
  */
@@ -10,7 +10,7 @@
10
10
  font-display: block;
11
11
  }
12
12
 
13
- [class^="icon-"], [class*=" icon-"] {
13
+ [class^="mapicon-icon"], [class*=" mapicon-icon"] {
14
14
  /* use !important to prevent issues with browser extensions that change fonts */
15
15
  font-family: 'mapicon-species' !important;
16
16
  speak: never;
@@ -25,18 +25,18 @@
25
25
  -moz-osx-font-smoothing: grayscale;
26
26
  }
27
27
 
28
- .icon-mapicon_cat:before {
28
+ .mapicon-icon_cat:before {
29
29
  content: "\e904";
30
30
  }
31
- .icon-mapicon_rat:before {
31
+ .mapicon-icon_rat:before {
32
32
  content: "\e900";
33
33
  }
34
- .icon-mapicon_pig:before {
34
+ .mapicon-icon_pig:before {
35
35
  content: "\e901";
36
36
  }
37
- .icon-mapicon_mouse:before {
37
+ .mapicon-icon_mouse:before {
38
38
  content: "\e902";
39
39
  }
40
- .icon-mapicon_human:before {
40
+ .mapicon-icon_human:before {
41
41
  content: "\e903";
42
42
  }