@vitessce/neuroglancer 3.9.0 → 3.9.2
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.
|
@@ -2,7 +2,7 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
import React__default from "react";
|
|
5
|
-
import { g as getDefaultExportFromCjs, c as commonjsGlobal, d as diffCameraState } from "./index-
|
|
5
|
+
import { g as getDefaultExportFromCjs, c as commonjsGlobal, d as diffCameraState } from "./index-C5ptEhQz.js";
|
|
6
6
|
var es6_object_assign = {};
|
|
7
7
|
var _global = { exports: {} };
|
|
8
8
|
var hasRequired_global;
|
|
@@ -10400,7 +10400,9 @@ const obsSegmentationsSpatialdataSchema = z.object({
|
|
|
10400
10400
|
const obsPointsSpatialdataSchema = z.object({
|
|
10401
10401
|
path: z.string().describe("The path to the point data."),
|
|
10402
10402
|
tablePath: z.string().optional().describe("The path to a table which annotates the points. If available but not specified, the spot identifiers may not be aligned with associated tabular data as expected."),
|
|
10403
|
-
coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.')
|
|
10403
|
+
coordinateSystem: z.string().optional().describe('The name of a coordinate transformation output used to transform the image. If not provided, the "global" coordinate system is assumed.'),
|
|
10404
|
+
featureIndexColumn: z.string().optional().describe("The name of the column in the table which contains the feature (e.g., gene) indices associated with each point (aligned with the table var.index dataframe column)."),
|
|
10405
|
+
mortonCodeColumn: z.string().optional().describe('The name of the column in the table which contains the Morton codes for each point, used for efficient spatial querying. If not provided, Vitessce will assume the default column name "morton_code_2d".')
|
|
10404
10406
|
});
|
|
10405
10407
|
z.object({
|
|
10406
10408
|
path: z.string(),
|
|
@@ -25396,21 +25398,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
|
|
|
25396
25398
|
Popper.placements = placements;
|
|
25397
25399
|
Popper.Defaults = Defaults;
|
|
25398
25400
|
function createChainedFunction(...funcs) {
|
|
25399
|
-
return funcs.reduce(
|
|
25400
|
-
|
|
25401
|
-
|
|
25402
|
-
|
|
25403
|
-
{
|
|
25404
|
-
if (typeof func !== "function") {
|
|
25405
|
-
console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
|
|
25401
|
+
return funcs.reduce(
|
|
25402
|
+
(acc, func) => {
|
|
25403
|
+
if (func == null) {
|
|
25404
|
+
return acc;
|
|
25406
25405
|
}
|
|
25406
|
+
return function chainedFunction(...args) {
|
|
25407
|
+
acc.apply(this, args);
|
|
25408
|
+
func.apply(this, args);
|
|
25409
|
+
};
|
|
25410
|
+
},
|
|
25411
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
25412
|
+
() => {
|
|
25407
25413
|
}
|
|
25408
|
-
|
|
25409
|
-
acc.apply(this, args);
|
|
25410
|
-
func.apply(this, args);
|
|
25411
|
-
};
|
|
25412
|
-
}, () => {
|
|
25413
|
-
});
|
|
25414
|
+
);
|
|
25414
25415
|
}
|
|
25415
25416
|
function setRef(ref, value) {
|
|
25416
25417
|
if (typeof ref === "function") {
|
|
@@ -25449,7 +25450,7 @@ function flipPlacement(placement, theme) {
|
|
|
25449
25450
|
}
|
|
25450
25451
|
}
|
|
25451
25452
|
function getAnchorEl(anchorEl) {
|
|
25452
|
-
return typeof anchorEl === "function" ? anchorEl() : anchorEl;
|
|
25453
|
+
return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
|
|
25453
25454
|
}
|
|
25454
25455
|
const useEnhancedEffect = typeof window !== "undefined" ? React$1.useLayoutEffect : React$1.useEffect;
|
|
25455
25456
|
const defaultPopperOptions = {};
|
|
@@ -25479,25 +25480,18 @@ React$1.forwardRef((props, ref) => {
|
|
|
25479
25480
|
}
|
|
25480
25481
|
if (popperRef.current) {
|
|
25481
25482
|
popperRef.current.destroy();
|
|
25482
|
-
handlePopperRefRef.current
|
|
25483
|
+
if (handlePopperRefRef.current) {
|
|
25484
|
+
setRef(handlePopperRefRef.current, null);
|
|
25485
|
+
}
|
|
25483
25486
|
}
|
|
25484
25487
|
const handlePopperUpdate = (data) => {
|
|
25485
25488
|
setPlacement(data.placement);
|
|
25486
25489
|
};
|
|
25487
|
-
const
|
|
25488
|
-
{
|
|
25489
|
-
|
|
25490
|
-
const box = resolvedAnchorEl.getBoundingClientRect();
|
|
25491
|
-
if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
|
|
25492
|
-
console.warn([
|
|
25493
|
-
"Material-UI: The `anchorEl` prop provided to the component is invalid.",
|
|
25494
|
-
"The anchor element should be part of the document layout.",
|
|
25495
|
-
"Make sure the element is present in the document or that it's not display none."
|
|
25496
|
-
].join("\n"));
|
|
25497
|
-
}
|
|
25498
|
-
}
|
|
25490
|
+
const anchorElement = getAnchorEl(anchorEl);
|
|
25491
|
+
if (!anchorElement) {
|
|
25492
|
+
return;
|
|
25499
25493
|
}
|
|
25500
|
-
const popper = new Popper(
|
|
25494
|
+
const popper = new Popper(anchorElement, tooltipRef.current, {
|
|
25501
25495
|
placement: rtlPlacement,
|
|
25502
25496
|
...popperOptions,
|
|
25503
25497
|
modifiers: {
|
|
@@ -25515,7 +25509,9 @@ React$1.forwardRef((props, ref) => {
|
|
|
25515
25509
|
onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
|
|
25516
25510
|
onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
|
|
25517
25511
|
});
|
|
25518
|
-
handlePopperRefRef.current
|
|
25512
|
+
if (handlePopperRefRef.current) {
|
|
25513
|
+
setRef(handlePopperRefRef.current, popper);
|
|
25514
|
+
}
|
|
25519
25515
|
}, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
|
|
25520
25516
|
const handleRef = React$1.useCallback((node2) => {
|
|
25521
25517
|
setRef(ownRef, node2);
|
|
@@ -25529,7 +25525,9 @@ React$1.forwardRef((props, ref) => {
|
|
|
25529
25525
|
return;
|
|
25530
25526
|
}
|
|
25531
25527
|
popperRef.current.destroy();
|
|
25532
|
-
handlePopperRefRef.current
|
|
25528
|
+
if (handlePopperRefRef.current) {
|
|
25529
|
+
setRef(handlePopperRefRef.current, null);
|
|
25530
|
+
}
|
|
25533
25531
|
};
|
|
25534
25532
|
const handleExited = () => {
|
|
25535
25533
|
setExited(true);
|
|
@@ -25560,7 +25558,7 @@ React$1.forwardRef((props, ref) => {
|
|
|
25560
25558
|
// Fix Popper.js display issue
|
|
25561
25559
|
top: 0,
|
|
25562
25560
|
left: 0,
|
|
25563
|
-
display: !open && keepMounted && !transition ? "none" :
|
|
25561
|
+
display: !open && keepMounted && !transition ? "none" : void 0,
|
|
25564
25562
|
...style2
|
|
25565
25563
|
}, children: typeof children === "function" ? children(childProps) : children }) });
|
|
25566
25564
|
});
|
|
@@ -25575,7 +25573,7 @@ function ScopedGlobalStyles(props) {
|
|
|
25575
25573
|
const component = useMemo(() => {
|
|
25576
25574
|
const computedStyles = prependParentClassName(styles, parentClassName);
|
|
25577
25575
|
return jsxRuntimeExports.jsx(GlobalStyles, { styles: computedStyles });
|
|
25578
|
-
}, [parentClassName]);
|
|
25576
|
+
}, [parentClassName, styles]);
|
|
25579
25577
|
return component;
|
|
25580
25578
|
}
|
|
25581
25579
|
const useStyles = makeStyles()(() => ({
|
|
@@ -28200,7 +28198,7 @@ function NeuroglancerGlobalStyles(props) {
|
|
|
28200
28198
|
}
|
|
28201
28199
|
));
|
|
28202
28200
|
}
|
|
28203
|
-
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-
|
|
28201
|
+
const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-DTI8FUjG.js"));
|
|
28204
28202
|
function createWorker() {
|
|
28205
28203
|
return new WorkerFactory();
|
|
28206
28204
|
}
|
package/dist/index.js
CHANGED
package/dist-tsc/styles.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function NeuroglancerGlobalStyles(props: any): import("
|
|
1
|
+
export function NeuroglancerGlobalStyles(props: any): import("react").JSX.Element;
|
|
2
2
|
export const useStyles: (params: void, muiStyleOverridesParams?: {
|
|
3
3
|
props: Record<string, unknown>;
|
|
4
4
|
ownerState?: Record<string, unknown> | undefined;
|
package/dist-tsc/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":"AAqkFA,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../src/styles.js"],"names":[],"mappings":"AAqkFA,kFAcC;AA/kFD;;cAiBe,CAAC;;;kBAIP,eAAsB;gBAChB,WAAU;eAAsB,WACvC;EAlBJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/neuroglancer",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.2",
|
|
4
4
|
"author": "Gehlenborg Lab",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"three": "^0.154.0",
|
|
22
22
|
"react": "18.3.1",
|
|
23
|
-
"@vitessce/neuroglancer-workers": "3.9.
|
|
24
|
-
"@vitessce/constants-internal": "3.9.
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/utils": "3.9.
|
|
29
|
-
"@vitessce/tooltip": "3.9.
|
|
23
|
+
"@vitessce/neuroglancer-workers": "3.9.2",
|
|
24
|
+
"@vitessce/constants-internal": "3.9.2",
|
|
25
|
+
"@vitessce/styles": "3.9.2",
|
|
26
|
+
"@vitessce/vit-s": "3.9.2",
|
|
27
|
+
"@vitessce/sets-utils": "3.9.2",
|
|
28
|
+
"@vitessce/utils": "3.9.2",
|
|
29
|
+
"@vitessce/tooltip": "3.9.2"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@testing-library/jest-dom": "^6.6.3",
|