larvitar 1.2.5 → 1.2.6
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 +3 -3
- package/imaging/imageLoading.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
|
|
7
7
|
## Dicom Image Toolkit for CornestoneJS
|
|
8
8
|
|
|
9
|
-
### Current version: 1.2.
|
|
9
|
+
### Current version: 1.2.6
|
|
10
10
|
|
|
11
|
-
### Latest Stable version: 1.2.
|
|
11
|
+
### Latest Stable version: 1.2.6
|
|
12
12
|
|
|
13
|
-
### Latest Published Release: 1.2.
|
|
13
|
+
### Latest Published Release: 1.2.6
|
|
14
14
|
|
|
15
15
|
This library provides common DICOM functionalities to be used in web-applications: it's wrapper that simplifies the use of cornestone-js environment.
|
|
16
16
|
Orthogonal multiplanar reformat is included as well as custom loader/exporter for nrrd files and [Vuex](https://vuex.vuejs.org/) custom integration.
|
package/imaging/imageLoading.js
CHANGED
|
@@ -27,8 +27,12 @@ import { loadMultiFrameImage } from "./loaders/multiframeLoader";
|
|
|
27
27
|
* @property {} - see https://github.com/cornerstonejs/cornerstoneWADOImageLoader/blob/master/docs/WebWorkers.md
|
|
28
28
|
*/
|
|
29
29
|
|
|
30
|
+
const MAX_CONCURRENCY = 6;
|
|
30
31
|
const globalConfig = {
|
|
31
|
-
maxWebWorkers:
|
|
32
|
+
maxWebWorkers: Math.max(
|
|
33
|
+
Math.min(navigator.hardwareConcurrency - 1, MAX_CONCURRENCY),
|
|
34
|
+
1
|
|
35
|
+
),
|
|
32
36
|
startWebWorkersOnDemand: true,
|
|
33
37
|
webWorkerTaskPaths: [
|
|
34
38
|
"https://unpkg.com/cornerstone-wado-image-loader@4.1.0/dist/610.bundle.min.worker.js",
|
package/package.json
CHANGED