@jbrowse/plugin-alignments 2.15.3 → 2.16.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.
@@ -1,4 +1,5 @@
1
1
  import { Feature } from '@jbrowse/core/util';
2
+ import type { Buffer } from 'buffer';
2
3
  export interface Mismatch {
3
4
  qual?: number;
4
5
  start: number;
@@ -97,7 +97,7 @@ function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, largeInse
97
97
  // make small exons more visible when zoomed far out
98
98
  const adjustPx = widthPx - (bpPerPx > 10 ? 1.5 : 0);
99
99
  ctx.clearRect(leftPx, topPx, adjustPx, heightPx);
100
- (0, util_2.fillRect)(ctx, Math.max(0, leftPx), topPx + heightPx / 2 - 1, adjustPx + (leftPx < 0 ? leftPx : 0), 2, canvasWidth, '#333');
100
+ (0, util_2.fillRect)(ctx, Math.max(0, leftPx), topPx + heightPx / 2 - 1, adjustPx + Math.min(leftPx, 0), 2, canvasWidth, '#333');
101
101
  }
102
102
  }
103
103
  }
@@ -1,4 +1,5 @@
1
1
  import { Feature } from '@jbrowse/core/util';
2
+ import type { Buffer } from 'buffer';
2
3
  export interface Mismatch {
3
4
  qual?: number;
4
5
  start: number;
@@ -94,7 +94,7 @@ export function renderMismatches({ ctx, feat, renderArgs, minSubfeatureWidth, la
94
94
  // make small exons more visible when zoomed far out
95
95
  const adjustPx = widthPx - (bpPerPx > 10 ? 1.5 : 0);
96
96
  ctx.clearRect(leftPx, topPx, adjustPx, heightPx);
97
- fillRect(ctx, Math.max(0, leftPx), topPx + heightPx / 2 - 1, adjustPx + (leftPx < 0 ? leftPx : 0), 2, canvasWidth, '#333');
97
+ fillRect(ctx, Math.max(0, leftPx), topPx + heightPx / 2 - 1, adjustPx + Math.min(leftPx, 0), 2, canvasWidth, '#333');
98
98
  }
99
99
  }
100
100
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jbrowse/plugin-alignments",
3
- "version": "2.15.3",
3
+ "version": "2.16.0",
4
4
  "description": "JBrowse 2 alignments adapters, tracks, etc.",
5
5
  "keywords": [
6
6
  "jbrowse",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@gmod/bam": "^2.0.0",
40
40
  "@gmod/cram": "^3.0.3",
41
- "@jbrowse/sv-core": "^2.15.3",
41
+ "@jbrowse/sv-core": "^2.16.0",
42
42
  "@mui/icons-material": "^6.0.0",
43
43
  "canvas2svg": "^1.0.16",
44
44
  "clone": "^2.1.2",
@@ -64,5 +64,5 @@
64
64
  "distModule": "esm/index.js",
65
65
  "srcModule": "src/index.ts",
66
66
  "module": "esm/index.js",
67
- "gitHead": "c0f82fe7b210622dd462e702641cc6da01109c6e"
67
+ "gitHead": "1e6d4fbc27ce684eed19e3c217f34bd2da24ab75"
68
68
  }