@jbrowse/plugin-linear-genome-view 1.6.7 → 1.6.8
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/LinearBareDisplay/model.d.ts +7 -7
- package/dist/LinearBasicDisplay/model.d.ts +7 -7
- package/dist/LinearGenomeView/components/OverviewScaleBar.d.ts +6 -6
- package/dist/index.d.ts +21 -21
- package/dist/plugin-linear-genome-view.cjs.development.js +37 -22
- package/dist/plugin-linear-genome-view.cjs.development.js.map +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js +1 -1
- package/dist/plugin-linear-genome-view.cjs.production.min.js.map +1 -1
- package/dist/plugin-linear-genome-view.esm.js +37 -22
- package/dist/plugin-linear-genome-view.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/BaseLinearDisplay/components/BaseLinearDisplay.tsx +9 -12
- package/src/LinearBasicDisplay/components/SetMaxHeight.tsx +21 -12
- package/src/LinearGenomeView/components/TrackContainer.tsx +31 -24
- package/src/LinearGenomeView/components/__snapshots__/LinearGenomeView.test.js.snap +27 -47
|
@@ -25,7 +25,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
25
25
|
renderInProgress: AbortController | undefined;
|
|
26
26
|
filled: boolean;
|
|
27
27
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | undefined;
|
|
28
|
-
features: Map<string, import("@jbrowse/core/util
|
|
28
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
29
29
|
layout: any;
|
|
30
30
|
status: string;
|
|
31
31
|
error: unknown;
|
|
@@ -43,7 +43,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
43
43
|
setMessage(messageText: string): void;
|
|
44
44
|
setRendered(props: {
|
|
45
45
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
46
|
-
features: Map<string, import("@jbrowse/core/util
|
|
46
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
47
47
|
layout: any;
|
|
48
48
|
maxHeightReached: boolean;
|
|
49
49
|
renderProps: any;
|
|
@@ -113,7 +113,7 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
113
113
|
currBpPerPx: number;
|
|
114
114
|
message: string;
|
|
115
115
|
featureIdUnderMouse: string | undefined;
|
|
116
|
-
contextMenuFeature: import("@jbrowse/core/util
|
|
116
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
117
117
|
scrollTop: number;
|
|
118
118
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
119
119
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
@@ -126,8 +126,8 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
126
126
|
readonly selectedFeatureId: string | undefined;
|
|
127
127
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
128
128
|
} & {
|
|
129
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util
|
|
130
|
-
readonly featureUnderMouse: import("@jbrowse/core/util
|
|
129
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
130
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
131
131
|
getFeatureOverlapping(blockKey: string, x: number, y: number): any;
|
|
132
132
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
133
133
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -154,11 +154,11 @@ export declare function stateModelFactory(configSchema: AnyConfigurationSchemaTy
|
|
|
154
154
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
155
155
|
setCurrBpPerPx(n: number): void;
|
|
156
156
|
deleteBlock(key: string): void;
|
|
157
|
-
selectFeature(feature: import("@jbrowse/core/util
|
|
157
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
158
158
|
clearFeatureSelection(): void;
|
|
159
159
|
setFeatureIdUnderMouse(feature: string | undefined): void;
|
|
160
160
|
reload(): void;
|
|
161
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util
|
|
161
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
162
162
|
} & {
|
|
163
163
|
readonly regionTooLarge: boolean;
|
|
164
164
|
readonly regionTooLargeReason: string;
|
|
@@ -27,7 +27,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
27
27
|
renderInProgress: AbortController | undefined;
|
|
28
28
|
filled: boolean;
|
|
29
29
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | undefined;
|
|
30
|
-
features: Map<string, import("@jbrowse/core/util
|
|
30
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
31
31
|
layout: any;
|
|
32
32
|
status: string;
|
|
33
33
|
error: unknown;
|
|
@@ -45,7 +45,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
45
45
|
setMessage(messageText: string): void;
|
|
46
46
|
setRendered(props: {
|
|
47
47
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
48
|
-
features: Map<string, import("@jbrowse/core/util
|
|
48
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
49
49
|
layout: any;
|
|
50
50
|
maxHeightReached: boolean;
|
|
51
51
|
renderProps: any;
|
|
@@ -119,7 +119,7 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
119
119
|
currBpPerPx: number;
|
|
120
120
|
message: string;
|
|
121
121
|
featureIdUnderMouse: string | undefined;
|
|
122
|
-
contextMenuFeature: import("@jbrowse/core/util
|
|
122
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
123
123
|
scrollTop: number;
|
|
124
124
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
125
125
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
@@ -132,8 +132,8 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
132
132
|
readonly selectedFeatureId: string | undefined;
|
|
133
133
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
134
134
|
} & {
|
|
135
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util
|
|
136
|
-
readonly featureUnderMouse: import("@jbrowse/core/util
|
|
135
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
136
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
137
137
|
getFeatureOverlapping(blockKey: string, x: number, y: number): any;
|
|
138
138
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
139
139
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -160,11 +160,11 @@ declare const stateModelFactory: (configSchema: AnyConfigurationSchemaType) => i
|
|
|
160
160
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
161
161
|
setCurrBpPerPx(n: number): void;
|
|
162
162
|
deleteBlock(key: string): void;
|
|
163
|
-
selectFeature(feature: import("@jbrowse/core/util
|
|
163
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
164
164
|
clearFeatureSelection(): void;
|
|
165
165
|
setFeatureIdUnderMouse(feature: string | undefined): void;
|
|
166
166
|
reload(): void;
|
|
167
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util
|
|
167
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
168
168
|
} & {
|
|
169
169
|
readonly regionTooLarge: boolean;
|
|
170
170
|
readonly regionTooLargeReason: string;
|
|
@@ -20,7 +20,7 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
20
20
|
refNameAliases: {
|
|
21
21
|
[key: string]: string;
|
|
22
22
|
} | undefined;
|
|
23
|
-
cytobands: import("@jbrowse/core/util
|
|
23
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
readonly initialized: boolean;
|
|
26
26
|
readonly name: string;
|
|
@@ -40,12 +40,12 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
40
40
|
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
41
41
|
adapterRegionsWithAssembly: import("@jbrowse/core/util").Region[];
|
|
42
42
|
refNameAliases: Record<string, string>;
|
|
43
|
-
cytobands: import("@jbrowse/core/util
|
|
43
|
+
cytobands: import("@jbrowse/core/util").Feature[];
|
|
44
44
|
}): void;
|
|
45
45
|
setError(e: Error): void;
|
|
46
46
|
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
47
47
|
setRefNameAliases(refNameAliases: Record<string, string>): void;
|
|
48
|
-
setCytobands(cytobands: import("@jbrowse/core/util
|
|
48
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
49
49
|
afterAttach(): void;
|
|
50
50
|
} & {
|
|
51
51
|
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/assemblyManager/assembly").BaseOptions): Promise<{
|
|
@@ -70,7 +70,7 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
70
70
|
refNameAliases: {
|
|
71
71
|
[key: string]: string;
|
|
72
72
|
} | undefined;
|
|
73
|
-
cytobands: import("@jbrowse/core/util
|
|
73
|
+
cytobands: import("@jbrowse/core/util").Feature[] | undefined;
|
|
74
74
|
} & {
|
|
75
75
|
readonly initialized: boolean;
|
|
76
76
|
readonly name: string;
|
|
@@ -90,12 +90,12 @@ declare const Cytobands: ({ overview, block, assembly, }: {
|
|
|
90
90
|
setLoaded({ adapterRegionsWithAssembly, refNameAliases, cytobands, }: {
|
|
91
91
|
adapterRegionsWithAssembly: import("@jbrowse/core/util").Region[];
|
|
92
92
|
refNameAliases: Record<string, string>;
|
|
93
|
-
cytobands: import("@jbrowse/core/util
|
|
93
|
+
cytobands: import("@jbrowse/core/util").Feature[];
|
|
94
94
|
}): void;
|
|
95
95
|
setError(e: Error): void;
|
|
96
96
|
setRegions(regions: import("@jbrowse/core/util").Region[]): void;
|
|
97
97
|
setRefNameAliases(refNameAliases: Record<string, string>): void;
|
|
98
|
-
setCytobands(cytobands: import("@jbrowse/core/util
|
|
98
|
+
setCytobands(cytobands: import("@jbrowse/core/util").Feature[]): void;
|
|
99
99
|
afterAttach(): void;
|
|
100
100
|
} & {
|
|
101
101
|
getAdapterMapEntry(adapterConf: unknown, options: import("@jbrowse/core/assemblyManager/assembly").BaseOptions): Promise<{
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
34
34
|
renderInProgress: AbortController | undefined;
|
|
35
35
|
filled: boolean;
|
|
36
36
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | undefined;
|
|
37
|
-
features: Map<string, import("@jbrowse/core/util
|
|
37
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
38
38
|
layout: any;
|
|
39
39
|
status: string;
|
|
40
40
|
error: unknown;
|
|
@@ -52,7 +52,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
52
52
|
setMessage(messageText: string): void;
|
|
53
53
|
setRendered(props: {
|
|
54
54
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
55
|
-
features: Map<string, import("@jbrowse/core/util
|
|
55
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
56
56
|
layout: any;
|
|
57
57
|
maxHeightReached: boolean;
|
|
58
58
|
renderProps: any;
|
|
@@ -119,7 +119,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
119
119
|
currBpPerPx: number;
|
|
120
120
|
message: string;
|
|
121
121
|
featureIdUnderMouse: string | undefined;
|
|
122
|
-
contextMenuFeature: import("@jbrowse/core/util
|
|
122
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
123
123
|
scrollTop: number;
|
|
124
124
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
125
125
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
@@ -132,8 +132,8 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
132
132
|
readonly selectedFeatureId: string | undefined;
|
|
133
133
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
134
134
|
} & {
|
|
135
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util
|
|
136
|
-
readonly featureUnderMouse: import("@jbrowse/core/util
|
|
135
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
136
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
137
137
|
getFeatureOverlapping(blockKey: string, x: number, y: number): any;
|
|
138
138
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
139
139
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -160,11 +160,11 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
160
160
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
161
161
|
setCurrBpPerPx(n: number): void;
|
|
162
162
|
deleteBlock(key: string): void;
|
|
163
|
-
selectFeature(feature: import("@jbrowse/core/util
|
|
163
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
164
164
|
clearFeatureSelection(): void;
|
|
165
165
|
setFeatureIdUnderMouse(feature: string | undefined): void;
|
|
166
166
|
reload(): void;
|
|
167
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util
|
|
167
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
168
168
|
} & {
|
|
169
169
|
readonly regionTooLarge: boolean;
|
|
170
170
|
readonly regionTooLargeReason: string;
|
|
@@ -210,7 +210,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
210
210
|
renderInProgress: AbortController | undefined;
|
|
211
211
|
filled: boolean;
|
|
212
212
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | undefined;
|
|
213
|
-
features: Map<string, import("@jbrowse/core/util
|
|
213
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
214
214
|
layout: any;
|
|
215
215
|
status: string;
|
|
216
216
|
error: unknown;
|
|
@@ -228,7 +228,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
228
228
|
setMessage(messageText: string): void;
|
|
229
229
|
setRendered(props: {
|
|
230
230
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
231
|
-
features: Map<string, import("@jbrowse/core/util
|
|
231
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
232
232
|
layout: any;
|
|
233
233
|
maxHeightReached: boolean;
|
|
234
234
|
renderProps: any;
|
|
@@ -295,7 +295,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
295
295
|
currBpPerPx: number;
|
|
296
296
|
message: string;
|
|
297
297
|
featureIdUnderMouse: string | undefined;
|
|
298
|
-
contextMenuFeature: import("@jbrowse/core/util
|
|
298
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
299
299
|
scrollTop: number;
|
|
300
300
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
301
301
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
@@ -308,8 +308,8 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
308
308
|
readonly selectedFeatureId: string | undefined;
|
|
309
309
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
310
310
|
} & {
|
|
311
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util
|
|
312
|
-
readonly featureUnderMouse: import("@jbrowse/core/util
|
|
311
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
312
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
313
313
|
getFeatureOverlapping(blockKey: string, x: number, y: number): any;
|
|
314
314
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
315
315
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -336,11 +336,11 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
336
336
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
337
337
|
setCurrBpPerPx(n: number): void;
|
|
338
338
|
deleteBlock(key: string): void;
|
|
339
|
-
selectFeature(feature: import("@jbrowse/core/util
|
|
339
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
340
340
|
clearFeatureSelection(): void;
|
|
341
341
|
setFeatureIdUnderMouse(feature: string | undefined): void;
|
|
342
342
|
reload(): void;
|
|
343
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util
|
|
343
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
344
344
|
} & {
|
|
345
345
|
readonly regionTooLarge: boolean;
|
|
346
346
|
readonly regionTooLargeReason: string;
|
|
@@ -396,7 +396,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
396
396
|
renderInProgress: AbortController | undefined;
|
|
397
397
|
filled: boolean;
|
|
398
398
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)> | undefined;
|
|
399
|
-
features: Map<string, import("@jbrowse/core/util
|
|
399
|
+
features: Map<string, import("@jbrowse/core/util").Feature> | undefined;
|
|
400
400
|
layout: any;
|
|
401
401
|
status: string;
|
|
402
402
|
error: unknown;
|
|
@@ -414,7 +414,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
414
414
|
setMessage(messageText: string): void;
|
|
415
415
|
setRendered(props: {
|
|
416
416
|
reactElement: import("react").ReactElement<any, string | ((props: any) => import("react").ReactElement<any, any> | null) | (new (props: any) => import("react").Component<any, any, any>)>;
|
|
417
|
-
features: Map<string, import("@jbrowse/core/util
|
|
417
|
+
features: Map<string, import("@jbrowse/core/util").Feature>;
|
|
418
418
|
layout: any;
|
|
419
419
|
maxHeightReached: boolean;
|
|
420
420
|
renderProps: any;
|
|
@@ -481,7 +481,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
481
481
|
currBpPerPx: number;
|
|
482
482
|
message: string;
|
|
483
483
|
featureIdUnderMouse: string | undefined;
|
|
484
|
-
contextMenuFeature: import("@jbrowse/core/util
|
|
484
|
+
contextMenuFeature: import("@jbrowse/core/util").Feature | undefined;
|
|
485
485
|
scrollTop: number;
|
|
486
486
|
estimatedRegionStatsP: Promise<import("@jbrowse/core/data_adapters/BaseAdapter").Stats> | undefined;
|
|
487
487
|
estimatedRegionStats: import("@jbrowse/core/data_adapters/BaseAdapter").Stats | undefined;
|
|
@@ -494,8 +494,8 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
494
494
|
readonly selectedFeatureId: string | undefined;
|
|
495
495
|
readonly DisplayMessageComponent: import("react").FC<any> | undefined;
|
|
496
496
|
} & {
|
|
497
|
-
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util
|
|
498
|
-
readonly featureUnderMouse: import("@jbrowse/core/util
|
|
497
|
+
readonly features: import("@jbrowse/core/util/compositeMap").default<string, import("@jbrowse/core/util").Feature>;
|
|
498
|
+
readonly featureUnderMouse: import("@jbrowse/core/util").Feature | undefined;
|
|
499
499
|
getFeatureOverlapping(blockKey: string, x: number, y: number): any;
|
|
500
500
|
getFeatureByID(blockKey: string, id: string): [number, number, number, number] | undefined;
|
|
501
501
|
searchFeatureByID(id: string): [number, number, number, number] | undefined;
|
|
@@ -522,11 +522,11 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
522
522
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
523
523
|
setCurrBpPerPx(n: number): void;
|
|
524
524
|
deleteBlock(key: string): void;
|
|
525
|
-
selectFeature(feature: import("@jbrowse/core/util
|
|
525
|
+
selectFeature(feature: import("@jbrowse/core/util").Feature): void;
|
|
526
526
|
clearFeatureSelection(): void;
|
|
527
527
|
setFeatureIdUnderMouse(feature: string | undefined): void;
|
|
528
528
|
reload(): void;
|
|
529
|
-
setContextMenuFeature(feature?: import("@jbrowse/core/util
|
|
529
|
+
setContextMenuFeature(feature?: import("@jbrowse/core/util").Feature | undefined): void;
|
|
530
530
|
} & {
|
|
531
531
|
readonly regionTooLarge: boolean;
|
|
532
532
|
readonly regionTooLargeReason: string;
|
|
@@ -21,8 +21,8 @@ var simpleFeature = require('@jbrowse/core/util/simpleFeature');
|
|
|
21
21
|
var tracks = require('@jbrowse/core/util/tracks');
|
|
22
22
|
var mobxStateTree = require('mobx-state-tree');
|
|
23
23
|
var MenuOpenIcon = _interopDefault(require('@material-ui/icons/MenuOpen'));
|
|
24
|
-
var ui = require('@jbrowse/core/ui');
|
|
25
24
|
var mobxReact = require('mobx-react');
|
|
25
|
+
var ui = require('@jbrowse/core/ui');
|
|
26
26
|
var reactPopper = require('react-popper');
|
|
27
27
|
var styles = require('@material-ui/core/styles');
|
|
28
28
|
var blockTypes = require('@jbrowse/core/util/blockTypes');
|
|
@@ -1467,14 +1467,17 @@ var BaseLinearDisplay = /*#__PURE__*/mobxReact.observer(function (props) {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
},
|
|
1469
1469
|
onMouseMove: function onMouseMove(event) {
|
|
1470
|
-
if (ref.current) {
|
|
1471
|
-
|
|
1472
|
-
setOffsetMouseCoord([event.clientX - rect.left, event.clientY - rect.top]);
|
|
1473
|
-
setClientMouseCoord([event.clientX, event.clientY]);
|
|
1474
|
-
setClientRect(rect);
|
|
1470
|
+
if (!ref.current) {
|
|
1471
|
+
return;
|
|
1475
1472
|
}
|
|
1476
|
-
|
|
1477
|
-
|
|
1473
|
+
|
|
1474
|
+
var rect = ref.current.getBoundingClientRect();
|
|
1475
|
+
var left = rect.left,
|
|
1476
|
+
top = rect.top;
|
|
1477
|
+
setOffsetMouseCoord([event.clientX - left, event.clientY - top]);
|
|
1478
|
+
setClientMouseCoord([event.clientX, event.clientY]);
|
|
1479
|
+
setClientRect(rect);
|
|
1480
|
+
}
|
|
1478
1481
|
}, DisplayMessageComponent ? /*#__PURE__*/React__default.createElement(DisplayMessageComponent, {
|
|
1479
1482
|
model: model
|
|
1480
1483
|
}) : /*#__PURE__*/React__default.createElement(LinearBlocks$1, Object.assign({}, props)), children, /*#__PURE__*/React__default.createElement(TooltipComponent, {
|
|
@@ -4671,7 +4674,7 @@ var TrackLabel$1 = /*#__PURE__*/mobxReact.observer(TrackLabel);
|
|
|
4671
4674
|
var useStyles$c = /*#__PURE__*/styles.makeStyles(function (theme) {
|
|
4672
4675
|
return {
|
|
4673
4676
|
root: {
|
|
4674
|
-
|
|
4677
|
+
marginTop: 2
|
|
4675
4678
|
},
|
|
4676
4679
|
resizeHandle: {
|
|
4677
4680
|
height: RESIZE_HANDLE_HEIGHT,
|
|
@@ -4691,6 +4694,15 @@ var useStyles$c = /*#__PURE__*/styles.makeStyles(function (theme) {
|
|
|
4691
4694
|
trackLabel: {
|
|
4692
4695
|
zIndex: 3
|
|
4693
4696
|
},
|
|
4697
|
+
// aligns with block bounderies. check for example the breakpoint split view
|
|
4698
|
+
// demo to see if features align if wanting to change things
|
|
4699
|
+
renderingComponentContainer: {
|
|
4700
|
+
position: 'absolute',
|
|
4701
|
+
// -1 offset because of the 1px border of the Paper
|
|
4702
|
+
left: -1,
|
|
4703
|
+
height: '100%',
|
|
4704
|
+
width: '100%'
|
|
4705
|
+
},
|
|
4694
4706
|
trackLabelInline: {
|
|
4695
4707
|
position: 'relative',
|
|
4696
4708
|
display: 'inline-block'
|
|
@@ -4704,13 +4716,11 @@ var useStyles$c = /*#__PURE__*/styles.makeStyles(function (theme) {
|
|
|
4704
4716
|
whiteSpace: 'nowrap',
|
|
4705
4717
|
position: 'relative',
|
|
4706
4718
|
background: 'none',
|
|
4707
|
-
zIndex: 2
|
|
4708
|
-
boxSizing: 'content-box'
|
|
4719
|
+
zIndex: 2
|
|
4709
4720
|
}
|
|
4710
4721
|
};
|
|
4711
4722
|
});
|
|
4712
|
-
|
|
4713
|
-
function TrackContainerLabel(_ref) {
|
|
4723
|
+
var TrackContainerLabel = /*#__PURE__*/mobxReact.observer(function (_ref) {
|
|
4714
4724
|
var model = _ref.model,
|
|
4715
4725
|
view = _ref.view;
|
|
4716
4726
|
var classes = useStyles$c();
|
|
@@ -4719,7 +4729,7 @@ function TrackContainerLabel(_ref) {
|
|
|
4719
4729
|
track: model,
|
|
4720
4730
|
className: clsx(classes.trackLabel, labelStyle)
|
|
4721
4731
|
}) : null;
|
|
4722
|
-
}
|
|
4732
|
+
});
|
|
4723
4733
|
|
|
4724
4734
|
function TrackContainer(_ref2) {
|
|
4725
4735
|
var model = _ref2.model,
|
|
@@ -4772,6 +4782,7 @@ function TrackContainer(_ref2) {
|
|
|
4772
4782
|
role: "presentation"
|
|
4773
4783
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4774
4784
|
ref: ref,
|
|
4785
|
+
className: classes.renderingComponentContainer,
|
|
4775
4786
|
style: {
|
|
4776
4787
|
transform: "scaleX(".concat(model.scaleFactor, ")")
|
|
4777
4788
|
}
|
|
@@ -8064,26 +8075,30 @@ function SetMaxHeightDlg$1(props) {
|
|
|
8064
8075
|
"aria-label": "close",
|
|
8065
8076
|
className: classes.closeButton,
|
|
8066
8077
|
onClick: handleClose
|
|
8067
|
-
}, /*#__PURE__*/React__default.createElement(CloseIcon, null))), /*#__PURE__*/React__default.createElement(core.DialogContent,
|
|
8078
|
+
}, /*#__PURE__*/React__default.createElement(CloseIcon, null))), /*#__PURE__*/React__default.createElement(core.DialogContent, {
|
|
8068
8079
|
className: classes.root
|
|
8069
|
-
}, /*#__PURE__*/React__default.createElement(core.Typography, null, "Set max height for the track"), /*#__PURE__*/React__default.createElement(core.TextField, {
|
|
8080
|
+
}, /*#__PURE__*/React__default.createElement(core.Typography, null, "Set max height for the track. For example, you can increase this if the layout says \"Max height reached\""), /*#__PURE__*/React__default.createElement(core.TextField, {
|
|
8070
8081
|
value: max,
|
|
8071
8082
|
onChange: function onChange(event) {
|
|
8072
|
-
setMax(event.target.value);
|
|
8083
|
+
return setMax(event.target.value);
|
|
8073
8084
|
},
|
|
8074
8085
|
placeholder: "Enter max score"
|
|
8075
|
-
}), /*#__PURE__*/React__default.createElement(core.Button, {
|
|
8086
|
+
}), /*#__PURE__*/React__default.createElement(core.DialogActions, null, /*#__PURE__*/React__default.createElement(core.Button, {
|
|
8076
8087
|
variant: "contained",
|
|
8077
8088
|
color: "primary",
|
|
8078
8089
|
type: "submit",
|
|
8079
|
-
|
|
8080
|
-
marginLeft: 20
|
|
8081
|
-
},
|
|
8090
|
+
autoFocus: true,
|
|
8082
8091
|
onClick: function onClick() {
|
|
8083
8092
|
model.setMaxHeight(max !== '' && !Number.isNaN(+max) ? +max : undefined);
|
|
8084
8093
|
handleClose();
|
|
8085
8094
|
}
|
|
8086
|
-
}, "Submit")
|
|
8095
|
+
}, "Submit"), /*#__PURE__*/React__default.createElement(core.Button, {
|
|
8096
|
+
variant: "contained",
|
|
8097
|
+
color: "secondary",
|
|
8098
|
+
onClick: function onClick() {
|
|
8099
|
+
return handleClose();
|
|
8100
|
+
}
|
|
8101
|
+
}, "Cancel"))));
|
|
8087
8102
|
}
|
|
8088
8103
|
|
|
8089
8104
|
var SetMaxHeight = /*#__PURE__*/mobxReact.observer(SetMaxHeightDlg$1);
|