@jax-data-science/sci-image-visualizer 0.3.2 → 0.4.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/README.md +215 -11
- package/esm2022/index.mjs +20 -1
- package/esm2022/lib/contracts/display-types.mjs +20 -2
- package/esm2022/lib/contracts/image.contract.mjs +1 -1
- package/esm2022/lib/contracts/plot-type.mjs +36 -1
- package/esm2022/lib/contracts/ports/spatial-data.port.mjs +3 -0
- package/esm2022/lib/contracts/spatial-dataset.contract.mjs +45 -0
- package/esm2022/lib/contracts/visualizer.contract.mjs +1 -1
- package/esm2022/lib/implementations/napari-js/napari-axes-labels.mjs +10 -19
- package/esm2022/lib/implementations/napari-js/napari-region-overlay.mjs +71 -7
- package/esm2022/lib/implementations/napari-js/napari-scale-bar.mjs +1 -1
- package/esm2022/lib/implementations/napari-js/napari-spatial-tooltip.mjs +96 -0
- package/esm2022/lib/implementations/napari-js/napari-visualizer.service.mjs +1934 -55
- package/esm2022/lib/implementations/napari-js/napari-zoom.mjs +18 -0
- package/esm2022/lib/implementations/osd/openseadragon-visualizer.service.mjs +5 -3
- package/esm2022/lib/implementations/osd/osd-region-overlay.mjs +3 -4
- package/esm2022/lib/implementations/osd/osd-zoom.mjs +20 -0
- package/esm2022/lib/implementations/plotly/omics-trace-builders.mjs +555 -0
- package/esm2022/lib/implementations/plotly/plotly.service.mjs +13 -7
- package/esm2022/lib/implementations/spatial-data-http/spatial-data-http.service.mjs +304 -0
- package/esm2022/lib/implementations/spatial-data-http/spatial-wire.mjs +179 -0
- package/esm2022/lib/routing-visualizer.service.mjs +223 -12
- package/esm2022/lib/spatial/embedding-compute.mjs +142 -0
- package/esm2022/lib/spatial/gene-search.mjs +77 -0
- package/esm2022/lib/spatial/spatial-density.mjs +224 -0
- package/esm2022/lib/spatial/spatial-encoding.mjs +232 -0
- package/esm2022/lib/spatial/spatial-expression.mjs +257 -0
- package/esm2022/lib/spatial/spatial-framing.mjs +60 -0
- package/esm2022/lib/spatial/spatial-heatmap.mjs +185 -0
- package/esm2022/lib/spatial/spatial-hover.mjs +79 -0
- package/esm2022/lib/spatial/spatial-sections.mjs +96 -0
- package/esm2022/lib/spatial/spatial-selection.mjs +264 -0
- package/esm2022/lib/spatial/spatial-volume-image.mjs +163 -0
- package/esm2022/lib/spatial/tsne-worker.mjs +10 -0
- package/esm2022/lib/spatial/world-grid.mjs +77 -0
- package/esm2022/lib/spatial-controls/spatial-charts/spatial-charts.component.mjs +1278 -0
- package/esm2022/lib/spatial-controls/spatial-controls.component.mjs +621 -0
- package/esm2022/lib/store/spatial-selection.service.mjs +47 -0
- package/esm2022/lib/store/visualizer-store.service.mjs +23 -1
- package/esm2022/lib/toolbar/segmentation/cellpose-segmenter.service.mjs +2 -2
- package/esm2022/lib/toolbar/segmentation/sam-model-registry.mjs +9 -9
- package/esm2022/lib/toolbar/toolbar.component.mjs +30 -7
- package/esm2022/lib/visualization.module.mjs +23 -5
- package/esm2022/lib/visualizer.component.mjs +283 -22
- package/fesm2022/{jax-data-science-sci-image-visualizer-onnx-sam-session-ci1q0xnJ.mjs → jax-data-science-sci-image-visualizer-onnx-sam-session-BwP-A11m.mjs} +6 -4
- package/fesm2022/{jax-data-science-sci-image-visualizer-onnx-sam-session-ci1q0xnJ.mjs.map → jax-data-science-sci-image-visualizer-onnx-sam-session-BwP-A11m.mjs.map} +1 -1
- package/fesm2022/jax-data-science-sci-image-visualizer-tsne-worker-B_nXDGf0.mjs +12 -0
- package/fesm2022/jax-data-science-sci-image-visualizer-tsne-worker-B_nXDGf0.mjs.map +1 -0
- package/fesm2022/jax-data-science-sci-image-visualizer.mjs +15282 -7829
- package/fesm2022/jax-data-science-sci-image-visualizer.mjs.map +1 -1
- package/fesm2022/tsne.worker.js +19091 -0
- package/index.d.ts +15 -0
- package/lib/contracts/display-types.d.ts +131 -0
- package/lib/contracts/image.contract.d.ts +7 -0
- package/lib/contracts/plot-type.d.ts +42 -2
- package/lib/contracts/ports/spatial-data.port.d.ts +90 -0
- package/lib/contracts/spatial-dataset.contract.d.ts +281 -0
- package/lib/contracts/visualizer.contract.d.ts +99 -1
- package/lib/implementations/napari-js/napari-axes-labels.d.ts +9 -7
- package/lib/implementations/napari-js/napari-region-overlay.d.ts +38 -4
- package/lib/implementations/napari-js/napari-scale-bar.d.ts +7 -3
- package/lib/implementations/napari-js/napari-spatial-tooltip.d.ts +32 -0
- package/lib/implementations/napari-js/napari-visualizer.service.d.ts +497 -16
- package/lib/implementations/napari-js/napari-zoom.d.ts +15 -0
- package/lib/implementations/osd/osd-zoom.d.ts +19 -0
- package/lib/implementations/plotly/omics-trace-builders.d.ts +193 -0
- package/lib/implementations/plotly/plotly.service.d.ts +9 -0
- package/lib/implementations/spatial-data-http/spatial-data-http.service.d.ts +123 -0
- package/lib/implementations/spatial-data-http/spatial-wire.d.ts +115 -0
- package/lib/routing-visualizer.service.d.ts +45 -6
- package/lib/spatial/embedding-compute.d.ts +73 -0
- package/lib/spatial/gene-search.d.ts +48 -0
- package/lib/spatial/spatial-density.d.ts +73 -0
- package/lib/spatial/spatial-encoding.d.ts +155 -0
- package/lib/spatial/spatial-expression.d.ts +144 -0
- package/lib/spatial/spatial-framing.d.ts +37 -0
- package/lib/spatial/spatial-heatmap.d.ts +111 -0
- package/lib/spatial/spatial-hover.d.ts +49 -0
- package/lib/spatial/spatial-sections.d.ts +59 -0
- package/lib/spatial/spatial-selection.d.ts +113 -0
- package/lib/spatial/spatial-volume-image.d.ts +67 -0
- package/lib/spatial/tsne-worker.d.ts +7 -0
- package/lib/spatial/world-grid.d.ts +58 -0
- package/lib/spatial-controls/spatial-charts/spatial-charts.component.d.ts +439 -0
- package/lib/spatial-controls/spatial-controls.component.d.ts +257 -0
- package/lib/store/spatial-selection.service.d.ts +27 -0
- package/lib/store/visualizer-store.service.d.ts +13 -0
- package/lib/toolbar/toolbar.component.d.ts +19 -3
- package/lib/visualization.module.d.ts +28 -24
- package/lib/visualizer.component.d.ts +73 -2
- package/package.json +7 -3
- package/src/lib/assets/spatial-omics-3d.svg +31 -0
- package/src/lib/assets/spatial-omics.svg +27 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 512 512">
|
|
2
|
+
<!-- Spatial omics in 3D: the same observations as spatial-omics.svg — dots
|
|
3
|
+
whose SIZE varies with the value they carry — but arranged on a cube
|
|
4
|
+
lattice instead of a flat grid. Two square planes of four, the back one
|
|
5
|
+
offset up-right and drawn smaller, which is the whole 3D cue: no edges,
|
|
6
|
+
no perspective lines, nothing that needs a stroke to survive.
|
|
7
|
+
|
|
8
|
+
Sized for a 16px toolbar icon (1rem in the toolbar, 1.1rem in the
|
|
9
|
+
plot-mode dropdown), which drives every choice, exactly as in the 2D
|
|
10
|
+
icon it sits beside:
|
|
11
|
+
- Solid fills only. Both call sites tint with `filter: brightness(0) …`,
|
|
12
|
+
which flattens every colour to one — tone cannot carry meaning, so
|
|
13
|
+
the arrangement has to.
|
|
14
|
+
- Ink at 6-14% of the viewBox and 23% of the box overall, matching
|
|
15
|
+
spatial-omics.svg so the pair reads at one weight in the toolbar.
|
|
16
|
+
- Eight dots, not the 2D icon's nine plus a second layer: at 16px the
|
|
17
|
+
gaps are what make a lattice legible, and 4+4 keeps every gap above
|
|
18
|
+
2px where an 18-dot stack would silt up into a blob. -->
|
|
19
|
+
<g fill="#000000">
|
|
20
|
+
<!-- front plane -->
|
|
21
|
+
<circle cx="77" cy="180" r="59"/>
|
|
22
|
+
<circle cx="331" cy="180" r="42"/>
|
|
23
|
+
<circle cx="77" cy="434" r="71"/>
|
|
24
|
+
<circle cx="331" cy="434" r="50"/>
|
|
25
|
+
<!-- back plane, offset (+127, -127) and scaled to 0.78 -->
|
|
26
|
+
<circle cx="204" cy="53" r="38"/>
|
|
27
|
+
<circle cx="458" cy="53" r="48"/>
|
|
28
|
+
<circle cx="204" cy="307" r="33"/>
|
|
29
|
+
<circle cx="458" cy="307" r="43"/>
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 512 512">
|
|
2
|
+
<!-- Spatial omics: an array of observations (spots / cells) whose SIZE varies
|
|
3
|
+
with the value they carry — the thing this plot mode draws.
|
|
4
|
+
Deliberately frameless, so it does not read as cells.svg (the cellpose
|
|
5
|
+
button, a framed dot cluster) sitting in the same toolbar.
|
|
6
|
+
|
|
7
|
+
Sized for a 16px toolbar icon, which drives every choice:
|
|
8
|
+
- Solid fills only. The toolbar tints icons with
|
|
9
|
+
`filter: brightness(0) …`, which flattens every colour to black — a
|
|
10
|
+
white highlight inside a dark shape simply disappears, so shape has to
|
|
11
|
+
carry the meaning, not tone.
|
|
12
|
+
- Ink at ~7-13% of the viewBox. Thin strokes (the 6/512 and 12/512 of the
|
|
13
|
+
previous version) render sub-pixel at 16px, antialias to ~20-40% alpha,
|
|
14
|
+
and the recolour filter then washes them out to an illegible smudge.
|
|
15
|
+
- No low-opacity decoration: invisible at 16px either way. -->
|
|
16
|
+
<g fill="#000000">
|
|
17
|
+
<circle cx="128" cy="128" r="34"/>
|
|
18
|
+
<circle cx="256" cy="128" r="52"/>
|
|
19
|
+
<circle cx="384" cy="128" r="40"/>
|
|
20
|
+
<circle cx="128" cy="256" r="52"/>
|
|
21
|
+
<circle cx="256" cy="256" r="68"/>
|
|
22
|
+
<circle cx="384" cy="256" r="34"/>
|
|
23
|
+
<circle cx="128" cy="384" r="40"/>
|
|
24
|
+
<circle cx="256" cy="384" r="34"/>
|
|
25
|
+
<circle cx="384" cy="384" r="52"/>
|
|
26
|
+
</g>
|
|
27
|
+
</svg>
|