@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
package/dist/flatmapvuer.umd.js
CHANGED
|
@@ -103,13 +103,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
103
103
|
|
|
104
104
|
/***/ }),
|
|
105
105
|
|
|
106
|
-
/***/ "0f26":
|
|
107
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
108
|
-
|
|
109
|
-
// extracted by mini-css-extract-plugin
|
|
110
|
-
|
|
111
|
-
/***/ }),
|
|
112
|
-
|
|
113
106
|
/***/ "0f6c":
|
|
114
107
|
/***/ (function(module, exports) {
|
|
115
108
|
|
|
@@ -1485,6 +1478,17 @@ var i18n = exports.i18n = function i18n(fn) {
|
|
|
1485
1478
|
|
|
1486
1479
|
exports.default = { use: use, t: t, i18n: i18n };
|
|
1487
1480
|
|
|
1481
|
+
/***/ }),
|
|
1482
|
+
|
|
1483
|
+
/***/ "4929":
|
|
1484
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1485
|
+
|
|
1486
|
+
"use strict";
|
|
1487
|
+
/* 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");
|
|
1488
|
+
/* 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__);
|
|
1489
|
+
/* unused harmony reexport * */
|
|
1490
|
+
|
|
1491
|
+
|
|
1488
1492
|
/***/ }),
|
|
1489
1493
|
|
|
1490
1494
|
/***/ "4933":
|
|
@@ -9801,21 +9805,17 @@ module.exports = require("core-js/modules/es.regexp.exec.js");
|
|
|
9801
9805
|
|
|
9802
9806
|
/***/ }),
|
|
9803
9807
|
|
|
9804
|
-
/***/ "
|
|
9805
|
-
/***/ (function(module, exports) {
|
|
9808
|
+
/***/ "c920":
|
|
9809
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9806
9810
|
|
|
9807
|
-
|
|
9811
|
+
// extracted by mini-css-extract-plugin
|
|
9808
9812
|
|
|
9809
9813
|
/***/ }),
|
|
9810
9814
|
|
|
9811
|
-
/***/ "
|
|
9812
|
-
/***/ (function(module,
|
|
9813
|
-
|
|
9814
|
-
"use strict";
|
|
9815
|
-
/* 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");
|
|
9816
|
-
/* 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__);
|
|
9817
|
-
/* unused harmony reexport * */
|
|
9815
|
+
/***/ "ccb0":
|
|
9816
|
+
/***/ (function(module, exports) {
|
|
9818
9817
|
|
|
9818
|
+
module.exports = require("core-js/modules/es.array.concat.js");
|
|
9819
9819
|
|
|
9820
9820
|
/***/ }),
|
|
9821
9821
|
|
|
@@ -13378,7 +13378,7 @@ if (typeof window !== 'undefined') {
|
|
|
13378
13378
|
// Indicate to webpack that this file can be concatenated
|
|
13379
13379
|
/* harmony default export */ var setPublicPath = (null);
|
|
13380
13380
|
|
|
13381
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
13381
|
+
// 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&
|
|
13382
13382
|
var render = function render() {
|
|
13383
13383
|
var _vm = this,
|
|
13384
13384
|
_c = _vm._self._c;
|
|
@@ -13832,7 +13832,7 @@ var render = function render() {
|
|
|
13832
13832
|
};
|
|
13833
13833
|
var staticRenderFns = [];
|
|
13834
13834
|
|
|
13835
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
13835
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=d6b2de28&scoped=true&
|
|
13836
13836
|
|
|
13837
13837
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
13838
13838
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -14422,7 +14422,7 @@ var es_number_constructor_js_ = __webpack_require__("f989");
|
|
|
14422
14422
|
var external_vue_ = __webpack_require__("8bbf");
|
|
14423
14423
|
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
14424
14424
|
|
|
14425
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14425
|
+
// 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&
|
|
14426
14426
|
var Tooltipvue_type_template_id_4ffcf7c8_scoped_true_render = function render() {
|
|
14427
14427
|
var _vm = this,
|
|
14428
14428
|
_c = _vm._self._c;
|
|
@@ -14615,7 +14615,7 @@ var locale_default = /*#__PURE__*/__webpack_require__.n(locale);
|
|
|
14615
14615
|
|
|
14616
14616
|
var EventBus = new external_vue_default.a();
|
|
14617
14617
|
/* harmony default export */ var components_EventBus = (EventBus);
|
|
14618
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14618
|
+
// 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&
|
|
14619
14619
|
var ExternalResourceCardvue_type_template_id_14172b61_scoped_true_render = function render() {
|
|
14620
14620
|
var _vm = this,
|
|
14621
14621
|
_c = _vm._self._c;
|
|
@@ -14979,7 +14979,7 @@ var Tooltip_component = normalizeComponent(
|
|
|
14979
14979
|
)
|
|
14980
14980
|
|
|
14981
14981
|
/* harmony default export */ var Tooltip = (Tooltip_component.exports);
|
|
14982
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
14982
|
+
// 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&
|
|
14983
14983
|
var SelectionsGroupvue_type_template_id_404813f2_scoped_true_render = function render() {
|
|
14984
14984
|
var _vm = this,
|
|
14985
14985
|
_c = _vm._self._c;
|
|
@@ -15116,9 +15116,9 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
15116
15116
|
/* harmony default export */ var SelectionsGroupvue_type_script_lang_js_ = ({
|
|
15117
15117
|
name: "SelectionsGroup",
|
|
15118
15118
|
methods: {
|
|
15119
|
-
/**
|
|
15120
|
-
* Function to toggle paths to default.
|
|
15121
|
-
* Also called when the associated button is pressed.
|
|
15119
|
+
/**
|
|
15120
|
+
* Function to toggle paths to default.
|
|
15121
|
+
* Also called when the associated button is pressed.
|
|
15122
15122
|
*/
|
|
15123
15123
|
reset: function reset() {
|
|
15124
15124
|
var _this = this;
|
|
@@ -15252,7 +15252,7 @@ var SelectionsGroup_component = normalizeComponent(
|
|
|
15252
15252
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
15253
15253
|
var svg_sprite_ = __webpack_require__("429c");
|
|
15254
15254
|
|
|
15255
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
15255
|
+
// 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&
|
|
15256
15256
|
var SvgLegendsvue_type_template_id_3d3218c8_scoped_true_render = function render() {
|
|
15257
15257
|
var _vm = this,
|
|
15258
15258
|
_c = _vm._self._c;
|
|
@@ -15469,6 +15469,17 @@ var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
|
15469
15469
|
});
|
|
15470
15470
|
};
|
|
15471
15471
|
this.createTooltipData = function (eventData) {
|
|
15472
|
+
var hyperlinks = [];
|
|
15473
|
+
if (eventData.feature.hyperlinks && eventData.feature.hyperlinks.length > 0) {
|
|
15474
|
+
hyperlinks = eventData.feature.hyperlinks;
|
|
15475
|
+
} else {
|
|
15476
|
+
hyperlinks = this.urls.map(function (url) {
|
|
15477
|
+
return {
|
|
15478
|
+
url: url,
|
|
15479
|
+
id: "pubmed"
|
|
15480
|
+
};
|
|
15481
|
+
});
|
|
15482
|
+
}
|
|
15472
15483
|
var tooltipData = {
|
|
15473
15484
|
destinations: this.destinations,
|
|
15474
15485
|
origins: this.origins,
|
|
@@ -15478,12 +15489,7 @@ var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
|
15478
15489
|
componentsWithDatasets: this.componentsWithDatasets,
|
|
15479
15490
|
title: eventData.label,
|
|
15480
15491
|
featureId: eventData.resource,
|
|
15481
|
-
hyperlinks:
|
|
15482
|
-
return {
|
|
15483
|
-
url: url,
|
|
15484
|
-
id: "pubmed"
|
|
15485
|
-
};
|
|
15486
|
-
})
|
|
15492
|
+
hyperlinks: hyperlinks
|
|
15487
15493
|
};
|
|
15488
15494
|
return tooltipData;
|
|
15489
15495
|
};
|
|
@@ -15647,7 +15653,6 @@ var flatmapQueries_FlatmapQueries = function FlatmapQueries() {
|
|
|
15647
15653
|
resolve(true);
|
|
15648
15654
|
});
|
|
15649
15655
|
} else {
|
|
15650
|
-
console.log('No connectivity data found');
|
|
15651
15656
|
resolve(false);
|
|
15652
15657
|
}
|
|
15653
15658
|
}).catch(function (error) {
|
|
@@ -15918,6 +15923,10 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15918
15923
|
beforeCreate: function beforeCreate() {
|
|
15919
15924
|
this.mapManager = undefined;
|
|
15920
15925
|
this.mapImp = undefined;
|
|
15926
|
+
//The state watcher may triggered before
|
|
15927
|
+
//created causing issue, This flag will
|
|
15928
|
+
//resolve this issue.
|
|
15929
|
+
this.setStateRequired = false;
|
|
15921
15930
|
},
|
|
15922
15931
|
methods: {
|
|
15923
15932
|
viewLatestMap: function viewLatestMap() {
|
|
@@ -15942,8 +15951,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15942
15951
|
toggleDrawer: function toggleDrawer() {
|
|
15943
15952
|
this.drawerOpen = !this.drawerOpen;
|
|
15944
15953
|
},
|
|
15945
|
-
/**
|
|
15946
|
-
* Function to toggle colour/greyscale of organs.
|
|
15954
|
+
/**
|
|
15955
|
+
* Function to toggle colour/greyscale of organs.
|
|
15947
15956
|
*/
|
|
15948
15957
|
setColour: function setColour(flag) {
|
|
15949
15958
|
this.colourRadio = flag;
|
|
@@ -15954,8 +15963,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15954
15963
|
});
|
|
15955
15964
|
}
|
|
15956
15965
|
},
|
|
15957
|
-
/**
|
|
15958
|
-
* Function to toggle outlines f organs.
|
|
15966
|
+
/**
|
|
15967
|
+
* Function to toggle outlines f organs.
|
|
15959
15968
|
*/
|
|
15960
15969
|
setOutlines: function setOutlines(flag) {
|
|
15961
15970
|
this.outlineRadio = flag;
|
|
@@ -15966,9 +15975,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15966
15975
|
});
|
|
15967
15976
|
}
|
|
15968
15977
|
},
|
|
15969
|
-
/**
|
|
15970
|
-
* Function to toggle paths to default.
|
|
15971
|
-
* Also called when the associated button is pressed.
|
|
15978
|
+
/**
|
|
15979
|
+
* Function to toggle paths to default.
|
|
15980
|
+
* Also called when the associated button is pressed.
|
|
15972
15981
|
*/
|
|
15973
15982
|
resetView: function resetView() {
|
|
15974
15983
|
if (this.mapImp) {
|
|
@@ -15990,18 +15999,18 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
15990
15999
|
}
|
|
15991
16000
|
}
|
|
15992
16001
|
},
|
|
15993
|
-
/**
|
|
15994
|
-
* Function to zoom in.
|
|
15995
|
-
* Also called when the associated button is pressed.
|
|
16002
|
+
/**
|
|
16003
|
+
* Function to zoom in.
|
|
16004
|
+
* Also called when the associated button is pressed.
|
|
15996
16005
|
*/
|
|
15997
16006
|
zoomIn: function zoomIn() {
|
|
15998
16007
|
if (this.mapImp) {
|
|
15999
16008
|
this.mapImp.zoomIn();
|
|
16000
16009
|
}
|
|
16001
16010
|
},
|
|
16002
|
-
/**
|
|
16003
|
-
* Function to zoom out.
|
|
16004
|
-
* Also called when the associated button is pressed.
|
|
16011
|
+
/**
|
|
16012
|
+
* Function to zoom out.
|
|
16013
|
+
* Also called when the associated button is pressed.
|
|
16005
16014
|
*/
|
|
16006
16015
|
zoomOut: function zoomOut() {
|
|
16007
16016
|
if (this.mapImp) {
|
|
@@ -16280,6 +16289,7 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16280
16289
|
} else {
|
|
16281
16290
|
this.createFlatmap(state);
|
|
16282
16291
|
}
|
|
16292
|
+
this.setStateRequired = false;
|
|
16283
16293
|
}
|
|
16284
16294
|
},
|
|
16285
16295
|
restoreMapState: function restoreMapState(state) {
|
|
@@ -16416,9 +16426,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16416
16426
|
showPathwaysDrawer: function showPathwaysDrawer(flag) {
|
|
16417
16427
|
this.drawerOpen = flag;
|
|
16418
16428
|
},
|
|
16419
|
-
/**
|
|
16420
|
-
* Function to display features with annotation matching the provided term,
|
|
16421
|
-
* with the option to display the label using displayLabel flag.
|
|
16429
|
+
/**
|
|
16430
|
+
* Function to display features with annotation matching the provided term,
|
|
16431
|
+
* with the option to display the label using displayLabel flag.
|
|
16422
16432
|
*/
|
|
16423
16433
|
searchAndShowResult: function searchAndShowResult(term, displayLabel) {
|
|
16424
16434
|
if (this.mapImp) {
|
|
@@ -16442,8 +16452,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16442
16452
|
}
|
|
16443
16453
|
return false;
|
|
16444
16454
|
},
|
|
16445
|
-
/**
|
|
16446
|
-
* Get the list of suggested terms
|
|
16455
|
+
/**
|
|
16456
|
+
* Get the list of suggested terms
|
|
16447
16457
|
*/
|
|
16448
16458
|
searchSuggestions: function searchSuggestions(term) {
|
|
16449
16459
|
if (this.mapImp) return this.mapImp.search(term);
|
|
@@ -16508,15 +16518,15 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16508
16518
|
type: String,
|
|
16509
16519
|
default: "Search now provide suggested terms. Add new legends. New tilesets. New female map. Improve upstream downstream information."
|
|
16510
16520
|
},
|
|
16511
|
-
/**
|
|
16512
|
-
* State containing state of the flatmap.
|
|
16521
|
+
/**
|
|
16522
|
+
* State containing state of the flatmap.
|
|
16513
16523
|
*/
|
|
16514
16524
|
state: {
|
|
16515
16525
|
type: Object,
|
|
16516
16526
|
default: undefined
|
|
16517
16527
|
},
|
|
16518
|
-
/**
|
|
16519
|
-
* Specify the endpoint of the flatmap server.
|
|
16528
|
+
/**
|
|
16529
|
+
* Specify the endpoint of the flatmap server.
|
|
16520
16530
|
*/
|
|
16521
16531
|
flatmapAPI: {
|
|
16522
16532
|
type: String,
|
|
@@ -16590,7 +16600,12 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16590
16600
|
},
|
|
16591
16601
|
state: {
|
|
16592
16602
|
handler: function handler(state) {
|
|
16593
|
-
this.
|
|
16603
|
+
if (this.mapManager) {
|
|
16604
|
+
this.setState(state);
|
|
16605
|
+
} else {
|
|
16606
|
+
//this component has not been mounted yet
|
|
16607
|
+
this.setStateRequired = true;
|
|
16608
|
+
}
|
|
16594
16609
|
},
|
|
16595
16610
|
immediate: true,
|
|
16596
16611
|
deep: true
|
|
@@ -16609,15 +16624,22 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
|
|
|
16609
16624
|
mounted: function mounted() {
|
|
16610
16625
|
var flatmap = __webpack_require__("4979");
|
|
16611
16626
|
this.mapManager = new flatmap.MapManager(this.flatmapAPI);
|
|
16612
|
-
if (this.renderAtMounted) this.createFlatmap();
|
|
16613
16627
|
this.flatmapQueries = new flatmapQueries_FlatmapQueries();
|
|
16614
16628
|
this.flatmapQueries.initialise(this.sparcAPI, this.flatmapAPI);
|
|
16629
|
+
if (this.state) {
|
|
16630
|
+
//State is set and require to set the state
|
|
16631
|
+
if (this.setStateRequired) {
|
|
16632
|
+
this.setState(this.state);
|
|
16633
|
+
}
|
|
16634
|
+
} else if (this.renderAtMounted) {
|
|
16635
|
+
this.createFlatmap();
|
|
16636
|
+
}
|
|
16615
16637
|
}
|
|
16616
16638
|
});
|
|
16617
16639
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
16618
16640
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
16619
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16620
|
-
var
|
|
16641
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=d6b2de28&prod&scoped=true&lang=scss&
|
|
16642
|
+
var FlatmapVuervue_type_style_index_0_id_d6b2de28_prod_scoped_true_lang_scss_ = __webpack_require__("4929");
|
|
16621
16643
|
|
|
16622
16644
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
16623
16645
|
|
|
@@ -16634,13 +16656,13 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
16634
16656
|
staticRenderFns,
|
|
16635
16657
|
false,
|
|
16636
16658
|
null,
|
|
16637
|
-
"
|
|
16659
|
+
"d6b2de28",
|
|
16638
16660
|
null
|
|
16639
16661
|
|
|
16640
16662
|
)
|
|
16641
16663
|
|
|
16642
16664
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
16643
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
16665
|
+
// 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&
|
|
16644
16666
|
var MultiFlatmapVuervue_type_template_id_0732c3a0_scoped_true_render = function render() {
|
|
16645
16667
|
var _vm = this,
|
|
16646
16668
|
_c = _vm._self._c;
|
|
@@ -16941,11 +16963,11 @@ var TAXON_UUID = {
|
|
|
16941
16963
|
}
|
|
16942
16964
|
}
|
|
16943
16965
|
},
|
|
16944
|
-
/**
|
|
16945
|
-
* Function to switch to the latest existing map from
|
|
16946
|
-
* a legacy map of the same species.
|
|
16947
|
-
*
|
|
16948
|
-
* @private
|
|
16966
|
+
/**
|
|
16967
|
+
* Function to switch to the latest existing map from
|
|
16968
|
+
* a legacy map of the same species.
|
|
16969
|
+
*
|
|
16970
|
+
* @private
|
|
16949
16971
|
*/
|
|
16950
16972
|
viewLatestMap: function viewLatestMap(state) {
|
|
16951
16973
|
var keys = Object.keys(this.speciesList);
|
|
@@ -16957,10 +16979,10 @@ var TAXON_UUID = {
|
|
|
16957
16979
|
}
|
|
16958
16980
|
}
|
|
16959
16981
|
},
|
|
16960
|
-
/**
|
|
16961
|
-
* Create a legacy entry with the provided information
|
|
16962
|
-
*
|
|
16963
|
-
* @private
|
|
16982
|
+
/**
|
|
16983
|
+
* Create a legacy entry with the provided information
|
|
16984
|
+
*
|
|
16985
|
+
* @private
|
|
16964
16986
|
*/
|
|
16965
16987
|
createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
|
|
16966
16988
|
if (uuid && taxo) {
|
|
@@ -16984,11 +17006,11 @@ var TAXON_UUID = {
|
|
|
16984
17006
|
};
|
|
16985
17007
|
}
|
|
16986
17008
|
},
|
|
16987
|
-
/**
|
|
16988
|
-
* Function used to translate the legacy map state to one that can be used in current
|
|
16989
|
-
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
16990
|
-
*
|
|
16991
|
-
* @private
|
|
17009
|
+
/**
|
|
17010
|
+
* Function used to translate the legacy map state to one that can be used in current
|
|
17011
|
+
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
17012
|
+
*
|
|
17013
|
+
* @private
|
|
16992
17014
|
*/
|
|
16993
17015
|
updateState: function updateState(state) {
|
|
16994
17016
|
var _this4 = this;
|
|
@@ -17029,11 +17051,11 @@ var TAXON_UUID = {
|
|
|
17029
17051
|
resolve(state);
|
|
17030
17052
|
});
|
|
17031
17053
|
},
|
|
17032
|
-
/**
|
|
17033
|
-
* Function used for getting the current states of the scene. This exported states
|
|
17034
|
-
* can be imported using the importStates method.
|
|
17035
|
-
*
|
|
17036
|
-
* @public
|
|
17054
|
+
/**
|
|
17055
|
+
* Function used for getting the current states of the scene. This exported states
|
|
17056
|
+
* can be imported using the importStates method.
|
|
17057
|
+
*
|
|
17058
|
+
* @public
|
|
17037
17059
|
*/
|
|
17038
17060
|
getState: function getState() {
|
|
17039
17061
|
var state = {
|
|
@@ -17044,11 +17066,11 @@ var TAXON_UUID = {
|
|
|
17044
17066
|
state.state = map.getState();
|
|
17045
17067
|
return state;
|
|
17046
17068
|
},
|
|
17047
|
-
/**
|
|
17048
|
-
* Function used for importing the states of the scene. This exported states
|
|
17049
|
-
* can be imported using the read states method.
|
|
17050
|
-
*
|
|
17051
|
-
* @public
|
|
17069
|
+
/**
|
|
17070
|
+
* Function used for importing the states of the scene. This exported states
|
|
17071
|
+
* can be imported using the read states method.
|
|
17072
|
+
*
|
|
17073
|
+
* @public
|
|
17052
17074
|
*/
|
|
17053
17075
|
setState: function setState(state) {
|
|
17054
17076
|
var _this5 = this;
|
|
@@ -17091,9 +17113,9 @@ var TAXON_UUID = {
|
|
|
17091
17113
|
type: Boolean,
|
|
17092
17114
|
default: false
|
|
17093
17115
|
},
|
|
17094
|
-
/**
|
|
17095
|
-
* Initial species for the flatmap.
|
|
17096
|
-
* This value will be ignored if a valid state object is provided.
|
|
17116
|
+
/**
|
|
17117
|
+
* Initial species for the flatmap.
|
|
17118
|
+
* This value will be ignored if a valid state object is provided.
|
|
17097
17119
|
*/
|
|
17098
17120
|
initial: {
|
|
17099
17121
|
type: String,
|
|
@@ -17154,15 +17176,15 @@ var TAXON_UUID = {
|
|
|
17154
17176
|
};
|
|
17155
17177
|
}
|
|
17156
17178
|
},
|
|
17157
|
-
/**
|
|
17158
|
-
* State containing state of the flatmap.
|
|
17179
|
+
/**
|
|
17180
|
+
* State containing state of the flatmap.
|
|
17159
17181
|
*/
|
|
17160
17182
|
state: {
|
|
17161
17183
|
type: Object,
|
|
17162
17184
|
default: undefined
|
|
17163
17185
|
},
|
|
17164
|
-
/**
|
|
17165
|
-
* Specify the endpoint of the flatmap server.
|
|
17186
|
+
/**
|
|
17187
|
+
* Specify the endpoint of the flatmap server.
|
|
17166
17188
|
*/
|
|
17167
17189
|
flatmapAPI: {
|
|
17168
17190
|
type: String,
|