@abi-software/map-utilities 1.1.3-beta.7 → 1.1.3-beta.8

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.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/map-utilities",
3
- "version": "1.1.3-beta.7",
3
+ "version": "1.1.3-beta.8",
4
4
  "files": [
5
5
  "dist/*",
6
6
  "src/*",
@@ -353,8 +353,12 @@ export default {
353
353
  this.zoomLockLabel = this.zoomEnabled ? ZOOM_UNLOCK_LABEL : ZOOM_LOCK_LABEL;
354
354
  this.connectivityGraph.enableZoom(!this.zoomEnabled);
355
355
  },
356
- updateErrorMessage: function (message) {
357
- this.errorMessage = message;
356
+ showErrorMessage: function (errorMessage) {
357
+ this.errorMessage = errorMessage;
358
+ // Show error for 3 seconds
359
+ setTimeout(() => {
360
+ this.errorMessage = '';
361
+ }, 3000);
358
362
  },
359
363
  },
360
364
  };
@@ -226,7 +226,6 @@ class CytoscapeGraph extends EventTarget
226
226
  }).on('mouseover', 'node', this.overNode.bind(this))
227
227
  .on('mouseout', 'node', this.exitNode.bind(this))
228
228
  .on('position', 'node', this.moveNode.bind(this))
229
- .on('tap', 'node', this.tapNode.bind(this))
230
229
  .on('tap', this.tapNode.bind(this))
231
230
 
232
231
  this.tooltip = document.createElement('div')