cod-dicomweb-server 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/cjs/1104a37b16dee0d2ada1.ts +14 -0
- package/dist/cjs/7d4e5892d21def245792.ts +14 -0
- package/dist/cjs/main.js +1957 -0
- package/dist/{types → esm}/classes/CodDicomWebServer.d.ts +2 -1
- package/dist/esm/classes/CodDicomWebServer.js +323 -0
- package/dist/esm/classes/customClasses.d.ts +19 -0
- package/dist/esm/classes/customClasses.js +13 -0
- package/dist/esm/classes/index.d.ts +2 -0
- package/dist/esm/classes/index.js +2 -0
- package/dist/esm/classes/utils.js +102 -0
- package/dist/esm/constants/dataRetrieval.js +3 -0
- package/dist/{types → esm}/constants/enums.d.ts +4 -0
- package/dist/esm/constants/enums.js +24 -0
- package/dist/{types → esm}/constants/index.d.ts +3 -3
- package/dist/esm/constants/index.js +6 -0
- package/dist/esm/constants/url.js +3 -0
- package/dist/esm/dataRetrieval/dataRetrievalManager.d.ts +17 -0
- package/dist/esm/dataRetrieval/dataRetrievalManager.js +54 -0
- package/dist/esm/dataRetrieval/register.d.ts +4 -0
- package/dist/esm/dataRetrieval/register.js +25 -0
- package/dist/esm/dataRetrieval/requestManager.d.ts +12 -0
- package/dist/esm/dataRetrieval/requestManager.js +65 -0
- package/dist/esm/dataRetrieval/scripts/filePartial.d.ts +18 -0
- package/dist/esm/dataRetrieval/scripts/filePartial.js +16 -0
- package/dist/{types/webWorker → esm/dataRetrieval}/scripts/fileStreaming.d.ts +7 -1
- package/dist/esm/dataRetrieval/scripts/fileStreaming.js +93 -0
- package/dist/esm/dataRetrieval/utils/environment.d.ts +1 -0
- package/dist/esm/dataRetrieval/utils/environment.js +3 -0
- package/dist/esm/dataRetrieval/workerManager.d.ts +10 -0
- package/dist/esm/dataRetrieval/workerManager.js +55 -0
- package/dist/esm/dataRetrieval/workers/filePartialWorker.js +7 -0
- package/dist/esm/dataRetrieval/workers/fileStreamingWorker.js +7 -0
- package/dist/{types → esm}/fileManager.d.ts +2 -2
- package/dist/esm/fileManager.js +52 -0
- package/dist/{types → esm}/index.d.ts +1 -1
- package/dist/esm/index.js +4 -0
- package/dist/{types → esm}/metadataManager.d.ts +1 -0
- package/dist/esm/metadataManager.js +47 -0
- package/dist/esm/types/codDicomWebServerOptions.js +1 -0
- package/dist/{types → esm}/types/fileManagerOptions.d.ts +1 -1
- package/dist/esm/types/fileManagerOptions.js +1 -0
- package/dist/{types → esm}/types/index.d.ts +1 -1
- package/dist/esm/types/index.js +7 -0
- package/dist/{types → esm}/types/metadata.d.ts +1 -1
- package/dist/esm/types/metadata.js +1 -0
- package/dist/esm/types/metadataUrlCreationParams.js +1 -0
- package/dist/esm/types/parsedWadoRsUrlDetails.js +1 -0
- package/dist/esm/types/requestOptions.js +1 -0
- package/dist/esm/types/scriptObject.d.ts +4 -0
- package/dist/esm/types/scriptObject.js +1 -0
- package/dist/umd/614.js +19 -0
- package/dist/umd/614.js.map +1 -0
- package/dist/umd/66.js +19 -0
- package/dist/umd/66.js.map +1 -0
- package/dist/umd/main.js +21 -0
- package/dist/umd/main.js.map +1 -0
- package/package.json +18 -6
- package/dist/16.js +0 -19
- package/dist/16.js.map +0 -1
- package/dist/170.js +0 -19
- package/dist/170.js.map +0 -1
- package/dist/main.js +0 -21
- package/dist/main.js.map +0 -1
- package/dist/types/types/workerCustomMessageEvents.d.ts +0 -10
- package/dist/types/webWorker/registerWorkers.d.ts +0 -4
- package/dist/types/webWorker/scripts/filePartial.d.ts +0 -7
- package/dist/types/webWorker/workerManager.d.ts +0 -10
- /package/dist/{types → esm}/classes/utils.d.ts +0 -0
- /package/dist/{types/constants/worker.d.ts → esm/constants/dataRetrieval.d.ts} +0 -0
- /package/dist/{types → esm}/constants/url.d.ts +0 -0
- /package/dist/{types/webWorker → esm/dataRetrieval}/workers/filePartialWorker.d.ts +0 -0
- /package/dist/{types/webWorker → esm/dataRetrieval}/workers/fileStreamingWorker.d.ts +0 -0
- /package/dist/{types → esm}/types/codDicomWebServerOptions.d.ts +0 -0
- /package/dist/{types → esm}/types/metadataUrlCreationParams.d.ts +0 -0
- /package/dist/{types → esm}/types/parsedWadoRsUrlDetails.d.ts +0 -0
- /package/dist/{types → esm}/types/requestOptions.d.ts +0 -0
package/README.md
CHANGED
|
@@ -81,6 +81,21 @@ yarn benchmark
|
|
|
81
81
|
|
|
82
82
|
- The benchmark output will be displayed in the browser's debugger console.
|
|
83
83
|
|
|
84
|
+
## Demo
|
|
85
|
+
|
|
86
|
+
You need to install all the dependencies and build the code to run the demo.<br>
|
|
87
|
+
Also update the submodule using the command
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
yarn update:submodule:cornerstone3D
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Cod As A Client
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
yarn demo:client
|
|
97
|
+
```
|
|
98
|
+
|
|
84
99
|
## Contributing
|
|
85
100
|
|
|
86
101
|
Contributions are welcome! Please follow these steps:
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { expose } from 'comlink';
|
|
8
|
+
import fileStreaming from '../scripts/fileStreaming';
|
|
9
|
+
var fileStreamingWorker = _objectSpread(_objectSpread({}, fileStreaming), {}, {
|
|
10
|
+
stream: function stream(args) {
|
|
11
|
+
return fileStreaming.stream(args, postMessage);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
expose(fileStreamingWorker);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
import { expose } from 'comlink';
|
|
8
|
+
import filePartial from '../scripts/filePartial';
|
|
9
|
+
var filePartialWorker = _objectSpread(_objectSpread({}, filePartial), {}, {
|
|
10
|
+
partial: function partial(args) {
|
|
11
|
+
return filePartial.partial(args, postMessage);
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
expose(filePartialWorker);
|