@jbrowse/plugin-variants 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.
- package/dist/ChordVariantDisplay/models/configSchema.d.ts +13 -1
- package/dist/ChordVariantDisplay/models/stateModelFactory.d.ts +20 -4
- package/dist/LinearVariantDisplay/configSchema.d.ts +25 -1
- package/dist/LinearVariantDisplay/model.d.ts +75 -43
- package/dist/StructuralVariantChordRenderer/Chord.d.ts +2 -2
- package/dist/StructuralVariantChordRenderer/ReactComponent.d.ts +2 -2
- package/dist/StructuralVariantChordRenderer/configSchema.d.ts +29 -1
- package/dist/VariantFeatureWidget/AnnotGrid.d.ts +5 -4
- package/dist/VariantFeatureWidget/AnnotGrid.js +34 -14
- package/dist/VariantFeatureWidget/AnnotGrid.js.map +1 -1
- package/dist/VariantFeatureWidget/BreakendOptionDialog.d.ts +3 -4
- package/dist/VariantFeatureWidget/BreakendOptionDialog.js +4 -5
- package/dist/VariantFeatureWidget/BreakendOptionDialog.js.map +1 -1
- package/dist/VariantFeatureWidget/BreakendPanel.d.ts +2 -2
- package/dist/VariantFeatureWidget/VariantAnnotationTable.d.ts +6 -0
- package/dist/VariantFeatureWidget/VariantAnnotationTable.js +17 -0
- package/dist/VariantFeatureWidget/VariantAnnotationTable.js.map +1 -0
- package/dist/VariantFeatureWidget/VariantFeatureWidget.d.ts +8 -2
- package/dist/VariantFeatureWidget/VariantFeatureWidget.js +26 -14
- package/dist/VariantFeatureWidget/VariantFeatureWidget.js.map +1 -1
- package/dist/VariantFeatureWidget/VariantSampleGrid.d.ts +9 -3
- package/dist/VariantFeatureWidget/VariantSampleGrid.js +12 -11
- package/dist/VariantFeatureWidget/VariantSampleGrid.js.map +1 -1
- package/dist/VariantFeatureWidget/index.d.ts +4 -1
- package/dist/VariantTrack/configSchema.d.ts +73 -1
- package/dist/VcfAdapter/VcfAdapter.js +1 -1
- package/dist/VcfAdapter/VcfAdapter.js.map +1 -1
- package/dist/VcfAdapter/configSchema.d.ts +12 -1
- package/dist/VcfTabixAdapter/configSchema.d.ts +32 -1
- package/esm/ChordVariantDisplay/models/configSchema.d.ts +13 -1
- package/esm/ChordVariantDisplay/models/stateModelFactory.d.ts +20 -4
- package/esm/LinearVariantDisplay/configSchema.d.ts +25 -1
- package/esm/LinearVariantDisplay/model.d.ts +75 -43
- package/esm/StructuralVariantChordRenderer/Chord.d.ts +2 -2
- package/esm/StructuralVariantChordRenderer/ReactComponent.d.ts +2 -2
- package/esm/StructuralVariantChordRenderer/configSchema.d.ts +29 -1
- package/esm/VariantFeatureWidget/AnnotGrid.d.ts +5 -4
- package/esm/VariantFeatureWidget/AnnotGrid.js +13 -13
- package/esm/VariantFeatureWidget/AnnotGrid.js.map +1 -1
- package/esm/VariantFeatureWidget/BreakendOptionDialog.d.ts +3 -4
- package/esm/VariantFeatureWidget/BreakendOptionDialog.js +4 -5
- package/esm/VariantFeatureWidget/BreakendOptionDialog.js.map +1 -1
- package/esm/VariantFeatureWidget/BreakendPanel.d.ts +2 -2
- package/esm/VariantFeatureWidget/VariantAnnotationTable.d.ts +6 -0
- package/esm/VariantFeatureWidget/VariantAnnotationTable.js +11 -0
- package/esm/VariantFeatureWidget/VariantAnnotationTable.js.map +1 -0
- package/esm/VariantFeatureWidget/VariantFeatureWidget.d.ts +8 -2
- package/esm/VariantFeatureWidget/VariantFeatureWidget.js +26 -14
- package/esm/VariantFeatureWidget/VariantFeatureWidget.js.map +1 -1
- package/esm/VariantFeatureWidget/VariantSampleGrid.d.ts +9 -3
- package/esm/VariantFeatureWidget/VariantSampleGrid.js +13 -12
- package/esm/VariantFeatureWidget/VariantSampleGrid.js.map +1 -1
- package/esm/VariantFeatureWidget/index.d.ts +4 -1
- package/esm/VariantTrack/configSchema.d.ts +73 -1
- package/esm/VcfAdapter/VcfAdapter.js +2 -1
- package/esm/VcfAdapter/VcfAdapter.js.map +1 -1
- package/esm/VcfAdapter/configSchema.d.ts +12 -1
- package/esm/VcfTabixAdapter/configSchema.d.ts +32 -1
- package/package.json +3 -3
- package/src/VariantFeatureWidget/AnnotGrid.tsx +41 -18
- package/src/VariantFeatureWidget/BreakendOptionDialog.tsx +4 -5
- package/src/VariantFeatureWidget/VariantAnnotationTable.tsx +27 -0
- package/src/VariantFeatureWidget/VariantFeatureWidget.tsx +61 -16
- package/src/VariantFeatureWidget/VariantSampleGrid.tsx +52 -48
- package/src/VariantFeatureWidget/__snapshots__/VariantFeatureWidget.test.tsx.snap +1 -2
- package/dist/VariantFeatureWidget/VariantAnnPanel.d.ts +0 -5
- package/dist/VariantFeatureWidget/VariantAnnPanel.js +0 -25
- package/dist/VariantFeatureWidget/VariantAnnPanel.js.map +0 -1
- package/dist/VariantFeatureWidget/VariantCsqPanel.d.ts +0 -5
- package/dist/VariantFeatureWidget/VariantCsqPanel.js +0 -25
- package/dist/VariantFeatureWidget/VariantCsqPanel.js.map +0 -1
- package/esm/VariantFeatureWidget/VariantAnnPanel.d.ts +0 -5
- package/esm/VariantFeatureWidget/VariantAnnPanel.js +0 -19
- package/esm/VariantFeatureWidget/VariantAnnPanel.js.map +0 -1
- package/esm/VariantFeatureWidget/VariantCsqPanel.d.ts +0 -5
- package/esm/VariantFeatureWidget/VariantCsqPanel.js +0 -19
- package/esm/VariantFeatureWidget/VariantCsqPanel.js.map +0 -1
- package/src/VariantFeatureWidget/VariantAnnPanel.tsx +0 -31
- package/src/VariantFeatureWidget/VariantCsqPanel.tsx +0 -31
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
-
declare function stateModelFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration").
|
|
2
|
+
declare function stateModelFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
3
|
+
/**
|
|
4
|
+
* #slot
|
|
5
|
+
*/
|
|
6
|
+
renderer: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IAnyModelType, [undefined]>;
|
|
7
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
+
onChordClick: {
|
|
9
|
+
type: string;
|
|
10
|
+
description: string;
|
|
11
|
+
defaultValue: boolean;
|
|
12
|
+
contextVariable: string[];
|
|
13
|
+
};
|
|
14
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>;
|
|
3
15
|
export default stateModelFactory;
|
|
@@ -12,6 +12,14 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
12
12
|
} & {
|
|
13
13
|
bezierRadiusRatio: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
14
14
|
assemblyName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
15
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
16
|
+
onChordClick: {
|
|
17
|
+
type: string;
|
|
18
|
+
description: string;
|
|
19
|
+
defaultValue: boolean;
|
|
20
|
+
contextVariable: string[];
|
|
21
|
+
};
|
|
22
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
15
23
|
} & {
|
|
16
24
|
/**
|
|
17
25
|
* #property
|
|
@@ -20,12 +28,13 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
20
28
|
/**
|
|
21
29
|
* #property
|
|
22
30
|
*/
|
|
23
|
-
configuration:
|
|
31
|
+
configuration: AnyConfigurationSchemaType;
|
|
24
32
|
}, {
|
|
25
33
|
rendererTypeName: string;
|
|
26
34
|
error: unknown; /**
|
|
27
35
|
* #property
|
|
28
36
|
*/
|
|
37
|
+
message: string | undefined;
|
|
29
38
|
} & {
|
|
30
39
|
readonly RenderingComponent: import("react").FC<{
|
|
31
40
|
model: {
|
|
@@ -34,7 +43,10 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
34
43
|
rpcDriverName: string | undefined;
|
|
35
44
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
36
45
|
rendererTypeName: string;
|
|
37
|
-
error: unknown;
|
|
46
|
+
error: unknown; /**
|
|
47
|
+
* #method
|
|
48
|
+
*/
|
|
49
|
+
message: string | undefined;
|
|
38
50
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
39
51
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
40
52
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -42,6 +54,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
42
54
|
}, {
|
|
43
55
|
rendererTypeName: string;
|
|
44
56
|
error: unknown;
|
|
57
|
+
message: string | undefined;
|
|
45
58
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
46
59
|
onHorizontalScroll?: Function | undefined;
|
|
47
60
|
blockState?: Record<string, any> | undefined;
|
|
@@ -54,6 +67,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
54
67
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
55
68
|
rendererTypeName: string;
|
|
56
69
|
error: unknown;
|
|
70
|
+
message: string | undefined;
|
|
57
71
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
58
72
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
59
73
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -61,6 +75,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
61
75
|
}, {
|
|
62
76
|
rendererTypeName: string;
|
|
63
77
|
error: unknown;
|
|
78
|
+
message: string | undefined;
|
|
64
79
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
65
80
|
}> | null;
|
|
66
81
|
readonly adapterConfig: any;
|
|
@@ -70,8 +85,9 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
70
85
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
71
86
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
72
87
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
73
|
-
regionCannotBeRendered():
|
|
88
|
+
regionCannotBeRendered(): null;
|
|
74
89
|
} & {
|
|
90
|
+
setMessage(arg?: string | undefined): void;
|
|
75
91
|
setError(error?: unknown): void;
|
|
76
92
|
setRpcDriverName(rpcDriverName: string): void;
|
|
77
93
|
reload(): void;
|
|
@@ -107,7 +123,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
107
123
|
} & {
|
|
108
124
|
renderSvg(opts: import("@jbrowse/plugin-circular-view/src/CircularView/models/CircularView").ExportSvgOptions & {
|
|
109
125
|
theme: import("@mui/material").ThemeOptions;
|
|
110
|
-
}): Promise<JSX.Element>;
|
|
126
|
+
}): Promise<import("react").JSX.Element>;
|
|
111
127
|
} & {
|
|
112
128
|
/**
|
|
113
129
|
* #getter
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration").
|
|
3
|
+
export default function configSchemaF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
4
|
+
renderer: import("mobx-state-tree").IAnyModelType;
|
|
5
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
6
|
+
maxFeatureScreenDensity: {
|
|
7
|
+
type: string;
|
|
8
|
+
description: string;
|
|
9
|
+
defaultValue: number;
|
|
10
|
+
};
|
|
11
|
+
fetchSizeLimit: {
|
|
12
|
+
type: string;
|
|
13
|
+
defaultValue: number;
|
|
14
|
+
description: string;
|
|
15
|
+
};
|
|
16
|
+
height: {
|
|
17
|
+
type: string;
|
|
18
|
+
defaultValue: number;
|
|
19
|
+
description: string;
|
|
20
|
+
};
|
|
21
|
+
mouseover: {
|
|
22
|
+
type: string;
|
|
23
|
+
description: string;
|
|
24
|
+
defaultValue: string;
|
|
25
|
+
contextVariable: string[];
|
|
26
|
+
};
|
|
27
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>, undefined>>, undefined>>;
|
|
4
28
|
export type LinearVariantDisplayConfigModel = ReturnType<typeof configSchemaF>;
|
|
5
29
|
export type LinearVariantDisplayConfig = Instance<LinearVariantDisplayConfigModel>;
|
|
@@ -13,6 +13,13 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
13
13
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
14
14
|
} & {
|
|
15
15
|
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
16
|
+
} & {
|
|
17
|
+
/**
|
|
18
|
+
* #property
|
|
19
|
+
*/
|
|
20
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
21
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
22
|
+
} & {
|
|
16
23
|
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
17
24
|
key: import("mobx-state-tree").ISimpleType<string>;
|
|
18
25
|
region: import("mobx-state-tree").IModelType<{
|
|
@@ -59,17 +66,36 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
59
66
|
reload(): void;
|
|
60
67
|
beforeDestroy(): void;
|
|
61
68
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
62
|
-
|
|
63
|
-
|
|
69
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
70
|
+
maxFeatureScreenDensity: {
|
|
71
|
+
type: string;
|
|
72
|
+
description: string;
|
|
73
|
+
defaultValue: number;
|
|
74
|
+
};
|
|
75
|
+
fetchSizeLimit: {
|
|
76
|
+
type: string;
|
|
77
|
+
defaultValue: number;
|
|
78
|
+
description: string;
|
|
79
|
+
};
|
|
80
|
+
height: {
|
|
81
|
+
type: string;
|
|
82
|
+
defaultValue: number;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
mouseover: {
|
|
86
|
+
type: string;
|
|
87
|
+
description: string;
|
|
88
|
+
defaultValue: string;
|
|
89
|
+
contextVariable: string[];
|
|
90
|
+
};
|
|
91
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
64
92
|
} & {
|
|
65
93
|
type: import("mobx-state-tree").ISimpleType<"LinearBasicDisplay">;
|
|
66
94
|
trackShowLabels: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
67
|
-
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
68
|
-
* #action
|
|
69
|
-
*/
|
|
95
|
+
trackShowDescriptions: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
70
96
|
trackDisplayMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
71
97
|
trackMaxHeight: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
72
|
-
configuration:
|
|
98
|
+
configuration: AnyConfigurationSchemaType;
|
|
73
99
|
} & {
|
|
74
100
|
/**
|
|
75
101
|
* #property
|
|
@@ -78,10 +104,11 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
78
104
|
/**
|
|
79
105
|
* #property
|
|
80
106
|
*/
|
|
81
|
-
configuration:
|
|
107
|
+
configuration: AnyConfigurationSchemaType;
|
|
82
108
|
}, {
|
|
83
109
|
rendererTypeName: string;
|
|
84
110
|
error: unknown;
|
|
111
|
+
message: string | undefined;
|
|
85
112
|
} & {
|
|
86
113
|
readonly RenderingComponent: import("react").FC<{
|
|
87
114
|
model: {
|
|
@@ -91,6 +118,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
91
118
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
92
119
|
rendererTypeName: string;
|
|
93
120
|
error: unknown;
|
|
121
|
+
message: string | undefined;
|
|
94
122
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
95
123
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
96
124
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -98,6 +126,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
98
126
|
}, {
|
|
99
127
|
rendererTypeName: string;
|
|
100
128
|
error: unknown;
|
|
129
|
+
message: string | undefined;
|
|
101
130
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
102
131
|
onHorizontalScroll?: Function | undefined;
|
|
103
132
|
blockState?: Record<string, any> | undefined;
|
|
@@ -110,6 +139,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
110
139
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
111
140
|
rendererTypeName: string;
|
|
112
141
|
error: unknown;
|
|
142
|
+
message: string | undefined;
|
|
113
143
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
114
144
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
115
145
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -117,6 +147,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
117
147
|
}, {
|
|
118
148
|
rendererTypeName: string;
|
|
119
149
|
error: unknown;
|
|
150
|
+
message: string | undefined;
|
|
120
151
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
121
152
|
}> | null;
|
|
122
153
|
readonly adapterConfig: any;
|
|
@@ -126,21 +157,49 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
126
157
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
127
158
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
128
159
|
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
129
|
-
regionCannotBeRendered():
|
|
160
|
+
regionCannotBeRendered(): null;
|
|
130
161
|
} & {
|
|
162
|
+
setMessage(arg?: string | undefined): void;
|
|
131
163
|
setError(error?: unknown): void;
|
|
132
164
|
setRpcDriverName(rpcDriverName: string): void;
|
|
133
165
|
reload(): void;
|
|
134
166
|
} & {
|
|
135
|
-
currBpPerPx: number;
|
|
136
167
|
scrollTop: number;
|
|
137
|
-
|
|
168
|
+
} & {
|
|
169
|
+
readonly height: number;
|
|
170
|
+
} & {
|
|
171
|
+
setScrollTop(scrollTop: number): void;
|
|
172
|
+
setHeight(displayHeight: number): number;
|
|
173
|
+
resizeHeight(distance: number): number;
|
|
174
|
+
} & {
|
|
175
|
+
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
176
|
+
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
177
|
+
currStatsBpPerPx: number;
|
|
178
|
+
} & {
|
|
179
|
+
readonly currentBytesRequested: number;
|
|
180
|
+
readonly currentFeatureScreenDensity: number;
|
|
181
|
+
readonly maxFeatureScreenDensity: any;
|
|
182
|
+
readonly featureDensityStatsReady: boolean;
|
|
183
|
+
readonly maxAllowableBytes: number;
|
|
184
|
+
} & {
|
|
185
|
+
afterAttach(): void;
|
|
186
|
+
} & {
|
|
187
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
188
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
189
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
190
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
191
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
192
|
+
clearFeatureDensityStats(): void;
|
|
193
|
+
} & {
|
|
194
|
+
readonly regionTooLarge: boolean;
|
|
195
|
+
readonly regionTooLargeReason: string;
|
|
196
|
+
} & {
|
|
197
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
198
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
199
|
+
} & {
|
|
138
200
|
featureIdUnderMouse: string | undefined;
|
|
139
201
|
contextMenuFeature: Feature | undefined;
|
|
140
|
-
estimatedRegionsStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
141
|
-
estimatedRegionsStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
142
202
|
} & {
|
|
143
|
-
readonly height: number;
|
|
144
203
|
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
145
204
|
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
146
205
|
} & {
|
|
@@ -154,49 +213,22 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
154
213
|
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
155
214
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
156
215
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
157
|
-
readonly currentBytesRequested: number;
|
|
158
|
-
readonly currentFeatureScreenDensity: number;
|
|
159
|
-
readonly maxFeatureScreenDensity: any;
|
|
160
|
-
readonly estimatedStatsReady: boolean;
|
|
161
|
-
readonly maxAllowableBytes: number;
|
|
162
216
|
} & {
|
|
163
|
-
setMessage(message: string): void;
|
|
164
|
-
} & {
|
|
165
|
-
afterAttach(): void;
|
|
166
|
-
estimateRegionsStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats>;
|
|
167
|
-
setRegionsStatsP(arg: any): void;
|
|
168
|
-
setRegionsStats(estimatedRegionsStats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
169
|
-
clearRegionsStats(): void;
|
|
170
|
-
setHeight(displayHeight: number): number;
|
|
171
|
-
resizeHeight(distance: number): number;
|
|
172
|
-
setScrollTop(scrollTop: number): void;
|
|
173
|
-
updateStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined): void;
|
|
174
217
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
175
|
-
setCurrBpPerPx(n: number): void;
|
|
176
218
|
deleteBlock(key: string): void;
|
|
177
219
|
selectFeature(feature: Feature): void;
|
|
178
220
|
clearFeatureSelection(): void;
|
|
179
|
-
setFeatureIdUnderMouse(feature
|
|
180
|
-
reload(): void;
|
|
221
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
181
222
|
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
182
|
-
} & {
|
|
183
|
-
readonly regionTooLarge: boolean;
|
|
184
|
-
readonly regionTooLargeReason: string;
|
|
185
223
|
} & {
|
|
186
224
|
reload(): Promise<void>;
|
|
187
225
|
} & {
|
|
188
|
-
afterAttach(): void;
|
|
189
|
-
} & {
|
|
190
|
-
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
191
|
-
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): JSX.Element | null;
|
|
192
226
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
193
227
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
194
228
|
renderProps(): any;
|
|
195
229
|
} & {
|
|
196
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view
|
|
197
|
-
|
|
198
|
-
theme: import("@mui/material").ThemeOptions;
|
|
199
|
-
}): Promise<JSX.Element>;
|
|
230
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
231
|
+
afterAttach(): void;
|
|
200
232
|
} & {
|
|
201
233
|
readonly rendererTypeName: any;
|
|
202
234
|
readonly showLabels: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
3
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
4
|
export interface Region {
|
|
@@ -28,5 +28,5 @@ declare const Chord: ({ feature, blocksForRefs, radius, config, bezierRadius, se
|
|
|
28
28
|
bezierRadius: number;
|
|
29
29
|
selected: boolean;
|
|
30
30
|
onClick: (feature: Feature, reg: AnyRegion, endBlock: AnyRegion, evt: unknown) => void;
|
|
31
|
-
}) => JSX.Element | null;
|
|
31
|
+
}) => React.JSX.Element | null;
|
|
32
32
|
export default Chord;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
3
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
4
4
|
import { Block, AnyRegion } from './Chord';
|
|
@@ -13,5 +13,5 @@ declare const _default: ({ features, config, displayModel, blockDefinitions, rad
|
|
|
13
13
|
blockDefinitions: Block[];
|
|
14
14
|
bezierRadius: number;
|
|
15
15
|
onChordClick: (feature: Feature, reg: AnyRegion, endBlock: AnyRegion, evt: unknown) => void;
|
|
16
|
-
}) => JSX.Element;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
17
|
export default _default;
|
|
@@ -1,2 +1,30 @@
|
|
|
1
|
-
declare const configSchema: import("@jbrowse/core/configuration").
|
|
1
|
+
declare const configSchema: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
2
|
+
/**
|
|
3
|
+
* #slot
|
|
4
|
+
*/
|
|
5
|
+
strokeColor: {
|
|
6
|
+
type: string;
|
|
7
|
+
description: string;
|
|
8
|
+
defaultValue: string;
|
|
9
|
+
contextVariable: string[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* #slot
|
|
13
|
+
*/
|
|
14
|
+
strokeColorSelected: {
|
|
15
|
+
type: string;
|
|
16
|
+
description: string;
|
|
17
|
+
defaultValue: string;
|
|
18
|
+
contextVariable: string[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* #slot
|
|
22
|
+
*/
|
|
23
|
+
strokeColorHover: {
|
|
24
|
+
type: string;
|
|
25
|
+
description: string;
|
|
26
|
+
defaultValue: string;
|
|
27
|
+
contextVariable: string[];
|
|
28
|
+
};
|
|
29
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, undefined>>;
|
|
2
30
|
export default configSchema;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridColDef, GridValidRowModel } from '@mui/x-data-grid';
|
|
2
3
|
export default function VariantAnnotPanel({ rows, columns, }: {
|
|
3
|
-
rows:
|
|
4
|
-
columns:
|
|
5
|
-
}): JSX.Element | null;
|
|
4
|
+
rows: GridValidRowModel[];
|
|
5
|
+
columns: GridColDef[];
|
|
6
|
+
}): React.JSX.Element | null;
|
|
@@ -1,22 +1,42 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
26
|
+
const react_1 = __importStar(require("react"));
|
|
8
27
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
28
|
+
const material_1 = require("@mui/material");
|
|
29
|
+
const ResizeBar_1 = __importStar(require("@jbrowse/core/ui/ResizeBar"));
|
|
30
|
+
const util_1 = require("@jbrowse/core/util");
|
|
9
31
|
function VariantAnnotPanel({ rows, columns, }) {
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
return rows.length ? (react_1.default.createElement("div", {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
width:
|
|
18
|
-
} },
|
|
19
|
-
react_1.default.createElement(x_data_grid_1.DataGrid, { rowHeight: rowHeight, rows: rows, columns: columns }))) : null;
|
|
32
|
+
const { ref, scrollLeft } = (0, ResizeBar_1.useResizeBar)();
|
|
33
|
+
const [checked, setChecked] = (0, react_1.useState)(false);
|
|
34
|
+
const [widths, setWidths] = (0, react_1.useState)(columns.map(e => (0, util_1.measureGridWidth)(rows.map(r => r[e.field]))));
|
|
35
|
+
return rows.length ? (react_1.default.createElement("div", { ref: ref },
|
|
36
|
+
react_1.default.createElement(material_1.FormControlLabel, { control: react_1.default.createElement(material_1.Checkbox, { checked: checked, onChange: event => setChecked(event.target.checked) }), label: react_1.default.createElement(material_1.Typography, { variant: "body2" }, "Show options") }),
|
|
37
|
+
react_1.default.createElement("div", { ref: ref },
|
|
38
|
+
react_1.default.createElement(ResizeBar_1.default, { widths: widths, setWidths: setWidths, scrollLeft: scrollLeft }),
|
|
39
|
+
react_1.default.createElement(x_data_grid_1.DataGrid, { rowHeight: 25, rows: rows, columns: columns.map((c, i) => ({ ...c, width: widths[i] })), slots: { toolbar: checked ? x_data_grid_1.GridToolbar : null } })))) : null;
|
|
20
40
|
}
|
|
21
41
|
exports.default = VariantAnnotPanel;
|
|
22
42
|
//# sourceMappingURL=AnnotGrid.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotGrid.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/AnnotGrid.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AnnotGrid.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/AnnotGrid.tsx"],"names":[],"mappings":";;;;;;;;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E,CAAC,CAAC,EAC5D,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,yBAAW,CAAC,CAAC,CAAC,IAAI,EAAE,GAChD,CACE,CACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAvCD,oCAuCC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { Feature } from '@jbrowse/core/util';
|
|
3
|
-
declare
|
|
3
|
+
declare const _default: ({ model, handleClose, feature, viewType, }: {
|
|
4
4
|
model: any;
|
|
5
5
|
handleClose: () => void;
|
|
6
6
|
feature: Feature;
|
|
7
7
|
viewType: any;
|
|
8
|
-
})
|
|
9
|
-
declare const _default: typeof BreakendOptionDialog;
|
|
8
|
+
}) => React.JSX.Element;
|
|
10
9
|
export default _default;
|
|
@@ -37,14 +37,14 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
37
37
|
display: 'block',
|
|
38
38
|
},
|
|
39
39
|
});
|
|
40
|
-
function BreakendOptionDialog({ model, handleClose, feature, viewType, }) {
|
|
40
|
+
exports.default = (0, mobx_react_1.observer)(function BreakendOptionDialog({ model, handleClose, feature, viewType, }) {
|
|
41
41
|
const { classes } = useStyles();
|
|
42
42
|
const [copyTracks, setCopyTracks] = (0, react_1.useState)(true);
|
|
43
43
|
const [mirrorTracks, setMirrorTracks] = (0, react_1.useState)(true);
|
|
44
44
|
return (react_1.default.createElement(ui_1.Dialog, { open: true, onClose: handleClose, title: "Breakpoint split view options" },
|
|
45
45
|
react_1.default.createElement(material_1.DialogContent, null,
|
|
46
|
-
react_1.default.createElement(material_1.FormControlLabel, { className: classes.block, control: react_1.default.createElement(material_1.Checkbox, { checked: copyTracks, onChange:
|
|
47
|
-
react_1.default.createElement(material_1.FormControlLabel, { className: classes.block, control: react_1.default.createElement(material_1.Checkbox, { checked: mirrorTracks, onChange:
|
|
46
|
+
react_1.default.createElement(material_1.FormControlLabel, { className: classes.block, control: react_1.default.createElement(material_1.Checkbox, { checked: copyTracks, onChange: event => setCopyTracks(event.target.checked) }), label: "Copy tracks into the new view" }),
|
|
47
|
+
react_1.default.createElement(material_1.FormControlLabel, { className: classes.block, control: react_1.default.createElement(material_1.Checkbox, { checked: mirrorTracks, onChange: event => setMirrorTracks(event.target.checked) }), label: "Mirror tracks vertically in vertically stacked view" })),
|
|
48
48
|
react_1.default.createElement(material_1.DialogActions, null,
|
|
49
49
|
react_1.default.createElement(material_1.Button, { onClick: () => {
|
|
50
50
|
const { view } = model;
|
|
@@ -73,6 +73,5 @@ function BreakendOptionDialog({ model, handleClose, feature, viewType, }) {
|
|
|
73
73
|
handleClose();
|
|
74
74
|
}, variant: "contained", color: "primary", autoFocus: true }, "OK"),
|
|
75
75
|
react_1.default.createElement(material_1.Button, { onClick: () => handleClose(), color: "secondary", variant: "contained" }, "Cancel"))));
|
|
76
|
-
}
|
|
77
|
-
exports.default = (0, mobx_react_1.observer)(BreakendOptionDialog);
|
|
76
|
+
});
|
|
78
77
|
//# sourceMappingURL=BreakendOptionDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BreakendOptionDialog.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/BreakendOptionDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAuD;AACvD,+CAAuC;AACvC,2CAAqC;AACrC,4CAMsB;AACtB,uCAA0C;AAC1C,qDAA6C;AAC7C,UAAU;AACV,yCAAyC;AACzC,6CAAwD;AAExD,MAAM,SAAS,GAAG,IAAA,gBAAU,GAAE,CAAC;IAC7B,KAAK,EAAE;QACL,OAAO,EAAE,OAAO;KACjB;CACF,CAAC,CAAA;AAEF,SAAS,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"BreakendOptionDialog.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/BreakendOptionDialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;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A;wBAChB,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;qBACvB;oBACD,WAAW,EAAE,CAAA;gBACf,CAAC,EACD,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,SAAS,EACf,SAAS,eAGF;YACT,8BAAC,iBAAM,IACL,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,EAAE,EAC5B,KAAK,EAAC,WAAW,EACjB,OAAO,EAAC,WAAW,aAGZ,CACK,CACT,CACV,CAAA;AACH,CAAC,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { SimpleFeatureSerialized } from '@jbrowse/core/util/simpleFeature';
|
|
3
3
|
export default function BreakendPanel(props: {
|
|
4
4
|
locStrings: string[];
|
|
5
5
|
model: any;
|
|
6
6
|
feature: SimpleFeatureSerialized;
|
|
7
|
-
}): JSX.Element;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const react_1 = __importDefault(require("react"));
|
|
7
|
+
const BaseFeatureDetail_1 = require("@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail");
|
|
8
|
+
const AnnotGrid_1 = __importDefault(require("./AnnotGrid"));
|
|
9
|
+
function VariantAnnotationTable({ data, fields, title, }) {
|
|
10
|
+
return data.length ? (react_1.default.createElement(BaseFeatureDetail_1.BaseCard, { title: title },
|
|
11
|
+
react_1.default.createElement(AnnotGrid_1.default, { rows: data.map((elt, id) => ({
|
|
12
|
+
id,
|
|
13
|
+
...Object.fromEntries(elt.split('|').map((e, i) => [fields[i], e])),
|
|
14
|
+
})) || [], columns: fields.map(c => ({ field: c })) }))) : null;
|
|
15
|
+
}
|
|
16
|
+
exports.default = VariantAnnotationTable;
|
|
17
|
+
//# sourceMappingURL=VariantAnnotationTable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VariantAnnotationTable.js","sourceRoot":"","sources":["../../src/VariantFeatureWidget/VariantAnnotationTable.tsx"],"names":[],"mappings":";;;;;AAAA,kDAAyB;AACzB,yFAA4E;AAC5E,4DAAmC;AAEnC,SAAwB,sBAAsB,CAAC,EAC7C,IAAI,EACJ,MAAM,EACN,KAAK,GAKN;IACC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CACnB,8BAAC,4BAAQ,IAAC,KAAK,EAAE,KAAK;QACpB,8BAAC,mBAAS,IACR,IAAI,EACF,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;gBACrB,EAAE;gBACF,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;aACpE,CAAC,CAAC,IAAI,EAAE,EAEX,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,GACxC,CACO,CACZ,CAAC,CAAC,CAAC,IAAI,CAAA;AACV,CAAC;AAtBD,yCAsBC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SimpleFeatureSerialized } from '@jbrowse/core/util';
|
|
3
|
+
declare function VariantFeatureDetails(props: {
|
|
4
|
+
model: {
|
|
5
|
+
featureData: SimpleFeatureSerialized;
|
|
6
|
+
descriptions: Record<string, string>;
|
|
7
|
+
};
|
|
8
|
+
}): React.JSX.Element;
|
|
3
9
|
declare const _default: typeof VariantFeatureDetails;
|
|
4
10
|
export default _default;
|