jbrowse-plugin-graphgenomeviewer 7.1.13 → 7.2.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "jbrowse-plugin-graphgenomeviewer",
3
- "version": "7.1.13",
3
+ "version": "7.2.0",
4
4
  "description": "JBrowse 2 graph genome (pangenome) view: rGFA reference-anchored layouts, the Bandage force-directed engine, and haplotype lanes read from a gbz-base database",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "repository": {
@@ -107,12 +107,14 @@ export const withRenderingActions = withLoadActions
107
107
  { fireImmediately: true },
108
108
  ),
109
109
  )
110
- // A host fits the rows once, when it takes the pane over, which is
111
- // before the legend measures the room it needs above them
110
+ // A host fits the rows when it takes the pane over, which is before
111
+ // the legend measures the room it needs above them and before a split
112
+ // into panels changes how tall the drawing is
112
113
  addDisposer(
113
114
  self,
114
115
  reaction(
115
- () => self.fitPadTop,
116
+ () =>
117
+ `${self.fitPadTop} ${self.layoutBounds?.h} ${self.usableHeight}`,
116
118
  () => {
117
119
  if (self.viewportOwner === 'host') {
118
120
  self.zoomToFit()
@@ -1,3 +1,4 @@
1
+ import { fittedTranslateY } from '@jbrowse/bandage-core/pipeline'
1
2
  import PluginManager from '@jbrowse/core/PluginManager'
2
3
  import {
3
4
  ConfigurationReference,
@@ -770,6 +771,20 @@ test('a tube map on its own axis ties each reference box to its bp in the linear
770
771
  expect(pane.tubeMapConnectors).toEqual([])
771
772
  })
772
773
 
774
+ test('a hosted drawing whose height changes after the host took the pane is placed again', async () => {
775
+ const { pane } = await shownGraph({ paths: true })
776
+ await pane.switchLayout('tubemapref')
777
+ await wait(SETTLE_MS)
778
+ const expected = fittedTranslateY(
779
+ pane.layoutBounds!,
780
+ pane.usableHeight,
781
+ pane.scaleY,
782
+ pane.fitPads.top,
783
+ )
784
+ expect(pane.viewportOwner).toBe('host')
785
+ expect(pane.translateY).toBeCloseTo(expected, 6)
786
+ })
787
+
773
788
  test("a folded tube map draws the cut's reference as merged nodes, and the rest as ticks or routes", async () => {
774
789
  const { pane } = await shownGraph({ paths: true })
775
790
  const labels = () =>
@@ -38,6 +38,7 @@ export function configSchemaFactory() {
38
38
  color: {
39
39
  type: 'frozen',
40
40
  defaultValue: {},
41
+ plot: true,
41
42
  },
42
43
  /**
43
44
  * #slot
@@ -48,6 +49,7 @@ export function configSchemaFactory() {
48
49
  size: {
49
50
  type: 'frozen',
50
51
  defaultValue: { field: 'depth', value: 6 },
52
+ plot: true,
51
53
  },
52
54
  /**
53
55
  * #slot
@@ -61,6 +63,7 @@ export function configSchemaFactory() {
61
63
  layers: {
62
64
  type: 'frozen',
63
65
  defaultValue: {},
66
+ plot: true,
64
67
  },
65
68
  /**
66
69
  * #slot
@@ -71,6 +74,7 @@ export function configSchemaFactory() {
71
74
  facet: {
72
75
  type: 'frozen',
73
76
  defaultValue: {},
77
+ plot: true,
74
78
  },
75
79
  /**
76
80
  * #slot
@@ -79,6 +83,7 @@ export function configSchemaFactory() {
79
83
  rows: {
80
84
  type: 'frozen',
81
85
  defaultValue: {},
86
+ plot: true,
82
87
  },
83
88
  /**
84
89
  * #slot
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '7.1.13'
1
+ export const version = '7.2.0'