@biongff/vizarr 1.1.1 → 1.3.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/LICENSE +1 -0
- package/dist/biongff-vizarr.cjs.js +1 -0
- package/dist/biongff-vizarr.es.js +9 -0
- package/dist/blosc-CeItQ6qj.cjs +17 -0
- package/dist/blosc-DaK8KnI4.js +719 -0
- package/dist/chunk-INHXZS53-DiyuLb3Z.js +14 -0
- package/dist/chunk-INHXZS53-z3BpFH8p.cjs +1 -0
- package/dist/deflate-DzrO3E-1.cjs +1 -0
- package/dist/deflate-Q4iCMMBa.js +10 -0
- package/dist/index-3CiumG5V.js +53876 -0
- package/dist/index-Ckhcz4QQ.cjs +3815 -0
- package/dist/index.d.ts +119 -0
- package/dist/jpeg-BdEIe3QG.js +533 -0
- package/dist/jpeg-DFzBPcur.cjs +1 -0
- package/dist/jpeg2k-1tnzEScI.js +24 -0
- package/dist/jpeg2k-CcF6vCxI.cjs +1 -0
- package/dist/lerc-35FtXNGP.cjs +1 -0
- package/dist/lerc-B6qlOBE2.js +1039 -0
- package/dist/lz4-CssV0LoA.js +643 -0
- package/dist/lz4-PFaIsPAh.cjs +15 -0
- package/dist/lzw-CeXp5T9s.js +84 -0
- package/dist/lzw-DnHvgKbO.cjs +1 -0
- package/dist/packbits-CAZoMCQq.js +24 -0
- package/dist/packbits-DwdUAwAt.cjs +1 -0
- package/dist/pako.esm-Bx5X36Wo.js +1074 -0
- package/dist/pako.esm-DZC2QrbJ.cjs +1 -0
- package/dist/raw-BB450wdT.cjs +1 -0
- package/dist/raw-oTi55tWo.js +9 -0
- package/dist/ref-Bd0nPTvp.js +196 -0
- package/dist/ref-CIxavIn6.cjs +1 -0
- package/dist/webimage-66a9vFf5.cjs +1 -0
- package/dist/webimage-CKRNzqyG.js +19 -0
- package/dist/zstd-Cqadn9HA.js +610 -0
- package/dist/zstd-_xUhkGOV.cjs +15 -0
- package/package.json +35 -21
- package/.gitattributes +0 -1
- package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
- package/.github/ISSUE_TEMPLATE/documentation_update.md +0 -16
- package/.github/ISSUE_TEMPLATE/feature_request.md +0 -19
- package/.github/ISSUE_TEMPLATE/maintenance.md +0 -19
- package/.github/ISSUE_TEMPLATE/optimisation_request.md +0 -23
- package/.github/ISSUE_TEMPLATE/support_request.md +0 -25
- package/.github/PULL_REQUEST_TEMPLATE.md +0 -21
- package/.github/dependabot.yml +0 -13
- package/.github/workflows/deploy.yml +0 -56
- package/.github/workflows/npm-publish-dev.yml +0 -49
- package/.github/workflows/npm-publish.yml +0 -42
- package/.github/workflows/release.yml +0 -37
- package/.github/workflows/test.yml +0 -21
- package/.releaserc.json +0 -29
- package/CHANGELOG.md +0 -70
- package/CITATION.cff +0 -56
- package/CONTRIBUTING.md +0 -82
- package/README.md +0 -85
- package/assets/favicon.ico +0 -0
- package/assets/favicon.png +0 -0
- package/assets/logo-wide.png +0 -0
- package/assets/logo-wide.svg +0 -60
- package/assets/logo.png +0 -0
- package/assets/logo.svg +0 -36
- package/assets/robots.txt +0 -3
- package/assets/screenshot.png +0 -0
- package/biome.json +0 -34
- package/index.html +0 -24
- package/main.ts +0 -52
- package/patches/@vivjs__loaders@0.17.2.patch +0 -13
- package/python/.python-version +0 -1
- package/python/README.md +0 -14
- package/python/Untitled.ipynb +0 -40
- package/python/deno.json +0 -22
- package/python/notebooks/IDR_example.ipynb +0 -86
- package/python/notebooks/README.md +0 -35
- package/python/notebooks/create_fixture.py +0 -72
- package/python/notebooks/getting_started.ipynb +0 -217
- package/python/notebooks/mandelbrot.ipynb +0 -211
- package/python/notebooks/spatial_transformations.ipynb +0 -139
- package/python/pyproject.toml +0 -18
- package/python/src/vizarr/__init__.py +0 -10
- package/python/src/vizarr/_widget.js +0 -113
- package/python/src/vizarr/_widget.py +0 -67
- package/python/uv.lock +0 -2495
- package/src/ZarrPixelSource.ts +0 -182
- package/src/codecs/jpeg2k.ts +0 -22
- package/src/codecs/register.ts +0 -2
- package/src/components/LayerController/AcquisitionController.tsx +0 -46
- package/src/components/LayerController/AddChannelButton.tsx +0 -122
- package/src/components/LayerController/AxisOptions.tsx +0 -93
- package/src/components/LayerController/AxisSlider.tsx +0 -86
- package/src/components/LayerController/AxisSliders.tsx +0 -29
- package/src/components/LayerController/ChannelController.tsx +0 -84
- package/src/components/LayerController/ChannelOptions.tsx +0 -183
- package/src/components/LayerController/ColorPalette.tsx +0 -40
- package/src/components/LayerController/Content.tsx +0 -71
- package/src/components/LayerController/Header.tsx +0 -48
- package/src/components/LayerController/Labels.tsx +0 -73
- package/src/components/LayerController/LayerFitToViewportButton.tsx +0 -43
- package/src/components/LayerController/LayerVisibilityButton.tsx +0 -32
- package/src/components/LayerController/OpacitySlider.tsx +0 -25
- package/src/components/LayerController/index.tsx +0 -42
- package/src/components/Menu.tsx +0 -54
- package/src/components/Viewer.tsx +0 -136
- package/src/hooks.ts +0 -29
- package/src/index.tsx +0 -138
- package/src/io.ts +0 -276
- package/src/layers/grid-layer.ts +0 -214
- package/src/layers/label-layer.ts +0 -446
- package/src/layers/viv-layers.ts +0 -55
- package/src/lru-store.ts +0 -57
- package/src/ome.ts +0 -388
- package/src/state.ts +0 -202
- package/src/theme.ts +0 -80
- package/src/types.ts +0 -112
- package/src/utils.ts +0 -663
- package/tsconfig.json +0 -14
- package/vite.config.js +0 -47
package/src/theme.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { grey } from "@mui/material/colors";
|
|
2
|
-
import { createTheme } from "@mui/material/styles";
|
|
3
|
-
|
|
4
|
-
export default createTheme({
|
|
5
|
-
palette: {
|
|
6
|
-
mode: "dark",
|
|
7
|
-
primary: { main: grey[500] },
|
|
8
|
-
secondary: { main: grey[500] },
|
|
9
|
-
},
|
|
10
|
-
components: {
|
|
11
|
-
MuiButton: {
|
|
12
|
-
defaultProps: { size: "small" },
|
|
13
|
-
},
|
|
14
|
-
MuiButtonBase: {
|
|
15
|
-
defaultProps: { disableRipple: true },
|
|
16
|
-
},
|
|
17
|
-
MuiFilledInput: {
|
|
18
|
-
defaultProps: { margin: "dense" },
|
|
19
|
-
},
|
|
20
|
-
MuiFormControl: {
|
|
21
|
-
defaultProps: { margin: "dense" },
|
|
22
|
-
},
|
|
23
|
-
MuiFormHelperText: {
|
|
24
|
-
defaultProps: { margin: "dense" },
|
|
25
|
-
},
|
|
26
|
-
MuiIconButton: {
|
|
27
|
-
defaultProps: { size: "small" },
|
|
28
|
-
},
|
|
29
|
-
MuiInputBase: {
|
|
30
|
-
defaultProps: { margin: "dense" },
|
|
31
|
-
},
|
|
32
|
-
MuiInputLabel: {
|
|
33
|
-
defaultProps: { margin: "dense" },
|
|
34
|
-
},
|
|
35
|
-
MuiOutlinedInput: {
|
|
36
|
-
defaultProps: { margin: "dense" },
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
MuiSlider: {
|
|
40
|
-
defaultProps: {
|
|
41
|
-
size: "small",
|
|
42
|
-
},
|
|
43
|
-
styleOverrides: {
|
|
44
|
-
thumb: {
|
|
45
|
-
"&:focus, &:hover": {
|
|
46
|
-
boxShadow: "none",
|
|
47
|
-
},
|
|
48
|
-
height: 11,
|
|
49
|
-
width: 5,
|
|
50
|
-
borderRadius: "15%",
|
|
51
|
-
marginLeft: -1,
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
MuiInput: {
|
|
56
|
-
styleOverrides: {
|
|
57
|
-
underline: {
|
|
58
|
-
"&&&&:hover:before": {
|
|
59
|
-
borderBottom: "1px solid #fff",
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
MuiPaper: {
|
|
65
|
-
styleOverrides: {
|
|
66
|
-
root: {
|
|
67
|
-
backgroundColor: "rgba(0, 0, 0, 0.8)",
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
},
|
|
71
|
-
MuiSvgIcon: {
|
|
72
|
-
styleOverrides: {
|
|
73
|
-
root: {
|
|
74
|
-
width: "0.7em",
|
|
75
|
-
height: "0.7em",
|
|
76
|
-
},
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
});
|
package/src/types.ts
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
declare namespace Ome {
|
|
2
|
-
type Version = "0.1";
|
|
3
|
-
|
|
4
|
-
interface Channel {
|
|
5
|
-
active: boolean;
|
|
6
|
-
coefficient: number;
|
|
7
|
-
color: string;
|
|
8
|
-
family: string;
|
|
9
|
-
inverted: boolean;
|
|
10
|
-
label?: string;
|
|
11
|
-
window: {
|
|
12
|
-
end: number;
|
|
13
|
-
max?: number;
|
|
14
|
-
min?: number;
|
|
15
|
-
start: number;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
interface Omero {
|
|
20
|
-
id: number;
|
|
21
|
-
name?: string;
|
|
22
|
-
version: Version;
|
|
23
|
-
channels: Channel[];
|
|
24
|
-
rdefs: {
|
|
25
|
-
defaultT?: number;
|
|
26
|
-
defaultZ?: number;
|
|
27
|
-
model: "color" | "greyscale";
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
interface Axis {
|
|
32
|
-
name: string;
|
|
33
|
-
type?: string;
|
|
34
|
-
unit?: string;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
type CoordinateTransformation =
|
|
38
|
-
| {
|
|
39
|
-
type: "scale";
|
|
40
|
-
scale: Array<number>;
|
|
41
|
-
}
|
|
42
|
-
| {
|
|
43
|
-
type: "translation";
|
|
44
|
-
translation: Array<number>;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
interface Dataset {
|
|
48
|
-
path: string;
|
|
49
|
-
coordinateTransformations?: Array<CoordinateTransformation>;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
interface Multiscale {
|
|
53
|
-
datasets: Array<Dataset>;
|
|
54
|
-
version?: string;
|
|
55
|
-
axes?: string[] | Axis[];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
interface Bioformats2rawlayout {
|
|
59
|
-
"bioformats2raw.layout": 3;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface Acquisition {
|
|
63
|
-
id: number;
|
|
64
|
-
name?: string;
|
|
65
|
-
maximumfieldcount?: number;
|
|
66
|
-
description?: string;
|
|
67
|
-
starttime?: number;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated
|
|
70
|
-
*/
|
|
71
|
-
path?: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface Plate {
|
|
75
|
-
acquisitions?: Acquisition[];
|
|
76
|
-
columns: { name: string }[];
|
|
77
|
-
field_count: 4;
|
|
78
|
-
name: string;
|
|
79
|
-
rows: { name: string }[];
|
|
80
|
-
version: Version;
|
|
81
|
-
wells: { path: string }[];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
interface Well {
|
|
85
|
-
images: { path: string; acquisition?: number }[];
|
|
86
|
-
version: Version;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
interface ImageLabel {
|
|
90
|
-
version: Version;
|
|
91
|
-
colors?: Array<{
|
|
92
|
-
"label-value": number;
|
|
93
|
-
rgba: [r: number, g: number, b: number, a: number];
|
|
94
|
-
}>;
|
|
95
|
-
properties?: Array<{
|
|
96
|
-
"label-value": number;
|
|
97
|
-
"omero:roiId": number;
|
|
98
|
-
"omero:shapeId": number;
|
|
99
|
-
}>;
|
|
100
|
-
/** Location of source image */
|
|
101
|
-
source: {
|
|
102
|
-
image: string;
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
type Attrs =
|
|
107
|
-
| { multiscales: Multiscale[] }
|
|
108
|
-
| { omero: Omero; multiscales: Multiscale[] }
|
|
109
|
-
| { plate: Plate }
|
|
110
|
-
| { well: Well }
|
|
111
|
-
| { "image-label": ImageLabel; multiscales: Multiscale[] };
|
|
112
|
-
}
|