@jbrowse/plugin-dotplot-view 2.8.0 → 2.10.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/DotplotView/components/Axes.js +4 -11
- package/dist/DotplotView/components/DotplotTooltip.d.ts +3 -4
- package/dist/DotplotView/components/DotplotTooltip.js +38 -81
- package/dist/DotplotView/components/DotplotView.js +19 -15
- package/dist/DotplotView/components/ImportForm/index.js +1 -1
- package/dist/DotplotView/model.d.ts +66 -78
- package/dist/DotplotView/model.js +13 -8
- package/dist/DotplotView/svgcomponents/SVGDotplotView.js +5 -3
- package/esm/DotplotView/components/Axes.js +4 -11
- package/esm/DotplotView/components/DotplotTooltip.d.ts +3 -4
- package/esm/DotplotView/components/DotplotTooltip.js +37 -60
- package/esm/DotplotView/components/DotplotView.js +19 -15
- package/esm/DotplotView/components/ImportForm/index.js +1 -1
- package/esm/DotplotView/model.d.ts +66 -78
- package/esm/DotplotView/model.js +14 -9
- package/esm/DotplotView/svgcomponents/SVGDotplotView.js +5 -3
- package/package.json +4 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { renderToStaticMarkup } from 'react-dom/server';
|
|
3
2
|
import { when } from 'mobx';
|
|
4
|
-
import { getSession } from '@jbrowse/core/util';
|
|
3
|
+
import { getSession, renderToStaticMarkup } from '@jbrowse/core/util';
|
|
5
4
|
import { ThemeProvider } from '@mui/material';
|
|
6
5
|
import { createJBrowseTheme } from '@jbrowse/core/ui';
|
|
6
|
+
import { getRoot } from 'mobx-state-tree';
|
|
7
7
|
import { GridRaw } from '../components/Grid';
|
|
8
8
|
import { HorizontalAxisRaw, VerticalAxisRaw } from '../components/Axes';
|
|
9
9
|
import SVGBackground from './SVGBackground';
|
|
@@ -12,6 +12,8 @@ export async function renderToSvg(model, opts) {
|
|
|
12
12
|
var _a;
|
|
13
13
|
await when(() => model.initialized);
|
|
14
14
|
const { themeName = 'default', Wrapper = ({ children }) => React.createElement(React.Fragment, null, children) } = opts;
|
|
15
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
|
+
const { createRootFn } = getRoot(model);
|
|
15
17
|
const session = getSession(model);
|
|
16
18
|
const theme = (_a = session.allThemes) === null || _a === void 0 ? void 0 : _a.call(session)[themeName];
|
|
17
19
|
const { width, borderX, viewWidth, viewHeight, tracks, height } = model;
|
|
@@ -35,5 +37,5 @@ export async function renderToSvg(model, opts) {
|
|
|
35
37
|
React.createElement("rect", { x: 0, y: 0, width: viewWidth, height: viewHeight }))),
|
|
36
38
|
React.createElement("g", { clipPath: "url(#clip-ruler)" }, displayResults.map(({ result }, i) => (React.createElement("g", { key: i }, result))))),
|
|
37
39
|
React.createElement("g", { transform: `translate(${borderX} ${viewHeight})` },
|
|
38
|
-
React.createElement(HorizontalAxisRaw, { model: model }))))));
|
|
40
|
+
React.createElement(HorizontalAxisRaw, { model: model }))))), createRootFn);
|
|
39
41
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-dotplot-view",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"description": "JBrowse 2 dotplot view",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -36,15 +36,14 @@
|
|
|
36
36
|
"clean": "rimraf dist esm *.tsbuildinfo"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"@floating-ui/react": "^0.26.3",
|
|
39
40
|
"@mui/icons-material": "^5.0.1",
|
|
40
41
|
"@mui/x-data-grid": "^6.0.1",
|
|
41
|
-
"@popperjs/core": "^2.11.0",
|
|
42
42
|
"@types/file-saver": "^2.0.1",
|
|
43
43
|
"@types/normalize-wheel": "^1.0.0",
|
|
44
44
|
"clone": "^2.1.2",
|
|
45
45
|
"file-saver": "^2.0.0",
|
|
46
|
-
"normalize-wheel": "^1.0.1"
|
|
47
|
-
"react-popper": "^2.0.0"
|
|
46
|
+
"normalize-wheel": "^1.0.1"
|
|
48
47
|
},
|
|
49
48
|
"peerDependencies": {
|
|
50
49
|
"@jbrowse/core": "^2.0.0",
|
|
@@ -64,5 +63,5 @@
|
|
|
64
63
|
"publishConfig": {
|
|
65
64
|
"access": "public"
|
|
66
65
|
},
|
|
67
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "223d8bfb68fd1bacaf22852639ad5920f1b7f43b"
|
|
68
67
|
}
|