@jbrowse/plugin-lollipop 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.
@@ -36,8 +36,8 @@ class FloatingLayout {
36
36
  const sorted = this.items.sort((a, b) => a.data.score - b.data.score);
37
37
  let maxBottom = 0;
38
38
  const layoutEntries = new Array(sorted.length);
39
- for (let i = 0; i < sorted.length; i += 1) {
40
- const currentItem = sorted[i];
39
+ for (const [i, element] of sorted.entries()) {
40
+ const currentItem = element;
41
41
  const { anchorLocation, width, height } = currentItem;
42
42
  const start = anchorLocation - width / 2;
43
43
  const end = start + width;
@@ -33,8 +33,8 @@ export class FloatingLayout {
33
33
  const sorted = this.items.sort((a, b) => a.data.score - b.data.score);
34
34
  let maxBottom = 0;
35
35
  const layoutEntries = new Array(sorted.length);
36
- for (let i = 0; i < sorted.length; i += 1) {
37
- const currentItem = sorted[i];
36
+ for (const [i, element] of sorted.entries()) {
37
+ const currentItem = element;
38
38
  const { anchorLocation, width, height } = currentItem;
39
39
  const start = anchorLocation - width / 2;
40
40
  const end = start + width;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-lollipop",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "JBrowse 2 plugin for lollipops",
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.1.0",
40
- "@jbrowse/plugin-linear-genome-view": "^3.1.0",
39
+ "@jbrowse/core": "^3.2.0",
40
+ "@jbrowse/plugin-linear-genome-view": "^3.2.0",
41
41
  "@mui/material": "^6.0.0",
42
42
  "mobx": "^6.0.0",
43
43
  "mobx-react": "^9.0.0",
@@ -52,5 +52,5 @@
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
- "gitHead": "91492049ddea0aed90eb24d3c066c2d9f5a6b189"
55
+ "gitHead": "c750e3f56706a490c19ba75abd807fec5e38aebf"
56
56
  }