@jbrowse/plugin-breakpoint-split-view 2.6.2 → 2.6.3
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.
|
@@ -5,8 +5,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const react_1 = __importDefault(require("react"));
|
|
7
7
|
const material_1 = require("@mui/material");
|
|
8
|
+
const color_1 = __importDefault(require("color"));
|
|
8
9
|
function SVGBackground({ width, height, shift, }) {
|
|
9
10
|
const theme = (0, material_1.useTheme)();
|
|
10
|
-
return (react_1.default.createElement("rect", { width: width + shift * 2, height: height, fill: theme.palette.background.default }));
|
|
11
|
+
return (react_1.default.createElement("rect", { width: width + shift * 2, height: height, fill: (0, color_1.default)(theme.palette.background.default).hex() }));
|
|
11
12
|
}
|
|
12
13
|
exports.default = SVGBackground;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useTheme } from '@mui/material';
|
|
3
|
+
import Color from 'color';
|
|
3
4
|
export default function SVGBackground({ width, height, shift, }) {
|
|
4
5
|
const theme = useTheme();
|
|
5
|
-
return (React.createElement("rect", { width: width + shift * 2, height: height, fill: theme.palette.background.default }));
|
|
6
|
+
return (React.createElement("rect", { width: width + shift * 2, height: height, fill: Color(theme.palette.background.default).hex() }));
|
|
6
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-breakpoint-split-view",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "JBrowse 2 breakpoint detail split view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"@gmod/vcf": "^5.0.9",
|
|
40
40
|
"@mui/icons-material": "^5.0.1",
|
|
41
41
|
"@types/file-saver": "^2.0.1",
|
|
42
|
+
"color": "^3.1.3",
|
|
42
43
|
"file-saver": "^2.0.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
@@ -58,5 +59,5 @@
|
|
|
58
59
|
"publishConfig": {
|
|
59
60
|
"access": "public"
|
|
60
61
|
},
|
|
61
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "ed402c87efb0904858d602c363bd1757d5742129"
|
|
62
63
|
}
|