@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.
Files changed (115) hide show
  1. package/LICENSE +1 -0
  2. package/dist/biongff-vizarr.cjs.js +1 -0
  3. package/dist/biongff-vizarr.es.js +9 -0
  4. package/dist/blosc-CeItQ6qj.cjs +17 -0
  5. package/dist/blosc-DaK8KnI4.js +719 -0
  6. package/dist/chunk-INHXZS53-DiyuLb3Z.js +14 -0
  7. package/dist/chunk-INHXZS53-z3BpFH8p.cjs +1 -0
  8. package/dist/deflate-DzrO3E-1.cjs +1 -0
  9. package/dist/deflate-Q4iCMMBa.js +10 -0
  10. package/dist/index-3CiumG5V.js +53876 -0
  11. package/dist/index-Ckhcz4QQ.cjs +3815 -0
  12. package/dist/index.d.ts +119 -0
  13. package/dist/jpeg-BdEIe3QG.js +533 -0
  14. package/dist/jpeg-DFzBPcur.cjs +1 -0
  15. package/dist/jpeg2k-1tnzEScI.js +24 -0
  16. package/dist/jpeg2k-CcF6vCxI.cjs +1 -0
  17. package/dist/lerc-35FtXNGP.cjs +1 -0
  18. package/dist/lerc-B6qlOBE2.js +1039 -0
  19. package/dist/lz4-CssV0LoA.js +643 -0
  20. package/dist/lz4-PFaIsPAh.cjs +15 -0
  21. package/dist/lzw-CeXp5T9s.js +84 -0
  22. package/dist/lzw-DnHvgKbO.cjs +1 -0
  23. package/dist/packbits-CAZoMCQq.js +24 -0
  24. package/dist/packbits-DwdUAwAt.cjs +1 -0
  25. package/dist/pako.esm-Bx5X36Wo.js +1074 -0
  26. package/dist/pako.esm-DZC2QrbJ.cjs +1 -0
  27. package/dist/raw-BB450wdT.cjs +1 -0
  28. package/dist/raw-oTi55tWo.js +9 -0
  29. package/dist/ref-Bd0nPTvp.js +196 -0
  30. package/dist/ref-CIxavIn6.cjs +1 -0
  31. package/dist/webimage-66a9vFf5.cjs +1 -0
  32. package/dist/webimage-CKRNzqyG.js +19 -0
  33. package/dist/zstd-Cqadn9HA.js +610 -0
  34. package/dist/zstd-_xUhkGOV.cjs +15 -0
  35. package/package.json +35 -21
  36. package/.gitattributes +0 -1
  37. package/.github/ISSUE_TEMPLATE/bug_report.md +0 -32
  38. package/.github/ISSUE_TEMPLATE/documentation_update.md +0 -16
  39. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -19
  40. package/.github/ISSUE_TEMPLATE/maintenance.md +0 -19
  41. package/.github/ISSUE_TEMPLATE/optimisation_request.md +0 -23
  42. package/.github/ISSUE_TEMPLATE/support_request.md +0 -25
  43. package/.github/PULL_REQUEST_TEMPLATE.md +0 -21
  44. package/.github/dependabot.yml +0 -13
  45. package/.github/workflows/deploy.yml +0 -56
  46. package/.github/workflows/npm-publish-dev.yml +0 -49
  47. package/.github/workflows/npm-publish.yml +0 -42
  48. package/.github/workflows/release.yml +0 -37
  49. package/.github/workflows/test.yml +0 -21
  50. package/.releaserc.json +0 -29
  51. package/CHANGELOG.md +0 -70
  52. package/CITATION.cff +0 -56
  53. package/CONTRIBUTING.md +0 -82
  54. package/README.md +0 -85
  55. package/assets/favicon.ico +0 -0
  56. package/assets/favicon.png +0 -0
  57. package/assets/logo-wide.png +0 -0
  58. package/assets/logo-wide.svg +0 -60
  59. package/assets/logo.png +0 -0
  60. package/assets/logo.svg +0 -36
  61. package/assets/robots.txt +0 -3
  62. package/assets/screenshot.png +0 -0
  63. package/biome.json +0 -34
  64. package/index.html +0 -24
  65. package/main.ts +0 -52
  66. package/patches/@vivjs__loaders@0.17.2.patch +0 -13
  67. package/python/.python-version +0 -1
  68. package/python/README.md +0 -14
  69. package/python/Untitled.ipynb +0 -40
  70. package/python/deno.json +0 -22
  71. package/python/notebooks/IDR_example.ipynb +0 -86
  72. package/python/notebooks/README.md +0 -35
  73. package/python/notebooks/create_fixture.py +0 -72
  74. package/python/notebooks/getting_started.ipynb +0 -217
  75. package/python/notebooks/mandelbrot.ipynb +0 -211
  76. package/python/notebooks/spatial_transformations.ipynb +0 -139
  77. package/python/pyproject.toml +0 -18
  78. package/python/src/vizarr/__init__.py +0 -10
  79. package/python/src/vizarr/_widget.js +0 -113
  80. package/python/src/vizarr/_widget.py +0 -67
  81. package/python/uv.lock +0 -2495
  82. package/src/ZarrPixelSource.ts +0 -182
  83. package/src/codecs/jpeg2k.ts +0 -22
  84. package/src/codecs/register.ts +0 -2
  85. package/src/components/LayerController/AcquisitionController.tsx +0 -46
  86. package/src/components/LayerController/AddChannelButton.tsx +0 -122
  87. package/src/components/LayerController/AxisOptions.tsx +0 -93
  88. package/src/components/LayerController/AxisSlider.tsx +0 -86
  89. package/src/components/LayerController/AxisSliders.tsx +0 -29
  90. package/src/components/LayerController/ChannelController.tsx +0 -84
  91. package/src/components/LayerController/ChannelOptions.tsx +0 -183
  92. package/src/components/LayerController/ColorPalette.tsx +0 -40
  93. package/src/components/LayerController/Content.tsx +0 -71
  94. package/src/components/LayerController/Header.tsx +0 -48
  95. package/src/components/LayerController/Labels.tsx +0 -73
  96. package/src/components/LayerController/LayerFitToViewportButton.tsx +0 -43
  97. package/src/components/LayerController/LayerVisibilityButton.tsx +0 -32
  98. package/src/components/LayerController/OpacitySlider.tsx +0 -25
  99. package/src/components/LayerController/index.tsx +0 -42
  100. package/src/components/Menu.tsx +0 -54
  101. package/src/components/Viewer.tsx +0 -136
  102. package/src/hooks.ts +0 -29
  103. package/src/index.tsx +0 -138
  104. package/src/io.ts +0 -276
  105. package/src/layers/grid-layer.ts +0 -214
  106. package/src/layers/label-layer.ts +0 -446
  107. package/src/layers/viv-layers.ts +0 -55
  108. package/src/lru-store.ts +0 -57
  109. package/src/ome.ts +0 -388
  110. package/src/state.ts +0 -202
  111. package/src/theme.ts +0 -80
  112. package/src/types.ts +0 -112
  113. package/src/utils.ts +0 -663
  114. package/tsconfig.json +0 -14
  115. 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
- }