@cornerstonejs/core 1.77.1 → 1.77.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cornerstonejs/core",
3
- "version": "1.77.1",
3
+ "version": "1.77.2",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "types": "dist/types/index.d.ts",
@@ -47,5 +47,5 @@
47
47
  "type": "individual",
48
48
  "url": "https://ohif.org/donate"
49
49
  },
50
- "gitHead": "6d61b1f87ca0c0694f779f236c505f00b4da7c0e"
50
+ "gitHead": "f35943f80709a3ac0b262cfd8fa4281270936a44"
51
51
  }
@@ -31,7 +31,7 @@ import {
31
31
  IVolumeLoadObject,
32
32
  PixelDataTypedArrayString,
33
33
  } from '../types';
34
- import { getConfiguration } from '../init';
34
+ import { getConfiguration, getShouldUseSharedArrayBuffer } from '../init';
35
35
  import {
36
36
  performCacheOptimizationForVolume,
37
37
  setupCacheOptimizationEventListener,
@@ -643,7 +643,7 @@ function generateVolumeScalarData(
643
643
  }
644
644
 
645
645
  let volumeScalarData;
646
- if (targetBuffer?.sharedArrayBuffer) {
646
+ if (targetBuffer?.sharedArrayBuffer ?? getShouldUseSharedArrayBuffer()) {
647
647
  switch (targetBuffer.type) {
648
648
  case 'Float32Array':
649
649
  volumeScalarData = createFloat32SharedArray(scalarLength);