@jbrowse/plugin-linear-genome-view 5.0.0-beta.1 → 5.0.0-beta.10
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.
- package/esm/FeatureTrack/configSchema.d.ts +142 -50
- package/esm/LaunchLinearGenomeView/index.js +2 -13
- package/esm/LinearGenomeView/afterAttach.d.ts +5 -5
- package/esm/LinearGenomeView/afterAttach.js +73 -59
- package/esm/LinearGenomeView/components/CenterLine.js +5 -3
- package/esm/LinearGenomeView/components/CrisprGuidePanel.js +3 -5
- package/esm/LinearGenomeView/components/ExportSvgDialog.d.ts +3 -2
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +6 -2
- package/esm/LinearGenomeView/components/GetSequenceDialog.js +2 -2
- package/esm/LinearGenomeView/components/Header.js +11 -1
- package/esm/LinearGenomeView/components/HeaderClearHighlightButton.js +2 -2
- package/esm/LinearGenomeView/components/HeaderPanControls.js +2 -1
- package/esm/LinearGenomeView/components/HeaderZoomControls.js +4 -34
- package/esm/LinearGenomeView/components/Highlight.js +7 -7
- package/esm/LinearGenomeView/components/HighlightBand.js +2 -2
- package/esm/LinearGenomeView/components/HighlightChip.d.ts +1 -2
- package/esm/LinearGenomeView/components/HighlightChip.js +5 -7
- package/esm/LinearGenomeView/components/HoverPositionHighlight.js +3 -3
- package/esm/LinearGenomeView/components/ImportForm.js +2 -2
- package/esm/LinearGenomeView/components/LinearGenomeView.js +3 -3
- package/esm/LinearGenomeView/components/LinearGenomeViewContainer.js +3 -4
- package/esm/LinearGenomeView/components/MiniControls.js +3 -2
- package/esm/LinearGenomeView/components/OverviewHighlight.js +3 -3
- package/esm/LinearGenomeView/components/OverviewHighlightBand.js +2 -3
- package/esm/LinearGenomeView/components/OverviewRubberband.js +20 -45
- package/esm/LinearGenomeView/components/OverviewScalebar.js +4 -5
- package/esm/LinearGenomeView/components/OverviewScalebarPolygon.js +5 -3
- package/esm/LinearGenomeView/components/PaddingBlocks.d.ts +1 -1
- package/esm/LinearGenomeView/components/PaddingBlocks.js +14 -9
- package/esm/LinearGenomeView/components/RangeSelectOverlay.js +5 -6
- package/esm/LinearGenomeView/components/ResizeAllTracksHandle.d.ts +5 -0
- package/esm/LinearGenomeView/components/ResizeAllTracksHandle.js +71 -0
- package/esm/LinearGenomeView/components/Rubberband.d.ts +1 -2
- package/esm/LinearGenomeView/components/Rubberband.js +3 -2
- package/esm/LinearGenomeView/components/SVGHighlightBand.js +2 -3
- package/esm/LinearGenomeView/components/Scalebar.d.ts +2 -6
- package/esm/LinearGenomeView/components/Scalebar.js +8 -5
- package/esm/LinearGenomeView/components/ScalebarRefNameLabels.js +49 -34
- package/esm/LinearGenomeView/components/SearchBox.js +8 -7
- package/esm/LinearGenomeView/components/SearchResultsDialog.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchResultsDialog.js +2 -2
- package/esm/LinearGenomeView/components/SearchResultsTable.d.ts +2 -1
- package/esm/LinearGenomeView/components/SearchResultsTable.js +12 -29
- package/esm/LinearGenomeView/components/SequenceSearchDialog.d.ts +2 -4
- package/esm/LinearGenomeView/components/TrackContainer.js +63 -9
- package/esm/LinearGenomeView/components/TrackLabel.js +10 -3
- package/esm/LinearGenomeView/components/TrackLabelButtons.js +2 -2
- package/esm/LinearGenomeView/components/TrackLabelDragHandle.js +2 -2
- package/esm/LinearGenomeView/components/TrackLabelMenu.js +3 -2
- package/esm/LinearGenomeView/components/TrackRenderingContainer.d.ts +4 -1
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +11 -23
- package/esm/LinearGenomeView/components/TracksContainer.js +10 -22
- package/esm/LinearGenomeView/components/VerticalGuide.d.ts +1 -2
- package/esm/LinearGenomeView/components/VerticalGuide.js +3 -16
- package/esm/LinearGenomeView/components/ZoomButton.js +6 -1
- package/esm/LinearGenomeView/components/ZoomTransform.js +4 -0
- package/esm/LinearGenomeView/components/fetchSequence.d.ts +1 -2
- package/esm/LinearGenomeView/components/recentLocationsMenu.js +10 -0
- package/esm/LinearGenomeView/components/searchModes.d.ts +1 -1
- package/esm/LinearGenomeView/components/searchModes.js +1 -1
- package/esm/LinearGenomeView/components/useRangeSelect.d.ts +0 -3
- package/esm/LinearGenomeView/components/useRangeSelect.js +20 -59
- package/esm/LinearGenomeView/components/useSideScroll.d.ts +16 -2
- package/esm/LinearGenomeView/components/useSideScroll.js +153 -103
- package/esm/LinearGenomeView/components/util.d.ts +4 -0
- package/esm/LinearGenomeView/components/util.js +4 -2
- package/esm/LinearGenomeView/consts.d.ts +2 -0
- package/esm/LinearGenomeView/consts.js +3 -1
- package/esm/LinearGenomeView/containingLgv.d.ts +21 -0
- package/esm/LinearGenomeView/containingLgv.js +23 -0
- package/esm/LinearGenomeView/headerFit.d.ts +4 -2
- package/esm/LinearGenomeView/headerFit.js +20 -7
- package/esm/LinearGenomeView/index.d.ts +1 -5
- package/esm/LinearGenomeView/index.js +10 -7
- package/esm/LinearGenomeView/keyboardHandler.d.ts +2 -0
- package/esm/LinearGenomeView/keyboardHandler.js +15 -1
- package/esm/LinearGenomeView/launchKeys.d.ts +2 -0
- package/esm/LinearGenomeView/launchKeys.js +27 -0
- package/esm/LinearGenomeView/lazyDialogs.d.ts +2 -4
- package/esm/LinearGenomeView/lazyDialogs.js +1 -0
- package/esm/LinearGenomeView/linkedViewSync.d.ts +3 -11
- package/esm/LinearGenomeView/linkedViewSync.js +27 -43
- package/esm/LinearGenomeView/menuItems.d.ts +16 -18
- package/esm/LinearGenomeView/menuItems.js +242 -151
- package/esm/LinearGenomeView/model.d.ts +2009 -200
- package/esm/LinearGenomeView/model.js +545 -395
- package/esm/LinearGenomeView/sharedScaleContainer.d.ts +1 -1
- package/esm/LinearGenomeView/showRegionsWithUndo.js +7 -1
- package/esm/LinearGenomeView/stickyChrome.d.ts +5 -9
- package/esm/LinearGenomeView/stickyChrome.js +5 -9
- package/esm/LinearGenomeView/svgcomponents/SVGGridlines.js +4 -4
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.d.ts +4 -1
- package/esm/LinearGenomeView/svgcomponents/SVGHeader.js +8 -21
- package/esm/LinearGenomeView/svgcomponents/SVGHighlights.js +8 -8
- package/esm/LinearGenomeView/svgcomponents/SVGHighlightsOverlay.js +3 -3
- package/esm/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +7 -11
- package/esm/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +2 -5
- package/esm/LinearGenomeView/svgcomponents/SVGRowHeader.js +5 -6
- package/esm/LinearGenomeView/svgcomponents/SVGRuler.js +9 -10
- package/esm/LinearGenomeView/svgcomponents/SVGScalebar.js +3 -3
- package/esm/LinearGenomeView/svgcomponents/SVGStackedRow.d.ts +27 -0
- package/esm/LinearGenomeView/svgcomponents/SVGStackedRow.js +12 -0
- package/esm/LinearGenomeView/svgcomponents/SVGTrackLabel.js +15 -6
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.d.ts +4 -4
- package/esm/LinearGenomeView/svgcomponents/SVGTracks.js +6 -5
- package/esm/LinearGenomeView/svgcomponents/SVGView.d.ts +1 -1
- package/esm/LinearGenomeView/svgcomponents/SVGView.js +1 -1
- package/esm/LinearGenomeView/svgcomponents/figureContract.js +14 -14
- package/esm/LinearGenomeView/svgcomponents/renderViewTracks.js +1 -1
- package/esm/LinearGenomeView/svgcomponents/useViewSvgFigure.js +50 -68
- package/esm/LinearGenomeView/svgcomponents/util.d.ts +9 -5
- package/esm/LinearGenomeView/svgcomponents/util.js +26 -21
- package/esm/LinearGenomeView/types.d.ts +8 -11
- package/esm/LinearGenomeView/util.d.ts +60 -45
- package/esm/LinearGenomeView/util.js +131 -160
- package/esm/MultiLevelRubberband/MultiLevelRubberband.js +7 -4
- package/esm/MultiLevelRubberband/index.d.ts +2 -0
- package/esm/MultiLevelRubberband/index.js +2 -0
- package/esm/MultiLevelRubberband/menuItems.d.ts +34 -0
- package/esm/MultiLevelRubberband/menuItems.js +52 -0
- package/esm/MultiLevelRubberband/rowLabel.d.ts +22 -0
- package/esm/MultiLevelRubberband/rowLabel.js +27 -0
- package/esm/MultiLevelRubberband/types.d.ts +1 -0
- package/esm/MultiLevelRubberband/useRangeSelect.d.ts +2 -1
- package/esm/MultiLevelRubberband/useRangeSelect.js +31 -47
- package/esm/displayKitTests/perRegionTestEnv.d.ts +214 -86
- package/esm/displayKitTests/perRegionTestEnv.js +30 -29
- package/esm/index.d.ts +15 -85
- package/esm/index.js +13 -36
- package/esm/searchUtils.d.ts +18 -9
- package/esm/searchUtils.js +85 -69
- package/esm/shared/RubberbandSpan.js +2 -1
- package/esm/shared/coordLabels.d.ts +7 -0
- package/esm/shared/coordLabels.js +15 -1
- package/esm/shared/useWindowDrag.d.ts +18 -0
- package/esm/shared/useWindowDrag.js +45 -0
- package/package.json +10 -10
- package/esm/LinearGenomeView/FloatingSvgOverlay.d.ts +0 -5
- package/esm/LinearGenomeView/FloatingSvgOverlay.js +0 -25
- package/esm/LinearGenomeView/initKeys.d.ts +0 -13
- package/esm/LinearGenomeView/initKeys.js +0 -104
- package/esm/MultiLevelRubberband/VerticalGuide.d.ts +0 -6
- package/esm/MultiLevelRubberband/VerticalGuide.js +0 -21
- package/esm/lazyPluginExports.d.ts +0 -23
- package/esm/lazyPluginExports.js +0 -36
|
@@ -33,6 +33,11 @@ export interface PerRegionTestControl {
|
|
|
33
33
|
estimateCalls: number;
|
|
34
34
|
/** the display's own density verdict, canvas's second too-large axis */
|
|
35
35
|
densityTooLarge: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* What the next fetch stores, so a test can tell the payload a refetch
|
|
38
|
+
* replaced from the one that replaced it.
|
|
39
|
+
*/
|
|
40
|
+
payloadTag: string;
|
|
36
41
|
}
|
|
37
42
|
/**
|
|
38
43
|
* The smallest possible display on `MultiRegionDisplayMixin`: it fetches, it
|
|
@@ -45,7 +50,6 @@ export interface PerRegionTestControl {
|
|
|
45
50
|
/** Which of the gate's opt-in hooks this display overrides. */
|
|
46
51
|
export interface GateOptIns {
|
|
47
52
|
gateEnabled?: boolean;
|
|
48
|
-
densityGateEnabled?: boolean;
|
|
49
53
|
}
|
|
50
54
|
declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns, configSchema: AnyConfigurationSchemaType): import("@jbrowse/mobx-state-tree").IModelType<Omit<Omit<Omit<{
|
|
51
55
|
id: import("@jbrowse/mobx-state-tree").IOptionalIType<import("@jbrowse/mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -246,11 +250,24 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
246
250
|
setError(error?: unknown): void;
|
|
247
251
|
clearHoveredFeature(): void;
|
|
248
252
|
reload(): void;
|
|
253
|
+
applyDisplaySettings(settings: Record<string, unknown>, options?: {
|
|
254
|
+
allowSetters?: boolean;
|
|
255
|
+
}): {
|
|
256
|
+
applied: string[];
|
|
257
|
+
unapplied: import("@jbrowse/core/util/unknownSnapshotKeys").UnappliedSetting[];
|
|
258
|
+
failed: {
|
|
259
|
+
key: string;
|
|
260
|
+
error: string;
|
|
261
|
+
}[];
|
|
262
|
+
};
|
|
249
263
|
} & {
|
|
250
264
|
scrollTop: number;
|
|
251
265
|
} & {
|
|
252
266
|
readonly height: number;
|
|
253
267
|
readonly resizing: boolean;
|
|
268
|
+
readonly scrollContentHeight: number;
|
|
269
|
+
readonly scrollViewportHeight: number;
|
|
270
|
+
} & {
|
|
254
271
|
readonly scrollableHeight: number;
|
|
255
272
|
} & {
|
|
256
273
|
setScrollTop(scrollTop: number): void;
|
|
@@ -262,19 +279,18 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
262
279
|
} & {
|
|
263
280
|
forceLoadTrack: boolean;
|
|
264
281
|
byteEstimate: import("@jbrowse/display-kit/regionTooLargeUtils").ByteEstimate | undefined;
|
|
265
|
-
gateMeasuredViewportKey:
|
|
282
|
+
gateMeasuredViewportKey: unknown;
|
|
266
283
|
} & {
|
|
267
284
|
readonly gateEnabled: boolean;
|
|
268
|
-
readonly densityGateEnabled: boolean;
|
|
269
285
|
readonly byteGateAdapterConfig: Record<string, unknown>;
|
|
270
286
|
readonly configuredFetchSizeLimit: number | undefined;
|
|
271
287
|
readonly densityTooLarge: boolean;
|
|
272
|
-
readonly byteGateAdapterPath:
|
|
288
|
+
readonly byteGateAdapterPath: import("@jbrowse/display-kit/RegionTooLargeMixin").ByteGateAdapterPath;
|
|
273
289
|
readonly adapterFetchSizeLimit: number | undefined;
|
|
274
290
|
readonly configForceLoad: boolean;
|
|
291
|
+
readonly gateViewportSpanBp: number | undefined;
|
|
275
292
|
readonly gateViewport: import("@jbrowse/display-kit/regionTooLargeUtils").GateViewport | undefined;
|
|
276
293
|
} & {
|
|
277
|
-
readonly byteGateAdapterKey: string;
|
|
278
294
|
readonly aboveForceLoadFloor: boolean;
|
|
279
295
|
readonly gateExempt: boolean;
|
|
280
296
|
readonly estimatedFetchBytes: number | undefined;
|
|
@@ -295,29 +311,28 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
295
311
|
} & {
|
|
296
312
|
readonly gateSkipsMeasuredViewport: boolean;
|
|
297
313
|
} & {
|
|
298
|
-
setByteEstimate(measurement: {
|
|
299
|
-
bytes: number;
|
|
300
|
-
viewport: import("@jbrowse/display-kit/regionTooLargeUtils").GateViewport;
|
|
301
|
-
}): void;
|
|
302
314
|
clearByteEstimate(): void;
|
|
315
|
+
clearGateMeasurements(): void;
|
|
303
316
|
setForceLoadTrack(flag: boolean): void;
|
|
304
|
-
reload(): void;
|
|
305
317
|
} & {
|
|
306
|
-
commitFetchBytes(perRegionBytes: (number | undefined)[], issued: import("@jbrowse/display-kit/regionTooLargeUtils").GateFetchState): void;
|
|
318
|
+
commitFetchBytes(perRegionBytes: (number | undefined)[], issued: import("@jbrowse/display-kit/regionTooLargeUtils").GateFetchState, partial?: boolean): void;
|
|
307
319
|
} & {
|
|
308
320
|
forceLoad(): void;
|
|
309
321
|
} & {
|
|
310
322
|
afterAttach(): void;
|
|
311
323
|
} & {
|
|
312
324
|
canvasDrawn: boolean;
|
|
325
|
+
paintCount: number;
|
|
313
326
|
currentRenderingBackend: unknown;
|
|
314
327
|
renderTick: number;
|
|
315
328
|
autorunsInstalled: boolean;
|
|
316
329
|
renderError: unknown;
|
|
330
|
+
offScreen: boolean;
|
|
317
331
|
} & {
|
|
318
332
|
readonly canRender: boolean;
|
|
319
333
|
readonly rendersCanvas: boolean;
|
|
320
334
|
readonly paintInert: boolean;
|
|
335
|
+
readonly paintSuperseded: boolean;
|
|
321
336
|
} & {
|
|
322
337
|
readonly painted: boolean;
|
|
323
338
|
} & {
|
|
@@ -325,11 +340,12 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
325
340
|
resetCanvasDrawn(): void;
|
|
326
341
|
stopRenderingBackend(): void;
|
|
327
342
|
renderNow(): void;
|
|
343
|
+
setOffScreen(offScreen: boolean): void;
|
|
328
344
|
setRenderError(error: unknown): void;
|
|
329
345
|
} & {
|
|
330
346
|
attachRenderingBackend<B>(backend: B, setup: () => import("@jbrowse/render-core/RenderLifecycleMixin").RenderingBackendCallbacks<B>): void;
|
|
331
347
|
} & {
|
|
332
|
-
|
|
348
|
+
activeSignal: AbortSignal | undefined;
|
|
333
349
|
fetchGeneration: number;
|
|
334
350
|
reloadCounter: number;
|
|
335
351
|
statusWindow: import("@jbrowse/core/util").StatusWindow;
|
|
@@ -349,7 +365,9 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
349
365
|
readonly isLoadingOrCanceled: boolean;
|
|
350
366
|
readonly fetchInert: boolean;
|
|
351
367
|
readonly awaitingPrerequisite: boolean;
|
|
352
|
-
readonly
|
|
368
|
+
readonly awaitingDependentData: boolean;
|
|
369
|
+
} & {
|
|
370
|
+
readonly settingsFetchInputs: unknown;
|
|
353
371
|
} & {
|
|
354
372
|
setError(error?: unknown): void;
|
|
355
373
|
setStatusMessage(status?: import("@jbrowse/core/util").RpcStatus): void;
|
|
@@ -359,8 +377,10 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
359
377
|
} & {
|
|
360
378
|
cancelFetch(): void;
|
|
361
379
|
cancelFetchByUser(): void;
|
|
380
|
+
reload(): void;
|
|
362
381
|
beforeDestroy(): void;
|
|
363
|
-
|
|
382
|
+
beginFetch(signal: AbortSignal): void;
|
|
383
|
+
endFetch(current: boolean): void;
|
|
364
384
|
} & {
|
|
365
385
|
runFetch: (work: (ctx: import("@jbrowse/display-kit/FetchMixin").FetchContext) => Promise<void>) => Promise<void>;
|
|
366
386
|
} & {
|
|
@@ -368,29 +388,44 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
368
388
|
} & {
|
|
369
389
|
readonly host: import("@jbrowse/display-kit/regionHost").RegionHost;
|
|
370
390
|
readonly canvasWidthPx: number;
|
|
391
|
+
readonly settledSubPixelBinBp: number;
|
|
371
392
|
readonly canRender: boolean;
|
|
393
|
+
readonly rendersCanvas: boolean;
|
|
394
|
+
readonly trackVisibleRegions: import("@jbrowse/display-kit/regionHost").VisibleRegion[];
|
|
372
395
|
readonly viewportWithinLoadedData: boolean;
|
|
373
396
|
readonly viewportEmpty: boolean;
|
|
397
|
+
readonly fetchSuspended: boolean;
|
|
374
398
|
readonly layoutReady: boolean;
|
|
375
|
-
|
|
376
|
-
regionHasData(_displayedRegionIndex: number): boolean;
|
|
399
|
+
regionHasData(displayedRegionIndex: number): boolean;
|
|
377
400
|
readonly dataSuperseded: boolean;
|
|
378
401
|
readonly renderBlocks: import("@jbrowse/render-core/renderBlock").RenderBlock[];
|
|
402
|
+
} & {
|
|
403
|
+
readonly fetchInputs: import("@jbrowse/display-kit/fetchInputs").FetchInputs;
|
|
404
|
+
} & {
|
|
405
|
+
readonly regionPayloads: ReadonlyMap<number, unknown>;
|
|
406
|
+
readonly hasRegionData: boolean;
|
|
379
407
|
} & {
|
|
380
408
|
isCacheValid(displayedRegionIndex: number): boolean;
|
|
381
409
|
} & {
|
|
410
|
+
readonly staleSettingsDrawn: boolean;
|
|
382
411
|
readonly dataCurrent: boolean;
|
|
383
412
|
readonly loadedAssembly: import("@jbrowse/core/assemblyManager/assembly").Assembly | undefined;
|
|
413
|
+
} & {
|
|
414
|
+
readonly phaseViewportCurrent: boolean;
|
|
384
415
|
} & {
|
|
385
416
|
readonly svgReady: boolean;
|
|
386
417
|
readonly paintInert: boolean;
|
|
418
|
+
readonly paintSuperseded: boolean;
|
|
387
419
|
readonly displayPhase: import("@jbrowse/render-core/displayPhase").DisplayPhase;
|
|
388
420
|
} & {
|
|
389
|
-
setLoadedRegion(displayedRegionIndex: number, region: import("@jbrowse/core/util").Region,
|
|
421
|
+
setLoadedRegion(displayedRegionIndex: number, region: import("@jbrowse/core/util").Region, payload: import("@jbrowse/display-kit/regionCommit").RegionPayload | undefined, fetchInputs?: import("@jbrowse/display-kit/fetchInputs").FetchInputs): void;
|
|
422
|
+
evictRegionStore(keep: ReadonlySet<number>): void;
|
|
390
423
|
dropLoadedRegion(displayedRegionIndex: number): void;
|
|
391
424
|
clearDisplaySpecificData(): void;
|
|
425
|
+
clearSettingsBakedData(): void;
|
|
392
426
|
} & {
|
|
393
427
|
clearAllRpcData(): void;
|
|
428
|
+
invalidateSettings(): void;
|
|
394
429
|
reload(): void;
|
|
395
430
|
} & {
|
|
396
431
|
fetchNeeded(_needed: IndexedRegion[]): void;
|
|
@@ -401,24 +436,25 @@ declare function makeStateModel(control: PerRegionTestControl, gate: GateOptIns,
|
|
|
401
436
|
} & {
|
|
402
437
|
/** every `fetchNeeded` call, as the region list it was handed */
|
|
403
438
|
fetchLog: IndexedRegion[][];
|
|
404
|
-
loadedData: Map<number, string>;
|
|
405
439
|
/**
|
|
406
|
-
* What `
|
|
407
|
-
* that is the point: a real display's
|
|
408
|
-
* autorun re-runs when
|
|
409
|
-
* by the computed and never invalidate.
|
|
440
|
+
* What `zoomFetchArgs` answers. A volatile, not a `control` knob, and
|
|
441
|
+
* that is the point: a real display's args read view state, so the
|
|
442
|
+
* autorun re-runs when they move. A plain closure value would be
|
|
443
|
+
* memoized by the computed and never invalidate.
|
|
410
444
|
*/
|
|
411
445
|
fetchKey: string;
|
|
412
446
|
} & {
|
|
447
|
+
regionHasData(displayedRegionIndex: number): boolean;
|
|
448
|
+
} & {
|
|
449
|
+
/** the fetched payloads, off the foundation's store */
|
|
450
|
+
readonly loadedData: ReadonlyMap<number, string>;
|
|
413
451
|
readonly gateEnabled: boolean;
|
|
414
|
-
readonly densityGateEnabled: boolean;
|
|
415
452
|
readonly densityTooLarge: boolean;
|
|
416
|
-
|
|
417
|
-
|
|
453
|
+
zoomFetchArgs(): {
|
|
454
|
+
key: string;
|
|
455
|
+
};
|
|
418
456
|
} & {
|
|
419
457
|
setFetchKey(key: string): void;
|
|
420
|
-
setLoaded(displayedRegionIndex: number, value: string): void;
|
|
421
|
-
clearDisplaySpecificData(): void;
|
|
422
458
|
} & {
|
|
423
459
|
fetchNeeded(needed: IndexedRegion[]): Promise<void>;
|
|
424
460
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>;
|
|
@@ -451,12 +487,12 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
451
487
|
name: import("@jbrowse/mobx-state-tree").IType<string | undefined, string, string>;
|
|
452
488
|
view: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
453
489
|
configuration: import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IType<any, any, any>>;
|
|
454
|
-
displayTypeDefaults: import("@jbrowse/mobx-state-tree").IType<Record<string, Record<string, unknown>> | null | undefined, Record<string, Record<string, unknown>>, Record<string, Record<string, unknown>>>;
|
|
455
490
|
}> & {
|
|
456
491
|
rpcManager: unknown;
|
|
457
492
|
assemblyManager: unknown;
|
|
458
493
|
theme: import("@mui/material").Theme;
|
|
459
494
|
palette: import("@jbrowse/core/ui/palette").JBrowsePalette;
|
|
495
|
+
animationMode: import("@jbrowse/core/util").AnimationMode;
|
|
460
496
|
queuedDialogs: import("@jbrowse/display-test-utils").QueuedDialog[];
|
|
461
497
|
selection: unknown;
|
|
462
498
|
notifications: {
|
|
@@ -464,26 +500,40 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
464
500
|
level?: string;
|
|
465
501
|
actions: import("@jbrowse/core/util").SnackAction[];
|
|
466
502
|
}[];
|
|
503
|
+
widgets: Map<string, unknown>;
|
|
504
|
+
openedWidgets: Record<string, unknown>[];
|
|
467
505
|
} & {
|
|
468
506
|
getTrackById: (id: string) => unknown;
|
|
469
|
-
|
|
507
|
+
baseTrackConfig: (id: string) => {
|
|
508
|
+
trackId: string;
|
|
509
|
+
[key: string]: unknown;
|
|
510
|
+
} | undefined;
|
|
470
511
|
} & {
|
|
471
512
|
setView(view: any): any;
|
|
472
513
|
notify(message: string, level?: string, action?: import("@jbrowse/core/util").SnackAction | import("@jbrowse/core/util").SnackAction[]): void;
|
|
473
514
|
notifyError(message: string): void;
|
|
474
515
|
queueDialog(cb: (handleClose: () => void) => import("@jbrowse/display-test-utils").QueuedDialog): void;
|
|
475
516
|
setSelection(thing: unknown): void;
|
|
476
|
-
|
|
517
|
+
addWidget(type: string, id: string, initialState?: Record<string, unknown>): {
|
|
518
|
+
type: string;
|
|
519
|
+
id: string;
|
|
520
|
+
};
|
|
521
|
+
showWidget(_widget: unknown): void;
|
|
522
|
+
} & {
|
|
523
|
+
openWidget(type: string, id: string, initialState?: Record<string, unknown>): {
|
|
524
|
+
type: string;
|
|
525
|
+
id: string;
|
|
526
|
+
};
|
|
477
527
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
478
528
|
name: import("@jbrowse/mobx-state-tree").IType<string | undefined, string, string>;
|
|
479
529
|
view: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
480
530
|
configuration: import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IType<any, any, any>>;
|
|
481
|
-
displayTypeDefaults: import("@jbrowse/mobx-state-tree").IType<Record<string, Record<string, unknown>> | null | undefined, Record<string, Record<string, unknown>>, Record<string, Record<string, unknown>>>;
|
|
482
531
|
}, {
|
|
483
532
|
rpcManager: unknown;
|
|
484
533
|
assemblyManager: unknown;
|
|
485
534
|
theme: import("@mui/material").Theme;
|
|
486
535
|
palette: import("@jbrowse/core/ui/palette").JBrowsePalette;
|
|
536
|
+
animationMode: import("@jbrowse/core/util").AnimationMode;
|
|
487
537
|
queuedDialogs: import("@jbrowse/display-test-utils").QueuedDialog[];
|
|
488
538
|
selection: unknown;
|
|
489
539
|
notifications: {
|
|
@@ -491,16 +541,30 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
491
541
|
level?: string;
|
|
492
542
|
actions: import("@jbrowse/core/util").SnackAction[];
|
|
493
543
|
}[];
|
|
544
|
+
widgets: Map<string, unknown>;
|
|
545
|
+
openedWidgets: Record<string, unknown>[];
|
|
494
546
|
} & {
|
|
495
547
|
getTrackById: (id: string) => unknown;
|
|
496
|
-
|
|
548
|
+
baseTrackConfig: (id: string) => {
|
|
549
|
+
trackId: string;
|
|
550
|
+
[key: string]: unknown;
|
|
551
|
+
} | undefined;
|
|
497
552
|
} & {
|
|
498
553
|
setView(view: any): any;
|
|
499
554
|
notify(message: string, level?: string, action?: import("@jbrowse/core/util").SnackAction | import("@jbrowse/core/util").SnackAction[]): void;
|
|
500
555
|
notifyError(message: string): void;
|
|
501
556
|
queueDialog(cb: (handleClose: () => void) => import("@jbrowse/display-test-utils").QueuedDialog): void;
|
|
502
557
|
setSelection(thing: unknown): void;
|
|
503
|
-
|
|
558
|
+
addWidget(type: string, id: string, initialState?: Record<string, unknown>): {
|
|
559
|
+
type: string;
|
|
560
|
+
id: string;
|
|
561
|
+
};
|
|
562
|
+
showWidget(_widget: unknown): void;
|
|
563
|
+
} & {
|
|
564
|
+
openWidget(type: string, id: string, initialState?: Record<string, unknown>): {
|
|
565
|
+
type: string;
|
|
566
|
+
id: string;
|
|
567
|
+
};
|
|
504
568
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
505
569
|
view: any;
|
|
506
570
|
track: any;
|
|
@@ -703,11 +767,24 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
703
767
|
setError(error?: unknown): void;
|
|
704
768
|
clearHoveredFeature(): void;
|
|
705
769
|
reload(): void;
|
|
770
|
+
applyDisplaySettings(settings: Record<string, unknown>, options?: {
|
|
771
|
+
allowSetters?: boolean;
|
|
772
|
+
}): {
|
|
773
|
+
applied: string[];
|
|
774
|
+
unapplied: import("@jbrowse/core/util/unknownSnapshotKeys").UnappliedSetting[];
|
|
775
|
+
failed: {
|
|
776
|
+
key: string;
|
|
777
|
+
error: string;
|
|
778
|
+
}[];
|
|
779
|
+
};
|
|
706
780
|
} & {
|
|
707
781
|
scrollTop: number;
|
|
708
782
|
} & {
|
|
709
783
|
readonly height: number;
|
|
710
784
|
readonly resizing: boolean;
|
|
785
|
+
readonly scrollContentHeight: number;
|
|
786
|
+
readonly scrollViewportHeight: number;
|
|
787
|
+
} & {
|
|
711
788
|
readonly scrollableHeight: number;
|
|
712
789
|
} & {
|
|
713
790
|
setScrollTop(scrollTop: number): void;
|
|
@@ -719,19 +796,18 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
719
796
|
} & {
|
|
720
797
|
forceLoadTrack: boolean;
|
|
721
798
|
byteEstimate: import("@jbrowse/display-kit/regionTooLargeUtils").ByteEstimate | undefined;
|
|
722
|
-
gateMeasuredViewportKey:
|
|
799
|
+
gateMeasuredViewportKey: unknown;
|
|
723
800
|
} & {
|
|
724
801
|
readonly gateEnabled: boolean;
|
|
725
|
-
readonly densityGateEnabled: boolean;
|
|
726
802
|
readonly byteGateAdapterConfig: Record<string, unknown>;
|
|
727
803
|
readonly configuredFetchSizeLimit: number | undefined;
|
|
728
804
|
readonly densityTooLarge: boolean;
|
|
729
|
-
readonly byteGateAdapterPath:
|
|
805
|
+
readonly byteGateAdapterPath: import("@jbrowse/display-kit/RegionTooLargeMixin").ByteGateAdapterPath;
|
|
730
806
|
readonly adapterFetchSizeLimit: number | undefined;
|
|
731
807
|
readonly configForceLoad: boolean;
|
|
808
|
+
readonly gateViewportSpanBp: number | undefined;
|
|
732
809
|
readonly gateViewport: import("@jbrowse/display-kit/regionTooLargeUtils").GateViewport | undefined;
|
|
733
810
|
} & {
|
|
734
|
-
readonly byteGateAdapterKey: string;
|
|
735
811
|
readonly aboveForceLoadFloor: boolean;
|
|
736
812
|
readonly gateExempt: boolean;
|
|
737
813
|
readonly estimatedFetchBytes: number | undefined;
|
|
@@ -752,29 +828,28 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
752
828
|
} & {
|
|
753
829
|
readonly gateSkipsMeasuredViewport: boolean;
|
|
754
830
|
} & {
|
|
755
|
-
setByteEstimate(measurement: {
|
|
756
|
-
bytes: number;
|
|
757
|
-
viewport: import("@jbrowse/display-kit/regionTooLargeUtils").GateViewport;
|
|
758
|
-
}): void;
|
|
759
831
|
clearByteEstimate(): void;
|
|
832
|
+
clearGateMeasurements(): void;
|
|
760
833
|
setForceLoadTrack(flag: boolean): void;
|
|
761
|
-
reload(): void;
|
|
762
834
|
} & {
|
|
763
|
-
commitFetchBytes(perRegionBytes: (number | undefined)[], issued: import("@jbrowse/display-kit/regionTooLargeUtils").GateFetchState): void;
|
|
835
|
+
commitFetchBytes(perRegionBytes: (number | undefined)[], issued: import("@jbrowse/display-kit/regionTooLargeUtils").GateFetchState, partial?: boolean): void;
|
|
764
836
|
} & {
|
|
765
837
|
forceLoad(): void;
|
|
766
838
|
} & {
|
|
767
839
|
afterAttach(): void;
|
|
768
840
|
} & {
|
|
769
841
|
canvasDrawn: boolean;
|
|
842
|
+
paintCount: number;
|
|
770
843
|
currentRenderingBackend: unknown;
|
|
771
844
|
renderTick: number;
|
|
772
845
|
autorunsInstalled: boolean;
|
|
773
846
|
renderError: unknown;
|
|
847
|
+
offScreen: boolean;
|
|
774
848
|
} & {
|
|
775
849
|
readonly canRender: boolean;
|
|
776
850
|
readonly rendersCanvas: boolean;
|
|
777
851
|
readonly paintInert: boolean;
|
|
852
|
+
readonly paintSuperseded: boolean;
|
|
778
853
|
} & {
|
|
779
854
|
readonly painted: boolean;
|
|
780
855
|
} & {
|
|
@@ -782,11 +857,12 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
782
857
|
resetCanvasDrawn(): void;
|
|
783
858
|
stopRenderingBackend(): void;
|
|
784
859
|
renderNow(): void;
|
|
860
|
+
setOffScreen(offScreen: boolean): void;
|
|
785
861
|
setRenderError(error: unknown): void;
|
|
786
862
|
} & {
|
|
787
863
|
attachRenderingBackend<B>(backend: B, setup: () => import("@jbrowse/render-core/RenderLifecycleMixin").RenderingBackendCallbacks<B>): void;
|
|
788
864
|
} & {
|
|
789
|
-
|
|
865
|
+
activeSignal: AbortSignal | undefined;
|
|
790
866
|
fetchGeneration: number;
|
|
791
867
|
reloadCounter: number;
|
|
792
868
|
statusWindow: import("@jbrowse/core/util").StatusWindow;
|
|
@@ -806,7 +882,9 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
806
882
|
readonly isLoadingOrCanceled: boolean;
|
|
807
883
|
readonly fetchInert: boolean;
|
|
808
884
|
readonly awaitingPrerequisite: boolean;
|
|
809
|
-
readonly
|
|
885
|
+
readonly awaitingDependentData: boolean;
|
|
886
|
+
} & {
|
|
887
|
+
readonly settingsFetchInputs: unknown;
|
|
810
888
|
} & {
|
|
811
889
|
setError(error?: unknown): void;
|
|
812
890
|
setStatusMessage(status?: import("@jbrowse/core/util").RpcStatus): void;
|
|
@@ -816,8 +894,10 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
816
894
|
} & {
|
|
817
895
|
cancelFetch(): void;
|
|
818
896
|
cancelFetchByUser(): void;
|
|
897
|
+
reload(): void;
|
|
819
898
|
beforeDestroy(): void;
|
|
820
|
-
|
|
899
|
+
beginFetch(signal: AbortSignal): void;
|
|
900
|
+
endFetch(current: boolean): void;
|
|
821
901
|
} & {
|
|
822
902
|
runFetch: (work: (ctx: import("@jbrowse/display-kit/FetchMixin").FetchContext) => Promise<void>) => Promise<void>;
|
|
823
903
|
} & {
|
|
@@ -825,29 +905,44 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
825
905
|
} & {
|
|
826
906
|
readonly host: import("@jbrowse/display-kit/regionHost").RegionHost;
|
|
827
907
|
readonly canvasWidthPx: number;
|
|
908
|
+
readonly settledSubPixelBinBp: number;
|
|
828
909
|
readonly canRender: boolean;
|
|
910
|
+
readonly rendersCanvas: boolean;
|
|
911
|
+
readonly trackVisibleRegions: import("@jbrowse/display-kit/regionHost").VisibleRegion[];
|
|
829
912
|
readonly viewportWithinLoadedData: boolean;
|
|
830
913
|
readonly viewportEmpty: boolean;
|
|
914
|
+
readonly fetchSuspended: boolean;
|
|
831
915
|
readonly layoutReady: boolean;
|
|
832
|
-
|
|
833
|
-
regionHasData(_displayedRegionIndex: number): boolean;
|
|
916
|
+
regionHasData(displayedRegionIndex: number): boolean;
|
|
834
917
|
readonly dataSuperseded: boolean;
|
|
835
918
|
readonly renderBlocks: import("@jbrowse/render-core/renderBlock").RenderBlock[];
|
|
919
|
+
} & {
|
|
920
|
+
readonly fetchInputs: import("@jbrowse/display-kit/fetchInputs").FetchInputs;
|
|
921
|
+
} & {
|
|
922
|
+
readonly regionPayloads: ReadonlyMap<number, unknown>;
|
|
923
|
+
readonly hasRegionData: boolean;
|
|
836
924
|
} & {
|
|
837
925
|
isCacheValid(displayedRegionIndex: number): boolean;
|
|
838
926
|
} & {
|
|
927
|
+
readonly staleSettingsDrawn: boolean;
|
|
839
928
|
readonly dataCurrent: boolean;
|
|
840
929
|
readonly loadedAssembly: import("@jbrowse/core/assemblyManager/assembly").Assembly | undefined;
|
|
930
|
+
} & {
|
|
931
|
+
readonly phaseViewportCurrent: boolean;
|
|
841
932
|
} & {
|
|
842
933
|
readonly svgReady: boolean;
|
|
843
934
|
readonly paintInert: boolean;
|
|
935
|
+
readonly paintSuperseded: boolean;
|
|
844
936
|
readonly displayPhase: import("@jbrowse/render-core/displayPhase").DisplayPhase;
|
|
845
937
|
} & {
|
|
846
|
-
setLoadedRegion(displayedRegionIndex: number, region: import("@jbrowse/core/util").Region,
|
|
938
|
+
setLoadedRegion(displayedRegionIndex: number, region: import("@jbrowse/core/util").Region, payload: import("@jbrowse/display-kit/regionCommit").RegionPayload | undefined, fetchInputs?: import("@jbrowse/display-kit/fetchInputs").FetchInputs): void;
|
|
939
|
+
evictRegionStore(keep: ReadonlySet<number>): void;
|
|
847
940
|
dropLoadedRegion(displayedRegionIndex: number): void;
|
|
848
941
|
clearDisplaySpecificData(): void;
|
|
942
|
+
clearSettingsBakedData(): void;
|
|
849
943
|
} & {
|
|
850
944
|
clearAllRpcData(): void;
|
|
945
|
+
invalidateSettings(): void;
|
|
851
946
|
reload(): void;
|
|
852
947
|
} & {
|
|
853
948
|
fetchNeeded(_needed: IndexedRegion[]): void;
|
|
@@ -858,24 +953,25 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
858
953
|
} & {
|
|
859
954
|
/** every `fetchNeeded` call, as the region list it was handed */
|
|
860
955
|
fetchLog: IndexedRegion[][];
|
|
861
|
-
loadedData: Map<number, string>;
|
|
862
956
|
/**
|
|
863
|
-
* What `
|
|
864
|
-
* that is the point: a real display's
|
|
865
|
-
* autorun re-runs when
|
|
866
|
-
* by the computed and never invalidate.
|
|
957
|
+
* What `zoomFetchArgs` answers. A volatile, not a `control` knob, and
|
|
958
|
+
* that is the point: a real display's args read view state, so the
|
|
959
|
+
* autorun re-runs when they move. A plain closure value would be
|
|
960
|
+
* memoized by the computed and never invalidate.
|
|
867
961
|
*/
|
|
868
962
|
fetchKey: string;
|
|
869
963
|
} & {
|
|
964
|
+
regionHasData(displayedRegionIndex: number): boolean;
|
|
965
|
+
} & {
|
|
966
|
+
/** the fetched payloads, off the foundation's store */
|
|
967
|
+
readonly loadedData: ReadonlyMap<number, string>;
|
|
870
968
|
readonly gateEnabled: boolean;
|
|
871
|
-
readonly densityGateEnabled: boolean;
|
|
872
969
|
readonly densityTooLarge: boolean;
|
|
873
|
-
|
|
874
|
-
|
|
970
|
+
zoomFetchArgs(): {
|
|
971
|
+
key: string;
|
|
972
|
+
};
|
|
875
973
|
} & {
|
|
876
974
|
setFetchKey(key: string): void;
|
|
877
|
-
setLoaded(displayedRegionIndex: number, value: string): void;
|
|
878
|
-
clearDisplaySpecificData(): void;
|
|
879
975
|
} & {
|
|
880
976
|
fetchNeeded(needed: IndexedRegion[]): Promise<void>;
|
|
881
977
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<Omit<Omit<Omit<{
|
|
@@ -1077,11 +1173,24 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1077
1173
|
setError(error?: unknown): void;
|
|
1078
1174
|
clearHoveredFeature(): void;
|
|
1079
1175
|
reload(): void;
|
|
1176
|
+
applyDisplaySettings(settings: Record<string, unknown>, options?: {
|
|
1177
|
+
allowSetters?: boolean;
|
|
1178
|
+
}): {
|
|
1179
|
+
applied: string[];
|
|
1180
|
+
unapplied: import("@jbrowse/core/util/unknownSnapshotKeys").UnappliedSetting[];
|
|
1181
|
+
failed: {
|
|
1182
|
+
key: string;
|
|
1183
|
+
error: string;
|
|
1184
|
+
}[];
|
|
1185
|
+
};
|
|
1080
1186
|
} & {
|
|
1081
1187
|
scrollTop: number;
|
|
1082
1188
|
} & {
|
|
1083
1189
|
readonly height: number;
|
|
1084
1190
|
readonly resizing: boolean;
|
|
1191
|
+
readonly scrollContentHeight: number;
|
|
1192
|
+
readonly scrollViewportHeight: number;
|
|
1193
|
+
} & {
|
|
1085
1194
|
readonly scrollableHeight: number;
|
|
1086
1195
|
} & {
|
|
1087
1196
|
setScrollTop(scrollTop: number): void;
|
|
@@ -1093,19 +1202,18 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1093
1202
|
} & {
|
|
1094
1203
|
forceLoadTrack: boolean;
|
|
1095
1204
|
byteEstimate: import("@jbrowse/display-kit/regionTooLargeUtils").ByteEstimate | undefined;
|
|
1096
|
-
gateMeasuredViewportKey:
|
|
1205
|
+
gateMeasuredViewportKey: unknown;
|
|
1097
1206
|
} & {
|
|
1098
1207
|
readonly gateEnabled: boolean;
|
|
1099
|
-
readonly densityGateEnabled: boolean;
|
|
1100
1208
|
readonly byteGateAdapterConfig: Record<string, unknown>;
|
|
1101
1209
|
readonly configuredFetchSizeLimit: number | undefined;
|
|
1102
1210
|
readonly densityTooLarge: boolean;
|
|
1103
|
-
readonly byteGateAdapterPath:
|
|
1211
|
+
readonly byteGateAdapterPath: import("@jbrowse/display-kit/RegionTooLargeMixin").ByteGateAdapterPath;
|
|
1104
1212
|
readonly adapterFetchSizeLimit: number | undefined;
|
|
1105
1213
|
readonly configForceLoad: boolean;
|
|
1214
|
+
readonly gateViewportSpanBp: number | undefined;
|
|
1106
1215
|
readonly gateViewport: import("@jbrowse/display-kit/regionTooLargeUtils").GateViewport | undefined;
|
|
1107
1216
|
} & {
|
|
1108
|
-
readonly byteGateAdapterKey: string;
|
|
1109
1217
|
readonly aboveForceLoadFloor: boolean;
|
|
1110
1218
|
readonly gateExempt: boolean;
|
|
1111
1219
|
readonly estimatedFetchBytes: number | undefined;
|
|
@@ -1126,29 +1234,28 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1126
1234
|
} & {
|
|
1127
1235
|
readonly gateSkipsMeasuredViewport: boolean;
|
|
1128
1236
|
} & {
|
|
1129
|
-
setByteEstimate(measurement: {
|
|
1130
|
-
bytes: number;
|
|
1131
|
-
viewport: import("@jbrowse/display-kit/regionTooLargeUtils").GateViewport;
|
|
1132
|
-
}): void;
|
|
1133
1237
|
clearByteEstimate(): void;
|
|
1238
|
+
clearGateMeasurements(): void;
|
|
1134
1239
|
setForceLoadTrack(flag: boolean): void;
|
|
1135
|
-
reload(): void;
|
|
1136
1240
|
} & {
|
|
1137
|
-
commitFetchBytes(perRegionBytes: (number | undefined)[], issued: import("@jbrowse/display-kit/regionTooLargeUtils").GateFetchState): void;
|
|
1241
|
+
commitFetchBytes(perRegionBytes: (number | undefined)[], issued: import("@jbrowse/display-kit/regionTooLargeUtils").GateFetchState, partial?: boolean): void;
|
|
1138
1242
|
} & {
|
|
1139
1243
|
forceLoad(): void;
|
|
1140
1244
|
} & {
|
|
1141
1245
|
afterAttach(): void;
|
|
1142
1246
|
} & {
|
|
1143
1247
|
canvasDrawn: boolean;
|
|
1248
|
+
paintCount: number;
|
|
1144
1249
|
currentRenderingBackend: unknown;
|
|
1145
1250
|
renderTick: number;
|
|
1146
1251
|
autorunsInstalled: boolean;
|
|
1147
1252
|
renderError: unknown;
|
|
1253
|
+
offScreen: boolean;
|
|
1148
1254
|
} & {
|
|
1149
1255
|
readonly canRender: boolean;
|
|
1150
1256
|
readonly rendersCanvas: boolean;
|
|
1151
1257
|
readonly paintInert: boolean;
|
|
1258
|
+
readonly paintSuperseded: boolean;
|
|
1152
1259
|
} & {
|
|
1153
1260
|
readonly painted: boolean;
|
|
1154
1261
|
} & {
|
|
@@ -1156,11 +1263,12 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1156
1263
|
resetCanvasDrawn(): void;
|
|
1157
1264
|
stopRenderingBackend(): void;
|
|
1158
1265
|
renderNow(): void;
|
|
1266
|
+
setOffScreen(offScreen: boolean): void;
|
|
1159
1267
|
setRenderError(error: unknown): void;
|
|
1160
1268
|
} & {
|
|
1161
1269
|
attachRenderingBackend<B>(backend: B, setup: () => import("@jbrowse/render-core/RenderLifecycleMixin").RenderingBackendCallbacks<B>): void;
|
|
1162
1270
|
} & {
|
|
1163
|
-
|
|
1271
|
+
activeSignal: AbortSignal | undefined;
|
|
1164
1272
|
fetchGeneration: number;
|
|
1165
1273
|
reloadCounter: number;
|
|
1166
1274
|
statusWindow: import("@jbrowse/core/util").StatusWindow;
|
|
@@ -1180,7 +1288,9 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1180
1288
|
readonly isLoadingOrCanceled: boolean;
|
|
1181
1289
|
readonly fetchInert: boolean;
|
|
1182
1290
|
readonly awaitingPrerequisite: boolean;
|
|
1183
|
-
readonly
|
|
1291
|
+
readonly awaitingDependentData: boolean;
|
|
1292
|
+
} & {
|
|
1293
|
+
readonly settingsFetchInputs: unknown;
|
|
1184
1294
|
} & {
|
|
1185
1295
|
setError(error?: unknown): void;
|
|
1186
1296
|
setStatusMessage(status?: import("@jbrowse/core/util").RpcStatus): void;
|
|
@@ -1190,8 +1300,10 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1190
1300
|
} & {
|
|
1191
1301
|
cancelFetch(): void;
|
|
1192
1302
|
cancelFetchByUser(): void;
|
|
1303
|
+
reload(): void;
|
|
1193
1304
|
beforeDestroy(): void;
|
|
1194
|
-
|
|
1305
|
+
beginFetch(signal: AbortSignal): void;
|
|
1306
|
+
endFetch(current: boolean): void;
|
|
1195
1307
|
} & {
|
|
1196
1308
|
runFetch: (work: (ctx: import("@jbrowse/display-kit/FetchMixin").FetchContext) => Promise<void>) => Promise<void>;
|
|
1197
1309
|
} & {
|
|
@@ -1199,29 +1311,44 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1199
1311
|
} & {
|
|
1200
1312
|
readonly host: import("@jbrowse/display-kit/regionHost").RegionHost;
|
|
1201
1313
|
readonly canvasWidthPx: number;
|
|
1314
|
+
readonly settledSubPixelBinBp: number;
|
|
1202
1315
|
readonly canRender: boolean;
|
|
1316
|
+
readonly rendersCanvas: boolean;
|
|
1317
|
+
readonly trackVisibleRegions: import("@jbrowse/display-kit/regionHost").VisibleRegion[];
|
|
1203
1318
|
readonly viewportWithinLoadedData: boolean;
|
|
1204
1319
|
readonly viewportEmpty: boolean;
|
|
1320
|
+
readonly fetchSuspended: boolean;
|
|
1205
1321
|
readonly layoutReady: boolean;
|
|
1206
|
-
|
|
1207
|
-
regionHasData(_displayedRegionIndex: number): boolean;
|
|
1322
|
+
regionHasData(displayedRegionIndex: number): boolean;
|
|
1208
1323
|
readonly dataSuperseded: boolean;
|
|
1209
1324
|
readonly renderBlocks: import("@jbrowse/render-core/renderBlock").RenderBlock[];
|
|
1325
|
+
} & {
|
|
1326
|
+
readonly fetchInputs: import("@jbrowse/display-kit/fetchInputs").FetchInputs;
|
|
1327
|
+
} & {
|
|
1328
|
+
readonly regionPayloads: ReadonlyMap<number, unknown>;
|
|
1329
|
+
readonly hasRegionData: boolean;
|
|
1210
1330
|
} & {
|
|
1211
1331
|
isCacheValid(displayedRegionIndex: number): boolean;
|
|
1212
1332
|
} & {
|
|
1333
|
+
readonly staleSettingsDrawn: boolean;
|
|
1213
1334
|
readonly dataCurrent: boolean;
|
|
1214
1335
|
readonly loadedAssembly: import("@jbrowse/core/assemblyManager/assembly").Assembly | undefined;
|
|
1336
|
+
} & {
|
|
1337
|
+
readonly phaseViewportCurrent: boolean;
|
|
1215
1338
|
} & {
|
|
1216
1339
|
readonly svgReady: boolean;
|
|
1217
1340
|
readonly paintInert: boolean;
|
|
1341
|
+
readonly paintSuperseded: boolean;
|
|
1218
1342
|
readonly displayPhase: import("@jbrowse/render-core/displayPhase").DisplayPhase;
|
|
1219
1343
|
} & {
|
|
1220
|
-
setLoadedRegion(displayedRegionIndex: number, region: import("@jbrowse/core/util").Region,
|
|
1344
|
+
setLoadedRegion(displayedRegionIndex: number, region: import("@jbrowse/core/util").Region, payload: import("@jbrowse/display-kit/regionCommit").RegionPayload | undefined, fetchInputs?: import("@jbrowse/display-kit/fetchInputs").FetchInputs): void;
|
|
1345
|
+
evictRegionStore(keep: ReadonlySet<number>): void;
|
|
1221
1346
|
dropLoadedRegion(displayedRegionIndex: number): void;
|
|
1222
1347
|
clearDisplaySpecificData(): void;
|
|
1348
|
+
clearSettingsBakedData(): void;
|
|
1223
1349
|
} & {
|
|
1224
1350
|
clearAllRpcData(): void;
|
|
1351
|
+
invalidateSettings(): void;
|
|
1225
1352
|
reload(): void;
|
|
1226
1353
|
} & {
|
|
1227
1354
|
fetchNeeded(_needed: IndexedRegion[]): void;
|
|
@@ -1232,24 +1359,25 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1232
1359
|
} & {
|
|
1233
1360
|
/** every `fetchNeeded` call, as the region list it was handed */
|
|
1234
1361
|
fetchLog: IndexedRegion[][];
|
|
1235
|
-
loadedData: Map<number, string>;
|
|
1236
1362
|
/**
|
|
1237
|
-
* What `
|
|
1238
|
-
* that is the point: a real display's
|
|
1239
|
-
* autorun re-runs when
|
|
1240
|
-
* by the computed and never invalidate.
|
|
1363
|
+
* What `zoomFetchArgs` answers. A volatile, not a `control` knob, and
|
|
1364
|
+
* that is the point: a real display's args read view state, so the
|
|
1365
|
+
* autorun re-runs when they move. A plain closure value would be
|
|
1366
|
+
* memoized by the computed and never invalidate.
|
|
1241
1367
|
*/
|
|
1242
1368
|
fetchKey: string;
|
|
1243
1369
|
} & {
|
|
1370
|
+
regionHasData(displayedRegionIndex: number): boolean;
|
|
1371
|
+
} & {
|
|
1372
|
+
/** the fetched payloads, off the foundation's store */
|
|
1373
|
+
readonly loadedData: ReadonlyMap<number, string>;
|
|
1244
1374
|
readonly gateEnabled: boolean;
|
|
1245
|
-
readonly densityGateEnabled: boolean;
|
|
1246
1375
|
readonly densityTooLarge: boolean;
|
|
1247
|
-
|
|
1248
|
-
|
|
1376
|
+
zoomFetchArgs(): {
|
|
1377
|
+
key: string;
|
|
1378
|
+
};
|
|
1249
1379
|
} & {
|
|
1250
1380
|
setFetchKey(key: string): void;
|
|
1251
|
-
setLoaded(displayedRegionIndex: number, value: string): void;
|
|
1252
|
-
clearDisplaySpecificData(): void;
|
|
1253
1381
|
} & {
|
|
1254
1382
|
fetchNeeded(needed: IndexedRegion[]): Promise<void>;
|
|
1255
1383
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
@@ -1257,7 +1385,7 @@ export declare function createPerRegionTestEnvironment({ measuresBytes, gate, es
|
|
|
1257
1385
|
};
|
|
1258
1386
|
mockRpcCall: jest.Mock<any, any, any>;
|
|
1259
1387
|
pluginManager: import("@jbrowse/core/PluginManager").default;
|
|
1260
|
-
trackConfig:
|
|
1388
|
+
trackConfig: import("@jbrowse/core/configuration").PluggableConfigNode & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/PluginManager").PluggableConfigSchemaType>;
|
|
1261
1389
|
control: PerRegionTestControl;
|
|
1262
1390
|
};
|
|
1263
1391
|
export {};
|