@abi-software/flatmapvuer 0.4.5 → 0.4.6

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/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/flatmapvuer",
3
- "version": "0.4.5",
3
+ "version": "0.4.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/flatmapvuer.common.js",
6
6
  "files": [
@@ -607,16 +607,16 @@ export default {
607
607
  },
608
608
  showToolitip: function(tooltipNumber) {
609
609
  if (!this.inHelp) {
610
- clearTimeout(this.tooltipWait);
611
- this.tooltipWait = setTimeout(() => {
610
+ clearTimeout(this.tooltipWait[tooltipNumber]);
611
+ this.tooltipWait[tooltipNumber] = setTimeout(() => {
612
612
  this.hoverVisibilities[tooltipNumber].value = true;
613
613
  }, 500);
614
614
  }
615
615
  },
616
616
  hideToolitip: function(tooltipNumber) {
617
617
  if (!this.inHelp) {
618
- clearTimeout(this.tooltipWait);
619
- this.tooltipWait = setTimeout(() => {
618
+ clearTimeout(this.tooltipWait[tooltipNumber]);
619
+ this.tooltipWait[tooltipNumber] = setTimeout(() => {
620
620
  this.hoverVisibilities[tooltipNumber].value = false;
621
621
  }, 500);
622
622
  }
@@ -1017,6 +1017,8 @@ export default {
1017
1017
  },
1018
1018
  mounted: function() {
1019
1019
  const flatmap = require("@abi-software/flatmap-viewer");
1020
+ this.tooltipWait = [];
1021
+ this.tooltipWait.length = this.hoverVisibilities.length;
1020
1022
  this.mapManager = new flatmap.MapManager(this.flatmapAPI);
1021
1023
  this.flatmapQueries = new FlatmapQueries();
1022
1024
  this.flatmapQueries.initialise(this.sparcAPI, this.flatmapAPI);