@vitessce/neuroglancer 3.5.12 → 3.6.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/{index-6a36af55.js → index-DVtsoLdc.js} +8111 -7812
- package/dist/{index-2198a785.js → index-DmHg0YSX.js} +10712 -7860
- package/dist/index.js +1 -3
- package/dist-tsc/Neuroglancer.js +3 -3
- package/dist-tsc/NeuroglancerSubscriber.d.ts.map +1 -1
- package/dist-tsc/NeuroglancerSubscriber.js +1 -0
- package/dist-tsc/styles.d.ts +10 -2
- package/dist-tsc/styles.d.ts.map +1 -1
- package/dist-tsc/styles.js +1982 -1983
- package/package.json +10 -9
- package/src/Neuroglancer.js +3 -3
- package/src/NeuroglancerSubscriber.js +1 -2
- package/src/styles.js +1997 -1985
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/neuroglancer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -17,17 +17,18 @@
|
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@janelia-flyem/react-neuroglancer": "^2.5.0",
|
|
20
|
-
"@
|
|
21
|
-
"@vitessce/
|
|
22
|
-
"@vitessce/constants-internal": "3.
|
|
23
|
-
"@vitessce/vit-s": "3.
|
|
20
|
+
"@vitessce/neuroglancer-workers": "3.6.0",
|
|
21
|
+
"@vitessce/styles": "3.6.0",
|
|
22
|
+
"@vitessce/constants-internal": "3.6.0",
|
|
23
|
+
"@vitessce/vit-s": "3.6.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@testing-library/jest-dom": "^
|
|
27
|
-
"@testing-library/react": "^
|
|
26
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
27
|
+
"@testing-library/react": "^16.3.0",
|
|
28
28
|
"react": "^18.0.0",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
29
|
+
"react-dom": "^18.0.0",
|
|
30
|
+
"vite": "^6.3.5",
|
|
31
|
+
"vitest": "^3.1.4"
|
|
31
32
|
},
|
|
32
33
|
"scripts": {
|
|
33
34
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.js",
|
package/src/Neuroglancer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useCallback, useMemo, Suspense } from 'react';
|
|
2
2
|
import { ChunkWorker } from '@vitessce/neuroglancer-workers';
|
|
3
|
-
import { useStyles,
|
|
3
|
+
import { useStyles, NeuroglancerGlobalStyles } from './styles.js';
|
|
4
4
|
|
|
5
5
|
// We lazy load the Neuroglancer component,
|
|
6
6
|
// because the non-dynamic import causes problems for Vitest,
|
|
@@ -20,7 +20,7 @@ export function Neuroglancer(props) {
|
|
|
20
20
|
viewerState,
|
|
21
21
|
onViewerStateChanged,
|
|
22
22
|
} = props;
|
|
23
|
-
const classes = useStyles();
|
|
23
|
+
const { classes } = useStyles();
|
|
24
24
|
const bundleRoot = useMemo(() => createWorker(), []);
|
|
25
25
|
|
|
26
26
|
const handleStateChanged = useCallback((newState) => {
|
|
@@ -33,7 +33,7 @@ export function Neuroglancer(props) {
|
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
35
|
<>
|
|
36
|
-
<
|
|
36
|
+
<NeuroglancerGlobalStyles classes={classes} />
|
|
37
37
|
<div className={classes.neuroglancerWrapper}>
|
|
38
38
|
<Suspense fallback={<div>Loading...</div>}>
|
|
39
39
|
<LazyReactNeuroglancer
|