From 1f5f597334da74797637789a4c97b2a602cf81be Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 16 Apr 2024 10:33:41 -0400 Subject: [PATCH 1/2] ENH: Add 4D support to wasm --- wasm/morphological-contour-interpolation.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wasm/morphological-contour-interpolation.cxx b/wasm/morphological-contour-interpolation.cxx index 7bcd198..09eb68d 100644 --- a/wasm/morphological-contour-interpolation.cxx +++ b/wasm/morphological-contour-interpolation.cxx @@ -121,5 +121,5 @@ main( int argc, char* argv[] ) { itk::wasm::Pipeline pipeline( "morphological-contour-interpolation", "Interpolates contours between slices.", argc, argv ); - return itk::wasm::SupportInputImageTypes< PipelineFunctor, uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t >::Dimensions< 3U >( "input-image", pipeline ); + return itk::wasm::SupportInputImageTypes< PipelineFunctor, uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t >::Dimensions< 3U, 4U >( "input-image", pipeline ); } From bb38356f6242d879ca3a2fea650a58b906d9ccf1 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 16 Apr 2024 10:36:51 -0400 Subject: [PATCH 2/2] ENH: Bump itk-wasm to 1.0.0-b.173 --- package.json | 2 +- pnpm-lock.yaml | 38 +++++++++--------------------------- wasm/typescript/package.json | 7 ++++--- 3 files changed, 14 insertions(+), 33 deletions(-) diff --git a/package.json b/package.json index af04390..01cff47 100644 --- a/package.json +++ b/package.json @@ -40,6 +40,6 @@ "devDependencies": { "@itk-wasm/dam": "^1.1.0", "@thewtex/setup-micromamba": "^1.9.7", - "itk-wasm": "^1.0.0-b.166" + "itk-wasm": "^1.0.0-b.173" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c9dea20..e83aa0f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,14 +15,14 @@ importers: specifier: ^1.9.7 version: 1.9.7 itk-wasm: - specifier: ^1.0.0-b.166 - version: 1.0.0-b.166 + specifier: ^1.0.0-b.173 + version: 1.0.0-b.173 wasm/typescript: dependencies: itk-wasm: - specifier: 1.0.0-b.165 - version: 1.0.0-b.165 + specifier: 1.0.0-b.173 + version: 1.0.0-b.173 devDependencies: '@itk-wasm/image-io': specifier: ^1.1.0 @@ -721,7 +721,7 @@ packages: resolution: {integrity: sha512-2uAeBC5F0U/N6FaOLe0MVoOA2h3hizwTBuyZIwaVYoEzCav5a2ZDoCneC9FEpPR6G4VtVvzTlF/G6Eo4d8ofuA==} dependencies: axios: 1.6.7 - itk-wasm: 1.0.0-b.166 + itk-wasm: 1.0.0-b.173 mime-types: 2.1.35 transitivePeerDependencies: - debug @@ -730,7 +730,7 @@ packages: /@itk-wasm/mesh-io@1.1.0: resolution: {integrity: sha512-zB+bgbvkWjUmCqjTnw4CSfPfEJr4QaiO/XdDse+0t8GjCcdjqplDIyudCABbzsLjQ+vVZ1t4RsRLnuZJ90+j5Q==} dependencies: - itk-wasm: 1.0.0-b.166 + itk-wasm: 1.0.0-b.173 mime-types: 2.1.35 transitivePeerDependencies: - debug @@ -1262,7 +1262,6 @@ packages: /chalk@5.3.0: resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} - dev: true /chokidar@3.6.0: resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==} @@ -2049,33 +2048,15 @@ packages: resolution: {integrity: sha512-6DmOs5r7ERDbvS4q8yLKENcj6Yecr7QQTqWApbZdfAUTEC947d+PEha7PCqhm//9oxaLYL7TWRekwhoXl2s6fg==} engines: {node: '>=16.0.0', npm: '>=7.0.0'} - /itk-wasm@1.0.0-b.165: - resolution: {integrity: sha512-Rq0+AL2BuRqcFh9r3h69pB3nt84tw/gTxnI6GjIOYw5Bfah9qO+C8hRJpD8aWNBa5o3wNHRAMVlp0pt/L4K8gg==} - hasBin: true - dependencies: - '@itk-wasm/dam': 1.1.1 - '@thewtex/zstddec': 0.2.0 - '@types/emscripten': 1.39.10 - axios: 1.6.7 - comlink: 4.4.1 - commander: 11.1.0 - fs-extra: 11.2.0 - glob: 8.1.0 - markdown-table: 3.0.3 - mime-types: 2.1.35 - wasm-feature-detect: 1.6.1 - transitivePeerDependencies: - - debug - dev: false - - /itk-wasm@1.0.0-b.166: - resolution: {integrity: sha512-BZZvgUyTT+4DpiLkS7Hahbt+CpR63ckTgyE8li3d6gg3ljqBXfHDavWLiuUIaTA7RXuPUnpIl23jB9z6v77ymA==} + /itk-wasm@1.0.0-b.173: + resolution: {integrity: sha512-SV2lfZ1mClWuSK/noaZgGj9jhroY4MZu19ci9pIucuyhoGdXrVSmWlPH/JYMDi9RP3BogmQwe9wfFc3X1dcEPg==} hasBin: true dependencies: '@itk-wasm/dam': 1.1.1 '@thewtex/zstddec': 0.2.0 '@types/emscripten': 1.39.10 axios: 1.6.7 + chalk: 5.3.0 comlink: 4.4.1 commander: 11.1.0 fs-extra: 11.2.0 @@ -2085,7 +2066,6 @@ packages: wasm-feature-detect: 1.6.1 transitivePeerDependencies: - debug - dev: true /js-sha3@0.8.0: resolution: {integrity: sha512-gF1cRrHhIzNfToc802P800N8PpXS+evLLXfsVpowqmAFR9uwbi89WvXg2QspOmXL8QL86J4T1EpFu+yUkwJY3Q==} diff --git a/wasm/typescript/package.json b/wasm/typescript/package.json index 88df5fb..4db38b1 100644 --- a/wasm/typescript/package.json +++ b/wasm/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@itk-wasm/morphological-contour-interpolation", - "version": "1.0.1", + "version": "1.1.0", "packageManager": "pnpm@8.11.0", "description": "N-D morphology-based approach for interslice interpolation of anatomical slices from volumetric images.", "type": "module", @@ -20,7 +20,8 @@ "build": "pnpm build:tsc && pnpm build:browser:workerEmbedded && pnpm build:browser:workerEmbeddedMin && pnpm build:demo", "build:browser:workerEmbedded": "esbuild --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.js ./src/index-worker-embedded.ts", "build:browser:workerEmbeddedMin": "esbuild --minify --loader:.worker.js=dataurl --bundle --format=esm --outfile=./dist/bundle/index-worker-embedded.min.js ./src/index-worker-embedded.min.ts", - "build:tsc": "tsc --pretty", + "build:tsc": "pnpm build:version && tsc --pretty", + "build:version": "node -p \"'const version = ' + JSON.stringify(require('./package.json').version) + '\\nexport default version\\n'\" > src/version.ts", "copyShoelaceAssets": "shx mkdir -p test/browser/demo-app/public && shx cp -r node_modules/@shoelace-style/shoelace/dist/assets test/browser/demo-app/public/", "build:demo": "pnpm copyShoelaceAssets && vite build" }, @@ -33,7 +34,7 @@ "author": "", "license": "Apache-2.0", "dependencies": { - "itk-wasm": "1.0.0-b.165" + "itk-wasm": "1.0.0-b.173" }, "devDependencies": { "@itk-wasm/image-io": "^1.1.0",