@abi-software/flatmapvuer 1.10.3-beta.4 → 1.10.3-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/dist/flatmapvuer.js +838 -822
- package/dist/flatmapvuer.umd.cjs +5 -5
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/FlatmapVuer.vue +34 -11
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.6",
|
|
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.4",
|
|
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",
|
|
@@ -2110,7 +2110,25 @@ export default {
|
|
|
2110
2110
|
if (!isNewFilterItemExist) {
|
|
2111
2111
|
this.connectivityfilters.push(newConnectivityfilter);
|
|
2112
2112
|
}
|
|
2113
|
-
|
|
2113
|
+
|
|
2114
|
+
if (this.connectionType.toLowerCase() === 'all') {
|
|
2115
|
+
const searchTerms = uniqueTerms.join();
|
|
2116
|
+
this.$emit('neuron-connection-feature-click', {
|
|
2117
|
+
filters: [],
|
|
2118
|
+
search: searchTerms,
|
|
2119
|
+
});
|
|
2120
|
+
} else {
|
|
2121
|
+
this.$emit('neuron-connection-feature-click', {
|
|
2122
|
+
filters: this.connectivityfilters,
|
|
2123
|
+
search: '',
|
|
2124
|
+
});
|
|
2125
|
+
}
|
|
2126
|
+
} else {
|
|
2127
|
+
const searchTerms = resources.join();
|
|
2128
|
+
this.$emit('neuron-connection-feature-click', {
|
|
2129
|
+
filters: [],
|
|
2130
|
+
search: searchTerms,
|
|
2131
|
+
});
|
|
2114
2132
|
}
|
|
2115
2133
|
} else {
|
|
2116
2134
|
// load and store knowledge
|
|
@@ -2867,7 +2885,7 @@ export default {
|
|
|
2867
2885
|
}
|
|
2868
2886
|
return filterSources
|
|
2869
2887
|
},
|
|
2870
|
-
getFilterOptions: async function (
|
|
2888
|
+
getFilterOptions: async function (providedKnowledge) {
|
|
2871
2889
|
let filterOptions = [];
|
|
2872
2890
|
if (this.mapImp) {
|
|
2873
2891
|
const filterRanges = this.mapImp.featureFilterRanges()
|
|
@@ -2923,24 +2941,29 @@ export default {
|
|
|
2923
2941
|
}
|
|
2924
2942
|
}
|
|
2925
2943
|
const connectionFilters = [];
|
|
2926
|
-
const
|
|
2944
|
+
const baseFlatmapKnowledge = providedKnowledge || this.getFlatmapKnowledge();
|
|
2927
2945
|
const mapKnowledge = this.mapImp.pathways.paths;
|
|
2928
|
-
flatmapKnowledge.
|
|
2946
|
+
const flatmapKnowledge = baseFlatmapKnowledge.reduce((arr, knowledge) => {
|
|
2929
2947
|
const id = knowledge.id;
|
|
2930
2948
|
if (id) {
|
|
2931
|
-
const
|
|
2932
|
-
if (
|
|
2933
|
-
const mapConnectivity =
|
|
2934
|
-
const mapNodePhenotypes =
|
|
2935
|
-
|
|
2949
|
+
const mapKnowledgeObj = mapKnowledge[id];
|
|
2950
|
+
if (mapKnowledgeObj) {
|
|
2951
|
+
const mapConnectivity = mapKnowledgeObj.connectivity;
|
|
2952
|
+
const mapNodePhenotypes = mapKnowledgeObj['node-phenotypes'];
|
|
2953
|
+
// take only map connectivity
|
|
2954
|
+
knowledge.connectivity = [...mapConnectivity];
|
|
2936
2955
|
for (let key in knowledge['node-phenotypes']) {
|
|
2937
2956
|
if (mapNodePhenotypes[key]) {
|
|
2938
|
-
|
|
2957
|
+
// take only map node-phenotypes
|
|
2958
|
+
knowledge['node-phenotypes'][key] = [...mapNodePhenotypes[key]];
|
|
2939
2959
|
}
|
|
2940
2960
|
}
|
|
2961
|
+
// to avoid mutation
|
|
2962
|
+
arr.push(JSON.parse(JSON.stringify(knowledge)));
|
|
2941
2963
|
}
|
|
2942
2964
|
}
|
|
2943
|
-
|
|
2965
|
+
return arr;
|
|
2966
|
+
}, []);
|
|
2944
2967
|
const knowledgeSource = this.mapImp.knowledgeSource;
|
|
2945
2968
|
const originItems = await extractOriginItems(this.flatmapAPI, knowledgeSource, flatmapKnowledge);
|
|
2946
2969
|
const viaItems = await extractViaItems(this.flatmapAPI, knowledgeSource, flatmapKnowledge);
|