@jbrowse/plugin-gccontent 2.10.2 → 2.11.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/GCContentTrack/configSchema.d.ts +82 -0
- package/dist/GCContentTrack/configSchema.js +16 -0
- package/dist/GCContentTrack/index.d.ts +3 -0
- package/dist/GCContentTrack/index.js +19 -0
- package/dist/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
- package/dist/LinearGCContentDisplay/{config.js → config1.js} +2 -2
- package/dist/LinearGCContentDisplay/config2.d.ts +16 -0
- package/dist/LinearGCContentDisplay/config2.js +28 -0
- package/dist/LinearGCContentDisplay/index.js +19 -4
- package/dist/LinearGCContentDisplay/shared.d.ts +417 -0
- package/dist/LinearGCContentDisplay/{stateModel.js → shared.js} +6 -9
- package/{esm/LinearGCContentDisplay/stateModel.d.ts → dist/LinearGCContentDisplay/stateModel1.d.ts} +15 -27
- package/dist/LinearGCContentDisplay/stateModel1.js +19 -0
- package/dist/LinearGCContentDisplay/stateModel2.d.ts +408 -0
- package/dist/LinearGCContentDisplay/stateModel2.js +24 -0
- package/dist/index.js +2 -0
- package/esm/GCContentTrack/configSchema.d.ts +82 -0
- package/esm/GCContentTrack/configSchema.js +14 -0
- package/esm/GCContentTrack/index.d.ts +3 -0
- package/esm/GCContentTrack/index.js +14 -0
- package/esm/LinearGCContentDisplay/{config.d.ts → config1.d.ts} +1 -1
- package/esm/LinearGCContentDisplay/{config.js → config1.js} +1 -1
- package/esm/LinearGCContentDisplay/config2.d.ts +16 -0
- package/esm/LinearGCContentDisplay/config2.js +25 -0
- package/esm/LinearGCContentDisplay/index.js +19 -4
- package/esm/LinearGCContentDisplay/shared.d.ts +417 -0
- package/esm/LinearGCContentDisplay/{stateModel.js → shared.js} +5 -8
- package/{dist/LinearGCContentDisplay/stateModel.d.ts → esm/LinearGCContentDisplay/stateModel1.d.ts} +15 -27
- package/esm/LinearGCContentDisplay/stateModel1.js +13 -0
- package/esm/LinearGCContentDisplay/stateModel2.d.ts +408 -0
- package/esm/LinearGCContentDisplay/stateModel2.js +18 -0
- package/esm/index.js +2 -0
- package/package.json +2 -2
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
|
+
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
|
+
import configSchemaF from './configSchema';
|
|
4
|
+
export default (pm) => {
|
|
5
|
+
pm.addTrackType(() => {
|
|
6
|
+
const configSchema = configSchemaF(pm);
|
|
7
|
+
return new TrackType({
|
|
8
|
+
name: 'GCContentTrack',
|
|
9
|
+
displayName: 'GCContent track',
|
|
10
|
+
configSchema,
|
|
11
|
+
stateModel: createBaseTrackModel(pm, 'GCContentTrack', configSchema),
|
|
12
|
+
});
|
|
13
|
+
});
|
|
14
|
+
};
|
|
@@ -4,7 +4,7 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
4
4
|
* #category display
|
|
5
5
|
* extends LinearWiggleDisplay
|
|
6
6
|
*/
|
|
7
|
-
export default function
|
|
7
|
+
export default function LinearGCContentDisplay(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
8
|
windowSize: {
|
|
9
9
|
type: string;
|
|
10
10
|
defaultValue: number;
|
|
@@ -4,7 +4,7 @@ import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
|
4
4
|
* #category display
|
|
5
5
|
* extends LinearWiggleDisplay
|
|
6
6
|
*/
|
|
7
|
-
export default function
|
|
7
|
+
export default function LinearGCContentDisplay(pluginManager) {
|
|
8
8
|
return ConfigurationSchema('LinearGCContentDisplay', {
|
|
9
9
|
windowSize: {
|
|
10
10
|
type: 'number',
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
/**
|
|
3
|
+
* #config LinearGCContentTrackDisplay
|
|
4
|
+
* #category display
|
|
5
|
+
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
6
|
+
*/
|
|
7
|
+
export default function LinearGCContentTrackDisplayF(pluginManager: PluginManager): import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
8
|
+
windowSize: {
|
|
9
|
+
type: string;
|
|
10
|
+
defaultValue: number;
|
|
11
|
+
};
|
|
12
|
+
windowDelta: {
|
|
13
|
+
type: string;
|
|
14
|
+
defaultValue: number;
|
|
15
|
+
};
|
|
16
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<import("@jbrowse/core/configuration").AnyConfigurationSchemaType, undefined>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ConfigurationSchema } from '@jbrowse/core/configuration';
|
|
2
|
+
/**
|
|
3
|
+
* #config LinearGCContentTrackDisplay
|
|
4
|
+
* #category display
|
|
5
|
+
* extends LinearWiggleDisplay, used specifically for GCContentTrack
|
|
6
|
+
*/
|
|
7
|
+
export default function LinearGCContentTrackDisplayF(pluginManager) {
|
|
8
|
+
return ConfigurationSchema('LinearGCContentTrackDisplay', {
|
|
9
|
+
windowSize: {
|
|
10
|
+
type: 'number',
|
|
11
|
+
defaultValue: 100,
|
|
12
|
+
},
|
|
13
|
+
windowDelta: {
|
|
14
|
+
type: 'number',
|
|
15
|
+
defaultValue: 100,
|
|
16
|
+
},
|
|
17
|
+
}, {
|
|
18
|
+
/**
|
|
19
|
+
* #baseConfiguration
|
|
20
|
+
*/
|
|
21
|
+
baseConfiguration: pluginManager.getDisplayType('LinearWiggleDisplay')
|
|
22
|
+
.configSchema,
|
|
23
|
+
explicitlyTyped: true,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { DisplayType } from '@jbrowse/core/pluggableElementTypes';
|
|
2
2
|
import { LinearWiggleDisplayReactComponent } from '@jbrowse/plugin-wiggle';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import configSchemaFactory1 from './config1';
|
|
4
|
+
import configSchemaFactory2 from './config2';
|
|
5
|
+
import stateModelF1 from './stateModel1';
|
|
6
|
+
import stateModelF2 from './stateModel2';
|
|
5
7
|
export default (pluginManager) => {
|
|
6
8
|
pluginManager.addDisplayType(() => {
|
|
7
|
-
const configSchema =
|
|
8
|
-
const stateModel =
|
|
9
|
+
const configSchema = configSchemaFactory1(pluginManager);
|
|
10
|
+
const stateModel = stateModelF1(pluginManager, configSchema);
|
|
9
11
|
return new DisplayType({
|
|
10
12
|
name: 'LinearGCContentDisplay',
|
|
11
13
|
configSchema,
|
|
@@ -16,4 +18,17 @@ export default (pluginManager) => {
|
|
|
16
18
|
ReactComponent: LinearWiggleDisplayReactComponent,
|
|
17
19
|
});
|
|
18
20
|
});
|
|
21
|
+
pluginManager.addDisplayType(() => {
|
|
22
|
+
const configSchema = configSchemaFactory2(pluginManager);
|
|
23
|
+
const stateModel = stateModelF2(pluginManager, configSchema);
|
|
24
|
+
return new DisplayType({
|
|
25
|
+
name: 'LinearGCContentTrackDisplay',
|
|
26
|
+
configSchema,
|
|
27
|
+
stateModel,
|
|
28
|
+
displayName: 'GC content display',
|
|
29
|
+
trackType: 'GCContentTrack',
|
|
30
|
+
viewType: 'LinearGenomeView',
|
|
31
|
+
ReactComponent: LinearWiggleDisplayReactComponent,
|
|
32
|
+
});
|
|
33
|
+
});
|
|
19
34
|
};
|
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AnyConfigurationSchemaType } from '@jbrowse/core/configuration';
|
|
3
|
+
import PluginManager from '@jbrowse/core/PluginManager';
|
|
4
|
+
/**
|
|
5
|
+
* #stateModel SharedGCContentModel
|
|
6
|
+
* #category display
|
|
7
|
+
* extends
|
|
8
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
9
|
+
*/
|
|
10
|
+
export default function SharedModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
11
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
12
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
13
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
14
|
+
} & {
|
|
15
|
+
heightPreConfig: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
16
|
+
} & {
|
|
17
|
+
userBpPerPxLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
18
|
+
userByteSizeLimit: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
19
|
+
} & {
|
|
20
|
+
blockState: import("mobx-state-tree").IMapType<import("mobx-state-tree").IModelType<{
|
|
21
|
+
key: import("mobx-state-tree").ISimpleType<string>;
|
|
22
|
+
region: import("mobx-state-tree").IModelType<{
|
|
23
|
+
refName: import("mobx-state-tree").ISimpleType<string>;
|
|
24
|
+
start: import("mobx-state-tree").ISimpleType<number>;
|
|
25
|
+
end: import("mobx-state-tree").ISimpleType<number>;
|
|
26
|
+
reversed: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
27
|
+
} & {
|
|
28
|
+
assemblyName: import("mobx-state-tree").ISimpleType<string>;
|
|
29
|
+
}, {
|
|
30
|
+
setRefName(newRefName: string): void;
|
|
31
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
32
|
+
reloadFlag: import("mobx-state-tree").IType<number | undefined, number, number>;
|
|
33
|
+
isLeftEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
34
|
+
isRightEndOfDisplayedRegion: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
35
|
+
}, {
|
|
36
|
+
renderInProgress: AbortController | undefined;
|
|
37
|
+
filled: boolean;
|
|
38
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
39
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
40
|
+
layout: any;
|
|
41
|
+
status: string;
|
|
42
|
+
error: unknown;
|
|
43
|
+
message: string | undefined;
|
|
44
|
+
maxHeightReached: boolean;
|
|
45
|
+
ReactComponent: ({ model, }: {
|
|
46
|
+
model: {
|
|
47
|
+
error?: unknown;
|
|
48
|
+
reload: () => void;
|
|
49
|
+
message: import("react").ReactNode;
|
|
50
|
+
filled?: boolean | undefined;
|
|
51
|
+
status?: string | undefined;
|
|
52
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
53
|
+
};
|
|
54
|
+
}) => import("react").JSX.Element | undefined;
|
|
55
|
+
renderProps: any;
|
|
56
|
+
} & {
|
|
57
|
+
doReload(): void;
|
|
58
|
+
afterAttach(): void;
|
|
59
|
+
setStatus(message: string): void;
|
|
60
|
+
setLoading(abortController: AbortController): void;
|
|
61
|
+
setMessage(messageText: string): void;
|
|
62
|
+
setRendered(props: {
|
|
63
|
+
reactElement: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
|
|
64
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
65
|
+
layout: any;
|
|
66
|
+
maxHeightReached: boolean;
|
|
67
|
+
renderProps: any;
|
|
68
|
+
} | undefined): void;
|
|
69
|
+
setError(error: unknown): void;
|
|
70
|
+
reload(): void;
|
|
71
|
+
beforeDestroy(): void;
|
|
72
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
73
|
+
configuration: import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaType<{
|
|
74
|
+
maxFeatureScreenDensity: {
|
|
75
|
+
type: string;
|
|
76
|
+
description: string;
|
|
77
|
+
defaultValue: number;
|
|
78
|
+
};
|
|
79
|
+
fetchSizeLimit: {
|
|
80
|
+
type: string; /**
|
|
81
|
+
* #property
|
|
82
|
+
*/
|
|
83
|
+
defaultValue: number;
|
|
84
|
+
description: string;
|
|
85
|
+
};
|
|
86
|
+
height: {
|
|
87
|
+
type: string;
|
|
88
|
+
defaultValue: number;
|
|
89
|
+
description: string;
|
|
90
|
+
};
|
|
91
|
+
mouseover: {
|
|
92
|
+
type: string;
|
|
93
|
+
description: string;
|
|
94
|
+
defaultValue: string;
|
|
95
|
+
contextVariable: string[];
|
|
96
|
+
};
|
|
97
|
+
}, import("@jbrowse/core/configuration/configurationSchema").ConfigurationSchemaOptions<undefined, "displayId">>;
|
|
98
|
+
} & {
|
|
99
|
+
selectedRendering: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
100
|
+
resolution: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<number>, [undefined]>;
|
|
101
|
+
fill: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
102
|
+
minSize: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
103
|
+
color: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
104
|
+
posColor: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
105
|
+
negColor: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
106
|
+
summaryScoreMode: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
107
|
+
rendererTypeNameState: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
108
|
+
scale: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
109
|
+
autoscale: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
110
|
+
displayCrossHatches: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<boolean>>;
|
|
111
|
+
constraints: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IModelType<{
|
|
112
|
+
max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
113
|
+
min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
114
|
+
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
115
|
+
configuration: AnyConfigurationSchemaType;
|
|
116
|
+
} & {
|
|
117
|
+
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
118
|
+
} & {
|
|
119
|
+
/**
|
|
120
|
+
* #property
|
|
121
|
+
*/
|
|
122
|
+
windowSize: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
123
|
+
/**
|
|
124
|
+
* #property
|
|
125
|
+
*/
|
|
126
|
+
windowDelta: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
127
|
+
}, {
|
|
128
|
+
rendererTypeName: string;
|
|
129
|
+
error: unknown;
|
|
130
|
+
message: string | undefined;
|
|
131
|
+
} & {
|
|
132
|
+
readonly RenderingComponent: import("react").FC<{
|
|
133
|
+
model: {
|
|
134
|
+
id: string;
|
|
135
|
+
type: string;
|
|
136
|
+
rpcDriverName: string | undefined; /**
|
|
137
|
+
* #property
|
|
138
|
+
*/
|
|
139
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
140
|
+
rendererTypeName: string;
|
|
141
|
+
error: unknown;
|
|
142
|
+
message: string | undefined;
|
|
143
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
144
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
145
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
146
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
147
|
+
}, {
|
|
148
|
+
rendererTypeName: string;
|
|
149
|
+
error: unknown;
|
|
150
|
+
message: string | undefined;
|
|
151
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
152
|
+
onHorizontalScroll?: Function | undefined;
|
|
153
|
+
blockState?: Record<string, any> | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
readonly DisplayBlurb: import("react").FC<{
|
|
156
|
+
model: {
|
|
157
|
+
id: string;
|
|
158
|
+
type: string;
|
|
159
|
+
rpcDriverName: string | undefined;
|
|
160
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
161
|
+
rendererTypeName: string;
|
|
162
|
+
error: unknown;
|
|
163
|
+
message: string | undefined;
|
|
164
|
+
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
165
|
+
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
166
|
+
type: import("mobx-state-tree").ISimpleType<string>;
|
|
167
|
+
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
168
|
+
}, {
|
|
169
|
+
rendererTypeName: string;
|
|
170
|
+
error: unknown;
|
|
171
|
+
message: string | undefined;
|
|
172
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
173
|
+
}> | null;
|
|
174
|
+
readonly adapterConfig: any;
|
|
175
|
+
readonly parentTrack: any;
|
|
176
|
+
renderProps(): any;
|
|
177
|
+
readonly rendererType: import("@jbrowse/core/pluggableElementTypes").RendererType;
|
|
178
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
179
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
180
|
+
readonly viewMenuActions: import("@jbrowse/core/ui").MenuItem[];
|
|
181
|
+
regionCannotBeRendered(): null;
|
|
182
|
+
} & {
|
|
183
|
+
setMessage(arg?: string | undefined): void;
|
|
184
|
+
setError(error?: unknown): void;
|
|
185
|
+
setRpcDriverName(rpcDriverName: string): void;
|
|
186
|
+
reload(): void;
|
|
187
|
+
} & {
|
|
188
|
+
scrollTop: number;
|
|
189
|
+
} & {
|
|
190
|
+
readonly height: number;
|
|
191
|
+
} & {
|
|
192
|
+
setScrollTop(scrollTop: number): void;
|
|
193
|
+
setHeight(displayHeight: number): number;
|
|
194
|
+
resizeHeight(distance: number): number;
|
|
195
|
+
} & {
|
|
196
|
+
featureDensityStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats> | undefined;
|
|
197
|
+
featureDensityStats: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined;
|
|
198
|
+
currStatsBpPerPx: number;
|
|
199
|
+
} & {
|
|
200
|
+
readonly currentBytesRequested: number;
|
|
201
|
+
readonly currentFeatureScreenDensity: number;
|
|
202
|
+
readonly maxFeatureScreenDensity: any;
|
|
203
|
+
readonly featureDensityStatsReady: boolean;
|
|
204
|
+
readonly maxAllowableBytes: number;
|
|
205
|
+
} & {
|
|
206
|
+
afterAttach(): void;
|
|
207
|
+
} & {
|
|
208
|
+
setCurrStatsBpPerPx(n: number): void;
|
|
209
|
+
setFeatureDensityStatsLimit(stats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
210
|
+
getFeatureDensityStats(): Promise<import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats>;
|
|
211
|
+
setFeatureDensityStatsP(arg: any): void;
|
|
212
|
+
setFeatureDensityStats(featureDensityStats?: import("@jbrowse/core/data_adapters/BaseAdapter").FeatureDensityStats | undefined): void;
|
|
213
|
+
clearFeatureDensityStats(): void;
|
|
214
|
+
} & {
|
|
215
|
+
readonly regionTooLarge: boolean;
|
|
216
|
+
readonly regionTooLargeReason: string;
|
|
217
|
+
} & {
|
|
218
|
+
regionCannotBeRenderedText(_region: import("@jbrowse/core/util").Region): "" | "Force load to see features";
|
|
219
|
+
regionCannotBeRendered(_region: import("@jbrowse/core/util").Region): import("react").JSX.Element | null;
|
|
220
|
+
} & {
|
|
221
|
+
featureIdUnderMouse: string | undefined;
|
|
222
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
223
|
+
} & {
|
|
224
|
+
readonly blockType: "dynamicBlocks" | "staticBlocks";
|
|
225
|
+
readonly blockDefinitions: import("@jbrowse/core/util/blockTypes").BlockSet;
|
|
226
|
+
} & {
|
|
227
|
+
readonly renderDelay: number;
|
|
228
|
+
readonly TooltipComponent: import("react").FC<any>;
|
|
229
|
+
readonly selectedFeatureId: string | undefined;
|
|
230
|
+
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
231
|
+
} & {
|
|
232
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
233
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
234
|
+
getFeatureOverlapping(blockKey: string, x: number, y: number): string | undefined;
|
|
235
|
+
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
236
|
+
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
237
|
+
} & {
|
|
238
|
+
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
239
|
+
deleteBlock(key: string): void;
|
|
240
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
241
|
+
clearFeatureSelection(): void;
|
|
242
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
243
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
244
|
+
} & {
|
|
245
|
+
reload(): Promise<void>;
|
|
246
|
+
} & {
|
|
247
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
248
|
+
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
249
|
+
renderProps(): any;
|
|
250
|
+
} & {
|
|
251
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
252
|
+
afterAttach(): void;
|
|
253
|
+
} & {
|
|
254
|
+
message: string | undefined;
|
|
255
|
+
stats: {
|
|
256
|
+
scoreMin: number;
|
|
257
|
+
scoreMax: number;
|
|
258
|
+
} | undefined;
|
|
259
|
+
statsFetchInProgress: AbortController | undefined;
|
|
260
|
+
} & {
|
|
261
|
+
updateQuantitativeStats(stats: {
|
|
262
|
+
scoreMin: number;
|
|
263
|
+
scoreMax: number;
|
|
264
|
+
}): void;
|
|
265
|
+
setColor(color?: string | undefined): void;
|
|
266
|
+
setPosColor(color?: string | undefined): void;
|
|
267
|
+
setNegColor(color?: string | undefined): void;
|
|
268
|
+
setLoading(aborter: AbortController): void;
|
|
269
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
270
|
+
setResolution(res: number): void;
|
|
271
|
+
setFill(fill: number): void;
|
|
272
|
+
toggleLogScale(): void;
|
|
273
|
+
setScaleType(scale?: string | undefined): void;
|
|
274
|
+
setSummaryScoreMode(val: string): void;
|
|
275
|
+
setAutoscale(val: string): void;
|
|
276
|
+
setMaxScore(val?: number | undefined): void;
|
|
277
|
+
setRendererType(val: string): void;
|
|
278
|
+
setMinScore(val?: number | undefined): void;
|
|
279
|
+
toggleCrossHatches(): void;
|
|
280
|
+
setCrossHatches(cross: boolean): void;
|
|
281
|
+
} & {
|
|
282
|
+
readonly adapterTypeName: any;
|
|
283
|
+
readonly rendererTypeNameSimple: any;
|
|
284
|
+
readonly filters: undefined;
|
|
285
|
+
readonly scaleType: any;
|
|
286
|
+
readonly maxScore: any;
|
|
287
|
+
readonly minScore: any;
|
|
288
|
+
} & {
|
|
289
|
+
readonly adapterCapabilities: string[];
|
|
290
|
+
readonly rendererConfig: {
|
|
291
|
+
[x: string]: any;
|
|
292
|
+
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
293
|
+
setSubschema(slotName: string, data: unknown): any;
|
|
294
|
+
} & import("mobx-state-tree").IStateTreeNode<AnyConfigurationSchemaType>;
|
|
295
|
+
readonly autoscaleType: any;
|
|
296
|
+
} & {
|
|
297
|
+
readonly domain: number[] | undefined;
|
|
298
|
+
} & {
|
|
299
|
+
readonly filled: boolean;
|
|
300
|
+
readonly summaryScoreModeSetting: string;
|
|
301
|
+
readonly scaleOpts: {
|
|
302
|
+
domain: number[] | undefined;
|
|
303
|
+
stats: {
|
|
304
|
+
scoreMin: number;
|
|
305
|
+
scoreMax: number;
|
|
306
|
+
} | undefined;
|
|
307
|
+
autoscaleType: any;
|
|
308
|
+
scaleType: any;
|
|
309
|
+
inverted: any;
|
|
310
|
+
};
|
|
311
|
+
readonly canHaveFill: boolean;
|
|
312
|
+
readonly displayCrossHatchesSetting: boolean;
|
|
313
|
+
readonly hasResolution: boolean;
|
|
314
|
+
readonly hasGlobalStats: boolean;
|
|
315
|
+
} & {
|
|
316
|
+
scoreTrackMenuItems(): ({
|
|
317
|
+
label: string;
|
|
318
|
+
subMenu: {
|
|
319
|
+
label: string;
|
|
320
|
+
onClick: () => void;
|
|
321
|
+
}[];
|
|
322
|
+
onClick?: undefined;
|
|
323
|
+
} | {
|
|
324
|
+
label: string;
|
|
325
|
+
subMenu: {
|
|
326
|
+
label: string;
|
|
327
|
+
type: string;
|
|
328
|
+
checked: boolean;
|
|
329
|
+
onClick: () => void;
|
|
330
|
+
}[];
|
|
331
|
+
onClick?: undefined;
|
|
332
|
+
} | {
|
|
333
|
+
label: string;
|
|
334
|
+
onClick: () => void;
|
|
335
|
+
subMenu?: undefined;
|
|
336
|
+
})[];
|
|
337
|
+
} & {
|
|
338
|
+
reload(): Promise<void>;
|
|
339
|
+
} & {
|
|
340
|
+
readonly TooltipComponent: import("react").FC<{}>;
|
|
341
|
+
readonly rendererTypeName: string;
|
|
342
|
+
} & {
|
|
343
|
+
readonly ticks: {
|
|
344
|
+
range: number[];
|
|
345
|
+
values: number[];
|
|
346
|
+
format: (d: import("d3-scale").NumberValue) => string;
|
|
347
|
+
position: import("d3-scale").ScaleLinear<number, number, never> | import("d3-scale").ScaleQuantize<number, never>;
|
|
348
|
+
} | undefined;
|
|
349
|
+
} & {
|
|
350
|
+
renderProps(): any;
|
|
351
|
+
readonly needsScalebar: boolean;
|
|
352
|
+
readonly fillSetting: 1 | 2 | 0;
|
|
353
|
+
} & {
|
|
354
|
+
trackMenuItems(): (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 | {
|
|
355
|
+
label: string;
|
|
356
|
+
subMenu: ({
|
|
357
|
+
label: string;
|
|
358
|
+
subMenu: {
|
|
359
|
+
label: string;
|
|
360
|
+
onClick: () => void;
|
|
361
|
+
}[];
|
|
362
|
+
onClick?: undefined;
|
|
363
|
+
} | {
|
|
364
|
+
label: string;
|
|
365
|
+
subMenu: {
|
|
366
|
+
label: string;
|
|
367
|
+
type: string;
|
|
368
|
+
checked: boolean;
|
|
369
|
+
onClick: () => void;
|
|
370
|
+
}[];
|
|
371
|
+
onClick?: undefined;
|
|
372
|
+
} | {
|
|
373
|
+
label: string;
|
|
374
|
+
onClick: () => void;
|
|
375
|
+
subMenu?: undefined;
|
|
376
|
+
})[];
|
|
377
|
+
type?: undefined;
|
|
378
|
+
checked?: undefined;
|
|
379
|
+
onClick?: undefined;
|
|
380
|
+
} | {
|
|
381
|
+
label: string;
|
|
382
|
+
subMenu: {
|
|
383
|
+
label: string;
|
|
384
|
+
type: string;
|
|
385
|
+
checked: boolean;
|
|
386
|
+
onClick: () => void;
|
|
387
|
+
}[];
|
|
388
|
+
type?: undefined;
|
|
389
|
+
checked?: undefined;
|
|
390
|
+
onClick?: undefined;
|
|
391
|
+
} | {
|
|
392
|
+
type: string;
|
|
393
|
+
label: string;
|
|
394
|
+
checked: boolean;
|
|
395
|
+
onClick: () => void;
|
|
396
|
+
subMenu?: undefined;
|
|
397
|
+
})[];
|
|
398
|
+
} & {
|
|
399
|
+
afterAttach(): void;
|
|
400
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
401
|
+
} & {
|
|
402
|
+
setGCContentParams({ windowSize, windowDelta, }: {
|
|
403
|
+
windowSize: number;
|
|
404
|
+
windowDelta: number;
|
|
405
|
+
}): void;
|
|
406
|
+
} & {
|
|
407
|
+
readonly windowSizeSetting: any;
|
|
408
|
+
readonly windowDeltaSetting: any;
|
|
409
|
+
} & {
|
|
410
|
+
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
411
|
+
/**
|
|
412
|
+
* #method
|
|
413
|
+
* retrieves the sequence adapter from parent track, and puts it as a
|
|
414
|
+
* subadapter on a GCContentAdapter
|
|
415
|
+
*/
|
|
416
|
+
renderProps(): any;
|
|
417
|
+
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -5,17 +5,14 @@ import { types } from 'mobx-state-tree';
|
|
|
5
5
|
import { lazy } from 'react';
|
|
6
6
|
const EditGCContentParamsDialog = lazy(() => import('./components/EditGCContentParams'));
|
|
7
7
|
/**
|
|
8
|
-
* #stateModel
|
|
8
|
+
* #stateModel SharedGCContentModel
|
|
9
9
|
* #category display
|
|
10
|
-
*
|
|
10
|
+
* extends
|
|
11
|
+
* - [LinearWiggleDisplay](../linearwiggledisplay)
|
|
11
12
|
*/
|
|
12
|
-
export default function
|
|
13
|
+
export default function SharedModelF(pluginManager, configSchema) {
|
|
13
14
|
return types
|
|
14
|
-
.compose('
|
|
15
|
-
/**
|
|
16
|
-
* #property
|
|
17
|
-
*/
|
|
18
|
-
type: types.literal('LinearGCContentDisplay'),
|
|
15
|
+
.compose('SharedGCContentModel', linearWiggleDisplayModelFactory(pluginManager, configSchema), types.model({
|
|
19
16
|
/**
|
|
20
17
|
* #property
|
|
21
18
|
*/
|
package/{dist/LinearGCContentDisplay/stateModel.d.ts → esm/LinearGCContentDisplay/stateModel1.d.ts}
RENAMED
|
@@ -4,9 +4,9 @@ import PluginManager from '@jbrowse/core/PluginManager';
|
|
|
4
4
|
/**
|
|
5
5
|
* #stateModel LinearGCContentDisplay
|
|
6
6
|
* #category display
|
|
7
|
-
* base model `
|
|
7
|
+
* base model `SharedGCContentModel`
|
|
8
8
|
*/
|
|
9
|
-
export default function
|
|
9
|
+
export default function stateModelF(pluginManager: PluginManager, configSchema: AnyConfigurationSchemaType): import("mobx-state-tree").IModelType<{
|
|
10
10
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
11
11
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
12
12
|
rpcDriverName: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<string>>;
|
|
@@ -42,8 +42,15 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
42
42
|
message: string | undefined;
|
|
43
43
|
maxHeightReached: boolean;
|
|
44
44
|
ReactComponent: ({ model, }: {
|
|
45
|
-
model:
|
|
46
|
-
|
|
45
|
+
model: {
|
|
46
|
+
error?: unknown;
|
|
47
|
+
reload: () => void;
|
|
48
|
+
message: import("react").ReactNode;
|
|
49
|
+
filled?: boolean | undefined;
|
|
50
|
+
status?: string | undefined;
|
|
51
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
52
|
+
};
|
|
53
|
+
}) => import("react").JSX.Element | undefined;
|
|
47
54
|
renderProps: any;
|
|
48
55
|
} & {
|
|
49
56
|
doReload(): void;
|
|
@@ -102,26 +109,14 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
102
109
|
max: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
103
110
|
min: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
104
111
|
}, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>, [undefined]>;
|
|
105
|
-
configuration: AnyConfigurationSchemaType;
|
|
106
|
-
* #method
|
|
107
|
-
* retrieves the sequence adapter from parent track, and puts it as a
|
|
108
|
-
* subadapter on a GCContentAdapter
|
|
109
|
-
*/
|
|
112
|
+
configuration: AnyConfigurationSchemaType;
|
|
110
113
|
} & {
|
|
111
114
|
type: import("mobx-state-tree").ISimpleType<"LinearWiggleDisplay">;
|
|
112
115
|
} & {
|
|
113
|
-
/**
|
|
114
|
-
* #property
|
|
115
|
-
*/
|
|
116
|
-
type: import("mobx-state-tree").ISimpleType<"LinearGCContentDisplay">;
|
|
117
|
-
/**
|
|
118
|
-
* #property
|
|
119
|
-
*/
|
|
120
116
|
windowSize: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
121
|
-
/**
|
|
122
|
-
* #property
|
|
123
|
-
*/
|
|
124
117
|
windowDelta: import("mobx-state-tree").IMaybe<import("mobx-state-tree").ISimpleType<number>>;
|
|
118
|
+
} & {
|
|
119
|
+
type: import("mobx-state-tree").ISimpleType<"LinearGCContentDisplay">;
|
|
125
120
|
}, {
|
|
126
121
|
rendererTypeName: string;
|
|
127
122
|
error: unknown;
|
|
@@ -135,9 +130,7 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
135
130
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
136
131
|
rendererTypeName: string;
|
|
137
132
|
error: unknown;
|
|
138
|
-
message: string | undefined;
|
|
139
|
-
* #property
|
|
140
|
-
*/
|
|
133
|
+
message: string | undefined;
|
|
141
134
|
} & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
|
|
142
135
|
id: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
|
|
143
136
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
@@ -406,10 +399,5 @@ export default function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
406
399
|
readonly windowDeltaSetting: any;
|
|
407
400
|
} & {
|
|
408
401
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
409
|
-
/**
|
|
410
|
-
* #method
|
|
411
|
-
* retrieves the sequence adapter from parent track, and puts it as a
|
|
412
|
-
* subadapter on a GCContentAdapter
|
|
413
|
-
*/
|
|
414
402
|
renderProps(): any;
|
|
415
403
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { types } from 'mobx-state-tree';
|
|
2
|
+
// locals
|
|
3
|
+
import SharedModelF from './shared';
|
|
4
|
+
/**
|
|
5
|
+
* #stateModel LinearGCContentDisplay
|
|
6
|
+
* #category display
|
|
7
|
+
* base model `SharedGCContentModel`
|
|
8
|
+
*/
|
|
9
|
+
export default function stateModelF(pluginManager, configSchema) {
|
|
10
|
+
return types.compose('LinearGCContentDisplay', SharedModelF(pluginManager, configSchema), types.model({
|
|
11
|
+
type: types.literal('LinearGCContentDisplay'),
|
|
12
|
+
}));
|
|
13
|
+
}
|