@abi-software/flatmapvuer 0.3.11 → 0.3.12
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.common.js +306 -127
- package/dist/flatmapvuer.common.js.map +1 -1
- package/dist/flatmapvuer.css +1 -1
- package/dist/flatmapvuer.umd.js +306 -127
- 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.json +1 -1
- package/src/components/FlatmapVuer.vue +53 -11
- package/src/components/MultiFlatmapVuer.vue +170 -46
- package/src/components/legends/Legends.vue +1 -1
package/dist/flatmapvuer.umd.js
CHANGED
|
@@ -257,12 +257,12 @@ row.install = function (Vue) {
|
|
|
257
257
|
|
|
258
258
|
/***/ }),
|
|
259
259
|
|
|
260
|
-
/***/ "
|
|
260
|
+
/***/ "126f":
|
|
261
261
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
262
262
|
|
|
263
263
|
"use strict";
|
|
264
|
-
/* harmony import */ var
|
|
265
|
-
/* harmony import */ var
|
|
264
|
+
/* 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_MultiFlatmapVuer_vue_vue_type_style_index_0_id_28f8b230_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("db06");
|
|
265
|
+
/* 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_MultiFlatmapVuer_vue_vue_type_style_index_0_id_28f8b230_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_MultiFlatmapVuer_vue_vue_type_style_index_0_id_28f8b230_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
266
266
|
/* unused harmony reexport * */
|
|
267
267
|
|
|
268
268
|
|
|
@@ -732,13 +732,6 @@ module.exports = __webpack_require__("e62d");
|
|
|
732
732
|
|
|
733
733
|
/***/ }),
|
|
734
734
|
|
|
735
|
-
/***/ "1959":
|
|
736
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
737
|
-
|
|
738
|
-
// extracted by mini-css-extract-plugin
|
|
739
|
-
|
|
740
|
-
/***/ }),
|
|
741
|
-
|
|
742
735
|
/***/ "1a25":
|
|
743
736
|
/***/ (function(module, exports) {
|
|
744
737
|
|
|
@@ -792,6 +785,13 @@ module.exports = require("core-js/modules/es.array.push.js");
|
|
|
792
785
|
|
|
793
786
|
/***/ }),
|
|
794
787
|
|
|
788
|
+
/***/ "2804":
|
|
789
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
790
|
+
|
|
791
|
+
// extracted by mini-css-extract-plugin
|
|
792
|
+
|
|
793
|
+
/***/ }),
|
|
794
|
+
|
|
795
795
|
/***/ "2a5e":
|
|
796
796
|
/***/ (function(module, exports, __webpack_require__) {
|
|
797
797
|
|
|
@@ -925,6 +925,17 @@ module.exports = require("core-js/modules/es.symbol.iterator.js");
|
|
|
925
925
|
|
|
926
926
|
module.exports = require("core-js/modules/es.regexp.to-string.js");
|
|
927
927
|
|
|
928
|
+
/***/ }),
|
|
929
|
+
|
|
930
|
+
/***/ "318c":
|
|
931
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
932
|
+
|
|
933
|
+
"use strict";
|
|
934
|
+
/* 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_Legends_vue_vue_type_style_index_0_id_514dd6be_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("5766");
|
|
935
|
+
/* 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_Legends_vue_vue_type_style_index_0_id_514dd6be_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_Legends_vue_vue_type_style_index_0_id_514dd6be_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
936
|
+
/* unused harmony reexport * */
|
|
937
|
+
|
|
938
|
+
|
|
928
939
|
/***/ }),
|
|
929
940
|
|
|
930
941
|
/***/ "3d2d":
|
|
@@ -1220,13 +1231,6 @@ main.install = function (Vue) {
|
|
|
1220
1231
|
|
|
1221
1232
|
/***/ }),
|
|
1222
1233
|
|
|
1223
|
-
/***/ "3ec8":
|
|
1224
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1225
|
-
|
|
1226
|
-
// extracted by mini-css-extract-plugin
|
|
1227
|
-
|
|
1228
|
-
/***/ }),
|
|
1229
|
-
|
|
1230
1234
|
/***/ "4010":
|
|
1231
1235
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1232
1236
|
|
|
@@ -4135,6 +4139,13 @@ exports.PopupManager = _popupManager2.default;
|
|
|
4135
4139
|
|
|
4136
4140
|
/***/ }),
|
|
4137
4141
|
|
|
4142
|
+
/***/ "5766":
|
|
4143
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4144
|
+
|
|
4145
|
+
// extracted by mini-css-extract-plugin
|
|
4146
|
+
|
|
4147
|
+
/***/ }),
|
|
4148
|
+
|
|
4138
4149
|
/***/ "5924":
|
|
4139
4150
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4140
4151
|
|
|
@@ -7648,13 +7659,6 @@ module.exports = require("throttle-debounce");
|
|
|
7648
7659
|
|
|
7649
7660
|
/***/ }),
|
|
7650
7661
|
|
|
7651
|
-
/***/ "8493":
|
|
7652
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7653
|
-
|
|
7654
|
-
// extracted by mini-css-extract-plugin
|
|
7655
|
-
|
|
7656
|
-
/***/ }),
|
|
7657
|
-
|
|
7658
7662
|
/***/ "8535":
|
|
7659
7663
|
/***/ (function(module, exports) {
|
|
7660
7664
|
|
|
@@ -9081,17 +9085,6 @@ module.exports = require("core-js/modules/es.json.stringify.js");
|
|
|
9081
9085
|
|
|
9082
9086
|
module.exports = require("css-element-queries/src/ResizeSensor");
|
|
9083
9087
|
|
|
9084
|
-
/***/ }),
|
|
9085
|
-
|
|
9086
|
-
/***/ "b1da":
|
|
9087
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9088
|
-
|
|
9089
|
-
"use strict";
|
|
9090
|
-
/* 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_MultiFlatmapVuer_vue_vue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("3ec8");
|
|
9091
|
-
/* 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_MultiFlatmapVuer_vue_vue_type_style_index_0_id_0ad8a77b_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_MultiFlatmapVuer_vue_vue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
9092
|
-
/* unused harmony reexport * */
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
9088
|
/***/ }),
|
|
9096
9089
|
|
|
9097
9090
|
/***/ "b2d6":
|
|
@@ -9243,17 +9236,6 @@ exports.default = {
|
|
|
9243
9236
|
/* unused harmony reexport * */
|
|
9244
9237
|
|
|
9245
9238
|
|
|
9246
|
-
/***/ }),
|
|
9247
|
-
|
|
9248
|
-
/***/ "b9e5":
|
|
9249
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9250
|
-
|
|
9251
|
-
"use strict";
|
|
9252
|
-
/* 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_0f3b65f0_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1959");
|
|
9253
|
-
/* 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_0f3b65f0_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_0f3b65f0_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
9254
|
-
/* unused harmony reexport * */
|
|
9255
|
-
|
|
9256
|
-
|
|
9257
9239
|
/***/ }),
|
|
9258
9240
|
|
|
9259
9241
|
/***/ "be4f":
|
|
@@ -9837,6 +9819,17 @@ function isKorean(text) {
|
|
|
9837
9819
|
|
|
9838
9820
|
// extracted by mini-css-extract-plugin
|
|
9839
9821
|
|
|
9822
|
+
/***/ }),
|
|
9823
|
+
|
|
9824
|
+
/***/ "d5a7":
|
|
9825
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9826
|
+
|
|
9827
|
+
"use strict";
|
|
9828
|
+
/* 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_65c27825_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("2804");
|
|
9829
|
+
/* 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_65c27825_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_65c27825_prod_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
|
|
9830
|
+
/* unused harmony reexport * */
|
|
9831
|
+
|
|
9832
|
+
|
|
9840
9833
|
/***/ }),
|
|
9841
9834
|
|
|
9842
9835
|
/***/ "da6e":
|
|
@@ -9853,6 +9846,13 @@ module.exports = require("deepmerge");
|
|
|
9853
9846
|
|
|
9854
9847
|
/***/ }),
|
|
9855
9848
|
|
|
9849
|
+
/***/ "db06":
|
|
9850
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9851
|
+
|
|
9852
|
+
// extracted by mini-css-extract-plugin
|
|
9853
|
+
|
|
9854
|
+
/***/ }),
|
|
9855
|
+
|
|
9856
9856
|
/***/ "db0a":
|
|
9857
9857
|
/***/ (function(module, exports) {
|
|
9858
9858
|
|
|
@@ -13311,7 +13311,7 @@ if (typeof window !== 'undefined') {
|
|
|
13311
13311
|
// Indicate to webpack that this file can be concatenated
|
|
13312
13312
|
/* harmony default export */ var setPublicPath = (null);
|
|
13313
13313
|
|
|
13314
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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=
|
|
13314
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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=65c27825&scoped=true&
|
|
13315
13315
|
var render = function render() {
|
|
13316
13316
|
var _vm = this,
|
|
13317
13317
|
_c = _vm._self._c;
|
|
@@ -13346,7 +13346,7 @@ var render = function render() {
|
|
|
13346
13346
|
}, [_c('div', [_c('el-popover', {
|
|
13347
13347
|
ref: "warningPopover",
|
|
13348
13348
|
attrs: {
|
|
13349
|
-
"content": _vm.warningMessage,
|
|
13349
|
+
"content": _vm.isLegacy ? 'This is a legacy map, you may view the latest map instead.' : _vm.warningMessage,
|
|
13350
13350
|
"placement": "right",
|
|
13351
13351
|
"appendToBody": false,
|
|
13352
13352
|
"trigger": "manual",
|
|
@@ -13374,9 +13374,16 @@ var render = function render() {
|
|
|
13374
13374
|
return _vm.hideToolitip(6);
|
|
13375
13375
|
}
|
|
13376
13376
|
}
|
|
13377
|
-
}, [_c('span', {
|
|
13377
|
+
}, [_vm.isLegacy ? [_c('span', {
|
|
13378
13378
|
staticClass: "warning-text"
|
|
13379
|
-
}, [_vm._v("
|
|
13379
|
+
}, [_vm._v("Legacy Map")]), _c('div', {
|
|
13380
|
+
staticClass: "latest-map-text",
|
|
13381
|
+
on: {
|
|
13382
|
+
"click": _vm.viewLatestMap
|
|
13383
|
+
}
|
|
13384
|
+
}, [_vm._v("Click here for the latest map")])] : [_c('span', {
|
|
13385
|
+
staticClass: "warning-text"
|
|
13386
|
+
}, [_vm._v("Beta")])]], 2) : _vm._e()], 1), _vm.displayLatestChanges ? _c('el-popover', {
|
|
13380
13387
|
ref: "latestChangesPopover",
|
|
13381
13388
|
attrs: {
|
|
13382
13389
|
"content": _vm.latestChangesMessage,
|
|
@@ -13775,7 +13782,7 @@ var render = function render() {
|
|
|
13775
13782
|
};
|
|
13776
13783
|
var staticRenderFns = [];
|
|
13777
13784
|
|
|
13778
|
-
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=
|
|
13785
|
+
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=template&id=65c27825&scoped=true&
|
|
13779
13786
|
|
|
13780
13787
|
// EXTERNAL MODULE: external "core-js/modules/es.symbol.js"
|
|
13781
13788
|
var es_symbol_js_ = __webpack_require__("9b22");
|
|
@@ -14884,8 +14891,8 @@ var Tooltip_component = normalizeComponent(
|
|
|
14884
14891
|
// EXTERNAL MODULE: external "@abi-software/svg-sprite"
|
|
14885
14892
|
var svg_sprite_ = __webpack_require__("429c");
|
|
14886
14893
|
|
|
14887
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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/Legends.vue?vue&type=template&id=
|
|
14888
|
-
var
|
|
14894
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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/Legends.vue?vue&type=template&id=514dd6be&scoped=true&
|
|
14895
|
+
var Legendsvue_type_template_id_514dd6be_scoped_true_render = function render() {
|
|
14889
14896
|
var _vm = this,
|
|
14890
14897
|
_c = _vm._self._c;
|
|
14891
14898
|
return _c('div', {
|
|
@@ -14964,9 +14971,9 @@ var Legendsvue_type_template_id_5dafd4cc_scoped_true_render = function render()
|
|
|
14964
14971
|
}
|
|
14965
14972
|
}, [_vm._v("Nerve plexus")])])]);
|
|
14966
14973
|
};
|
|
14967
|
-
var
|
|
14974
|
+
var Legendsvue_type_template_id_514dd6be_scoped_true_staticRenderFns = [];
|
|
14968
14975
|
|
|
14969
|
-
// CONCATENATED MODULE: ./src/components/legends/Legends.vue?vue&type=template&id=
|
|
14976
|
+
// CONCATENATED MODULE: ./src/components/legends/Legends.vue?vue&type=template&id=514dd6be&scoped=true&
|
|
14970
14977
|
|
|
14971
14978
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/legends/Legends.vue?vue&type=script&lang=js&
|
|
14972
14979
|
/* harmony default export */ var Legendsvue_type_script_lang_js_ = ({
|
|
@@ -14974,8 +14981,8 @@ var Legendsvue_type_template_id_5dafd4cc_scoped_true_staticRenderFns = [];
|
|
|
14974
14981
|
});
|
|
14975
14982
|
// CONCATENATED MODULE: ./src/components/legends/Legends.vue?vue&type=script&lang=js&
|
|
14976
14983
|
/* harmony default export */ var legends_Legendsvue_type_script_lang_js_ = (Legendsvue_type_script_lang_js_);
|
|
14977
|
-
// EXTERNAL MODULE: ./src/components/legends/Legends.vue?vue&type=style&index=0&id=
|
|
14978
|
-
var
|
|
14984
|
+
// EXTERNAL MODULE: ./src/components/legends/Legends.vue?vue&type=style&index=0&id=514dd6be&prod&scoped=true&lang=scss&
|
|
14985
|
+
var Legendsvue_type_style_index_0_id_514dd6be_prod_scoped_true_lang_scss_ = __webpack_require__("318c");
|
|
14979
14986
|
|
|
14980
14987
|
// CONCATENATED MODULE: ./src/components/legends/Legends.vue
|
|
14981
14988
|
|
|
@@ -14988,11 +14995,11 @@ var Legendsvue_type_style_index_0_id_5dafd4cc_prod_scoped_true_lang_scss_ = __we
|
|
|
14988
14995
|
|
|
14989
14996
|
var Legends_component = normalizeComponent(
|
|
14990
14997
|
legends_Legendsvue_type_script_lang_js_,
|
|
14991
|
-
|
|
14992
|
-
|
|
14998
|
+
Legendsvue_type_template_id_514dd6be_scoped_true_render,
|
|
14999
|
+
Legendsvue_type_template_id_514dd6be_scoped_true_staticRenderFns,
|
|
14993
15000
|
false,
|
|
14994
15001
|
null,
|
|
14995
|
-
"
|
|
15002
|
+
"514dd6be",
|
|
14996
15003
|
null
|
|
14997
15004
|
|
|
14998
15005
|
)
|
|
@@ -15072,6 +15079,19 @@ var mapResize = function mapResize(map) {
|
|
|
15072
15079
|
this.mapImp = undefined;
|
|
15073
15080
|
},
|
|
15074
15081
|
methods: {
|
|
15082
|
+
viewLatestMap: function viewLatestMap() {
|
|
15083
|
+
var biologicalSex = this.biologicalSex ? this.biologicalSex : undefined;
|
|
15084
|
+
//Human requires special handling
|
|
15085
|
+
if (this.entry === "NCBITaxon:9606") {
|
|
15086
|
+
biologicalSex = "PATO:0000384";
|
|
15087
|
+
}
|
|
15088
|
+
var state = {
|
|
15089
|
+
entry: this.entry,
|
|
15090
|
+
biologicalSex: biologicalSex,
|
|
15091
|
+
viewport: this.mapImp.getState()
|
|
15092
|
+
};
|
|
15093
|
+
this.$emit("view-latest-map", state);
|
|
15094
|
+
},
|
|
15075
15095
|
backgroundChangeCallback: function backgroundChangeCallback(colour) {
|
|
15076
15096
|
this.currentBackground = colour;
|
|
15077
15097
|
if (this.mapImp) {
|
|
@@ -15410,13 +15430,20 @@ var mapResize = function mapResize(map) {
|
|
|
15410
15430
|
var identifier = {
|
|
15411
15431
|
taxon: this.entry
|
|
15412
15432
|
};
|
|
15413
|
-
|
|
15414
|
-
|
|
15415
|
-
if (state.
|
|
15416
|
-
identifier
|
|
15417
|
-
|
|
15418
|
-
|
|
15419
|
-
|
|
15433
|
+
//This now handle the uses of uuid when resuming states
|
|
15434
|
+
if (state) {
|
|
15435
|
+
if (state.uuid) {
|
|
15436
|
+
identifier = {
|
|
15437
|
+
uuid: state.uuid
|
|
15438
|
+
};
|
|
15439
|
+
} else if (state.entry) {
|
|
15440
|
+
identifier.taxon = state.entry;
|
|
15441
|
+
if (state.biologicalSex) {
|
|
15442
|
+
identifier["biologicalSex"] = state.biologicalSex;
|
|
15443
|
+
} else if (identifier.taxon === "NCBITaxon:9606") {
|
|
15444
|
+
//For backward compatibility
|
|
15445
|
+
identifier["biologicalSex"] = "PATO:0000384";
|
|
15446
|
+
}
|
|
15420
15447
|
}
|
|
15421
15448
|
} else {
|
|
15422
15449
|
// Set the bioloicalSex now if map is not resumed from
|
|
@@ -15447,7 +15474,10 @@ var mapResize = function mapResize(map) {
|
|
|
15447
15474
|
if (_this3._viewportToBeSet) _this3.mapImp.setState(_this3._viewportToBeSet);else if (state && state.viewport) _this3.mapImp.setState(state.viewport);
|
|
15448
15475
|
});
|
|
15449
15476
|
} else if (state) {
|
|
15450
|
-
if (this.entry == state.entry)
|
|
15477
|
+
if (this.entry == state.entry) {
|
|
15478
|
+
this._viewportToBeSet = state.viewport;
|
|
15479
|
+
if (this.mapImp && !this.loading) this.mapImp.setState(this._viewportToBeSet);
|
|
15480
|
+
}
|
|
15451
15481
|
}
|
|
15452
15482
|
},
|
|
15453
15483
|
showMinimap: function showMinimap(flag) {
|
|
@@ -15528,6 +15558,10 @@ var mapResize = function mapResize(map) {
|
|
|
15528
15558
|
type: String,
|
|
15529
15559
|
default: "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress."
|
|
15530
15560
|
},
|
|
15561
|
+
isLegacy: {
|
|
15562
|
+
type: Boolean,
|
|
15563
|
+
default: false
|
|
15564
|
+
},
|
|
15531
15565
|
displayLatestChanges: {
|
|
15532
15566
|
type: Boolean,
|
|
15533
15567
|
default: false
|
|
@@ -15620,8 +15654,8 @@ var mapResize = function mapResize(map) {
|
|
|
15620
15654
|
});
|
|
15621
15655
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue?vue&type=script&lang=js&
|
|
15622
15656
|
/* harmony default export */ var components_FlatmapVuervue_type_script_lang_js_ = (FlatmapVuervue_type_script_lang_js_);
|
|
15623
|
-
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=
|
|
15624
|
-
var
|
|
15657
|
+
// EXTERNAL MODULE: ./src/components/FlatmapVuer.vue?vue&type=style&index=0&id=65c27825&prod&scoped=true&lang=scss&
|
|
15658
|
+
var FlatmapVuervue_type_style_index_0_id_65c27825_prod_scoped_true_lang_scss_ = __webpack_require__("d5a7");
|
|
15625
15659
|
|
|
15626
15660
|
// CONCATENATED MODULE: ./src/components/FlatmapVuer.vue
|
|
15627
15661
|
|
|
@@ -15638,14 +15672,14 @@ var FlatmapVuer_component = normalizeComponent(
|
|
|
15638
15672
|
staticRenderFns,
|
|
15639
15673
|
false,
|
|
15640
15674
|
null,
|
|
15641
|
-
"
|
|
15675
|
+
"65c27825",
|
|
15642
15676
|
null
|
|
15643
15677
|
|
|
15644
15678
|
)
|
|
15645
15679
|
|
|
15646
15680
|
/* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
|
|
15647
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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=
|
|
15648
|
-
var
|
|
15681
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"52da7808-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./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=28f8b230&scoped=true&
|
|
15682
|
+
var MultiFlatmapVuervue_type_template_id_28f8b230_scoped_true_render = function render() {
|
|
15649
15683
|
var _vm = this,
|
|
15650
15684
|
_c = _vm._self._c;
|
|
15651
15685
|
return _c('div', {
|
|
@@ -15736,6 +15770,7 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
15736
15770
|
"warningMessage": _vm.warningMessage,
|
|
15737
15771
|
"displayLatestChanges": item.displayLatestChanges,
|
|
15738
15772
|
"latestChangesMessage": item.latestChangesMessage,
|
|
15773
|
+
"isLegacy": item.isLegacy,
|
|
15739
15774
|
"featureInfo": _vm.featureInfo,
|
|
15740
15775
|
"minZoom": _vm.minZoom,
|
|
15741
15776
|
"pathControls": _vm.pathControls,
|
|
@@ -15747,6 +15782,7 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
15747
15782
|
"sparcAPI": _vm.sparcAPI
|
|
15748
15783
|
},
|
|
15749
15784
|
on: {
|
|
15785
|
+
"view-latest-map": _vm.viewLatestMap,
|
|
15750
15786
|
"resource-selected": _vm.FlatmapSelected,
|
|
15751
15787
|
"ready": _vm.FlatmapReady,
|
|
15752
15788
|
"pan-zoom-callback": _vm.panZoomCallback
|
|
@@ -15754,9 +15790,9 @@ var MultiFlatmapVuervue_type_template_id_0ad8a77b_scoped_true_render = function
|
|
|
15754
15790
|
});
|
|
15755
15791
|
})], 2);
|
|
15756
15792
|
};
|
|
15757
|
-
var
|
|
15793
|
+
var MultiFlatmapVuervue_type_template_id_28f8b230_scoped_true_staticRenderFns = [];
|
|
15758
15794
|
|
|
15759
|
-
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=
|
|
15795
|
+
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=template&id=28f8b230&scoped=true&
|
|
15760
15796
|
|
|
15761
15797
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/theme-chalk/popover.css
|
|
15762
15798
|
var popover = __webpack_require__("06f1");
|
|
@@ -15802,6 +15838,7 @@ var es_object_keys_js_ = __webpack_require__("ea64");
|
|
|
15802
15838
|
|
|
15803
15839
|
|
|
15804
15840
|
|
|
15841
|
+
|
|
15805
15842
|
|
|
15806
15843
|
/* eslint-disable no-alert, no-console */
|
|
15807
15844
|
|
|
@@ -15815,6 +15852,13 @@ external_vue_default.a.use(lib_row_default.a);
|
|
|
15815
15852
|
external_vue_default.a.use(lib_option_default.a);
|
|
15816
15853
|
external_vue_default.a.use(lib_select_default.a);
|
|
15817
15854
|
external_vue_default.a.use(lib_popover_default.a);
|
|
15855
|
+
var TAXON_UUID = {
|
|
15856
|
+
"NCBITaxon:10114": "01fedbf9-d783-509c-a10c-827941ab13da",
|
|
15857
|
+
"NCBITaxon:9823": "a336ac04-24db-561f-a25f-1c994fe17410",
|
|
15858
|
+
"NCBITaxon:9606": "42ed6323-f645-5fbe-bada-9581819cf689",
|
|
15859
|
+
"NCBITaxon:10090": "25285fab-48a0-5620-a6a0-f9a0374837d5",
|
|
15860
|
+
"NCBITaxon:9685": "73060497-46a6-52bf-b975-cac511c127cb"
|
|
15861
|
+
};
|
|
15818
15862
|
/* harmony default export */ var MultiFlatmapVuervue_type_script_lang_js_ = ({
|
|
15819
15863
|
name: "MultiFlatmapVuer",
|
|
15820
15864
|
components: {
|
|
@@ -15831,37 +15875,43 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
15831
15875
|
initialise: function initialise() {
|
|
15832
15876
|
var _this2 = this;
|
|
15833
15877
|
return new Promise(function (resolve) {
|
|
15834
|
-
|
|
15835
|
-
|
|
15836
|
-
|
|
15837
|
-
_this2.
|
|
15838
|
-
|
|
15839
|
-
|
|
15840
|
-
|
|
15841
|
-
|
|
15842
|
-
|
|
15843
|
-
|
|
15878
|
+
if (_this2.requireInitialisation) {
|
|
15879
|
+
//It has not been initialised yet
|
|
15880
|
+
_this2.requireInitialisation = false;
|
|
15881
|
+
fetch(_this2.flatmapAPI).then(function (response) {
|
|
15882
|
+
return response.json();
|
|
15883
|
+
}).then(function (data) {
|
|
15884
|
+
//Check each key in the provided availableSpecies against the one
|
|
15885
|
+
//on the server, add them to the Select if the key is found
|
|
15886
|
+
Object.keys(_this2.availableSpecies).forEach(function (key) {
|
|
15887
|
+
for (var i = 0; i < data.length; i++) {
|
|
15888
|
+
if (_this2.availableSpecies[key].taxo === data[i].taxon) {
|
|
15889
|
+
if (_this2.availableSpecies[key].biologicalSex) {
|
|
15890
|
+
if (data[i].biologicalSex && data[i].biologicalSex === _this2.availableSpecies[key].biologicalSex) {
|
|
15891
|
+
_this2.$set(_this2.speciesList, key, _this2.availableSpecies[key]);
|
|
15892
|
+
break;
|
|
15893
|
+
}
|
|
15894
|
+
} else {
|
|
15895
|
+
_this2.$set(_this2.speciesList, key, _this2.availableSpecies[key]);
|
|
15844
15896
|
break;
|
|
15845
15897
|
}
|
|
15846
|
-
} else {
|
|
15847
|
-
_this2.speciesList[key] = _this2.availableSpecies[key];
|
|
15848
|
-
break;
|
|
15849
15898
|
}
|
|
15850
15899
|
}
|
|
15900
|
+
});
|
|
15901
|
+
if (!_this2.state) {
|
|
15902
|
+
//No state resuming, set the current flatmap to {this.initial}
|
|
15903
|
+
if (_this2.initial && _this2.speciesList[_this2.initial] !== undefined) {
|
|
15904
|
+
_this2.activeSpecies = _this2.initial;
|
|
15905
|
+
} else {
|
|
15906
|
+
_this2.activeSpecies = Object.keys(_this2.speciesList)[0];
|
|
15907
|
+
}
|
|
15908
|
+
external_vue_default.a.nextTick(function () {
|
|
15909
|
+
if (_this2.$refs[_this2.activeSpecies]) _this2.$refs[_this2.activeSpecies][0].createFlatmap();
|
|
15910
|
+
});
|
|
15851
15911
|
}
|
|
15852
15912
|
});
|
|
15853
|
-
|
|
15854
|
-
|
|
15855
|
-
_this2.activeSpecies = _this2.initial;
|
|
15856
|
-
} else {
|
|
15857
|
-
_this2.activeSpecies = Object.keys(_this2.speciesList)[0];
|
|
15858
|
-
}
|
|
15859
|
-
external_vue_default.a.nextTick(function () {
|
|
15860
|
-
if (_this2.$refs[_this2.activeSpecies]) _this2.$refs[_this2.activeSpecies][0].createFlatmap();
|
|
15861
|
-
});
|
|
15862
|
-
}
|
|
15863
|
-
resolve();
|
|
15864
|
-
});
|
|
15913
|
+
}
|
|
15914
|
+
resolve();
|
|
15865
15915
|
});
|
|
15866
15916
|
},
|
|
15867
15917
|
FlatmapSelected: function FlatmapSelected(resource) {
|
|
@@ -15891,17 +15941,102 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
15891
15941
|
var map = this.getCurrentFlatmap();
|
|
15892
15942
|
map.showMarkerPopup(featureId, node, options);
|
|
15893
15943
|
},
|
|
15894
|
-
flatmapChanged: function flatmapChanged(species) {
|
|
15944
|
+
flatmapChanged: function flatmapChanged(species, viewport) {
|
|
15895
15945
|
if (this.activeSpecies != species) this.activeSpecies = species;
|
|
15896
|
-
this.$refs[this.activeSpecies][0].createFlatmap();
|
|
15946
|
+
this.$refs[this.activeSpecies][0].createFlatmap(viewport);
|
|
15897
15947
|
this.$emit('flatmapChanged', this.activeSpecies);
|
|
15898
15948
|
},
|
|
15899
15949
|
/**
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
15903
|
-
|
|
15904
|
-
|
|
15950
|
+
* Function to switch to the latest existing map from
|
|
15951
|
+
* a legacy map of the same species.
|
|
15952
|
+
*
|
|
15953
|
+
* @private
|
|
15954
|
+
*/
|
|
15955
|
+
viewLatestMap: function viewLatestMap(state) {
|
|
15956
|
+
var keys = Object.keys(this.speciesList);
|
|
15957
|
+
for (var i = 0; i < keys.length; i++) {
|
|
15958
|
+
var species = this.speciesList[keys[i]];
|
|
15959
|
+
if (!species.isLegacy && species.taxo === state.entry && species.biologicalSex === state.biologicalSex) {
|
|
15960
|
+
this.flatmapChanged(keys[i], state);
|
|
15961
|
+
return;
|
|
15962
|
+
}
|
|
15963
|
+
}
|
|
15964
|
+
},
|
|
15965
|
+
/**
|
|
15966
|
+
* Create a legacy entry with the provided information
|
|
15967
|
+
*
|
|
15968
|
+
* @private
|
|
15969
|
+
*/
|
|
15970
|
+
createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
|
|
15971
|
+
if (uuid && taxo) {
|
|
15972
|
+
var name = "Legacy";
|
|
15973
|
+
if (state.species) {
|
|
15974
|
+
if (state.species.slice(0, 6) === "Legacy") name = state.species;else name = name + " ".concat(state.species);
|
|
15975
|
+
}
|
|
15976
|
+
this.$set(this.speciesList, name, {
|
|
15977
|
+
taxo: taxo,
|
|
15978
|
+
isLegacy: true,
|
|
15979
|
+
displayWarning: true
|
|
15980
|
+
});
|
|
15981
|
+
return {
|
|
15982
|
+
species: name,
|
|
15983
|
+
state: {
|
|
15984
|
+
entry: taxo,
|
|
15985
|
+
uuid: uuid,
|
|
15986
|
+
viewport: state.state.viewport
|
|
15987
|
+
}
|
|
15988
|
+
};
|
|
15989
|
+
}
|
|
15990
|
+
},
|
|
15991
|
+
/**
|
|
15992
|
+
* Function used to translate the legacy map state to one that can be used in current
|
|
15993
|
+
* flatmap if required. If it is a legacy, an Select entry will be added
|
|
15994
|
+
*
|
|
15995
|
+
* @private
|
|
15996
|
+
*/
|
|
15997
|
+
updateState: function updateState(state) {
|
|
15998
|
+
var _this3 = this;
|
|
15999
|
+
return new Promise(function (resolve) {
|
|
16000
|
+
if (state && state.state) {
|
|
16001
|
+
var mapState = state.state;
|
|
16002
|
+
//uuid is not in the state, this is a legacy map
|
|
16003
|
+
if (!mapState.uuid) {
|
|
16004
|
+
if (mapState.entry) {
|
|
16005
|
+
var uuid = mapState.entry in TAXON_UUID ? TAXON_UUID[mapState.entry] : undefined;
|
|
16006
|
+
var newState = _this3.createLegacyEntry(state, mapState.entry, uuid);
|
|
16007
|
+
resolve(newState ? newState : state);
|
|
16008
|
+
}
|
|
16009
|
+
} else if (mapState.entry) {
|
|
16010
|
+
//uuid is in the state but should be checked if it is the latest map
|
|
16011
|
+
//for that taxon
|
|
16012
|
+
return new Promise(function () {
|
|
16013
|
+
var mapManager = new (__webpack_require__("4979").MapManager)(_this3.flatmapAPI);
|
|
16014
|
+
//mapManager.findMap_ is an async function so we need to wrap this with a promise
|
|
16015
|
+
mapManager.findMap_({
|
|
16016
|
+
taxon: mapState.entry
|
|
16017
|
+
}).then(function (map) {
|
|
16018
|
+
if (map.uuid !== mapState.uuid) {
|
|
16019
|
+
return _this3.createLegacyEntry(state, mapState.entry, mapState.uuid);
|
|
16020
|
+
}
|
|
16021
|
+
}).then(function (newState) {
|
|
16022
|
+
resolve(newState ? newState : state);
|
|
16023
|
+
}).catch(function () {
|
|
16024
|
+
resolve(state);
|
|
16025
|
+
});
|
|
16026
|
+
});
|
|
16027
|
+
}
|
|
16028
|
+
//Create a new state and add the legacy map to the select
|
|
16029
|
+
}
|
|
16030
|
+
|
|
16031
|
+
resolve(state);
|
|
16032
|
+
});
|
|
16033
|
+
},
|
|
16034
|
+
/**
|
|
16035
|
+
* Function used for getting the current states of the scene. This exported states
|
|
16036
|
+
* can be imported using the importStates method.
|
|
16037
|
+
*
|
|
16038
|
+
* @public
|
|
16039
|
+
*/
|
|
15905
16040
|
getState: function getState() {
|
|
15906
16041
|
var state = {
|
|
15907
16042
|
species: this.activeSpecies,
|
|
@@ -15918,22 +16053,27 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
15918
16053
|
* @public
|
|
15919
16054
|
*/
|
|
15920
16055
|
setState: function setState(state) {
|
|
15921
|
-
var
|
|
16056
|
+
var _this4 = this;
|
|
15922
16057
|
if (state) {
|
|
15923
16058
|
this.initialise().then(function () {
|
|
15924
|
-
|
|
15925
|
-
|
|
15926
|
-
if (
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
|
|
15930
|
-
|
|
15931
|
-
|
|
16059
|
+
//Update state if required
|
|
16060
|
+
_this4.updateState(state).then(function (currentState) {
|
|
16061
|
+
if (currentState.species && currentState.species !== _this4.activeSpecies) {
|
|
16062
|
+
_this4.activeSpecies = currentState.species;
|
|
16063
|
+
if (currentState.state) {
|
|
16064
|
+
//Wait for next tick when the refs are ready for rendering
|
|
16065
|
+
_this4.$nextTick(function () {
|
|
16066
|
+
if (_this4.activeSpecies in _this4.$refs) {
|
|
16067
|
+
_this4.$refs[_this4.activeSpecies][0].createFlatmap(currentState.state);
|
|
16068
|
+
_this4.$emit('flatmapChanged', _this4.activeSpecies);
|
|
16069
|
+
}
|
|
16070
|
+
});
|
|
16071
|
+
}
|
|
16072
|
+
} else if (currentState.state) {
|
|
16073
|
+
var map = _this4.getCurrentFlatmap();
|
|
16074
|
+
map.setState(currentState.state);
|
|
15932
16075
|
}
|
|
15933
|
-
}
|
|
15934
|
-
var map = _this3.getCurrentFlatmap();
|
|
15935
|
-
map.setState(state.state);
|
|
15936
|
-
}
|
|
16076
|
+
});
|
|
15937
16077
|
});
|
|
15938
16078
|
}
|
|
15939
16079
|
},
|
|
@@ -15986,7 +16126,45 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
15986
16126
|
type: String,
|
|
15987
16127
|
default: "Beta feature - This map is based on the connectivity of a rat. New connectivity and species specificity will be added as the SPARC program progress."
|
|
15988
16128
|
},
|
|
15989
|
-
availableSpecies: {
|
|
16129
|
+
availableSpecies: {
|
|
16130
|
+
type: Object,
|
|
16131
|
+
default: function _default() {
|
|
16132
|
+
return {
|
|
16133
|
+
"Human Female": {
|
|
16134
|
+
taxo: "NCBITaxon:9606",
|
|
16135
|
+
biologicalSex: "PATO:0000383",
|
|
16136
|
+
iconClass: "mapicon-icon_human",
|
|
16137
|
+
displayWarning: true
|
|
16138
|
+
},
|
|
16139
|
+
"Human Male": {
|
|
16140
|
+
taxo: "NCBITaxon:9606",
|
|
16141
|
+
biologicalSex: "PATO:0000384",
|
|
16142
|
+
iconClass: "mapicon-icon_human",
|
|
16143
|
+
displayWarning: true
|
|
16144
|
+
},
|
|
16145
|
+
"Rat": {
|
|
16146
|
+
taxo: "NCBITaxon:10114",
|
|
16147
|
+
iconClass: "mapicon-icon_rat",
|
|
16148
|
+
displayLatestChanges: true
|
|
16149
|
+
},
|
|
16150
|
+
"Mouse": {
|
|
16151
|
+
taxo: "NCBITaxon:10090",
|
|
16152
|
+
iconClass: "mapicon-icon_mouse",
|
|
16153
|
+
displayWarning: true
|
|
16154
|
+
},
|
|
16155
|
+
"Pig": {
|
|
16156
|
+
taxo: "NCBITaxon:9823",
|
|
16157
|
+
iconClass: "mapicon-icon_pig",
|
|
16158
|
+
displayWarning: true
|
|
16159
|
+
},
|
|
16160
|
+
"Cat": {
|
|
16161
|
+
taxo: "NCBITaxon:9685",
|
|
16162
|
+
iconClass: "mapicon-icon_cat",
|
|
16163
|
+
displayWarning: true
|
|
16164
|
+
}
|
|
16165
|
+
};
|
|
16166
|
+
}
|
|
16167
|
+
},
|
|
15990
16168
|
/**
|
|
15991
16169
|
* State containing state of the flatmap.
|
|
15992
16170
|
*/
|
|
@@ -16010,7 +16188,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16010
16188
|
return {
|
|
16011
16189
|
activeSpecies: undefined,
|
|
16012
16190
|
appendToBody: false,
|
|
16013
|
-
speciesList: {}
|
|
16191
|
+
speciesList: {},
|
|
16192
|
+
requireInitialisation: true
|
|
16014
16193
|
};
|
|
16015
16194
|
},
|
|
16016
16195
|
watch: {
|
|
@@ -16025,8 +16204,8 @@ external_vue_default.a.use(lib_popover_default.a);
|
|
|
16025
16204
|
});
|
|
16026
16205
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=script&lang=js&
|
|
16027
16206
|
/* harmony default export */ var components_MultiFlatmapVuervue_type_script_lang_js_ = (MultiFlatmapVuervue_type_script_lang_js_);
|
|
16028
|
-
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=
|
|
16029
|
-
var
|
|
16207
|
+
// EXTERNAL MODULE: ./src/components/MultiFlatmapVuer.vue?vue&type=style&index=0&id=28f8b230&prod&scoped=true&lang=scss&
|
|
16208
|
+
var MultiFlatmapVuervue_type_style_index_0_id_28f8b230_prod_scoped_true_lang_scss_ = __webpack_require__("126f");
|
|
16030
16209
|
|
|
16031
16210
|
// CONCATENATED MODULE: ./src/components/MultiFlatmapVuer.vue
|
|
16032
16211
|
|
|
@@ -16039,11 +16218,11 @@ var MultiFlatmapVuervue_type_style_index_0_id_0ad8a77b_prod_scoped_true_lang_scs
|
|
|
16039
16218
|
|
|
16040
16219
|
var MultiFlatmapVuer_component = normalizeComponent(
|
|
16041
16220
|
components_MultiFlatmapVuervue_type_script_lang_js_,
|
|
16042
|
-
|
|
16043
|
-
|
|
16221
|
+
MultiFlatmapVuervue_type_template_id_28f8b230_scoped_true_render,
|
|
16222
|
+
MultiFlatmapVuervue_type_template_id_28f8b230_scoped_true_staticRenderFns,
|
|
16044
16223
|
false,
|
|
16045
16224
|
null,
|
|
16046
|
-
"
|
|
16225
|
+
"28f8b230",
|
|
16047
16226
|
null
|
|
16048
16227
|
|
|
16049
16228
|
)
|