@vitessce/json 4.1.1 → 4.1.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.
- package/dist/{deflate-CqUjMell.js → deflate-D8TRA83z.js} +1 -1
- package/dist/{index-n1UDJDAC.js → index-CM5yHoIK.js} +26 -13
- package/dist/index.js +1 -1
- package/dist/{jpeg-548JNFXA.js → jpeg-Bs2YKyFc.js} +1 -1
- package/dist/{lerc-BWRR_ELq.js → lerc-CcQhbLiP.js} +1 -1
- package/dist/{lzw-DY9PEFkn.js → lzw-BBMYR2e_.js} +1 -1
- package/dist/{packbits-Dhy4-kGH.js → packbits-EP82_Hll.js} +1 -1
- package/dist/{raw-C41mEEq1.js → raw-BlNN0QGL.js} +1 -1
- package/dist/{webimage-BWnXHQIU.js → webimage-DSecj4MX.js} +1 -1
- package/package.json +12 -12
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { B as BaseDecoder } from "./index-
|
|
2
|
+
import { B as BaseDecoder } from "./index-CM5yHoIK.js";
|
|
3
3
|
class DeflateDecoder extends BaseDecoder {
|
|
4
4
|
decodeBlock(buffer) {
|
|
5
5
|
return inflate_1(new Uint8Array(buffer)).buffer;
|
|
@@ -240,6 +240,7 @@ const FileType$1 = {
|
|
|
240
240
|
// Precomputed (mesh) format
|
|
241
241
|
OBS_SEGMENTATIONS_NG_PRECOMPUTED: "obsSegmentations.ng-precomputed",
|
|
242
242
|
OBS_POINTS_NG_ANNOTATIONS: "obsPoints.ng-annotations",
|
|
243
|
+
OBS_LOCATIONS_NG_ANNOTATIONS: "obsLocations.ng-annotations",
|
|
243
244
|
// New file types to support old file types:
|
|
244
245
|
// - cells.json
|
|
245
246
|
OBS_EMBEDDING_CELLS_JSON: "obsEmbedding.cells.json",
|
|
@@ -485,6 +486,7 @@ const CoordinationType$1 = {
|
|
|
485
486
|
[FileType$1.OBS_SEGMENTATIONS_GLB]: DataType$2.OBS_SEGMENTATIONS,
|
|
486
487
|
[FileType$1.OBS_SEGMENTATIONS_NG_PRECOMPUTED]: DataType$2.OBS_SEGMENTATIONS,
|
|
487
488
|
[FileType$1.OBS_POINTS_NG_ANNOTATIONS]: DataType$2.OBS_POINTS,
|
|
489
|
+
[FileType$1.OBS_LOCATIONS_NG_ANNOTATIONS]: DataType$2.OBS_LOCATIONS,
|
|
488
490
|
[FileType$1.IMAGE_SPATIALDATA_ZARR]: DataType$2.IMAGE,
|
|
489
491
|
[FileType$1.LABELS_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
|
|
490
492
|
[FileType$1.SHAPES_SPATIALDATA_ZARR]: DataType$2.OBS_SEGMENTATIONS,
|
|
@@ -939,7 +941,8 @@ const CoordinationType$1 = {
|
|
|
939
941
|
CoordinationType$1.ANNOTATION_OVERLAY_VISIBLE,
|
|
940
942
|
CoordinationType$1.ANNOTATION_TRANSITION_DURATION,
|
|
941
943
|
CoordinationType$1.ANNOTATION_EDITABLE,
|
|
942
|
-
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM
|
|
944
|
+
CoordinationType$1.ANNOTATION_SEMANTIC_ZOOM,
|
|
945
|
+
CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
|
|
943
946
|
],
|
|
944
947
|
[ViewType$1.SPATIAL_BETA]: [
|
|
945
948
|
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
@@ -1157,7 +1160,8 @@ const CoordinationType$1 = {
|
|
|
1157
1160
|
CoordinationType$1.SPATIAL_ROTATION_Z,
|
|
1158
1161
|
CoordinationType$1.SPATIAL_ROTATION_ORBIT,
|
|
1159
1162
|
CoordinationType$1.SPATIAL_ORBIT_AXIS,
|
|
1160
|
-
CoordinationType$1.PHOTOMETRIC_INTERPRETATION
|
|
1163
|
+
CoordinationType$1.PHOTOMETRIC_INTERPRETATION,
|
|
1164
|
+
CoordinationType$1.SPATIAL_CHANNELS_SORT_ORDER
|
|
1161
1165
|
],
|
|
1162
1166
|
[ViewType$1.LAYER_CONTROLLER_BETA]: [
|
|
1163
1167
|
CoordinationType$1.META_COORDINATION_SCOPES,
|
|
@@ -10168,14 +10172,15 @@ z.object({
|
|
|
10168
10172
|
subsources: z.record(z.boolean()).describe("Subsources are the individual data components of a source (e.g. meshes, skeletons, etc.). Each entry explicitly enables or disables a subsource.").optional(),
|
|
10169
10173
|
enableDefaultSubsources: z.boolean().describe("When true (default), automatically loads all subsources (defined in mesh metadata), when false loads what is explicitly enabled in `subsources`.").optional()
|
|
10170
10174
|
}).partial().nullable();
|
|
10175
|
+
const ngAnnotationTransformSchema = z.object({
|
|
10176
|
+
matrix: z.array(z.array(z.number())),
|
|
10177
|
+
outputDimensions: z.record(z.tuple([z.number(), z.string()]))
|
|
10178
|
+
}).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space.");
|
|
10171
10179
|
z.object({
|
|
10172
10180
|
projectionAnnotationSpacing: z.number(),
|
|
10173
10181
|
featureIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing feature IDs. For example, specify 'gene' to use prop_gene() in the Neuroglancer shader code."),
|
|
10174
10182
|
pointIndexProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty containing point IDs. For example, specify 'point_id' to use prop_point_id() in the Neuroglancer shader code."),
|
|
10175
|
-
transform:
|
|
10176
|
-
matrix: z.array(z.array(z.number())),
|
|
10177
|
-
outputDimensions: z.record(z.tuple([z.number(), z.string()]))
|
|
10178
|
-
}).optional().describe("A coordinate transformation matrix to apply to the annotation layer source to map annotation coordinates to the global coordinate space."),
|
|
10183
|
+
transform: ngAnnotationTransformSchema,
|
|
10179
10184
|
// Note: See comments in neuroglancer-sorger.js
|
|
10180
10185
|
// We may remove these in the future, pending clarification
|
|
10181
10186
|
// to questions in the tissue-map-tools repo
|
|
@@ -10184,6 +10189,14 @@ z.object({
|
|
|
10184
10189
|
quantitativeColorProp: z.string().optional(),
|
|
10185
10190
|
quantitativeColorMax: z.number().optional()
|
|
10186
10191
|
}).partial().nullable();
|
|
10192
|
+
z.object({
|
|
10193
|
+
projectionAnnotationSpacing: z.number(),
|
|
10194
|
+
transform: ngAnnotationTransformSchema,
|
|
10195
|
+
segmentIdProp: z.string().optional().describe("The name of the Neuroglancer AnnotationProperty holding the mesh segment ID (e.g. 'cell_id'). Defaults to 'id' when the annotation info declares it."),
|
|
10196
|
+
// Used when the corresponding segmentation channel uses obsColorEncoding 'geneSelection'.
|
|
10197
|
+
quantitativeColorProp: z.string().optional(),
|
|
10198
|
+
quantitativeColorMax: z.number().optional()
|
|
10199
|
+
}).partial().nullable();
|
|
10187
10200
|
z.object({
|
|
10188
10201
|
obsIndex: z.string(),
|
|
10189
10202
|
obsEmbedding: z.array(z.string()).length(2)
|
|
@@ -133595,22 +133608,22 @@ async function getDecoder(fileDirectory) {
|
|
|
133595
133608
|
const Decoder = await importFn();
|
|
133596
133609
|
return new Decoder(fileDirectory);
|
|
133597
133610
|
}
|
|
133598
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
133599
|
-
addDecoder(5, () => import("./lzw-
|
|
133611
|
+
addDecoder([void 0, 1], () => import("./raw-BlNN0QGL.js").then((m) => m.default));
|
|
133612
|
+
addDecoder(5, () => import("./lzw-BBMYR2e_.js").then((m) => m.default));
|
|
133600
133613
|
addDecoder(6, () => {
|
|
133601
133614
|
throw new Error("old style JPEG compression is not supported.");
|
|
133602
133615
|
});
|
|
133603
|
-
addDecoder(7, () => import("./jpeg-
|
|
133604
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
133605
|
-
addDecoder(32773, () => import("./packbits-
|
|
133616
|
+
addDecoder(7, () => import("./jpeg-Bs2YKyFc.js").then((m) => m.default));
|
|
133617
|
+
addDecoder([8, 32946], () => import("./deflate-D8TRA83z.js").then((m) => m.default));
|
|
133618
|
+
addDecoder(32773, () => import("./packbits-EP82_Hll.js").then((m) => m.default));
|
|
133606
133619
|
addDecoder(
|
|
133607
133620
|
34887,
|
|
133608
|
-
() => import("./lerc-
|
|
133621
|
+
() => import("./lerc-CcQhbLiP.js").then(async (m) => {
|
|
133609
133622
|
await m.zstd.init();
|
|
133610
133623
|
return m;
|
|
133611
133624
|
}).then((m) => m.default)
|
|
133612
133625
|
);
|
|
133613
|
-
addDecoder(50001, () => import("./webimage-
|
|
133626
|
+
addDecoder(50001, () => import("./webimage-DSecj4MX.js").then((m) => m.default));
|
|
133614
133627
|
function copyNewSize(array, width, height, samplesPerPixel = 1) {
|
|
133615
133628
|
return new (Object.getPrototypeOf(array)).constructor(width * height * samplesPerPixel);
|
|
133616
133629
|
}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as inflate_1 } from "./pako.esm-SxljTded.js";
|
|
2
|
-
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-
|
|
2
|
+
import { g as getDefaultExportFromCjs, B as BaseDecoder, L as LercParameters, a as LercAddCompression } from "./index-CM5yHoIK.js";
|
|
3
3
|
var LercDecode = { exports: {} };
|
|
4
4
|
var hasRequiredLercDecode;
|
|
5
5
|
function requireLercDecode() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vitessce/json",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"author": "HIDIVE Lab at HMS",
|
|
5
5
|
"homepage": "http://vitessce.io",
|
|
6
6
|
"repository": {
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"lodash-es": "^4.17.21",
|
|
21
21
|
"zarrita": "0.7.5",
|
|
22
22
|
"zod": "^3.21.4",
|
|
23
|
-
"@vitessce/
|
|
24
|
-
"@vitessce/
|
|
25
|
-
"@vitessce/
|
|
26
|
-
"@vitessce/
|
|
27
|
-
"@vitessce/
|
|
28
|
-
"@vitessce/spatial-utils": "4.1.
|
|
29
|
-
"@vitessce/
|
|
30
|
-
"@vitessce/
|
|
31
|
-
"@vitessce/error": "4.1.
|
|
32
|
-
"@vitessce/
|
|
33
|
-
"@vitessce/
|
|
23
|
+
"@vitessce/constants-internal": "4.1.2",
|
|
24
|
+
"@vitessce/schemas": "4.1.2",
|
|
25
|
+
"@vitessce/gl": "4.1.2",
|
|
26
|
+
"@vitessce/sets-utils": "4.1.2",
|
|
27
|
+
"@vitessce/globals": "4.1.2",
|
|
28
|
+
"@vitessce/spatial-utils": "4.1.2",
|
|
29
|
+
"@vitessce/utils": "4.1.2",
|
|
30
|
+
"@vitessce/abstract": "4.1.2",
|
|
31
|
+
"@vitessce/error": "4.1.2",
|
|
32
|
+
"@vitessce/config": "4.1.2",
|
|
33
|
+
"@vitessce/zarr-utils": "4.1.2"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"bundle": "pnpm exec vite build -c ../../../scripts/vite.config.mjs",
|