@abi-software/flatmapvuer 0.5.1 → 0.5.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/flatmapvuer.common.js",
6
6
  "files": [
@@ -1019,7 +1019,7 @@ export default {
1019
1019
  this.tooltipWait.length = this.hoverVisibilities.length;
1020
1020
  this.mapManager = new flatmap.MapManager(this.flatmapAPI);
1021
1021
  this.flatmapQueries = new FlatmapQueries();
1022
- this.flatmapQueries.initialise(this.sparcAPI, this.flatmapAPI);
1022
+ this.flatmapQueries.initialise(this.flatmapAPI);
1023
1023
  if (this.state) {
1024
1024
  //State is set and require to set the state
1025
1025
  if (this.setStateRequired) {
@@ -261,7 +261,7 @@ export default {
261
261
 
262
262
  .seperator {
263
263
  width:90%;
264
- height:0.5px;
264
+ height:1px;
265
265
  background-color:#bfbec2;
266
266
  }
267
267
 
@@ -338,6 +338,14 @@ export default {
338
338
  border-style: solid;
339
339
  flex-shrink: 0;
340
340
  }
341
+ .tooltip {
342
+ &::after {
343
+ display: none;
344
+ }
345
+ &::before {
346
+ display: none;
347
+ }
348
+ }
341
349
  }
342
350
 
343
351
  .maplibregl-popup-anchor-bottom {
@@ -12,8 +12,7 @@ const inArray = function(ar1, ar2){
12
12
 
13
13
  let FlatmapQueries = function(){
14
14
 
15
- this.initialise = function(sparcApi, flatmapApi){
16
- this.sparcApi = sparcApi
15
+ this.initialise = function(flatmapApi){
17
16
  this.flatmapApi = flatmapApi
18
17
  this.destinations = []
19
18
  this.origins = []
@@ -21,12 +20,8 @@ let FlatmapQueries = function(){
21
20
  this.uberons = []
22
21
  this.urls = []
23
22
  this.controller = undefined
24
- this.getOrganCuries().then(uberons=>{
25
- this.uberons = uberons
26
- this.createLabelLookup(uberons).then(lookUp=>{
27
- this.lookUp = lookUp
28
- })
29
- })
23
+ this.uberons = []
24
+ this.lookUp = []
30
25
  }
31
26
 
32
27
  this.createTooltipData = function (eventData) {
@@ -50,16 +45,6 @@ let FlatmapQueries = function(){
50
45
  return tooltipData
51
46
  }
52
47
 
53
- this.getOrganCuries = function(){
54
- return new Promise(resolve=> {
55
- fetch(`${this.sparcAPI}get-organ-curies/`)
56
- .then(response=>response.json())
57
- .then(data=>{
58
- resolve(data.uberon.array)
59
- })
60
- })
61
- }
62
-
63
48
  this.createComponentsLabelList = function(components, lookUp){
64
49
  let labelList = []
65
50
  components.forEach(n=>{
@@ -131,7 +116,8 @@ let FlatmapQueries = function(){
131
116
  found.push(n)
132
117
  }
133
118
  })
134
- return [... new Set(found.flat())]
119
+ this.uberons = [... new Set(found.flat())]
120
+ return this.uberons
135
121
  }
136
122
 
137
123
  this.flattenConntectivity = function (connectivity) {