{"_id":"@alireza-beta-script/dicom-image-loader-new","_rev":"9-b3743b60466088270edb5c98fef74c2f","name":"@alireza-beta-script/dicom-image-loader-new","dist-tags":{"latest":"2.1.0","beta":"3.0.0-beta.2"},"versions":{"1.0.1":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"1.0.1","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^1.0.1","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"4d0e9507f90200c42cd973edc7938d054cfa204c","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@1.0.1","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-M6k+Bb29eExciNDsjg5p5U5aw/1oUGSMptIPaULDiwVCA0T/WuVr/A8H9pigXdGXhwrzuVlOaVQdcDfFQZGkMA==","shasum":"2e0a80897cbc4ce632a4dc55603c781849ac2632","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-1.0.1.tgz","fileCount":21,"unpackedSize":11526482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBMv0F9O7Bmv+UU1bW3h7b95fnqMpgTF3h8u6r1optY7AiBy0HwkTN1GkALGc+ewO5jbH4+BDK1I7eebO57yUfx5aQ=="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_1.0.1_1690897027327_0.574016954643588"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"2.0.0-beta.1","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^2.0.0-beta.1","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"963649bd15efb92605c512c8f115b29f06fb01fb","readme":"# DICOM Image Loader\n\nThis package provides a DICOM image loader for the Cornerstone library.\nThis is the successor to the [cornerstoneDICOMImageLoader] which provides the following\nadded features:\n\n- Typescript support (and type definitions)\n- Better developer experience (e.g. mono repo, linting, etc)\n\n\n\nA [cornerstone](https://github.com/cornerstonejs/cornerstone) Image Loader for\nDICOM P10 instances over HTTP (WADO-URI) or DICOMWeb (WADO-RS) and Local filedisk. This can be used\nto integrate cornerstone with WADO-URI servers, DICOMWeb servers or any other\nHTTP based server that returns DICOM P10 instances (e.g.\n[Orthanc](http://www.orthanc-server.com/) or custom servers)\n\n## Key Features\n\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for DICOM P10 Instances via a HTTP get request.\n  - Can be used with a WADO-URI server\n  - Can be used with Orthanc's file endpoint\n  - Can be used with any server that returns DICOM P10 instances via HTTP GET\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for WADO-RS (DICOMWeb)\n- Supports many popular transfer syntaxes and photometric interpretations\n  [see full list](docs/TransferSyntaxes.md)\n  and [codec](docs/Codecs.md) for more information.\n- Dynamicly Utilizes WebAssembly (WASM) builds of each codec which sgnificantly improves image decoding performance and enables us to load codec at runtime when needed dynamically, which reduces the build time and complexity.\n- Framework to execute CPU intensive tasks in [web workers](docs/WebWorkers.md)\n  - Used for image decoding\n  - Can be used for your own CPU intensive tasks (e.g. image processing)\n\n\n## Install\n\n### NPM\n\n```bash\nyarn add @alireza-test-monorepo/dicom-image-loader\n```\n\n\n\n## Usage\n\nSpecify the cornerstone instance you want to register the loader with.\n\n```javascript\ncornerstoneDICOMImageLoader.external.cornerstone = cornerstone;\n```\n\nHave your code configure the web worker framework:\n\n```javascript\nvar config = {\n  maxWebWorkers: navigator.hardwareConcurrency || 1,\n  startWebWorkersOnDemand: true,\n};\ncornerstoneDICOMImageLoader.webWorkerManager.initialize(config);\n```\n\nSee the [web workers](docs/WebWorkers.md) documentation for more details on\nconfiguring.\n\n\n\n#### Dynamic Import\n\nTo be able to use the dynamic import feature for CDIL, instead of\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader';\n```\n\nyou need to do:\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js';\n```\n\nThis way, codecs are loaded dynamically when needed. You have another option to\ncreate an alias in the webpack config file:\n\n```js\nresolve: {\n  alias: {\n    '@alireza-test-monorepo/dicom-image-loader':\n      '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js',\n  },\n},\n```\n\nIn addition WASM builds of the codec files should be made available in the build\nfolder. You can use `CopyWebpackPlugin` to copy the WASM files to the build folder.\n\n\n```js\n plugins: [\n  new CopyWebpackPlugin([\n    {\n      from:\n        '../../../node_modules/@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import',\n      to: DIST_DIR,\n    },\n  ]),\n```\n\nNote 1: You need to give the correct path in the `CopyWebpackPlugin`, the above\npath is relative to the `node_modules` folder in the OHIF Viewer.\n\nNote 2: For other http servers like IIS, you need to configure it to serve WASM\nfiles with the correct MIME type.\n\n\n## Backlog\n\n- ESM build for the library\n- Make the examples work again\n- Free up DICOM P10 instance after decoding to reduce memory consumption\n- Look at using EMSCRIPTEN based build of IJG for JPEG\n- Add support for bulk data items to WADO-RS Loader\n- WebWorker Manager\n  - Better handling of web worker loading\n  - Add events to webWorkerManager so its activity can be monitored\n  - Add support for issuing progress events from web worker tasks\n\n# FAQ\n\n_Why is this a separate library from cornerstone?_\n\nMainly to avoid adding a dependency to cornerstone for the DICOM parsing\nlibrary. While cornerstone is intended to be used to display medical images that\nare stored in DICOM, cornerstone aims to simplify the use of medical imaging and\ntherefore tries to hide some of the complexity that exists within DICOM. It is\nalso desirable to support display of non DICOM images so a DICOM independent\nimage model makes sense.\n\n_How do I build this library myself?_\n\nSee the documentation [here](docs/Building.md)\n\n_How do I add my own custom web worker tasks?_\n\nSee the documentation [here](docs/WebWorkers.md)\n\n_How do I create imageIds that work with this image loader?_\n\nSee the documentation [here](docs/ImageIds.md)\n\n# What Transfer Syntaxes are supported?\n\nSee [transfer syntaxes](docs/TransferSyntaxes.md)\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/@alireza-test-monorepo/dicom-image-loader\n[npm-version-image]: http://img.shields.io/npm/v/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n\n[travis-url]: http://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader\n[travis-image]: https://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader.svg?branch=master\n\n[coverage-url]: https://coveralls.io/github/cornerstonejs/cornerstoneDICOMImageLoader?branch=master\n[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstoneDICOMImageLoader/badge.svg?branch=master\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@2.0.0-beta.1","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-XRzFVMjxD1/TMk+e/utQSuftHxUTA3d6tBQqlBcGerSKQSJLLYAq9ZgxKeEiogd8SFOrzAv/GJW+2N4Z4+wYnQ==","shasum":"6097a6767b60f3d3e09ca3cc53ef29b36c4cdda8","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-2.0.0-beta.1.tgz","fileCount":21,"unpackedSize":11526496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFK9W6CBIqezbqlIIMBpqHDdSUvFi9b2zbOIwvI9pHd+AiA4j6qxzY7LITL4aqPSqCKAmfI6SwMYzj5/LJxPN5r+sw=="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_2.0.0-beta.1_1690897603476_0.5796716171853986"},"_hasShrinkwrap":false},"1.1.0":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"1.1.0","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^1.1.0","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"b92dd73cfe1d241fd7b658fc583db4971d302448","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@1.1.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-dDv3Z1FXeAjLjKYTVnW5/MJcTOGj81PY1SMp3VHAvb46tKp8uZSX4uOqJ0Ijj4yLaBLjh4zh+TkEsgxVSswAxQ==","shasum":"c37fffe9f2bdec75d3be040b12a03284b6854340","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-1.1.0.tgz","fileCount":21,"unpackedSize":11526482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDRmoaMvPOqjVUQvy2TZoBAwdIHqcA77aJR8nBUyuXyIgIhAJtCm7UEO6VhuBP0BLNB+CBYWK+5QHPPzsg/T3hJU/Gw"}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_1.1.0_1690897951306_0.45257533979185904"},"_hasShrinkwrap":false},"2.0.0-beta.2":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"2.0.0-beta.2","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^2.0.0-beta.2","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"e4a20dfb9b8776ab161a61b5e6b34798fa405e42","readme":"# DICOM Image Loader\n\nThis package provides a DICOM image loader for the Cornerstone library.\nThis is the successor to the [cornerstoneDICOMImageLoader] which provides the following\nadded features:\n\n- Typescript support (and type definitions)\n- Better developer experience (e.g. mono repo, linting, etc)\n\n\n\nA [cornerstone](https://github.com/cornerstonejs/cornerstone) Image Loader for\nDICOM P10 instances over HTTP (WADO-URI) or DICOMWeb (WADO-RS) and Local filedisk. This can be used\nto integrate cornerstone with WADO-URI servers, DICOMWeb servers or any other\nHTTP based server that returns DICOM P10 instances (e.g.\n[Orthanc](http://www.orthanc-server.com/) or custom servers)\n\n## Key Features\n\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for DICOM P10 Instances via a HTTP get request.\n  - Can be used with a WADO-URI server\n  - Can be used with Orthanc's file endpoint\n  - Can be used with any server that returns DICOM P10 instances via HTTP GET\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for WADO-RS (DICOMWeb)\n- Supports many popular transfer syntaxes and photometric interpretations\n  [see full list](docs/TransferSyntaxes.md)\n  and [codec](docs/Codecs.md) for more information.\n- Dynamicly Utilizes WebAssembly (WASM) builds of each codec which sgnificantly improves image decoding performance and enables us to load codec at runtime when needed dynamically, which reduces the build time and complexity.\n- Framework to execute CPU intensive tasks in [web workers](docs/WebWorkers.md)\n  - Used for image decoding\n  - Can be used for your own CPU intensive tasks (e.g. image processing)\n\n\n## Install\n\n### NPM\n\n```bash\nyarn add @alireza-test-monorepo/dicom-image-loader\n```\n\n\n\n## Usage\n\nSpecify the cornerstone instance you want to register the loader with.\n\n```javascript\ncornerstoneDICOMImageLoader.external.cornerstone = cornerstone;\n```\n\nHave your code configure the web worker framework:\n\n```javascript\nvar config = {\n  maxWebWorkers: navigator.hardwareConcurrency || 1,\n  startWebWorkersOnDemand: true,\n};\ncornerstoneDICOMImageLoader.webWorkerManager.initialize(config);\n```\n\nSee the [web workers](docs/WebWorkers.md) documentation for more details on\nconfiguring.\n\n\n\n#### Dynamic Import\n\nTo be able to use the dynamic import feature for CDIL, instead of\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader';\n```\n\nyou need to do:\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js';\n```\n\nThis way, codecs are loaded dynamically when needed. You have another option to\ncreate an alias in the webpack config file:\n\n```js\nresolve: {\n  alias: {\n    '@alireza-test-monorepo/dicom-image-loader':\n      '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js',\n  },\n},\n```\n\nIn addition WASM builds of the codec files should be made available in the build\nfolder. You can use `CopyWebpackPlugin` to copy the WASM files to the build folder.\n\n\n```js\n plugins: [\n  new CopyWebpackPlugin([\n    {\n      from:\n        '../../../node_modules/@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import',\n      to: DIST_DIR,\n    },\n  ]),\n```\n\nNote 1: You need to give the correct path in the `CopyWebpackPlugin`, the above\npath is relative to the `node_modules` folder in the OHIF Viewer.\n\nNote 2: For other http servers like IIS, you need to configure it to serve WASM\nfiles with the correct MIME type.\n\n\n## Backlog\n\n- ESM build for the library\n- Make the examples work again\n- Free up DICOM P10 instance after decoding to reduce memory consumption\n- Look at using EMSCRIPTEN based build of IJG for JPEG\n- Add support for bulk data items to WADO-RS Loader\n- WebWorker Manager\n  - Better handling of web worker loading\n  - Add events to webWorkerManager so its activity can be monitored\n  - Add support for issuing progress events from web worker tasks\n\n# FAQ\n\n_Why is this a separate library from cornerstone?_\n\nMainly to avoid adding a dependency to cornerstone for the DICOM parsing\nlibrary. While cornerstone is intended to be used to display medical images that\nare stored in DICOM, cornerstone aims to simplify the use of medical imaging and\ntherefore tries to hide some of the complexity that exists within DICOM. It is\nalso desirable to support display of non DICOM images so a DICOM independent\nimage model makes sense.\n\n_How do I build this library myself?_\n\nSee the documentation [here](docs/Building.md)\n\n_How do I add my own custom web worker tasks?_\n\nSee the documentation [here](docs/WebWorkers.md)\n\n_How do I create imageIds that work with this image loader?_\n\nSee the documentation [here](docs/ImageIds.md)\n\n# What Transfer Syntaxes are supported?\n\nSee [transfer syntaxes](docs/TransferSyntaxes.md)\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/@alireza-test-monorepo/dicom-image-loader\n[npm-version-image]: http://img.shields.io/npm/v/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n\n[travis-url]: http://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader\n[travis-image]: https://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader.svg?branch=master\n\n[coverage-url]: https://coveralls.io/github/cornerstonejs/cornerstoneDICOMImageLoader?branch=master\n[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstoneDICOMImageLoader/badge.svg?branch=master\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@2.0.0-beta.2","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-GgMUpldSqp7ZRGIml66tnzm16Ce6y9QRaGBPMolNxhpFlLPiVcbet/dJbiiQXN7k+bCvs+m7CN9nIGW/eGELpw==","shasum":"3d4fb82b7de6f2f866080453b0c3ecbb5df08e42","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-2.0.0-beta.2.tgz","fileCount":21,"unpackedSize":11526496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIADGBST4Uet7Q63FRmT5nUp9nUb6Vob6lKkxO4ot7BkOAiBG4ESqdAVrH3LnWFF0l/ICD8uApZrUaKBW2d6F9sDoTg=="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_2.0.0-beta.2_1690898280577_0.8095501536588219"},"_hasShrinkwrap":false},"1.2.0":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"1.2.0","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^1.2.0","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"91c4ce0d08c97b70f313d1778e30ad2e3640521c","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@1.2.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-lHXfIGxsyV7FuMjUrO47O4/KHG42ngrsfsqLvbv5ihDMj4BvtyxYXoX+VtgdLDnzQ0rWXMHo7WJRkdLwvHfi3A==","shasum":"ec1969f695b5ba175f84a9ce4db94ea4cce35d51","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-1.2.0.tgz","fileCount":21,"unpackedSize":11526482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXvBz1lAjOdfp3L9wjZ8yD+s7C49c3qUAHZoEoek6E8AiBvWhHKCOWVirxlndB63SSCkQvz+uY4/OYwIKS1zi1x1w=="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_1.2.0_1690899020461_0.3929681865095509"},"_hasShrinkwrap":false},"2.0.0-beta.3":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"2.0.0-beta.3","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^2.0.0-beta.3","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"d8bc8471c6358311ee234e351a82ecc46e969b33","readme":"# DICOM Image Loader\n\nThis package provides a DICOM image loader for the Cornerstone library.\nThis is the successor to the [cornerstoneDICOMImageLoader] which provides the following\nadded features:\n\n- Typescript support (and type definitions)\n- Better developer experience (e.g. mono repo, linting, etc)\n\n\n\nA [cornerstone](https://github.com/cornerstonejs/cornerstone) Image Loader for\nDICOM P10 instances over HTTP (WADO-URI) or DICOMWeb (WADO-RS) and Local filedisk. This can be used\nto integrate cornerstone with WADO-URI servers, DICOMWeb servers or any other\nHTTP based server that returns DICOM P10 instances (e.g.\n[Orthanc](http://www.orthanc-server.com/) or custom servers)\n\n## Key Features\n\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for DICOM P10 Instances via a HTTP get request.\n  - Can be used with a WADO-URI server\n  - Can be used with Orthanc's file endpoint\n  - Can be used with any server that returns DICOM P10 instances via HTTP GET\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for WADO-RS (DICOMWeb)\n- Supports many popular transfer syntaxes and photometric interpretations\n  [see full list](docs/TransferSyntaxes.md)\n  and [codec](docs/Codecs.md) for more information.\n- Dynamicly Utilizes WebAssembly (WASM) builds of each codec which sgnificantly improves image decoding performance and enables us to load codec at runtime when needed dynamically, which reduces the build time and complexity.\n- Framework to execute CPU intensive tasks in [web workers](docs/WebWorkers.md)\n  - Used for image decoding\n  - Can be used for your own CPU intensive tasks (e.g. image processing)\n\n\n## Install\n\n### NPM\n\n```bash\nyarn add @alireza-test-monorepo/dicom-image-loader\n```\n\n\n\n## Usage\n\nSpecify the cornerstone instance you want to register the loader with.\n\n```javascript\ncornerstoneDICOMImageLoader.external.cornerstone = cornerstone;\n```\n\nHave your code configure the web worker framework:\n\n```javascript\nvar config = {\n  maxWebWorkers: navigator.hardwareConcurrency || 1,\n  startWebWorkersOnDemand: true,\n};\ncornerstoneDICOMImageLoader.webWorkerManager.initialize(config);\n```\n\nSee the [web workers](docs/WebWorkers.md) documentation for more details on\nconfiguring.\n\n\n\n#### Dynamic Import\n\nTo be able to use the dynamic import feature for CDIL, instead of\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader';\n```\n\nyou need to do:\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js';\n```\n\nThis way, codecs are loaded dynamically when needed. You have another option to\ncreate an alias in the webpack config file:\n\n```js\nresolve: {\n  alias: {\n    '@alireza-test-monorepo/dicom-image-loader':\n      '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js',\n  },\n},\n```\n\nIn addition WASM builds of the codec files should be made available in the build\nfolder. You can use `CopyWebpackPlugin` to copy the WASM files to the build folder.\n\n\n```js\n plugins: [\n  new CopyWebpackPlugin([\n    {\n      from:\n        '../../../node_modules/@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import',\n      to: DIST_DIR,\n    },\n  ]),\n```\n\nNote 1: You need to give the correct path in the `CopyWebpackPlugin`, the above\npath is relative to the `node_modules` folder in the OHIF Viewer.\n\nNote 2: For other http servers like IIS, you need to configure it to serve WASM\nfiles with the correct MIME type.\n\n\n## Backlog\n\n- ESM build for the library\n- Make the examples work again\n- Free up DICOM P10 instance after decoding to reduce memory consumption\n- Look at using EMSCRIPTEN based build of IJG for JPEG\n- Add support for bulk data items to WADO-RS Loader\n- WebWorker Manager\n  - Better handling of web worker loading\n  - Add events to webWorkerManager so its activity can be monitored\n  - Add support for issuing progress events from web worker tasks\n\n# FAQ\n\n_Why is this a separate library from cornerstone?_\n\nMainly to avoid adding a dependency to cornerstone for the DICOM parsing\nlibrary. While cornerstone is intended to be used to display medical images that\nare stored in DICOM, cornerstone aims to simplify the use of medical imaging and\ntherefore tries to hide some of the complexity that exists within DICOM. It is\nalso desirable to support display of non DICOM images so a DICOM independent\nimage model makes sense.\n\n_How do I build this library myself?_\n\nSee the documentation [here](docs/Building.md)\n\n_How do I add my own custom web worker tasks?_\n\nSee the documentation [here](docs/WebWorkers.md)\n\n_How do I create imageIds that work with this image loader?_\n\nSee the documentation [here](docs/ImageIds.md)\n\n# What Transfer Syntaxes are supported?\n\nSee [transfer syntaxes](docs/TransferSyntaxes.md)\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/@alireza-test-monorepo/dicom-image-loader\n[npm-version-image]: http://img.shields.io/npm/v/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n\n[travis-url]: http://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader\n[travis-image]: https://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader.svg?branch=master\n\n[coverage-url]: https://coveralls.io/github/cornerstonejs/cornerstoneDICOMImageLoader?branch=master\n[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstoneDICOMImageLoader/badge.svg?branch=master\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@2.0.0-beta.3","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-HgZetPQe8r+Q/n25793rRavSHdhgATtuZR6boz7Awl/A5CXNemMkZ2sRk1Qx9FjmCD/gKcL1YxGCstm7yR/Fuw==","shasum":"d03d65a49f6fa729a6ee90c16cd9ad6db0196603","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-2.0.0-beta.3.tgz","fileCount":21,"unpackedSize":11526496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA5AsNBx+k0EVuzbO+kfYn/YTleICRfy47cdrIc2Ndw8AiBMeDaBRaiAmiVOl85cE5Q06cCLwzG04J7ALty5Wf3wwQ=="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_2.0.0-beta.3_1690899568043_0.38586795527100715"},"_hasShrinkwrap":false},"2.0.0":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"2.0.0","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^2.0.0","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"84482205fae4b70190be893d0f88144c32c0ec34","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@2.0.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-WczW4PN0xdu7QT6J58K0AcuLfj0EeeNpUK5BmjPEYBmAbEABC7uJUjznlHxUDrCOIIV2VVQ72cgdbU3n309kCQ==","shasum":"f226a1c353b543c0cd57ea6a568004402913a0ca","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-2.0.0.tgz","fileCount":21,"unpackedSize":11526482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvuE47yf2+e0Hsf9oUu5zTF9qI2LVnuui+5VMWSkYmbAIgWlLtKwyj7TeywoJlvJzvlujV4gzlgjG2fC70mXKE3gw="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_2.0.0_1690900039819_0.37669940672205704"},"_hasShrinkwrap":false},"3.0.0-beta.1":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"3.0.0-beta.1","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^3.0.0-beta.1","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"299ae2783e01960977bbc088882c880832ee41c7","readme":"# DICOM Image Loader\n\nThis package provides a DICOM image loader for the Cornerstone library.\nThis is the successor to the [cornerstoneDICOMImageLoader] which provides the following\nadded features:\n\n- Typescript support (and type definitions)\n- Better developer experience (e.g. mono repo, linting, etc)\n\n\n\nA [cornerstone](https://github.com/cornerstonejs/cornerstone) Image Loader for\nDICOM P10 instances over HTTP (WADO-URI) or DICOMWeb (WADO-RS) and Local filedisk. This can be used\nto integrate cornerstone with WADO-URI servers, DICOMWeb servers or any other\nHTTP based server that returns DICOM P10 instances (e.g.\n[Orthanc](http://www.orthanc-server.com/) or custom servers)\n\n## Key Features\n\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for DICOM P10 Instances via a HTTP get request.\n  - Can be used with a WADO-URI server\n  - Can be used with Orthanc's file endpoint\n  - Can be used with any server that returns DICOM P10 instances via HTTP GET\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for WADO-RS (DICOMWeb)\n- Supports many popular transfer syntaxes and photometric interpretations\n  [see full list](docs/TransferSyntaxes.md)\n  and [codec](docs/Codecs.md) for more information.\n- Dynamicly Utilizes WebAssembly (WASM) builds of each codec which sgnificantly improves image decoding performance and enables us to load codec at runtime when needed dynamically, which reduces the build time and complexity.\n- Framework to execute CPU intensive tasks in [web workers](docs/WebWorkers.md)\n  - Used for image decoding\n  - Can be used for your own CPU intensive tasks (e.g. image processing)\n\n\n## Install\n\n### NPM\n\n```bash\nyarn add @alireza-test-monorepo/dicom-image-loader\n```\n\n\n\n## Usage\n\nSpecify the cornerstone instance you want to register the loader with.\n\n```javascript\ncornerstoneDICOMImageLoader.external.cornerstone = cornerstone;\n```\n\nHave your code configure the web worker framework:\n\n```javascript\nvar config = {\n  maxWebWorkers: navigator.hardwareConcurrency || 1,\n  startWebWorkersOnDemand: true,\n};\ncornerstoneDICOMImageLoader.webWorkerManager.initialize(config);\n```\n\nSee the [web workers](docs/WebWorkers.md) documentation for more details on\nconfiguring.\n\n\n\n#### Dynamic Import\n\nTo be able to use the dynamic import feature for CDIL, instead of\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader';\n```\n\nyou need to do:\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js';\n```\n\nThis way, codecs are loaded dynamically when needed. You have another option to\ncreate an alias in the webpack config file:\n\n```js\nresolve: {\n  alias: {\n    '@alireza-test-monorepo/dicom-image-loader':\n      '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js',\n  },\n},\n```\n\nIn addition WASM builds of the codec files should be made available in the build\nfolder. You can use `CopyWebpackPlugin` to copy the WASM files to the build folder.\n\n\n```js\n plugins: [\n  new CopyWebpackPlugin([\n    {\n      from:\n        '../../../node_modules/@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import',\n      to: DIST_DIR,\n    },\n  ]),\n```\n\nNote 1: You need to give the correct path in the `CopyWebpackPlugin`, the above\npath is relative to the `node_modules` folder in the OHIF Viewer.\n\nNote 2: For other http servers like IIS, you need to configure it to serve WASM\nfiles with the correct MIME type.\n\n\n## Backlog\n\n- ESM build for the library\n- Make the examples work again\n- Free up DICOM P10 instance after decoding to reduce memory consumption\n- Look at using EMSCRIPTEN based build of IJG for JPEG\n- Add support for bulk data items to WADO-RS Loader\n- WebWorker Manager\n  - Better handling of web worker loading\n  - Add events to webWorkerManager so its activity can be monitored\n  - Add support for issuing progress events from web worker tasks\n\n# FAQ\n\n_Why is this a separate library from cornerstone?_\n\nMainly to avoid adding a dependency to cornerstone for the DICOM parsing\nlibrary. While cornerstone is intended to be used to display medical images that\nare stored in DICOM, cornerstone aims to simplify the use of medical imaging and\ntherefore tries to hide some of the complexity that exists within DICOM. It is\nalso desirable to support display of non DICOM images so a DICOM independent\nimage model makes sense.\n\n_How do I build this library myself?_\n\nSee the documentation [here](docs/Building.md)\n\n_How do I add my own custom web worker tasks?_\n\nSee the documentation [here](docs/WebWorkers.md)\n\n_How do I create imageIds that work with this image loader?_\n\nSee the documentation [here](docs/ImageIds.md)\n\n# What Transfer Syntaxes are supported?\n\nSee [transfer syntaxes](docs/TransferSyntaxes.md)\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/@alireza-test-monorepo/dicom-image-loader\n[npm-version-image]: http://img.shields.io/npm/v/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n\n[travis-url]: http://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader\n[travis-image]: https://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader.svg?branch=master\n\n[coverage-url]: https://coveralls.io/github/cornerstonejs/cornerstoneDICOMImageLoader?branch=master\n[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstoneDICOMImageLoader/badge.svg?branch=master\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@3.0.0-beta.1","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-M6/JIqmWmim77oc6f9w3qPpvzOLYETGn3C5HO/AX2UmLZvPKUhXz5Vs5P+WHnGvOK+aWlFP5Bv2UqtvzT1WU2w==","shasum":"8cd0210d191b384f3551b1deede2ca617307d06c","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-3.0.0-beta.1.tgz","fileCount":21,"unpackedSize":11526496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAx2uEMHgj0hFIiLSUU6xlOAdCn+dMSKON3QClZSRHV5AiEA34Djfq9q1mJ22X8q1N9vZMf14pBWIqurCPU11TziwwQ="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_3.0.0-beta.1_1690903637063_0.9516360907318144"},"_hasShrinkwrap":false},"2.1.0":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"2.1.0","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^2.1.0","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"5a0103524127c6ae6ddf507c11bec325bd01633d","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@2.1.0","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-7nQw3QVLB9iMn9df/es891imQaRh6u6jcaszIab8yjKv09Dc4m7quLJ03O3/R4halSK79ioWwBSrmdGSEo5aJA==","shasum":"4bbb71e79d3e0f96af513f3bdafff8b6b17e5057","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-2.1.0.tgz","fileCount":21,"unpackedSize":11526482,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxfEyyGcHxmBetDtbH7vfeosnv0t62rKVzKmiUYgwXEwIgZoh5PyRqNv6B0zP+h1kNu9TExj8EY4dACMszwaReYE8="}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_2.1.0_1690913886489_0.5984447904403409"},"_hasShrinkwrap":false},"3.0.0-beta.2":{"name":"@alireza-beta-script/dicom-image-loader-new","version":"3.0.0-beta.2","description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","license":"MIT","main":"dist/cornerstoneDICOMImageLoader.bundle.min.js","module":"dist/esm/src/imageLoader/index.js","repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"publishConfig":{"access":"public"},"scripts":{"build:umd:dynamic":"cross-env NODE_ENV=production webpack --config .webpack/webpack-dynamic-import.js","build:umd:bundle":"cross-env NODE_ENV=production webpack --config .webpack/webpack-bundle.js","build:esm":"echo 'Bypassing ESM build for testing' && true","build:all":"yarn run build:umd:dynamic & yarn run build:umd:bundle","copy-dts":"echo 'not implemented yet'","build":"yarn run build:all && yarn run copy-dts","api-check":"echo 'not implemented yet'","build:update-api":"echo 'not implemented yet'","cm":"npx git-cz","clean":"npm run clean:dist && npm run clean:coverage","clean:dist":"shx rm -rf dist","clean:docs":"shx rm -rf documentation","clean:coverage":"shx rm -rf coverage","doc":"npm run doc:generate && opn documentation/index.html","doc:generate":"npm run clean:docs && jsdoc -c .jsdocrc","eslint":"eslint -c .eslintrc.js src","eslint-quiet":"eslint -c .eslintrc.js --quiet src","eslint-fix":"eslint -c .eslintrc.js --fix src","eslint-fix-test":"eslint -c .eslintrc.js --fix test","start":"npm run webpack:dev","start:dev":"webpack-dev-server --config .webpack/webpack-dev","test":"npm run test:chrome","test:ci":"echo 'test:ci not implemented yet'","test:all":"npm run test && npm run test:chrome && npm run test:firefox","test:chrome":"karma start config/karma/karma-base.js","test:firefox":"karma start config/karma/karma-firefox.js","test:watch":"karma start config/karma/karma-watch.js","watch":"npm run clean && shx mkdir dist && npm run webpack:watch","dev":"npm run webpack:dev","webpack:dev":"webpack serve --progress --config .webpack/webpack-dev.js","webpack:dynamic-import":"webpack --progress --config .webpack/webpack-dynamic-import","webpack:bundle":"webpack --progress --config .webpack/webpack-bundle","webpack:dynamic-import:watch":"webpack --progress --watch --config .webpack/webpack-dynamic-import","webpack:dynamic-import:debug":"webpack --progress --watch --config .webpack/webpack-dynamic-import-debug","webpack:watch":"webpack --progress --watch  --config .webpack","prepublishOnly":"yarn run build"},"dependencies":{"@alireza-beta-script/core-new":"^3.0.0-beta.2","@cornerstonejs/codec-charls":"^1.2.3","@cornerstonejs/codec-libjpeg-turbo-8bit":"^1.2.2","@cornerstonejs/codec-openjpeg":"^1.2.2","@cornerstonejs/codec-openjph":"^2.4.2","dicom-parser":"^1.8.9","pako":"^2.0.4","uuid":"^9.0.0"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"src/**/*.{js,jsx,json,css}":["eslint --fix","prettier --write","git add"]},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"f0a9f6de7e94a9da1cccf4b3f1d8661c5f831f42","readme":"# DICOM Image Loader\n\nThis package provides a DICOM image loader for the Cornerstone library.\nThis is the successor to the [cornerstoneDICOMImageLoader] which provides the following\nadded features:\n\n- Typescript support (and type definitions)\n- Better developer experience (e.g. mono repo, linting, etc)\n\n\n\nA [cornerstone](https://github.com/cornerstonejs/cornerstone) Image Loader for\nDICOM P10 instances over HTTP (WADO-URI) or DICOMWeb (WADO-RS) and Local filedisk. This can be used\nto integrate cornerstone with WADO-URI servers, DICOMWeb servers or any other\nHTTP based server that returns DICOM P10 instances (e.g.\n[Orthanc](http://www.orthanc-server.com/) or custom servers)\n\n## Key Features\n\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for DICOM P10 Instances via a HTTP get request.\n  - Can be used with a WADO-URI server\n  - Can be used with Orthanc's file endpoint\n  - Can be used with any server that returns DICOM P10 instances via HTTP GET\n- Implements a\n  [cornerstone ImageLoader](https://www.cornerstonejs.org/docs/concepts/cornerstone-core/imageLoader)\n  for WADO-RS (DICOMWeb)\n- Supports many popular transfer syntaxes and photometric interpretations\n  [see full list](docs/TransferSyntaxes.md)\n  and [codec](docs/Codecs.md) for more information.\n- Dynamicly Utilizes WebAssembly (WASM) builds of each codec which sgnificantly improves image decoding performance and enables us to load codec at runtime when needed dynamically, which reduces the build time and complexity.\n- Framework to execute CPU intensive tasks in [web workers](docs/WebWorkers.md)\n  - Used for image decoding\n  - Can be used for your own CPU intensive tasks (e.g. image processing)\n\n\n## Install\n\n### NPM\n\n```bash\nyarn add @alireza-test-monorepo/dicom-image-loader\n```\n\n\n\n## Usage\n\nSpecify the cornerstone instance you want to register the loader with.\n\n```javascript\ncornerstoneDICOMImageLoader.external.cornerstone = cornerstone;\n```\n\nHave your code configure the web worker framework:\n\n```javascript\nvar config = {\n  maxWebWorkers: navigator.hardwareConcurrency || 1,\n  startWebWorkersOnDemand: true,\n};\ncornerstoneDICOMImageLoader.webWorkerManager.initialize(config);\n```\n\nSee the [web workers](docs/WebWorkers.md) documentation for more details on\nconfiguring.\n\n\n\n#### Dynamic Import\n\nTo be able to use the dynamic import feature for CDIL, instead of\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader';\n```\n\nyou need to do:\n\n```js\nimport cornerstoneDICOMImageLoader from '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js';\n```\n\nThis way, codecs are loaded dynamically when needed. You have another option to\ncreate an alias in the webpack config file:\n\n```js\nresolve: {\n  alias: {\n    '@alireza-test-monorepo/dicom-image-loader':\n      '@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import/cornerstoneDICOMImageLoader.min.js',\n  },\n},\n```\n\nIn addition WASM builds of the codec files should be made available in the build\nfolder. You can use `CopyWebpackPlugin` to copy the WASM files to the build folder.\n\n\n```js\n plugins: [\n  new CopyWebpackPlugin([\n    {\n      from:\n        '../../../node_modules/@alireza-test-monorepo/dicom-image-loader/dist/dynamic-import',\n      to: DIST_DIR,\n    },\n  ]),\n```\n\nNote 1: You need to give the correct path in the `CopyWebpackPlugin`, the above\npath is relative to the `node_modules` folder in the OHIF Viewer.\n\nNote 2: For other http servers like IIS, you need to configure it to serve WASM\nfiles with the correct MIME type.\n\n\n## Backlog\n\n- ESM build for the library\n- Make the examples work again\n- Free up DICOM P10 instance after decoding to reduce memory consumption\n- Look at using EMSCRIPTEN based build of IJG for JPEG\n- Add support for bulk data items to WADO-RS Loader\n- WebWorker Manager\n  - Better handling of web worker loading\n  - Add events to webWorkerManager so its activity can be monitored\n  - Add support for issuing progress events from web worker tasks\n\n# FAQ\n\n_Why is this a separate library from cornerstone?_\n\nMainly to avoid adding a dependency to cornerstone for the DICOM parsing\nlibrary. While cornerstone is intended to be used to display medical images that\nare stored in DICOM, cornerstone aims to simplify the use of medical imaging and\ntherefore tries to hide some of the complexity that exists within DICOM. It is\nalso desirable to support display of non DICOM images so a DICOM independent\nimage model makes sense.\n\n_How do I build this library myself?_\n\nSee the documentation [here](docs/Building.md)\n\n_How do I add my own custom web worker tasks?_\n\nSee the documentation [here](docs/WebWorkers.md)\n\n_How do I create imageIds that work with this image loader?_\n\nSee the documentation [here](docs/ImageIds.md)\n\n# What Transfer Syntaxes are supported?\n\nSee [transfer syntaxes](docs/TransferSyntaxes.md)\n\n\n[license-image]: http://img.shields.io/badge/license-MIT-blue.svg?style=flat\n[license-url]: LICENSE\n\n[npm-url]: https://npmjs.org/package/@alireza-test-monorepo/dicom-image-loader\n[npm-version-image]: http://img.shields.io/npm/v/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n[npm-downloads-image]: http://img.shields.io/npm/dm/@alireza-test-monorepo/dicom-image-loader.svg?style=flat\n\n[travis-url]: http://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader\n[travis-image]: https://travis-ci.org/cornerstonejs/cornerstoneDICOMImageLoader.svg?branch=master\n\n[coverage-url]: https://coveralls.io/github/cornerstonejs/cornerstoneDICOMImageLoader?branch=master\n[coverage-image]: https://coveralls.io/repos/github/cornerstonejs/cornerstoneDICOMImageLoader/badge.svg?branch=master\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"_id":"@alireza-beta-script/dicom-image-loader-new@3.0.0-beta.2","_nodeVersion":"16.14.2","_npmVersion":"lerna/6.6.1/node@v16.14.2+x64 (linux)","dist":{"integrity":"sha512-Eh+csYu8tGdZFBRhbrhVorIoUYD96ZDtda79RRHgYi1TO+0PArrQLq9UgMgw/7JYzhc8DQe2aAZr9aJg3fTHPw==","shasum":"c7d3e45f67c316cdc75271daeb1a4308add2268c","tarball":"https://registry.npmjs.org/@alireza-beta-script/dicom-image-loader-new/-/dicom-image-loader-new-3.0.0-beta.2.tgz","fileCount":21,"unpackedSize":11526496,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCGa+Am3YTJdgPxJ1d+/RumVKCqzjFEmofV7kEb5OX9NQIhAKjoOauXyiIAG/hfvw3Ug/t/BRxFLz9u6bt5EyDY69ag"}]},"_npmUser":{"name":"sedghi","email":"ar.sedghi@gmail.com"},"directories":{},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dicom-image-loader-new_3.0.0-beta.2_1690914943987_0.09874978043209626"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-01T13:37:07.200Z","1.0.1":"2023-08-01T13:37:07.575Z","modified":"2023-08-01T18:35:44.619Z","2.0.0-beta.1":"2023-08-01T13:46:43.748Z","1.1.0":"2023-08-01T13:52:31.528Z","2.0.0-beta.2":"2023-08-01T13:58:00.909Z","1.2.0":"2023-08-01T14:10:20.762Z","2.0.0-beta.3":"2023-08-01T14:19:28.310Z","2.0.0":"2023-08-01T14:27:20.109Z","3.0.0-beta.1":"2023-08-01T15:27:17.277Z","2.1.0":"2023-08-01T18:18:06.690Z","3.0.0-beta.2":"2023-08-01T18:35:44.477Z"},"maintainers":[{"name":"sedghi","email":"ar.sedghi@gmail.com"}],"description":"Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file","homepage":"https://github.com/cornerstonejs/cornerstone3D-beta","keywords":["DICOM","WADO","cornerstone","medical","imaging"],"repository":{"type":"git","url":"git+https://github.com/cornerstonejs/cornerstone3D-beta.git"},"author":{"name":"@cornerstonejs","url":"previously Chris Hafey"},"bugs":{"url":"https://github.com/cornerstonejs/cornerstone3D-beta/issues"},"license":"MIT","readme":"","readmeFilename":""}