@abi-software/flatmapvuer 0.4.2 → 0.4.4

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.
@@ -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":"05548760-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=d6b2de28&scoped=true&
13381
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed27aeb6-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;
@@ -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":"05548760-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/Tooltip.vue?vue&type=template&id=4ffcf7c8&scoped=true&
14425
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed27aeb6-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":"05548760-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/ExternalResourceCard.vue?vue&type=template&id=14172b61&scoped=true&
14618
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed27aeb6-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":"05548760-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/SelectionsGroup.vue?vue&type=template&id=404813f2&scoped=true&
14982
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed27aeb6-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":"05548760-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/SvgLegends.vue?vue&type=template&id=3d3218c8&scoped=true&
15255
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed27aeb6-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: eventData.feature.hyperlinks ? eventData.feature.hyperlinks : this.urls.map(function (url) {
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) {
@@ -15946,8 +15951,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
15946
15951
  toggleDrawer: function toggleDrawer() {
15947
15952
  this.drawerOpen = !this.drawerOpen;
15948
15953
  },
15949
- /**
15950
- * Function to toggle colour/greyscale of organs.
15954
+ /**
15955
+ * Function to toggle colour/greyscale of organs.
15951
15956
  */
15952
15957
  setColour: function setColour(flag) {
15953
15958
  this.colourRadio = flag;
@@ -15958,8 +15963,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
15958
15963
  });
15959
15964
  }
15960
15965
  },
15961
- /**
15962
- * Function to toggle outlines f organs.
15966
+ /**
15967
+ * Function to toggle outlines f organs.
15963
15968
  */
15964
15969
  setOutlines: function setOutlines(flag) {
15965
15970
  this.outlineRadio = flag;
@@ -15970,9 +15975,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
15970
15975
  });
15971
15976
  }
15972
15977
  },
15973
- /**
15974
- * Function to toggle paths to default.
15975
- * 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.
15976
15981
  */
15977
15982
  resetView: function resetView() {
15978
15983
  if (this.mapImp) {
@@ -15994,18 +15999,18 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
15994
15999
  }
15995
16000
  }
15996
16001
  },
15997
- /**
15998
- * Function to zoom in.
15999
- * Also called when the associated button is pressed.
16002
+ /**
16003
+ * Function to zoom in.
16004
+ * Also called when the associated button is pressed.
16000
16005
  */
16001
16006
  zoomIn: function zoomIn() {
16002
16007
  if (this.mapImp) {
16003
16008
  this.mapImp.zoomIn();
16004
16009
  }
16005
16010
  },
16006
- /**
16007
- * Function to zoom out.
16008
- * Also called when the associated button is pressed.
16011
+ /**
16012
+ * Function to zoom out.
16013
+ * Also called when the associated button is pressed.
16009
16014
  */
16010
16015
  zoomOut: function zoomOut() {
16011
16016
  if (this.mapImp) {
@@ -16421,9 +16426,9 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
16421
16426
  showPathwaysDrawer: function showPathwaysDrawer(flag) {
16422
16427
  this.drawerOpen = flag;
16423
16428
  },
16424
- /**
16425
- * Function to display features with annotation matching the provided term,
16426
- * 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.
16427
16432
  */
16428
16433
  searchAndShowResult: function searchAndShowResult(term, displayLabel) {
16429
16434
  if (this.mapImp) {
@@ -16447,8 +16452,8 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
16447
16452
  }
16448
16453
  return false;
16449
16454
  },
16450
- /**
16451
- * Get the list of suggested terms
16455
+ /**
16456
+ * Get the list of suggested terms
16452
16457
  */
16453
16458
  searchSuggestions: function searchSuggestions(term) {
16454
16459
  if (this.mapImp) return this.mapImp.search(term);
@@ -16513,15 +16518,15 @@ var createUnfilledTooltipData = function createUnfilledTooltipData() {
16513
16518
  type: String,
16514
16519
  default: "Search now provide suggested terms. Add new legends. New tilesets. New female map. Improve upstream downstream information."
16515
16520
  },
16516
- /**
16517
- * State containing state of the flatmap.
16521
+ /**
16522
+ * State containing state of the flatmap.
16518
16523
  */
16519
16524
  state: {
16520
16525
  type: Object,
16521
16526
  default: undefined
16522
16527
  },
16523
- /**
16524
- * Specify the endpoint of the flatmap server.
16528
+ /**
16529
+ * Specify the endpoint of the flatmap server.
16525
16530
  */
16526
16531
  flatmapAPI: {
16527
16532
  type: String,
@@ -16657,7 +16662,7 @@ var FlatmapVuer_component = normalizeComponent(
16657
16662
  )
16658
16663
 
16659
16664
  /* harmony default export */ var FlatmapVuer = (FlatmapVuer_component.exports);
16660
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"05548760-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=0732c3a0&scoped=true&
16665
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"ed27aeb6-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&
16661
16666
  var MultiFlatmapVuervue_type_template_id_0732c3a0_scoped_true_render = function render() {
16662
16667
  var _vm = this,
16663
16668
  _c = _vm._self._c;
@@ -16958,11 +16963,11 @@ var TAXON_UUID = {
16958
16963
  }
16959
16964
  }
16960
16965
  },
16961
- /**
16962
- * Function to switch to the latest existing map from
16963
- * a legacy map of the same species.
16964
- *
16965
- * @private
16966
+ /**
16967
+ * Function to switch to the latest existing map from
16968
+ * a legacy map of the same species.
16969
+ *
16970
+ * @private
16966
16971
  */
16967
16972
  viewLatestMap: function viewLatestMap(state) {
16968
16973
  var keys = Object.keys(this.speciesList);
@@ -16974,10 +16979,10 @@ var TAXON_UUID = {
16974
16979
  }
16975
16980
  }
16976
16981
  },
16977
- /**
16978
- * Create a legacy entry with the provided information
16979
- *
16980
- * @private
16982
+ /**
16983
+ * Create a legacy entry with the provided information
16984
+ *
16985
+ * @private
16981
16986
  */
16982
16987
  createLegacyEntry: function createLegacyEntry(state, taxo, uuid) {
16983
16988
  if (uuid && taxo) {
@@ -17001,11 +17006,11 @@ var TAXON_UUID = {
17001
17006
  };
17002
17007
  }
17003
17008
  },
17004
- /**
17005
- * Function used to translate the legacy map state to one that can be used in current
17006
- * flatmap if required. If it is a legacy, an Select entry will be added
17007
- *
17008
- * @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
17009
17014
  */
17010
17015
  updateState: function updateState(state) {
17011
17016
  var _this4 = this;
@@ -17046,11 +17051,11 @@ var TAXON_UUID = {
17046
17051
  resolve(state);
17047
17052
  });
17048
17053
  },
17049
- /**
17050
- * Function used for getting the current states of the scene. This exported states
17051
- * can be imported using the importStates method.
17052
- *
17053
- * @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
17054
17059
  */
17055
17060
  getState: function getState() {
17056
17061
  var state = {
@@ -17061,11 +17066,11 @@ var TAXON_UUID = {
17061
17066
  state.state = map.getState();
17062
17067
  return state;
17063
17068
  },
17064
- /**
17065
- * Function used for importing the states of the scene. This exported states
17066
- * can be imported using the read states method.
17067
- *
17068
- * @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
17069
17074
  */
17070
17075
  setState: function setState(state) {
17071
17076
  var _this5 = this;
@@ -17108,9 +17113,9 @@ var TAXON_UUID = {
17108
17113
  type: Boolean,
17109
17114
  default: false
17110
17115
  },
17111
- /**
17112
- * Initial species for the flatmap.
17113
- * 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.
17114
17119
  */
17115
17120
  initial: {
17116
17121
  type: String,
@@ -17171,15 +17176,15 @@ var TAXON_UUID = {
17171
17176
  };
17172
17177
  }
17173
17178
  },
17174
- /**
17175
- * State containing state of the flatmap.
17179
+ /**
17180
+ * State containing state of the flatmap.
17176
17181
  */
17177
17182
  state: {
17178
17183
  type: Object,
17179
17184
  default: undefined
17180
17185
  },
17181
- /**
17182
- * Specify the endpoint of the flatmap server.
17186
+ /**
17187
+ * Specify the endpoint of the flatmap server.
17183
17188
  */
17184
17189
  flatmapAPI: {
17185
17190
  type: String,