@jbrowse/plugin-linear-comparative-view 4.0.3 → 4.1.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.
Files changed (26) hide show
  1. package/esm/LGVSyntenyDisplay/model.d.ts +20 -1
  2. package/esm/LinearComparativeDisplay/stateModelFactory.d.ts +3 -0
  3. package/esm/LinearComparativeView/components/LinearComparativeRenderArea.js +3 -0
  4. package/esm/LinearComparativeView/components/OpacitySlider.js +7 -3
  5. package/esm/LinearComparativeView/components/useRangeSelect.js +3 -0
  6. package/esm/LinearComparativeView/model.d.ts +90 -57
  7. package/esm/LinearSyntenyDisplay/afterAttach.js +9 -0
  8. package/esm/LinearSyntenyDisplay/components/LinearSyntenyRendering.js +15 -15
  9. package/esm/LinearSyntenyDisplay/components/util.d.ts +1 -0
  10. package/esm/LinearSyntenyDisplay/components/util.js +23 -38
  11. package/esm/LinearSyntenyDisplay/drawCigarClickMap.d.ts +2 -0
  12. package/esm/LinearSyntenyDisplay/drawCigarClickMap.js +88 -0
  13. package/esm/LinearSyntenyDisplay/{drawMouseoverClickMap.js → drawMouseover.js} +9 -11
  14. package/esm/LinearSyntenyDisplay/drawRef.d.ts +2 -0
  15. package/esm/LinearSyntenyDisplay/drawRef.js +190 -0
  16. package/esm/LinearSyntenyDisplay/drawSynteny.d.ts +4 -6
  17. package/esm/LinearSyntenyDisplay/drawSynteny.js +4 -461
  18. package/esm/LinearSyntenyDisplay/drawSyntenyUtils.d.ts +58 -0
  19. package/esm/LinearSyntenyDisplay/drawSyntenyUtils.js +62 -0
  20. package/esm/LinearSyntenyDisplay/model.d.ts +47 -2
  21. package/esm/LinearSyntenyDisplay/model.js +50 -2
  22. package/esm/LinearSyntenyView/model.d.ts +111 -69
  23. package/esm/LinearSyntenyView/model.js +23 -24
  24. package/esm/SyntenyFeatureDetail/LinkToSyntenyView.js +4 -4
  25. package/package.json +8 -7
  26. /package/esm/LinearSyntenyDisplay/{drawMouseoverClickMap.d.ts → drawMouseover.d.ts} +0 -0
@@ -147,6 +147,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
147
147
  }> | null;
148
148
  readonly adapterConfig: any;
149
149
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
150
+ readonly isMinimized: boolean;
150
151
  readonly parentDisplay: any;
151
152
  readonly effectiveRpcDriverName: any;
152
153
  } & {
@@ -203,6 +204,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
203
204
  }> | null;
204
205
  readonly adapterConfig: any;
205
206
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
207
+ readonly isMinimized: boolean;
206
208
  readonly parentDisplay: any;
207
209
  readonly effectiveRpcDriverName: any;
208
210
  } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
@@ -256,6 +258,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
256
258
  }> | null;
257
259
  readonly adapterConfig: any;
258
260
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
261
+ readonly isMinimized: boolean;
259
262
  readonly parentDisplay: any;
260
263
  readonly effectiveRpcDriverName: any;
261
264
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
@@ -537,6 +540,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
537
540
  }> | null;
538
541
  readonly adapterConfig: any;
539
542
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
543
+ readonly isMinimized: boolean;
540
544
  readonly parentDisplay: any;
541
545
  readonly effectiveRpcDriverName: any;
542
546
  } & {
@@ -593,6 +597,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
593
597
  }> | null;
594
598
  readonly adapterConfig: any;
595
599
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
600
+ readonly isMinimized: boolean;
596
601
  readonly parentDisplay: any;
597
602
  readonly effectiveRpcDriverName: any;
598
603
  } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
@@ -646,6 +651,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
646
651
  }> | null;
647
652
  readonly adapterConfig: any;
648
653
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
654
+ readonly isMinimized: boolean;
649
655
  readonly parentDisplay: any;
650
656
  readonly effectiveRpcDriverName: any;
651
657
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
@@ -872,6 +878,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
872
878
  }> | null;
873
879
  readonly adapterConfig: any;
874
880
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
881
+ readonly isMinimized: boolean;
875
882
  readonly parentDisplay: any;
876
883
  readonly effectiveRpcDriverName: any;
877
884
  } & {
@@ -928,6 +935,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
928
935
  }> | null;
929
936
  readonly adapterConfig: any;
930
937
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
938
+ readonly isMinimized: boolean;
931
939
  readonly parentDisplay: any;
932
940
  readonly effectiveRpcDriverName: any;
933
941
  } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
@@ -981,6 +989,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
981
989
  }> | null;
982
990
  readonly adapterConfig: any;
983
991
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
992
+ readonly isMinimized: boolean;
984
993
  readonly parentDisplay: any;
985
994
  readonly effectiveRpcDriverName: any;
986
995
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
@@ -1113,10 +1122,18 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
1113
1122
  setHideLargeIndels(arg: boolean): void;
1114
1123
  } & {
1115
1124
  copyFeatureToClipboard(feature: Feature): Promise<void>;
1116
- readonly rendererConfig: any;
1125
+ readonly rendererConfig: {
1126
+ height: any;
1127
+ noSpacing: any;
1128
+ maxHeight: any;
1129
+ hideSmallIndels: any;
1130
+ hideMismatches: any;
1131
+ hideLargeIndels: any;
1132
+ };
1117
1133
  } & {
1118
1134
  readonly maxHeight: any;
1119
1135
  readonly featureHeightSetting: any;
1136
+ readonly noSpacingSetting: any;
1120
1137
  readonly featureUnderMouse: Feature | undefined;
1121
1138
  renderReady(): boolean;
1122
1139
  readonly filters: import("@jbrowse/core/pluggableElementTypes/renderers/util/serializableFilterChain").default;
@@ -1206,6 +1223,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
1206
1223
  }> | null;
1207
1224
  readonly adapterConfig: any;
1208
1225
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
1226
+ readonly isMinimized: boolean;
1209
1227
  readonly parentDisplay: any;
1210
1228
  readonly effectiveRpcDriverName: any;
1211
1229
  } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
@@ -1259,6 +1277,7 @@ declare function stateModelFactory(schema: AnyConfigurationSchemaType): import("
1259
1277
  }> | null;
1260
1278
  readonly adapterConfig: any;
1261
1279
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
1280
+ readonly isMinimized: boolean;
1262
1281
  readonly parentDisplay: any;
1263
1282
  readonly effectiveRpcDriverName: any;
1264
1283
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
@@ -55,6 +55,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
55
55
  }> | null;
56
56
  readonly adapterConfig: any;
57
57
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
58
+ readonly isMinimized: boolean;
58
59
  readonly parentDisplay: any;
59
60
  readonly effectiveRpcDriverName: any;
60
61
  } & {
@@ -111,6 +112,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
111
112
  }> | null;
112
113
  readonly adapterConfig: any;
113
114
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
115
+ readonly isMinimized: boolean;
114
116
  readonly parentDisplay: any;
115
117
  readonly effectiveRpcDriverName: any;
116
118
  } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
@@ -164,6 +166,7 @@ declare function stateModelFactory(configSchema: AnyConfigurationSchemaType): im
164
166
  }> | null;
165
167
  readonly adapterConfig: any;
166
168
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
169
+ readonly isMinimized: boolean;
167
170
  readonly parentDisplay: any;
168
171
  readonly effectiveRpcDriverName: any;
169
172
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
@@ -16,6 +16,9 @@ const useStyles = makeStyles()({
16
16
  resizeHandle: {
17
17
  height: 4,
18
18
  background: '#ccc',
19
+ '&:hover': {
20
+ background: '#aaa',
21
+ },
19
22
  },
20
23
  });
21
24
  function View({ view }) {
@@ -3,7 +3,7 @@ import { makeStyles } from '@jbrowse/core/util/tss-react';
3
3
  import { Box, Slider, Typography } from '@mui/material';
4
4
  import { observer } from 'mobx-react';
5
5
  import SliderTooltip from "./SliderTooltip.js";
6
- const useStyles = makeStyles()({
6
+ const useStyles = makeStyles()(theme => ({
7
7
  container: {
8
8
  display: 'flex',
9
9
  alignItems: 'center',
@@ -11,7 +11,11 @@ const useStyles = makeStyles()({
11
11
  marginRight: 16,
12
12
  minWidth: 150,
13
13
  },
14
- });
14
+ slider: {
15
+ width: 100,
16
+ color: theme.palette.text.secondary,
17
+ },
18
+ }));
15
19
  const OpacitySlider = observer(function OpacitySlider({ model, }) {
16
20
  const { classes } = useStyles();
17
21
  const { levels } = model;
@@ -33,7 +37,7 @@ const OpacitySlider = observer(function OpacitySlider({ model, }) {
33
37
  }
34
38
  }
35
39
  };
36
- return (_jsxs(Box, { className: classes.container, children: [_jsx(Typography, { variant: "body2", style: { marginRight: 8 }, children: "Opacity:" }), _jsx(Slider, { value: sliderValue, onChange: handleAlphaChange, min: 0, max: 1, step: 0.01, valueLabelDisplay: "auto", size: "small", style: { minWidth: 100 }, slots: {
40
+ return (_jsxs(Box, { className: classes.container, children: [_jsx(Typography, { variant: "body2", style: { marginRight: 8 }, children: "Opacity:" }), _jsx(Slider, { value: sliderValue, onChange: handleAlphaChange, min: 0, max: 1, step: 0.01, valueLabelDisplay: "auto", size: "small", className: classes.slider, slots: {
37
41
  valueLabel: SliderTooltip,
38
42
  }, valueLabelFormat: (value) => sliderToAlpha(value).toFixed(3) })] }));
39
43
  });
@@ -72,6 +72,9 @@ export function useRangeSelect(ref, model) {
72
72
  setCurrentX(relativeX);
73
73
  }
74
74
  function mouseMove(event) {
75
+ if (anchorPosition) {
76
+ return;
77
+ }
75
78
  setGuideX(getRelativeX(event, ref.current));
76
79
  }
77
80
  function mouseOut() {