@jbrowse/img 2.18.0 → 3.0.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/dist/renderRegion.js +0 -2
- package/dist/setupEnv.js +17 -7
- package/esm/renderRegion.js +0 -2
- package/package.json +8 -8
package/dist/renderRegion.js
CHANGED
|
@@ -9,7 +9,6 @@ const fs_1 = __importDefault(require("fs"));
|
|
|
9
9
|
const path_1 = __importDefault(require("path"));
|
|
10
10
|
const plugin_linear_genome_view_1 = require("@jbrowse/plugin-linear-genome-view");
|
|
11
11
|
const react_linear_genome_view_1 = require("@jbrowse/react-linear-genome-view");
|
|
12
|
-
const client_1 = require("react-dom/client");
|
|
13
12
|
const util_1 = require("./util");
|
|
14
13
|
function read(file) {
|
|
15
14
|
let res;
|
|
@@ -359,7 +358,6 @@ function process(trackEntry, view, extra = c => c) {
|
|
|
359
358
|
async function renderRegion(opts) {
|
|
360
359
|
const model = (0, react_linear_genome_view_1.createViewState)({
|
|
361
360
|
...readData(opts),
|
|
362
|
-
createRootFn: client_1.createRoot,
|
|
363
361
|
});
|
|
364
362
|
const { loc, width = 1500, trackList = [], session: sessionParam, defaultSession, } = opts;
|
|
365
363
|
const { session } = model;
|
package/dist/setupEnv.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.default = setupEnv;
|
|
27
37
|
const util_1 = require("util");
|
package/esm/renderRegion.js
CHANGED
|
@@ -2,7 +2,6 @@ import fs from 'fs';
|
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { renderToSvg } from '@jbrowse/plugin-linear-genome-view';
|
|
4
4
|
import { createViewState } from '@jbrowse/react-linear-genome-view';
|
|
5
|
-
import { createRoot } from 'react-dom/client';
|
|
6
5
|
import { booleanize } from './util';
|
|
7
6
|
function read(file) {
|
|
8
7
|
let res;
|
|
@@ -352,7 +351,6 @@ function process(trackEntry, view, extra = c => c) {
|
|
|
352
351
|
export async function renderRegion(opts) {
|
|
353
352
|
const model = createViewState({
|
|
354
353
|
...readData(opts),
|
|
355
|
-
createRootFn: createRoot,
|
|
356
354
|
});
|
|
357
355
|
const { loc, width = 1500, trackList = [], session: sessionParam, defaultSession, } = opts;
|
|
358
356
|
const { session } = model;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/img",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"author": "JBrowse Team",
|
|
@@ -27,19 +27,19 @@
|
|
|
27
27
|
"@babel/runtime": "^7.17.9",
|
|
28
28
|
"@emotion/cache": "^11.7.1",
|
|
29
29
|
"@emotion/react": "^11.9.0",
|
|
30
|
-
"@jbrowse/plugin-linear-genome-view": "^
|
|
31
|
-
"@jbrowse/react-linear-genome-view": "^
|
|
32
|
-
"canvas": "^
|
|
33
|
-
"jsdom": "^
|
|
30
|
+
"@jbrowse/plugin-linear-genome-view": "^3.0.1",
|
|
31
|
+
"@jbrowse/react-linear-genome-view": "^3.0.1",
|
|
32
|
+
"canvas": "^3.0.0",
|
|
33
|
+
"jsdom": "^26.0.0",
|
|
34
34
|
"mobx": "^6.6.0",
|
|
35
35
|
"node-fetch": "^2.6.7",
|
|
36
|
-
"react": "^
|
|
37
|
-
"react-dom": "^
|
|
36
|
+
"react": "^19.0.0",
|
|
37
|
+
"react-dom": "^19.0.0",
|
|
38
38
|
"tmp": "^0.2.1",
|
|
39
39
|
"yargs": "^17.3.0"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "aa2f1d1a89d2361c7fd1a93fe29506fa4554f5cc"
|
|
45
45
|
}
|