-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dicomImageLoader types): Add types to the dicom image loader (#441)
* initial effort * internal options * wip * add wadors metadata types * wip * finish wadors * wadouri metadata * image loader wip * finish image loader * shared * added all types * updated package json * rename * rename * finish rename * fix missing types * rename wado * fix build * update yarn lock * Improve WARORS types as per PR comments (#449) Co-authored-by: James Manners <james@binary.com.au> * add types for wasm codec modules (#450) * Improve WARORS types as per PR comments * [dicom-image-loader] add types for wasm codec modules * [dicom-image-loader] relocate WASM types --------- Co-authored-by: James Manners <james@binary.com.au> * apply review comments - working dynamic import * rename dicom image loader to cornerstone image loader * replace cswado with csdicom loader * bring back cs wado for now --------- Co-authored-by: James Manners <james@manners.net.au> Co-authored-by: James Manners <james@binary.com.au>
- Loading branch information
1 parent
a30c081
commit 10a3370
Showing
155 changed files
with
2,269 additions
and
1,569 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const _ = require('lodash'); | ||
|
||
// Merge two objects | ||
// Instead of merging array objects index by index (n-th source | ||
// item with n-th object item) it concatenates both arrays | ||
module.exports = function (object, source) { | ||
const clone = _.cloneDeep(object); | ||
const merged = _.mergeWith( | ||
clone, | ||
source, | ||
function (objValue, srcValue, key, object, source, stack) { | ||
if (objValue && srcValue && _.isArray(objValue) && _.isArray(srcValue)) { | ||
return _.concat(objValue, srcValue); | ||
} | ||
} | ||
); | ||
|
||
return merged; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
...ImageLoader/config/webpack/webpack-dev.js → .../dicomImageLoader/.webpack/webpack-dev.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.