@jbrowse/plugin-dotplot-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.
@@ -60,7 +60,7 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
60
60
  width: '100%',
61
61
  gridRow: '1/2',
62
62
  gridColumn: '2/2',
63
- zIndex: 100,
63
+ zIndex: 100, // needs to be below controls
64
64
  '& path': {
65
65
  cursor: 'crosshair',
66
66
  fill: 'none',
@@ -46,7 +46,7 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
46
46
  },
47
47
  }));
48
48
  function TrackSelector({ setSessionTrackData, setShowTrackId, sessionTrackData, assembly1, assembly2, model, }) {
49
- const [choice, setChoice] = (0, react_1.useState)('none');
49
+ const [choice, setChoice] = (0, react_1.useState)('tracklist');
50
50
  (0, react_1.useEffect)(() => {
51
51
  if (choice === 'none') {
52
52
  setSessionTrackData(undefined);
@@ -590,7 +590,7 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
590
590
  /**
591
591
  * #action
592
592
  */
593
- toggleTrack(trackId: string): void;
593
+ toggleTrack(trackId: string): boolean;
594
594
  /**
595
595
  * #action
596
596
  */
@@ -378,7 +378,9 @@ function stateModelFactory(pm) {
378
378
  const hiddenCount = this.hideTrack(trackId);
379
379
  if (!hiddenCount) {
380
380
  this.showTrack(trackId);
381
+ return true;
381
382
  }
383
+ return false;
382
384
  },
383
385
  /**
384
386
  * #action
@@ -32,7 +32,7 @@ const useStyles = makeStyles()(theme => ({
32
32
  width: '100%',
33
33
  gridRow: '1/2',
34
34
  gridColumn: '2/2',
35
- zIndex: 100,
35
+ zIndex: 100, // needs to be below controls
36
36
  '& path': {
37
37
  cursor: 'crosshair',
38
38
  fill: 'none',
@@ -18,7 +18,7 @@ const useStyles = makeStyles()(theme => ({
18
18
  },
19
19
  }));
20
20
  function TrackSelector({ setSessionTrackData, setShowTrackId, sessionTrackData, assembly1, assembly2, model, }) {
21
- const [choice, setChoice] = useState('none');
21
+ const [choice, setChoice] = useState('tracklist');
22
22
  useEffect(() => {
23
23
  if (choice === 'none') {
24
24
  setSessionTrackData(undefined);
@@ -590,7 +590,7 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
590
590
  /**
591
591
  * #action
592
592
  */
593
- toggleTrack(trackId: string): void;
593
+ toggleTrack(trackId: string): boolean;
594
594
  /**
595
595
  * #action
596
596
  */
@@ -349,7 +349,9 @@ export default function stateModelFactory(pm) {
349
349
  const hiddenCount = this.hideTrack(trackId);
350
350
  if (!hiddenCount) {
351
351
  this.showTrack(trackId);
352
+ return true;
352
353
  }
354
+ return false;
353
355
  },
354
356
  /**
355
357
  * #action
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-dotplot-view",
3
- "version": "2.8.0",
3
+ "version": "2.9.0",
4
4
  "description": "JBrowse 2 dotplot view",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -64,5 +64,5 @@
64
64
  "publishConfig": {
65
65
  "access": "public"
66
66
  },
67
- "gitHead": "ee8c2bdc8bd4f1a70b1eefda984f04a2830d9ca0"
67
+ "gitHead": "a50b6f67cf8c8f3c65a7b8cd858de2fcca1f2909"
68
68
  }