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/dist/LinearMafDisplay/components/ColorLegend.js +1 -1
- package/dist/LinearMafDisplay/components/ColorLegend.js.map +1 -1
- package/dist/LinearMafDisplay/components/RectBg.js +1 -1
- package/dist/LinearMafDisplay/stateModel.d.ts +10 -0
- package/dist/LinearMafDisplay/stateModel.js +30 -10
- package/dist/LinearMafDisplay/stateModel.js.map +1 -1
- package/dist/jbrowse-plugin-mafviewer.umd.production.min.js +7 -7
- package/dist/jbrowse-plugin-mafviewer.umd.production.min.js.map +2 -2
- package/package.json +1 -1
- package/src/LinearMafDisplay/components/ColorLegend.tsx +2 -2
- package/src/LinearMafDisplay/components/RectBg.tsx +1 -1
- package/src/LinearMafDisplay/stateModel.ts +30 -10
package/package.json
CHANGED
|
@@ -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>
|
|
@@ -244,7 +244,7 @@ export default function stateModelFactory(
|
|
|
244
244
|
return {
|
|
245
245
|
...s,
|
|
246
246
|
notReady:
|
|
247
|
-
!self.volatileSamples
|
|
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
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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',
|