@jbrowse/img 2.9.0 → 2.10.1
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/README.md +1 -1
- package/dist/renderRegion.js +5 -1
- package/esm/renderRegion.js +5 -1
- package/package.json +4 -4
package/README.md
CHANGED
package/dist/renderRegion.js
CHANGED
|
@@ -12,6 +12,7 @@ const react_2 = require("@emotion/react");
|
|
|
12
12
|
const path_1 = __importDefault(require("path"));
|
|
13
13
|
const fs_1 = __importDefault(require("fs"));
|
|
14
14
|
const util_1 = require("./util");
|
|
15
|
+
const client_1 = require("react-dom/client");
|
|
15
16
|
function read(file) {
|
|
16
17
|
let res;
|
|
17
18
|
try {
|
|
@@ -343,7 +344,10 @@ function process(trackEntry, view, extra = c => c) {
|
|
|
343
344
|
});
|
|
344
345
|
}
|
|
345
346
|
async function renderRegion(opts) {
|
|
346
|
-
const model = (0, react_linear_genome_view_1.createViewState)(
|
|
347
|
+
const model = (0, react_linear_genome_view_1.createViewState)({
|
|
348
|
+
...readData(opts),
|
|
349
|
+
createRootFn: client_1.createRoot,
|
|
350
|
+
});
|
|
347
351
|
const { loc, width = 1500, trackList = [], session: sessionParam, defaultSession, } = opts;
|
|
348
352
|
const { session } = model;
|
|
349
353
|
const { view } = session;
|
package/esm/renderRegion.js
CHANGED
|
@@ -6,6 +6,7 @@ import { CacheProvider } from '@emotion/react';
|
|
|
6
6
|
import path from 'path';
|
|
7
7
|
import fs from 'fs';
|
|
8
8
|
import { booleanize } from './util';
|
|
9
|
+
import { createRoot } from 'react-dom/client';
|
|
9
10
|
function read(file) {
|
|
10
11
|
let res;
|
|
11
12
|
try {
|
|
@@ -336,7 +337,10 @@ function process(trackEntry, view, extra = c => c) {
|
|
|
336
337
|
});
|
|
337
338
|
}
|
|
338
339
|
export async function renderRegion(opts) {
|
|
339
|
-
const model = createViewState(
|
|
340
|
+
const model = createViewState({
|
|
341
|
+
...readData(opts),
|
|
342
|
+
createRootFn: createRoot,
|
|
343
|
+
});
|
|
340
344
|
const { loc, width = 1500, trackList = [], session: sessionParam, defaultSession, } = opts;
|
|
341
345
|
const { session } = model;
|
|
342
346
|
const { view } = session;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/img",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"author": "JBrowse Team",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@babel/runtime": "^7.17.9",
|
|
29
29
|
"@emotion/cache": "^11.7.1",
|
|
30
30
|
"@emotion/react": "^11.9.0",
|
|
31
|
-
"@jbrowse/plugin-linear-genome-view": "^2.
|
|
32
|
-
"@jbrowse/react-linear-genome-view": "^2.
|
|
31
|
+
"@jbrowse/plugin-linear-genome-view": "^2.10.1",
|
|
32
|
+
"@jbrowse/react-linear-genome-view": "^2.10.1",
|
|
33
33
|
"abortcontroller-polyfill": "^1.7.3",
|
|
34
34
|
"canvas": "^2.9.1",
|
|
35
35
|
"jsdom": "^23.0.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "442b5f87efddfdf4ccf520b4d9dd01ddd370cb07"
|
|
47
47
|
}
|