@jbrowse/plugin-variants 1.6.5 → 1.6.6
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/LinearVariantDisplay/configSchema.d.ts +1 -1
- package/dist/VariantFeatureWidget/index.d.ts +1 -1
- package/dist/VcfAdapter/configSchema.d.ts +1 -1
- package/dist/VcfTabixAdapter/configSchema.d.ts +1 -1
- package/dist/plugin-variants.cjs.development.js +29 -19
- package/dist/plugin-variants.cjs.development.js.map +1 -1
- package/dist/plugin-variants.cjs.production.min.js +1 -1
- package/dist/plugin-variants.cjs.production.min.js.map +1 -1
- package/dist/plugin-variants.esm.js +29 -19
- package/dist/plugin-variants.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/VariantFeatureWidget/BreakendOptionDialog.tsx +21 -23
- package/src/VariantFeatureWidget/VariantFeatureWidget.tsx +11 -7
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Instance } from 'mobx-state-tree';
|
|
2
2
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
3
|
-
export declare function LinearVariantDisplayConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration
|
|
3
|
+
export declare function LinearVariantDisplayConfigFactory(pluginManager: PluginManager): import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
4
4
|
export declare type LinearVariantDisplayConfigModel = ReturnType<typeof LinearVariantDisplayConfigFactory>;
|
|
5
5
|
export declare type LinearVariantDisplayConfig = Instance<LinearVariantDisplayConfigModel>;
|
|
@@ -8,4 +8,4 @@ export function stateModelFactory(pluginManager: any): import("mobx-state-tree")
|
|
|
8
8
|
setFeatureData(data: any): void;
|
|
9
9
|
clearFeatureData(): void;
|
|
10
10
|
}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
|
|
11
|
-
export const configSchema: import("@jbrowse/core/configuration
|
|
11
|
+
export const configSchema: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@jbrowse/core/configuration
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("@jbrowse/core/configuration
|
|
1
|
+
declare const _default: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
2
2
|
export default _default;
|
|
@@ -34,7 +34,6 @@ var core = require('@material-ui/core');
|
|
|
34
34
|
var SimpleFeature = _interopDefault(require('@jbrowse/core/util/simpleFeature'));
|
|
35
35
|
var xDataGrid = require('@mui/x-data-grid');
|
|
36
36
|
var BaseFeatureDetail = require('@jbrowse/core/BaseFeatureWidget/BaseFeatureDetail');
|
|
37
|
-
var styles = require('@material-ui/core/styles');
|
|
38
37
|
var CloseIcon = _interopDefault(require('@material-ui/icons/Close'));
|
|
39
38
|
|
|
40
39
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -2590,7 +2589,7 @@ var VcfAdapter$1 = {
|
|
|
2590
2589
|
'default': VcfAdapter
|
|
2591
2590
|
};
|
|
2592
2591
|
|
|
2593
|
-
var useStyles = /*#__PURE__*/
|
|
2592
|
+
var useStyles = /*#__PURE__*/core.makeStyles(function (theme) {
|
|
2594
2593
|
return {
|
|
2595
2594
|
closeButton: {
|
|
2596
2595
|
position: 'absolute',
|
|
@@ -2627,7 +2626,7 @@ function BreakendOptionDialog(_ref) {
|
|
|
2627
2626
|
}, /*#__PURE__*/React__default.createElement(core.DialogTitle, null, "Breakpoint split view options", handleClose ? /*#__PURE__*/React__default.createElement(core.IconButton, {
|
|
2628
2627
|
className: classes.closeButton,
|
|
2629
2628
|
onClick: function onClick() {
|
|
2630
|
-
handleClose();
|
|
2629
|
+
return handleClose();
|
|
2631
2630
|
}
|
|
2632
2631
|
}, /*#__PURE__*/React__default.createElement(CloseIcon, null)) : null), /*#__PURE__*/React__default.createElement(core.Divider, null), /*#__PURE__*/React__default.createElement(core.DialogContent, null, /*#__PURE__*/React__default.createElement(core.FormControlLabel, {
|
|
2633
2632
|
className: classes.block,
|
|
@@ -2655,14 +2654,21 @@ function BreakendOptionDialog(_ref) {
|
|
|
2655
2654
|
onClick: function onClick() {
|
|
2656
2655
|
var view = model.view;
|
|
2657
2656
|
var session = util.getSession(model);
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2657
|
+
|
|
2658
|
+
try {
|
|
2659
|
+
var viewSnapshot = viewType.snapshotFromBreakendFeature(feature, view);
|
|
2660
|
+
viewSnapshot.views[0].offsetPx -= view.width / 2 + 100;
|
|
2661
|
+
viewSnapshot.views[1].offsetPx -= view.width / 2 + 100;
|
|
2662
|
+
viewSnapshot.featureData = feature;
|
|
2663
|
+
var viewTracks = mobxStateTree.getSnapshot(view.tracks);
|
|
2664
|
+
viewSnapshot.views[0].tracks = viewTracks;
|
|
2665
|
+
viewSnapshot.views[1].tracks = mirrorTracks ? viewTracks.slice().reverse() : viewTracks;
|
|
2666
|
+
session.addView('BreakpointSplitView', viewSnapshot);
|
|
2667
|
+
} catch (e) {
|
|
2668
|
+
console.error(e);
|
|
2669
|
+
session.notify("".concat(e));
|
|
2670
|
+
}
|
|
2671
|
+
|
|
2666
2672
|
handleClose();
|
|
2667
2673
|
},
|
|
2668
2674
|
variant: "contained",
|
|
@@ -2670,11 +2676,10 @@ function BreakendOptionDialog(_ref) {
|
|
|
2670
2676
|
autoFocus: true
|
|
2671
2677
|
}, "OK"), /*#__PURE__*/React__default.createElement(core.Button, {
|
|
2672
2678
|
onClick: function onClick() {
|
|
2673
|
-
handleClose();
|
|
2679
|
+
return handleClose();
|
|
2674
2680
|
},
|
|
2675
2681
|
color: "secondary",
|
|
2676
|
-
variant: "contained"
|
|
2677
|
-
autoFocus: true
|
|
2682
|
+
variant: "contained"
|
|
2678
2683
|
}, "Cancel")));
|
|
2679
2684
|
}
|
|
2680
2685
|
|
|
@@ -2807,12 +2812,17 @@ function BreakendPanel(props) {
|
|
|
2807
2812
|
event.preventDefault();
|
|
2808
2813
|
var view = model.view;
|
|
2809
2814
|
|
|
2810
|
-
|
|
2811
|
-
|
|
2815
|
+
try {
|
|
2816
|
+
if (view) {
|
|
2817
|
+
var _view$navToLocString;
|
|
2812
2818
|
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2819
|
+
(_view$navToLocString = view.navToLocString) === null || _view$navToLocString === void 0 ? void 0 : _view$navToLocString.call(view, locString);
|
|
2820
|
+
} else {
|
|
2821
|
+
throw new Error('No view associated with this feature detail panel anymore');
|
|
2822
|
+
}
|
|
2823
|
+
} catch (e) {
|
|
2824
|
+
console.error(e);
|
|
2825
|
+
session.notify("".concat(e));
|
|
2816
2826
|
}
|
|
2817
2827
|
}
|
|
2818
2828
|
}, "LGV - ".concat(locString)));
|