@abi-software/flatmapvuer 0.5.2 → 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/CHANGELOG.md +14 -1
- package/dist/flatmapvuer.common.js +87 -102
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +87 -102
- package/dist/flatmapvuer.umd.js.map +1 -1
- package/dist/flatmapvuer.umd.min.js +2 -2
- package/dist/flatmapvuer.umd.min.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/components/FlatmapVuer.vue +1 -1
- package/src/components/Tooltip.vue +9 -1
- package/src/services/flatmapQueries.js +5 -19
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -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.
|
|
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:
|
|
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(
|
|
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.
|
|
25
|
-
|
|
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
|
-
|
|
119
|
+
this.uberons = [... new Set(found.flat())]
|
|
120
|
+
return this.uberons
|
|
135
121
|
}
|
|
136
122
|
|
|
137
123
|
this.flattenConntectivity = function (connectivity) {
|