@jbrowse/plugin-grid-bookmark 3.6.4 → 3.7.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/index.js +23 -17
- package/esm/index.js +23 -17
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -138,23 +138,29 @@ class GridBookmarkPlugin extends Plugin_1.default {
|
|
|
138
138
|
},
|
|
139
139
|
};
|
|
140
140
|
})
|
|
141
|
-
.actions(self =>
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
141
|
+
.actions(self => {
|
|
142
|
+
const keydownListener = (e) => {
|
|
143
|
+
const activationSequence = (e.ctrlKey || e.metaKey) && e.shiftKey;
|
|
144
|
+
if (activationSequence && e.code === 'KeyD') {
|
|
145
|
+
e.preventDefault();
|
|
146
|
+
self.activateBookmarkWidget();
|
|
147
|
+
self.bookmarkCurrentRegion();
|
|
148
|
+
(0, util_1.getSession)(self).notify('Bookmark created.', 'success');
|
|
149
|
+
}
|
|
150
|
+
if (activationSequence && e.code === 'KeyM') {
|
|
151
|
+
e.preventDefault();
|
|
152
|
+
self.navigateNewestBookmark();
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
return {
|
|
156
|
+
afterCreate() {
|
|
157
|
+
document.addEventListener('keydown', keydownListener);
|
|
158
|
+
},
|
|
159
|
+
beforeDestroy() {
|
|
160
|
+
document.removeEventListener('keydown', keydownListener);
|
|
161
|
+
},
|
|
162
|
+
};
|
|
163
|
+
});
|
|
158
164
|
pluggableElement.stateModel = newStateModel;
|
|
159
165
|
}
|
|
160
166
|
return pluggableElement;
|
package/esm/index.js
CHANGED
|
@@ -133,23 +133,29 @@ export default class GridBookmarkPlugin extends Plugin {
|
|
|
133
133
|
},
|
|
134
134
|
};
|
|
135
135
|
})
|
|
136
|
-
.actions(self =>
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
.actions(self => {
|
|
137
|
+
const keydownListener = (e) => {
|
|
138
|
+
const activationSequence = (e.ctrlKey || e.metaKey) && e.shiftKey;
|
|
139
|
+
if (activationSequence && e.code === 'KeyD') {
|
|
140
|
+
e.preventDefault();
|
|
141
|
+
self.activateBookmarkWidget();
|
|
142
|
+
self.bookmarkCurrentRegion();
|
|
143
|
+
getSession(self).notify('Bookmark created.', 'success');
|
|
144
|
+
}
|
|
145
|
+
if (activationSequence && e.code === 'KeyM') {
|
|
146
|
+
e.preventDefault();
|
|
147
|
+
self.navigateNewestBookmark();
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
return {
|
|
151
|
+
afterCreate() {
|
|
152
|
+
document.addEventListener('keydown', keydownListener);
|
|
153
|
+
},
|
|
154
|
+
beforeDestroy() {
|
|
155
|
+
document.removeEventListener('keydown', keydownListener);
|
|
156
|
+
},
|
|
157
|
+
};
|
|
158
|
+
});
|
|
153
159
|
pluggableElement.stateModel = newStateModel;
|
|
154
160
|
}
|
|
155
161
|
return pluggableElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-grid-bookmark",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"description": "JBrowse 2 grid bookmark widget",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jbrowse/core": "^3.
|
|
40
|
-
"@jbrowse/plugin-config": "^3.
|
|
41
|
-
"@jbrowse/plugin-linear-genome-view": "^3.
|
|
39
|
+
"@jbrowse/core": "^3.7.0",
|
|
40
|
+
"@jbrowse/plugin-config": "^3.7.0",
|
|
41
|
+
"@jbrowse/plugin-linear-genome-view": "^3.7.0",
|
|
42
42
|
"@mui/icons-material": "^7.0.0",
|
|
43
43
|
"@mui/material": "^7.0.0",
|
|
44
44
|
"@mui/x-data-grid": "^8.0.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"distModule": "esm/index.js",
|
|
60
60
|
"srcModule": "src/index.ts",
|
|
61
61
|
"module": "esm/index.js",
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "85bdd0d58286b7adbfd408146b15847676317635"
|
|
63
63
|
}
|