@jbrowse/plugin-dotplot-view 2.17.0 → 3.0.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.
Files changed (173) hide show
  1. package/dist/ComparativeRenderer/index.d.ts +3 -8
  2. package/dist/ComparativeRenderer/index.js +3 -8
  3. package/dist/DotplotDisplay/components/DotplotDisplay.d.ts +2 -3
  4. package/dist/DotplotDisplay/components/DotplotDisplay.js +7 -12
  5. package/dist/DotplotDisplay/index.d.ts +1 -7
  6. package/dist/DotplotDisplay/index.js +2 -12
  7. package/dist/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
  8. package/dist/DotplotDisplay/renderDotplotBlock.js +3 -9
  9. package/dist/DotplotDisplay/stateModelFactory.d.ts +8 -45
  10. package/dist/DotplotDisplay/stateModelFactory.js +57 -100
  11. package/dist/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
  12. package/dist/DotplotReadVsRef/DotplotReadVsRef.js +13 -14
  13. package/dist/DotplotReadVsRef/index.d.ts +1 -1
  14. package/dist/DotplotReadVsRef/index.js +0 -2
  15. package/dist/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
  16. package/dist/DotplotRenderer/ComparativeRenderRpc.js +3 -8
  17. package/dist/DotplotRenderer/DotplotRenderer.d.ts +8 -7
  18. package/dist/DotplotRenderer/DotplotRenderer.js +18 -9
  19. package/dist/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
  20. package/dist/DotplotRenderer/components/DotplotRendering.js +2 -5
  21. package/dist/DotplotRenderer/configSchema.d.ts +0 -21
  22. package/dist/DotplotRenderer/configSchema.js +2 -27
  23. package/dist/DotplotRenderer/drawDotplot.d.ts +3 -3
  24. package/dist/DotplotRenderer/drawDotplot.js +3 -6
  25. package/dist/DotplotRenderer/index.d.ts +1 -1
  26. package/dist/DotplotRenderer/index.js +1 -1
  27. package/dist/DotplotView/1dview.d.ts +2 -77
  28. package/dist/DotplotView/1dview.js +4 -33
  29. package/dist/DotplotView/components/Axes.d.ts +5 -6
  30. package/dist/DotplotView/components/Axes.js +26 -40
  31. package/dist/DotplotView/components/CursorIcon.d.ts +3 -4
  32. package/dist/DotplotView/components/CursorIcon.js +3 -5
  33. package/dist/DotplotView/components/DotplotControls.d.ts +2 -3
  34. package/dist/DotplotView/components/DotplotControls.js +94 -97
  35. package/dist/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
  36. package/dist/DotplotView/components/DotplotTooltipClick.js +3 -7
  37. package/dist/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
  38. package/dist/DotplotView/components/DotplotTooltipMouseover.js +4 -8
  39. package/dist/DotplotView/components/DotplotView.d.ts +2 -3
  40. package/dist/DotplotView/components/DotplotView.js +80 -92
  41. package/dist/DotplotView/components/DotplotWarnings.d.ts +2 -3
  42. package/dist/DotplotView/components/DotplotWarnings.js +26 -21
  43. package/dist/DotplotView/components/ExportSvgDialog.d.ts +2 -3
  44. package/dist/DotplotView/components/ExportSvgDialog.js +32 -67
  45. package/dist/DotplotView/components/Grid.d.ts +3 -4
  46. package/dist/DotplotView/components/Grid.js +19 -32
  47. package/dist/DotplotView/components/Header.d.ts +2 -3
  48. package/dist/DotplotView/components/Header.js +4 -23
  49. package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
  50. package/dist/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +129 -0
  51. package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
  52. package/dist/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -48
  53. package/dist/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
  54. package/dist/DotplotView/components/ImportForm/TrackSelector.js +23 -0
  55. package/dist/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
  56. package/dist/DotplotView/components/ImportForm/getAdapter.js +68 -0
  57. package/dist/DotplotView/components/ImportForm/index.d.ts +3 -4
  58. package/dist/DotplotView/components/ImportForm/index.js +47 -97
  59. package/dist/DotplotView/components/ImportForm/util.js +1 -3
  60. package/dist/DotplotView/components/PanButtons.d.ts +2 -3
  61. package/dist/DotplotView/components/PanButtons.js +17 -36
  62. package/dist/DotplotView/components/WarningDialog.d.ts +7 -7
  63. package/dist/DotplotView/components/WarningDialog.js +12 -15
  64. package/dist/DotplotView/components/util.d.ts +2 -7
  65. package/dist/DotplotView/components/util.js +0 -5
  66. package/dist/DotplotView/index.d.ts +1 -1
  67. package/dist/DotplotView/index.js +17 -8
  68. package/dist/DotplotView/model.d.ts +11 -133
  69. package/dist/DotplotView/model.js +46 -222
  70. package/dist/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
  71. package/dist/DotplotView/svgcomponents/SVGBackground.js +3 -6
  72. package/dist/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
  73. package/dist/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
  74. package/dist/DotplotView/types.d.ts +12 -0
  75. package/dist/DotplotView/types.js +2 -0
  76. package/dist/LaunchDotplotView.d.ts +1 -1
  77. package/dist/LaunchDotplotView.js +1 -4
  78. package/dist/ServerSideRenderedBlockContent.d.ts +2 -2
  79. package/dist/ServerSideRenderedBlockContent.js +11 -37
  80. package/dist/ServerSideSyntenyRendering.d.ts +1 -6
  81. package/dist/ServerSideSyntenyRendering.js +4 -26
  82. package/dist/index.d.ts +1 -1
  83. package/dist/index.js +3 -6
  84. package/dist/util.d.ts +1 -1
  85. package/esm/ComparativeRenderer/index.d.ts +3 -8
  86. package/esm/ComparativeRenderer/index.js +3 -8
  87. package/esm/DotplotDisplay/components/DotplotDisplay.d.ts +2 -3
  88. package/esm/DotplotDisplay/components/DotplotDisplay.js +7 -9
  89. package/esm/DotplotDisplay/index.d.ts +1 -7
  90. package/esm/DotplotDisplay/index.js +2 -12
  91. package/esm/DotplotDisplay/renderDotplotBlock.d.ts +1 -1
  92. package/esm/DotplotDisplay/renderDotplotBlock.js +3 -6
  93. package/esm/DotplotDisplay/stateModelFactory.d.ts +8 -45
  94. package/esm/DotplotDisplay/stateModelFactory.js +58 -101
  95. package/esm/DotplotReadVsRef/DotplotReadVsRef.d.ts +2 -2
  96. package/esm/DotplotReadVsRef/DotplotReadVsRef.js +15 -16
  97. package/esm/DotplotReadVsRef/index.d.ts +1 -1
  98. package/esm/DotplotReadVsRef/index.js +0 -2
  99. package/esm/DotplotRenderer/ComparativeRenderRpc.d.ts +3 -8
  100. package/esm/DotplotRenderer/ComparativeRenderRpc.js +3 -8
  101. package/esm/DotplotRenderer/DotplotRenderer.d.ts +8 -7
  102. package/esm/DotplotRenderer/DotplotRenderer.js +1 -2
  103. package/esm/DotplotRenderer/components/DotplotRendering.d.ts +2 -3
  104. package/esm/DotplotRenderer/components/DotplotRendering.js +2 -2
  105. package/esm/DotplotRenderer/configSchema.d.ts +0 -21
  106. package/esm/DotplotRenderer/configSchema.js +2 -27
  107. package/esm/DotplotRenderer/drawDotplot.d.ts +3 -3
  108. package/esm/DotplotRenderer/drawDotplot.js +4 -7
  109. package/esm/DotplotRenderer/index.d.ts +1 -1
  110. package/esm/DotplotRenderer/index.js +1 -1
  111. package/esm/DotplotView/1dview.d.ts +2 -77
  112. package/esm/DotplotView/1dview.js +4 -33
  113. package/esm/DotplotView/components/Axes.d.ts +5 -6
  114. package/esm/DotplotView/components/Axes.js +26 -37
  115. package/esm/DotplotView/components/CursorIcon.d.ts +3 -4
  116. package/esm/DotplotView/components/CursorIcon.js +3 -5
  117. package/esm/DotplotView/components/DotplotControls.d.ts +2 -3
  118. package/esm/DotplotView/components/DotplotControls.js +94 -97
  119. package/esm/DotplotView/components/DotplotTooltipClick.d.ts +2 -3
  120. package/esm/DotplotView/components/DotplotTooltipClick.js +3 -7
  121. package/esm/DotplotView/components/DotplotTooltipMouseover.d.ts +2 -3
  122. package/esm/DotplotView/components/DotplotTooltipMouseover.js +4 -8
  123. package/esm/DotplotView/components/DotplotView.d.ts +2 -3
  124. package/esm/DotplotView/components/DotplotView.js +63 -85
  125. package/esm/DotplotView/components/DotplotWarnings.d.ts +2 -3
  126. package/esm/DotplotView/components/DotplotWarnings.js +9 -14
  127. package/esm/DotplotView/components/ExportSvgDialog.d.ts +2 -3
  128. package/esm/DotplotView/components/ExportSvgDialog.js +32 -44
  129. package/esm/DotplotView/components/Grid.d.ts +3 -4
  130. package/esm/DotplotView/components/Grid.js +19 -29
  131. package/esm/DotplotView/components/Header.d.ts +2 -3
  132. package/esm/DotplotView/components/Header.js +4 -23
  133. package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.d.ts +7 -0
  134. package/esm/DotplotView/components/ImportForm/ImportSyntenyOpenCustomTrack.js +124 -0
  135. package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.d.ts +4 -6
  136. package/esm/DotplotView/components/ImportForm/ImportSyntenyTrackSelector.js +17 -25
  137. package/esm/DotplotView/components/ImportForm/TrackSelector.d.ts +7 -0
  138. package/esm/DotplotView/components/ImportForm/TrackSelector.js +18 -0
  139. package/esm/DotplotView/components/ImportForm/getAdapter.d.ts +117 -0
  140. package/esm/DotplotView/components/ImportForm/getAdapter.js +65 -0
  141. package/esm/DotplotView/components/ImportForm/index.d.ts +3 -4
  142. package/esm/DotplotView/components/ImportForm/index.js +48 -75
  143. package/esm/DotplotView/components/ImportForm/util.js +1 -3
  144. package/esm/DotplotView/components/PanButtons.d.ts +2 -3
  145. package/esm/DotplotView/components/PanButtons.js +17 -36
  146. package/esm/DotplotView/components/WarningDialog.d.ts +7 -7
  147. package/esm/DotplotView/components/WarningDialog.js +12 -12
  148. package/esm/DotplotView/components/util.d.ts +2 -7
  149. package/esm/DotplotView/components/util.js +0 -5
  150. package/esm/DotplotView/index.d.ts +1 -1
  151. package/esm/DotplotView/index.js +0 -1
  152. package/esm/DotplotView/model.d.ts +11 -133
  153. package/esm/DotplotView/model.js +30 -216
  154. package/esm/DotplotView/svgcomponents/SVGBackground.d.ts +1 -2
  155. package/esm/DotplotView/svgcomponents/SVGBackground.js +3 -3
  156. package/esm/DotplotView/svgcomponents/SVGDotplotView.d.ts +1 -1
  157. package/esm/DotplotView/svgcomponents/SVGDotplotView.js +6 -24
  158. package/esm/DotplotView/types.d.ts +12 -0
  159. package/esm/DotplotView/types.js +1 -0
  160. package/esm/LaunchDotplotView.d.ts +1 -1
  161. package/esm/LaunchDotplotView.js +1 -4
  162. package/esm/ServerSideRenderedBlockContent.d.ts +2 -2
  163. package/esm/ServerSideRenderedBlockContent.js +11 -14
  164. package/esm/ServerSideSyntenyRendering.d.ts +1 -6
  165. package/esm/ServerSideSyntenyRendering.js +4 -3
  166. package/esm/index.d.ts +1 -1
  167. package/esm/index.js +3 -6
  168. package/esm/util.d.ts +1 -1
  169. package/package.json +2 -4
  170. package/dist/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
  171. package/dist/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -194
  172. package/esm/DotplotView/components/ImportForm/ImportCustomTrack.d.ts +0 -11
  173. package/esm/DotplotView/components/ImportForm/ImportCustomTrack.js +0 -169
@@ -1,8 +1,9 @@
1
- import React from 'react';
2
- import { Instance, SnapshotIn } from 'mobx-state-tree';
3
- import { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
4
- import PluginManager from '@jbrowse/core/PluginManager';
1
+ import type React from 'react';
5
2
  import { TrackSelector as TrackSelectorIcon } from '@jbrowse/core/ui/Icons';
3
+ import type { ImportFormSyntenyTrack } from './types';
4
+ import type PluginManager from '@jbrowse/core/PluginManager';
5
+ import type { Base1DViewModel } from '@jbrowse/core/util/Base1DViewModel';
6
+ import type { Instance, SnapshotIn } from 'mobx-state-tree';
6
7
  type Coord = [number, number];
7
8
  export interface ExportSvgOptions {
8
9
  rasterizeLayers?: boolean;
@@ -12,12 +13,6 @@ export interface ExportSvgOptions {
12
13
  }>;
13
14
  themeName?: string;
14
15
  }
15
- /**
16
- * #stateModel DotplotView
17
- * #category view
18
- * extends
19
- * - [BaseViewModel](../baseviewmodel)
20
- */
21
16
  export default function stateModelFactory(pm: PluginManager): import("mobx-state-tree").IModelType<{
22
17
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
23
18
  displayName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
@@ -220,58 +215,33 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
220
215
  wheelMode: string;
221
216
  borderX: number;
222
217
  borderY: number;
218
+ importFormSyntenyTrackSelections: import("mobx").IObservableArray<ImportFormSyntenyTrack>;
219
+ } & {
220
+ importFormRemoveRow(idx: number): void;
221
+ clearImportFormSyntenyTracks(): void;
222
+ setImportFormSyntenyTrack(arg: number, val: ImportFormSyntenyTrack): void;
223
223
  } & {
224
- /**
225
- * #getter
226
- */
227
224
  readonly width: number;
228
225
  } & {
229
- /**
230
- * #getter
231
- */
232
226
  readonly assemblyErrors: string;
233
- /**
234
- * #getter
235
- */
236
227
  readonly assembliesInitialized: boolean;
237
228
  } & {
238
- /**
239
- * #getter
240
- */
241
229
  readonly initialized: boolean;
242
- /**
243
- * #getter
244
- */
245
230
  readonly hticks: {
246
231
  type: string;
247
232
  base: number;
248
233
  index: number;
249
234
  refName: string;
250
235
  }[];
251
- /**
252
- * #getter
253
- */
254
236
  readonly vticks: {
255
237
  type: string;
256
238
  base: number;
257
239
  index: number;
258
240
  refName: string;
259
241
  }[];
260
- /**
261
- * #getter
262
- */
263
242
  readonly loading: boolean;
264
- /**
265
- * #getter
266
- */
267
243
  readonly viewWidth: number;
268
- /**
269
- * #getter
270
- */
271
244
  readonly viewHeight: number;
272
- /**
273
- * #getter
274
- */
275
245
  readonly views: ({
276
246
  id: string;
277
247
  displayedRegions: import("@jbrowse/core/util").Region[] & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IType<import("@jbrowse/core/util").Region[], import("@jbrowse/core/util").Region[], import("@jbrowse/core/util").Region[]>, [undefined]>>;
@@ -403,87 +373,26 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
403
373
  } & {
404
374
  readonly width: any;
405
375
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>>)[];
406
- /**
407
- * #method
408
- */
409
376
  renderProps(): any;
410
377
  } & {
411
- /**
412
- * #action
413
- */
414
378
  setShowPanButtons(flag: boolean): void;
415
- /**
416
- * #action
417
- */
418
379
  setWheelMode(str: string): void;
419
- /**
420
- * #action
421
- */
422
380
  setCursorMode(str: string): void;
423
- /**
424
- * #action
425
- */
426
381
  setDrawCigar(flag: boolean): void;
427
- /**
428
- * #action
429
- * returns to the import form
430
- */
431
382
  clearView(): void;
432
- /**
433
- * #action
434
- */
435
383
  setBorderX(n: number): void;
436
- /**
437
- * #action
438
- */
439
384
  setBorderY(n: number): void;
440
- /**
441
- * #action
442
- */
443
385
  setWidth(newWidth: number): number;
444
- /**
445
- * #action
446
- */
447
386
  setHeight(newHeight: number): number;
448
- /**
449
- * #action
450
- */
451
387
  setError(e: unknown): void;
452
- /**
453
- * #action
454
- */
455
388
  zoomOut(): void;
456
- /**
457
- * #action
458
- */
459
389
  zoomIn(): void;
460
- /**
461
- * #action
462
- */
463
390
  activateTrackSelector(): import("@jbrowse/core/util").Widget;
464
- /**
465
- * #action
466
- */
467
391
  showTrack(trackId: string, initialSnapshot?: {}): void;
468
- /**
469
- * #action
470
- */
471
392
  hideTrack(trackId: string): number;
472
- /**
473
- * #action
474
- */
475
393
  toggleTrack(trackId: string): boolean;
476
- /**
477
- * #action
478
- */
479
394
  setAssemblyNames(target: string, query: string): void;
480
- /**
481
- * #action
482
- */
483
395
  setViews(arr: SnapshotIn<Base1DViewModel>[]): void;
484
- /**
485
- * #action
486
- */
487
396
  getCoords(mousedown: Coord, mouseup: Coord): {
488
397
  coord: number;
489
398
  index: number;
@@ -495,60 +404,29 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
495
404
  end: number;
496
405
  reversed?: boolean;
497
406
  }[] | undefined;
498
- /**
499
- * #action
500
- * zooms into clicked and dragged region
501
- */
502
407
  zoomInToMouseCoords(mousedown: Coord, mouseup: Coord): void;
503
- /**
504
- * #action
505
- */
506
408
  showAllRegions(): void;
507
- /**
508
- * #action
509
- * creates a linear synteny view from the clicked and dragged region
510
- */
511
409
  onDotplotView(mousedown: Coord, mouseup: Coord): void;
512
410
  } & {
513
- /**
514
- * #action
515
- * creates an svg export and save using FileSaver
516
- */
517
411
  exportSvg(opts?: ExportSvgOptions): Promise<void>;
518
412
  beforeDestroy(): void;
519
413
  afterAttach(): void;
520
- /**
521
- * #action
522
- */
523
414
  squareView(): void;
524
- /**
525
- * #action
526
- */
527
415
  squareViewProportional(): void;
528
416
  } & {
529
- /**
530
- * #method
531
- */
532
417
  menuItems(): ({
533
418
  label: string;
534
- onClick: () => void;
535
419
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
536
420
  muiName: string;
537
421
  };
538
- } | {
539
- label: string;
540
422
  onClick: () => void;
541
- icon?: undefined;
542
423
  } | {
543
424
  label: string;
544
425
  onClick: () => import("@jbrowse/core/util").Widget;
545
426
  icon: typeof TrackSelectorIcon;
546
427
  })[];
547
- /**
548
- * #getter
549
- */
550
428
  readonly error: unknown;
551
429
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
552
430
  export type DotplotViewStateModel = ReturnType<typeof stateModelFactory>;
553
431
  export type DotplotViewModel = Instance<DotplotViewStateModel>;
554
- export { type Dotplot1DViewModel, Dotplot1DView } from './1dview';
432
+ export { Dotplot1DView, type Dotplot1DViewModel } from './1dview';