@abi-software/flatmapvuer 1.10.3-beta.2 → 1.10.3-beta.4
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.10.3-beta.
|
|
3
|
+
"version": "1.10.3-beta.4",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/*",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"./src/*": "./src/*"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@abi-software/map-utilities": "^1.6.1-beta.
|
|
47
|
+
"@abi-software/map-utilities": "^1.6.1-beta.3",
|
|
48
48
|
"@abi-software/sparc-annotation": "0.3.2",
|
|
49
49
|
"@abi-software/svg-sprite": "^1.0.1",
|
|
50
50
|
"@element-plus/icons-vue": "^2.3.1",
|
|
@@ -2051,9 +2051,6 @@ export default {
|
|
|
2051
2051
|
// the card should be opened without doing other functions
|
|
2052
2052
|
else if (this.viewingMode === 'Neuron Connection' && !connectivityExplorerClicked) {
|
|
2053
2053
|
const resources = data.map(tooltip => tooltip.resource[0]);
|
|
2054
|
-
// TODO: to remove pathsQueryAPI
|
|
2055
|
-
// the new query, queryPathsByRoute, is used in mapviewer for CQ
|
|
2056
|
-
// let pathsQueryAPI = this.retrieveConnectedPaths(resources); // TODO: to replace with queryAllConnectedPaths
|
|
2057
2054
|
|
|
2058
2055
|
// filter out paths
|
|
2059
2056
|
const featureId = resources.find(resource => !resource.startsWith('ilxtr:'));
|
|
@@ -2079,27 +2076,6 @@ export default {
|
|
|
2079
2076
|
uniqueResource = [models, []];
|
|
2080
2077
|
}
|
|
2081
2078
|
|
|
2082
|
-
// if (this.connectionType === 'Origin') {
|
|
2083
|
-
// Competency Query API
|
|
2084
|
-
// pathsQueryAPI = queryPathsByOrigin(this.flatmapAPI, this.mapImp.knowledgeSource, resources);
|
|
2085
|
-
|
|
2086
|
-
// search by unique placement before competency API is ready for this
|
|
2087
|
-
// pathsQueryAPI = filterPathsByOriginFromKnowledge(uniqueResource);
|
|
2088
|
-
// } else if (this.connectionType === 'Via') {
|
|
2089
|
-
// Competency Query API
|
|
2090
|
-
// pathsQueryAPI = queryPathsByViaLocation(this.flatmapAPI, this.mapImp.knowledgeSource, resources);
|
|
2091
|
-
|
|
2092
|
-
// search by unique placement before competency API is ready for this
|
|
2093
|
-
// pathsQueryAPI = filterPathsByViaFromKnowledge(uniqueResource);
|
|
2094
|
-
// } else if (this.connectionType === 'Destination') {
|
|
2095
|
-
// Competency Query API
|
|
2096
|
-
// pathsQueryAPI = queryPathsByDestination(this.flatmapAPI, this.mapImp.knowledgeSource, resources);
|
|
2097
|
-
|
|
2098
|
-
// search by unique placement before competency API is ready for this
|
|
2099
|
-
// pathsQueryAPI = filterPathsByDestinationFromKnowledge(uniqueResource);
|
|
2100
|
-
// } else {
|
|
2101
|
-
// pathsQueryAPI = queryAllConnectedPaths(this.flatmapAPI, this.mapImp.knowledgeSource, resources);
|
|
2102
|
-
// }
|
|
2103
2079
|
const terms = uniqueResource.flat(Infinity);
|
|
2104
2080
|
const uniqueTerms = [...new Set(terms)];
|
|
2105
2081
|
const fetchResults = await fetchLabels(this.flatmapAPI, uniqueTerms);
|
|
@@ -2134,56 +2110,8 @@ export default {
|
|
|
2134
2110
|
if (!isNewFilterItemExist) {
|
|
2135
2111
|
this.connectivityfilters.push(newConnectivityfilter);
|
|
2136
2112
|
}
|
|
2137
|
-
// TODO: to remove "neuron-connection-click"
|
|
2138
2113
|
this.$emit('neuron-connection-feature-click', this.connectivityfilters);
|
|
2139
2114
|
}
|
|
2140
|
-
|
|
2141
|
-
// TODO: to clean up after verification
|
|
2142
|
-
// pathsQueryAPI.then(async (paths) => {
|
|
2143
|
-
// if (paths.length) {
|
|
2144
|
-
// const filteredPaths = paths.filter(path => (path in this.mapImp.pathways.paths))
|
|
2145
|
-
// const filteredPathsWithData = [];
|
|
2146
|
-
// let prom1 = [];
|
|
2147
|
-
// let prom2 = [];
|
|
2148
|
-
|
|
2149
|
-
// for (let i = 0; i < filteredPaths.length; i++) {
|
|
2150
|
-
// const path = filteredPaths[i];
|
|
2151
|
-
// const modelFeatureIds = this.mapImp.modelFeatureIds(path);
|
|
2152
|
-
// const feature = this.mapImp.featureProperties(modelFeatureIds[0]);
|
|
2153
|
-
// if (feature) {
|
|
2154
|
-
// const pathData = {
|
|
2155
|
-
// resource: [feature.models],
|
|
2156
|
-
// feature: feature,
|
|
2157
|
-
// label: feature.label,
|
|
2158
|
-
// provenanceTaxonomy: feature.taxons,
|
|
2159
|
-
// alert: feature.alert,
|
|
2160
|
-
// };
|
|
2161
|
-
// filteredPathsWithData.push(pathData);
|
|
2162
|
-
// prom1.push({
|
|
2163
|
-
// title: pathData.label,
|
|
2164
|
-
// featureId: [path]
|
|
2165
|
-
// })
|
|
2166
|
-
// }
|
|
2167
|
-
// }
|
|
2168
|
-
// this.tooltipEntry = await Promise.all(prom1)
|
|
2169
|
-
// // Emit placeholders first.
|
|
2170
|
-
// this.$emit('connectivity-info-open', this.tooltipEntry);
|
|
2171
|
-
|
|
2172
|
-
// /**
|
|
2173
|
-
// * This event is emitted to highlight the same paths on other display maps.
|
|
2174
|
-
// */
|
|
2175
|
-
// this.$emit('neuron-connection-click', paths);
|
|
2176
|
-
|
|
2177
|
-
// // loading data
|
|
2178
|
-
// for (let i = 0; i < filteredPathsWithData.length; i++) {
|
|
2179
|
-
// const pathData = filteredPathsWithData[i];
|
|
2180
|
-
// const tooltipEntryData = await this.getKnowledgeTooltip(pathData);
|
|
2181
|
-
// prom2.push(tooltipEntryData)
|
|
2182
|
-
// }
|
|
2183
|
-
// this.tooltipEntry = await Promise.all(prom2)
|
|
2184
|
-
// this.displayTooltip(filteredPaths)
|
|
2185
|
-
// }
|
|
2186
|
-
// })
|
|
2187
2115
|
} else {
|
|
2188
2116
|
// load and store knowledge
|
|
2189
2117
|
loadAndStoreKnowledge(this.mapImp, this.flatmapQueries);
|
|
@@ -3013,9 +2941,10 @@ export default {
|
|
|
3013
2941
|
}
|
|
3014
2942
|
}
|
|
3015
2943
|
})
|
|
3016
|
-
const
|
|
3017
|
-
const
|
|
3018
|
-
const
|
|
2944
|
+
const knowledgeSource = this.mapImp.knowledgeSource;
|
|
2945
|
+
const originItems = await extractOriginItems(this.flatmapAPI, knowledgeSource, flatmapKnowledge);
|
|
2946
|
+
const viaItems = await extractViaItems(this.flatmapAPI, knowledgeSource, flatmapKnowledge);
|
|
2947
|
+
const destinationItems = await extractDestinationItems(this.flatmapAPI, knowledgeSource, flatmapKnowledge);
|
|
3019
2948
|
|
|
3020
2949
|
const transformItem = (facet, item) => {
|
|
3021
2950
|
const key = JSON.stringify(item.key);
|
|
@@ -70,7 +70,6 @@
|
|
|
70
70
|
@connectivity-info-open="onConnectivityInfoOpen"
|
|
71
71
|
@connectivity-info-close="onConnectivityInfoClose"
|
|
72
72
|
@connectivity-error="onConnectivityError"
|
|
73
|
-
@neuron-connection-click="onNeuronConnectionClick"
|
|
74
73
|
@neuron-connection-feature-click="onNeuronConnectionFeatureClick"
|
|
75
74
|
@open-map="$emit('open-map', $event)"
|
|
76
75
|
@pathway-selection-changed="onSelectionsDataChanged"
|
|
@@ -307,9 +306,6 @@ export default {
|
|
|
307
306
|
onConnectivityError: function (errorInfo) {
|
|
308
307
|
this.$emit('connectivity-error', errorInfo);
|
|
309
308
|
},
|
|
310
|
-
onNeuronConnectionClick: function (payload) {
|
|
311
|
-
this.$emit('neuron-connection-click', payload);
|
|
312
|
-
},
|
|
313
309
|
onNeuronConnectionFeatureClick: function (payload) {
|
|
314
310
|
this.$emit('neuron-connection-feature-click', payload);
|
|
315
311
|
},
|
|
@@ -103,7 +103,7 @@ let FlatmapQueries = function () {
|
|
|
103
103
|
this.controller = undefined
|
|
104
104
|
this.uberons = []
|
|
105
105
|
this.lookUp = []
|
|
106
|
-
this.connectivitySource = 'sckan'
|
|
106
|
+
this.connectivitySource = 'map' // 'sckan'
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
this.createTooltipData = async function (mapImp, eventData) {
|
|
@@ -290,7 +290,7 @@ let FlatmapQueries = function () {
|
|
|
290
290
|
return results
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
this.queryForConnectivityNew = function (mapImp, keastId, connectivitySource = '
|
|
293
|
+
this.queryForConnectivityNew = function (mapImp, keastId, connectivitySource = 'map', processConnectivity = true) {
|
|
294
294
|
this.connectivitySource = connectivitySource
|
|
295
295
|
return new Promise((resolve) => {
|
|
296
296
|
const queryAPI = connectivitySource === 'map'
|