@abi-software/flatmapvuer 0.4.1 → 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 +114 -92
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +114 -92
- 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 +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 -1610
- 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
|
@@ -94,13 +94,6 @@ module.exports =
|
|
|
94
94
|
|
|
95
95
|
/***/ }),
|
|
96
96
|
|
|
97
|
-
/***/ "0f26":
|
|
98
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
99
|
-
|
|
100
|
-
// extracted by mini-css-extract-plugin
|
|
101
|
-
|
|
102
|
-
/***/ }),
|
|
103
|
-
|
|
104
97
|
/***/ "0f6c":
|
|
105
98
|
/***/ (function(module, exports) {
|
|
106
99
|
|
|
@@ -1476,6 +1469,17 @@ var i18n = exports.i18n = function i18n(fn) {
|
|
|
1476
1469
|
|
|
1477
1470
|
exports.default = { use: use, t: t, i18n: i18n };
|
|
1478
1471
|
|
|
1472
|
+
/***/ }),
|
|
1473
|
+
|
|
1474
|
+
/***/ "4929":
|
|
1475
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1476
|
+
|
|
1477
|
+
"use strict";
|
|
1478
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_d6b2de28_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c920");
|
|
1479
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_d6b2de28_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_d6b2de28_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
1480
|
+
/* unused harmony reexport * */
|
|
1481
|
+
|
|
1482
|
+
|
|
1479
1483
|
/***/ }),
|
|
1480
1484
|
|
|
1481
1485
|
/***/ "4933":
|
|
@@ -9792,21 +9796,17 @@ module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
|
9792
9796
|
|
|
9793
9797
|
/***/ }),
|
|
9794
9798
|
|
|
9795
|
-
/***/ "
|
|
9796
|
-
/***/ (function(module, exports) {
|
|
9799
|
+
/***/ "c920":
|
|
9800
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9797
9801
|
|
|
9798
|
-
|
|
9802
|
+
// extracted by mini-css-extract-plugin
|
|
9799
9803
|
|
|
9800
9804
|
/***/ }),
|
|
9801
9805
|
|
|
9802
|
-
/***/ "
|
|
9803
|
-
/***/ (function(module,
|
|
9804
|
-
|
|
9805
|
-
"use strict";
|
|
9806
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_e59f389a_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("0f26");
|
|
9807
|
-
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_e59f389a_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FlatmapVuer_vue_vue_type_style_index_0_id_e59f389a_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
9808
|
-
/* unused harmony reexport * */
|
|
9806
|
+
/***/ "ccb0":
|
|
9807
|
+
/***/ (function(module, exports) {
|
|
9809
9808
|
|
|
9809
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
9810
9810
|
|
|
9811
9811
|
/***/ }),
|
|
9812
9812
|
|
|
@@ -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;
|
|
@@ -13823,7 +13823,7 @@ var render = function render() {
|
|
|
13823
13823
|
};
|
|
13824
13824
|
var staticRenderFns = [];
|
|
13825
13825
|
|
|
13826
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
13826
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=d6b2de28&scoped=true&
|
|
13827
13827
|
|
|
13828
13828
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
13829
13829
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -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) {
|
|
@@ -15909,6 +15914,10 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15909
15914
|
beforeCreate: function beforeCreate() {
|
|
15910
15915
|
this.mapManager = undefined;
|
|
15911
15916
|
this.mapImp = undefined;
|
|
15917
|
+
//The state watcher may triggered before
|
|
15918
|
+
//created causing issue, This flag will
|
|
15919
|
+
//resolve this issue.
|
|
15920
|
+
this.setStateRequired = false;
|
|
15912
15921
|
},
|
|
15913
15922
|
methods: {
|
|
15914
15923
|
viewLatestMap: function viewLatestMap() {
|
|
@@ -15933,8 +15942,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15933
15942
|
toggleDrawer: function toggleDrawer() {
|
|
15934
15943
|
this.drawerOpen = !this.drawerOpen;
|
|
15935
15944
|
},
|
|
15936
|
-
/**
|
|
15937
|
-
* Function to toggle colour/greyscale of organs.
|
|
15945
|
+
/**
|
|
15946
|
+
* Function to toggle colour/greyscale of organs.
|
|
15938
15947
|
*/
|
|
15939
15948
|
setColour: function setColour(flag) {
|
|
15940
15949
|
this.colourRadio = flag;
|
|
@@ -15945,8 +15954,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15945
15954
|
});
|
|
15946
15955
|
}
|
|
15947
15956
|
},
|
|
15948
|
-
/**
|
|
15949
|
-
* Function to toggle outlines f organs.
|
|
15957
|
+
/**
|
|
15958
|
+
* Function to toggle outlines f organs.
|
|
15950
15959
|
*/
|
|
15951
15960
|
setOutlines: function setOutlines(flag) {
|
|
15952
15961
|
this.outlineRadio = flag;
|
|
@@ -15957,9 +15966,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15957
15966
|
});
|
|
15958
15967
|
}
|
|
15959
15968
|
},
|
|
15960
|
-
/**
|
|
15961
|
-
* Function to toggle paths to default.
|
|
15962
|
-
* 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.
|
|
15963
15972
|
*/
|
|
15964
15973
|
resetView: function resetView() {
|
|
15965
15974
|
if (this.mapImp) {
|
|
@@ -15981,18 +15990,18 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15981
15990
|
}
|
|
15982
15991
|
}
|
|
15983
15992
|
},
|
|
15984
|
-
/**
|
|
15985
|
-
* Function to zoom in.
|
|
15986
|
-
* Also called when the associated button is pressed.
|
|
15993
|
+
/**
|
|
15994
|
+
* Function to zoom in.
|
|
15995
|
+
* Also called when the associated button is pressed.
|
|
15987
15996
|
*/
|
|
15988
15997
|
zoomIn: function zoomIn() {
|
|
15989
15998
|
if (this.mapImp) {
|
|
15990
15999
|
this.mapImp.zoomIn();
|
|
15991
16000
|
}
|
|
15992
16001
|
},
|
|
15993
|
-
/**
|
|
15994
|
-
* Function to zoom out.
|
|
15995
|
-
* Also called when the associated button is pressed.
|
|
16002
|
+
/**
|
|
16003
|
+
* Function to zoom out.
|
|
16004
|
+
* Also called when the associated button is pressed.
|
|
15996
16005
|
*/
|
|
15997
16006
|
zoomOut: function zoomOut() {
|
|
15998
16007
|
if (this.mapImp) {
|
|
@@ -16271,6 +16280,7 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16271
16280
|
} else {
|
|
16272
16281
|
this.createFlatmap(state);
|
|
16273
16282
|
}
|
|
16283
|
+
this.setStateRequired = false;
|
|
16274
16284
|
}
|
|
16275
16285
|
},
|
|
16276
16286
|
restoreMapState: function restoreMapState(state) {
|
|
@@ -16407,9 +16417,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16407
16417
|
showPathwaysDrawer: function showPathwaysDrawer(flag) {
|
|
16408
16418
|
this.drawerOpen = flag;
|
|
16409
16419
|
},
|
|
16410
|
-
/**
|
|
16411
|
-
* Function to display features with annotation matching the provided term,
|
|
16412
|
-
* 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.
|
|
16413
16423
|
*/
|
|
16414
16424
|
searchAndShowResult: function searchAndShowResult(term, displayLabel) {
|
|
16415
16425
|
if (this.mapImp) {
|
|
@@ -16433,8 +16443,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16433
16443
|
}
|
|
16434
16444
|
return false;
|
|
16435
16445
|
},
|
|
16436
|
-
/**
|
|
16437
|
-
* Get the list of suggested terms
|
|
16446
|
+
/**
|
|
16447
|
+
* Get the list of suggested terms
|
|
16438
16448
|
*/
|
|
16439
16449
|
searchSuggestions: function searchSuggestions(term) {
|
|
16440
16450
|
if (this.mapImp) return this.mapImp.search(term);
|
|
@@ -16499,15 +16509,15 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16499
16509
|
type: String,
|
|
16500
16510
|
default: "Search now provide suggested terms. Add new legends. New tilesets. New female map. Improve upstream downstream information."
|
|
16501
16511
|
},
|
|
16502
|
-
/**
|
|
16503
|
-
* State containing state of the flatmap.
|
|
16512
|
+
/**
|
|
16513
|
+
* State containing state of the flatmap.
|
|
16504
16514
|
*/
|
|
16505
16515
|
state: {
|
|
16506
16516
|
type: Object,
|
|
16507
16517
|
default: undefined
|
|
16508
16518
|
},
|
|
16509
|
-
/**
|
|
16510
|
-
* Specify the endpoint of the flatmap server.
|
|
16519
|
+
/**
|
|
16520
|
+
* Specify the endpoint of the flatmap server.
|
|
16511
16521
|
*/
|
|
16512
16522
|
flatmapAPI: {
|
|
16513
16523
|
type: String,
|
|
@@ -16581,7 +16591,12 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16581
16591
|
},
|
|
16582
16592
|
state: {
|
|
16583
16593
|
handler: function handler(state) {
|
|
16584
|
-
this.
|
|
16594
|
+
if (this.mapManager) {
|
|
16595
|
+
this.setState(state);
|
|
16596
|
+
} else {
|
|
16597
|
+
//this component has not been mounted yet
|
|
16598
|
+
this.setStateRequired = true;
|
|
16599
|
+
}
|
|
16585
16600
|
},
|
|
16586
16601
|
immediate: true,
|
|
16587
16602
|
deep: true
|
|
@@ -16600,15 +16615,22 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16600
16615
|
mounted: function mounted() {
|
|
16601
16616
|
var flatmap = __webpack_require__("4979");
|
|
16602
16617
|
this.mapManager = new flatmap.MapManager(this.flatmapAPI);
|
|
16603
|
-
if (this.renderAtMounted) this.createFlatmap();
|
|
16604
16618
|
this.flatmapQueries = new flatmapQueries_FlatmapQueries();
|
|
16605
16619
|
this.flatmapQueries.initialise(this.sparcAPI, this.flatmapAPI);
|
|
16620
|
+
if (this.state) {
|
|
16621
|
+
//State is set and require to set the state
|
|
16622
|
+
if (this.setStateRequired) {
|
|
16623
|
+
this.setState(this.state);
|
|
16624
|
+
}
|
|
16625
|
+
} else if (this.renderAtMounted) {
|
|
16626
|
+
this.createFlatmap();
|
|
16627
|
+
}
|
|
16606
16628
|
}
|
|
16607
16629
|
});
|
|
16608
16630
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
16609
16631
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
16610
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16611
|
-
var
|
|
16632
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=d6b2de28&prod&scoped=true&lang=scss&
|
|
16633
|
+
var FlatmapVuervue_type_style_index_0_id_d6b2de28_prod_scoped_true_lang_scss_ = __webpack_require__("4929");
|
|
16612
16634
|
|
|
16613
16635
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
16614
16636
|
|
|
@@ -16625,13 +16647,13 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16625
16647
|
staticRenderFns,
|
|
16626
16648
|
false,
|
|
16627
16649
|
null,
|
|
16628
|
-
"
|
|
16650
|
+
"d6b2de28",
|
|
16629
16651
|
null
|
|
16630
16652
|
|
|
16631
16653
|
)
|
|
16632
16654
|
|
|
16633
16655
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
16634
|
-
// 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&
|
|
16635
16657
|
var MultiFlatmapVuervue_type_template_id_0732c3a0_scoped_true_render = function render() {
|
|
16636
16658
|
var _vm = this,
|
|
16637
16659
|
_c = _vm._self._c;
|
|
@@ -16932,11 +16954,11 @@ var TAXON_UUID = {
|
|
|
16932
16954
|
}
|
|
16933
16955
|
}
|
|
16934
16956
|
},
|
|
16935
|
-
/**
|
|
16936
|
-
* Function to switch to the latest existing map from
|
|
16937
|
-
* a legacy map of the same species.
|
|
16938
|
-
*
|
|
16939
|
-
* @private
|
|
16957
|
+
/**
|
|
16958
|
+
* Function to switch to the latest existing map from
|
|
16959
|
+
* a legacy map of the same species.
|
|
16960
|
+
*
|
|
16961
|
+
* @private
|
|
16940
16962
|
*/
|
|
16941
16963
|
viewLatestMap: function viewLatestMap(state) {
|
|
16942
16964
|
var keys = Object.keys(this.speciesList);
|
|
@@ -16948,10 +16970,10 @@ var TAXON_UUID = {
|
|
|
16948
16970
|
}
|
|
16949
16971
|
}
|
|
16950
16972
|
},
|
|
16951
|
-
/**
|
|
16952
|
-
* Create a legacy entry with the provided information
|
|
16953
|
-
*
|
|
16954
|
-
* @private
|
|
16973
|
+
/**
|
|
16974
|
+
* Create a legacy entry with the provided information
|
|
16975
|
+
*
|
|
16976
|
+
* @private
|
|
16955
16977
|
*/
|
|
16956
16978
|
createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
|
|
16957
16979
|
if (uuid && taxo) {
|
|
@@ -16975,11 +16997,11 @@ var TAXON_UUID = {
|
|
|
16975
16997
|
};
|
|
16976
16998
|
}
|
|
16977
16999
|
},
|
|
16978
|
-
/**
|
|
16979
|
-
* Function used to translate the legacy map state to one that can be used in current
|
|
16980
|
-
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
16981
|
-
*
|
|
16982
|
-
* @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
|
|
16983
17005
|
*/
|
|
16984
17006
|
updateState: function updateState(state) {
|
|
16985
17007
|
var _this4 = this;
|
|
@@ -17020,11 +17042,11 @@ var TAXON_UUID = {
|
|
|
17020
17042
|
resolve(state);
|
|
17021
17043
|
});
|
|
17022
17044
|
},
|
|
17023
|
-
/**
|
|
17024
|
-
* Function used for getting the current states of the scene. This exported states
|
|
17025
|
-
* can be imported using the importStates method.
|
|
17026
|
-
*
|
|
17027
|
-
* @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
|
|
17028
17050
|
*/
|
|
17029
17051
|
getState: function getState() {
|
|
17030
17052
|
var state = {
|
|
@@ -17035,11 +17057,11 @@ var TAXON_UUID = {
|
|
|
17035
17057
|
state.state = map.getState();
|
|
17036
17058
|
return state;
|
|
17037
17059
|
},
|
|
17038
|
-
/**
|
|
17039
|
-
* Function used for importing the states of the scene. This exported states
|
|
17040
|
-
* can be imported using the read states method.
|
|
17041
|
-
*
|
|
17042
|
-
* @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
|
|
17043
17065
|
*/
|
|
17044
17066
|
setState: function setState(state) {
|
|
17045
17067
|
var _this5 = this;
|
|
@@ -17082,9 +17104,9 @@ var TAXON_UUID = {
|
|
|
17082
17104
|
type: Boolean,
|
|
17083
17105
|
default: false
|
|
17084
17106
|
},
|
|
17085
|
-
/**
|
|
17086
|
-
* Initial species for the flatmap.
|
|
17087
|
-
* 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.
|
|
17088
17110
|
*/
|
|
17089
17111
|
initial: {
|
|
17090
17112
|
type: String,
|
|
@@ -17145,15 +17167,15 @@ var TAXON_UUID = {
|
|
|
17145
17167
|
};
|
|
17146
17168
|
}
|
|
17147
17169
|
},
|
|
17148
|
-
/**
|
|
17149
|
-
* State containing state of the flatmap.
|
|
17170
|
+
/**
|
|
17171
|
+
* State containing state of the flatmap.
|
|
17150
17172
|
*/
|
|
17151
17173
|
state: {
|
|
17152
17174
|
type: Object,
|
|
17153
17175
|
default: undefined
|
|
17154
17176
|
},
|
|
17155
|
-
/**
|
|
17156
|
-
* Specify the endpoint of the flatmap server.
|
|
17177
|
+
/**
|
|
17178
|
+
* Specify the endpoint of the flatmap server.
|
|
17157
17179
|
*/
|
|
17158
17180
|
flatmapAPI: {
|
|
17159
17181
|
type: String,
|