@jbrowse/plugin-linear-genome-view 2.1.6 → 2.2.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 (109) hide show
  1. package/dist/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -2
  2. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +2 -22
  3. package/dist/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
  4. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +146 -1
  5. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js +600 -464
  6. package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
  7. package/dist/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js +19 -1
  8. package/dist/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js.map +1 -1
  9. package/dist/BasicTrack/configSchema.d.ts +3 -0
  10. package/dist/BasicTrack/configSchema.js +18 -0
  11. package/dist/BasicTrack/configSchema.js.map +1 -0
  12. package/dist/BasicTrack/index.d.ts +3 -0
  13. package/dist/BasicTrack/index.js +18 -0
  14. package/dist/BasicTrack/index.js.map +1 -0
  15. package/dist/FeatureTrack/configSchema.d.ts +3 -0
  16. package/dist/FeatureTrack/configSchema.js +21 -0
  17. package/dist/FeatureTrack/configSchema.js.map +1 -0
  18. package/dist/FeatureTrack/index.d.ts +3 -0
  19. package/dist/FeatureTrack/index.js +18 -0
  20. package/dist/FeatureTrack/index.js.map +1 -0
  21. package/dist/LinearBareDisplay/configSchema.d.ts +5 -1
  22. package/dist/LinearBareDisplay/configSchema.js +12 -1
  23. package/dist/LinearBareDisplay/configSchema.js.map +1 -1
  24. package/dist/LinearBareDisplay/model.d.ts +16 -0
  25. package/dist/LinearBareDisplay/model.js +16 -0
  26. package/dist/LinearBareDisplay/model.js.map +1 -1
  27. package/dist/LinearBasicDisplay/configSchema.d.ts +5 -1
  28. package/dist/LinearBasicDisplay/configSchema.js +16 -1
  29. package/dist/LinearBasicDisplay/configSchema.js.map +1 -1
  30. package/dist/LinearBasicDisplay/model.d.ts +77 -6
  31. package/dist/LinearBasicDisplay/model.js +167 -111
  32. package/dist/LinearBasicDisplay/model.js.map +1 -1
  33. package/dist/LinearGenomeView/components/ImportForm.js +34 -28
  34. package/dist/LinearGenomeView/components/ImportForm.js.map +1 -1
  35. package/dist/LinearGenomeView/components/LinearGenomeView.js +1 -21
  36. package/dist/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
  37. package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js +7 -5
  38. package/dist/LinearGenomeView/components/LinearGenomeViewSvg.js.map +1 -1
  39. package/dist/LinearGenomeView/components/OverviewScaleBar.d.ts +26 -34
  40. package/dist/LinearGenomeView/index.d.ts +189 -15
  41. package/dist/LinearGenomeView/index.js +266 -27
  42. package/dist/LinearGenomeView/index.js.map +1 -1
  43. package/dist/index.d.ts +12 -84
  44. package/dist/index.js +4 -25
  45. package/dist/index.js.map +1 -1
  46. package/esm/BaseLinearDisplay/components/LinearBlocks.d.ts +2 -2
  47. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +2 -22
  48. package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js.map +1 -1
  49. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +146 -1
  50. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js +600 -464
  51. package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.js.map +1 -1
  52. package/esm/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js +19 -1
  53. package/esm/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.js.map +1 -1
  54. package/esm/BasicTrack/configSchema.d.ts +3 -0
  55. package/esm/BasicTrack/configSchema.js +16 -0
  56. package/esm/BasicTrack/configSchema.js.map +1 -0
  57. package/esm/BasicTrack/index.d.ts +3 -0
  58. package/esm/BasicTrack/index.js +13 -0
  59. package/esm/BasicTrack/index.js.map +1 -0
  60. package/esm/FeatureTrack/configSchema.d.ts +3 -0
  61. package/esm/FeatureTrack/configSchema.js +19 -0
  62. package/esm/FeatureTrack/configSchema.js.map +1 -0
  63. package/esm/FeatureTrack/index.d.ts +3 -0
  64. package/esm/FeatureTrack/index.js +13 -0
  65. package/esm/FeatureTrack/index.js.map +1 -0
  66. package/esm/LinearBareDisplay/configSchema.d.ts +5 -1
  67. package/esm/LinearBareDisplay/configSchema.js +14 -2
  68. package/esm/LinearBareDisplay/configSchema.js.map +1 -1
  69. package/esm/LinearBareDisplay/model.d.ts +16 -0
  70. package/esm/LinearBareDisplay/model.js +16 -0
  71. package/esm/LinearBareDisplay/model.js.map +1 -1
  72. package/esm/LinearBasicDisplay/configSchema.d.ts +5 -1
  73. package/esm/LinearBasicDisplay/configSchema.js +18 -2
  74. package/esm/LinearBasicDisplay/configSchema.js.map +1 -1
  75. package/esm/LinearBasicDisplay/model.d.ts +77 -6
  76. package/esm/LinearBasicDisplay/model.js +167 -111
  77. package/esm/LinearBasicDisplay/model.js.map +1 -1
  78. package/esm/LinearGenomeView/components/ImportForm.js +36 -30
  79. package/esm/LinearGenomeView/components/ImportForm.js.map +1 -1
  80. package/esm/LinearGenomeView/components/LinearGenomeView.js +2 -22
  81. package/esm/LinearGenomeView/components/LinearGenomeView.js.map +1 -1
  82. package/esm/LinearGenomeView/components/LinearGenomeViewSvg.js +7 -5
  83. package/esm/LinearGenomeView/components/LinearGenomeViewSvg.js.map +1 -1
  84. package/esm/LinearGenomeView/components/OverviewScaleBar.d.ts +26 -34
  85. package/esm/LinearGenomeView/index.d.ts +189 -15
  86. package/esm/LinearGenomeView/index.js +266 -27
  87. package/esm/LinearGenomeView/index.js.map +1 -1
  88. package/esm/index.d.ts +12 -84
  89. package/esm/index.js +4 -25
  90. package/esm/index.js.map +1 -1
  91. package/package.json +2 -2
  92. package/src/BaseLinearDisplay/components/ServerSideRenderedBlockContent.tsx +2 -24
  93. package/src/BaseLinearDisplay/models/BaseLinearDisplayModel.tsx +695 -555
  94. package/src/BaseLinearDisplay/models/baseLinearDisplayConfigSchema.ts +20 -1
  95. package/src/BasicTrack/configSchema.ts +23 -0
  96. package/src/BasicTrack/index.ts +22 -0
  97. package/src/FeatureTrack/configSchema.ts +27 -0
  98. package/src/FeatureTrack/index.ts +21 -0
  99. package/src/LinearBareDisplay/configSchema.ts +15 -2
  100. package/src/LinearBareDisplay/model.ts +16 -0
  101. package/src/LinearBasicDisplay/configSchema.ts +19 -2
  102. package/src/LinearBasicDisplay/model.ts +63 -11
  103. package/src/LinearGenomeView/components/ImportForm.tsx +79 -63
  104. package/src/LinearGenomeView/components/LinearGenomeView.tsx +2 -26
  105. package/src/LinearGenomeView/components/LinearGenomeViewSvg.tsx +21 -18
  106. package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.tsx.snap +204 -204
  107. package/src/LinearGenomeView/index.test.ts +33 -26
  108. package/src/LinearGenomeView/index.tsx +317 -60
  109. package/src/index.ts +6 -46
@@ -20,7 +20,14 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
20
20
  type: import("mobx-state-tree").ISimpleType<string>;
21
21
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
22
22
  } & {
23
+ /**
24
+ * #property
25
+ */
23
26
  height: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
27
+ /**
28
+ * #property
29
+ * updated via autorun
30
+ */
24
31
  blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
25
32
  key: import("mobx-state-tree").ISimpleType<string>;
26
33
  region: import("mobx-state-tree").IModelType<{
@@ -54,6 +61,9 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
54
61
  doReload(): void;
55
62
  afterAttach(): void;
56
63
  setStatus(message: string): void;
64
+ /**
65
+ * #property
66
+ */
57
67
  setLoading(abortController: AbortController): void;
58
68
  setMessage(messageText: string): void;
59
69
  setRendered(props: {
@@ -65,9 +75,18 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
65
75
  } | undefined): void;
66
76
  setError(error: unknown): void;
67
77
  reload(): void;
78
+ /**
79
+ * #getter
80
+ */
68
81
  beforeDestroy(): void;
69
82
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
83
+ /**
84
+ * #property
85
+ */
70
86
  userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
87
+ /**
88
+ * #property
89
+ */
71
90
  userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
72
91
  }, {
73
92
  rendererTypeName: string;
@@ -118,7 +137,11 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
118
137
  readonly viewMenuActions: MenuItem[];
119
138
  regionCannotBeRendered(): undefined;
120
139
  } & {
121
- setError(error?: unknown): void;
140
+ setError(error?: unknown): void; /**
141
+ * #getter
142
+ * returns a string feature ID if the globally-selected object
143
+ * is probably a feature
144
+ */
122
145
  setRpcDriverName(rpcDriverName: string): void;
123
146
  reload(): void;
124
147
  } & {
@@ -130,72 +153,182 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
130
153
  estimatedRegionStatsP: Promise<Stats> | undefined;
131
154
  estimatedRegionStats: Stats | undefined;
132
155
  } & {
156
+ /**
157
+ * #getter
158
+ */
133
159
  readonly blockType: "dynamicBlocks" | "staticBlocks";
160
+ /**
161
+ * #getter
162
+ */
134
163
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
135
164
  } & {
136
165
  /**
166
+ * #getter
137
167
  * how many milliseconds to wait for the display to
138
168
  * "settle" before re-rendering a block
139
169
  */
140
170
  readonly renderDelay: number;
171
+ /**
172
+ * #getter
173
+ */
141
174
  readonly TooltipComponent: React.FC<any>;
142
175
  /**
176
+ * #getter
143
177
  * returns a string feature ID if the globally-selected object
144
178
  * is probably a feature
145
179
  */
146
180
  readonly selectedFeatureId: string | undefined;
147
181
  /**
182
+ * #getter
148
183
  * if a display-level message should be displayed instead of the blocks,
149
184
  * make this return a react component
150
185
  */
151
186
  readonly DisplayMessageComponent: React.FC<any> | undefined;
152
187
  } & {
153
188
  /**
189
+ * #getter
154
190
  * a CompositeMap of `featureId -> feature obj` that
155
191
  * just looks in all the block data for that feature
156
192
  */
157
193
  readonly features: CompositeMap<string, Feature>;
194
+ /**
195
+ * #getter
196
+ */
158
197
  readonly featureUnderMouse: Feature | undefined;
198
+ /**
199
+ * #getter
200
+ */
159
201
  getFeatureOverlapping(blockKey: string, x: number, y: number): any;
202
+ /**
203
+ * #getter
204
+ */
160
205
  getFeatureByID(blockKey: string, id: string): LayoutRecord | undefined;
206
+ /**
207
+ * #getter
208
+ */
161
209
  searchFeatureByID(id: string): LayoutRecord | undefined;
210
+ /**
211
+ * #getter
212
+ */
162
213
  readonly currentBytesRequested: number;
214
+ /**
215
+ * #getter
216
+ */
163
217
  readonly currentFeatureScreenDensity: number;
218
+ /**
219
+ * #getter
220
+ */
164
221
  readonly maxFeatureScreenDensity: any;
222
+ /**
223
+ * #getter
224
+ */
165
225
  readonly estimatedStatsReady: boolean;
226
+ /**
227
+ * #getter
228
+ */
166
229
  readonly maxAllowableBytes: number;
167
230
  } & {
231
+ /**
232
+ * #action
233
+ */
168
234
  setMessage(message: string): void;
169
235
  afterAttach(): void;
236
+ /**
237
+ * #action
238
+ */
170
239
  estimateRegionsStats(regions: Region[], opts: {
171
240
  headers?: Record<string, string>;
172
241
  signal?: AbortSignal;
173
242
  filters?: string[];
174
243
  }): Promise<{}>;
244
+ /**
245
+ * #action
246
+ */
175
247
  setRegionStatsP(p?: Promise<Stats>): void;
248
+ /**
249
+ * #action
250
+ */
176
251
  setRegionStats(estimatedRegionStats?: Stats): void;
252
+ /**
253
+ * #action
254
+ */
177
255
  clearRegionStats(): void;
256
+ /**
257
+ * #action
258
+ */
178
259
  setHeight(displayHeight: number): number;
260
+ /**
261
+ * #action
262
+ */
179
263
  resizeHeight(distance: number): number;
264
+ /**
265
+ * #action
266
+ */
180
267
  setScrollTop(scrollTop: number): void;
268
+ /**
269
+ * #action
270
+ */
181
271
  updateStatsLimit(stats: Stats): void;
272
+ /**
273
+ * #action
274
+ */
182
275
  addBlock(key: string, block: BaseBlock): void;
276
+ /**
277
+ * #action
278
+ */
183
279
  setCurrBpPerPx(n: number): void;
280
+ /**
281
+ * #action
282
+ */
184
283
  deleteBlock(key: string): void;
284
+ /**
285
+ * #action
286
+ */
185
287
  selectFeature(feature: Feature): void;
288
+ /**
289
+ * #action
290
+ */
186
291
  clearFeatureSelection(): void;
292
+ /**
293
+ * #action
294
+ */
187
295
  setFeatureIdUnderMouse(feature: string | undefined): void;
296
+ /**
297
+ * #action
298
+ */
188
299
  reload(): void;
300
+ /**
301
+ * #action
302
+ */
189
303
  setContextMenuFeature(feature?: Feature): void;
190
304
  } & {
305
+ /**
306
+ * #getter
307
+ * region is too large if:
308
+ * - stats are ready
309
+ * - region is greater than 20kb (don't warn when zoomed in less than that)
310
+ * - and bytes is greater than max allowed bytes or density greater than max density
311
+ */
191
312
  readonly regionTooLarge: boolean;
313
+ /**
314
+ * #getter
315
+ * only shows a message of bytes requested is defined, the feature density
316
+ * based stats don't produce any helpful message besides to zoom in
317
+ */
192
318
  readonly regionTooLargeReason: string;
193
319
  } & {
320
+ /**
321
+ * #action
322
+ */
194
323
  reload(): Promise<void>;
195
324
  afterAttach(): void;
196
325
  } & {
326
+ /**
327
+ * #method
328
+ */
197
329
  regionCannotBeRenderedText(_region: Region): "" | "Force load to see features";
198
330
  /**
331
+ * #method
199
332
  * @param region -
200
333
  * @returns falsy if the region is fine to try rendering. Otherwise,
201
334
  * return a react node + string of text.
@@ -203,7 +336,13 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
203
336
  * react node allows user to force load at current setting
204
337
  */
205
338
  regionCannotBeRendered(_region: Region): JSX.Element | null;
339
+ /**
340
+ * #method
341
+ */
206
342
  trackMenuItems(): MenuItem[];
343
+ /**
344
+ * #method
345
+ */
207
346
  contextMenuItems(): {
208
347
  label: string;
209
348
  icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
@@ -211,8 +350,14 @@ export declare const BaseLinearDisplay: import("mobx-state-tree").IModelType<{
211
350
  };
212
351
  onClick: () => void;
213
352
  }[];
353
+ /**
354
+ * #method
355
+ */
214
356
  renderProps(): any;
215
357
  } & {
358
+ /**
359
+ * #method
360
+ */
216
361
  renderSvg(opts: ExportSvgOptions & {
217
362
  overrideHeight: number;
218
363
  }): Promise<JSX.Element>;