@jbrowse/plugin-wiggle 2.10.1 → 2.10.3
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/LinearWiggleDisplay/models/model.d.ts +9 -7
- package/dist/LinearWiggleDisplay/models/model.js +2 -2
- package/dist/MultiLinearWiggleDisplay/models/model.d.ts +10 -5
- package/dist/MultiLinearWiggleDisplay/models/model.js +2 -2
- package/dist/index.d.ts +27 -6
- package/dist/shared/SetMinMaxDialog.d.ts +1 -1
- package/dist/shared/SetMinMaxDialog.js +2 -2
- package/dist/shared/modelShared.d.ts +28 -19
- package/dist/shared/modelShared.js +2 -2
- package/esm/LinearWiggleDisplay/models/model.d.ts +9 -7
- package/esm/LinearWiggleDisplay/models/model.js +2 -2
- package/esm/MultiLinearWiggleDisplay/models/model.d.ts +10 -5
- package/esm/MultiLinearWiggleDisplay/models/model.js +2 -2
- package/esm/index.d.ts +27 -6
- package/esm/shared/SetMinMaxDialog.d.ts +1 -1
- package/esm/shared/SetMinMaxDialog.js +1 -1
- package/esm/shared/modelShared.d.ts +28 -19
- package/esm/shared/modelShared.js +2 -2
- package/package.json +2 -2
|
@@ -44,10 +44,15 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
44
44
|
message: string | undefined;
|
|
45
45
|
maxHeightReached: boolean;
|
|
46
46
|
ReactComponent: ({ model, }: {
|
|
47
|
-
model:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
model: {
|
|
48
|
+
error?: unknown;
|
|
49
|
+
reload: () => void;
|
|
50
|
+
message: React.ReactNode;
|
|
51
|
+
filled?: boolean | undefined;
|
|
52
|
+
status?: string | undefined;
|
|
53
|
+
reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
54
|
+
};
|
|
55
|
+
}) => React.JSX.Element | undefined;
|
|
51
56
|
renderProps: any;
|
|
52
57
|
} & {
|
|
53
58
|
doReload(): void;
|
|
@@ -160,9 +165,6 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
160
165
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
161
166
|
}> | null;
|
|
162
167
|
readonly adapterConfig: any;
|
|
163
|
-
/**
|
|
164
|
-
* #getter
|
|
165
|
-
*/
|
|
166
168
|
readonly parentTrack: any;
|
|
167
169
|
renderProps(): any; /**
|
|
168
170
|
* #getter
|
|
@@ -36,7 +36,7 @@ const util_2 = require("../../util");
|
|
|
36
36
|
const Tooltip_1 = __importDefault(require("../components/Tooltip"));
|
|
37
37
|
const modelShared_1 = __importDefault(require("../../shared/modelShared"));
|
|
38
38
|
// lazies
|
|
39
|
-
const
|
|
39
|
+
const SetColorDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../components/SetColorDialog'))));
|
|
40
40
|
// using a map because it preserves order
|
|
41
41
|
const rendererTypes = new Map([
|
|
42
42
|
['xyplot', 'XYPlotRenderer'],
|
|
@@ -199,7 +199,7 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
199
199
|
label: 'Set color',
|
|
200
200
|
onClick: () => {
|
|
201
201
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
202
|
-
|
|
202
|
+
SetColorDialog,
|
|
203
203
|
{ model: self, handleClose },
|
|
204
204
|
]);
|
|
205
205
|
},
|
|
@@ -50,8 +50,15 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
50
50
|
message: string | undefined;
|
|
51
51
|
maxHeightReached: boolean;
|
|
52
52
|
ReactComponent: ({ model, }: {
|
|
53
|
-
model:
|
|
54
|
-
|
|
53
|
+
model: {
|
|
54
|
+
error?: unknown;
|
|
55
|
+
reload: () => void;
|
|
56
|
+
message: React.ReactNode;
|
|
57
|
+
filled?: boolean | undefined;
|
|
58
|
+
status?: string | undefined;
|
|
59
|
+
reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
60
|
+
};
|
|
61
|
+
}) => React.JSX.Element | undefined;
|
|
55
62
|
renderProps: any;
|
|
56
63
|
} & {
|
|
57
64
|
doReload(): void;
|
|
@@ -170,9 +177,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
170
177
|
}, {
|
|
171
178
|
rendererTypeName: string;
|
|
172
179
|
error: unknown;
|
|
173
|
-
message: string | undefined;
|
|
174
|
-
* #getter
|
|
175
|
-
*/
|
|
180
|
+
message: string | undefined;
|
|
176
181
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
177
182
|
}> | null;
|
|
178
183
|
readonly adapterConfig: any;
|
|
@@ -43,7 +43,7 @@ const Tooltip_1 = __importDefault(require("../components/Tooltip"));
|
|
|
43
43
|
const modelShared_1 = __importDefault(require("../../shared/modelShared"));
|
|
44
44
|
const randomColor = () => '#000000'.replaceAll('0', () => (~~(Math.random() * 16)).toString(16));
|
|
45
45
|
// lazies
|
|
46
|
-
const
|
|
46
|
+
const SetColorDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('../components/SetColorDialog'))));
|
|
47
47
|
// using a map because it preserves order
|
|
48
48
|
const rendererTypes = new Map([
|
|
49
49
|
['xyplot', 'MultiXYPlotRenderer'],
|
|
@@ -369,7 +369,7 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
369
369
|
label: 'Edit colors/arrangement...',
|
|
370
370
|
onClick: () => {
|
|
371
371
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
372
|
-
|
|
372
|
+
SetColorDialog,
|
|
373
373
|
{ model: self, handleClose },
|
|
374
374
|
]);
|
|
375
375
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -43,8 +43,15 @@ export default class WigglePlugin extends Plugin {
|
|
|
43
43
|
message: string | undefined;
|
|
44
44
|
maxHeightReached: boolean;
|
|
45
45
|
ReactComponent: ({ model, }: {
|
|
46
|
-
model:
|
|
47
|
-
|
|
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;
|
|
48
55
|
renderProps: any;
|
|
49
56
|
} & {
|
|
50
57
|
doReload(): void;
|
|
@@ -88,8 +95,15 @@ export default class WigglePlugin extends Plugin {
|
|
|
88
95
|
message: string | undefined;
|
|
89
96
|
maxHeightReached: boolean;
|
|
90
97
|
ReactComponent: ({ model, }: {
|
|
91
|
-
model:
|
|
92
|
-
|
|
98
|
+
model: {
|
|
99
|
+
error?: unknown;
|
|
100
|
+
reload: () => void;
|
|
101
|
+
message: import("react").ReactNode;
|
|
102
|
+
filled?: boolean | undefined;
|
|
103
|
+
status?: string | undefined;
|
|
104
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
105
|
+
};
|
|
106
|
+
}) => import("react").JSX.Element | undefined;
|
|
93
107
|
renderProps: any;
|
|
94
108
|
} & {
|
|
95
109
|
doReload(): void;
|
|
@@ -462,8 +476,15 @@ export default class WigglePlugin extends Plugin {
|
|
|
462
476
|
message: string | undefined;
|
|
463
477
|
maxHeightReached: boolean;
|
|
464
478
|
ReactComponent: ({ model, }: {
|
|
465
|
-
model:
|
|
466
|
-
|
|
479
|
+
model: {
|
|
480
|
+
error?: unknown;
|
|
481
|
+
reload: () => void;
|
|
482
|
+
message: import("react").ReactNode;
|
|
483
|
+
filled?: boolean | undefined;
|
|
484
|
+
status?: string | undefined;
|
|
485
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
486
|
+
};
|
|
487
|
+
}) => import("react").JSX.Element | undefined;
|
|
467
488
|
renderProps: any;
|
|
468
489
|
} & {
|
|
469
490
|
doReload(): void;
|
|
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
const react_1 = __importStar(require("react"));
|
|
27
27
|
const material_1 = require("@mui/material");
|
|
28
28
|
const ui_1 = require("@jbrowse/core/ui");
|
|
29
|
-
function
|
|
29
|
+
function SetMinMaxDialog(props) {
|
|
30
30
|
const { model, handleClose } = props;
|
|
31
31
|
const { minScore, maxScore, scaleType } = model;
|
|
32
32
|
const [min, setMin] = (0, react_1.useState)(`${minScore !== Number.MIN_VALUE ? minScore : ''}`);
|
|
@@ -49,4 +49,4 @@ function SetMinMaxDlg(props) {
|
|
|
49
49
|
handleClose();
|
|
50
50
|
} }, "Submit"))));
|
|
51
51
|
}
|
|
52
|
-
exports.default =
|
|
52
|
+
exports.default = SetMinMaxDialog;
|
|
@@ -40,15 +40,19 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
40
40
|
message: string | undefined;
|
|
41
41
|
maxHeightReached: boolean;
|
|
42
42
|
ReactComponent: ({ model, }: {
|
|
43
|
-
model:
|
|
44
|
-
|
|
43
|
+
model: {
|
|
44
|
+
error?: unknown;
|
|
45
|
+
reload: () => void;
|
|
46
|
+
message: import("react").ReactNode;
|
|
47
|
+
filled?: boolean | undefined;
|
|
48
|
+
status?: string | undefined;
|
|
49
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
50
|
+
};
|
|
51
|
+
}) => import("react").JSX.Element | undefined;
|
|
45
52
|
renderProps: any;
|
|
46
53
|
} & {
|
|
47
54
|
doReload(): void;
|
|
48
55
|
afterAttach(): void;
|
|
49
|
-
/**
|
|
50
|
-
* #action
|
|
51
|
-
*/
|
|
52
56
|
setStatus(message: string): void;
|
|
53
57
|
setLoading(abortController: AbortController): void;
|
|
54
58
|
setMessage(messageText: string): void;
|
|
@@ -157,9 +161,6 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
157
161
|
type: string;
|
|
158
162
|
rpcDriverName: string | undefined;
|
|
159
163
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
160
|
-
/**
|
|
161
|
-
* #property
|
|
162
|
-
*/
|
|
163
164
|
rendererTypeName: string;
|
|
164
165
|
error: unknown;
|
|
165
166
|
message: string | undefined;
|
|
@@ -271,20 +272,24 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
271
272
|
} & {
|
|
272
273
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
273
274
|
deleteBlock(key: string): void;
|
|
274
|
-
selectFeature(feature: Feature): void;
|
|
275
|
-
clearFeatureSelection(): void;
|
|
276
|
-
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
277
|
-
setContextMenuFeature(feature?: Feature | undefined): void; /**
|
|
275
|
+
selectFeature(feature: Feature): void; /**
|
|
278
276
|
* #getter
|
|
279
277
|
*/
|
|
278
|
+
clearFeatureSelection(): void;
|
|
279
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
280
|
+
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
280
281
|
} & {
|
|
281
282
|
reload(): Promise<void>;
|
|
282
283
|
} & {
|
|
283
284
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
284
285
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
285
|
-
renderProps(): any;
|
|
286
|
+
renderProps(): any; /**
|
|
287
|
+
* #getter
|
|
288
|
+
*/
|
|
286
289
|
} & {
|
|
287
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
290
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>; /**
|
|
291
|
+
* #getter
|
|
292
|
+
*/
|
|
288
293
|
afterAttach(): void;
|
|
289
294
|
} & {
|
|
290
295
|
message: string | undefined;
|
|
@@ -522,15 +527,19 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
522
527
|
message: string | undefined;
|
|
523
528
|
maxHeightReached: boolean;
|
|
524
529
|
ReactComponent: ({ model, }: {
|
|
525
|
-
model:
|
|
526
|
-
|
|
530
|
+
model: {
|
|
531
|
+
error?: unknown;
|
|
532
|
+
reload: () => void;
|
|
533
|
+
message: import("react").ReactNode;
|
|
534
|
+
filled?: boolean | undefined;
|
|
535
|
+
status?: string | undefined;
|
|
536
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
537
|
+
};
|
|
538
|
+
}) => import("react").JSX.Element | undefined;
|
|
527
539
|
renderProps: any;
|
|
528
540
|
} & {
|
|
529
541
|
doReload(): void;
|
|
530
542
|
afterAttach(): void;
|
|
531
|
-
/**
|
|
532
|
-
* #action
|
|
533
|
-
*/
|
|
534
543
|
setStatus(message: string): void;
|
|
535
544
|
setLoading(abortController: AbortController): void;
|
|
536
545
|
setMessage(messageText: string): void;
|
|
@@ -31,7 +31,7 @@ const mobx_state_tree_1 = require("mobx-state-tree");
|
|
|
31
31
|
const util_2 = require("../util");
|
|
32
32
|
const react_1 = require("react");
|
|
33
33
|
// lazies
|
|
34
|
-
const
|
|
34
|
+
const SetMinMaxDialog = (0, react_1.lazy)(() => Promise.resolve().then(() => __importStar(require('./SetMinMaxDialog'))));
|
|
35
35
|
/**
|
|
36
36
|
* #stateModel SharedWiggleMixin
|
|
37
37
|
*/
|
|
@@ -455,7 +455,7 @@ function SharedWiggleMixin(configSchema) {
|
|
|
455
455
|
label: 'Set min/max score',
|
|
456
456
|
onClick: () => {
|
|
457
457
|
(0, util_1.getSession)(self).queueDialog(handleClose => [
|
|
458
|
-
|
|
458
|
+
SetMinMaxDialog,
|
|
459
459
|
{ model: self, handleClose },
|
|
460
460
|
]);
|
|
461
461
|
},
|
|
@@ -44,10 +44,15 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
44
44
|
message: string | undefined;
|
|
45
45
|
maxHeightReached: boolean;
|
|
46
46
|
ReactComponent: ({ model, }: {
|
|
47
|
-
model:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
model: {
|
|
48
|
+
error?: unknown;
|
|
49
|
+
reload: () => void;
|
|
50
|
+
message: React.ReactNode;
|
|
51
|
+
filled?: boolean | undefined;
|
|
52
|
+
status?: string | undefined;
|
|
53
|
+
reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
54
|
+
};
|
|
55
|
+
}) => React.JSX.Element | undefined;
|
|
51
56
|
renderProps: any;
|
|
52
57
|
} & {
|
|
53
58
|
doReload(): void;
|
|
@@ -160,9 +165,6 @@ declare function stateModelFactory(pluginManager: PluginManager, configSchema: A
|
|
|
160
165
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
161
166
|
}> | null;
|
|
162
167
|
readonly adapterConfig: any;
|
|
163
|
-
/**
|
|
164
|
-
* #getter
|
|
165
|
-
*/
|
|
166
168
|
readonly parentTrack: any;
|
|
167
169
|
renderProps(): any; /**
|
|
168
170
|
* #getter
|
|
@@ -8,7 +8,7 @@ import { getScale, YSCALEBAR_LABEL_OFFSET } from '../../util';
|
|
|
8
8
|
import Tooltip from '../components/Tooltip';
|
|
9
9
|
import SharedWiggleMixin from '../../shared/modelShared';
|
|
10
10
|
// lazies
|
|
11
|
-
const
|
|
11
|
+
const SetColorDialog = lazy(() => import('../components/SetColorDialog'));
|
|
12
12
|
// using a map because it preserves order
|
|
13
13
|
const rendererTypes = new Map([
|
|
14
14
|
['xyplot', 'XYPlotRenderer'],
|
|
@@ -171,7 +171,7 @@ function stateModelFactory(pluginManager, configSchema) {
|
|
|
171
171
|
label: 'Set color',
|
|
172
172
|
onClick: () => {
|
|
173
173
|
getSession(self).queueDialog(handleClose => [
|
|
174
|
-
|
|
174
|
+
SetColorDialog,
|
|
175
175
|
{ model: self, handleClose },
|
|
176
176
|
]);
|
|
177
177
|
},
|
|
@@ -50,8 +50,15 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
50
50
|
message: string | undefined;
|
|
51
51
|
maxHeightReached: boolean;
|
|
52
52
|
ReactComponent: ({ model, }: {
|
|
53
|
-
model:
|
|
54
|
-
|
|
53
|
+
model: {
|
|
54
|
+
error?: unknown;
|
|
55
|
+
reload: () => void;
|
|
56
|
+
message: React.ReactNode;
|
|
57
|
+
filled?: boolean | undefined;
|
|
58
|
+
status?: string | undefined;
|
|
59
|
+
reactElement?: React.ReactElement<any, string | React.JSXElementConstructor<any>> | undefined;
|
|
60
|
+
};
|
|
61
|
+
}) => React.JSX.Element | undefined;
|
|
55
62
|
renderProps: any;
|
|
56
63
|
} & {
|
|
57
64
|
doReload(): void;
|
|
@@ -170,9 +177,7 @@ export declare function stateModelFactory(pluginManager: PluginManager, configSc
|
|
|
170
177
|
}, {
|
|
171
178
|
rendererTypeName: string;
|
|
172
179
|
error: unknown;
|
|
173
|
-
message: string | undefined;
|
|
174
|
-
* #getter
|
|
175
|
-
*/
|
|
180
|
+
message: string | undefined;
|
|
176
181
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
|
|
177
182
|
}> | null;
|
|
178
183
|
readonly adapterConfig: any;
|
|
@@ -14,7 +14,7 @@ import Tooltip from '../components/Tooltip';
|
|
|
14
14
|
import SharedWiggleMixin from '../../shared/modelShared';
|
|
15
15
|
const randomColor = () => '#000000'.replaceAll('0', () => (~~(Math.random() * 16)).toString(16));
|
|
16
16
|
// lazies
|
|
17
|
-
const
|
|
17
|
+
const SetColorDialog = lazy(() => import('../components/SetColorDialog'));
|
|
18
18
|
// using a map because it preserves order
|
|
19
19
|
const rendererTypes = new Map([
|
|
20
20
|
['xyplot', 'MultiXYPlotRenderer'],
|
|
@@ -340,7 +340,7 @@ export function stateModelFactory(pluginManager, configSchema) {
|
|
|
340
340
|
label: 'Edit colors/arrangement...',
|
|
341
341
|
onClick: () => {
|
|
342
342
|
getSession(self).queueDialog(handleClose => [
|
|
343
|
-
|
|
343
|
+
SetColorDialog,
|
|
344
344
|
{ model: self, handleClose },
|
|
345
345
|
]);
|
|
346
346
|
},
|
package/esm/index.d.ts
CHANGED
|
@@ -43,8 +43,15 @@ export default class WigglePlugin extends Plugin {
|
|
|
43
43
|
message: string | undefined;
|
|
44
44
|
maxHeightReached: boolean;
|
|
45
45
|
ReactComponent: ({ model, }: {
|
|
46
|
-
model:
|
|
47
|
-
|
|
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;
|
|
48
55
|
renderProps: any;
|
|
49
56
|
} & {
|
|
50
57
|
doReload(): void;
|
|
@@ -88,8 +95,15 @@ export default class WigglePlugin extends Plugin {
|
|
|
88
95
|
message: string | undefined;
|
|
89
96
|
maxHeightReached: boolean;
|
|
90
97
|
ReactComponent: ({ model, }: {
|
|
91
|
-
model:
|
|
92
|
-
|
|
98
|
+
model: {
|
|
99
|
+
error?: unknown;
|
|
100
|
+
reload: () => void;
|
|
101
|
+
message: import("react").ReactNode;
|
|
102
|
+
filled?: boolean | undefined;
|
|
103
|
+
status?: string | undefined;
|
|
104
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
105
|
+
};
|
|
106
|
+
}) => import("react").JSX.Element | undefined;
|
|
93
107
|
renderProps: any;
|
|
94
108
|
} & {
|
|
95
109
|
doReload(): void;
|
|
@@ -462,8 +476,15 @@ export default class WigglePlugin extends Plugin {
|
|
|
462
476
|
message: string | undefined;
|
|
463
477
|
maxHeightReached: boolean;
|
|
464
478
|
ReactComponent: ({ model, }: {
|
|
465
|
-
model:
|
|
466
|
-
|
|
479
|
+
model: {
|
|
480
|
+
error?: unknown;
|
|
481
|
+
reload: () => void;
|
|
482
|
+
message: import("react").ReactNode;
|
|
483
|
+
filled?: boolean | undefined;
|
|
484
|
+
status?: string | undefined;
|
|
485
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
486
|
+
};
|
|
487
|
+
}) => import("react").JSX.Element | undefined;
|
|
467
488
|
renderProps: any;
|
|
468
489
|
} & {
|
|
469
490
|
doReload(): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { Button, DialogActions, DialogContent, TextField, Typography, } from '@mui/material';
|
|
3
3
|
import { Dialog } from '@jbrowse/core/ui';
|
|
4
|
-
export default function
|
|
4
|
+
export default function SetMinMaxDialog(props) {
|
|
5
5
|
const { model, handleClose } = props;
|
|
6
6
|
const { minScore, maxScore, scaleType } = model;
|
|
7
7
|
const [min, setMin] = useState(`${minScore !== Number.MIN_VALUE ? minScore : ''}`);
|
|
@@ -40,15 +40,19 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
40
40
|
message: string | undefined;
|
|
41
41
|
maxHeightReached: boolean;
|
|
42
42
|
ReactComponent: ({ model, }: {
|
|
43
|
-
model:
|
|
44
|
-
|
|
43
|
+
model: {
|
|
44
|
+
error?: unknown;
|
|
45
|
+
reload: () => void;
|
|
46
|
+
message: import("react").ReactNode;
|
|
47
|
+
filled?: boolean | undefined;
|
|
48
|
+
status?: string | undefined;
|
|
49
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
50
|
+
};
|
|
51
|
+
}) => import("react").JSX.Element | undefined;
|
|
45
52
|
renderProps: any;
|
|
46
53
|
} & {
|
|
47
54
|
doReload(): void;
|
|
48
55
|
afterAttach(): void;
|
|
49
|
-
/**
|
|
50
|
-
* #action
|
|
51
|
-
*/
|
|
52
56
|
setStatus(message: string): void;
|
|
53
57
|
setLoading(abortController: AbortController): void;
|
|
54
58
|
setMessage(messageText: string): void;
|
|
@@ -157,9 +161,6 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
157
161
|
type: string;
|
|
158
162
|
rpcDriverName: string | undefined;
|
|
159
163
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
160
|
-
/**
|
|
161
|
-
* #property
|
|
162
|
-
*/
|
|
163
164
|
rendererTypeName: string;
|
|
164
165
|
error: unknown;
|
|
165
166
|
message: string | undefined;
|
|
@@ -271,20 +272,24 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
271
272
|
} & {
|
|
272
273
|
addBlock(key: string, block: import("@jbrowse/core/util/blockTypes").BaseBlock): void;
|
|
273
274
|
deleteBlock(key: string): void;
|
|
274
|
-
selectFeature(feature: Feature): void;
|
|
275
|
-
clearFeatureSelection(): void;
|
|
276
|
-
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
277
|
-
setContextMenuFeature(feature?: Feature | undefined): void; /**
|
|
275
|
+
selectFeature(feature: Feature): void; /**
|
|
278
276
|
* #getter
|
|
279
277
|
*/
|
|
278
|
+
clearFeatureSelection(): void;
|
|
279
|
+
setFeatureIdUnderMouse(feature?: string | undefined): void;
|
|
280
|
+
setContextMenuFeature(feature?: Feature | undefined): void;
|
|
280
281
|
} & {
|
|
281
282
|
reload(): Promise<void>;
|
|
282
283
|
} & {
|
|
283
284
|
trackMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
284
285
|
contextMenuItems(): import("@jbrowse/core/ui").MenuItem[];
|
|
285
|
-
renderProps(): any;
|
|
286
|
+
renderProps(): any; /**
|
|
287
|
+
* #getter
|
|
288
|
+
*/
|
|
286
289
|
} & {
|
|
287
|
-
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>;
|
|
290
|
+
renderSvg(opts: import("@jbrowse/plugin-linear-genome-view").ExportSvgDisplayOptions): Promise<import("react").JSX.Element>; /**
|
|
291
|
+
* #getter
|
|
292
|
+
*/
|
|
288
293
|
afterAttach(): void;
|
|
289
294
|
} & {
|
|
290
295
|
message: string | undefined;
|
|
@@ -522,15 +527,19 @@ export default function SharedWiggleMixin(configSchema: AnyConfigurationSchemaTy
|
|
|
522
527
|
message: string | undefined;
|
|
523
528
|
maxHeightReached: boolean;
|
|
524
529
|
ReactComponent: ({ model, }: {
|
|
525
|
-
model:
|
|
526
|
-
|
|
530
|
+
model: {
|
|
531
|
+
error?: unknown;
|
|
532
|
+
reload: () => void;
|
|
533
|
+
message: import("react").ReactNode;
|
|
534
|
+
filled?: boolean | undefined;
|
|
535
|
+
status?: string | undefined;
|
|
536
|
+
reactElement?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
537
|
+
};
|
|
538
|
+
}) => import("react").JSX.Element | undefined;
|
|
527
539
|
renderProps: any;
|
|
528
540
|
} & {
|
|
529
541
|
doReload(): void;
|
|
530
542
|
afterAttach(): void;
|
|
531
|
-
/**
|
|
532
|
-
* #action
|
|
533
|
-
*/
|
|
534
543
|
setStatus(message: string): void;
|
|
535
544
|
setLoading(abortController: AbortController): void;
|
|
536
545
|
setMessage(messageText: string): void;
|
|
@@ -6,7 +6,7 @@ import { types } from 'mobx-state-tree';
|
|
|
6
6
|
import { getNiceDomain } from '../util';
|
|
7
7
|
import { lazy } from 'react';
|
|
8
8
|
// lazies
|
|
9
|
-
const
|
|
9
|
+
const SetMinMaxDialog = lazy(() => import('./SetMinMaxDialog'));
|
|
10
10
|
/**
|
|
11
11
|
* #stateModel SharedWiggleMixin
|
|
12
12
|
*/
|
|
@@ -430,7 +430,7 @@ export default function SharedWiggleMixin(configSchema) {
|
|
|
430
430
|
label: 'Set min/max score',
|
|
431
431
|
onClick: () => {
|
|
432
432
|
getSession(self).queueDialog(handleClose => [
|
|
433
|
-
|
|
433
|
+
SetMinMaxDialog,
|
|
434
434
|
{ model: self, handleClose },
|
|
435
435
|
]);
|
|
436
436
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-wiggle",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
4
4
|
"description": "JBrowse 2 wiggle adapters, tracks, etc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"distModule": "esm/index.js",
|
|
67
67
|
"srcModule": "src/index.ts",
|
|
68
68
|
"module": "esm/index.js",
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c8fc800cd17decd72b2e971c7a6add3b95214e72"
|
|
70
70
|
}
|