@jbrowse/plugin-linear-comparative-view 2.8.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/LGVSyntenyDisplay/configSchemaF.d.ts +2 -0
- package/dist/LGVSyntenyDisplay/configSchemaF.js +2 -0
- package/dist/LGVSyntenyDisplay/model.d.ts +18 -7
- package/dist/LGVSyntenyDisplay/model.js +13 -3
- package/dist/LaunchLinearSyntenyView.js +6 -2
- package/dist/LinearComparativeDisplay/stateModelFactory.d.ts +35 -27
- package/dist/LinearComparativeDisplay/stateModelFactory.js +2 -0
- package/dist/LinearComparativeView/model.d.ts +141 -6
- package/dist/LinearComparativeView/model.js +4 -2
- package/dist/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/dist/LinearReadVsRef/index.js +26 -2
- package/dist/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +185 -96
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +13 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyContextMenu.js +57 -0
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -3
- package/dist/LinearSyntenyDisplay/components/SyntenyTooltip.js +19 -51
- package/dist/LinearSyntenyDisplay/model.d.ts +27 -17
- package/dist/LinearSyntenyDisplay/model.js +2 -1
- package/dist/LinearSyntenyView/components/ImportForm/index.js +1 -1
- package/dist/LinearSyntenyView/model.d.ts +441 -16
- package/dist/LinearSyntenyView/model.js +8 -1
- package/dist/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +6 -6
- package/dist/SyntenyTrack/configSchema.d.ts +5 -0
- package/dist/SyntenyTrack/configSchema.js +2 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.d.ts +2 -0
- package/esm/LGVSyntenyDisplay/configSchemaF.js +2 -0
- package/esm/LGVSyntenyDisplay/model.d.ts +18 -7
- package/esm/LGVSyntenyDisplay/model.js +13 -3
- package/esm/LaunchLinearSyntenyView.js +6 -2
- package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +35 -27
- package/esm/LinearComparativeDisplay/stateModelFactory.js +2 -0
- package/esm/LinearComparativeView/model.d.ts +141 -6
- package/esm/LinearComparativeView/model.js +4 -2
- package/esm/LinearReadVsRef/LinearReadVsRef.js +1 -1
- package/esm/LinearReadVsRef/index.js +2 -1
- package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +186 -97
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.d.ts +13 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyContextMenu.js +51 -0
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.d.ts +1 -3
- package/esm/LinearSyntenyDisplay/components/SyntenyTooltip.js +18 -30
- package/esm/LinearSyntenyDisplay/model.d.ts +27 -17
- package/esm/LinearSyntenyDisplay/model.js +2 -1
- package/esm/LinearSyntenyView/components/ImportForm/index.js +1 -1
- package/esm/LinearSyntenyView/model.d.ts +441 -16
- package/esm/LinearSyntenyView/model.js +8 -1
- package/esm/LinearSyntenyView/svgcomponents/SVGLinearSyntenyView.js +6 -6
- package/esm/SyntenyTrack/configSchema.d.ts +5 -0
- package/esm/SyntenyTrack/configSchema.js +2 -0
- package/package.json +4 -5
|
@@ -6,7 +6,9 @@ export interface ExportSvgOptions {
|
|
|
6
6
|
rasterizeLayers?: boolean;
|
|
7
7
|
scale?: number;
|
|
8
8
|
filename?: string;
|
|
9
|
-
Wrapper?: React.FC<
|
|
9
|
+
Wrapper?: React.FC<{
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
10
12
|
fontSize?: number;
|
|
11
13
|
rulerHeight?: number;
|
|
12
14
|
textHeight?: number;
|
|
@@ -18,7 +20,8 @@ export interface ExportSvgOptions {
|
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* #stateModel LinearSyntenyView
|
|
21
|
-
* extends
|
|
23
|
+
* extends
|
|
24
|
+
* - [LinearComparativeView](../linearcomparativeview)
|
|
22
25
|
*/
|
|
23
26
|
export default function stateModelFactory(pluginManager: PluginManager): import("mobx-state-tree").IModelType<{
|
|
24
27
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
@@ -45,10 +48,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
45
48
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
46
49
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
47
50
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
48
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
51
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
52
|
+
* #property/
|
|
53
|
+
*/
|
|
49
54
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
50
55
|
} & {
|
|
51
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
56
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
57
|
+
* #action
|
|
58
|
+
*/
|
|
52
59
|
}, {
|
|
53
60
|
setRefName(newRefName: string): void;
|
|
54
61
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -134,7 +141,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
134
141
|
} & {
|
|
135
142
|
moveTrack(movingId: string, targetId: string): void;
|
|
136
143
|
closeView(): void;
|
|
137
|
-
toggleTrack(trackId: string):
|
|
144
|
+
toggleTrack(trackId: string): boolean;
|
|
138
145
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
139
146
|
toggleCenterLine(): void;
|
|
140
147
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -184,6 +191,138 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
184
191
|
} & {
|
|
185
192
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
186
193
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
194
|
+
navToSearchString({ input, assembly, }: {
|
|
195
|
+
input: string;
|
|
196
|
+
assembly: {
|
|
197
|
+
configuration: any;
|
|
198
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
199
|
+
error: unknown;
|
|
200
|
+
loaded: boolean;
|
|
201
|
+
loadingP: Promise<void> | undefined;
|
|
202
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
203
|
+
refNameAliases: {
|
|
204
|
+
[x: string]: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
lowerCaseRefNameAliases: {
|
|
207
|
+
[x: string]: string | undefined;
|
|
208
|
+
} | undefined;
|
|
209
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
210
|
+
} & {
|
|
211
|
+
getConf(arg: string): any;
|
|
212
|
+
} & {
|
|
213
|
+
readonly initialized: boolean; /**
|
|
214
|
+
* #property/
|
|
215
|
+
*/
|
|
216
|
+
readonly name: string;
|
|
217
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
218
|
+
readonly aliases: string[];
|
|
219
|
+
readonly displayName: string | undefined;
|
|
220
|
+
hasName(name: string): boolean;
|
|
221
|
+
readonly allAliases: string[];
|
|
222
|
+
readonly allRefNames: string[] | undefined;
|
|
223
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
224
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
225
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
226
|
+
readonly refNameColors: string[];
|
|
227
|
+
} & {
|
|
228
|
+
readonly refNames: string[] | undefined;
|
|
229
|
+
} & {
|
|
230
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
231
|
+
getRefNameColor(refName: string): string | undefined;
|
|
232
|
+
isValidRefName(refName: string): boolean;
|
|
233
|
+
} & {
|
|
234
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
235
|
+
setError(e: unknown): void;
|
|
236
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
237
|
+
setRefNameAliases(aliases: {
|
|
238
|
+
[x: string]: string | undefined;
|
|
239
|
+
}, lcAliases: {
|
|
240
|
+
[x: string]: string | undefined;
|
|
241
|
+
}): void;
|
|
242
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
243
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
244
|
+
load(): Promise<void>;
|
|
245
|
+
loadPre(): Promise<void>;
|
|
246
|
+
} & {
|
|
247
|
+
getAdapterMapEntry(adapterConf: {
|
|
248
|
+
[x: string]: unknown;
|
|
249
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
250
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
251
|
+
[x: string]: unknown;
|
|
252
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
253
|
+
[x: string]: string | undefined;
|
|
254
|
+
}>;
|
|
255
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
256
|
+
[x: string]: unknown;
|
|
257
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
258
|
+
[x: string]: string | undefined;
|
|
259
|
+
}>;
|
|
260
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
261
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
262
|
+
}, {
|
|
263
|
+
error: unknown;
|
|
264
|
+
loaded: boolean;
|
|
265
|
+
loadingP: Promise<void> | undefined;
|
|
266
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
267
|
+
refNameAliases: {
|
|
268
|
+
[x: string]: string | undefined;
|
|
269
|
+
} | undefined;
|
|
270
|
+
lowerCaseRefNameAliases: {
|
|
271
|
+
[x: string]: string | undefined;
|
|
272
|
+
} | undefined;
|
|
273
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
274
|
+
} & {
|
|
275
|
+
getConf(arg: string): any;
|
|
276
|
+
} & {
|
|
277
|
+
readonly initialized: boolean; /**
|
|
278
|
+
* #property/
|
|
279
|
+
*/
|
|
280
|
+
readonly name: string;
|
|
281
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
282
|
+
readonly aliases: string[];
|
|
283
|
+
readonly displayName: string | undefined;
|
|
284
|
+
hasName(name: string): boolean;
|
|
285
|
+
readonly allAliases: string[];
|
|
286
|
+
readonly allRefNames: string[] | undefined;
|
|
287
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
288
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
289
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
290
|
+
readonly refNameColors: string[];
|
|
291
|
+
} & {
|
|
292
|
+
readonly refNames: string[] | undefined;
|
|
293
|
+
} & {
|
|
294
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
295
|
+
getRefNameColor(refName: string): string | undefined;
|
|
296
|
+
isValidRefName(refName: string): boolean;
|
|
297
|
+
} & {
|
|
298
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
299
|
+
setError(e: unknown): void;
|
|
300
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
301
|
+
setRefNameAliases(aliases: {
|
|
302
|
+
[x: string]: string | undefined;
|
|
303
|
+
}, lcAliases: {
|
|
304
|
+
[x: string]: string | undefined;
|
|
305
|
+
}): void;
|
|
306
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
307
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
308
|
+
load(): Promise<void>;
|
|
309
|
+
loadPre(): Promise<void>;
|
|
310
|
+
} & {
|
|
311
|
+
getAdapterMapEntry(adapterConf: {
|
|
312
|
+
[x: string]: unknown;
|
|
313
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
314
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
315
|
+
[x: string]: unknown;
|
|
316
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
317
|
+
[x: string]: string | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
320
|
+
[x: string]: unknown;
|
|
321
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
322
|
+
[x: string]: string | undefined;
|
|
323
|
+
}>;
|
|
324
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
325
|
+
}): Promise<void>;
|
|
187
326
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
188
327
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
189
328
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -260,10 +399,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
260
399
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
261
400
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
262
401
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
263
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
402
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
403
|
+
* #property/
|
|
404
|
+
*/
|
|
264
405
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
265
406
|
} & {
|
|
266
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
407
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
408
|
+
* #action
|
|
409
|
+
*/
|
|
267
410
|
}, {
|
|
268
411
|
setRefName(newRefName: string): void;
|
|
269
412
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -287,19 +430,27 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
287
430
|
displayedRegions: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IModelType<{
|
|
288
431
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
289
432
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
290
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
433
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
434
|
+
* #property/
|
|
435
|
+
*/
|
|
291
436
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
292
437
|
} & {
|
|
293
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
438
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
439
|
+
* #action
|
|
440
|
+
*/
|
|
294
441
|
}, {
|
|
295
442
|
setRefName(newRefName: string): void;
|
|
296
443
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
297
444
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
298
445
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
299
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
446
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
447
|
+
* #property/
|
|
448
|
+
*/
|
|
300
449
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
301
450
|
} & {
|
|
302
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
451
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
452
|
+
* #action
|
|
453
|
+
*/
|
|
303
454
|
}, {
|
|
304
455
|
setRefName(newRefName: string): void;
|
|
305
456
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>>;
|
|
@@ -385,7 +536,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
385
536
|
} & {
|
|
386
537
|
moveTrack(movingId: string, targetId: string): void;
|
|
387
538
|
closeView(): void;
|
|
388
|
-
toggleTrack(trackId: string):
|
|
539
|
+
toggleTrack(trackId: string): boolean;
|
|
389
540
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
390
541
|
toggleCenterLine(): void;
|
|
391
542
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -435,6 +586,138 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
435
586
|
} & {
|
|
436
587
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
437
588
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
589
|
+
navToSearchString({ input, assembly, }: {
|
|
590
|
+
input: string;
|
|
591
|
+
assembly: {
|
|
592
|
+
configuration: any;
|
|
593
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
594
|
+
error: unknown;
|
|
595
|
+
loaded: boolean;
|
|
596
|
+
loadingP: Promise<void> | undefined;
|
|
597
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
598
|
+
refNameAliases: {
|
|
599
|
+
[x: string]: string | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
lowerCaseRefNameAliases: {
|
|
602
|
+
[x: string]: string | undefined;
|
|
603
|
+
} | undefined;
|
|
604
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
605
|
+
} & {
|
|
606
|
+
getConf(arg: string): any;
|
|
607
|
+
} & {
|
|
608
|
+
readonly initialized: boolean; /**
|
|
609
|
+
* #property/
|
|
610
|
+
*/
|
|
611
|
+
readonly name: string;
|
|
612
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
613
|
+
readonly aliases: string[];
|
|
614
|
+
readonly displayName: string | undefined;
|
|
615
|
+
hasName(name: string): boolean;
|
|
616
|
+
readonly allAliases: string[];
|
|
617
|
+
readonly allRefNames: string[] | undefined;
|
|
618
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
619
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
620
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
621
|
+
readonly refNameColors: string[];
|
|
622
|
+
} & {
|
|
623
|
+
readonly refNames: string[] | undefined;
|
|
624
|
+
} & {
|
|
625
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
626
|
+
getRefNameColor(refName: string): string | undefined;
|
|
627
|
+
isValidRefName(refName: string): boolean;
|
|
628
|
+
} & {
|
|
629
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
630
|
+
setError(e: unknown): void;
|
|
631
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
632
|
+
setRefNameAliases(aliases: {
|
|
633
|
+
[x: string]: string | undefined;
|
|
634
|
+
}, lcAliases: {
|
|
635
|
+
[x: string]: string | undefined;
|
|
636
|
+
}): void;
|
|
637
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
638
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
639
|
+
load(): Promise<void>;
|
|
640
|
+
loadPre(): Promise<void>;
|
|
641
|
+
} & {
|
|
642
|
+
getAdapterMapEntry(adapterConf: {
|
|
643
|
+
[x: string]: unknown;
|
|
644
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
645
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
646
|
+
[x: string]: unknown;
|
|
647
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
648
|
+
[x: string]: string | undefined;
|
|
649
|
+
}>;
|
|
650
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
651
|
+
[x: string]: unknown;
|
|
652
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
653
|
+
[x: string]: string | undefined;
|
|
654
|
+
}>;
|
|
655
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
656
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
657
|
+
}, {
|
|
658
|
+
error: unknown;
|
|
659
|
+
loaded: boolean;
|
|
660
|
+
loadingP: Promise<void> | undefined;
|
|
661
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
662
|
+
refNameAliases: {
|
|
663
|
+
[x: string]: string | undefined;
|
|
664
|
+
} | undefined;
|
|
665
|
+
lowerCaseRefNameAliases: {
|
|
666
|
+
[x: string]: string | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
669
|
+
} & {
|
|
670
|
+
getConf(arg: string): any;
|
|
671
|
+
} & {
|
|
672
|
+
readonly initialized: boolean; /**
|
|
673
|
+
* #property/
|
|
674
|
+
*/
|
|
675
|
+
readonly name: string;
|
|
676
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
677
|
+
readonly aliases: string[];
|
|
678
|
+
readonly displayName: string | undefined;
|
|
679
|
+
hasName(name: string): boolean;
|
|
680
|
+
readonly allAliases: string[];
|
|
681
|
+
readonly allRefNames: string[] | undefined;
|
|
682
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
683
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
684
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
685
|
+
readonly refNameColors: string[];
|
|
686
|
+
} & {
|
|
687
|
+
readonly refNames: string[] | undefined;
|
|
688
|
+
} & {
|
|
689
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
690
|
+
getRefNameColor(refName: string): string | undefined;
|
|
691
|
+
isValidRefName(refName: string): boolean;
|
|
692
|
+
} & {
|
|
693
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
694
|
+
setError(e: unknown): void;
|
|
695
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
696
|
+
setRefNameAliases(aliases: {
|
|
697
|
+
[x: string]: string | undefined;
|
|
698
|
+
}, lcAliases: {
|
|
699
|
+
[x: string]: string | undefined;
|
|
700
|
+
}): void;
|
|
701
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
702
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
703
|
+
load(): Promise<void>;
|
|
704
|
+
loadPre(): Promise<void>;
|
|
705
|
+
} & {
|
|
706
|
+
getAdapterMapEntry(adapterConf: {
|
|
707
|
+
[x: string]: unknown;
|
|
708
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
709
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
710
|
+
[x: string]: unknown;
|
|
711
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
712
|
+
[x: string]: string | undefined;
|
|
713
|
+
}>;
|
|
714
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
715
|
+
[x: string]: unknown;
|
|
716
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
717
|
+
[x: string]: string | undefined;
|
|
718
|
+
}>;
|
|
719
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
720
|
+
}): Promise<void>;
|
|
438
721
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
439
722
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
440
723
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -485,10 +768,14 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
485
768
|
displayedRegions: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
|
|
486
769
|
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
487
770
|
start: import("mobx-state-tree").ISimpleType<number>;
|
|
488
|
-
end: import("mobx-state-tree").ISimpleType<number>;
|
|
771
|
+
end: import("mobx-state-tree").ISimpleType<number>; /**
|
|
772
|
+
* #property/
|
|
773
|
+
*/
|
|
489
774
|
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
490
775
|
} & {
|
|
491
|
-
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
776
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>; /**
|
|
777
|
+
* #action
|
|
778
|
+
*/
|
|
492
779
|
}, {
|
|
493
780
|
setRefName(newRefName: string): void;
|
|
494
781
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
@@ -574,7 +861,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
574
861
|
} & {
|
|
575
862
|
moveTrack(movingId: string, targetId: string): void;
|
|
576
863
|
closeView(): void;
|
|
577
|
-
toggleTrack(trackId: string):
|
|
864
|
+
toggleTrack(trackId: string): boolean;
|
|
578
865
|
setTrackLabels(setting: "offset" | "hidden" | "overlapping"): void;
|
|
579
866
|
toggleCenterLine(): void;
|
|
580
867
|
setDisplayedRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
@@ -624,6 +911,138 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
624
911
|
} & {
|
|
625
912
|
moveTo(start?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined, end?: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").BpOffset | undefined): void;
|
|
626
913
|
navToLocString(input: string, optAssemblyName?: string | undefined): Promise<void>;
|
|
914
|
+
navToSearchString({ input, assembly, }: {
|
|
915
|
+
input: string;
|
|
916
|
+
assembly: {
|
|
917
|
+
configuration: any;
|
|
918
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
919
|
+
error: unknown;
|
|
920
|
+
loaded: boolean;
|
|
921
|
+
loadingP: Promise<void> | undefined;
|
|
922
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
923
|
+
refNameAliases: {
|
|
924
|
+
[x: string]: string | undefined;
|
|
925
|
+
} | undefined;
|
|
926
|
+
lowerCaseRefNameAliases: {
|
|
927
|
+
[x: string]: string | undefined;
|
|
928
|
+
} | undefined;
|
|
929
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
930
|
+
} & {
|
|
931
|
+
getConf(arg: string): any;
|
|
932
|
+
} & {
|
|
933
|
+
readonly initialized: boolean; /**
|
|
934
|
+
* #property/
|
|
935
|
+
*/
|
|
936
|
+
readonly name: string;
|
|
937
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
938
|
+
readonly aliases: string[];
|
|
939
|
+
readonly displayName: string | undefined;
|
|
940
|
+
hasName(name: string): boolean;
|
|
941
|
+
readonly allAliases: string[];
|
|
942
|
+
readonly allRefNames: string[] | undefined;
|
|
943
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
944
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
945
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
946
|
+
readonly refNameColors: string[];
|
|
947
|
+
} & {
|
|
948
|
+
readonly refNames: string[] | undefined;
|
|
949
|
+
} & {
|
|
950
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
951
|
+
getRefNameColor(refName: string): string | undefined;
|
|
952
|
+
isValidRefName(refName: string): boolean;
|
|
953
|
+
} & {
|
|
954
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
955
|
+
setError(e: unknown): void;
|
|
956
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
957
|
+
setRefNameAliases(aliases: {
|
|
958
|
+
[x: string]: string | undefined;
|
|
959
|
+
}, lcAliases: {
|
|
960
|
+
[x: string]: string | undefined;
|
|
961
|
+
}): void;
|
|
962
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
963
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
964
|
+
load(): Promise<void>;
|
|
965
|
+
loadPre(): Promise<void>;
|
|
966
|
+
} & {
|
|
967
|
+
getAdapterMapEntry(adapterConf: {
|
|
968
|
+
[x: string]: unknown;
|
|
969
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
970
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
971
|
+
[x: string]: unknown;
|
|
972
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
973
|
+
[x: string]: string | undefined;
|
|
974
|
+
}>;
|
|
975
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
976
|
+
[x: string]: unknown;
|
|
977
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
978
|
+
[x: string]: string | undefined;
|
|
979
|
+
}>;
|
|
980
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
981
|
+
configuration: import("mobx-state-tree").IMaybe<import("mobx-state-tree").IReferenceType<import("mobx-state-tree").IAnyType>>;
|
|
982
|
+
}, {
|
|
983
|
+
error: unknown;
|
|
984
|
+
loaded: boolean;
|
|
985
|
+
loadingP: Promise<void> | undefined;
|
|
986
|
+
volatileRegions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
987
|
+
refNameAliases: {
|
|
988
|
+
[x: string]: string | undefined;
|
|
989
|
+
} | undefined;
|
|
990
|
+
lowerCaseRefNameAliases: {
|
|
991
|
+
[x: string]: string | undefined;
|
|
992
|
+
} | undefined;
|
|
993
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
994
|
+
} & {
|
|
995
|
+
getConf(arg: string): any;
|
|
996
|
+
} & {
|
|
997
|
+
readonly initialized: boolean; /**
|
|
998
|
+
* #property/
|
|
999
|
+
*/
|
|
1000
|
+
readonly name: string;
|
|
1001
|
+
readonly regions: import("@jbrowse/core/assemblyManager/assembly").BasicRegion[] | undefined;
|
|
1002
|
+
readonly aliases: string[];
|
|
1003
|
+
readonly displayName: string | undefined;
|
|
1004
|
+
hasName(name: string): boolean;
|
|
1005
|
+
readonly allAliases: string[];
|
|
1006
|
+
readonly allRefNames: string[] | undefined;
|
|
1007
|
+
readonly lowerCaseRefNames: string[] | undefined;
|
|
1008
|
+
readonly allRefNamesWithLowerCase: string[] | undefined;
|
|
1009
|
+
readonly rpcManager: import("@jbrowse/core/rpc/RpcManager").default;
|
|
1010
|
+
readonly refNameColors: string[];
|
|
1011
|
+
} & {
|
|
1012
|
+
readonly refNames: string[] | undefined;
|
|
1013
|
+
} & {
|
|
1014
|
+
getCanonicalRefName(refName: string): string | undefined;
|
|
1015
|
+
getRefNameColor(refName: string): string | undefined;
|
|
1016
|
+
isValidRefName(refName: string): boolean;
|
|
1017
|
+
} & {
|
|
1018
|
+
setLoaded({ adapterRegionsWithAssembly, refNameAliases, lowerCaseRefNameAliases, cytobands, }: import("@jbrowse/core/assemblyManager/assembly").Loading): void;
|
|
1019
|
+
setError(e: unknown): void;
|
|
1020
|
+
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
1021
|
+
setRefNameAliases(aliases: {
|
|
1022
|
+
[x: string]: string | undefined;
|
|
1023
|
+
}, lcAliases: {
|
|
1024
|
+
[x: string]: string | undefined;
|
|
1025
|
+
}): void;
|
|
1026
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
1027
|
+
setLoadingP(p?: Promise<void> | undefined): void;
|
|
1028
|
+
load(): Promise<void>;
|
|
1029
|
+
loadPre(): Promise<void>;
|
|
1030
|
+
} & {
|
|
1031
|
+
getAdapterMapEntry(adapterConf: {
|
|
1032
|
+
[x: string]: unknown;
|
|
1033
|
+
}, options: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<import("@jbrowse/core/assemblyManager/assembly").RefNameMap>;
|
|
1034
|
+
getRefNameMapForAdapter(adapterConf: {
|
|
1035
|
+
[x: string]: unknown;
|
|
1036
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
1037
|
+
[x: string]: string | undefined;
|
|
1038
|
+
}>;
|
|
1039
|
+
getReverseRefNameMapForAdapter(adapterConf: {
|
|
1040
|
+
[x: string]: unknown;
|
|
1041
|
+
}, opts: import("@jbrowse/core/data_adapters/BaseAdapter").BaseOptions): Promise<{
|
|
1042
|
+
[x: string]: string | undefined;
|
|
1043
|
+
}>;
|
|
1044
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
1045
|
+
}): Promise<void>;
|
|
627
1046
|
navToLocations(parsedLocStrings: import("@jbrowse/core/util").ParsedLocString[], assemblyName?: string | undefined): Promise<void>;
|
|
628
1047
|
navTo(query: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation): void;
|
|
629
1048
|
navToMultiple(locations: import("@jbrowse/plugin-linear-genome-view/src/LinearGenomeView").NavLocation[]): void;
|
|
@@ -667,7 +1086,7 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
667
1086
|
setMiddleComparativeHeight(n: number): number;
|
|
668
1087
|
toggleLinkViews(): void;
|
|
669
1088
|
activateTrackSelector(): import("@jbrowse/core/util").Widget | undefined;
|
|
670
|
-
toggleTrack(trackId: string):
|
|
1089
|
+
toggleTrack(trackId: string): boolean;
|
|
671
1090
|
showTrack(trackId: string, initialSnapshot?: {}): void;
|
|
672
1091
|
hideTrack(trackId: string): number;
|
|
673
1092
|
squareView(): void;
|
|
@@ -696,6 +1115,9 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
696
1115
|
*/
|
|
697
1116
|
showAllRegions(): void;
|
|
698
1117
|
} & {
|
|
1118
|
+
/**
|
|
1119
|
+
* #action
|
|
1120
|
+
*/
|
|
699
1121
|
exportSvg(opts: ExportSvgOptions): Promise<void>;
|
|
700
1122
|
} & {
|
|
701
1123
|
/**
|
|
@@ -745,6 +1167,9 @@ export default function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
745
1167
|
checked?: undefined;
|
|
746
1168
|
type?: undefined;
|
|
747
1169
|
})[];
|
|
1170
|
+
/**
|
|
1171
|
+
* #method
|
|
1172
|
+
*/
|
|
748
1173
|
menuItems(): (import("@jbrowse/core/ui").MenuDivider | import("@jbrowse/core/ui").MenuSubHeader | import("@jbrowse/core/ui").NormalMenuItem | import("@jbrowse/core/ui").CheckboxMenuItem | import("@jbrowse/core/ui").RadioMenuItem | import("@jbrowse/core/ui").SubMenuItem | {
|
|
749
1174
|
label: string;
|
|
750
1175
|
icon: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
|
|
@@ -43,7 +43,8 @@ const model_1 = __importDefault(require("../LinearComparativeView/model"));
|
|
|
43
43
|
const ExportSvgDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./components/ExportSvgDialog'))));
|
|
44
44
|
/**
|
|
45
45
|
* #stateModel LinearSyntenyView
|
|
46
|
-
* extends
|
|
46
|
+
* extends
|
|
47
|
+
* - [LinearComparativeView](../linearcomparativeview)
|
|
47
48
|
*/
|
|
48
49
|
function stateModelFactory(pluginManager) {
|
|
49
50
|
return mobx_state_tree_1.types
|
|
@@ -84,6 +85,9 @@ function stateModelFactory(pluginManager) {
|
|
|
84
85
|
},
|
|
85
86
|
}))
|
|
86
87
|
.actions(self => ({
|
|
88
|
+
/**
|
|
89
|
+
* #action
|
|
90
|
+
*/
|
|
87
91
|
async exportSvg(opts) {
|
|
88
92
|
const { renderToSvg } = await Promise.resolve().then(() => __importStar(require('./svgcomponents/SVGLinearSyntenyView')));
|
|
89
93
|
const html = await renderToSvg(self, opts);
|
|
@@ -148,6 +152,9 @@ function stateModelFactory(pluginManager) {
|
|
|
148
152
|
},
|
|
149
153
|
];
|
|
150
154
|
},
|
|
155
|
+
/**
|
|
156
|
+
* #method
|
|
157
|
+
*/
|
|
151
158
|
menuItems() {
|
|
152
159
|
return [
|
|
153
160
|
...superMenuItems(),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.renderToSvg = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const material_1 = require("@mui/material");
|
|
9
|
-
const
|
|
9
|
+
const mobx_state_tree_1 = require("mobx-state-tree");
|
|
10
10
|
const mobx_1 = require("mobx");
|
|
11
11
|
const util_1 = require("@jbrowse/core/util");
|
|
12
12
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
@@ -19,14 +19,14 @@ const drawSynteny_1 = require("../../LinearSyntenyDisplay/drawSynteny");
|
|
|
19
19
|
async function renderToSvg(model, opts) {
|
|
20
20
|
var _a;
|
|
21
21
|
await (0, mobx_1.when)(() => model.initialized);
|
|
22
|
-
const { textHeight = 18, headerHeight = 30, rulerHeight = 30, fontSize = 13, trackLabels = 'offset',
|
|
23
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
24
|
-
Wrapper = ({ children }) => react_1.default.createElement(react_1.default.Fragment, null, children), themeName = 'default', } = opts;
|
|
22
|
+
const { textHeight = 18, headerHeight = 30, rulerHeight = 30, fontSize = 13, trackLabels = 'offset', Wrapper = ({ children }) => react_1.default.createElement(react_1.default.Fragment, null, children), themeName = 'default', } = opts;
|
|
25
23
|
const session = (0, util_1.getSession)(model);
|
|
26
24
|
const theme = (_a = session.allThemes) === null || _a === void 0 ? void 0 : _a.call(session)[themeName];
|
|
27
25
|
const { width, views, middleComparativeHeight: synH, tracks } = model;
|
|
28
26
|
const shift = 50;
|
|
29
27
|
const offset = headerHeight + rulerHeight;
|
|
28
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
29
|
+
const { createRootFn } = (0, mobx_state_tree_1.getRoot)(model);
|
|
30
30
|
const heights = views.map(v => (0, plugin_linear_genome_view_1.totalHeight)(v.tracks, textHeight, trackLabels) + offset);
|
|
31
31
|
const totalHeightSvg = (0, util_1.sum)(heights) + synH + 100;
|
|
32
32
|
const displayResults = await Promise.all(views.map(async (view) => ({
|
|
@@ -62,7 +62,7 @@ async function renderToSvg(model, opts) {
|
|
|
62
62
|
const w = width + trackLabelOffset;
|
|
63
63
|
const t = (0, ui_1.createJBrowseTheme)(theme);
|
|
64
64
|
// the xlink namespace is used for rendering <image> tag
|
|
65
|
-
return (0,
|
|
65
|
+
return (0, util_1.renderToStaticMarkup)(react_1.default.createElement(material_1.ThemeProvider, { theme: (0, ui_1.createJBrowseTheme)(theme) },
|
|
66
66
|
react_1.default.createElement(Wrapper, null,
|
|
67
67
|
react_1.default.createElement("svg", { width: width, height: totalHeightSvg, xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", viewBox: [0, 0, w + shift * 2, totalHeightSvg].toString() },
|
|
68
68
|
react_1.default.createElement(SVGBackground_1.default, { width: w, height: totalHeightSvg, shift: shift }),
|
|
@@ -79,6 +79,6 @@ async function renderToSvg(model, opts) {
|
|
|
79
79
|
react_1.default.createElement("g", { transform: `translate(${trackLabelOffset})` },
|
|
80
80
|
react_1.default.createElement("text", { x: 0, fontSize: fontSize, fill: t.palette.text.primary }, views[1].assemblyNames.join(', ')),
|
|
81
81
|
react_1.default.createElement(plugin_linear_genome_view_1.SVGRuler, { model: displayResults[1].view, fontSize: fontSize })),
|
|
82
|
-
react_1.default.createElement(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults[1].view, displayResults: displayResults[1].data, offset: offset, trackLabelOffset: trackLabelOffset }))))));
|
|
82
|
+
react_1.default.createElement(plugin_linear_genome_view_1.SVGTracks, { textHeight: textHeight, trackLabels: trackLabels, fontSize: fontSize, model: displayResults[1].view, displayResults: displayResults[1].data, offset: offset, trackLabelOffset: trackLabelOffset }))))), createRootFn);
|
|
83
83
|
}
|
|
84
84
|
exports.renderToSvg = renderToSvg;
|
|
@@ -58,6 +58,11 @@ declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/c
|
|
|
58
58
|
defaultValue: number;
|
|
59
59
|
description: string;
|
|
60
60
|
};
|
|
61
|
+
maxDepth: {
|
|
62
|
+
type: string;
|
|
63
|
+
defaultValue: number;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
61
66
|
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
62
67
|
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
63
68
|
config: {
|