@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 CHANGED
@@ -8,7 +8,7 @@ You don't need to have JBrowse 2 installed to use this tool. The tool can
8
8
  generate images using files on your hard drive or from remote files. So, all you
9
9
  need to run this tool is
10
10
 
11
- - NodeJS v12+
11
+ - NodeJS v16+
12
12
 
13
13
  ## Screenshot
14
14
 
@@ -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)(readData(opts));
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;
@@ -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(readData(opts));
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.9.0",
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.9.0",
32
- "@jbrowse/react-linear-genome-view": "^2.9.0",
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": "a50b6f67cf8c8f3c65a7b8cd858de2fcca1f2909"
46
+ "gitHead": "442b5f87efddfdf4ccf520b4d9dd01ddd370cb07"
47
47
  }