@jbrowse/plugin-linear-genome-view 2.11.2 → 2.12.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.
- package/dist/BaseLinearDisplay/components/Block.js +3 -3
- package/dist/BaseLinearDisplay/components/BlockMsg.js +1 -1
- package/dist/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +22 -24
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +2 -2
- package/dist/BaseLinearDisplay/models/FeatureDensityMixin.js +1 -1
- package/dist/BaseLinearDisplay/models/TrackHeightMixin.js +1 -1
- package/dist/BaseLinearDisplay/models/autorunFeatureDensityStats.js +1 -1
- package/dist/BaseLinearDisplay/models/renderSvg.js +1 -2
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +4 -4
- package/dist/BaseLinearDisplay/models/serverSideRenderedBlock.js +1 -2
- package/dist/BaseLinearDisplay/models/util.js +3 -4
- package/dist/BasicTrack/index.js +1 -1
- package/dist/FeatureTrack/index.js +1 -1
- package/dist/LaunchLinearGenomeView/index.js +1 -1
- package/dist/LinearBareDisplay/configSchema.js +1 -2
- package/dist/LinearBareDisplay/index.js +1 -1
- package/dist/LinearBareDisplay/model.d.ts +26 -33
- package/dist/LinearBareDisplay/model.js +1 -2
- package/dist/LinearBasicDisplay/index.js +1 -1
- package/dist/LinearBasicDisplay/model.d.ts +52 -53
- package/dist/LinearGenomeView/components/ExportSvgDialog.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/AutocompleteTextField.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/EndAdornment.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/HelpDialog.js +1 -1
- package/dist/LinearGenomeView/components/RefNameAutocomplete/util.js +3 -4
- package/dist/LinearGenomeView/components/RubberbandSpan.js +1 -1
- package/dist/LinearGenomeView/components/SearchResultsDialog.js +1 -1
- package/dist/LinearGenomeView/components/SearchResultsTable.js +1 -1
- package/dist/LinearGenomeView/components/TrackLabel.js +4 -4
- package/dist/LinearGenomeView/components/TrackRenderingContainer.js +10 -5
- package/dist/LinearGenomeView/components/hooks.d.ts +2 -2
- package/dist/LinearGenomeView/components/hooks.js +11 -17
- package/dist/LinearGenomeView/components/util.js +4 -5
- package/dist/LinearGenomeView/index.js +1 -1
- package/dist/LinearGenomeView/model.d.ts +12 -30
- package/dist/LinearGenomeView/model.js +4 -4
- package/dist/LinearGenomeView/svgcomponents/SVGBackground.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGHeader.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGLinearGenomeView.js +2 -2
- package/dist/LinearGenomeView/svgcomponents/SVGRegionSeparators.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGRuler.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGScalebar.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTrackLabel.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/SVGTracks.js +1 -1
- package/dist/LinearGenomeView/svgcomponents/util.js +1 -2
- package/dist/LinearGenomeView/util.d.ts +3 -3
- package/dist/LinearGenomeView/util.js +4 -5
- package/dist/index.d.ts +81 -2352
- package/dist/searchUtils.js +5 -6
- package/esm/BaseLinearDisplay/models/BaseLinearDisplayModel.d.ts +22 -24
- package/esm/BaseLinearDisplay/models/FeatureDensityMixin.d.ts +2 -2
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +4 -4
- package/esm/LinearBareDisplay/model.d.ts +26 -33
- package/esm/LinearBasicDisplay/model.d.ts +52 -53
- package/esm/LinearGenomeView/components/TrackLabel.js +4 -4
- package/esm/LinearGenomeView/components/TrackRenderingContainer.js +10 -5
- package/esm/LinearGenomeView/components/hooks.d.ts +2 -2
- package/esm/LinearGenomeView/components/hooks.js +8 -10
- package/esm/LinearGenomeView/model.d.ts +12 -30
- package/esm/LinearGenomeView/model.js +3 -3
- package/esm/LinearGenomeView/util.d.ts +3 -3
- package/esm/index.d.ts +81 -2352
- package/package.json +2 -4
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
2
|
import { MenuItem } from '@jbrowse/core/ui';
|
|
4
3
|
import { Instance } from 'mobx-state-tree';
|
|
@@ -40,7 +39,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
40
39
|
}, {
|
|
41
40
|
renderInProgress: AbortController | undefined;
|
|
42
41
|
filled: boolean;
|
|
43
|
-
reactElement: import("react").ReactElement
|
|
42
|
+
reactElement: import("react").ReactElement | undefined;
|
|
44
43
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
45
44
|
layout: any;
|
|
46
45
|
status: string;
|
|
@@ -51,12 +50,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
51
50
|
model: {
|
|
52
51
|
error?: unknown;
|
|
53
52
|
reload: () => void;
|
|
54
|
-
message: import("react").ReactNode;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
status?: string | undefined;
|
|
59
|
-
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
53
|
+
message: import("react").ReactNode;
|
|
54
|
+
filled?: boolean;
|
|
55
|
+
status?: string;
|
|
56
|
+
reactElement?: import("react").ReactElement;
|
|
60
57
|
};
|
|
61
58
|
}) => import("react").JSX.Element | undefined;
|
|
62
59
|
renderProps: any;
|
|
@@ -64,12 +61,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
64
61
|
doReload(): void;
|
|
65
62
|
afterAttach(): void;
|
|
66
63
|
setStatus(message: string): void;
|
|
67
|
-
setLoading(abortController: AbortController): void;
|
|
68
|
-
* #getter
|
|
69
|
-
*/
|
|
64
|
+
setLoading(abortController: AbortController): void;
|
|
70
65
|
setMessage(messageText: string): void;
|
|
71
66
|
setRendered(props: {
|
|
72
|
-
reactElement: import("react").ReactElement
|
|
67
|
+
reactElement: import("react").ReactElement;
|
|
73
68
|
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
74
69
|
layout: any;
|
|
75
70
|
maxHeightReached: boolean;
|
|
@@ -97,9 +92,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
97
92
|
};
|
|
98
93
|
mouseover: {
|
|
99
94
|
type: string;
|
|
100
|
-
description: string;
|
|
101
|
-
* #property
|
|
102
|
-
*/
|
|
95
|
+
description: string;
|
|
103
96
|
defaultValue: string;
|
|
104
97
|
contextVariable: string[];
|
|
105
98
|
};
|
|
@@ -153,18 +146,20 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
153
146
|
error: unknown;
|
|
154
147
|
message: string | undefined;
|
|
155
148
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
156
|
-
id: import("mobx-state-tree"
|
|
157
|
-
type: import("mobx-state-tree").ISimpleType<string>; /**
|
|
149
|
+
id: import("mobx-state-tree" /**
|
|
158
150
|
* #property
|
|
159
|
-
*/
|
|
151
|
+
*/).IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
152
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
160
153
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
161
154
|
}, {
|
|
162
155
|
rendererTypeName: string;
|
|
163
156
|
error: unknown;
|
|
164
157
|
message: string | undefined;
|
|
165
158
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
166
|
-
onHorizontalScroll?: Function
|
|
167
|
-
blockState
|
|
159
|
+
onHorizontalScroll?: Function;
|
|
160
|
+
blockState? /**
|
|
161
|
+
* #getter
|
|
162
|
+
*/: Record<string, any>;
|
|
168
163
|
}>;
|
|
169
164
|
readonly DisplayBlurb: import("react").FC<{
|
|
170
165
|
model: {
|
|
@@ -184,19 +179,17 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
184
179
|
error: unknown;
|
|
185
180
|
message: string | undefined;
|
|
186
181
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
187
|
-
}> | null;
|
|
188
|
-
* #getter
|
|
189
|
-
*/
|
|
182
|
+
}> | null;
|
|
190
183
|
readonly adapterConfig: any;
|
|
191
184
|
readonly parentTrack: any;
|
|
192
185
|
renderProps(): any;
|
|
193
186
|
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
194
|
-
readonly DisplayMessageComponent: import("react").FC<any
|
|
187
|
+
readonly DisplayMessageComponent: undefined | import("react").FC<any>;
|
|
195
188
|
trackMenuItems(): MenuItem[];
|
|
196
189
|
readonly viewMenuActions: MenuItem[];
|
|
197
190
|
regionCannotBeRendered(): null;
|
|
198
191
|
} & {
|
|
199
|
-
setMessage(arg?: string
|
|
192
|
+
setMessage(arg?: string): void;
|
|
200
193
|
setError(error?: unknown): void;
|
|
201
194
|
setRpcDriverName(rpcDriverName: string): void;
|
|
202
195
|
reload(): void;
|
|
@@ -209,8 +202,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
209
202
|
setHeight(displayHeight: number): number;
|
|
210
203
|
resizeHeight(distance: number): number;
|
|
211
204
|
} & {
|
|
212
|
-
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats
|
|
213
|
-
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats
|
|
205
|
+
featureDensityStatsP: undefined | Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
206
|
+
featureDensityStats: undefined | import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats;
|
|
214
207
|
currStatsBpPerPx: number;
|
|
215
208
|
} & {
|
|
216
209
|
readonly currentBytesRequested: number;
|
|
@@ -222,22 +215,20 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
222
215
|
afterAttach(): void;
|
|
223
216
|
} & {
|
|
224
217
|
setCurrStatsBpPerPx(n: number): void;
|
|
225
|
-
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats
|
|
218
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
226
219
|
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
227
220
|
setFeatureDensityStatsP(arg: any): void;
|
|
228
|
-
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats
|
|
221
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats): void;
|
|
229
222
|
clearFeatureDensityStats(): void;
|
|
230
223
|
} & {
|
|
231
|
-
readonly regionTooLarge: boolean;
|
|
232
|
-
* #method
|
|
233
|
-
*/
|
|
224
|
+
readonly regionTooLarge: boolean;
|
|
234
225
|
readonly regionTooLargeReason: string;
|
|
235
226
|
} & {
|
|
236
227
|
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
237
228
|
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
238
229
|
} & {
|
|
239
|
-
featureIdUnderMouse:
|
|
240
|
-
contextMenuFeature: import("@jbrowse/core/util").Feature
|
|
230
|
+
featureIdUnderMouse: undefined | string;
|
|
231
|
+
contextMenuFeature: undefined | import("@jbrowse/core/util").Feature;
|
|
241
232
|
} & {
|
|
242
233
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
243
234
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
@@ -245,7 +236,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
245
236
|
readonly renderDelay: number;
|
|
246
237
|
readonly TooltipComponent: import("react").FC<any>;
|
|
247
238
|
readonly selectedFeatureId: string | undefined;
|
|
248
|
-
readonly DisplayMessageComponent: import("react").FC<any
|
|
239
|
+
readonly DisplayMessageComponent: undefined | import("react").FC<any>;
|
|
249
240
|
} & {
|
|
250
241
|
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
251
242
|
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
@@ -258,8 +249,8 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
258
249
|
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
259
250
|
navToFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
260
251
|
clearFeatureSelection(): void;
|
|
261
|
-
setFeatureIdUnderMouse(feature?: string
|
|
262
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature
|
|
252
|
+
setFeatureIdUnderMouse(feature?: string): void;
|
|
253
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature): void;
|
|
263
254
|
} & {
|
|
264
255
|
reload(): Promise<void>;
|
|
265
256
|
} & {
|
|
@@ -301,7 +292,15 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
301
292
|
readonly rendererConfig: {
|
|
302
293
|
[x: string]: any;
|
|
303
294
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
304
|
-
setSubschema(slotName: string, data: unknown):
|
|
295
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
296
|
+
[x: string]: any;
|
|
297
|
+
} & import("mobx-state-tree/dist/internal" /**
|
|
298
|
+
* #property
|
|
299
|
+
*/).NonEmptyObject & {
|
|
300
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
301
|
+
[x: string]: any;
|
|
302
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
303
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
305
304
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
306
305
|
} & {
|
|
307
306
|
/**
|
|
@@ -332,7 +331,13 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
332
331
|
config: {
|
|
333
332
|
[x: string]: any;
|
|
334
333
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
335
|
-
setSubschema(slotName: string, data: unknown):
|
|
334
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
335
|
+
[x: string]: any;
|
|
336
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
337
|
+
setSubschema(slotName: string, data: Record<string, unknown>): Record<string, unknown> | ({
|
|
338
|
+
[x: string]: any;
|
|
339
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
340
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
336
341
|
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
337
342
|
filters: SerializableFilterChain;
|
|
338
343
|
};
|
|
@@ -370,7 +375,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
370
375
|
}, {
|
|
371
376
|
renderInProgress: AbortController | undefined;
|
|
372
377
|
filled: boolean;
|
|
373
|
-
reactElement: import("react").ReactElement
|
|
378
|
+
reactElement: import("react").ReactElement | undefined;
|
|
374
379
|
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
375
380
|
layout: any;
|
|
376
381
|
status: string;
|
|
@@ -381,12 +386,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
381
386
|
model: {
|
|
382
387
|
error?: unknown;
|
|
383
388
|
reload: () => void;
|
|
384
|
-
message: import("react").ReactNode;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
status?: string | undefined;
|
|
389
|
-
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
389
|
+
message: import("react").ReactNode;
|
|
390
|
+
filled?: boolean;
|
|
391
|
+
status?: string;
|
|
392
|
+
reactElement?: import("react").ReactElement;
|
|
390
393
|
};
|
|
391
394
|
}) => import("react").JSX.Element | undefined;
|
|
392
395
|
renderProps: any;
|
|
@@ -394,12 +397,10 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
394
397
|
doReload(): void;
|
|
395
398
|
afterAttach(): void;
|
|
396
399
|
setStatus(message: string): void;
|
|
397
|
-
setLoading(abortController: AbortController): void;
|
|
398
|
-
* #getter
|
|
399
|
-
*/
|
|
400
|
+
setLoading(abortController: AbortController): void;
|
|
400
401
|
setMessage(messageText: string): void;
|
|
401
402
|
setRendered(props: {
|
|
402
|
-
reactElement: import("react").ReactElement
|
|
403
|
+
reactElement: import("react").ReactElement;
|
|
403
404
|
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
404
405
|
layout: any;
|
|
405
406
|
maxHeightReached: boolean;
|
|
@@ -427,9 +428,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
427
428
|
};
|
|
428
429
|
mouseover: {
|
|
429
430
|
type: string;
|
|
430
|
-
description: string;
|
|
431
|
-
* #property
|
|
432
|
-
*/
|
|
431
|
+
description: string;
|
|
433
432
|
defaultValue: string;
|
|
434
433
|
contextVariable: string[];
|
|
435
434
|
};
|
|
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.default = ExportSvgDialog;
|
|
26
27
|
const react_1 = __importStar(require("react"));
|
|
27
28
|
const material_1 = require("@mui/material");
|
|
28
29
|
const ui_1 = require("@jbrowse/core/ui");
|
|
@@ -84,4 +85,3 @@ function ExportSvgDialog({ model, handleClose, }) {
|
|
|
84
85
|
}
|
|
85
86
|
} }, "Submit"))));
|
|
86
87
|
}
|
|
87
|
-
exports.default = ExportSvgDialog;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = AutocompleteTextField;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
// locals
|
|
@@ -18,4 +19,3 @@ function AutocompleteTextField({ TextFieldProps, inputBoxVal, params, showHelp,
|
|
|
18
19
|
endAdornment: (react_1.default.createElement(EndAdornment_1.default, { showHelp: showHelp, endAdornment: params.InputProps.endAdornment })),
|
|
19
20
|
}, placeholder: "Search for location", onChange: e => setCurrentSearch(e.target.value) }));
|
|
20
21
|
}
|
|
21
|
-
exports.default = AutocompleteTextField;
|
|
@@ -26,6 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = EndAdornment;
|
|
29
30
|
const react_1 = __importStar(require("react"));
|
|
30
31
|
const material_1 = require("@mui/material");
|
|
31
32
|
// icons
|
|
@@ -48,4 +49,3 @@ function EndAdornment({ showHelp, endAdornment, }) {
|
|
|
48
49
|
showHelp ? react_1.default.createElement(HelpAdornment, null) : null),
|
|
49
50
|
endAdornment));
|
|
50
51
|
}
|
|
51
|
-
exports.default = EndAdornment;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = HelpDialog;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const ui_1 = require("@jbrowse/core/ui");
|
|
@@ -45,4 +46,3 @@ function HelpDialog({ handleClose, }) {
|
|
|
45
46
|
react_1.default.createElement(material_1.DialogActions, null,
|
|
46
47
|
react_1.default.createElement(material_1.Button, { onClick: () => handleClose(), color: "primary" }, "Close"))));
|
|
47
48
|
}
|
|
48
|
-
exports.default = HelpDialog;
|
|
@@ -3,7 +3,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getFiltered = getFiltered;
|
|
7
|
+
exports.aggregateResults = aggregateResults;
|
|
8
|
+
exports.getDeduplicatedResult = getDeduplicatedResult;
|
|
7
9
|
const BaseResults_1 = __importDefault(require("@jbrowse/core/TextSearch/BaseResults"));
|
|
8
10
|
// filter so don't need re-filtering
|
|
9
11
|
function filterOptions(options, searchQuery) {
|
|
@@ -28,7 +30,6 @@ function getFiltered(opts, inputValue) {
|
|
|
28
30
|
: []),
|
|
29
31
|
];
|
|
30
32
|
}
|
|
31
|
-
exports.getFiltered = getFiltered;
|
|
32
33
|
function aggregateResults(results) {
|
|
33
34
|
const m = {};
|
|
34
35
|
for (const result of results) {
|
|
@@ -40,7 +41,6 @@ function aggregateResults(results) {
|
|
|
40
41
|
}
|
|
41
42
|
return m;
|
|
42
43
|
}
|
|
43
|
-
exports.aggregateResults = aggregateResults;
|
|
44
44
|
function getDeduplicatedResult(results) {
|
|
45
45
|
return Object.entries(aggregateResults(results)).map(([displayString, results]) => results.length === 1
|
|
46
46
|
? {
|
|
@@ -55,4 +55,3 @@ function getDeduplicatedResult(results) {
|
|
|
55
55
|
}),
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
exports.getDeduplicatedResult = getDeduplicatedResult;
|
|
@@ -23,6 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.default = RubberbandSpan;
|
|
26
27
|
const react_1 = __importStar(require("react"));
|
|
27
28
|
const mui_1 = require("tss-react/mui");
|
|
28
29
|
const material_1 = require("@mui/material");
|
|
@@ -72,4 +73,3 @@ function RubberbandSpan({ leftBpOffset, rightBpOffset, numOfBpSelected, left, wi
|
|
|
72
73
|
(0, util_1.toLocale)(numOfBpSelected),
|
|
73
74
|
" bp")) : null)));
|
|
74
75
|
}
|
|
75
|
-
exports.default = RubberbandSpan;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = SearchResultsDialog;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const ui_1 = require("@jbrowse/core/ui");
|
|
8
9
|
const material_1 = require("@mui/material");
|
|
@@ -20,4 +21,3 @@ function SearchResultsDialog({ model, assemblyName, searchQuery, searchResults,
|
|
|
20
21
|
react_1.default.createElement(material_1.DialogActions, null,
|
|
21
22
|
react_1.default.createElement(material_1.Button, { onClick: () => handleClose(), color: "primary" }, "Cancel"))));
|
|
22
23
|
}
|
|
23
|
-
exports.default = SearchResultsDialog;
|
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.default = SearchResultsTable;
|
|
6
7
|
const react_1 = __importDefault(require("react"));
|
|
7
8
|
const material_1 = require("@mui/material");
|
|
8
9
|
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
@@ -79,4 +80,3 @@ function SearchResultsTable({ searchResults, assemblyName: optAssemblyName, mode
|
|
|
79
80
|
handleClose();
|
|
80
81
|
}, color: "primary", variant: "contained" }, "Go")))))))));
|
|
81
82
|
}
|
|
82
|
-
exports.default = SearchResultsTable;
|
|
@@ -30,10 +30,7 @@ const useStyles = (0, mui_1.makeStyles)()(theme => ({
|
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
trackName: {
|
|
33
|
-
margin: '0 auto',
|
|
34
|
-
width: '90%',
|
|
35
33
|
fontSize: '0.8rem',
|
|
36
|
-
pointerEvents: 'none',
|
|
37
34
|
},
|
|
38
35
|
iconButton: {
|
|
39
36
|
padding: theme.spacing(1),
|
|
@@ -87,7 +84,10 @@ const TrackLabel = (0, mobx_react_1.observer)(react_1.default.forwardRef(functio
|
|
|
87
84
|
react_1.default.createElement(TrackLabelDragHandle_1.default, { track: track, trackId: trackId, view: view }),
|
|
88
85
|
react_1.default.createElement(material_1.IconButton, { onClick: () => view.hideTrack(trackId), className: classes.iconButton, title: "close this track" },
|
|
89
86
|
react_1.default.createElement(Close_1.default, { fontSize: "small" })),
|
|
90
|
-
react_1.default.createElement(material_1.Typography, { variant: "body1", component: "span", className: classes.trackName
|
|
87
|
+
react_1.default.createElement(material_1.Typography, { variant: "body1", component: "span", className: classes.trackName, onMouseDown: event => {
|
|
88
|
+
// avoid becoming a click-and-drag action on the lgv
|
|
89
|
+
event.stopPropagation();
|
|
90
|
+
} },
|
|
91
91
|
react_1.default.createElement(ui_1.SanitizedHTML, { html: [trackName, minimized ? '(minimized)' : '']
|
|
92
92
|
.filter(f => !!f)
|
|
93
93
|
.join(' ') })),
|
|
@@ -51,19 +51,24 @@ const TrackRenderingContainer = (0, mobx_react_1.observer)(function ({ model, tr
|
|
|
51
51
|
const { classes } = useStyles();
|
|
52
52
|
const display = track.displays[0];
|
|
53
53
|
const { height, RenderingComponent, DisplayBlurb } = display;
|
|
54
|
+
const { trackRefs, id, scaleFactor } = model;
|
|
54
55
|
const trackId = (0, configuration_1.getConf)(track, 'trackId');
|
|
55
56
|
const ref = (0, react_1.useRef)(null);
|
|
56
57
|
const minimized = track.minimized;
|
|
57
58
|
(0, react_1.useEffect)(() => {
|
|
58
59
|
if (ref.current) {
|
|
59
|
-
|
|
60
|
+
trackRefs[trackId] = ref.current;
|
|
60
61
|
}
|
|
61
62
|
return () => {
|
|
62
|
-
delete
|
|
63
|
+
delete trackRefs[trackId];
|
|
63
64
|
};
|
|
64
|
-
}, [
|
|
65
|
-
return (react_1.default.createElement("div", { className: classes.trackRenderingContainer, style: {
|
|
66
|
-
|
|
65
|
+
}, [trackRefs, trackId]);
|
|
66
|
+
return (react_1.default.createElement("div", { className: classes.trackRenderingContainer, style: {
|
|
67
|
+
height: minimized ? 20 : height,
|
|
68
|
+
}, onScroll: evt => display.setScrollTop(evt.currentTarget.scrollTop), onDragEnter: onDragEnter, "data-testid": `trackRenderingContainer-${id}-${trackId}` }, !minimized ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
69
|
+
react_1.default.createElement("div", { ref: ref, className: classes.renderingComponentContainer, style: {
|
|
70
|
+
transform: scaleFactor !== 1 ? `scaleX(${scaleFactor})` : undefined,
|
|
71
|
+
} },
|
|
67
72
|
react_1.default.createElement(react_1.Suspense, { fallback: react_1.default.createElement(ui_1.LoadingEllipses, null) },
|
|
68
73
|
react_1.default.createElement(RenderingComponent, { model: display, onHorizontalScroll: model.horizontalScroll }))),
|
|
69
74
|
DisplayBlurb ? (react_1.default.createElement("div", { style: {
|
|
@@ -42,7 +42,7 @@ export declare function useRangeSelect(ref: React.RefObject<HTMLDivElement>, mod
|
|
|
42
42
|
offset: number;
|
|
43
43
|
start: number;
|
|
44
44
|
end: number;
|
|
45
|
-
reversed
|
|
45
|
+
reversed?: boolean;
|
|
46
46
|
};
|
|
47
47
|
rightBpOffset: {
|
|
48
48
|
coord: number;
|
|
@@ -53,7 +53,7 @@ export declare function useRangeSelect(ref: React.RefObject<HTMLDivElement>, mod
|
|
|
53
53
|
offset: number;
|
|
54
54
|
start: number;
|
|
55
55
|
end: number;
|
|
56
|
-
reversed
|
|
56
|
+
reversed?: boolean;
|
|
57
57
|
};
|
|
58
58
|
anchorPosition: AnchorPosition | undefined;
|
|
59
59
|
numOfBpSelected: number;
|
|
@@ -1,11 +1,9 @@
|
|
|
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
|
-
exports.
|
|
3
|
+
exports.useSideScroll = useSideScroll;
|
|
4
|
+
exports.useRangeSelect = useRangeSelect;
|
|
5
|
+
exports.useWheelScroll = useWheelScroll;
|
|
7
6
|
const react_1 = require("react");
|
|
8
|
-
const normalize_wheel_1 = __importDefault(require("normalize-wheel"));
|
|
9
7
|
const util_1 = require("./util");
|
|
10
8
|
function useSideScroll(model) {
|
|
11
9
|
const [mouseDragging, setMouseDragging] = (0, react_1.useState)(false);
|
|
@@ -71,7 +69,6 @@ function useSideScroll(model) {
|
|
|
71
69
|
}
|
|
72
70
|
return { mouseDown, mouseUp };
|
|
73
71
|
}
|
|
74
|
-
exports.useSideScroll = useSideScroll;
|
|
75
72
|
function useRangeSelect(ref, model, shiftOnly) {
|
|
76
73
|
const [startX, setStartX] = (0, react_1.useState)();
|
|
77
74
|
const [currentX, setCurrentX] = (0, react_1.useState)();
|
|
@@ -205,7 +202,6 @@ function useRangeSelect(ref, model, shiftOnly) {
|
|
|
205
202
|
};
|
|
206
203
|
}
|
|
207
204
|
}
|
|
208
|
-
exports.useRangeSelect = useRangeSelect;
|
|
209
205
|
function useWheelScroll(ref, model) {
|
|
210
206
|
const delta = (0, react_1.useRef)(0);
|
|
211
207
|
const timeout = (0, react_1.useRef)();
|
|
@@ -214,11 +210,10 @@ function useWheelScroll(ref, model) {
|
|
|
214
210
|
const curr = ref.current;
|
|
215
211
|
// if ctrl is held down, zoom in with y-scroll
|
|
216
212
|
// else scroll horizontally with x-scroll
|
|
217
|
-
function onWheel(
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
delta.current += event.pixelY / 500;
|
|
213
|
+
function onWheel(event) {
|
|
214
|
+
if (event.ctrlKey === true) {
|
|
215
|
+
event.preventDefault();
|
|
216
|
+
delta.current += event.deltaY / 500;
|
|
222
217
|
model.setScaleFactor(delta.current < 0 ? 1 - delta.current : 1 / (1 + delta.current));
|
|
223
218
|
if (timeout.current) {
|
|
224
219
|
clearTimeout(timeout.current);
|
|
@@ -227,7 +222,7 @@ function useWheelScroll(ref, model) {
|
|
|
227
222
|
model.setScaleFactor(1);
|
|
228
223
|
model.zoomTo(delta.current > 0
|
|
229
224
|
? model.bpPerPx * (1 + delta.current)
|
|
230
|
-
: model.bpPerPx / (1 - delta.current),
|
|
225
|
+
: model.bpPerPx / (1 - delta.current), event.clientX - ((curr === null || curr === void 0 ? void 0 : curr.getBoundingClientRect().left) || 0));
|
|
231
226
|
delta.current = 0;
|
|
232
227
|
}, 300);
|
|
233
228
|
}
|
|
@@ -235,10 +230,10 @@ function useWheelScroll(ref, model) {
|
|
|
235
230
|
// this is needed to stop the event from triggering "back button
|
|
236
231
|
// action" on MacOSX etc. but is a heuristic to avoid preventing the
|
|
237
232
|
// inner-track scroll behavior
|
|
238
|
-
if (Math.abs(event.
|
|
239
|
-
|
|
233
|
+
if (Math.abs(event.deltaX) > Math.abs(2 * event.deltaY)) {
|
|
234
|
+
event.preventDefault();
|
|
240
235
|
}
|
|
241
|
-
delta.current += event.
|
|
236
|
+
delta.current += event.deltaX;
|
|
242
237
|
if (!scheduled.current) {
|
|
243
238
|
// use rAF to make it so multiple event handlers aren't fired per-frame
|
|
244
239
|
// see https://calendar.perfplanet.com/2013/the-runtime-performance-checklist/
|
|
@@ -260,4 +255,3 @@ function useWheelScroll(ref, model) {
|
|
|
260
255
|
return () => { };
|
|
261
256
|
}, [model, ref]);
|
|
262
257
|
}
|
|
263
|
-
exports.useWheelScroll = useWheelScroll;
|
|
@@ -3,7 +3,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.fetchResults = fetchResults;
|
|
7
|
+
exports.splitLast = splitLast;
|
|
8
|
+
exports.getRelativeX = getRelativeX;
|
|
9
|
+
exports.getCytobands = getCytobands;
|
|
7
10
|
const util_1 = require("@jbrowse/core/util");
|
|
8
11
|
const BaseResults_1 = __importDefault(require("@jbrowse/core/TextSearch/BaseResults"));
|
|
9
12
|
async function fetchResults({ queryString, searchType, searchScope, rankSearchResults, textSearchManager, assembly, }) {
|
|
@@ -18,7 +21,6 @@ async function fetchResults({ queryString, searchType, searchScope, rankSearchRe
|
|
|
18
21
|
const refNameResults = (_a = assembly === null || assembly === void 0 ? void 0 : assembly.allRefNames) === null || _a === void 0 ? void 0 : _a.filter(ref => ref.toLowerCase().startsWith(queryString.toLowerCase())).slice(0, 10).map(r => new BaseResults_1.default({ label: r }));
|
|
19
22
|
return (0, util_1.dedupe)([...(refNameResults || []), ...(textSearchResults || [])], elt => elt.getId());
|
|
20
23
|
}
|
|
21
|
-
exports.fetchResults = fetchResults;
|
|
22
24
|
// splits on the last instance of a character
|
|
23
25
|
function splitLast(str, split) {
|
|
24
26
|
const lastIndex = str.lastIndexOf(split);
|
|
@@ -31,11 +33,9 @@ function splitLast(str, split) {
|
|
|
31
33
|
return [before, after];
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
|
-
exports.splitLast = splitLast;
|
|
35
36
|
function getRelativeX(event, element) {
|
|
36
37
|
return event.clientX - ((element === null || element === void 0 ? void 0 : element.getBoundingClientRect().left) || 0);
|
|
37
38
|
}
|
|
38
|
-
exports.getRelativeX = getRelativeX;
|
|
39
39
|
function getCytobands(assembly, refName) {
|
|
40
40
|
var _a;
|
|
41
41
|
return (((_a = assembly === null || assembly === void 0 ? void 0 : assembly.cytobands) === null || _a === void 0 ? void 0 : _a.map(f => ({
|
|
@@ -45,4 +45,3 @@ function getCytobands(assembly, refName) {
|
|
|
45
45
|
type: f.get('type'),
|
|
46
46
|
})).filter(f => f.refName === refName)) || []);
|
|
47
47
|
}
|
|
48
|
-
exports.getCytobands = getCytobands;
|
|
@@ -26,6 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
exports.default = LinearGenomeViewF;
|
|
29
30
|
const react_1 = require("react");
|
|
30
31
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
31
32
|
const model_1 = require("./model");
|
|
@@ -39,5 +40,4 @@ function LinearGenomeViewF(pluginManager) {
|
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
42
|
}
|
|
42
|
-
exports.default = LinearGenomeViewF;
|
|
43
43
|
__exportStar(require("./model"), exports);
|