@jbrowse/plugin-linear-genome-view 2.13.0 → 2.13.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/LinearGenomeView/components/TrackContainer.js +2 -2
- package/dist/LinearGenomeView/model.d.ts +10 -1
- package/dist/LinearGenomeView/model.js +27 -5
- package/dist/index.d.ts +7 -2
- package/esm/LinearGenomeView/components/TrackContainer.js +2 -2
- package/esm/LinearGenomeView/model.d.ts +10 -1
- package/esm/LinearGenomeView/model.js +28 -6
- package/esm/index.d.ts +7 -2
- package/package.json +2 -2
|
@@ -49,9 +49,9 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
49
49
|
const TrackContainer = (0, mobx_react_1.observer)(function ({ model, track, }) {
|
|
50
50
|
const { classes } = useStyles();
|
|
51
51
|
const display = track.displays[0];
|
|
52
|
-
const { draggingTrackId } = model;
|
|
52
|
+
const { draggingTrackId, showTrackOutlines } = model;
|
|
53
53
|
const ref = (0, react_1.useRef)(null);
|
|
54
|
-
return (react_1.default.createElement(material_1.Paper, { ref: ref, className: classes.root, variant:
|
|
54
|
+
return (react_1.default.createElement(material_1.Paper, { ref: ref, className: classes.root, variant: showTrackOutlines ? 'outlined' : undefined, elevation: showTrackOutlines ? undefined : 0, onClick: event => {
|
|
55
55
|
var _a;
|
|
56
56
|
if (event.detail === 2 && !track.displays[0].featureIdUnderMouse) {
|
|
57
57
|
const left = ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left) || 0;
|
|
@@ -74,6 +74,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
74
74
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
75
75
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<ParsedLocString>, Required<ParsedLocString>, Required<ParsedLocString>>>, [undefined]>;
|
|
76
76
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
77
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
77
78
|
}, {
|
|
78
79
|
width: number;
|
|
79
80
|
} & {
|
|
@@ -95,7 +96,6 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
95
96
|
leftOffset: undefined | BpOffset;
|
|
96
97
|
rightOffset: undefined | BpOffset;
|
|
97
98
|
} & {
|
|
98
|
-
scaleBarDisplayPrefix(): "";
|
|
99
99
|
/**
|
|
100
100
|
* #getter
|
|
101
101
|
* this is the effective value of the track labels setting, incorporating
|
|
@@ -115,6 +115,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
115
115
|
*/
|
|
116
116
|
readonly assemblyNames: string[];
|
|
117
117
|
} & {
|
|
118
|
+
/**
|
|
119
|
+
* #method
|
|
120
|
+
*/
|
|
121
|
+
scaleBarDisplayPrefix(): string;
|
|
118
122
|
/**
|
|
119
123
|
* #method
|
|
120
124
|
*/
|
|
@@ -217,6 +221,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
217
221
|
*/
|
|
218
222
|
readonly trackTypeActions: Map<string, MenuItem[]>;
|
|
219
223
|
} & {
|
|
224
|
+
/**
|
|
225
|
+
* #action
|
|
226
|
+
*/
|
|
227
|
+
setShowTrackOutlines(arg: boolean): void;
|
|
220
228
|
/**
|
|
221
229
|
* #action
|
|
222
230
|
*/
|
|
@@ -616,6 +624,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
616
624
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
617
625
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<ParsedLocString>, Required<ParsedLocString>, Required<ParsedLocString>>>, [undefined]>;
|
|
618
626
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
627
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
619
628
|
}>>, import("mobx-state-tree")._NotCustomized>;
|
|
620
629
|
export type LinearGenomeViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
621
630
|
export type LinearGenomeViewModel = Instance<LinearGenomeViewStateModel>;
|
|
@@ -177,6 +177,11 @@ function stateModelFactory(pluginManager) {
|
|
|
177
177
|
* color by CDS
|
|
178
178
|
*/
|
|
179
179
|
colorByCDS: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.boolean, () => Boolean(JSON.parse((0, util_1.localStorageGetItem)('lgv-colorByCDS') || 'false'))),
|
|
180
|
+
/**
|
|
181
|
+
* #property
|
|
182
|
+
* color by CDS
|
|
183
|
+
*/
|
|
184
|
+
showTrackOutlines: mobx_state_tree_1.types.optional(mobx_state_tree_1.types.boolean, () => Boolean(JSON.parse((0, util_1.localStorageGetItem)('lgv-showTrackOutlines') || 'true'))),
|
|
180
185
|
}))
|
|
181
186
|
.volatile(() => ({
|
|
182
187
|
volatileWidth: undefined,
|
|
@@ -194,9 +199,6 @@ function stateModelFactory(pluginManager) {
|
|
|
194
199
|
rightOffset: undefined,
|
|
195
200
|
}))
|
|
196
201
|
.views(self => ({
|
|
197
|
-
scaleBarDisplayPrefix() {
|
|
198
|
-
return '';
|
|
199
|
-
},
|
|
200
202
|
/**
|
|
201
203
|
* #getter
|
|
202
204
|
* this is the effective value of the track labels setting, incorporating
|
|
@@ -234,6 +236,15 @@ function stateModelFactory(pluginManager) {
|
|
|
234
236
|
},
|
|
235
237
|
}))
|
|
236
238
|
.views(self => ({
|
|
239
|
+
/**
|
|
240
|
+
* #method
|
|
241
|
+
*/
|
|
242
|
+
scaleBarDisplayPrefix() {
|
|
243
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
244
|
+
return (0, mobx_state_tree_1.getParent)(self, 2).type === 'LinearSyntenyView'
|
|
245
|
+
? self.assemblyNames[0]
|
|
246
|
+
: '';
|
|
247
|
+
},
|
|
237
248
|
/**
|
|
238
249
|
* #method
|
|
239
250
|
*/
|
|
@@ -253,8 +264,7 @@ function stateModelFactory(pluginManager) {
|
|
|
253
264
|
*/
|
|
254
265
|
get assemblyErrors() {
|
|
255
266
|
const { assemblyManager } = (0, util_1.getSession)(self);
|
|
256
|
-
|
|
257
|
-
return assemblyNames
|
|
267
|
+
return self.assemblyNames
|
|
258
268
|
.map(a => { var _a; return (_a = assemblyManager.get(a)) === null || _a === void 0 ? void 0 : _a.error; })
|
|
259
269
|
.filter(f => !!f)
|
|
260
270
|
.join(', ');
|
|
@@ -441,6 +451,12 @@ function stateModelFactory(pluginManager) {
|
|
|
441
451
|
},
|
|
442
452
|
}))
|
|
443
453
|
.actions(self => ({
|
|
454
|
+
/**
|
|
455
|
+
* #action
|
|
456
|
+
*/
|
|
457
|
+
setShowTrackOutlines(arg) {
|
|
458
|
+
self.showTrackOutlines = arg;
|
|
459
|
+
},
|
|
444
460
|
/**
|
|
445
461
|
* #action
|
|
446
462
|
*/
|
|
@@ -1017,6 +1033,12 @@ function stateModelFactory(pluginManager) {
|
|
|
1017
1033
|
checked: !self.hideHeader,
|
|
1018
1034
|
onClick: () => self.setHideHeader(!self.hideHeader),
|
|
1019
1035
|
},
|
|
1036
|
+
{
|
|
1037
|
+
label: 'Show track outlines',
|
|
1038
|
+
type: 'checkbox',
|
|
1039
|
+
checked: self.showTrackOutlines,
|
|
1040
|
+
onClick: () => self.setShowTrackOutlines(!self.showTrackOutlines),
|
|
1041
|
+
},
|
|
1020
1042
|
{
|
|
1021
1043
|
label: 'Show header overview',
|
|
1022
1044
|
type: 'checkbox',
|
package/dist/index.d.ts
CHANGED
|
@@ -380,6 +380,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
380
380
|
showGridlines: boolean;
|
|
381
381
|
highlight: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>>, [undefined]>>;
|
|
382
382
|
colorByCDS: boolean;
|
|
383
|
+
showTrackOutlines: boolean;
|
|
383
384
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
384
385
|
width: number;
|
|
385
386
|
} & {
|
|
@@ -401,12 +402,12 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
401
402
|
leftOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
402
403
|
rightOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
403
404
|
} & {
|
|
404
|
-
scaleBarDisplayPrefix(): "";
|
|
405
405
|
readonly trackLabelsSetting: any;
|
|
406
406
|
readonly width: number;
|
|
407
407
|
readonly interRegionPaddingWidth: number;
|
|
408
408
|
readonly assemblyNames: string[];
|
|
409
409
|
} & {
|
|
410
|
+
scaleBarDisplayPrefix(): string;
|
|
410
411
|
MiniControlsComponent(): import("react").FC<any>;
|
|
411
412
|
HeaderComponent(): import("react").FC<any>;
|
|
412
413
|
readonly assemblyErrors: string;
|
|
@@ -436,6 +437,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
436
437
|
rewriteOnClicks(trackType: string, viewMenuActions: import("@jbrowse/core/ui").MenuItem[]): void;
|
|
437
438
|
readonly trackTypeActions: Map<string, import("@jbrowse/core/ui").MenuItem[]>;
|
|
438
439
|
} & {
|
|
440
|
+
setShowTrackOutlines(arg: boolean): void;
|
|
439
441
|
setColorByCDS(flag: boolean): void;
|
|
440
442
|
setShowCytobands(flag: boolean): void;
|
|
441
443
|
setWidth(newWidth: number): void;
|
|
@@ -576,6 +578,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
576
578
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
577
579
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>>, [undefined]>;
|
|
578
580
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
581
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
579
582
|
}, {
|
|
580
583
|
width: number;
|
|
581
584
|
} & {
|
|
@@ -597,12 +600,12 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
597
600
|
leftOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
598
601
|
rightOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
599
602
|
} & {
|
|
600
|
-
scaleBarDisplayPrefix(): "";
|
|
601
603
|
readonly trackLabelsSetting: any;
|
|
602
604
|
readonly width: number;
|
|
603
605
|
readonly interRegionPaddingWidth: number;
|
|
604
606
|
readonly assemblyNames: string[];
|
|
605
607
|
} & {
|
|
608
|
+
scaleBarDisplayPrefix(): string;
|
|
606
609
|
MiniControlsComponent(): import("react").FC<any>;
|
|
607
610
|
HeaderComponent(): import("react").FC<any>;
|
|
608
611
|
readonly assemblyErrors: string;
|
|
@@ -632,6 +635,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
632
635
|
rewriteOnClicks(trackType: string, viewMenuActions: import("@jbrowse/core/ui").MenuItem[]): void;
|
|
633
636
|
readonly trackTypeActions: Map<string, import("@jbrowse/core/ui").MenuItem[]>;
|
|
634
637
|
} & {
|
|
638
|
+
setShowTrackOutlines(arg: boolean): void;
|
|
635
639
|
setColorByCDS(flag: boolean): void;
|
|
636
640
|
setShowCytobands(flag: boolean): void;
|
|
637
641
|
setWidth(newWidth: number): void;
|
|
@@ -772,6 +776,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
772
776
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
773
777
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>>, [undefined]>;
|
|
774
778
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
779
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
775
780
|
}>>, import("mobx-state-tree")._NotCustomized>>;
|
|
776
781
|
}) => import("react").JSX.Element;
|
|
777
782
|
};
|
|
@@ -21,9 +21,9 @@ const useStyles = makeStyles()({
|
|
|
21
21
|
const TrackContainer = observer(function ({ model, track, }) {
|
|
22
22
|
const { classes } = useStyles();
|
|
23
23
|
const display = track.displays[0];
|
|
24
|
-
const { draggingTrackId } = model;
|
|
24
|
+
const { draggingTrackId, showTrackOutlines } = model;
|
|
25
25
|
const ref = useRef(null);
|
|
26
|
-
return (React.createElement(Paper, { ref: ref, className: classes.root, variant:
|
|
26
|
+
return (React.createElement(Paper, { ref: ref, className: classes.root, variant: showTrackOutlines ? 'outlined' : undefined, elevation: showTrackOutlines ? undefined : 0, onClick: event => {
|
|
27
27
|
var _a;
|
|
28
28
|
if (event.detail === 2 && !track.displays[0].featureIdUnderMouse) {
|
|
29
29
|
const left = ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left) || 0;
|
|
@@ -74,6 +74,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
74
74
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
75
75
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<ParsedLocString>, Required<ParsedLocString>, Required<ParsedLocString>>>, [undefined]>;
|
|
76
76
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
77
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
77
78
|
}, {
|
|
78
79
|
width: number;
|
|
79
80
|
} & {
|
|
@@ -95,7 +96,6 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
95
96
|
leftOffset: undefined | BpOffset;
|
|
96
97
|
rightOffset: undefined | BpOffset;
|
|
97
98
|
} & {
|
|
98
|
-
scaleBarDisplayPrefix(): "";
|
|
99
99
|
/**
|
|
100
100
|
* #getter
|
|
101
101
|
* this is the effective value of the track labels setting, incorporating
|
|
@@ -115,6 +115,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
115
115
|
*/
|
|
116
116
|
readonly assemblyNames: string[];
|
|
117
117
|
} & {
|
|
118
|
+
/**
|
|
119
|
+
* #method
|
|
120
|
+
*/
|
|
121
|
+
scaleBarDisplayPrefix(): string;
|
|
118
122
|
/**
|
|
119
123
|
* #method
|
|
120
124
|
*/
|
|
@@ -217,6 +221,10 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
217
221
|
*/
|
|
218
222
|
readonly trackTypeActions: Map<string, MenuItem[]>;
|
|
219
223
|
} & {
|
|
224
|
+
/**
|
|
225
|
+
* #action
|
|
226
|
+
*/
|
|
227
|
+
setShowTrackOutlines(arg: boolean): void;
|
|
220
228
|
/**
|
|
221
229
|
* #action
|
|
222
230
|
*/
|
|
@@ -616,6 +624,7 @@ export declare function stateModelFactory(pluginManager: PluginManager): import(
|
|
|
616
624
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
617
625
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<ParsedLocString>, Required<ParsedLocString>, Required<ParsedLocString>>>, [undefined]>;
|
|
618
626
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
627
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
619
628
|
}>>, import("mobx-state-tree")._NotCustomized>;
|
|
620
629
|
export type LinearGenomeViewStateModel = ReturnType<typeof stateModelFactory>;
|
|
621
630
|
export type LinearGenomeViewModel = Instance<LinearGenomeViewStateModel>;
|
|
@@ -7,7 +7,7 @@ import calculateDynamicBlocks from '@jbrowse/core/util/calculateDynamicBlocks';
|
|
|
7
7
|
import calculateStaticBlocks from '@jbrowse/core/util/calculateStaticBlocks';
|
|
8
8
|
import { getParentRenderProps } from '@jbrowse/core/util/tracks';
|
|
9
9
|
import { when, transaction, autorun } from 'mobx';
|
|
10
|
-
import { addDisposer, cast, getSnapshot, getRoot, resolveIdentifier, types, } from 'mobx-state-tree';
|
|
10
|
+
import { addDisposer, cast, getSnapshot, getRoot, resolveIdentifier, types, getParent, } from 'mobx-state-tree';
|
|
11
11
|
import Base1DView from '@jbrowse/core/util/Base1DViewModel';
|
|
12
12
|
import { moveTo, pxToBp, bpToPx } from '@jbrowse/core/util/Base1DUtils';
|
|
13
13
|
import { saveAs } from 'file-saver';
|
|
@@ -147,6 +147,11 @@ export function stateModelFactory(pluginManager) {
|
|
|
147
147
|
* color by CDS
|
|
148
148
|
*/
|
|
149
149
|
colorByCDS: types.optional(types.boolean, () => Boolean(JSON.parse(localStorageGetItem('lgv-colorByCDS') || 'false'))),
|
|
150
|
+
/**
|
|
151
|
+
* #property
|
|
152
|
+
* color by CDS
|
|
153
|
+
*/
|
|
154
|
+
showTrackOutlines: types.optional(types.boolean, () => Boolean(JSON.parse(localStorageGetItem('lgv-showTrackOutlines') || 'true'))),
|
|
150
155
|
}))
|
|
151
156
|
.volatile(() => ({
|
|
152
157
|
volatileWidth: undefined,
|
|
@@ -164,9 +169,6 @@ export function stateModelFactory(pluginManager) {
|
|
|
164
169
|
rightOffset: undefined,
|
|
165
170
|
}))
|
|
166
171
|
.views(self => ({
|
|
167
|
-
scaleBarDisplayPrefix() {
|
|
168
|
-
return '';
|
|
169
|
-
},
|
|
170
172
|
/**
|
|
171
173
|
* #getter
|
|
172
174
|
* this is the effective value of the track labels setting, incorporating
|
|
@@ -204,6 +206,15 @@ export function stateModelFactory(pluginManager) {
|
|
|
204
206
|
},
|
|
205
207
|
}))
|
|
206
208
|
.views(self => ({
|
|
209
|
+
/**
|
|
210
|
+
* #method
|
|
211
|
+
*/
|
|
212
|
+
scaleBarDisplayPrefix() {
|
|
213
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
214
|
+
return getParent(self, 2).type === 'LinearSyntenyView'
|
|
215
|
+
? self.assemblyNames[0]
|
|
216
|
+
: '';
|
|
217
|
+
},
|
|
207
218
|
/**
|
|
208
219
|
* #method
|
|
209
220
|
*/
|
|
@@ -223,8 +234,7 @@ export function stateModelFactory(pluginManager) {
|
|
|
223
234
|
*/
|
|
224
235
|
get assemblyErrors() {
|
|
225
236
|
const { assemblyManager } = getSession(self);
|
|
226
|
-
|
|
227
|
-
return assemblyNames
|
|
237
|
+
return self.assemblyNames
|
|
228
238
|
.map(a => { var _a; return (_a = assemblyManager.get(a)) === null || _a === void 0 ? void 0 : _a.error; })
|
|
229
239
|
.filter(f => !!f)
|
|
230
240
|
.join(', ');
|
|
@@ -411,6 +421,12 @@ export function stateModelFactory(pluginManager) {
|
|
|
411
421
|
},
|
|
412
422
|
}))
|
|
413
423
|
.actions(self => ({
|
|
424
|
+
/**
|
|
425
|
+
* #action
|
|
426
|
+
*/
|
|
427
|
+
setShowTrackOutlines(arg) {
|
|
428
|
+
self.showTrackOutlines = arg;
|
|
429
|
+
},
|
|
414
430
|
/**
|
|
415
431
|
* #action
|
|
416
432
|
*/
|
|
@@ -987,6 +1003,12 @@ export function stateModelFactory(pluginManager) {
|
|
|
987
1003
|
checked: !self.hideHeader,
|
|
988
1004
|
onClick: () => self.setHideHeader(!self.hideHeader),
|
|
989
1005
|
},
|
|
1006
|
+
{
|
|
1007
|
+
label: 'Show track outlines',
|
|
1008
|
+
type: 'checkbox',
|
|
1009
|
+
checked: self.showTrackOutlines,
|
|
1010
|
+
onClick: () => self.setShowTrackOutlines(!self.showTrackOutlines),
|
|
1011
|
+
},
|
|
990
1012
|
{
|
|
991
1013
|
label: 'Show header overview',
|
|
992
1014
|
type: 'checkbox',
|
package/esm/index.d.ts
CHANGED
|
@@ -380,6 +380,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
380
380
|
showGridlines: boolean;
|
|
381
381
|
highlight: import("mobx-state-tree").IMSTArray<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>>, [undefined]>>;
|
|
382
382
|
colorByCDS: boolean;
|
|
383
|
+
showTrackOutlines: boolean;
|
|
383
384
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & {
|
|
384
385
|
width: number;
|
|
385
386
|
} & {
|
|
@@ -401,12 +402,12 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
401
402
|
leftOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
402
403
|
rightOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
403
404
|
} & {
|
|
404
|
-
scaleBarDisplayPrefix(): "";
|
|
405
405
|
readonly trackLabelsSetting: any;
|
|
406
406
|
readonly width: number;
|
|
407
407
|
readonly interRegionPaddingWidth: number;
|
|
408
408
|
readonly assemblyNames: string[];
|
|
409
409
|
} & {
|
|
410
|
+
scaleBarDisplayPrefix(): string;
|
|
410
411
|
MiniControlsComponent(): import("react").FC<any>;
|
|
411
412
|
HeaderComponent(): import("react").FC<any>;
|
|
412
413
|
readonly assemblyErrors: string;
|
|
@@ -436,6 +437,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
436
437
|
rewriteOnClicks(trackType: string, viewMenuActions: import("@jbrowse/core/ui").MenuItem[]): void;
|
|
437
438
|
readonly trackTypeActions: Map<string, import("@jbrowse/core/ui").MenuItem[]>;
|
|
438
439
|
} & {
|
|
440
|
+
setShowTrackOutlines(arg: boolean): void;
|
|
439
441
|
setColorByCDS(flag: boolean): void;
|
|
440
442
|
setShowCytobands(flag: boolean): void;
|
|
441
443
|
setWidth(newWidth: number): void;
|
|
@@ -576,6 +578,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
576
578
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
577
579
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>>, [undefined]>;
|
|
578
580
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
581
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
579
582
|
}, {
|
|
580
583
|
width: number;
|
|
581
584
|
} & {
|
|
@@ -597,12 +600,12 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
597
600
|
leftOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
598
601
|
rightOffset: undefined | import("./LinearGenomeView").BpOffset;
|
|
599
602
|
} & {
|
|
600
|
-
scaleBarDisplayPrefix(): "";
|
|
601
603
|
readonly trackLabelsSetting: any;
|
|
602
604
|
readonly width: number;
|
|
603
605
|
readonly interRegionPaddingWidth: number;
|
|
604
606
|
readonly assemblyNames: string[];
|
|
605
607
|
} & {
|
|
608
|
+
scaleBarDisplayPrefix(): string;
|
|
606
609
|
MiniControlsComponent(): import("react").FC<any>;
|
|
607
610
|
HeaderComponent(): import("react").FC<any>;
|
|
608
611
|
readonly assemblyErrors: string;
|
|
@@ -632,6 +635,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
632
635
|
rewriteOnClicks(trackType: string, viewMenuActions: import("@jbrowse/core/ui").MenuItem[]): void;
|
|
633
636
|
readonly trackTypeActions: Map<string, import("@jbrowse/core/ui").MenuItem[]>;
|
|
634
637
|
} & {
|
|
638
|
+
setShowTrackOutlines(arg: boolean): void;
|
|
635
639
|
setColorByCDS(flag: boolean): void;
|
|
636
640
|
setShowCytobands(flag: boolean): void;
|
|
637
641
|
setWidth(newWidth: number): void;
|
|
@@ -772,6 +776,7 @@ export default class LinearGenomeViewPlugin extends Plugin {
|
|
|
772
776
|
showGridlines: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
773
777
|
highlight: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").IType<Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>, Required<import("@jbrowse/core/util").ParsedLocString>>>, [undefined]>;
|
|
774
778
|
colorByCDS: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
779
|
+
showTrackOutlines: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
|
|
775
780
|
}>>, import("mobx-state-tree")._NotCustomized>>;
|
|
776
781
|
}) => import("react").JSX.Element;
|
|
777
782
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-linear-genome-view",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.1",
|
|
4
4
|
"description": "JBrowse 2 linear genome view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"access": "public"
|
|
62
62
|
},
|
|
63
63
|
"module": "esm/index.js",
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "fcebca71cc1d066654603e1a9accfa6c6d4f764d"
|
|
65
65
|
}
|