@jbrowse/plugin-circular-view 2.8.0 → 2.9.0

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.
@@ -219,7 +219,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
219
219
  /**
220
220
  * #action
221
221
  */
222
- toggleTrack(trackId: string): void;
222
+ toggleTrack(trackId: string): boolean;
223
223
  /**
224
224
  * #action
225
225
  */
@@ -455,12 +455,12 @@ function stateModelFactory(pluginManager) {
455
455
  * #action
456
456
  */
457
457
  toggleTrack(trackId) {
458
- // if we have any tracks with that configuration, turn them off
459
458
  const hiddenCount = this.hideTrack(trackId);
460
- // if none had that configuration, turn one on
461
459
  if (!hiddenCount) {
462
460
  this.showTrack(trackId);
461
+ return true;
463
462
  }
463
+ return false;
464
464
  },
465
465
  /**
466
466
  * #action
@@ -219,7 +219,7 @@ declare function stateModelFactory(pluginManager: PluginManager): import("mobx-s
219
219
  /**
220
220
  * #action
221
221
  */
222
- toggleTrack(trackId: string): void;
222
+ toggleTrack(trackId: string): boolean;
223
223
  /**
224
224
  * #action
225
225
  */
@@ -427,12 +427,12 @@ function stateModelFactory(pluginManager) {
427
427
  * #action
428
428
  */
429
429
  toggleTrack(trackId) {
430
- // if we have any tracks with that configuration, turn them off
431
430
  const hiddenCount = this.hideTrack(trackId);
432
- // if none had that configuration, turn one on
433
431
  if (!hiddenCount) {
434
432
  this.showTrack(trackId);
433
+ return true;
435
434
  }
435
+ return false;
436
436
  },
437
437
  /**
438
438
  * #action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-circular-view",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "JBrowse 2 circular view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -57,5 +57,5 @@
57
57
  "distModule": "esm/index.js",
58
58
  "srcModule": "src/index.ts",
59
59
  "module": "esm/index.js",
60
- "gitHead": "ee8c2bdc8bd4f1a70b1eefda984f04a2830d9ca0"
60
+ "gitHead": "a50b6f67cf8c8f3c65a7b8cd858de2fcca1f2909"
61
61
  }