@jbrowse/plugin-hic 4.0.2 → 4.0.4

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.
@@ -24,6 +24,9 @@ export function doAfterAttach(self) {
24
24
  }
25
25
  })();
26
26
  const performRender = async () => {
27
+ if (self.isMinimized) {
28
+ return;
29
+ }
27
30
  const view = getContainingView(self);
28
31
  const { bpPerPx, dynamicBlocks } = view;
29
32
  const regions = dynamicBlocks.contentBlocks;
@@ -79,6 +82,9 @@ export function doAfterAttach(self) {
79
82
  }
80
83
  };
81
84
  addDisposer(self, autorun(() => {
85
+ if (self.isMinimized) {
86
+ return;
87
+ }
82
88
  const view = getContainingView(self);
83
89
  if (!view.initialized) {
84
90
  return;
@@ -100,6 +106,9 @@ export function doAfterAttach(self) {
100
106
  name: 'LinearHicDisplayRender',
101
107
  }));
102
108
  addDisposer(self, autorun(() => {
109
+ if (self.isMinimized) {
110
+ return;
111
+ }
103
112
  const view = getContainingView(self);
104
113
  if (!view.initialized) {
105
114
  return;
@@ -68,6 +68,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
68
68
  }> | null;
69
69
  readonly adapterConfig: any;
70
70
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
71
+ readonly isMinimized: boolean;
71
72
  readonly parentDisplay: any;
72
73
  readonly effectiveRpcDriverName: any;
73
74
  } & {
@@ -124,6 +125,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
124
125
  }> | null;
125
126
  readonly adapterConfig: any;
126
127
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
128
+ readonly isMinimized: boolean;
127
129
  readonly parentDisplay: any;
128
130
  readonly effectiveRpcDriverName: any;
129
131
  } & import("@jbrowse/mobx-state-tree").IStateTreeNode<import("@jbrowse/mobx-state-tree").IModelType<{
@@ -177,6 +179,7 @@ export default function stateModelFactory(configSchema: AnyConfigurationSchemaTy
177
179
  }> | null;
178
180
  readonly adapterConfig: any;
179
181
  readonly parentTrack: import("@jbrowse/core/util").AbstractTrackModel;
182
+ readonly isMinimized: boolean;
180
183
  readonly parentDisplay: any;
181
184
  readonly effectiveRpcDriverName: any;
182
185
  }, import("@jbrowse/mobx-state-tree")._NotCustomized, import("@jbrowse/mobx-state-tree")._NotCustomized>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-hic",
3
- "version": "4.0.2",
3
+ "version": "4.0.4",
4
4
  "description": "JBrowse 2 hic adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -21,14 +21,14 @@
21
21
  ],
22
22
  "dependencies": {
23
23
  "@jbrowse/mobx-state-tree": "^5.5.0",
24
+ "@mui/x-charts-vendor": "^8.25.0",
24
25
  "generic-filehandle2": "^2.0.18",
25
- "@mui/x-charts-vendor": "^8.23.0",
26
26
  "hic-straw": "^2.1.4",
27
27
  "mobx": "^6.15.0",
28
28
  "mobx-react": "^9.2.1",
29
29
  "rxjs": "^7.8.2",
30
- "@jbrowse/plugin-linear-genome-view": "^4.0.2",
31
- "@jbrowse/core": "^4.0.2"
30
+ "@jbrowse/core": "^4.0.4",
31
+ "@jbrowse/plugin-linear-genome-view": "^4.0.4"
32
32
  },
33
33
  "peerDependencies": {
34
34
  "react": ">=18.0.0"