From c00faa33b14d95dfdca84a26e147a6c35450d91f Mon Sep 17 00:00:00 2001 From: Peter Todd Date: Mon, 29 Jun 2026 13:47:13 +0100 Subject: [PATCH] Add changeset for openjph-wasm codec switch; fix dev.mjs import paths - Add missing changeset for PR #65 (switch HTJ2K codec to openjph-wasm, z>1 multi-component chunks, Htj2kPlane export) - Fix relative import paths in packages/vis/scripts/dev.mjs (two dots too few, broke the dev server script) Co-Authored-By: Claude Sonnet 4.6 --- .changeset/switch-openjph-wasm.md | 8 ++++++++ packages/vis/scripts/dev.mjs | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .changeset/switch-openjph-wasm.md diff --git a/.changeset/switch-openjph-wasm.md b/.changeset/switch-openjph-wasm.md new file mode 100644 index 00000000..93cf1996 --- /dev/null +++ b/.changeset/switch-openjph-wasm.md @@ -0,0 +1,8 @@ +--- +"zarrextra": minor +"@spatialdata/vis": patch +--- + +Switch HTJ2K codec from `@cornerstonejs/codec-openjph` to `openjph-wasm`, which correctly round-trips multi-component (volumetric) HTJ2K data. The cornerstone build silently dropped components 2..N on decode; `openjph-wasm` handles arbitrary component counts losslessly. + +Also adds true z>1 multi-component chunk support: z-planes are now encoded as components of a single codestream rather than one plane per chunk. Exports `Htj2kPlane` from the package index. diff --git a/packages/vis/scripts/dev.mjs b/packages/vis/scripts/dev.mjs index 71fd5cb6..45a3090e 100644 --- a/packages/vis/scripts/dev.mjs +++ b/packages/vis/scripts/dev.mjs @@ -4,8 +4,8 @@ import { isPortInUse, listProcesses, portListeners, -} from '../../scripts/dev-process-utils.mjs'; -import { FIXTURE_SERVER_PORT } from '../../scripts/fixture-server-port.mjs'; +} from '../../../scripts/dev-process-utils.mjs'; +import { FIXTURE_SERVER_PORT } from '../../../scripts/fixture-server-port.mjs'; const DEMO_PORT = 5173; const pnpmCommand = process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm';