@jbrowse/plugin-sequence 2.4.2 → 2.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/BgzipFastaAdapter/configSchema.d.ts +43 -1
  2. package/dist/ChromSizesAdapter/configSchema.d.ts +12 -1
  3. package/dist/DivSequenceRenderer/components/DivSequenceRendering.d.ts +2 -2
  4. package/dist/DivSequenceRenderer/configSchema.d.ts +10 -1
  5. package/dist/IndexedFastaAdapter/configSchema.d.ts +33 -1
  6. package/dist/LinearReferenceSequenceDisplay/configSchema.d.ts +12 -1
  7. package/dist/LinearReferenceSequenceDisplay/model.d.ts +111 -49
  8. package/dist/ReferenceSequenceTrack/configSchema.d.ts +46 -1
  9. package/dist/SequenceSearchAdapter/configSchema.d.ts +38 -1
  10. package/dist/TwoBitAdapter/TwoBitAdapter.d.ts +1 -1
  11. package/dist/TwoBitAdapter/TwoBitAdapter.js +2 -1
  12. package/dist/TwoBitAdapter/TwoBitAdapter.js.map +1 -1
  13. package/dist/TwoBitAdapter/configSchema.d.ts +23 -1
  14. package/esm/BgzipFastaAdapter/configSchema.d.ts +43 -1
  15. package/esm/ChromSizesAdapter/configSchema.d.ts +12 -1
  16. package/esm/DivSequenceRenderer/components/DivSequenceRendering.d.ts +2 -2
  17. package/esm/DivSequenceRenderer/configSchema.d.ts +10 -1
  18. package/esm/IndexedFastaAdapter/configSchema.d.ts +33 -1
  19. package/esm/LinearReferenceSequenceDisplay/configSchema.d.ts +12 -1
  20. package/esm/LinearReferenceSequenceDisplay/model.d.ts +111 -49
  21. package/esm/ReferenceSequenceTrack/configSchema.d.ts +46 -1
  22. package/esm/SequenceSearchAdapter/configSchema.d.ts +38 -1
  23. package/esm/TwoBitAdapter/TwoBitAdapter.d.ts +1 -1
  24. package/esm/TwoBitAdapter/TwoBitAdapter.js +2 -1
  25. package/esm/TwoBitAdapter/TwoBitAdapter.js.map +1 -1
  26. package/esm/TwoBitAdapter/configSchema.d.ts +23 -1
  27. package/package.json +2 -2
  28. package/src/TwoBitAdapter/TwoBitAdapter.ts +3 -5
@@ -1,2 +1,44 @@
1
- declare const BgzipFastaAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const BgzipFastaAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ fastaLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ /**
13
+ * #slot
14
+ */
15
+ faiLocation: {
16
+ type: string;
17
+ defaultValue: {
18
+ uri: string;
19
+ locationType: string;
20
+ };
21
+ };
22
+ /**
23
+ * #slot
24
+ */
25
+ metadataLocation: {
26
+ description: string;
27
+ type: string;
28
+ defaultValue: {
29
+ uri: string;
30
+ locationType: string;
31
+ };
32
+ };
33
+ /**
34
+ * #slot
35
+ */
36
+ gziLocation: {
37
+ type: string;
38
+ defaultValue: {
39
+ uri: string;
40
+ locationType: string;
41
+ };
42
+ };
43
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
44
  export default BgzipFastaAdapter;
@@ -1,2 +1,13 @@
1
- declare const ChromSizesAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const ChromSizesAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ chromSizesLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
13
  export default ChromSizesAdapter;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { AnyConfigurationModel } from '@jbrowse/core/configuration';
3
3
  import { Feature, Region } from '@jbrowse/core/util';
4
4
  declare function Sequence(props: {
@@ -13,6 +13,6 @@ declare function Sequence(props: {
13
13
  showForward?: boolean;
14
14
  showReverse?: boolean;
15
15
  showTranslation?: boolean;
16
- }): JSX.Element;
16
+ }): React.JSX.Element;
17
17
  declare const _default: typeof Sequence;
18
18
  export default _default;
@@ -1,2 +1,11 @@
1
- declare const DivSequenceRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const DivSequenceRenderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ height: {
6
+ type: string;
7
+ description: string;
8
+ defaultValue: number;
9
+ };
10
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
11
  export default DivSequenceRenderer;
@@ -1,2 +1,34 @@
1
- declare const IndexedFastaAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const IndexedFastaAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ fastaLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ /**
13
+ * #slot
14
+ */
15
+ faiLocation: {
16
+ type: string;
17
+ defaultValue: {
18
+ uri: string;
19
+ locationType: string;
20
+ };
21
+ };
22
+ /**
23
+ * #slot
24
+ */
25
+ metadataLocation: {
26
+ description: string;
27
+ type: string;
28
+ defaultValue: {
29
+ uri: string;
30
+ locationType: string;
31
+ };
32
+ };
33
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
34
  export default IndexedFastaAdapter;
@@ -1 +1,12 @@
1
- export declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ export declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ renderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
+ height: {
7
+ type: string;
8
+ description: string;
9
+ defaultValue: number;
10
+ };
11
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
12
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
@@ -10,6 +10,10 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
10
10
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
11
11
  } & {
12
12
  heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
13
+ } & {
14
+ userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
15
+ userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
16
+ } & {
13
17
  blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
14
18
  key: import("mobx-state-tree").ISimpleType<string>;
15
19
  region: import("mobx-state-tree").IModelType<{
@@ -44,9 +48,7 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
44
48
  renderProps: any;
45
49
  } & {
46
50
  doReload(): void;
47
- afterAttach(): void; /**
48
- * #action
49
- */
51
+ afterAttach(): void;
50
52
  setStatus(message: string): void;
51
53
  setLoading(abortController: AbortController): void;
52
54
  setMessage(messageText: string): void;
@@ -61,17 +63,39 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
61
63
  reload(): void;
62
64
  beforeDestroy(): void;
63
65
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
64
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
65
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
66
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
67
+ maxFeatureScreenDensity: {
68
+ type: string;
69
+ description: string;
70
+ defaultValue: number;
71
+ };
72
+ fetchSizeLimit: {
73
+ type: string;
74
+ defaultValue: number;
75
+ description: string;
76
+ };
77
+ height: {
78
+ type: string;
79
+ defaultValue: number;
80
+ description: string;
81
+ };
82
+ mouseover: {
83
+ type: string;
84
+ description: string;
85
+ defaultValue: string;
86
+ contextVariable: string[];
87
+ };
88
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
66
89
  } & {
67
90
  type: import("mobx-state-tree").ISimpleType<"LinearReferenceSequenceDisplay">;
68
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
91
+ configuration: AnyConfigurationSchemaType;
69
92
  showForward: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
70
93
  showReverse: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
71
94
  showTranslation: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
72
95
  }, {
73
96
  rendererTypeName: string;
74
97
  error: unknown;
98
+ message: string | undefined;
75
99
  } & {
76
100
  readonly RenderingComponent: import("react").FC<{
77
101
  model: {
@@ -79,8 +103,11 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
79
103
  type: string;
80
104
  rpcDriverName: string | undefined;
81
105
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
82
- rendererTypeName: string;
106
+ rendererTypeName: string; /**
107
+ * #property
108
+ */
83
109
  error: unknown;
110
+ message: string | undefined;
84
111
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
85
112
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
86
113
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -88,18 +115,22 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
88
115
  }, {
89
116
  rendererTypeName: string;
90
117
  error: unknown;
118
+ message: string | undefined;
91
119
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
92
120
  onHorizontalScroll?: Function | undefined;
93
121
  blockState?: Record<string, any> | undefined;
94
122
  }>;
95
123
  readonly DisplayBlurb: import("react").FC<{
96
124
  model: {
97
- id: string;
125
+ id: string; /**
126
+ * #action
127
+ */
98
128
  type: string;
99
129
  rpcDriverName: string | undefined;
100
130
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
101
131
  rendererTypeName: string;
102
132
  error: unknown;
133
+ message: string | undefined;
103
134
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
104
135
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
105
136
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -107,8 +138,12 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
107
138
  }, {
108
139
  rendererTypeName: string;
109
140
  error: unknown;
141
+ message: string | undefined;
110
142
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
111
143
  }> | null;
144
+ /**
145
+ * #method
146
+ */
112
147
  readonly adapterConfig: any;
113
148
  readonly parentTrack: any;
114
149
  renderProps(): any;
@@ -116,21 +151,51 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
116
151
  readonly DisplayMessageComponent: import("react").FC<any> | undefined;
117
152
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
118
153
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
119
- regionCannotBeRendered(): undefined;
154
+ regionCannotBeRendered(): null;
120
155
  } & {
156
+ setMessage(arg?: string | undefined): void;
121
157
  setError(error?: unknown): void;
122
158
  setRpcDriverName(rpcDriverName: string): void;
123
159
  reload(): void;
124
160
  } & {
125
- currBpPerPx: number;
126
161
  scrollTop: number;
127
- message: string;
162
+ } & {
163
+ readonly height: number;
164
+ } & {
165
+ setScrollTop(scrollTop: number): void; /**
166
+ * #property
167
+ */
168
+ setHeight(displayHeight: number): number;
169
+ resizeHeight(distance: number): number;
170
+ } & {
171
+ featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
172
+ featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
173
+ currStatsBpPerPx: number;
174
+ } & {
175
+ readonly currentBytesRequested: number;
176
+ readonly currentFeatureScreenDensity: number;
177
+ readonly maxFeatureScreenDensity: any;
178
+ readonly featureDensityStatsReady: boolean;
179
+ readonly maxAllowableBytes: number;
180
+ } & {
181
+ afterAttach(): void;
182
+ } & {
183
+ setCurrStatsBpPerPx(n: number): void;
184
+ setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
185
+ getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
186
+ setFeatureDensityStatsP(arg: any): void;
187
+ setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
188
+ clearFeatureDensityStats(): void;
189
+ } & {
190
+ readonly regionTooLarge: boolean;
191
+ readonly regionTooLargeReason: string;
192
+ } & {
193
+ regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
194
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
195
+ } & {
128
196
  featureIdUnderMouse: string | undefined;
129
197
  contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
130
- estimatedRegionsStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
131
- estimatedRegionsStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
132
198
  } & {
133
- readonly height: number;
134
199
  readonly blockType: "dynamicBlocks" | "staticBlocks";
135
200
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
136
201
  } & {
@@ -144,49 +209,22 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
144
209
  getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
145
210
  getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
146
211
  searchFeatureByID(id: string): [number, number, number, number] | undefined;
147
- readonly currentBytesRequested: number;
148
- readonly currentFeatureScreenDensity: number;
149
- readonly maxFeatureScreenDensity: any;
150
- readonly estimatedStatsReady: boolean;
151
- readonly maxAllowableBytes: number;
152
- } & {
153
- setMessage(message: string): void;
154
212
  } & {
155
- afterAttach(): void;
156
- estimateRegionsStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats>;
157
- setRegionsStatsP(arg: any): void;
158
- setRegionsStats(estimatedRegionsStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
159
- clearRegionsStats(): void;
160
- setHeight(displayHeight: number): number;
161
- resizeHeight(distance: number): number;
162
- setScrollTop(scrollTop: number): void;
163
- updateStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
164
213
  addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
165
- setCurrBpPerPx(n: number): void;
166
214
  deleteBlock(key: string): void;
167
215
  selectFeature(feature: import("@jbrowse/core/util").Feature): void;
168
216
  clearFeatureSelection(): void;
169
- setFeatureIdUnderMouse(feature: string | undefined): void;
170
- reload(): void;
217
+ setFeatureIdUnderMouse(feature?: string | undefined): void;
171
218
  setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
172
- } & {
173
- readonly regionTooLarge: boolean;
174
- readonly regionTooLargeReason: string;
175
219
  } & {
176
220
  reload(): Promise<void>;
177
221
  } & {
178
- afterAttach(): void;
179
- } & {
180
- regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
181
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
182
222
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
183
223
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
184
224
  renderProps(): any;
185
225
  } & {
186
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
187
- overrideHeight: number;
188
- theme: import("@mui/material").ThemeOptions;
189
- }): Promise<JSX.Element>;
226
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
227
+ afterAttach(): void;
190
228
  } & {
191
229
  /**
192
230
  * #method
@@ -233,6 +271,10 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
233
271
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
234
272
  } & {
235
273
  heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
274
+ } & {
275
+ userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
276
+ userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
277
+ } & {
236
278
  blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
237
279
  key: import("mobx-state-tree").ISimpleType<string>;
238
280
  region: import("mobx-state-tree").IModelType<{
@@ -267,9 +309,7 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
267
309
  renderProps: any;
268
310
  } & {
269
311
  doReload(): void;
270
- afterAttach(): void; /**
271
- * #action
272
- */
312
+ afterAttach(): void;
273
313
  setStatus(message: string): void;
274
314
  setLoading(abortController: AbortController): void;
275
315
  setMessage(messageText: string): void;
@@ -284,11 +324,33 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
284
324
  reload(): void;
285
325
  beforeDestroy(): void;
286
326
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
287
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
288
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
327
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
328
+ maxFeatureScreenDensity: {
329
+ type: string;
330
+ description: string;
331
+ defaultValue: number;
332
+ };
333
+ fetchSizeLimit: {
334
+ type: string;
335
+ defaultValue: number;
336
+ description: string;
337
+ };
338
+ height: {
339
+ type: string;
340
+ defaultValue: number;
341
+ description: string;
342
+ };
343
+ mouseover: {
344
+ type: string;
345
+ description: string;
346
+ defaultValue: string;
347
+ contextVariable: string[];
348
+ };
349
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
289
350
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
290
351
  type: string;
291
352
  id: string;
353
+ configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
292
354
  rpcDriverName: string | undefined;
293
355
  heightPreConfig: number | undefined;
294
356
  userBpPerPxLimit: number | undefined;
@@ -1,2 +1,47 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- export declare function createReferenceSeqTrackConfig(pluginManager: PluginManager): import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ export declare function createReferenceSeqTrackConfig(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
+ /**
4
+ * #slot
5
+ * configuration for track adapter
6
+ */
7
+ adapter: import("mobx-state-tree").IAnyModelType;
8
+ /**
9
+ * #slot
10
+ * configuration for the displays e.g. LinearReferenceSequenceDisplay
11
+ */
12
+ displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
13
+ /**
14
+ * #slot
15
+ */
16
+ name: {
17
+ type: string;
18
+ description: string;
19
+ defaultValue: string;
20
+ };
21
+ /**
22
+ * #slot
23
+ */
24
+ metadata: {
25
+ type: string;
26
+ description: string;
27
+ defaultValue: {};
28
+ };
29
+ formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
30
+ /**
31
+ * #slot formatAbout.config
32
+ */
33
+ config: {
34
+ type: string;
35
+ description: string;
36
+ defaultValue: {};
37
+ contextVariable: string[];
38
+ };
39
+ /**
40
+ * #slot formatAbout.hideUris
41
+ */
42
+ hideUris: {
43
+ type: string;
44
+ defaultValue: boolean;
45
+ };
46
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
47
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>;
@@ -1,2 +1,39 @@
1
- declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ search: {
6
+ type: string;
7
+ defaultValue: string;
8
+ description: string;
9
+ };
10
+ /**
11
+ * #slot
12
+ */
13
+ sequenceAdapter: {
14
+ type: string;
15
+ defaultValue: null;
16
+ };
17
+ /**
18
+ * #slot
19
+ */
20
+ searchForward: {
21
+ type: string;
22
+ defaultValue: boolean;
23
+ };
24
+ /**
25
+ * #slot
26
+ */
27
+ searchReverse: {
28
+ type: string;
29
+ defaultValue: boolean;
30
+ };
31
+ /**
32
+ * #slot
33
+ */
34
+ caseInsensitive: {
35
+ type: string;
36
+ defaultValue: boolean;
37
+ };
38
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
39
  export default configSchema;
@@ -1,7 +1,7 @@
1
1
  import { BaseSequenceAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
2
  import { NoAssemblyRegion } from '@jbrowse/core/util/types';
3
3
  import { Feature } from '@jbrowse/core/util/simpleFeature';
4
- import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
4
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration';
5
5
  import PluginManager from '@jbrowse/core/PluginManager';
6
6
  import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
7
7
  export default class TwoBitAdapter extends BaseSequenceAdapter {
@@ -27,9 +27,10 @@ class TwoBitAdapter extends BaseAdapter_1.BaseSequenceAdapter {
27
27
  }
28
28
  constructor(config, getSubAdapter, pluginManager) {
29
29
  super(config, getSubAdapter, pluginManager);
30
+ const pm = this.pluginManager;
30
31
  this.chromSizesData = this.initChromSizes();
31
32
  this.twobit = new twobit_1.TwoBitFile({
32
- filehandle: (0, io_1.openLocation)((0, configuration_1.readConfObject)(config, 'twoBitLocation'), this.pluginManager),
33
+ filehandle: (0, io_1.openLocation)(this.getConf('twoBitLocation'), pm),
33
34
  });
34
35
  }
35
36
  async getRefNames() {
@@ -1 +1 @@
1
- {"version":3,"file":"TwoBitAdapter.js","sourceRoot":"","sources":["../../src/TwoBitAdapter/TwoBitAdapter.ts"],"names":[],"mappings":";;;;;AAAA,yEAA6E;AAE7E,8CAAoD;AACpD,kDAA0D;AAC1D,qFAAyE;AACzE,yCAAyC;AACzC,+DAA4D;AAK5D,MAAqB,aAAc,SAAQ,iCAAmB;IAOpD,KAAK,CAAC,cAAc;QAC1B,MAAM,IAAI,GAAG,IAAA,8BAAc,EAAC,IAAI,CAAC,MAAM,EAAE,oBAAoB,CAAC,CAAA;QAC9D,2EAA2E;QAC3E,yEAAyE;QACzE,SAAS;QACT,IAAI,IAAI,CAAC,GAAG,KAAK,8BAA8B,IAAI,IAAI,CAAC,GAAG,KAAK,EAAE,EAAE;YAClE,MAAM,IAAI,GAAG,IAAA,iBAAY,EAAC,IAAI,EAAE,IAAI,CAAC,aAAa,CAAC,CAAA;YACnD,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAA;YACxC,OAAO,MAAM,CAAC,WAAW,CACvB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CACA,KAAK,CAAC,YAAY,EACnB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,EAC5B,GAAG,CAAC,IAAI,CA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G,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,OAAO,EAAE,KAAK,EAAE,SAAS,CAAC,CAAA;YACpE,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,IAAI,CACX,IAAI,uBAAa,CAAC;oBAChB,EAAE,EAAE,GAAG,OAAO,IAAI,KAAK,IAAI,SAAS,EAAE;oBACtC,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;iBAC9C,CAAC,CACH,CAAA;aACF;YACD,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACI,aAAa,EAAC,gBAAgB,IAAS,CAAC;CAChD;AA9FD,gCA8FC"}
@@ -1,2 +1,24 @@
1
- declare const TwoBitAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const TwoBitAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ twoBitLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ /**
13
+ * #slot
14
+ */
15
+ chromSizesLocation: {
16
+ type: string;
17
+ defaultValue: {
18
+ uri: string;
19
+ locationType: string;
20
+ };
21
+ description: string;
22
+ };
23
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
24
  export default TwoBitAdapter;
@@ -1,2 +1,44 @@
1
- declare const BgzipFastaAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const BgzipFastaAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ fastaLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ /**
13
+ * #slot
14
+ */
15
+ faiLocation: {
16
+ type: string;
17
+ defaultValue: {
18
+ uri: string;
19
+ locationType: string;
20
+ };
21
+ };
22
+ /**
23
+ * #slot
24
+ */
25
+ metadataLocation: {
26
+ description: string;
27
+ type: string;
28
+ defaultValue: {
29
+ uri: string;
30
+ locationType: string;
31
+ };
32
+ };
33
+ /**
34
+ * #slot
35
+ */
36
+ gziLocation: {
37
+ type: string;
38
+ defaultValue: {
39
+ uri: string;
40
+ locationType: string;
41
+ };
42
+ };
43
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
44
  export default BgzipFastaAdapter;
@@ -1,2 +1,13 @@
1
- declare const ChromSizesAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const ChromSizesAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ chromSizesLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
13
  export default ChromSizesAdapter;
@@ -1,4 +1,4 @@
1
- /// <reference types="react" />
1
+ import React from 'react';
2
2
  import { AnyConfigurationModel } from '@jbrowse/core/configuration';
3
3
  import { Feature, Region } from '@jbrowse/core/util';
4
4
  declare function Sequence(props: {
@@ -13,6 +13,6 @@ declare function Sequence(props: {
13
13
  showForward?: boolean;
14
14
  showReverse?: boolean;
15
15
  showTranslation?: boolean;
16
- }): JSX.Element;
16
+ }): React.JSX.Element;
17
17
  declare const _default: typeof Sequence;
18
18
  export default _default;
@@ -1,2 +1,11 @@
1
- declare const DivSequenceRenderer: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const DivSequenceRenderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ height: {
6
+ type: string;
7
+ description: string;
8
+ defaultValue: number;
9
+ };
10
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
11
  export default DivSequenceRenderer;
@@ -1,2 +1,34 @@
1
- declare const IndexedFastaAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const IndexedFastaAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ fastaLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ /**
13
+ * #slot
14
+ */
15
+ faiLocation: {
16
+ type: string;
17
+ defaultValue: {
18
+ uri: string;
19
+ locationType: string;
20
+ };
21
+ };
22
+ /**
23
+ * #slot
24
+ */
25
+ metadataLocation: {
26
+ description: string;
27
+ type: string;
28
+ defaultValue: {
29
+ uri: string;
30
+ locationType: string;
31
+ };
32
+ };
33
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
34
  export default IndexedFastaAdapter;
@@ -1 +1,12 @@
1
- export declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ export declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ renderer: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
6
+ height: {
7
+ type: string;
8
+ description: string;
9
+ defaultValue: number;
10
+ };
11
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
12
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
@@ -10,6 +10,10 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
10
10
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
11
11
  } & {
12
12
  heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
13
+ } & {
14
+ userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
15
+ userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
16
+ } & {
13
17
  blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
14
18
  key: import("mobx-state-tree").ISimpleType<string>;
15
19
  region: import("mobx-state-tree").IModelType<{
@@ -44,9 +48,7 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
44
48
  renderProps: any;
45
49
  } & {
46
50
  doReload(): void;
47
- afterAttach(): void; /**
48
- * #action
49
- */
51
+ afterAttach(): void;
50
52
  setStatus(message: string): void;
51
53
  setLoading(abortController: AbortController): void;
52
54
  setMessage(messageText: string): void;
@@ -61,17 +63,39 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
61
63
  reload(): void;
62
64
  beforeDestroy(): void;
63
65
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
64
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
65
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
66
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
67
+ maxFeatureScreenDensity: {
68
+ type: string;
69
+ description: string;
70
+ defaultValue: number;
71
+ };
72
+ fetchSizeLimit: {
73
+ type: string;
74
+ defaultValue: number;
75
+ description: string;
76
+ };
77
+ height: {
78
+ type: string;
79
+ defaultValue: number;
80
+ description: string;
81
+ };
82
+ mouseover: {
83
+ type: string;
84
+ description: string;
85
+ defaultValue: string;
86
+ contextVariable: string[];
87
+ };
88
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
66
89
  } & {
67
90
  type: import("mobx-state-tree").ISimpleType<"LinearReferenceSequenceDisplay">;
68
- configuration: import("mobx-state-tree").ITypeUnion<any, any, any>;
91
+ configuration: AnyConfigurationSchemaType;
69
92
  showForward: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
70
93
  showReverse: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
71
94
  showTranslation: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
72
95
  }, {
73
96
  rendererTypeName: string;
74
97
  error: unknown;
98
+ message: string | undefined;
75
99
  } & {
76
100
  readonly RenderingComponent: import("react").FC<{
77
101
  model: {
@@ -79,8 +103,11 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
79
103
  type: string;
80
104
  rpcDriverName: string | undefined;
81
105
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
82
- rendererTypeName: string;
106
+ rendererTypeName: string; /**
107
+ * #property
108
+ */
83
109
  error: unknown;
110
+ message: string | undefined;
84
111
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
85
112
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
86
113
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -88,18 +115,22 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
88
115
  }, {
89
116
  rendererTypeName: string;
90
117
  error: unknown;
118
+ message: string | undefined;
91
119
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
92
120
  onHorizontalScroll?: Function | undefined;
93
121
  blockState?: Record<string, any> | undefined;
94
122
  }>;
95
123
  readonly DisplayBlurb: import("react").FC<{
96
124
  model: {
97
- id: string;
125
+ id: string; /**
126
+ * #action
127
+ */
98
128
  type: string;
99
129
  rpcDriverName: string | undefined;
100
130
  } & import("mobx-state-tree/dist/internal").NonEmptyObject & {
101
131
  rendererTypeName: string;
102
132
  error: unknown;
133
+ message: string | undefined;
103
134
  } & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
104
135
  id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
105
136
  type: import("mobx-state-tree").ISimpleType<string>;
@@ -107,8 +138,12 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
107
138
  }, {
108
139
  rendererTypeName: string;
109
140
  error: unknown;
141
+ message: string | undefined;
110
142
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
111
143
  }> | null;
144
+ /**
145
+ * #method
146
+ */
112
147
  readonly adapterConfig: any;
113
148
  readonly parentTrack: any;
114
149
  renderProps(): any;
@@ -116,21 +151,51 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
116
151
  readonly DisplayMessageComponent: import("react").FC<any> | undefined;
117
152
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
118
153
  readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
119
- regionCannotBeRendered(): undefined;
154
+ regionCannotBeRendered(): null;
120
155
  } & {
156
+ setMessage(arg?: string | undefined): void;
121
157
  setError(error?: unknown): void;
122
158
  setRpcDriverName(rpcDriverName: string): void;
123
159
  reload(): void;
124
160
  } & {
125
- currBpPerPx: number;
126
161
  scrollTop: number;
127
- message: string;
162
+ } & {
163
+ readonly height: number;
164
+ } & {
165
+ setScrollTop(scrollTop: number): void; /**
166
+ * #property
167
+ */
168
+ setHeight(displayHeight: number): number;
169
+ resizeHeight(distance: number): number;
170
+ } & {
171
+ featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
172
+ featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
173
+ currStatsBpPerPx: number;
174
+ } & {
175
+ readonly currentBytesRequested: number;
176
+ readonly currentFeatureScreenDensity: number;
177
+ readonly maxFeatureScreenDensity: any;
178
+ readonly featureDensityStatsReady: boolean;
179
+ readonly maxAllowableBytes: number;
180
+ } & {
181
+ afterAttach(): void;
182
+ } & {
183
+ setCurrStatsBpPerPx(n: number): void;
184
+ setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
185
+ getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
186
+ setFeatureDensityStatsP(arg: any): void;
187
+ setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
188
+ clearFeatureDensityStats(): void;
189
+ } & {
190
+ readonly regionTooLarge: boolean;
191
+ readonly regionTooLargeReason: string;
192
+ } & {
193
+ regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
194
+ regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
195
+ } & {
128
196
  featureIdUnderMouse: string | undefined;
129
197
  contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
130
- estimatedRegionsStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
131
- estimatedRegionsStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
132
198
  } & {
133
- readonly height: number;
134
199
  readonly blockType: "dynamicBlocks" | "staticBlocks";
135
200
  readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
136
201
  } & {
@@ -144,49 +209,22 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
144
209
  getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
145
210
  getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
146
211
  searchFeatureByID(id: string): [number, number, number, number] | undefined;
147
- readonly currentBytesRequested: number;
148
- readonly currentFeatureScreenDensity: number;
149
- readonly maxFeatureScreenDensity: any;
150
- readonly estimatedStatsReady: boolean;
151
- readonly maxAllowableBytes: number;
152
- } & {
153
- setMessage(message: string): void;
154
212
  } & {
155
- afterAttach(): void;
156
- estimateRegionsStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats>;
157
- setRegionsStatsP(arg: any): void;
158
- setRegionsStats(estimatedRegionsStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
159
- clearRegionsStats(): void;
160
- setHeight(displayHeight: number): number;
161
- resizeHeight(distance: number): number;
162
- setScrollTop(scrollTop: number): void;
163
- updateStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
164
213
  addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
165
- setCurrBpPerPx(n: number): void;
166
214
  deleteBlock(key: string): void;
167
215
  selectFeature(feature: import("@jbrowse/core/util").Feature): void;
168
216
  clearFeatureSelection(): void;
169
- setFeatureIdUnderMouse(feature: string | undefined): void;
170
- reload(): void;
217
+ setFeatureIdUnderMouse(feature?: string | undefined): void;
171
218
  setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
172
- } & {
173
- readonly regionTooLarge: boolean;
174
- readonly regionTooLargeReason: string;
175
219
  } & {
176
220
  reload(): Promise<void>;
177
221
  } & {
178
- afterAttach(): void;
179
- } & {
180
- regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
181
- regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
182
222
  trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
183
223
  contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
184
224
  renderProps(): any;
185
225
  } & {
186
- renderSvg(opts: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").ExportSvgOptions & {
187
- overrideHeight: number;
188
- theme: import("@mui/material").ThemeOptions;
189
- }): Promise<JSX.Element>;
226
+ renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
227
+ afterAttach(): void;
190
228
  } & {
191
229
  /**
192
230
  * #method
@@ -233,6 +271,10 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
233
271
  rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
234
272
  } & {
235
273
  heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
274
+ } & {
275
+ userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
276
+ userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
277
+ } & {
236
278
  blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
237
279
  key: import("mobx-state-tree").ISimpleType<string>;
238
280
  region: import("mobx-state-tree").IModelType<{
@@ -267,9 +309,7 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
267
309
  renderProps: any;
268
310
  } & {
269
311
  doReload(): void;
270
- afterAttach(): void; /**
271
- * #action
272
- */
312
+ afterAttach(): void;
273
313
  setStatus(message: string): void;
274
314
  setLoading(abortController: AbortController): void;
275
315
  setMessage(messageText: string): void;
@@ -284,11 +324,33 @@ export declare function modelFactory(configSchema: AnyConfigurationSchemaType):
284
324
  reload(): void;
285
325
  beforeDestroy(): void;
286
326
  }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
287
- userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
288
- userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
327
+ configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
328
+ maxFeatureScreenDensity: {
329
+ type: string;
330
+ description: string;
331
+ defaultValue: number;
332
+ };
333
+ fetchSizeLimit: {
334
+ type: string;
335
+ defaultValue: number;
336
+ description: string;
337
+ };
338
+ height: {
339
+ type: string;
340
+ defaultValue: number;
341
+ description: string;
342
+ };
343
+ mouseover: {
344
+ type: string;
345
+ description: string;
346
+ defaultValue: string;
347
+ contextVariable: string[];
348
+ };
349
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
289
350
  }>> & import("mobx-state-tree/dist/internal").NonEmptyObject & import("mobx-state-tree")._NotCustomized, {
290
351
  type: string;
291
352
  id: string;
353
+ configuration: import("mobx-state-tree").ModelSnapshotType<Record<string, any>>;
292
354
  rpcDriverName: string | undefined;
293
355
  heightPreConfig: number | undefined;
294
356
  userBpPerPxLimit: number | undefined;
@@ -1,2 +1,47 @@
1
1
  import PluginManager from '@jbrowse/core/PluginManager';
2
- export declare function createReferenceSeqTrackConfig(pluginManager: PluginManager): import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
2
+ export declare function createReferenceSeqTrackConfig(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
3
+ /**
4
+ * #slot
5
+ * configuration for track adapter
6
+ */
7
+ adapter: import("mobx-state-tree").IAnyModelType;
8
+ /**
9
+ * #slot
10
+ * configuration for the displays e.g. LinearReferenceSequenceDisplay
11
+ */
12
+ displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyModelType>;
13
+ /**
14
+ * #slot
15
+ */
16
+ name: {
17
+ type: string;
18
+ description: string;
19
+ defaultValue: string;
20
+ };
21
+ /**
22
+ * #slot
23
+ */
24
+ metadata: {
25
+ type: string;
26
+ description: string;
27
+ defaultValue: {};
28
+ };
29
+ formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
30
+ /**
31
+ * #slot formatAbout.config
32
+ */
33
+ config: {
34
+ type: string;
35
+ description: string;
36
+ defaultValue: {};
37
+ contextVariable: string[];
38
+ };
39
+ /**
40
+ * #slot formatAbout.hideUris
41
+ */
42
+ hideUris: {
43
+ type: string;
44
+ defaultValue: boolean;
45
+ };
46
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
47
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>;
@@ -1,2 +1,39 @@
1
- declare const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ search: {
6
+ type: string;
7
+ defaultValue: string;
8
+ description: string;
9
+ };
10
+ /**
11
+ * #slot
12
+ */
13
+ sequenceAdapter: {
14
+ type: string;
15
+ defaultValue: null;
16
+ };
17
+ /**
18
+ * #slot
19
+ */
20
+ searchForward: {
21
+ type: string;
22
+ defaultValue: boolean;
23
+ };
24
+ /**
25
+ * #slot
26
+ */
27
+ searchReverse: {
28
+ type: string;
29
+ defaultValue: boolean;
30
+ };
31
+ /**
32
+ * #slot
33
+ */
34
+ caseInsensitive: {
35
+ type: string;
36
+ defaultValue: boolean;
37
+ };
38
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
39
  export default configSchema;
@@ -1,7 +1,7 @@
1
1
  import { BaseSequenceAdapter } from '@jbrowse/core/data_adapters/BaseAdapter';
2
2
  import { NoAssemblyRegion } from '@jbrowse/core/util/types';
3
3
  import { Feature } from '@jbrowse/core/util/simpleFeature';
4
- import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema';
4
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration';
5
5
  import PluginManager from '@jbrowse/core/PluginManager';
6
6
  import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
7
7
  export default class TwoBitAdapter extends BaseSequenceAdapter {
@@ -22,9 +22,10 @@ export default class TwoBitAdapter extends BaseSequenceAdapter {
22
22
  }
23
23
  constructor(config, getSubAdapter, pluginManager) {
24
24
  super(config, getSubAdapter, pluginManager);
25
+ const pm = this.pluginManager;
25
26
  this.chromSizesData = this.initChromSizes();
26
27
  this.twobit = new TwoBitFile({
27
- filehandle: openLocation(readConfObject(config, 'twoBitLocation'), this.pluginManager),
28
+ filehandle: openLocation(this.getConf('twoBitLocation'), pm),
28
29
  });
29
30
  }
30
31
  async getRefNames() {
@@ -1 +1 @@
1
- {"version":3,"file":"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E,SAAS,CAAC,CAAA;YACpE,IAAI,GAAG,EAAE;gBACP,QAAQ,CAAC,IAAI,CACX,IAAI,aAAa,CAAC;oBAChB,EAAE,EAAE,GAAG,OAAO,IAAI,KAAK,IAAI,SAAS,EAAE;oBACtC,IAAI,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE;iBAC9C,CAAC,CACH,CAAA;aACF;YACD,QAAQ,CAAC,QAAQ,EAAE,CAAA;QACrB,CAAC,CAAC,CAAA;IACJ,CAAC;IAED;;;;OAIG;IACI,aAAa,EAAC,gBAAgB,IAAS,CAAC;CAChD"}
@@ -1,2 +1,24 @@
1
- declare const TwoBitAdapter: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
1
+ declare const TwoBitAdapter: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
2
+ /**
3
+ * #slot
4
+ */
5
+ twoBitLocation: {
6
+ type: string;
7
+ defaultValue: {
8
+ uri: string;
9
+ locationType: string;
10
+ };
11
+ };
12
+ /**
13
+ * #slot
14
+ */
15
+ chromSizesLocation: {
16
+ type: string;
17
+ defaultValue: {
18
+ uri: string;
19
+ locationType: string;
20
+ };
21
+ description: string;
22
+ };
23
+ }, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
2
24
  export default TwoBitAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-sequence",
3
- "version": "2.4.2",
3
+ "version": "2.6.1",
4
4
  "description": "JBrowse 2 sequence adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -58,5 +58,5 @@
58
58
  "distModule": "esm/index.js",
59
59
  "srcModule": "src/index.ts",
60
60
  "module": "esm/index.js",
61
- "gitHead": "36e382a70e7d220343b873e7e6aba5c83e5342c8"
61
+ "gitHead": "1cbe7ba097fb2d2763c776e5e429e4670cdd583c"
62
62
  }
@@ -5,7 +5,7 @@ import { ObservableCreate } from '@jbrowse/core/util/rxjs'
5
5
  import SimpleFeature, { Feature } from '@jbrowse/core/util/simpleFeature'
6
6
  import { TwoBitFile } from '@gmod/twobit'
7
7
  import { readConfObject } from '@jbrowse/core/configuration'
8
- import { AnyConfigurationModel } from '@jbrowse/core/configuration/configurationSchema'
8
+ import { AnyConfigurationModel } from '@jbrowse/core/configuration'
9
9
  import PluginManager from '@jbrowse/core/PluginManager'
10
10
  import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache'
11
11
 
@@ -43,12 +43,10 @@ export default class TwoBitAdapter extends BaseSequenceAdapter {
43
43
  pluginManager?: PluginManager,
44
44
  ) {
45
45
  super(config, getSubAdapter, pluginManager)
46
+ const pm = this.pluginManager
46
47
  this.chromSizesData = this.initChromSizes()
47
48
  this.twobit = new TwoBitFile({
48
- filehandle: openLocation(
49
- readConfObject(config, 'twoBitLocation'),
50
- this.pluginManager,
51
- ),
49
+ filehandle: openLocation(this.getConf('twoBitLocation'), pm),
52
50
  })
53
51
  }
54
52