Skip to content

Commit

Permalink
feat(segmentation export): add new cornerstone3D segmentation export …
Browse files Browse the repository at this point in the history
…adapter (#692)

* chore(adapters): ability to cache and build ESM modules

* wip

* refactoring

* remove bound ijk which is unnecessary since we moved to world

* add data set module to the metadata providers

* add a new method to segmentation state

* add the new parser

* work without rle encode

* fix demo for export color

* add centroid calculations

* add trigger event for segmentation load progress

* update dcmjs

* update api

* fix example

* remove the promise await

* apply review comments

* add adapters section to examples

* add adapters dep to docs

* add eslint rule

* example deploy
  • Loading branch information
sedghi authored Jul 28, 2023
1 parent 8d99623 commit 9e743f5
Show file tree
Hide file tree
Showing 55 changed files with 1,261 additions and 411 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@
"tsconfigRootDir": "./"
},
"rules": {
// Enforce consistent brace style for all control statements for readability
"curly": "error",
"tsdoc/syntax": "warn",
"@typescript-eslint/ban-ts-comment": "off",
"no-console": [
Expand Down
4 changes: 4 additions & 0 deletions common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1981,6 +1981,9 @@ function getActiveSegmentationRepresentation(toolGroupId: string): ToolGroupSpec
// @public (undocumented)
function getActiveSegmentIndex(segmentationId: string): number | undefined;

// @public (undocumented)
function getAllSegmentationRepresentations(): Record<string, ToolGroupSpecificRepresentation[]>;

// @public (undocumented)
function getAllSynchronizers(): Array<Synchronizer>;

Expand Down Expand Up @@ -4863,6 +4866,7 @@ declare namespace state_3 {
getSegmentSpecificRepresentationConfig,
setSegmentSpecificRepresentationConfig,
getToolGroupIdsWithSegmentation,
getAllSegmentationRepresentations,
getSegmentationRepresentationByUID,
addColorLUT,
getColorLUT,
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": ["build", "test"]
"cacheableOperations": ["build", "test", "build:esm"]
}
}
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"build": "npx lerna run build --stream",
"build:esm": "npx lerna run build:esm --stream",
"build:umd": "npx lerna run build:umd --stream",
"watch": "npx lerna watch -- lerna run build --scope=$LERNA_PACKAGE_NAME --include-dependents",
"build:update-api:core": "cd packages/core && npm run build:update-api",
"build:update-api:tools": "cd packages/tools && npm run build:update-api",
"build:update-api:adapters": "cd packages/adapters && npm run build:update-api",
Expand Down
4 changes: 0 additions & 4 deletions packages/adapters/config/webpack/index.js

This file was deleted.

15 changes: 0 additions & 15 deletions packages/adapters/config/webpack/merge.js

This file was deleted.

30 changes: 0 additions & 30 deletions packages/adapters/config/webpack/webpack-base.js

This file was deleted.

16 changes: 0 additions & 16 deletions packages/adapters/config/webpack/webpack-dev.js

This file was deleted.

16 changes: 0 additions & 16 deletions packages/adapters/config/webpack/webpack-prod.js

This file was deleted.

21 changes: 0 additions & 21 deletions packages/adapters/examples/index.html

This file was deleted.

Loading

0 comments on commit 9e743f5

Please sign in to comment.