@jbrowse/plugin-grid-bookmark 3.1.0 → 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.
@@ -97,9 +97,9 @@ function f(_pluginManager) {
97
97
  bookmark.correspondingObj.setHighlight(color);
98
98
  },
99
99
  updateBulkBookmarkHighlights(color) {
100
- self.selectedBookmarks.forEach(bookmark => {
100
+ for (const bookmark of self.selectedBookmarks) {
101
101
  this.updateBookmarkHighlight(bookmark, color);
102
- });
102
+ }
103
103
  },
104
104
  setSelectedBookmarks(bookmarks) {
105
105
  self.selectedBookmarks = bookmarks;
@@ -108,26 +108,26 @@ function f(_pluginManager) {
108
108
  self.bookmarks = (0, mobx_state_tree_1.cast)(regions);
109
109
  },
110
110
  setBookmarkHighlightsVisible(arg) {
111
+ var _a, _b;
111
112
  const { views } = (0, util_1.getSession)(self);
112
- views.forEach(view => {
113
- var _a, _b;
113
+ for (const view of views) {
114
114
  (_a = view.setBookmarkHighlightsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
115
115
  (_b = view.views) === null || _b === void 0 ? void 0 : _b.map(view => {
116
116
  var _a;
117
117
  (_a = view.setBookmarkHighlightsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
118
118
  });
119
- });
119
+ }
120
120
  },
121
121
  setBookmarkLabelsVisible(arg) {
122
+ var _a, _b;
122
123
  const { views } = (0, util_1.getSession)(self);
123
- views.forEach(view => {
124
- var _a, _b;
124
+ for (const view of views) {
125
125
  (_a = view.setBookmarkLabelsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
126
126
  (_b = view.views) === null || _b === void 0 ? void 0 : _b.map(view => {
127
127
  var _a;
128
128
  (_a = view.setBookmarkHighlightsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
129
129
  });
130
- });
130
+ }
131
131
  },
132
132
  }))
133
133
  .actions(self => ({
@@ -68,7 +68,7 @@ function downloadBookmarkFile(fileFormat, model) {
68
68
  if (fileFormat === 'BED') {
69
69
  const fileHeader = '';
70
70
  const fileContents = {};
71
- bookmarksToDownload.forEach(bookmark => {
71
+ for (const bookmark of bookmarksToDownload) {
72
72
  const { label } = bookmark;
73
73
  const labelVal = label === '' ? '.' : label;
74
74
  const line = `${bookmark.refName}\t${bookmark.start}\t${bookmark.end}\t${labelVal}\n`;
@@ -78,7 +78,7 @@ function downloadBookmarkFile(fileFormat, model) {
78
78
  else {
79
79
  fileContents[bookmark.assemblyName] = [line];
80
80
  }
81
- });
81
+ }
82
82
  for (const assembly in fileContents) {
83
83
  const fileContent = fileContents[assembly].reduce((a, b) => a + b, fileHeader);
84
84
  const blob = new Blob([fileContent || ''], {
@@ -94,9 +94,9 @@ export default function f(_pluginManager) {
94
94
  bookmark.correspondingObj.setHighlight(color);
95
95
  },
96
96
  updateBulkBookmarkHighlights(color) {
97
- self.selectedBookmarks.forEach(bookmark => {
97
+ for (const bookmark of self.selectedBookmarks) {
98
98
  this.updateBookmarkHighlight(bookmark, color);
99
- });
99
+ }
100
100
  },
101
101
  setSelectedBookmarks(bookmarks) {
102
102
  self.selectedBookmarks = bookmarks;
@@ -105,26 +105,26 @@ export default function f(_pluginManager) {
105
105
  self.bookmarks = cast(regions);
106
106
  },
107
107
  setBookmarkHighlightsVisible(arg) {
108
+ var _a, _b;
108
109
  const { views } = getSession(self);
109
- views.forEach(view => {
110
- var _a, _b;
110
+ for (const view of views) {
111
111
  (_a = view.setBookmarkHighlightsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
112
112
  (_b = view.views) === null || _b === void 0 ? void 0 : _b.map(view => {
113
113
  var _a;
114
114
  (_a = view.setBookmarkHighlightsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
115
115
  });
116
- });
116
+ }
117
117
  },
118
118
  setBookmarkLabelsVisible(arg) {
119
+ var _a, _b;
119
120
  const { views } = getSession(self);
120
- views.forEach(view => {
121
- var _a, _b;
121
+ for (const view of views) {
122
122
  (_a = view.setBookmarkLabelsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
123
123
  (_b = view.views) === null || _b === void 0 ? void 0 : _b.map(view => {
124
124
  var _a;
125
125
  (_a = view.setBookmarkHighlightsVisible) === null || _a === void 0 ? void 0 : _a.call(view, arg);
126
126
  });
127
- });
127
+ }
128
128
  },
129
129
  }))
130
130
  .actions(self => ({
@@ -28,7 +28,7 @@ export function downloadBookmarkFile(fileFormat, model) {
28
28
  if (fileFormat === 'BED') {
29
29
  const fileHeader = '';
30
30
  const fileContents = {};
31
- bookmarksToDownload.forEach(bookmark => {
31
+ for (const bookmark of bookmarksToDownload) {
32
32
  const { label } = bookmark;
33
33
  const labelVal = label === '' ? '.' : label;
34
34
  const line = `${bookmark.refName}\t${bookmark.start}\t${bookmark.end}\t${labelVal}\n`;
@@ -38,7 +38,7 @@ export function downloadBookmarkFile(fileFormat, model) {
38
38
  else {
39
39
  fileContents[bookmark.assemblyName] = [line];
40
40
  }
41
- });
41
+ }
42
42
  for (const assembly in fileContents) {
43
43
  const fileContent = fileContents[assembly].reduce((a, b) => a + b, fileHeader);
44
44
  const blob = new Blob([fileContent || ''], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-grid-bookmark",
3
- "version": "3.1.0",
3
+ "version": "3.2.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.1.0",
40
- "@jbrowse/plugin-config": "^3.1.0",
41
- "@jbrowse/plugin-linear-genome-view": "^3.1.0",
39
+ "@jbrowse/core": "^3.2.0",
40
+ "@jbrowse/plugin-config": "^3.2.0",
41
+ "@jbrowse/plugin-linear-genome-view": "^3.2.0",
42
42
  "@mui/icons-material": "^6.0.0",
43
43
  "@mui/material": "^6.0.0",
44
44
  "@mui/x-data-grid": "^7.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": "91492049ddea0aed90eb24d3c066c2d9f5a6b189"
62
+ "gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
63
63
  }