jbrowse-plugin-mafviewer 1.2.1 → 1.2.2

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.2.1",
2
+ "version": "1.2.2",
3
3
  "license": "MIT",
4
4
  "name": "jbrowse-plugin-mafviewer",
5
5
  "keywords": [
@@ -43,10 +43,10 @@ const ColorLegend = observer(function ({
43
43
  ? samples.map((sample, idx) => (
44
44
  <text
45
45
  key={`${sample.id}-${idx}`}
46
- y={idx * rowHeight + rowHeight / 2}
47
46
  dominantBaseline="middle"
48
- x={2}
49
47
  fontSize={svgFontSize}
48
+ x={2}
49
+ y={idx * rowHeight + rowHeight / 2}
50
50
  >
51
51
  {sample.label}
52
52
  </text>
@@ -7,7 +7,7 @@ const RectBg = (props: {
7
7
  height: number
8
8
  color?: string
9
9
  }) => {
10
- const { color = 'rgb(255,255,255,0.8)' } = props
10
+ const { color = 'rgb(255,255,255,0.5)' } = props
11
11
  return <rect {...props} fill={color} />
12
12
  }
13
13
 
@@ -244,7 +244,7 @@ export default function stateModelFactory(
244
244
  return {
245
245
  ...s,
246
246
  notReady:
247
- !self.volatileSamples || !self.volatileTree || super.notReady,
247
+ (!self.volatileSamples && !self.volatileTree) || super.notReady,
248
248
  config: rendererConfig,
249
249
  samples,
250
250
  rowHeight,
@@ -260,16 +260,36 @@ export default function stateModelFactory(
260
260
  return [
261
261
  ...superTrackMenuItems(),
262
262
  {
263
- label: 'Set row height',
264
- onClick: () => {
265
- getSession(self).queueDialog(handleClose => [
266
- SetRowHeightDialog,
267
- {
268
- model: self,
269
- handleClose,
263
+ label: 'Set feature height',
264
+ type: 'subMenu',
265
+ subMenu: [
266
+ {
267
+ label: 'Normal',
268
+ onClick: () => {
269
+ self.setRowHeight(15)
270
+ self.setRowProportion(0.8)
270
271
  },
271
- ])
272
- },
272
+ },
273
+ {
274
+ label: 'Compact',
275
+ onClick: () => {
276
+ self.setRowHeight(8)
277
+ self.setRowProportion(0.9)
278
+ },
279
+ },
280
+ {
281
+ label: 'Manually set height',
282
+ onClick: () => {
283
+ getSession(self).queueDialog(handleClose => [
284
+ SetRowHeightDialog,
285
+ {
286
+ model: self,
287
+ handleClose,
288
+ },
289
+ ])
290
+ },
291
+ },
292
+ ],
273
293
  },
274
294
  {
275
295
  label: 'Show all letters',