@jbrowse/plugin-linear-comparative-view 2.18.0 → 3.0.1

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.
Files changed (153) hide show
  1. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  2. package/dist/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +36 -58
  3. package/dist/LGVSyntenyDisplay/components/util.d.ts +9 -6
  4. package/dist/LGVSyntenyDisplay/components/util.js +6 -12
  5. package/dist/LGVSyntenyDisplay/model.d.ts +21 -7
  6. package/dist/LGVSyntenyDisplay/model.js +19 -8
  7. package/dist/LinearComparativeView/components/Header.d.ts +1 -2
  8. package/dist/LinearComparativeView/components/Header.js +52 -81
  9. package/dist/LinearComparativeView/components/HeaderSearchBoxes.d.ts +1 -2
  10. package/dist/LinearComparativeView/components/HeaderSearchBoxes.js +2 -11
  11. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -2
  12. package/dist/LinearComparativeView/components/LinearComparativeRenderArea.js +13 -21
  13. package/dist/LinearComparativeView/components/LinearComparativeView.d.ts +1 -2
  14. package/dist/LinearComparativeView/components/LinearComparativeView.js +2 -5
  15. package/dist/LinearComparativeView/components/Rubberband.d.ts +1 -2
  16. package/dist/LinearComparativeView/components/Rubberband.js +20 -51
  17. package/dist/LinearComparativeView/components/VerticalGuide.d.ts +1 -2
  18. package/dist/LinearComparativeView/components/VerticalGuide.js +4 -8
  19. package/dist/LinearComparativeView/index.js +17 -7
  20. package/dist/LinearComparativeView/model.d.ts +32 -28
  21. package/dist/LinearComparativeView/model.js +37 -8
  22. package/dist/LinearReadVsRef/LinearReadVsRef.d.ts +1 -2
  23. package/dist/LinearReadVsRef/LinearReadVsRef.js +5 -36
  24. package/dist/LinearReadVsRef/index.js +17 -7
  25. package/dist/LinearSyntenyDisplay/afterAttach.js +6 -3
  26. package/dist/LinearSyntenyDisplay/components/Component.d.ts +1 -2
  27. package/dist/LinearSyntenyDisplay/components/Component.js +9 -32
  28. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -2
  29. package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +89 -84
  30. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -2
  31. package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +2 -5
  32. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  33. package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +2 -3
  34. package/dist/LinearSyntenyDisplay/index.js +17 -7
  35. package/dist/LinearSyntenyDisplay/model.js +17 -7
  36. package/dist/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -2
  37. package/dist/LinearSyntenyView/components/ExportSvgDialog.js +34 -73
  38. package/dist/LinearSyntenyView/components/Icons.d.ts +2 -3
  39. package/dist/LinearSyntenyView/components/Icons.js +3 -8
  40. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  41. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +130 -0
  42. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  43. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +39 -0
  44. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  45. package/dist/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +22 -0
  46. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -2
  47. package/dist/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +44 -143
  48. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  49. package/dist/LinearSyntenyView/components/ImportForm/doSubmit.js +43 -0
  50. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  51. package/dist/LinearSyntenyView/components/ImportForm/getAdapter.js +68 -0
  52. package/dist/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -2
  53. package/dist/LinearSyntenyView/components/LinearSyntenyView.js +20 -9
  54. package/dist/LinearSyntenyView/index.js +17 -7
  55. package/dist/LinearSyntenyView/model.d.ts +49 -30
  56. package/dist/LinearSyntenyView/model.js +57 -15
  57. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  58. package/dist/LinearSyntenyView/svgcomponents/SVGBackground.js +2 -5
  59. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +1 -2
  60. package/dist/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +2 -10
  61. package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +4 -16
  62. package/dist/LinearSyntenyView/types.d.ts +12 -0
  63. package/dist/LinearSyntenyView/types.js +2 -0
  64. package/dist/LinearSyntenyViewHelper/index.js +2 -2
  65. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  66. package/dist/SyntenyFeatureDetail/LinkToSyntenyView.js +87 -0
  67. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  68. package/dist/SyntenyFeatureDetail/SyntenyFeatureDetail.js +3 -79
  69. package/dist/SyntenyFeatureDetail/index.js +17 -7
  70. package/dist/SyntenyFeatureDetail/types.d.ts +9 -0
  71. package/dist/SyntenyFeatureDetail/types.js +2 -0
  72. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.d.ts +6 -5
  73. package/esm/LGVSyntenyDisplay/components/LaunchSyntenyViewDialog.js +35 -34
  74. package/esm/LGVSyntenyDisplay/components/util.d.ts +9 -6
  75. package/esm/LGVSyntenyDisplay/components/util.js +6 -12
  76. package/esm/LGVSyntenyDisplay/model.d.ts +21 -7
  77. package/esm/LGVSyntenyDisplay/model.js +2 -1
  78. package/esm/LinearComparativeView/components/Header.d.ts +1 -2
  79. package/esm/LinearComparativeView/components/Header.js +52 -58
  80. package/esm/LinearComparativeView/components/HeaderSearchBoxes.d.ts +1 -2
  81. package/esm/LinearComparativeView/components/HeaderSearchBoxes.js +2 -8
  82. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.d.ts +1 -2
  83. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +13 -18
  84. package/esm/LinearComparativeView/components/LinearComparativeView.d.ts +1 -2
  85. package/esm/LinearComparativeView/components/LinearComparativeView.js +2 -5
  86. package/esm/LinearComparativeView/components/Rubberband.d.ts +1 -2
  87. package/esm/LinearComparativeView/components/Rubberband.js +20 -28
  88. package/esm/LinearComparativeView/components/VerticalGuide.d.ts +1 -2
  89. package/esm/LinearComparativeView/components/VerticalGuide.js +4 -5
  90. package/esm/LinearComparativeView/model.d.ts +32 -28
  91. package/esm/LinearComparativeView/model.js +21 -2
  92. package/esm/LinearReadVsRef/LinearReadVsRef.d.ts +1 -2
  93. package/esm/LinearReadVsRef/LinearReadVsRef.js +5 -13
  94. package/esm/LinearSyntenyDisplay/afterAttach.js +6 -3
  95. package/esm/LinearSyntenyDisplay/components/Component.d.ts +1 -2
  96. package/esm/LinearSyntenyDisplay/components/Component.js +9 -9
  97. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.d.ts +1 -2
  98. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +72 -77
  99. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +1 -2
  100. package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +2 -2
  101. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -2
  102. package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +2 -3
  103. package/esm/LinearSyntenyView/components/ExportSvgDialog.d.ts +1 -2
  104. package/esm/LinearSyntenyView/components/ExportSvgDialog.js +34 -50
  105. package/esm/LinearSyntenyView/components/Icons.d.ts +2 -3
  106. package/esm/LinearSyntenyView/components/Icons.js +3 -5
  107. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +8 -0
  108. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +125 -0
  109. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.d.ts +8 -0
  110. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyPreConfigured.js +37 -0
  111. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.d.ts +7 -0
  112. package/esm/LinearSyntenyView/components/ImportForm/ImportSyntenyTrackSelectorArea.js +16 -0
  113. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.d.ts +1 -2
  114. package/esm/LinearSyntenyView/components/ImportForm/LinearSyntenyImportForm.js +45 -121
  115. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.d.ts +5 -0
  116. package/esm/LinearSyntenyView/components/ImportForm/doSubmit.js +40 -0
  117. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.d.ts +117 -0
  118. package/esm/LinearSyntenyView/components/ImportForm/getAdapter.js +65 -0
  119. package/esm/LinearSyntenyView/components/LinearSyntenyView.d.ts +1 -2
  120. package/esm/LinearSyntenyView/components/LinearSyntenyView.js +3 -2
  121. package/esm/LinearSyntenyView/model.d.ts +49 -30
  122. package/esm/LinearSyntenyView/model.js +41 -9
  123. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.d.ts +1 -2
  124. package/esm/LinearSyntenyView/svgcomponents/SVGBackground.js +2 -2
  125. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.d.ts +1 -2
  126. package/esm/LinearSyntenyView/svgcomponents/SVGLinearGenomeView.js +2 -7
  127. package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +4 -16
  128. package/esm/LinearSyntenyView/types.d.ts +12 -0
  129. package/esm/LinearSyntenyView/types.js +1 -0
  130. package/esm/LinearSyntenyViewHelper/index.js +2 -2
  131. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.d.ts +5 -0
  132. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +52 -0
  133. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.d.ts +2 -11
  134. package/esm/SyntenyFeatureDetail/SyntenyFeatureDetail.js +4 -57
  135. package/esm/SyntenyFeatureDetail/types.d.ts +9 -0
  136. package/esm/SyntenyFeatureDetail/types.js +1 -0
  137. package/package.json +11 -11
  138. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  139. package/dist/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -194
  140. package/dist/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  141. package/dist/LinearSyntenyView/components/ImportForm/Spacer.js +0 -10
  142. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  143. package/dist/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -57
  144. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  145. package/dist/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -52
  146. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.d.ts +0 -10
  147. package/esm/LinearSyntenyView/components/ImportForm/AddCustomTrack.js +0 -169
  148. package/esm/LinearSyntenyView/components/ImportForm/Spacer.d.ts +0 -2
  149. package/esm/LinearSyntenyView/components/ImportForm/Spacer.js +0 -4
  150. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.d.ts +0 -10
  151. package/esm/LinearSyntenyView/components/ImportForm/TrackSelector.js +0 -32
  152. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.d.ts +0 -14
  153. package/esm/LinearSyntenyView/components/ImportForm/TrackSelectorUtil.js +0 -23
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getAdapter = getAdapter;
4
+ function getAdapter({ radioOption, assembly1, assembly2, fileLocation, indexFileLocation, bed1Location, bed2Location, }) {
5
+ if (radioOption === '.paf') {
6
+ return {
7
+ type: 'PAFAdapter',
8
+ pafLocation: fileLocation,
9
+ queryAssembly: assembly1,
10
+ targetAssembly: assembly2,
11
+ };
12
+ }
13
+ else if (radioOption === '.out') {
14
+ return {
15
+ type: 'MashMapAdapter',
16
+ outLocation: fileLocation,
17
+ queryAssembly: assembly1,
18
+ targetAssembly: assembly2,
19
+ };
20
+ }
21
+ else if (radioOption === '.delta') {
22
+ return {
23
+ type: 'DeltaAdapter',
24
+ deltaLocation: fileLocation,
25
+ queryAssembly: assembly1,
26
+ targetAssembly: assembly2,
27
+ };
28
+ }
29
+ else if (radioOption === '.chain') {
30
+ return {
31
+ type: 'ChainAdapter',
32
+ chainLocation: fileLocation,
33
+ queryAssembly: assembly1,
34
+ targetAssembly: assembly2,
35
+ };
36
+ }
37
+ else if (radioOption === '.anchors') {
38
+ return {
39
+ type: 'MCScanAnchorsAdapter',
40
+ mcscanAnchorsLocation: fileLocation,
41
+ bed1Location,
42
+ bed2Location,
43
+ assemblyNames: [assembly1, assembly2],
44
+ };
45
+ }
46
+ else if (radioOption === '.anchors.simple') {
47
+ return {
48
+ type: 'MCScanSimpleAnchorsAdapter',
49
+ mcscanSimpleAnchorsLocation: fileLocation,
50
+ bed1Location,
51
+ bed2Location,
52
+ assemblyNames: [assembly1, assembly2],
53
+ };
54
+ }
55
+ else if (radioOption === '.pif.gz') {
56
+ return {
57
+ type: 'PairwiseIndexedPAFAdapter',
58
+ pifGzLocation: fileLocation,
59
+ index: {
60
+ location: indexFileLocation,
61
+ },
62
+ assemblyNames: [assembly1, assembly2],
63
+ };
64
+ }
65
+ else {
66
+ throw new Error(`Unknown to detect type ${radioOption} from filename (select radio button to clarify)`);
67
+ }
68
+ }
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  import type { LinearSyntenyViewModel } from '../model';
3
2
  type LSV = LinearSyntenyViewModel;
4
3
  declare const LinearSyntenyView: ({ model }: {
5
4
  model: LSV;
6
- }) => React.JSX.Element;
5
+ }) => import("react/jsx-runtime").JSX.Element;
7
6
  export default LinearSyntenyView;
@@ -15,22 +15,33 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
28
38
  Object.defineProperty(exports, "__esModule", { value: true });
29
- const react_1 = __importStar(require("react"));
39
+ const jsx_runtime_1 = require("react/jsx-runtime");
40
+ const react_1 = require("react");
30
41
  const mobx_react_1 = require("mobx-react");
31
42
  const LinearComparativeView_1 = __importDefault(require("../../LinearComparativeView/components/LinearComparativeView"));
32
43
  const LinearSyntenyImportForm = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./ImportForm/LinearSyntenyImportForm'))));
33
44
  const LinearSyntenyView = (0, mobx_react_1.observer)(function ({ model }) {
34
- return !model.initialized ? (react_1.default.createElement(LinearSyntenyImportForm, { model: model })) : (react_1.default.createElement(LinearComparativeView_1.default, { model: model }));
45
+ return !model.initialized ? ((0, jsx_runtime_1.jsx)(LinearSyntenyImportForm, { model: model })) : ((0, jsx_runtime_1.jsx)(LinearComparativeView_1.default, { model: model }));
35
46
  });
36
47
  exports.default = LinearSyntenyView;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -1,5 +1,6 @@
1
1
  import type React from 'react';
2
2
  import { Curves } from './components/Icons';
3
+ import type { ImportFormSyntenyTrack } from './types';
3
4
  import type PluginManager from '@jbrowse/core/PluginManager';
4
5
  import type { Instance } from 'mobx-state-tree';
5
6
  export interface ExportSvgOptions {
@@ -27,7 +28,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
27
28
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
28
29
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
29
30
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
30
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
31
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
32
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
31
33
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
32
34
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
33
35
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -61,7 +63,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
61
63
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
62
64
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
63
65
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
64
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
66
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
65
67
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
66
68
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
67
69
  }, {
@@ -82,8 +84,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
82
84
  trackRefs: Record<string, HTMLDivElement>;
83
85
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
84
86
  coarseTotalBp: number;
85
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
86
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
87
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
88
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
87
89
  } & {
88
90
  readonly trackLabelsSetting: any;
89
91
  readonly width: number;
@@ -130,12 +132,12 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
130
132
  setHideHeaderOverview(b: boolean): void;
131
133
  setHideNoTracksActive(b: boolean): void;
132
134
  setShowGridlines(b: boolean): void;
133
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
134
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
135
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
135
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
136
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
137
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
136
138
  scrollTo(offsetPx: number): number;
137
139
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
138
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
140
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
139
141
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
140
142
  setNewView(bpPerPx: number, offsetPx: number): void;
141
143
  horizontallyFlip(): void;
@@ -152,7 +154,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
152
154
  setShowCenterLine(b: boolean): void;
153
155
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
154
156
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
155
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
157
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
156
158
  start: number;
157
159
  end: number;
158
160
  type: string;
@@ -174,7 +176,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
174
176
  setDraggingTrackId(idx?: string): void;
175
177
  setScaleFactor(factor: number): void;
176
178
  clearView(): void;
177
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
179
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
178
180
  } & {
179
181
  slide: (viewWidths: number) => void;
180
182
  } & {
@@ -196,15 +198,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
196
198
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
197
199
  afterAttach(): void;
198
200
  } & {
199
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
201
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
200
202
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
201
203
  navToSearchString({ input, assembly, }: {
202
204
  input: string;
203
205
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
204
206
  }): Promise<void>;
205
207
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
206
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
207
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
208
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
209
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
208
210
  } & {
209
211
  rubberBandMenuItems(): import("@jbrowse/core/ui").MenuItem[];
210
212
  bpToPx({ refName, coord, regionNumber, }: {
@@ -259,7 +261,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
259
261
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
260
262
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
261
263
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
262
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
264
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
263
265
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
264
266
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
265
267
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -283,12 +285,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
283
285
  readonly refNames: string[][];
284
286
  readonly assemblyNames: string[];
285
287
  } & {
288
+ afterAttach(): void;
286
289
  beforeDestroy(): void;
287
290
  onSubviewAction(actionName: string, path: string, args?: unknown[]): void;
288
291
  setWidth(newWidth: number): void;
289
292
  setViews(views: import("mobx-state-tree").SnapshotIn<import("@jbrowse/plugin-linear-genome-view").LinearGenomeViewModel>[]): void;
290
293
  removeView(view: import("@jbrowse/plugin-linear-genome-view").LinearGenomeViewModel): void;
291
294
  setLevelHeight(newHeight: number, level?: number): number;
295
+ setLinkViews(arg: boolean): void;
292
296
  activateTrackSelector(level: number): import("@jbrowse/core/util").Widget;
293
297
  toggleTrack(trackId: string, level?: number): void;
294
298
  showTrack(trackId: string, level?: number, initialSnapshot?: {}): void;
@@ -306,8 +310,13 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
306
310
  } & {
307
311
  afterAttach(): void;
308
312
  } & {
309
- toggleCurves(): void;
310
- toggleCIGAR(): void;
313
+ importFormSyntenyTrackSelections: import("mobx").IObservableArray<ImportFormSyntenyTrack>;
314
+ } & {
315
+ importFormRemoveRow(idx: number): void;
316
+ clearImportFormSyntenyTracks(): void;
317
+ setImportFormSyntenyTrack(arg: number, val: ImportFormSyntenyTrack): void;
318
+ setDrawCurves(arg: boolean): void;
319
+ setDrawCIGAR(arg: boolean): void;
311
320
  showAllRegions(): void;
312
321
  } & {
313
322
  exportSvg(opts: ExportSvgOptions): Promise<void>;
@@ -332,8 +341,17 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
332
341
  label: string;
333
342
  type: string;
334
343
  checked: boolean;
344
+ icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
345
+ muiName: string;
346
+ };
335
347
  onClick: () => void;
348
+ description?: undefined;
349
+ } | {
350
+ label: string;
351
+ type: string;
352
+ checked: boolean;
336
353
  icon: typeof Curves;
354
+ onClick: () => void;
337
355
  description?: undefined;
338
356
  } | {
339
357
  label: string;
@@ -363,7 +381,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
363
381
  type: import("mobx-state-tree").ISimpleType<"LinearComparativeView">;
364
382
  trackSelectorType: import("mobx-state-tree").IType<string | undefined, string, string>;
365
383
  showIntraviewLinks: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
366
- interactToggled: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
384
+ linkViews: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
385
+ interactiveOverlay: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
367
386
  levels: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
368
387
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
369
388
  type: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -397,7 +416,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
397
416
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
398
417
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
399
418
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
400
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
419
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
401
420
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
402
421
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
403
422
  }, {
@@ -418,8 +437,8 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
418
437
  trackRefs: Record<string, HTMLDivElement>;
419
438
  coarseDynamicBlocks: import("@jbrowse/core/util/blockTypes").BaseBlock[];
420
439
  coarseTotalBp: number;
421
- leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
422
- rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset;
440
+ leftOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
441
+ rightOffset: undefined | import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset;
423
442
  } & {
424
443
  readonly trackLabelsSetting: any;
425
444
  readonly width: number;
@@ -466,12 +485,12 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
466
485
  setHideHeaderOverview(b: boolean): void;
467
486
  setHideNoTracksActive(b: boolean): void;
468
487
  setShowGridlines(b: boolean): void;
469
- addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
470
- setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType[]): void;
471
- removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType): void;
488
+ addToHighlights(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
489
+ setHighlight(highlight?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType[]): void;
490
+ removeHighlight(highlight: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType): void;
472
491
  scrollTo(offsetPx: number): number;
473
492
  zoomTo(bpPerPx: number, offset?: number, centerAtOffset?: boolean): number;
474
- setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
493
+ setOffsets(left?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, right?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
475
494
  setSearchResults(searchResults: import("@jbrowse/core/TextSearch/BaseResults").default[], searchQuery: string, assemblyName?: string): void;
476
495
  setNewView(bpPerPx: number, offsetPx: number): void;
477
496
  horizontallyFlip(): void;
@@ -488,7 +507,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
488
507
  setShowCenterLine(b: boolean): void;
489
508
  setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
490
509
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
491
- getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): {
510
+ getSelectedRegions(leftOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, rightOffset?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): {
492
511
  start: number;
493
512
  end: number;
494
513
  type: string;
@@ -510,7 +529,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
510
529
  setDraggingTrackId(idx?: string): void;
511
530
  setScaleFactor(factor: number): void;
512
531
  clearView(): void;
513
- exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions): Promise<void>;
532
+ exportSvg(opts?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").ExportSvgOptions): Promise<void>;
514
533
  } & {
515
534
  slide: (viewWidths: number) => void;
516
535
  } & {
@@ -532,15 +551,15 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
532
551
  setCoarseDynamicBlocks(blocks: import("@jbrowse/core/util/blockTypes").BlockSet): void;
533
552
  afterAttach(): void;
534
553
  } & {
535
- moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset): void;
554
+ moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").BpOffset): void;
536
555
  navToLocString(input: string, optAssemblyName?: string): Promise<void>;
537
556
  navToSearchString({ input, assembly, }: {
538
557
  input: string;
539
558
  assembly: import("@jbrowse/core/assemblyManager/assembly").Assembly;
540
559
  }): Promise<void>;
541
560
  navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string): Promise<void>;
542
- navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
543
- navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
561
+ navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation): void;
562
+ navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").NavLocation[]): void;
544
563
  } & {
545
564
  rubberBandMenuItems(): import("@jbrowse/core/ui").MenuItem[];
546
565
  bpToPx({ refName, coord, regionNumber, }: {
@@ -595,7 +614,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
595
614
  showCytobandsSetting: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
596
615
  trackLabels: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
597
616
  showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
598
- highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").HighlightType>>, [undefined]>;
617
+ highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType, import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView/types").HighlightType>>, [undefined]>;
599
618
  colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
600
619
  showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
601
620
  }>>, import("mobx-state-tree")._NotCustomized>>;
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  var __importDefault = (this && this.__importDefault) || function (mod) {
26
36
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
37
  };
@@ -30,6 +40,7 @@ exports.default = stateModelFactory;
30
40
  const react_1 = require("react");
31
41
  const util_1 = require("@jbrowse/core/util");
32
42
  const CropFree_1 = __importDefault(require("@mui/icons-material/CropFree"));
43
+ const Link_1 = __importDefault(require("@mui/icons-material/Link"));
33
44
  const PhotoCamera_1 = __importDefault(require("@mui/icons-material/PhotoCamera"));
34
45
  const Visibility_1 = __importDefault(require("@mui/icons-material/Visibility"));
35
46
  const file_saver_1 = require("file-saver");
@@ -44,13 +55,25 @@ function stateModelFactory(pluginManager) {
44
55
  type: mobx_state_tree_1.types.literal('LinearSyntenyView'),
45
56
  drawCIGAR: true,
46
57
  drawCurves: false,
58
+ }))
59
+ .volatile(() => ({
60
+ importFormSyntenyTrackSelections: mobx_1.observable.array(),
47
61
  }))
48
62
  .actions(self => ({
49
- toggleCurves() {
50
- self.drawCurves = !self.drawCurves;
63
+ importFormRemoveRow(idx) {
64
+ self.importFormSyntenyTrackSelections.splice(idx, 1);
65
+ },
66
+ clearImportFormSyntenyTracks() {
67
+ self.importFormSyntenyTrackSelections.clear();
51
68
  },
52
- toggleCIGAR() {
53
- self.drawCIGAR = !self.drawCIGAR;
69
+ setImportFormSyntenyTrack(arg, val) {
70
+ self.importFormSyntenyTrackSelections[arg] = val;
71
+ },
72
+ setDrawCurves(arg) {
73
+ self.drawCurves = arg;
74
+ },
75
+ setDrawCIGAR(arg) {
76
+ self.drawCIGAR = arg;
54
77
  },
55
78
  showAllRegions() {
56
79
  (0, mobx_1.transaction)(() => {
@@ -89,17 +112,30 @@ function stateModelFactory(pluginManager) {
89
112
  },
90
113
  {
91
114
  label: 'Draw CIGAR',
92
- onClick: self.toggleCIGAR,
115
+ onClick: () => {
116
+ self.setDrawCIGAR(!self.drawCIGAR);
117
+ },
93
118
  checked: self.drawCIGAR,
94
119
  type: 'checkbox',
95
120
  description: 'Draws per-base CIGAR level alignments',
96
121
  },
122
+ {
123
+ label: 'Link views',
124
+ type: 'checkbox',
125
+ checked: self.linkViews,
126
+ icon: Link_1.default,
127
+ onClick: () => {
128
+ self.setLinkViews(!self.linkViews);
129
+ },
130
+ },
97
131
  {
98
132
  label: 'Use curved lines',
99
133
  type: 'checkbox',
100
134
  checked: self.drawCurves,
101
- onClick: self.toggleCurves,
102
135
  icon: Icons_1.Curves,
136
+ onClick: () => {
137
+ self.setDrawCurves(!self.drawCurves);
138
+ },
103
139
  },
104
140
  {
105
141
  label: 'Export SVG',
@@ -107,7 +143,10 @@ function stateModelFactory(pluginManager) {
107
143
  onClick: () => {
108
144
  (0, util_1.getSession)(self).queueDialog(handleClose => [
109
145
  ExportSvgDialog,
110
- { model: self, handleClose },
146
+ {
147
+ model: self,
148
+ handleClose,
149
+ },
111
150
  ]);
112
151
  },
113
152
  },
@@ -122,7 +161,10 @@ function stateModelFactory(pluginManager) {
122
161
  onClick: () => {
123
162
  (0, util_1.getSession)(self).queueDialog(handleClose => [
124
163
  ExportSvgDialog,
125
- { model: self, handleClose },
164
+ {
165
+ model: self,
166
+ handleClose,
167
+ },
126
168
  ]);
127
169
  },
128
170
  },
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  export default function SVGBackground({ width, height, shift, }: {
3
2
  width: number;
4
3
  height: number;
5
4
  shift: number;
6
- }): React.JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.default = SVGBackground;
7
- const react_1 = __importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
5
  const util_1 = require("@jbrowse/core/util");
9
6
  const material_1 = require("@mui/material");
10
7
  function SVGBackground({ width, height, shift, }) {
11
8
  const theme = (0, material_1.useTheme)();
12
- return (react_1.default.createElement("rect", { width: width + shift * 2, height: height, fill: (0, util_1.stripAlpha)(theme.palette.background.default) }));
9
+ return ((0, jsx_runtime_1.jsx)("rect", { width: width + shift * 2, height: height, fill: (0, util_1.stripAlpha)(theme.palette.background.default) }));
13
10
  }
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import type { LinearGenomeViewModel } from '@jbrowse/plugin-linear-genome-view';
3
2
  export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHeight, trackLabels, view, displayResults, rulerHeight, shift, }: {
4
3
  textHeight: number;
@@ -9,4 +8,4 @@ export default function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHe
9
8
  displayResults: any;
10
9
  rulerHeight: number;
11
10
  shift: number;
12
- }): React.JSX.Element;
11
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,19 +1,11 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
2
  Object.defineProperty(exports, "__esModule", { value: true });
6
3
  exports.default = SVGLinearGenomeView;
7
- const react_1 = __importDefault(require("react"));
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
5
  const util_1 = require("@jbrowse/core/util");
9
6
  const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
10
7
  const material_1 = require("@mui/material");
11
8
  function SVGLinearGenomeView({ trackLabelOffset, fontSize, textHeight, trackLabels, view, displayResults, rulerHeight, shift, }) {
12
9
  const theme = (0, material_1.useTheme)();
13
- return (react_1.default.createElement("g", { transform: `translate(${shift} ${fontSize})` },
14
- react_1.default.createElement("g", { transform: `translate(${trackLabelOffset})` },
15
- react_1.default.createElement("text", { x: 0, fontSize: fontSize, ...(0, util_1.getFillProps)(theme.palette.text.primary) }, view.assemblyNames.join(', ')),
16
- react_1.default.createElement(plugin_linear_genome_view_1.SVGRuler, { model: displayResults.view, fontSize: fontSize })),
17
- react_1.default.createElement("g", { transform: `translate(0 ${rulerHeight + fontSize})` },
18
- react_1.default.createElement(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults.view, displayResults: displayResults.data, trackLabelOffset: trackLabelOffset }))));
10
+ return ((0, jsx_runtime_1.jsxs)("g", { transform: `translate(${shift} ${fontSize})`, children: [(0, jsx_runtime_1.jsxs)("g", { transform: `translate(${trackLabelOffset})`, children: [(0, jsx_runtime_1.jsx)("text", { x: 0, fontSize: fontSize, ...(0, util_1.getFillProps)(theme.palette.text.primary), children: view.assemblyNames.join(', ') }), (0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SVGRuler, { model: displayResults.view, fontSize: fontSize })] }), (0, jsx_runtime_1.jsx)("g", { transform: `translate(0 ${rulerHeight + fontSize})`, children: (0, jsx_runtime_1.jsx)(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults.view, displayResults: displayResults.data, trackLabelOffset: trackLabelOffset }) })] }));
19
11
  }