@ohif/extension-cornerstone 3.14.0-beta.124 → 3.14.0-beta.126

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": "@ohif/extension-cornerstone",
3
- "version": "3.14.0-beta.124",
3
+ "version": "3.14.0-beta.126",
4
4
  "description": "OHIF extension for Cornerstone",
5
5
  "author": "OHIF",
6
6
  "license": "MIT",
@@ -35,11 +35,11 @@
35
35
  "@cornerstonejs/codec-libjpeg-turbo-8bit": "1.2.4",
36
36
  "@cornerstonejs/codec-openjpeg": "1.3.2",
37
37
  "@cornerstonejs/codec-openjph": "2.4.9",
38
- "@cornerstonejs/dicom-image-loader": "5.24.0",
39
- "@ohif/core": "3.14.0-beta.124",
40
- "@ohif/extension-default": "3.14.0-beta.124",
41
- "@ohif/ui-next": "3.14.0-beta.124",
42
- "dcmjs": "0.52.0",
38
+ "@cornerstonejs/dicom-image-loader": "5.27.2",
39
+ "@ohif/core": "3.14.0-beta.126",
40
+ "@ohif/extension-default": "3.14.0-beta.126",
41
+ "@ohif/ui-next": "3.14.0-beta.126",
42
+ "dcmjs": "1.1.0",
43
43
  "dicom-parser": "1.8.21",
44
44
  "hammerjs": "2.0.8",
45
45
  "react": "19.2.7",
@@ -47,14 +47,14 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@babel/runtime": "7.29.7",
50
- "@cornerstonejs/adapters": "5.24.0",
51
- "@cornerstonejs/ai": "5.24.0",
52
- "@cornerstonejs/core": "5.24.0",
53
- "@cornerstonejs/labelmap-interpolation": "5.24.0",
54
- "@cornerstonejs/metadata": "5.24.0",
55
- "@cornerstonejs/polymorphic-segmentation": "5.24.0",
56
- "@cornerstonejs/tools": "5.24.0",
57
- "@cornerstonejs/utils": "5.24.0",
50
+ "@cornerstonejs/adapters": "5.27.2",
51
+ "@cornerstonejs/ai": "5.27.2",
52
+ "@cornerstonejs/core": "5.27.2",
53
+ "@cornerstonejs/labelmap-interpolation": "5.27.2",
54
+ "@cornerstonejs/metadata": "5.27.2",
55
+ "@cornerstonejs/polymorphic-segmentation": "5.27.2",
56
+ "@cornerstonejs/tools": "5.27.2",
57
+ "@cornerstonejs/utils": "5.27.2",
58
58
  "@icr/polyseg-wasm": "0.4.0",
59
59
  "@itk-wasm/morphological-contour-interpolation": "1.1.0",
60
60
  "@kitware/vtk.js": "36.4.1",
@@ -198,6 +198,34 @@ function getToolGroupToolsCustomization({ commandsManager }) {
198
198
  { toolName: toolNames.LivewireContour },
199
199
  ],
200
200
  },
201
+
202
+ /**
203
+ * The orientation cube for the `volume3d` tool group. No mode enables it by
204
+ * default (the 3D compass replaces it); `?customization=orientationController`
205
+ * adds it. CS3D 5.23.0 throws with this tool on generic ("next") 3D viewports.
206
+ */
207
+ 'cornerstone.orientationControllerTools': {
208
+ enabled: [
209
+ {
210
+ toolName: toolNames.OrientationController,
211
+ configuration: {
212
+ faceColors: {
213
+ topBottom: [173, 202, 240], // --neutral-light
214
+ frontBack: [173, 202, 240],
215
+ leftRight: [173, 202, 240],
216
+ },
217
+ letterColorScheme: 'black',
218
+ edgeColor: [127, 148, 173], // --neutral
219
+ cornerColor: [127, 148, 173],
220
+ highlightColor: [53, 140, 253], // --primary
221
+ restingAmbient: 0.65,
222
+ hoverAmbient: 1.0,
223
+ keepOrientationUp: true,
224
+ size: 0.028,
225
+ },
226
+ },
227
+ ],
228
+ },
201
229
  };
202
230
  }
203
231
 
package/src/index.tsx CHANGED
@@ -350,3 +350,4 @@ export {
350
350
  // Export constants
351
351
  export { VOLUME_LOADER_SCHEME, DYNAMIC_VOLUME_LOADER_SCHEME } from './constants';
352
352
  export default cornerstoneExtension;
353
+ export { extensionCornerstoneLog } from './log';
package/src/log.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { ohifLog } from '@ohif/core';
2
+
3
+ /** The `ohif.extensionCornerstone` logger of `@ohif/extension-cornerstone`. Call `getLogger(...)` for an area. */
4
+ export const extensionCornerstoneLog = ohifLog.getLogger('extensionCornerstone');