@abi-software/flatmapvuer 0.4.2 → 0.4.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/LICENSE +201 -201
- package/README.md +105 -105
- package/babel.config.js +14 -14
- package/dist/flatmapvuer.common.js +74 -69
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.umd.js +74 -69
- package/dist/flatmapvuer.umd.js.map +1 -1
- package/dist/flatmapvuer.umd.min.js +1 -1
- package/dist/flatmapvuer.umd.min.js.map +1 -1
- package/package-lock.json +14228 -14228
- package/package.json +72 -72
- package/public/index.html +17 -17
- package/src/App.vue +221 -221
- package/src/assets/_variables.scss +43 -43
- package/src/assets/styles.scss +7 -7
- package/src/components/EventBus.js +2 -2
- package/src/components/ExternalResourceCard.vue +98 -98
- package/src/components/FlatmapVuer.vue +1627 -1627
- package/src/components/MultiFlatmapVuer.vue +509 -509
- package/src/components/SelectionsGroup.vue +248 -248
- package/src/components/Tooltip.vue +405 -405
- package/src/components/index.js +9 -9
- package/src/components/legends/DynamicLegends.vue +112 -112
- package/src/components/legends/SvgLegends.vue +66 -66
- package/src/icons/fonts/mapicon-species.eot +0 -0
- package/src/icons/fonts/mapicon-species.svg +14 -14
- package/src/icons/fonts/mapicon-species.ttf +0 -0
- package/src/icons/fonts/mapicon-species.woff +0 -0
- package/src/icons/mapicon-species-style.css +42 -42
- package/src/legends/legend.svg +25 -25
- package/src/main.js +8 -8
- package/src/nerve-map.js +99 -0
- package/src/services/flatmapQueries.js +384 -380
- package/vue.config.js +31 -31
|
@@ -13369,7 +13369,7 @@ if (typeof window !== 'undefined') {
|
|
|
13369
13369
|
// Indicate to webpack that this file can be concatenated
|
|
13370
13370
|
/* harmony default export */ var setPublicPath = (null);
|
|
13371
13371
|
|
|
13372
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13372
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b4fd8ccc-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FlatmapVuer.vue?vue&type=template&id=d6b2de28&scoped=true&
|
|
13373
13373
|
var render = function render() {
|
|
13374
13374
|
var _vm = this,
|
|
13375
13375
|
_c = _vm._self._c;
|
|
@@ -14413,7 +14413,7 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
14413
14413
|
var external_vue_ = __webpack_require__("8bbf");
|
|
14414
14414
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
14415
14415
|
|
|
14416
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14416
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b4fd8ccc-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/Tooltip.vue?vue&type=template&id=4ffcf7c8&scoped=true&
|
|
14417
14417
|
var Tooltipvue_type_template_id_4ffcf7c8_scoped_true_render = function render() {
|
|
14418
14418
|
var _vm = this,
|
|
14419
14419
|
_c = _vm._self._c;
|
|
@@ -14606,7 +14606,7 @@ var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
|
14606
14606
|
|
|
14607
14607
|
var EventBus = new external_vue_default.a();
|
|
14608
14608
|
/* harmony default export */ var components_EventBus = (EventBus);
|
|
14609
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14609
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b4fd8ccc-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/ExternalResourceCard.vue?vue&type=template&id=14172b61&scoped=true&
|
|
14610
14610
|
var ExternalResourceCardvue_type_template_id_14172b61_scoped_true_render = function render() {
|
|
14611
14611
|
var _vm = this,
|
|
14612
14612
|
_c = _vm._self._c;
|
|
@@ -14970,7 +14970,7 @@ var Tooltip_component = normalizeComponent(
|
|
|
14970
14970
|
)
|
|
14971
14971
|
|
|
14972
14972
|
/* harmony default export */ var Tooltip = (Tooltip_component.exports);
|
|
14973
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14973
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b4fd8ccc-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/SelectionsGroup.vue?vue&type=template&id=404813f2&scoped=true&
|
|
14974
14974
|
var SelectionsGroupvue_type_template_id_404813f2_scoped_true_render = function render() {
|
|
14975
14975
|
var _vm = this,
|
|
14976
14976
|
_c = _vm._self._c;
|
|
@@ -15107,9 +15107,9 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
15107
15107
|
/* harmony default export */ var SelectionsGroupvue_type_script_lang_js_ = ({
|
|
15108
15108
|
name: "SelectionsGroup",
|
|
15109
15109
|
methods: {
|
|
15110
|
-
/**
|
|
15111
|
-
* Function to toggle paths to default.
|
|
15112
|
-
* Also called when the associated button is pressed.
|
|
15110
|
+
/**
|
|
15111
|
+
* Function to toggle paths to default.
|
|
15112
|
+
* Also called when the associated button is pressed.
|
|
15113
15113
|
*/
|
|
15114
15114
|
reset: function reset() {
|
|
15115
15115
|
var _this = this;
|
|
@@ -15243,7 +15243,7 @@ var SelectionsGroup_component = normalizeComponent(
|
|
|
15243
15243
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
15244
15244
|
var svg_sprite_ = __webpack_require__("429c");
|
|
15245
15245
|
|
|
15246
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15246
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b4fd8ccc-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/legends/SvgLegends.vue?vue&type=template&id=3d3218c8&scoped=true&
|
|
15247
15247
|
var SvgLegendsvue_type_template_id_3d3218c8_scoped_true_render = function render() {
|
|
15248
15248
|
var _vm = this,
|
|
15249
15249
|
_c = _vm._self._c;
|
|
@@ -15460,6 +15460,17 @@ var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
|
15460
15460
|
});
|
|
15461
15461
|
};
|
|
15462
15462
|
this.createTooltipData = function (eventData) {
|
|
15463
|
+
var hyperlinks = [];
|
|
15464
|
+
if (eventData.feature.hyperlinks && eventData.feature.hyperlinks.length > 0) {
|
|
15465
|
+
hyperlinks = eventData.feature.hyperlinks;
|
|
15466
|
+
} else {
|
|
15467
|
+
hyperlinks = this.urls.map(function (url) {
|
|
15468
|
+
return {
|
|
15469
|
+
url: url,
|
|
15470
|
+
id: "pubmed"
|
|
15471
|
+
};
|
|
15472
|
+
});
|
|
15473
|
+
}
|
|
15463
15474
|
var tooltipData = {
|
|
15464
15475
|
destinations: this.destinations,
|
|
15465
15476
|
origins: this.origins,
|
|
@@ -15469,12 +15480,7 @@ var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
|
15469
15480
|
componentsWithDatasets: this.componentsWithDatasets,
|
|
15470
15481
|
title: eventData.label,
|
|
15471
15482
|
featureId: eventData.resource,
|
|
15472
|
-
hyperlinks:
|
|
15473
|
-
return {
|
|
15474
|
-
url: url,
|
|
15475
|
-
id: "pubmed"
|
|
15476
|
-
};
|
|
15477
|
-
})
|
|
15483
|
+
hyperlinks: hyperlinks
|
|
15478
15484
|
};
|
|
15479
15485
|
return tooltipData;
|
|
15480
15486
|
};
|
|
@@ -15638,7 +15644,6 @@ var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
|
15638
15644
|
resolve(true);
|
|
15639
15645
|
});
|
|
15640
15646
|
} else {
|
|
15641
|
-
console.log('No connectivity data found');
|
|
15642
15647
|
resolve(false);
|
|
15643
15648
|
}
|
|
15644
15649
|
}).catch(function (error) {
|
|
@@ -15937,8 +15942,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15937
15942
|
toggleDrawer: function toggleDrawer() {
|
|
15938
15943
|
this.drawerOpen = !this.drawerOpen;
|
|
15939
15944
|
},
|
|
15940
|
-
/**
|
|
15941
|
-
* Function to toggle colour/greyscale of organs.
|
|
15945
|
+
/**
|
|
15946
|
+
* Function to toggle colour/greyscale of organs.
|
|
15942
15947
|
*/
|
|
15943
15948
|
setColour: function setColour(flag) {
|
|
15944
15949
|
this.colourRadio = flag;
|
|
@@ -15949,8 +15954,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15949
15954
|
});
|
|
15950
15955
|
}
|
|
15951
15956
|
},
|
|
15952
|
-
/**
|
|
15953
|
-
* Function to toggle outlines f organs.
|
|
15957
|
+
/**
|
|
15958
|
+
* Function to toggle outlines f organs.
|
|
15954
15959
|
*/
|
|
15955
15960
|
setOutlines: function setOutlines(flag) {
|
|
15956
15961
|
this.outlineRadio = flag;
|
|
@@ -15961,9 +15966,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15961
15966
|
});
|
|
15962
15967
|
}
|
|
15963
15968
|
},
|
|
15964
|
-
/**
|
|
15965
|
-
* Function to toggle paths to default.
|
|
15966
|
-
* Also called when the associated button is pressed.
|
|
15969
|
+
/**
|
|
15970
|
+
* Function to toggle paths to default.
|
|
15971
|
+
* Also called when the associated button is pressed.
|
|
15967
15972
|
*/
|
|
15968
15973
|
resetView: function resetView() {
|
|
15969
15974
|
if (this.mapImp) {
|
|
@@ -15985,18 +15990,18 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15985
15990
|
}
|
|
15986
15991
|
}
|
|
15987
15992
|
},
|
|
15988
|
-
/**
|
|
15989
|
-
* Function to zoom in.
|
|
15990
|
-
* Also called when the associated button is pressed.
|
|
15993
|
+
/**
|
|
15994
|
+
* Function to zoom in.
|
|
15995
|
+
* Also called when the associated button is pressed.
|
|
15991
15996
|
*/
|
|
15992
15997
|
zoomIn: function zoomIn() {
|
|
15993
15998
|
if (this.mapImp) {
|
|
15994
15999
|
this.mapImp.zoomIn();
|
|
15995
16000
|
}
|
|
15996
16001
|
},
|
|
15997
|
-
/**
|
|
15998
|
-
* Function to zoom out.
|
|
15999
|
-
* Also called when the associated button is pressed.
|
|
16002
|
+
/**
|
|
16003
|
+
* Function to zoom out.
|
|
16004
|
+
* Also called when the associated button is pressed.
|
|
16000
16005
|
*/
|
|
16001
16006
|
zoomOut: function zoomOut() {
|
|
16002
16007
|
if (this.mapImp) {
|
|
@@ -16412,9 +16417,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16412
16417
|
showPathwaysDrawer: function showPathwaysDrawer(flag) {
|
|
16413
16418
|
this.drawerOpen = flag;
|
|
16414
16419
|
},
|
|
16415
|
-
/**
|
|
16416
|
-
* Function to display features with annotation matching the provided term,
|
|
16417
|
-
* with the option to display the label using displayLabel flag.
|
|
16420
|
+
/**
|
|
16421
|
+
* Function to display features with annotation matching the provided term,
|
|
16422
|
+
* with the option to display the label using displayLabel flag.
|
|
16418
16423
|
*/
|
|
16419
16424
|
searchAndShowResult: function searchAndShowResult(term, displayLabel) {
|
|
16420
16425
|
if (this.mapImp) {
|
|
@@ -16438,8 +16443,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16438
16443
|
}
|
|
16439
16444
|
return false;
|
|
16440
16445
|
},
|
|
16441
|
-
/**
|
|
16442
|
-
* Get the list of suggested terms
|
|
16446
|
+
/**
|
|
16447
|
+
* Get the list of suggested terms
|
|
16443
16448
|
*/
|
|
16444
16449
|
searchSuggestions: function searchSuggestions(term) {
|
|
16445
16450
|
if (this.mapImp) return this.mapImp.search(term);
|
|
@@ -16504,15 +16509,15 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16504
16509
|
type: String,
|
|
16505
16510
|
default: "Search now provide suggested terms. Add new legends. New tilesets. New female map. Improve upstream downstream information."
|
|
16506
16511
|
},
|
|
16507
|
-
/**
|
|
16508
|
-
* State containing state of the flatmap.
|
|
16512
|
+
/**
|
|
16513
|
+
* State containing state of the flatmap.
|
|
16509
16514
|
*/
|
|
16510
16515
|
state: {
|
|
16511
16516
|
type: Object,
|
|
16512
16517
|
default: undefined
|
|
16513
16518
|
},
|
|
16514
|
-
/**
|
|
16515
|
-
* Specify the endpoint of the flatmap server.
|
|
16519
|
+
/**
|
|
16520
|
+
* Specify the endpoint of the flatmap server.
|
|
16516
16521
|
*/
|
|
16517
16522
|
flatmapAPI: {
|
|
16518
16523
|
type: String,
|
|
@@ -16648,7 +16653,7 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16648
16653
|
)
|
|
16649
16654
|
|
|
16650
16655
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
16651
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16656
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b4fd8ccc-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/MultiFlatmapVuer.vue?vue&type=template&id=0732c3a0&scoped=true&
|
|
16652
16657
|
var MultiFlatmapVuervue_type_template_id_0732c3a0_scoped_true_render = function render() {
|
|
16653
16658
|
var _vm = this,
|
|
16654
16659
|
_c = _vm._self._c;
|
|
@@ -16949,11 +16954,11 @@ var TAXON_UUID = {
|
|
|
16949
16954
|
}
|
|
16950
16955
|
}
|
|
16951
16956
|
},
|
|
16952
|
-
/**
|
|
16953
|
-
* Function to switch to the latest existing map from
|
|
16954
|
-
* a legacy map of the same species.
|
|
16955
|
-
*
|
|
16956
|
-
* @private
|
|
16957
|
+
/**
|
|
16958
|
+
* Function to switch to the latest existing map from
|
|
16959
|
+
* a legacy map of the same species.
|
|
16960
|
+
*
|
|
16961
|
+
* @private
|
|
16957
16962
|
*/
|
|
16958
16963
|
viewLatestMap: function viewLatestMap(state) {
|
|
16959
16964
|
var keys = Object.keys(this.speciesList);
|
|
@@ -16965,10 +16970,10 @@ var TAXON_UUID = {
|
|
|
16965
16970
|
}
|
|
16966
16971
|
}
|
|
16967
16972
|
},
|
|
16968
|
-
/**
|
|
16969
|
-
* Create a legacy entry with the provided information
|
|
16970
|
-
*
|
|
16971
|
-
* @private
|
|
16973
|
+
/**
|
|
16974
|
+
* Create a legacy entry with the provided information
|
|
16975
|
+
*
|
|
16976
|
+
* @private
|
|
16972
16977
|
*/
|
|
16973
16978
|
createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
|
|
16974
16979
|
if (uuid && taxo) {
|
|
@@ -16992,11 +16997,11 @@ var TAXON_UUID = {
|
|
|
16992
16997
|
};
|
|
16993
16998
|
}
|
|
16994
16999
|
},
|
|
16995
|
-
/**
|
|
16996
|
-
* Function used to translate the legacy map state to one that can be used in current
|
|
16997
|
-
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
16998
|
-
*
|
|
16999
|
-
* @private
|
|
17000
|
+
/**
|
|
17001
|
+
* Function used to translate the legacy map state to one that can be used in current
|
|
17002
|
+
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
17003
|
+
*
|
|
17004
|
+
* @private
|
|
17000
17005
|
*/
|
|
17001
17006
|
updateState: function updateState(state) {
|
|
17002
17007
|
var _this4 = this;
|
|
@@ -17037,11 +17042,11 @@ var TAXON_UUID = {
|
|
|
17037
17042
|
resolve(state);
|
|
17038
17043
|
});
|
|
17039
17044
|
},
|
|
17040
|
-
/**
|
|
17041
|
-
* Function used for getting the current states of the scene. This exported states
|
|
17042
|
-
* can be imported using the importStates method.
|
|
17043
|
-
*
|
|
17044
|
-
* @public
|
|
17045
|
+
/**
|
|
17046
|
+
* Function used for getting the current states of the scene. This exported states
|
|
17047
|
+
* can be imported using the importStates method.
|
|
17048
|
+
*
|
|
17049
|
+
* @public
|
|
17045
17050
|
*/
|
|
17046
17051
|
getState: function getState() {
|
|
17047
17052
|
var state = {
|
|
@@ -17052,11 +17057,11 @@ var TAXON_UUID = {
|
|
|
17052
17057
|
state.state = map.getState();
|
|
17053
17058
|
return state;
|
|
17054
17059
|
},
|
|
17055
|
-
/**
|
|
17056
|
-
* Function used for importing the states of the scene. This exported states
|
|
17057
|
-
* can be imported using the read states method.
|
|
17058
|
-
*
|
|
17059
|
-
* @public
|
|
17060
|
+
/**
|
|
17061
|
+
* Function used for importing the states of the scene. This exported states
|
|
17062
|
+
* can be imported using the read states method.
|
|
17063
|
+
*
|
|
17064
|
+
* @public
|
|
17060
17065
|
*/
|
|
17061
17066
|
setState: function setState(state) {
|
|
17062
17067
|
var _this5 = this;
|
|
@@ -17099,9 +17104,9 @@ var TAXON_UUID = {
|
|
|
17099
17104
|
type: Boolean,
|
|
17100
17105
|
default: false
|
|
17101
17106
|
},
|
|
17102
|
-
/**
|
|
17103
|
-
* Initial species for the flatmap.
|
|
17104
|
-
* This value will be ignored if a valid state object is provided.
|
|
17107
|
+
/**
|
|
17108
|
+
* Initial species for the flatmap.
|
|
17109
|
+
* This value will be ignored if a valid state object is provided.
|
|
17105
17110
|
*/
|
|
17106
17111
|
initial: {
|
|
17107
17112
|
type: String,
|
|
@@ -17162,15 +17167,15 @@ var TAXON_UUID = {
|
|
|
17162
17167
|
};
|
|
17163
17168
|
}
|
|
17164
17169
|
},
|
|
17165
|
-
/**
|
|
17166
|
-
* State containing state of the flatmap.
|
|
17170
|
+
/**
|
|
17171
|
+
* State containing state of the flatmap.
|
|
17167
17172
|
*/
|
|
17168
17173
|
state: {
|
|
17169
17174
|
type: Object,
|
|
17170
17175
|
default: undefined
|
|
17171
17176
|
},
|
|
17172
|
-
/**
|
|
17173
|
-
* Specify the endpoint of the flatmap server.
|
|
17177
|
+
/**
|
|
17178
|
+
* Specify the endpoint of the flatmap server.
|
|
17174
17179
|
*/
|
|
17175
17180
|
flatmapAPI: {
|
|
17176
17181
|
type: String,
|