@biongff/vizarr 0.3.0-dev.2025-11-12.283baee9
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/.gitattributes +1 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- package/.github/ISSUE_TEMPLATE/documentation_update.md +16 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +19 -0
- package/.github/ISSUE_TEMPLATE/maintenance.md +19 -0
- package/.github/ISSUE_TEMPLATE/optimisation_request.md +23 -0
- package/.github/ISSUE_TEMPLATE/support_request.md +25 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +21 -0
- package/.github/dependabot.yml +13 -0
- package/.github/workflows/build_and_deploy.yml +29 -0
- package/.github/workflows/npm-publish-dev.yml +49 -0
- package/.github/workflows/npm-publish.yml +20 -0
- package/.github/workflows/release.yml +37 -0
- package/.github/workflows/test.yml +21 -0
- package/.releaserc.json +29 -0
- package/CITATION.cff +56 -0
- package/CONTRIBUTING.md +82 -0
- package/LICENSE +21 -0
- package/README.md +85 -0
- package/assets/favicon.ico +0 -0
- package/assets/favicon.png +0 -0
- package/assets/logo-wide.png +0 -0
- package/assets/logo-wide.svg +60 -0
- package/assets/logo.png +0 -0
- package/assets/logo.svg +36 -0
- package/assets/robots.txt +3 -0
- package/assets/screenshot.png +0 -0
- package/biome.json +34 -0
- package/index.html +24 -0
- package/main.ts +52 -0
- package/package.json +55 -0
- package/patches/@vivjs__loaders@0.17.2.patch +13 -0
- package/python/.python-version +1 -0
- package/python/README.md +14 -0
- package/python/Untitled.ipynb +40 -0
- package/python/deno.json +22 -0
- package/python/notebooks/IDR_example.ipynb +86 -0
- package/python/notebooks/README.md +35 -0
- package/python/notebooks/create_fixture.py +72 -0
- package/python/notebooks/getting_started.ipynb +217 -0
- package/python/notebooks/mandelbrot.ipynb +211 -0
- package/python/notebooks/spatial_transformations.ipynb +139 -0
- package/python/pyproject.toml +18 -0
- package/python/src/vizarr/__init__.py +10 -0
- package/python/src/vizarr/_widget.js +113 -0
- package/python/src/vizarr/_widget.py +67 -0
- package/python/uv.lock +2495 -0
- package/src/ZarrPixelSource.ts +182 -0
- package/src/codecs/jpeg2k.ts +22 -0
- package/src/codecs/register.ts +2 -0
- package/src/components/LayerController/AcquisitionController.tsx +46 -0
- package/src/components/LayerController/AddChannelButton.tsx +122 -0
- package/src/components/LayerController/AxisOptions.tsx +93 -0
- package/src/components/LayerController/AxisSlider.tsx +86 -0
- package/src/components/LayerController/AxisSliders.tsx +29 -0
- package/src/components/LayerController/ChannelController.tsx +84 -0
- package/src/components/LayerController/ChannelOptions.tsx +183 -0
- package/src/components/LayerController/ColorPalette.tsx +40 -0
- package/src/components/LayerController/Content.tsx +71 -0
- package/src/components/LayerController/Header.tsx +48 -0
- package/src/components/LayerController/Labels.tsx +73 -0
- package/src/components/LayerController/LayerFitToViewportButton.tsx +43 -0
- package/src/components/LayerController/LayerVisibilityButton.tsx +32 -0
- package/src/components/LayerController/OpacitySlider.tsx +25 -0
- package/src/components/LayerController/index.tsx +42 -0
- package/src/components/Menu.tsx +54 -0
- package/src/components/Viewer.tsx +136 -0
- package/src/hooks.ts +29 -0
- package/src/index.tsx +138 -0
- package/src/io.ts +276 -0
- package/src/layers/grid-layer.ts +214 -0
- package/src/layers/label-layer.ts +446 -0
- package/src/layers/viv-layers.ts +55 -0
- package/src/lru-store.ts +57 -0
- package/src/ome.ts +388 -0
- package/src/state.ts +202 -0
- package/src/theme.ts +80 -0
- package/src/types.ts +112 -0
- package/src/utils.ts +655 -0
- package/tsconfig.json +14 -0
- package/vite.config.js +47 -0
package/vite.config.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as path from "node:path";
|
|
2
|
+
|
|
3
|
+
import react from "@vitejs/plugin-react";
|
|
4
|
+
import { defineConfig } from "vite";
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Writes a new entry point that exports contents of an existing chunk.
|
|
8
|
+
* @param {string} entryPointName - Name of the new entry point
|
|
9
|
+
* @param {RegExp} chunkName - Name of the existing chunk
|
|
10
|
+
*/
|
|
11
|
+
function writeEntryPoint(entryPointName, chunkName) {
|
|
12
|
+
return {
|
|
13
|
+
name: "write-entry-point",
|
|
14
|
+
async generateBundle(_, bundle) {
|
|
15
|
+
const chunk = Object.keys(bundle).find((key) => key.match(chunkName));
|
|
16
|
+
if (!chunk) {
|
|
17
|
+
throw new Error(`Could not find chunk matching ${chunkName}`);
|
|
18
|
+
}
|
|
19
|
+
bundle[entryPointName] = {
|
|
20
|
+
fileName: entryPointName,
|
|
21
|
+
type: "chunk",
|
|
22
|
+
code: `export * from './${chunk}';`,
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export default defineConfig({
|
|
29
|
+
plugins: [react(), writeEntryPoint("index.js", /^vizarr-/)],
|
|
30
|
+
base: process.env.VIZARR_PREFIX || "./",
|
|
31
|
+
publicDir: path.resolve(__dirname, "assets"),
|
|
32
|
+
build: {
|
|
33
|
+
assetsDir: "",
|
|
34
|
+
sourcemap: true,
|
|
35
|
+
rollupOptions: {
|
|
36
|
+
output: {
|
|
37
|
+
minifyInternalExports: false,
|
|
38
|
+
manualChunks: {
|
|
39
|
+
vizarr: [path.resolve(__dirname, "src/index.tsx")],
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
server: {
|
|
45
|
+
open: `?source=${process.env.VIZARR_DATA || "https://uk1s3.embassy.ebi.ac.uk/idr/zarr/v0.1/6001253.zarr"}`,
|
|
46
|
+
},
|
|
47
|
+
});
|