@jbrowse/plugin-linear-genome-view 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/BaseLinearDisplay/components/FloatingLabels.js +3 -4
- package/esm/BaseLinearDisplay/components/LoadingOverlay.d.ts +2 -1
- package/esm/BaseLinearDisplay/components/LoadingOverlay.js +2 -2
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.d.ts +1 -0
- package/esm/BaseLinearDisplay/components/NonBlockCanvasDisplayComponent.js +2 -2
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.d.ts +1 -0
- package/esm/BaseLinearDisplay/components/ServerSideRenderedBlockContent.js +1 -1
- package/esm/BaseLinearDisplay/components/util.d.ts +8 -8
- package/esm/BaseLinearDisplay/components/util.js +25 -35
- package/esm/BaseLinearDisplay/model.d.ts +18 -8
- package/esm/BaseLinearDisplay/models/SvgFloatingLabels.d.ts +8 -0
- package/esm/BaseLinearDisplay/models/SvgFloatingLabels.js +19 -0
- package/esm/BaseLinearDisplay/models/configSchema.d.ts +2 -2
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.d.ts +2 -0
- package/esm/BaseLinearDisplay/models/serverSideRenderedBlock.js +3 -0
- package/esm/BaseLinearDisplay/models/util.d.ts +0 -13
- package/esm/BaseLinearDisplay/renderSvg.js +8 -4
- package/esm/BaseLinearDisplay/types.d.ts +0 -4
- package/esm/BasicTrack/configSchema.d.ts +8 -8
- package/esm/FeatureTrack/configSchema.d.ts +8 -8
- package/esm/LinearBareDisplay/configSchema.d.ts +3 -3
- package/esm/LinearBareDisplay/model.d.ts +18 -8
- package/esm/LinearBasicDisplay/configSchema.d.ts +3 -3
- package/esm/LinearBasicDisplay/model.d.ts +18 -8
- package/esm/LinearFeatureDisplay/configSchema.d.ts +3 -3
- package/esm/LinearFeatureDisplay/model.d.ts +22 -10
- package/esm/LinearGenomeView/components/ExportSvgDialog.js +18 -6
- package/esm/LinearGenomeView/components/SearchResultsTable.js +2 -7
- package/esm/LinearGenomeView/lazyDialogs.d.ts +23 -0
- package/esm/LinearGenomeView/lazyDialogs.js +5 -0
- package/esm/LinearGenomeView/menuItems.js +1 -5
- package/esm/LinearGenomeView/model.d.ts +2 -1
- package/esm/LinearGenomeView/model.js +64 -13
- package/esm/LinearGenomeView/types.d.ts +1 -0
- package/esm/index.d.ts +23 -12
- package/esm/index.js +1 -0
- package/esm/searchUtils.js +4 -1
- package/package.json +5 -5
- package/esm/BaseLinearDisplay/models/calculateLabelPositions.d.ts +0 -24
- package/esm/BaseLinearDisplay/models/calculateLabelPositions.js +0 -60
- package/esm/BaseLinearDisplay/models/renderSvg.d.ts +0 -3
- package/esm/BaseLinearDisplay/models/renderSvg.js +0 -55
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare const configSchema: (pluginManager: PluginManager) => import("
|
|
2
|
+
declare const configSchema: (pluginManager: PluginManager) => import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
name: {
|
|
4
4
|
description: string;
|
|
5
5
|
type: string;
|
|
@@ -31,7 +31,7 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
31
31
|
defaultValue: string;
|
|
32
32
|
};
|
|
33
33
|
adapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
34
|
-
textSearching: import("
|
|
34
|
+
textSearching: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
35
35
|
indexingAttributes: {
|
|
36
36
|
type: string;
|
|
37
37
|
description: string;
|
|
@@ -43,9 +43,9 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
43
43
|
defaultValue: string[];
|
|
44
44
|
};
|
|
45
45
|
textSearchAdapter: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
46
|
-
}, import("
|
|
46
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
47
47
|
displays: import("@jbrowse/mobx-state-tree").IArrayType<import("@jbrowse/mobx-state-tree").IAnyModelType>;
|
|
48
|
-
formatDetails: import("
|
|
48
|
+
formatDetails: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
49
49
|
feature: {
|
|
50
50
|
type: string;
|
|
51
51
|
description: string;
|
|
@@ -68,8 +68,8 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
68
68
|
defaultValue: number;
|
|
69
69
|
description: string;
|
|
70
70
|
};
|
|
71
|
-
}, import("
|
|
72
|
-
formatAbout: import("
|
|
71
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
72
|
+
formatAbout: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
73
73
|
config: {
|
|
74
74
|
type: string;
|
|
75
75
|
description: string;
|
|
@@ -80,6 +80,6 @@ declare const configSchema: (pluginManager: PluginManager) => import("node_modul
|
|
|
80
80
|
type: string;
|
|
81
81
|
defaultValue: boolean;
|
|
82
82
|
};
|
|
83
|
-
}, import("
|
|
84
|
-
}, import("
|
|
83
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
84
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "trackId">>, "trackId">>;
|
|
85
85
|
export default configSchema;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function configSchemaFactory(pluginManager: PluginManager): import("
|
|
2
|
+
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
renderer: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
4
|
-
}, import("
|
|
4
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
5
|
maxFeatureScreenDensity: {
|
|
6
6
|
type: string;
|
|
7
7
|
description: string;
|
|
@@ -28,5 +28,5 @@ declare function configSchemaFactory(pluginManager: PluginManager): import("node
|
|
|
28
28
|
description: string;
|
|
29
29
|
defaultValue: never[];
|
|
30
30
|
};
|
|
31
|
-
}, import("
|
|
31
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
32
32
|
export { configSchemaFactory };
|
|
@@ -33,6 +33,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
33
33
|
statusMessage?: string;
|
|
34
34
|
reactElement?: React.ReactElement;
|
|
35
35
|
isRenderingPending?: boolean;
|
|
36
|
+
displayHeight?: number;
|
|
36
37
|
};
|
|
37
38
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
38
39
|
renderProps: any;
|
|
@@ -51,10 +52,11 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
51
52
|
beforeDestroy(): void;
|
|
52
53
|
} & {
|
|
53
54
|
readonly statusMessage: any;
|
|
55
|
+
readonly displayHeight: number | undefined;
|
|
54
56
|
} & {
|
|
55
57
|
afterAttach(): void;
|
|
56
58
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
57
|
-
configuration: import("
|
|
59
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
58
60
|
maxFeatureScreenDensity: {
|
|
59
61
|
type: string;
|
|
60
62
|
description: string;
|
|
@@ -81,7 +83,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
81
83
|
description: string;
|
|
82
84
|
defaultValue: never[];
|
|
83
85
|
};
|
|
84
|
-
}, import("
|
|
86
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
85
87
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
86
88
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
87
89
|
} & {
|
|
@@ -375,6 +377,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
375
377
|
statusMessage?: string;
|
|
376
378
|
reactElement?: React.ReactElement;
|
|
377
379
|
isRenderingPending?: boolean;
|
|
380
|
+
displayHeight?: number;
|
|
378
381
|
};
|
|
379
382
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
380
383
|
renderProps: any;
|
|
@@ -393,6 +396,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
393
396
|
beforeDestroy(): void;
|
|
394
397
|
} & {
|
|
395
398
|
readonly statusMessage: any;
|
|
399
|
+
readonly displayHeight: number | undefined;
|
|
396
400
|
} & {
|
|
397
401
|
afterAttach(): void;
|
|
398
402
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -419,6 +423,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
419
423
|
statusMessage?: string;
|
|
420
424
|
reactElement?: React.ReactElement;
|
|
421
425
|
isRenderingPending?: boolean;
|
|
426
|
+
displayHeight?: number;
|
|
422
427
|
};
|
|
423
428
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
424
429
|
renderProps: any;
|
|
@@ -437,6 +442,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
437
442
|
beforeDestroy(): void;
|
|
438
443
|
} & {
|
|
439
444
|
readonly statusMessage: any;
|
|
445
|
+
readonly displayHeight: number | undefined;
|
|
440
446
|
} & {
|
|
441
447
|
afterAttach(): void;
|
|
442
448
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -450,7 +456,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
450
456
|
[x: string]: any;
|
|
451
457
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
452
458
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
453
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
459
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
454
460
|
maxFeatureScreenDensity: {
|
|
455
461
|
type: string;
|
|
456
462
|
description: string;
|
|
@@ -477,7 +483,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
477
483
|
description: string;
|
|
478
484
|
defaultValue: never[];
|
|
479
485
|
};
|
|
480
|
-
}, import("
|
|
486
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
481
487
|
showLegend: boolean | undefined;
|
|
482
488
|
showTooltips: boolean | undefined;
|
|
483
489
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -767,6 +773,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
767
773
|
statusMessage?: string;
|
|
768
774
|
reactElement?: React.ReactElement;
|
|
769
775
|
isRenderingPending?: boolean;
|
|
776
|
+
displayHeight?: number;
|
|
770
777
|
};
|
|
771
778
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
772
779
|
renderProps: any;
|
|
@@ -785,10 +792,11 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
785
792
|
beforeDestroy(): void;
|
|
786
793
|
} & {
|
|
787
794
|
readonly statusMessage: any;
|
|
795
|
+
readonly displayHeight: number | undefined;
|
|
788
796
|
} & {
|
|
789
797
|
afterAttach(): void;
|
|
790
798
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
791
|
-
configuration: import("
|
|
799
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
792
800
|
maxFeatureScreenDensity: {
|
|
793
801
|
type: string;
|
|
794
802
|
description: string;
|
|
@@ -815,7 +823,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
815
823
|
description: string;
|
|
816
824
|
defaultValue: never[];
|
|
817
825
|
};
|
|
818
|
-
}, import("
|
|
826
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
819
827
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
820
828
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
821
829
|
}, {
|
|
@@ -1121,6 +1129,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1121
1129
|
statusMessage?: string;
|
|
1122
1130
|
reactElement?: React.ReactElement;
|
|
1123
1131
|
isRenderingPending?: boolean;
|
|
1132
|
+
displayHeight?: number;
|
|
1124
1133
|
};
|
|
1125
1134
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1126
1135
|
renderProps: any;
|
|
@@ -1139,10 +1148,11 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1139
1148
|
beforeDestroy(): void;
|
|
1140
1149
|
} & {
|
|
1141
1150
|
readonly statusMessage: any;
|
|
1151
|
+
readonly displayHeight: number | undefined;
|
|
1142
1152
|
} & {
|
|
1143
1153
|
afterAttach(): void;
|
|
1144
1154
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
1145
|
-
configuration: import("
|
|
1155
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1146
1156
|
maxFeatureScreenDensity: {
|
|
1147
1157
|
type: string;
|
|
1148
1158
|
description: string;
|
|
@@ -1169,7 +1179,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
1169
1179
|
description: string;
|
|
1170
1180
|
defaultValue: never[];
|
|
1171
1181
|
};
|
|
1172
|
-
}, import("
|
|
1182
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
1173
1183
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1174
1184
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1175
1185
|
}>> & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & import("@jbrowse/mobx-state-tree")._NotCustomized, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function configSchemaFactory(pluginManager: PluginManager): import("
|
|
2
|
+
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
renderer: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
4
|
-
}, import("
|
|
4
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
5
|
maxFeatureScreenDensity: {
|
|
6
6
|
type: string;
|
|
7
7
|
description: string;
|
|
@@ -28,5 +28,5 @@ declare function configSchemaFactory(pluginManager: PluginManager): import("node
|
|
|
28
28
|
description: string;
|
|
29
29
|
defaultValue: never[];
|
|
30
30
|
};
|
|
31
|
-
}, import("
|
|
31
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
32
32
|
export default configSchemaFactory;
|
|
@@ -35,6 +35,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
35
35
|
statusMessage?: string;
|
|
36
36
|
reactElement?: React.ReactElement;
|
|
37
37
|
isRenderingPending?: boolean;
|
|
38
|
+
displayHeight?: number;
|
|
38
39
|
};
|
|
39
40
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
renderProps: any;
|
|
@@ -53,10 +54,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
53
54
|
beforeDestroy(): void;
|
|
54
55
|
} & {
|
|
55
56
|
readonly statusMessage: any;
|
|
57
|
+
readonly displayHeight: number | undefined;
|
|
56
58
|
} & {
|
|
57
59
|
afterAttach(): void;
|
|
58
60
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
59
|
-
configuration: import("
|
|
61
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
60
62
|
maxFeatureScreenDensity: {
|
|
61
63
|
type: string;
|
|
62
64
|
description: string;
|
|
@@ -83,7 +85,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
83
85
|
description: string;
|
|
84
86
|
defaultValue: never[];
|
|
85
87
|
};
|
|
86
|
-
}, import("
|
|
88
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
87
89
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
88
90
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
89
91
|
} & {
|
|
@@ -388,6 +390,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
388
390
|
statusMessage?: string;
|
|
389
391
|
reactElement?: React.ReactElement;
|
|
390
392
|
isRenderingPending?: boolean;
|
|
393
|
+
displayHeight?: number;
|
|
391
394
|
};
|
|
392
395
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
393
396
|
renderProps: any;
|
|
@@ -406,6 +409,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
406
409
|
beforeDestroy(): void;
|
|
407
410
|
} & {
|
|
408
411
|
readonly statusMessage: any;
|
|
412
|
+
readonly displayHeight: number | undefined;
|
|
409
413
|
} & {
|
|
410
414
|
afterAttach(): void;
|
|
411
415
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -432,6 +436,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
432
436
|
statusMessage?: string;
|
|
433
437
|
reactElement?: React.ReactElement;
|
|
434
438
|
isRenderingPending?: boolean;
|
|
439
|
+
displayHeight?: number;
|
|
435
440
|
};
|
|
436
441
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
437
442
|
renderProps: any;
|
|
@@ -450,6 +455,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
450
455
|
beforeDestroy(): void;
|
|
451
456
|
} & {
|
|
452
457
|
readonly statusMessage: any;
|
|
458
|
+
readonly displayHeight: number | undefined;
|
|
453
459
|
} & {
|
|
454
460
|
afterAttach(): void;
|
|
455
461
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -463,7 +469,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
463
469
|
[x: string]: any;
|
|
464
470
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
465
471
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
466
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
472
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
467
473
|
maxFeatureScreenDensity: {
|
|
468
474
|
type: string;
|
|
469
475
|
description: string;
|
|
@@ -490,7 +496,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
490
496
|
description: string;
|
|
491
497
|
defaultValue: never[];
|
|
492
498
|
};
|
|
493
|
-
}, import("
|
|
499
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
494
500
|
showLegend: boolean | undefined;
|
|
495
501
|
showTooltips: boolean | undefined;
|
|
496
502
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -780,6 +786,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
780
786
|
statusMessage?: string;
|
|
781
787
|
reactElement?: React.ReactElement;
|
|
782
788
|
isRenderingPending?: boolean;
|
|
789
|
+
displayHeight?: number;
|
|
783
790
|
};
|
|
784
791
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
785
792
|
renderProps: any;
|
|
@@ -798,10 +805,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
798
805
|
beforeDestroy(): void;
|
|
799
806
|
} & {
|
|
800
807
|
readonly statusMessage: any;
|
|
808
|
+
readonly displayHeight: number | undefined;
|
|
801
809
|
} & {
|
|
802
810
|
afterAttach(): void;
|
|
803
811
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
804
|
-
configuration: import("
|
|
812
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
805
813
|
maxFeatureScreenDensity: {
|
|
806
814
|
type: string;
|
|
807
815
|
description: string;
|
|
@@ -828,7 +836,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
828
836
|
description: string;
|
|
829
837
|
defaultValue: never[];
|
|
830
838
|
};
|
|
831
|
-
}, import("
|
|
839
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
832
840
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
833
841
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
834
842
|
}, {
|
|
@@ -1309,6 +1317,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1309
1317
|
statusMessage?: string;
|
|
1310
1318
|
reactElement?: React.ReactElement;
|
|
1311
1319
|
isRenderingPending?: boolean;
|
|
1320
|
+
displayHeight?: number;
|
|
1312
1321
|
};
|
|
1313
1322
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1314
1323
|
renderProps: any;
|
|
@@ -1327,10 +1336,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1327
1336
|
beforeDestroy(): void;
|
|
1328
1337
|
} & {
|
|
1329
1338
|
readonly statusMessage: any;
|
|
1339
|
+
readonly displayHeight: number | undefined;
|
|
1330
1340
|
} & {
|
|
1331
1341
|
afterAttach(): void;
|
|
1332
1342
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
1333
|
-
configuration: import("
|
|
1343
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1334
1344
|
maxFeatureScreenDensity: {
|
|
1335
1345
|
type: string;
|
|
1336
1346
|
description: string;
|
|
@@ -1357,7 +1367,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1357
1367
|
description: string;
|
|
1358
1368
|
defaultValue: never[];
|
|
1359
1369
|
};
|
|
1360
|
-
}, import("
|
|
1370
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
1361
1371
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1362
1372
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1363
1373
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function configSchemaFactory(pluginManager: PluginManager): import("
|
|
2
|
+
declare function configSchemaFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
3
|
renderer: import("@jbrowse/mobx-state-tree").IAnyModelType;
|
|
4
|
-
}, import("
|
|
4
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
5
5
|
maxFeatureScreenDensity: {
|
|
6
6
|
type: string;
|
|
7
7
|
description: string;
|
|
@@ -28,5 +28,5 @@ declare function configSchemaFactory(pluginManager: PluginManager): import("node
|
|
|
28
28
|
description: string;
|
|
29
29
|
defaultValue: never[];
|
|
30
30
|
};
|
|
31
|
-
}, import("
|
|
31
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
32
32
|
export default configSchemaFactory;
|
|
@@ -37,6 +37,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
37
37
|
statusMessage?: string;
|
|
38
38
|
reactElement?: React.ReactElement;
|
|
39
39
|
isRenderingPending?: boolean;
|
|
40
|
+
displayHeight?: number;
|
|
40
41
|
};
|
|
41
42
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
42
43
|
renderProps: any;
|
|
@@ -55,10 +56,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
55
56
|
beforeDestroy(): void;
|
|
56
57
|
} & {
|
|
57
58
|
readonly statusMessage: any;
|
|
59
|
+
readonly displayHeight: number | undefined;
|
|
58
60
|
} & {
|
|
59
61
|
afterAttach(): void;
|
|
60
62
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
61
|
-
configuration: import("
|
|
63
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
62
64
|
maxFeatureScreenDensity: {
|
|
63
65
|
type: string;
|
|
64
66
|
description: string;
|
|
@@ -85,7 +87,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
85
87
|
description: string;
|
|
86
88
|
defaultValue: never[];
|
|
87
89
|
};
|
|
88
|
-
}, import("
|
|
90
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
89
91
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
90
92
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
91
93
|
} & {
|
|
@@ -384,6 +386,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
384
386
|
statusMessage?: string;
|
|
385
387
|
reactElement?: React.ReactElement;
|
|
386
388
|
isRenderingPending?: boolean;
|
|
389
|
+
displayHeight?: number;
|
|
387
390
|
};
|
|
388
391
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
389
392
|
renderProps: any;
|
|
@@ -402,6 +405,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
402
405
|
beforeDestroy(): void;
|
|
403
406
|
} & {
|
|
404
407
|
readonly statusMessage: any;
|
|
408
|
+
readonly displayHeight: number | undefined;
|
|
405
409
|
} & {
|
|
406
410
|
afterAttach(): void;
|
|
407
411
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>> & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IMapType<import("@jbrowse/mobx-state-tree").IModelType<{
|
|
@@ -428,6 +432,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
428
432
|
statusMessage?: string;
|
|
429
433
|
reactElement?: React.ReactElement;
|
|
430
434
|
isRenderingPending?: boolean;
|
|
435
|
+
displayHeight?: number;
|
|
431
436
|
};
|
|
432
437
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
433
438
|
renderProps: any;
|
|
@@ -446,6 +451,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
446
451
|
beforeDestroy(): void;
|
|
447
452
|
} & {
|
|
448
453
|
readonly statusMessage: any;
|
|
454
|
+
readonly displayHeight: number | undefined;
|
|
449
455
|
} & {
|
|
450
456
|
afterAttach(): void;
|
|
451
457
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>>;
|
|
@@ -459,7 +465,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
459
465
|
[x: string]: any;
|
|
460
466
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & any & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
461
467
|
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>);
|
|
462
|
-
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("
|
|
468
|
+
} & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
463
469
|
maxFeatureScreenDensity: {
|
|
464
470
|
type: string;
|
|
465
471
|
description: string;
|
|
@@ -486,7 +492,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
486
492
|
description: string;
|
|
487
493
|
defaultValue: never[];
|
|
488
494
|
};
|
|
489
|
-
}, import("
|
|
495
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>>;
|
|
490
496
|
showLegend: boolean | undefined;
|
|
491
497
|
showTooltips: boolean | undefined;
|
|
492
498
|
} & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
@@ -776,6 +782,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
776
782
|
statusMessage?: string;
|
|
777
783
|
reactElement?: React.ReactElement;
|
|
778
784
|
isRenderingPending?: boolean;
|
|
785
|
+
displayHeight?: number;
|
|
779
786
|
};
|
|
780
787
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
781
788
|
renderProps: any;
|
|
@@ -794,10 +801,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
794
801
|
beforeDestroy(): void;
|
|
795
802
|
} & {
|
|
796
803
|
readonly statusMessage: any;
|
|
804
|
+
readonly displayHeight: number | undefined;
|
|
797
805
|
} & {
|
|
798
806
|
afterAttach(): void;
|
|
799
807
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
800
|
-
configuration: import("
|
|
808
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
801
809
|
maxFeatureScreenDensity: {
|
|
802
810
|
type: string;
|
|
803
811
|
description: string;
|
|
@@ -824,7 +832,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
824
832
|
description: string;
|
|
825
833
|
defaultValue: never[];
|
|
826
834
|
};
|
|
827
|
-
}, import("
|
|
835
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
828
836
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
829
837
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
830
838
|
}, {
|
|
@@ -1280,6 +1288,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1280
1288
|
statusMessage?: string;
|
|
1281
1289
|
reactElement?: React.ReactElement;
|
|
1282
1290
|
isRenderingPending?: boolean;
|
|
1291
|
+
displayHeight?: number;
|
|
1283
1292
|
};
|
|
1284
1293
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1285
1294
|
renderProps: any;
|
|
@@ -1298,10 +1307,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1298
1307
|
beforeDestroy(): void;
|
|
1299
1308
|
} & {
|
|
1300
1309
|
readonly statusMessage: any;
|
|
1310
|
+
readonly displayHeight: number | undefined;
|
|
1301
1311
|
} & {
|
|
1302
1312
|
afterAttach(): void;
|
|
1303
1313
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
1304
|
-
configuration: import("
|
|
1314
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1305
1315
|
maxFeatureScreenDensity: {
|
|
1306
1316
|
type: string;
|
|
1307
1317
|
description: string;
|
|
@@ -1328,7 +1338,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1328
1338
|
description: string;
|
|
1329
1339
|
defaultValue: never[];
|
|
1330
1340
|
};
|
|
1331
|
-
}, import("
|
|
1341
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
1332
1342
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1333
1343
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1334
1344
|
}>> & import("@jbrowse/mobx-state-tree/dist/internal").NonEmptyObject & import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree").ModelSnapshotType<{
|
|
@@ -1365,6 +1375,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1365
1375
|
statusMessage?: string;
|
|
1366
1376
|
reactElement?: React.ReactElement;
|
|
1367
1377
|
isRenderingPending?: boolean;
|
|
1378
|
+
displayHeight?: number;
|
|
1368
1379
|
};
|
|
1369
1380
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
1370
1381
|
renderProps: any;
|
|
@@ -1383,10 +1394,11 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1383
1394
|
beforeDestroy(): void;
|
|
1384
1395
|
} & {
|
|
1385
1396
|
readonly statusMessage: any;
|
|
1397
|
+
readonly displayHeight: number | undefined;
|
|
1386
1398
|
} & {
|
|
1387
1399
|
afterAttach(): void;
|
|
1388
1400
|
}, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
|
|
1389
|
-
configuration: import("
|
|
1401
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
1390
1402
|
maxFeatureScreenDensity: {
|
|
1391
1403
|
type: string;
|
|
1392
1404
|
description: string;
|
|
@@ -1413,7 +1425,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
|
|
|
1413
1425
|
description: string;
|
|
1414
1426
|
defaultValue: never[];
|
|
1415
1427
|
};
|
|
1416
|
-
}, import("
|
|
1428
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
1417
1429
|
showLegend: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1418
1430
|
showTooltips: import("@jbrowse/mobx-state-tree").IMaybe<import("@jbrowse/mobx-state-tree").ISimpleType<boolean>>;
|
|
1419
1431
|
} & {
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Dialog, ErrorMessage } from '@jbrowse/core/ui';
|
|
4
4
|
import { getSession, useLocalStorage } from '@jbrowse/core/util';
|
|
5
|
-
import { Button, Checkbox, CircularProgress, DialogActions, DialogContent, FormControlLabel, MenuItem, TextField, Typography, } from '@mui/material';
|
|
6
|
-
function LoadingMessage() {
|
|
7
|
-
return (_jsxs("div", { children: [_jsx(CircularProgress, { size: 20, style: { marginRight: 20 } }),
|
|
5
|
+
import { Button, Checkbox, CircularProgress, DialogActions, DialogContent, FormControlLabel, MenuItem, TextField, ToggleButton, ToggleButtonGroup, Typography, } from '@mui/material';
|
|
6
|
+
function LoadingMessage({ format }) {
|
|
7
|
+
return (_jsxs("div", { children: [_jsx(CircularProgress, { size: 20, style: { marginRight: 20 } }), _jsxs(Typography, { display: "inline", children: ["Creating ", format.toUpperCase()] })] }));
|
|
8
8
|
}
|
|
9
9
|
function useSvgLocal(key, val) {
|
|
10
10
|
return useLocalStorage(`svg-${key}`, val);
|
|
@@ -19,12 +19,23 @@ export default function ExportSvgDialog({ model, handleClose, }) {
|
|
|
19
19
|
const [showGridlines, setShowGridlines] = useSvgLocal('gridlines', false);
|
|
20
20
|
const [loading, setLoading] = useState(false);
|
|
21
21
|
const [error, setError] = useState();
|
|
22
|
+
const [format, setFormat] = useSvgLocal('format', 'svg');
|
|
22
23
|
const [filename, setFilename] = useSvgLocal('file', 'jbrowse.svg');
|
|
23
24
|
const [trackLabels, setTrackLabels] = useSvgLocal('tracklabels', 'offset');
|
|
24
25
|
const [themeName, setThemeName] = useSvgLocal('theme', session.themeName || 'default');
|
|
25
|
-
return (_jsxs(Dialog, { open: true, onClose: handleClose, title: "Export
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
return (_jsxs(Dialog, { open: true, onClose: handleClose, title: "Export image", children: [_jsxs(DialogContent, { children: [error ? (_jsx(ErrorMessage, { error: error })) : loading ? (_jsx(LoadingMessage, { format: format })) : null, _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: 8 }, children: [_jsx(TextField, { helperText: "filename", value: filename, onChange: event => {
|
|
27
|
+
setFilename(event.target.value);
|
|
28
|
+
} }), _jsxs(ToggleButtonGroup, { value: format, exclusive: true, onChange: (_event, value) => {
|
|
29
|
+
if (value) {
|
|
30
|
+
setFormat(value);
|
|
31
|
+
if (filename.endsWith('.svg') && value === 'png') {
|
|
32
|
+
setFilename(filename.replace(/\.svg$/, '.png'));
|
|
33
|
+
}
|
|
34
|
+
else if (filename.endsWith('.png') && value === 'svg') {
|
|
35
|
+
setFilename(filename.replace(/\.png$/, '.svg'));
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, size: "small", children: [_jsx(ToggleButton, { value: "svg", children: "SVG" }), _jsx(ToggleButton, { value: "png", children: "PNG" })] })] }), _jsxs(TextField2, { select: true, label: "Track label positioning", variant: "outlined", style: { width: 150 }, value: trackLabels, onChange: event => {
|
|
28
39
|
setTrackLabels(event.target.value);
|
|
29
40
|
}, children: [_jsx(MenuItem, { value: "offset", children: "Offset" }), _jsx(MenuItem, { value: "overlay", children: "Overlay" }), _jsx(MenuItem, { value: "left", children: "Left" }), _jsx(MenuItem, { value: "none", children: "None" })] }), session.allThemes ? (_jsx(TextField2, { select: true, label: "Theme", variant: "outlined", value: themeName, onChange: event => {
|
|
30
41
|
setThemeName(event.target.value);
|
|
@@ -40,6 +51,7 @@ export default function ExportSvgDialog({ model, handleClose, }) {
|
|
|
40
51
|
try {
|
|
41
52
|
await model.exportSvg({
|
|
42
53
|
rasterizeLayers,
|
|
54
|
+
format,
|
|
43
55
|
filename,
|
|
44
56
|
trackLabels,
|
|
45
57
|
themeName,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { assembleLocString, getEnv, getSession, parseLocString, } from '@jbrowse/core/util';
|
|
3
|
-
import { getRoot, resolveIdentifier } from '@jbrowse/mobx-state-tree';
|
|
4
3
|
import { Button, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TableRow, } from '@mui/material';
|
|
5
4
|
import { navToOption } from "../../searchUtils.js";
|
|
6
5
|
export default function SearchResultsTable({ searchResults, assemblyName: optAssemblyName, model, handleClose, }) {
|
|
@@ -16,12 +15,7 @@ export default function SearchResultsTable({ searchResults, assemblyName: optAss
|
|
|
16
15
|
throw new Error(`assembly ${assemblyName} regions not loaded`);
|
|
17
16
|
}
|
|
18
17
|
function getTrackName(trackId) {
|
|
19
|
-
|
|
20
|
-
const schema = pluginManager.pluggableConfigSchemaType('track');
|
|
21
|
-
const configuration = resolveIdentifier(schema, getRoot(model), trackId);
|
|
22
|
-
return configuration?.name?.value || '';
|
|
23
|
-
}
|
|
24
|
-
return '';
|
|
18
|
+
return trackId !== undefined ? session.getTracksById()[trackId]?.name : '';
|
|
25
19
|
}
|
|
26
20
|
async function handleClick(result) {
|
|
27
21
|
if (result.hasLocation()) {
|
|
@@ -38,6 +32,7 @@ export default function SearchResultsTable({ searchResults, assemblyName: optAss
|
|
|
38
32
|
model.setDisplayedRegions([newRegion]);
|
|
39
33
|
model.showAllRegions();
|
|
40
34
|
}
|
|
35
|
+
await pluginManager.evaluateAsyncExtensionPoint('LinearGenomeView-searchResultSelected', undefined, { session, result, model, assemblyName });
|
|
41
36
|
}
|
|
42
37
|
}
|
|
43
38
|
return (_jsx(TableContainer, { component: Paper, children: _jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { children: "Name" }), _jsx(TableCell, { align: "right", children: "Location" }), _jsx(TableCell, { align: "right", children: "Track" }), _jsx(TableCell, { align: "right" })] }) }), _jsx(TableBody, { children: searchResults.map(result => {
|