@jbrowse/core 2.1.0 → 2.1.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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "JBrowse 2 core libraries used by plugins",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"access": "public",
|
|
74
74
|
"directory": "dist"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "449b17325c9a4a97181f7ddddf48e80219f03b8d"
|
|
77
77
|
}
|
|
@@ -95,12 +95,12 @@ function createBaseTrackModel(pluginManager, trackType, baseTrackConfig) {
|
|
|
95
95
|
hideDisplay(displayId) {
|
|
96
96
|
const schema = pluginManager.pluggableConfigSchemaType('display');
|
|
97
97
|
const conf = (0, mobx_state_tree_1.resolveIdentifier)(schema, (0, mobx_state_tree_1.getRoot)(self), displayId);
|
|
98
|
-
const t = self.displays.filter(d => d.
|
|
98
|
+
const t = self.displays.filter(d => d.configuration === conf);
|
|
99
99
|
(0, mobx_1.transaction)(() => t.forEach(d => self.displays.remove(d)));
|
|
100
100
|
return t.length;
|
|
101
101
|
},
|
|
102
102
|
replaceDisplay(oldId, newId, initialSnapshot = {}) {
|
|
103
|
-
const idx = self.displays.findIndex(d => d.
|
|
103
|
+
const idx = self.displays.findIndex(d => d.configuration.displayId === oldId);
|
|
104
104
|
if (idx === -1) {
|
|
105
105
|
throw new Error(`could not find display id ${oldId} to replace`);
|
|
106
106
|
}
|