@jbrowse/plugin-dotplot-view 3.0.5 → 3.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/dist/DotplotView/components/DotplotView.js +1 -1
- package/dist/DotplotView/components/PanButtons.js +1 -1
- package/dist/DotplotView/components/WarningDialog.js +2 -2
- package/dist/DotplotView/model.d.ts +2 -0
- package/dist/DotplotView/model.js +7 -5
- package/dist/LaunchDotplotView.js +2 -2
- package/esm/DotplotView/components/DotplotView.js +1 -1
- package/esm/DotplotView/components/PanButtons.js +1 -1
- package/esm/DotplotView/components/WarningDialog.js +2 -2
- package/esm/DotplotView/model.d.ts +2 -0
- package/esm/DotplotView/model.js +7 -5
- package/esm/LaunchDotplotView.js +2 -2
- package/package.json +4 -4
|
@@ -241,7 +241,7 @@ const DotplotViewInternal = (0, mobx_react_1.observer)(function ({ model, }) {
|
|
|
241
241
|
top: mouseupClient[1] + 50,
|
|
242
242
|
left: mouseupClient[0] + 50,
|
|
243
243
|
}
|
|
244
|
-
: undefined, style: { zIndex:
|
|
244
|
+
: undefined, style: { zIndex: 800 }, menuItems: [
|
|
245
245
|
{
|
|
246
246
|
label: 'Zoom in',
|
|
247
247
|
onClick: () => {
|
|
@@ -15,8 +15,8 @@ const useStyles = (0, mui_1.makeStyles)()({
|
|
|
15
15
|
});
|
|
16
16
|
function getTrackWarnings({ trackWarnings, }) {
|
|
17
17
|
const rows = [];
|
|
18
|
-
for (
|
|
19
|
-
const track =
|
|
18
|
+
for (const [i, trackWarning] of trackWarnings.entries()) {
|
|
19
|
+
const track = trackWarning;
|
|
20
20
|
const name = (0, configuration_1.getConf)(track, 'name');
|
|
21
21
|
const d = track.displays[0];
|
|
22
22
|
for (let j = 0; j < d.warnings.length; j++) {
|
|
@@ -166,6 +166,7 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
166
166
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
167
167
|
configuration: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
168
168
|
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
169
|
+
pinned: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
169
170
|
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
170
171
|
}, {
|
|
171
172
|
readonly rpcSessionId: any;
|
|
@@ -182,6 +183,7 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
182
183
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
183
184
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
|
|
184
185
|
} & {
|
|
186
|
+
setPinned(flag: boolean): void;
|
|
185
187
|
setMinimized(flag: boolean): void;
|
|
186
188
|
showDisplay(displayId: string, initialSnapshot?: {}): void;
|
|
187
189
|
hideDisplay(displayId: string): number;
|
|
@@ -246,11 +246,13 @@ function stateModelFactory(pm) {
|
|
|
246
246
|
hideTrack(trackId) {
|
|
247
247
|
const schema = pm.pluggableConfigSchemaType('track');
|
|
248
248
|
const conf = (0, mobx_state_tree_1.resolveIdentifier)(schema, (0, mobx_state_tree_1.getRoot)(self), trackId);
|
|
249
|
-
const
|
|
249
|
+
const tracks = self.tracks.filter(t => t.configuration === conf);
|
|
250
250
|
(0, mobx_1.transaction)(() => {
|
|
251
|
-
|
|
251
|
+
for (const track of tracks) {
|
|
252
|
+
self.tracks.remove(track);
|
|
253
|
+
}
|
|
252
254
|
});
|
|
253
|
-
return
|
|
255
|
+
return tracks.length;
|
|
254
256
|
},
|
|
255
257
|
toggleTrack(trackId) {
|
|
256
258
|
const hiddenCount = this.hideTrack(trackId);
|
|
@@ -387,11 +389,11 @@ function stateModelFactory(pm) {
|
|
|
387
389
|
}
|
|
388
390
|
const views = [self.hview, self.vview];
|
|
389
391
|
(0, mobx_1.transaction)(() => {
|
|
390
|
-
self.assemblyNames.
|
|
392
|
+
for (const [index, name] of self.assemblyNames.entries()) {
|
|
391
393
|
const assembly = session.assemblyManager.get(name);
|
|
392
394
|
const view = views[index];
|
|
393
395
|
view.setDisplayedRegions((assembly === null || assembly === void 0 ? void 0 : assembly.regions) || []);
|
|
394
|
-
}
|
|
396
|
+
}
|
|
395
397
|
self.showAllRegions();
|
|
396
398
|
});
|
|
397
399
|
}, { delay: 1000 }));
|
|
@@ -15,9 +15,9 @@ function LaunchDotplotView(pluginManager) {
|
|
|
15
15
|
model.setAssemblyNames(assemblyNames[0], assemblyNames[1]);
|
|
16
16
|
});
|
|
17
17
|
const idsNotFound = [];
|
|
18
|
-
|
|
18
|
+
for (const track of tracks) {
|
|
19
19
|
tryTrack(model, track, idsNotFound);
|
|
20
|
-
}
|
|
20
|
+
}
|
|
21
21
|
if (idsNotFound.length) {
|
|
22
22
|
throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
|
|
23
23
|
}
|
|
@@ -203,7 +203,7 @@ const DotplotViewInternal = observer(function ({ model, }) {
|
|
|
203
203
|
top: mouseupClient[1] + 50,
|
|
204
204
|
left: mouseupClient[0] + 50,
|
|
205
205
|
}
|
|
206
|
-
: undefined, style: { zIndex:
|
|
206
|
+
: undefined, style: { zIndex: 800 }, menuItems: [
|
|
207
207
|
{
|
|
208
208
|
label: 'Zoom in',
|
|
209
209
|
onClick: () => {
|
|
@@ -13,8 +13,8 @@ const useStyles = makeStyles()({
|
|
|
13
13
|
});
|
|
14
14
|
function getTrackWarnings({ trackWarnings, }) {
|
|
15
15
|
const rows = [];
|
|
16
|
-
for (
|
|
17
|
-
const track =
|
|
16
|
+
for (const [i, trackWarning] of trackWarnings.entries()) {
|
|
17
|
+
const track = trackWarning;
|
|
18
18
|
const name = getConf(track, 'name');
|
|
19
19
|
const d = track.displays[0];
|
|
20
20
|
for (let j = 0; j < d.warnings.length; j++) {
|
|
@@ -166,6 +166,7 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
166
166
|
type: import("mobx-state-tree").ISimpleType<string>;
|
|
167
167
|
configuration: import("@jbrowse/core/configuration").AnyConfigurationSchemaType;
|
|
168
168
|
minimized: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
169
|
+
pinned: import("mobx-state-tree").IType<boolean | undefined, boolean, boolean>;
|
|
169
170
|
displays: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IAnyType>;
|
|
170
171
|
}, {
|
|
171
172
|
readonly rpcSessionId: any;
|
|
@@ -182,6 +183,7 @@ export default function stateModelFactory(pm: PluginManager): import("mobx-state
|
|
|
182
183
|
} & import("mobx-state-tree/dist/internal").NonEmptyObject & any & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>);
|
|
183
184
|
} & import("mobx-state-tree").IStateTreeNode<import("@jbrowse/core/configuration").AnyConfigurationSchemaType>) | undefined;
|
|
184
185
|
} & {
|
|
186
|
+
setPinned(flag: boolean): void;
|
|
185
187
|
setMinimized(flag: boolean): void;
|
|
186
188
|
showDisplay(displayId: string, initialSnapshot?: {}): void;
|
|
187
189
|
hideDisplay(displayId: string): number;
|
package/esm/DotplotView/model.js
CHANGED
|
@@ -206,11 +206,13 @@ export default function stateModelFactory(pm) {
|
|
|
206
206
|
hideTrack(trackId) {
|
|
207
207
|
const schema = pm.pluggableConfigSchemaType('track');
|
|
208
208
|
const conf = resolveIdentifier(schema, getRoot(self), trackId);
|
|
209
|
-
const
|
|
209
|
+
const tracks = self.tracks.filter(t => t.configuration === conf);
|
|
210
210
|
transaction(() => {
|
|
211
|
-
|
|
211
|
+
for (const track of tracks) {
|
|
212
|
+
self.tracks.remove(track);
|
|
213
|
+
}
|
|
212
214
|
});
|
|
213
|
-
return
|
|
215
|
+
return tracks.length;
|
|
214
216
|
},
|
|
215
217
|
toggleTrack(trackId) {
|
|
216
218
|
const hiddenCount = this.hideTrack(trackId);
|
|
@@ -347,11 +349,11 @@ export default function stateModelFactory(pm) {
|
|
|
347
349
|
}
|
|
348
350
|
const views = [self.hview, self.vview];
|
|
349
351
|
transaction(() => {
|
|
350
|
-
self.assemblyNames.
|
|
352
|
+
for (const [index, name] of self.assemblyNames.entries()) {
|
|
351
353
|
const assembly = session.assemblyManager.get(name);
|
|
352
354
|
const view = views[index];
|
|
353
355
|
view.setDisplayedRegions((assembly === null || assembly === void 0 ? void 0 : assembly.regions) || []);
|
|
354
|
-
}
|
|
356
|
+
}
|
|
355
357
|
self.showAllRegions();
|
|
356
358
|
});
|
|
357
359
|
}, { delay: 1000 }));
|
package/esm/LaunchDotplotView.js
CHANGED
|
@@ -12,9 +12,9 @@ export default function LaunchDotplotView(pluginManager) {
|
|
|
12
12
|
model.setAssemblyNames(assemblyNames[0], assemblyNames[1]);
|
|
13
13
|
});
|
|
14
14
|
const idsNotFound = [];
|
|
15
|
-
|
|
15
|
+
for (const track of tracks) {
|
|
16
16
|
tryTrack(model, track, idsNotFound);
|
|
17
|
-
}
|
|
17
|
+
}
|
|
18
18
|
if (idsNotFound.length) {
|
|
19
19
|
throw new Error(`Could not resolve identifiers: ${idsNotFound.join(',')}`);
|
|
20
20
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-dotplot-view",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "JBrowse 2 dotplot view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^3.0
|
|
40
|
-
"@jbrowse/plugin-alignments": "^3.0
|
|
39
|
+
"@jbrowse/core": "^3.2.0",
|
|
40
|
+
"@jbrowse/plugin-alignments": "^3.2.0",
|
|
41
41
|
"@mui/icons-material": "^6.0.0",
|
|
42
42
|
"@mui/material": "^6.0.0",
|
|
43
43
|
"@mui/x-data-grid": "^7.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
|
|
63
63
|
}
|