Skip to content

Commit

Permalink
Merge pull request #630 from Kitware/improve-itk-dicom-usage
Browse files Browse the repository at this point in the history
Upgrade itk-wasm
  • Loading branch information
floryst authored Jul 30, 2024
2 parents 8d8319b + 55016b7 commit 4dbb960
Show file tree
Hide file tree
Showing 11 changed files with 2,196 additions and 594 deletions.
2,314 changes: 1,970 additions & 344 deletions package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
},
"dependencies": {
"@aws-sdk/client-s3": "^3.435.0",
"@itk-wasm/dicom": "^5.0.0",
"@itk-wasm/image-io": "^0.5.0",
"@itk-wasm/dicom": "6.0.1",
"@itk-wasm/image-io": "1.1.1",
"@kitware/vtk.js": "^29.0.0",
"@netlify/edge-functions": "^2.0.0",
"@sentry/vue": "^7.54.0",
Expand All @@ -39,7 +39,7 @@
"fast-deep-equal": "^3.1.3",
"file-saver": "^2.0.5",
"gl-matrix": "3.4.3",
"itk-wasm": "1.0.0-b.156",
"itk-wasm": "1.0.0-b.171",
"jszip": "3.10.0",
"mitt": "^3.0.0",
"nanoid": "^4.0.1",
Expand Down
4 changes: 0 additions & 4 deletions src/core/provider.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
import { DICOMIO } from '../io/dicom';
import PaintTool from './tools/paint';

/**
* Pinia plugin for injecting tool services.
*/
export function CorePiniaProviderPlugin({
paint,
dicomIO,
}: {
paint?: PaintTool;
dicomIO?: DICOMIO;
} = {}) {
const dependencies = {
$paint: paint ?? new PaintTool(),
$dicomIO: dicomIO ?? new DICOMIO(),
};
return () => dependencies;
}
2 changes: 0 additions & 2 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import 'pinia';
import type { Framework } from 'vuetify/types';
import PaintTool from './core/tools/paint';
import { DICOMIO } from './io/dicom';

declare module 'pinia' {
export interface PiniaCustomProperties {
// from CorePiniaProviderPlugin
$paint: PaintTool;
$dicomIO: DICOMIO;
}
}

Expand Down
Loading

0 comments on commit 4dbb960

Please sign in to comment.