@ohif/app 3.13.0-beta.113 → 3.13.0-beta.115

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.
Files changed (45) hide show
  1. package/dist/{100.bundle.1e7f2ba6d6ed33e3.js → 100.bundle.035bd530ed70dd3a.js} +2 -2
  2. package/dist/{1180.bundle.bb27058985d5740b.js → 1180.bundle.cd693bf1778988e5.js} +2 -2
  3. package/dist/{1206.bundle.79ed23079c78f18d.js → 1206.bundle.ecd5aaaca8466ba5.js} +2 -2
  4. package/dist/{1602.bundle.8e39d785591d90e6.js → 1602.bundle.fbca1a90e1493555.js} +4 -4
  5. package/dist/{2779.bundle.7097223e679de243.js → 2779.bundle.37dc7ddc085858b1.js} +2 -2
  6. package/dist/{3500.bundle.e914b320238105da.js → 3500.bundle.48f2de01d8c645ed.js} +3 -3
  7. package/dist/{3760.bundle.a879875c6b24ae95.js → 3760.bundle.cfecd5e3a3284c7a.js} +4 -4
  8. package/dist/419.bundle.19d9788d62569ec7.js +655 -0
  9. package/dist/{4834.bundle.63b105e0bedff005.js → 4834.bundle.e0e26ec9f1421cb2.js} +2 -2
  10. package/dist/{5189.bundle.86d3023e7ec28a8f.js → 5189.bundle.bf053e2e1c064914.js} +2 -2
  11. package/dist/{5448.bundle.8cda5b8e4baea275.js → 5448.bundle.1e50777e4c4e122a.js} +1 -1
  12. package/dist/{5696.bundle.b7def2862ca04c3e.js → 5696.bundle.04f16de39c05e393.js} +3 -3
  13. package/dist/{5708.bundle.692571d1d6197715.js → 5708.bundle.11a7422bd81705fc.js} +4 -4
  14. package/dist/{5910.bundle.c1199bd45e450735.js → 5910.bundle.5561806884c95754.js} +4 -4
  15. package/dist/{6001.bundle.1e17f446db27ab06.js → 6001.bundle.c3d1d7477b3173c9.js} +4 -4
  16. package/dist/{7231.bundle.791409f68df0de05.js → 7231.bundle.32e096be83a5dece.js} +8 -6
  17. package/dist/{7248.bundle.e45e26eeff5bc0ab.js → 7248.bundle.81fd80535e9b7e77.js} +5 -5
  18. package/dist/{7295.bundle.61edd77d1b86b799.js → 7295.bundle.231040ddfcde9f72.js} +6 -6
  19. package/dist/{7463.bundle.afe57ad10829df20.js → 7463.bundle.40668aa8d083d077.js} +2 -2
  20. package/dist/{414.bundle.098d66591e6368f4.js → 7701.bundle.2a0e55d235e87630.js} +665 -17
  21. package/dist/{8007.bundle.bc2856ea25d6acdd.js → 8007.bundle.3c124044acfcbb0c.js} +18 -12
  22. package/dist/{8423.bundle.075e8b5b25da4d47.js → 8423.bundle.ea4957f1ce64487a.js} +2 -2
  23. package/dist/{8832.bundle.1527b17becc2b22b.js → 8832.bundle.7c9292f59d3eb033.js} +3 -3
  24. package/dist/{899.bundle.6f855ae8df39327e.js → 899.bundle.221329ac8cec3022.js} +2 -2
  25. package/dist/{9068.bundle.29adebcfccb4bc8e.js → 9068.bundle.cd36fcb4e15a153e.js} +4 -4
  26. package/dist/{9116.bundle.ee35c08c265f0df3.js → 9116.bundle.164eb4cacb8b0f8f.js} +2 -2
  27. package/dist/{9415.bundle.f5c741386f7992f2.js → 9415.bundle.4ac6ceb3a8bc509a.js} +4 -4
  28. package/dist/{9437.bundle.58944991bfee599b.js → 9437.bundle.be34e21e666a7bcc.js} +2 -2
  29. package/dist/app-config.js +42 -251
  30. package/dist/{app.bundle.0880918724f7f488.js → app.bundle.9c8087b3a0d9b2ba.js} +2470 -148
  31. package/dist/customizations/ctPresets.jsonc +21 -0
  32. package/dist/customizations/measurementLabels.jsonc +23 -0
  33. package/dist/customizations/patientBirthDate.jsonc +34 -0
  34. package/dist/customizations/smoothRotate.jsonc +42 -0
  35. package/dist/customizations/veterinary.jsonc +5 -0
  36. package/dist/customizations/veterinaryOverlay.jsonc +56 -0
  37. package/dist/index.html +1 -1
  38. package/dist/sw.js +2 -2
  39. package/package.json +5 -5
  40. package/dist/2666.bundle.ab47b38f402e29c6.js +0 -1271
  41. /package/dist/{379.bundle.75b0fb722268f037.js → 379.bundle.4b932c0de4372bc3.js} +0 -0
  42. /package/dist/{4556.bundle.b9c2595d0c6be8a1.js → 4556.bundle.ccdf4244832f50e3.js} +0 -0
  43. /package/dist/{4683.bundle.d6a79bb4ed36a3a2.js → 4683.bundle.90596a310b9feaad.js} +0 -0
  44. /package/dist/{6650.bundle.defab1d01ae0dcba.js → 6650.bundle.ac76eb90d6f8a353.js} +0 -0
  45. /package/dist/{9290.bundle.c9088a82d7624c95.js → 9290.bundle.4fab16e015cc0858.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- (globalThis["rspackChunk"] = globalThis["rspackChunk"] || []).push([[414], {
2
+ (globalThis["rspackChunk"] = globalThis["rspackChunk"] || []).push([[7701], {
3
3
  2242(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
4
4
 
5
5
  // EXPORTS
@@ -131,7 +131,7 @@ __webpack_require__.d(__webpack_exports__, {
131
131
  R: () => (useMeasurementTracking)
132
132
  });
133
133
  /* import */ var react__rspack_import_0 = __webpack_require__(86326);
134
- /* import */ var _ohif_core_src__rspack_import_1 = __webpack_require__(62901);
134
+ /* import */ var _ohif_core_src__rspack_import_1 = __webpack_require__(50679);
135
135
  /* import */ var _useViewportDisplaySets__rspack_import_2 = __webpack_require__(22276);
136
136
  /* import */ var _utils_getLegacyViewportType__rspack_import_3 = __webpack_require__(50342);
137
137
 
@@ -237,7 +237,7 @@ __webpack_require__.d(__webpack_exports__, {
237
237
  /* import */ var react__rspack_import_0 = __webpack_require__(86326);
238
238
  /* import */ var lodash_debounce__rspack_import_1 = __webpack_require__(62051);
239
239
  /* import */ var lodash_debounce__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__rspack_import_1);
240
- /* import */ var _ohif_core__rspack_import_2 = __webpack_require__(62901);
240
+ /* import */ var _ohif_core__rspack_import_2 = __webpack_require__(50679);
241
241
  /* import */ var _ohif_i18n__rspack_import_3 = __webpack_require__(90119);
242
242
 
243
243
 
@@ -344,8 +344,8 @@ __webpack_require__.d(__webpack_exports__, {
344
344
  /* import */ var react__rspack_import_0 = __webpack_require__(86326);
345
345
  /* import */ var lodash_debounce__rspack_import_1 = __webpack_require__(62051);
346
346
  /* import */ var lodash_debounce__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__rspack_import_1);
347
- /* import */ var _ohif_core_src_utils__rspack_import_2 = __webpack_require__(3682);
348
- /* import */ var _ohif_core__rspack_import_3 = __webpack_require__(62901);
347
+ /* import */ var _ohif_core_src_utils__rspack_import_2 = __webpack_require__(95339);
348
+ /* import */ var _ohif_core__rspack_import_3 = __webpack_require__(50679);
349
349
 
350
350
 
351
351
 
@@ -478,8 +478,8 @@ __webpack_require__.d(__webpack_exports__, {
478
478
 
479
479
  // EXTERNAL MODULE: ../../../node_modules/react/index.js
480
480
  var react = __webpack_require__(86326);
481
- // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
482
- var src = __webpack_require__(62901);
481
+ // EXTERNAL MODULE: ../../core/src/index.ts + 75 modules
482
+ var src = __webpack_require__(50679);
483
483
  // EXTERNAL MODULE: ../../ui-next/src/index.ts + 3682 modules
484
484
  var ui_next_src = __webpack_require__(39987);
485
485
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/index.js + 1 modules
@@ -794,7 +794,7 @@ __webpack_require__.d(__webpack_exports__, {
794
794
  e: () => (useViewportRendering)
795
795
  });
796
796
  /* import */ var react__rspack_import_0 = __webpack_require__(86326);
797
- /* import */ var _ohif_core__rspack_import_1 = __webpack_require__(62901);
797
+ /* import */ var _ohif_core__rspack_import_1 = __webpack_require__(50679);
798
798
  /* import */ var _useViewportDisplaySets__rspack_import_2 = __webpack_require__(22276);
799
799
  /* import */ var _cornerstonejs_core__rspack_import_3 = __webpack_require__(70594);
800
800
  /* import */ var _utils_getDataIdForViewport__rspack_import_4 = __webpack_require__(33701);
@@ -1452,8 +1452,8 @@ __webpack_require__.d(__webpack_exports__, {
1452
1452
  /* import */ var react__rspack_import_0 = __webpack_require__(86326);
1453
1453
  /* import */ var lodash_debounce__rspack_import_1 = __webpack_require__(62051);
1454
1454
  /* import */ var lodash_debounce__rspack_import_1_default = /*#__PURE__*/__webpack_require__.n(lodash_debounce__rspack_import_1);
1455
- /* import */ var _ohif_core_src_utils__rspack_import_2 = __webpack_require__(3682);
1456
- /* import */ var _ohif_core__rspack_import_3 = __webpack_require__(62901);
1455
+ /* import */ var _ohif_core_src_utils__rspack_import_2 = __webpack_require__(95339);
1456
+ /* import */ var _ohif_core__rspack_import_3 = __webpack_require__(50679);
1457
1457
 
1458
1458
 
1459
1459
 
@@ -1628,7 +1628,7 @@ function useViewportSegmentations({
1628
1628
  }
1629
1629
 
1630
1630
  },
1631
- 84461(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
1631
+ 28772(__unused_rspack_module, __webpack_exports__, __webpack_require__) {
1632
1632
 
1633
1633
  // EXPORTS
1634
1634
  __webpack_require__.d(__webpack_exports__, {
@@ -1676,8 +1676,8 @@ const Enums = {
1676
1676
  CORNERSTONE_3D_TOOLS_SOURCE_VERSION
1677
1677
  };
1678
1678
  /* export default */ const enums = (Enums);
1679
- // EXTERNAL MODULE: ../../core/src/index.ts + 69 modules
1680
- var core_src = __webpack_require__(62901);
1679
+ // EXTERNAL MODULE: ../../core/src/index.ts + 75 modules
1680
+ var core_src = __webpack_require__(50679);
1681
1681
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/loaders/index.js
1682
1682
  var loaders = __webpack_require__(19742);
1683
1683
  // EXTERNAL MODULE: ../../../node_modules/@cornerstonejs/core/dist/esm/enums/RequestType.js
@@ -1836,8 +1836,8 @@ function onCompletedCalibrationLine(servicesManager, csToolsEvent) {
1836
1836
  });
1837
1837
  });
1838
1838
  }
1839
- // EXTERNAL MODULE: ../../core/src/utils/index.ts + 33 modules
1840
- var utils = __webpack_require__(3682);
1839
+ // EXTERNAL MODULE: ../../core/src/utils/index.ts + 34 modules
1840
+ var utils = __webpack_require__(95339);
1841
1841
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/tools/OverlayPlaneModuleProvider.ts
1842
1842
 
1843
1843
  const _cachedOverlayMetadata = new Map();
@@ -2125,6 +2125,7 @@ function initCornerstoneTools(configuration = {}) {
2125
2125
  (0,dist_esm.addTool)(dist_esm.SegmentBidirectionalTool);
2126
2126
  (0,dist_esm.addTool)(dist_esm.WindowLevelTool);
2127
2127
  (0,dist_esm.addTool)(dist_esm.StackScrollTool);
2128
+ (0,dist_esm.addTool)(dist_esm.PlanarRotateTool);
2128
2129
  (0,dist_esm.addTool)(dist_esm.VolumeRotateTool);
2129
2130
  (0,dist_esm.addTool)(dist_esm.ZoomTool);
2130
2131
  (0,dist_esm.addTool)(dist_esm.ProbeTool);
@@ -2187,6 +2188,7 @@ const initCornerstoneTools_toolNames = {
2187
2188
  WindowLevel: dist_esm.WindowLevelTool.toolName,
2188
2189
  StackScroll: dist_esm.StackScrollTool.toolName,
2189
2190
  Zoom: dist_esm.ZoomTool.toolName,
2191
+ PlanarRotate: dist_esm.PlanarRotateTool.toolName,
2190
2192
  VolumeRotate: dist_esm.VolumeRotateTool.toolName,
2191
2193
  MipJumpToClick: dist_esm.MIPJumpToClickTool.toolName,
2192
2194
  Length: dist_esm.LengthTool.toolName,
@@ -8319,6 +8321,652 @@ const defaultWindowLevelPresets = {
8319
8321
  /* export default */ const windowLevelPresetsCustomization = ({
8320
8322
  'cornerstone.windowLevelPresets': WindowLevelActionMenu_defaultWindowLevelPresets
8321
8323
  });
8324
+ // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
8325
+ var i18next = __webpack_require__(26104);
8326
+ ;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/customizations/toolbarButtonsCustomization.ts
8327
+
8328
+
8329
+
8330
+ const {
8331
+ TOOLBAR_SECTIONS
8332
+ } = core_src/* .ToolbarService */.hx;
8333
+ const callbacks = toolName => [{
8334
+ commandName: 'setViewportForToolConfiguration',
8335
+ commandOptions: {
8336
+ toolName
8337
+ }
8338
+ }];
8339
+ const setToolActiveToolbar = {
8340
+ commandName: 'setToolActiveToolbar',
8341
+ commandOptions: {
8342
+ toolGroupIds: ['default', 'mpr', 'SRToolGroup', 'volume3d']
8343
+ }
8344
+ };
8345
+ const toolbarButtonsCustomization_toolbarButtons = [
8346
+ // sections
8347
+ {
8348
+ id: 'MeasurementTools',
8349
+ uiType: 'ohif.toolButtonList',
8350
+ props: {
8351
+ buttonSection: true
8352
+ }
8353
+ }, {
8354
+ id: 'MoreTools',
8355
+ uiType: 'ohif.toolButtonList',
8356
+ props: {
8357
+ buttonSection: true
8358
+ }
8359
+ }, {
8360
+ id: 'AdvancedRenderingControls',
8361
+ uiType: 'ohif.advancedRenderingControls',
8362
+ props: {
8363
+ buttonSection: true
8364
+ }
8365
+ },
8366
+ // tool defs
8367
+ {
8368
+ id: 'modalityLoadBadge',
8369
+ uiType: 'ohif.modalityLoadBadge',
8370
+ props: {
8371
+ icon: 'Status',
8372
+ label: i18next/* ["default"].t */.A.t('Buttons:Status'),
8373
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Status'),
8374
+ evaluate: {
8375
+ name: 'evaluate.modalityLoadBadge',
8376
+ hideWhenDisabled: true
8377
+ }
8378
+ }
8379
+ }, {
8380
+ id: 'navigationComponent',
8381
+ uiType: 'ohif.navigationComponent',
8382
+ props: {
8383
+ icon: 'Navigation',
8384
+ label: i18next/* ["default"].t */.A.t('Buttons:Navigation'),
8385
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Navigate between segments/measurements and manage their visibility'),
8386
+ evaluate: {
8387
+ name: 'evaluate.navigationComponent',
8388
+ hideWhenDisabled: true
8389
+ }
8390
+ }
8391
+ }, {
8392
+ id: 'trackingStatus',
8393
+ uiType: 'ohif.trackingStatus',
8394
+ props: {
8395
+ icon: 'TrackingStatus',
8396
+ label: i18next/* ["default"].t */.A.t('Buttons:Tracking Status'),
8397
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:View and manage tracking status of measurements and annotations'),
8398
+ evaluate: {
8399
+ name: 'evaluate.trackingStatus',
8400
+ hideWhenDisabled: true
8401
+ }
8402
+ }
8403
+ }, {
8404
+ id: 'dataOverlayMenu',
8405
+ uiType: 'ohif.dataOverlayMenu',
8406
+ props: {
8407
+ icon: 'ViewportViews',
8408
+ label: i18next/* ["default"].t */.A.t('Buttons:Data Overlay'),
8409
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Configure data overlay options and manage foreground/background display sets'),
8410
+ evaluate: 'evaluate.dataOverlayMenu'
8411
+ }
8412
+ }, {
8413
+ id: 'orientationMenu',
8414
+ uiType: 'ohif.orientationMenu',
8415
+ props: {
8416
+ icon: 'OrientationSwitch',
8417
+ label: i18next/* ["default"].t */.A.t('Buttons:Orientation'),
8418
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Change viewport orientation between axial, sagittal, coronal and reformat planes'),
8419
+ evaluate: {
8420
+ name: 'evaluate.orientationMenu'
8421
+ // hideWhenDisabled: true,
8422
+ }
8423
+ }
8424
+ }, {
8425
+ id: 'windowLevelMenuEmbedded',
8426
+ uiType: 'ohif.windowLevelMenuEmbedded',
8427
+ props: {
8428
+ icon: 'WindowLevel',
8429
+ label: i18next/* ["default"].t */.A.t('Buttons:Window Level'),
8430
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Adjust window/level presets and customize image contrast settings'),
8431
+ evaluate: {
8432
+ name: 'evaluate.windowLevelMenuEmbedded',
8433
+ hideWhenDisabled: true
8434
+ }
8435
+ }
8436
+ }, {
8437
+ id: 'windowLevelMenu',
8438
+ uiType: 'ohif.windowLevelMenu',
8439
+ props: {
8440
+ icon: 'WindowLevel',
8441
+ label: i18next/* ["default"].t */.A.t('Buttons:Window Level'),
8442
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Adjust window/level presets and customize image contrast settings'),
8443
+ evaluate: {
8444
+ name: 'evaluate.windowLevelMenu'
8445
+ }
8446
+ }
8447
+ }, {
8448
+ id: 'voiManualControlMenu',
8449
+ uiType: 'ohif.voiManualControlMenu',
8450
+ props: {
8451
+ icon: 'WindowLevelAdvanced',
8452
+ label: i18next/* ["default"].t */.A.t('Buttons:Advanced Window Level'),
8453
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Advanced window/level settings with manual controls and presets'),
8454
+ evaluate: 'evaluate.voiManualControlMenu'
8455
+ }
8456
+ }, {
8457
+ id: 'thresholdMenu',
8458
+ uiType: 'ohif.thresholdMenu',
8459
+ props: {
8460
+ icon: 'Threshold',
8461
+ label: i18next/* ["default"].t */.A.t('Buttons:Threshold'),
8462
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Image threshold settings'),
8463
+ evaluate: {
8464
+ name: 'evaluate.thresholdMenu',
8465
+ hideWhenDisabled: true
8466
+ }
8467
+ }
8468
+ }, {
8469
+ id: 'opacityMenu',
8470
+ uiType: 'ohif.opacityMenu',
8471
+ props: {
8472
+ icon: 'Opacity',
8473
+ label: i18next/* ["default"].t */.A.t('Buttons:Opacity'),
8474
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Image opacity settings'),
8475
+ evaluate: {
8476
+ name: 'evaluate.opacityMenu',
8477
+ hideWhenDisabled: true
8478
+ }
8479
+ }
8480
+ }, {
8481
+ id: 'Colorbar',
8482
+ uiType: 'ohif.colorbar',
8483
+ props: {
8484
+ type: 'tool',
8485
+ label: i18next/* ["default"].t */.A.t('Buttons:Colorbar')
8486
+ }
8487
+ }, {
8488
+ id: 'Reset',
8489
+ uiType: 'ohif.toolButton',
8490
+ props: {
8491
+ icon: 'tool-reset',
8492
+ label: i18next/* ["default"].t */.A.t('Buttons:Reset View'),
8493
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Reset View'),
8494
+ commands: 'resetViewport',
8495
+ evaluate: 'evaluate.action'
8496
+ }
8497
+ }, {
8498
+ id: 'rotate-right',
8499
+ uiType: 'ohif.toolButton',
8500
+ props: {
8501
+ icon: 'tool-rotate-right',
8502
+ label: i18next/* ["default"].t */.A.t('Buttons:Rotate Right'),
8503
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Rotate +90'),
8504
+ commands: 'rotateViewportCW',
8505
+ evaluate: ['evaluate.action', {
8506
+ name: 'evaluate.viewport.supported',
8507
+ unsupportedViewportTypes: ['video']
8508
+ }]
8509
+ }
8510
+ }, {
8511
+ id: 'flipHorizontal',
8512
+ uiType: 'ohif.toolButton',
8513
+ props: {
8514
+ icon: 'tool-flip-horizontal',
8515
+ label: i18next/* ["default"].t */.A.t('Buttons:Flip Horizontal'),
8516
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Flip Horizontally'),
8517
+ commands: 'flipViewportHorizontal',
8518
+ evaluate: ['evaluate.viewportProperties.toggle', {
8519
+ name: 'evaluate.viewport.supported',
8520
+ unsupportedViewportTypes: ['video', 'volume3d']
8521
+ }]
8522
+ }
8523
+ }, {
8524
+ id: 'ImageSliceSync',
8525
+ uiType: 'ohif.toolButton',
8526
+ props: {
8527
+ icon: 'link',
8528
+ label: i18next/* ["default"].t */.A.t('Buttons:Image Slice Sync'),
8529
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Enable position synchronization on stack viewports'),
8530
+ commands: {
8531
+ commandName: 'toggleSynchronizer',
8532
+ commandOptions: {
8533
+ type: 'imageSlice'
8534
+ }
8535
+ },
8536
+ listeners: {
8537
+ [esm.EVENTS.VIEWPORT_NEW_IMAGE_SET]: {
8538
+ commandName: 'toggleImageSliceSync',
8539
+ commandOptions: {
8540
+ toggledState: true
8541
+ }
8542
+ }
8543
+ },
8544
+ evaluate: ['evaluate.cornerstone.synchronizer', {
8545
+ name: 'evaluate.viewport.supported',
8546
+ unsupportedViewportTypes: ['video', 'volume3d']
8547
+ }]
8548
+ }
8549
+ }, {
8550
+ id: 'ReferenceLines',
8551
+ uiType: 'ohif.toolButton',
8552
+ props: {
8553
+ icon: 'tool-referenceLines',
8554
+ label: i18next/* ["default"].t */.A.t('Buttons:Reference Lines'),
8555
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Show Reference Lines'),
8556
+ commands: 'toggleEnabledDisabledToolbar',
8557
+ listeners: {
8558
+ [core_src/* .ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED */.sI.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: callbacks('ReferenceLines'),
8559
+ [core_src/* .ViewportGridService.EVENTS.VIEWPORTS_READY */.sI.EVENTS.VIEWPORTS_READY]: callbacks('ReferenceLines')
8560
+ },
8561
+ evaluate: ['evaluate.cornerstoneTool.toggle', {
8562
+ name: 'evaluate.viewport.supported',
8563
+ unsupportedViewportTypes: ['video']
8564
+ }]
8565
+ }
8566
+ }, {
8567
+ id: 'ImageOverlayViewer',
8568
+ uiType: 'ohif.toolButton',
8569
+ props: {
8570
+ icon: 'toggle-dicom-overlay',
8571
+ label: i18next/* ["default"].t */.A.t('Buttons:Image Overlay'),
8572
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Toggle Image Overlay'),
8573
+ commands: 'toggleEnabledDisabledToolbar',
8574
+ evaluate: ['evaluate.cornerstoneTool.toggle', {
8575
+ name: 'evaluate.viewport.supported',
8576
+ unsupportedViewportTypes: ['video']
8577
+ }]
8578
+ }
8579
+ }, {
8580
+ id: 'StackScroll',
8581
+ uiType: 'ohif.toolButton',
8582
+ props: {
8583
+ icon: 'tool-stack-scroll',
8584
+ label: i18next/* ["default"].t */.A.t('Buttons:Stack Scroll'),
8585
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Stack Scroll'),
8586
+ commands: setToolActiveToolbar,
8587
+ evaluate: 'evaluate.cornerstoneTool'
8588
+ }
8589
+ }, {
8590
+ id: 'invert',
8591
+ uiType: 'ohif.toolButton',
8592
+ props: {
8593
+ icon: 'tool-invert',
8594
+ label: i18next/* ["default"].t */.A.t('Buttons:Invert'),
8595
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Invert Colors'),
8596
+ commands: 'invertViewport',
8597
+ evaluate: ['evaluate.viewportProperties.toggle', {
8598
+ name: 'evaluate.viewport.supported',
8599
+ unsupportedViewportTypes: ['video']
8600
+ }]
8601
+ }
8602
+ }, {
8603
+ id: 'Probe',
8604
+ uiType: 'ohif.toolButton',
8605
+ props: {
8606
+ icon: 'tool-probe',
8607
+ label: i18next/* ["default"].t */.A.t('Buttons:Probe'),
8608
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Probe'),
8609
+ commands: setToolActiveToolbar,
8610
+ evaluate: 'evaluate.cornerstoneTool'
8611
+ }
8612
+ }, {
8613
+ id: 'Cine',
8614
+ uiType: 'ohif.toolButton',
8615
+ props: {
8616
+ icon: 'tool-cine',
8617
+ label: i18next/* ["default"].t */.A.t('Buttons:Cine'),
8618
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Cine'),
8619
+ commands: 'toggleCine',
8620
+ evaluate: ['evaluate.cine', {
8621
+ name: 'evaluate.viewport.supported',
8622
+ unsupportedViewportTypes: ['volume3d']
8623
+ }]
8624
+ }
8625
+ }, {
8626
+ id: 'Angle',
8627
+ uiType: 'ohif.toolButton',
8628
+ props: {
8629
+ icon: 'tool-angle',
8630
+ label: i18next/* ["default"].t */.A.t('Buttons:Angle'),
8631
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Angle'),
8632
+ commands: setToolActiveToolbar,
8633
+ evaluate: 'evaluate.cornerstoneTool'
8634
+ }
8635
+ }, {
8636
+ id: 'CobbAngle',
8637
+ uiType: 'ohif.toolButton',
8638
+ props: {
8639
+ icon: 'icon-tool-cobb-angle',
8640
+ label: i18next/* ["default"].t */.A.t('Buttons:Cobb Angle'),
8641
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Cobb Angle'),
8642
+ commands: setToolActiveToolbar,
8643
+ evaluate: 'evaluate.cornerstoneTool'
8644
+ }
8645
+ }, {
8646
+ id: 'Magnify',
8647
+ uiType: 'ohif.toolButton',
8648
+ props: {
8649
+ icon: 'tool-magnify',
8650
+ label: i18next/* ["default"].t */.A.t('Buttons:Zoom-in'),
8651
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Zoom-in'),
8652
+ commands: setToolActiveToolbar,
8653
+ evaluate: ['evaluate.cornerstoneTool', {
8654
+ name: 'evaluate.viewport.supported',
8655
+ unsupportedViewportTypes: ['video']
8656
+ }]
8657
+ }
8658
+ }, {
8659
+ id: 'CalibrationLine',
8660
+ uiType: 'ohif.toolButton',
8661
+ props: {
8662
+ icon: 'tool-calibration',
8663
+ label: i18next/* ["default"].t */.A.t('Buttons:Calibration'),
8664
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Calibration Line'),
8665
+ commands: setToolActiveToolbar,
8666
+ evaluate: ['evaluate.cornerstoneTool', {
8667
+ name: 'evaluate.viewport.supported',
8668
+ unsupportedViewportTypes: ['video']
8669
+ }]
8670
+ }
8671
+ }, {
8672
+ id: 'TagBrowser',
8673
+ uiType: 'ohif.toolButton',
8674
+ props: {
8675
+ icon: 'dicom-tag-browser',
8676
+ label: i18next/* ["default"].t */.A.t('Buttons:Dicom Tag Browser'),
8677
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Dicom Tag Browser'),
8678
+ commands: 'openDICOMTagViewer'
8679
+ }
8680
+ }, {
8681
+ id: 'AdvancedMagnify',
8682
+ uiType: 'ohif.toolButton',
8683
+ props: {
8684
+ icon: 'icon-tool-loupe',
8685
+ label: i18next/* ["default"].t */.A.t('Buttons:Magnify Probe'),
8686
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Magnify Probe'),
8687
+ commands: 'toggleActiveDisabledToolbar',
8688
+ evaluate: ['evaluate.cornerstoneTool.toggle.ifStrictlyDisabled', {
8689
+ name: 'evaluate.viewport.supported',
8690
+ unsupportedViewportTypes: ['video']
8691
+ }]
8692
+ }
8693
+ }, {
8694
+ id: 'UltrasoundDirectionalTool',
8695
+ uiType: 'ohif.toolButton',
8696
+ props: {
8697
+ icon: 'icon-tool-ultrasound-bidirectional',
8698
+ label: i18next/* ["default"].t */.A.t('Buttons:Ultrasound Directional'),
8699
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Ultrasound Directional'),
8700
+ commands: setToolActiveToolbar,
8701
+ evaluate: ['evaluate.cornerstoneTool', {
8702
+ name: 'evaluate.modality.supported',
8703
+ supportedModalities: ['US']
8704
+ }]
8705
+ }
8706
+ }, {
8707
+ id: 'WindowLevelRegion',
8708
+ uiType: 'ohif.toolButton',
8709
+ props: {
8710
+ icon: 'icon-tool-window-region',
8711
+ label: i18next/* ["default"].t */.A.t('Buttons:Window Level Region'),
8712
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Window Level Region'),
8713
+ commands: setToolActiveToolbar,
8714
+ evaluate: ['evaluate.cornerstoneTool', {
8715
+ name: 'evaluate.viewport.supported',
8716
+ unsupportedViewportTypes: ['video']
8717
+ }]
8718
+ }
8719
+ }, {
8720
+ id: 'Length',
8721
+ uiType: 'ohif.toolButton',
8722
+ props: {
8723
+ icon: 'tool-length',
8724
+ label: i18next/* ["default"].t */.A.t('Buttons:Length'),
8725
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Length Tool'),
8726
+ commands: setToolActiveToolbar,
8727
+ evaluate: 'evaluate.cornerstoneTool'
8728
+ }
8729
+ }, {
8730
+ id: 'Bidirectional',
8731
+ uiType: 'ohif.toolButton',
8732
+ props: {
8733
+ icon: 'tool-bidirectional',
8734
+ label: i18next/* ["default"].t */.A.t('Buttons:Bidirectional'),
8735
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Bidirectional Tool'),
8736
+ commands: setToolActiveToolbar,
8737
+ evaluate: 'evaluate.cornerstoneTool'
8738
+ }
8739
+ }, {
8740
+ id: 'ArrowAnnotate',
8741
+ uiType: 'ohif.toolButton',
8742
+ props: {
8743
+ icon: 'tool-annotate',
8744
+ label: i18next/* ["default"].t */.A.t('Buttons:Annotation'),
8745
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Arrow Annotate'),
8746
+ commands: setToolActiveToolbar,
8747
+ evaluate: 'evaluate.cornerstoneTool'
8748
+ }
8749
+ }, {
8750
+ id: 'EllipticalROI',
8751
+ uiType: 'ohif.toolButton',
8752
+ props: {
8753
+ icon: 'tool-ellipse',
8754
+ label: i18next/* ["default"].t */.A.t('Buttons:Ellipse'),
8755
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Ellipse ROI'),
8756
+ commands: setToolActiveToolbar,
8757
+ evaluate: 'evaluate.cornerstoneTool'
8758
+ }
8759
+ }, {
8760
+ id: 'RectangleROI',
8761
+ uiType: 'ohif.toolButton',
8762
+ props: {
8763
+ icon: 'tool-rectangle',
8764
+ label: i18next/* ["default"].t */.A.t('Buttons:Rectangle'),
8765
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Rectangle ROI'),
8766
+ commands: setToolActiveToolbar,
8767
+ evaluate: 'evaluate.cornerstoneTool'
8768
+ }
8769
+ }, {
8770
+ id: 'CircleROI',
8771
+ uiType: 'ohif.toolButton',
8772
+ props: {
8773
+ icon: 'tool-circle',
8774
+ label: i18next/* ["default"].t */.A.t('Buttons:Circle'),
8775
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Circle Tool'),
8776
+ commands: setToolActiveToolbar,
8777
+ evaluate: 'evaluate.cornerstoneTool'
8778
+ }
8779
+ }, {
8780
+ id: 'PlanarFreehandROI',
8781
+ uiType: 'ohif.toolButton',
8782
+ props: {
8783
+ icon: 'icon-tool-freehand-roi',
8784
+ label: i18next/* ["default"].t */.A.t('Buttons:Freehand ROI'),
8785
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Freehand ROI'),
8786
+ commands: setToolActiveToolbar,
8787
+ evaluate: 'evaluate.cornerstoneTool'
8788
+ }
8789
+ }, {
8790
+ id: 'SplineROI',
8791
+ uiType: 'ohif.toolButton',
8792
+ props: {
8793
+ icon: 'icon-tool-spline-roi',
8794
+ label: i18next/* ["default"].t */.A.t('Buttons:Spline ROI'),
8795
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Spline ROI'),
8796
+ commands: setToolActiveToolbar,
8797
+ evaluate: 'evaluate.cornerstoneTool'
8798
+ }
8799
+ }, {
8800
+ id: 'LivewireContour',
8801
+ uiType: 'ohif.toolButton',
8802
+ props: {
8803
+ icon: 'icon-tool-livewire',
8804
+ label: i18next/* ["default"].t */.A.t('Buttons:Livewire tool'),
8805
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Livewire tool'),
8806
+ commands: setToolActiveToolbar,
8807
+ evaluate: 'evaluate.cornerstoneTool'
8808
+ }
8809
+ },
8810
+ // Window Level
8811
+ {
8812
+ id: 'WindowLevel',
8813
+ uiType: 'ohif.toolButton',
8814
+ props: {
8815
+ icon: 'tool-window-level',
8816
+ label: i18next/* ["default"].t */.A.t('Buttons:Window Level'),
8817
+ commands: setToolActiveToolbar,
8818
+ evaluate: ['evaluate.cornerstoneTool', {
8819
+ name: 'evaluate.viewport.supported',
8820
+ unsupportedViewportTypes: ['wholeSlide']
8821
+ }]
8822
+ }
8823
+ }, {
8824
+ id: 'Pan',
8825
+ uiType: 'ohif.toolButton',
8826
+ props: {
8827
+ type: 'tool',
8828
+ icon: 'tool-move',
8829
+ label: i18next/* ["default"].t */.A.t('Buttons:Pan'),
8830
+ commands: setToolActiveToolbar,
8831
+ evaluate: 'evaluate.cornerstoneTool'
8832
+ }
8833
+ }, {
8834
+ id: 'Zoom',
8835
+ uiType: 'ohif.toolButton',
8836
+ props: {
8837
+ type: 'tool',
8838
+ icon: 'tool-zoom',
8839
+ label: i18next/* ["default"].t */.A.t('Buttons:Zoom'),
8840
+ commands: setToolActiveToolbar,
8841
+ evaluate: 'evaluate.cornerstoneTool'
8842
+ }
8843
+ }, {
8844
+ id: 'TrackballRotate',
8845
+ uiType: 'ohif.toolButton',
8846
+ props: {
8847
+ type: 'tool',
8848
+ icon: 'tool-3d-rotate',
8849
+ label: i18next/* ["default"].t */.A.t('Buttons:3D Rotate'),
8850
+ commands: setToolActiveToolbar,
8851
+ evaluate: {
8852
+ name: 'evaluate.cornerstoneTool',
8853
+ disabledText: i18next/* ["default"].t */.A.t('Buttons:Select a 3D viewport to enable this tool')
8854
+ }
8855
+ }
8856
+ }, {
8857
+ id: 'Capture',
8858
+ uiType: 'ohif.toolButton',
8859
+ props: {
8860
+ icon: 'tool-capture',
8861
+ label: i18next/* ["default"].t */.A.t('Buttons:Capture'),
8862
+ commands: 'showDownloadViewportModal',
8863
+ evaluate: ['evaluate.action', {
8864
+ name: 'evaluate.viewport.supported',
8865
+ unsupportedViewportTypes: ['video', 'wholeSlide']
8866
+ }]
8867
+ }
8868
+ }, {
8869
+ id: 'Layout',
8870
+ uiType: 'ohif.layoutSelector',
8871
+ props: {
8872
+ rows: 3,
8873
+ columns: 4,
8874
+ evaluate: 'evaluate.action'
8875
+ }
8876
+ }, {
8877
+ id: 'Crosshairs',
8878
+ uiType: 'ohif.toolButton',
8879
+ props: {
8880
+ type: 'tool',
8881
+ icon: 'tool-crosshair',
8882
+ label: i18next/* ["default"].t */.A.t('Buttons:Crosshairs'),
8883
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Click to toggle on or off'),
8884
+ commands: {
8885
+ commandName: 'toggleActiveDisabledToolbar',
8886
+ commandOptions: {
8887
+ toolGroupIds: ['mpr']
8888
+ }
8889
+ },
8890
+ evaluate: {
8891
+ name: 'evaluate.cornerstoneTool.toggleWithModifier',
8892
+ disabledText: i18next/* ["default"].t */.A.t('Buttons:Select an MPR viewport to enable this tool'),
8893
+ toggledOnIcon: 'tool-crosshair-checked',
8894
+ defaultIcon: 'tool-crosshair'
8895
+ }
8896
+ }
8897
+ }, {
8898
+ id: 'SegmentLabelTool',
8899
+ uiType: 'ohif.toolBoxButton',
8900
+ props: {
8901
+ icon: 'tool-segment-label',
8902
+ label: i18next/* ["default"].t */.A.t('Buttons:Segment Label Display'),
8903
+ tooltip: i18next/* ["default"].t */.A.t('Buttons:Click to show or hide segment labels when hovering with your mouse.'),
8904
+ commands: {
8905
+ commandName: 'toggleSegmentLabel'
8906
+ },
8907
+ evaluate: ['evaluate.cornerstoneTool.toggle', {
8908
+ name: 'evaluate.cornerstone.hasSegmentation'
8909
+ }]
8910
+ }
8911
+ }
8912
+ // {
8913
+ // id: 'Undo',
8914
+ // uiType: 'ohif.toolButton',
8915
+ // props: {
8916
+ // type: 'tool',
8917
+ // icon: 'prev-arrow',
8918
+ // label: 'Undo',
8919
+ // commands: {
8920
+ // commandName: 'undo',
8921
+ // },
8922
+ // evaluate: 'evaluate.action',
8923
+ // },
8924
+ // },
8925
+ // {
8926
+ // id: 'Redo',
8927
+ // uiType: 'ohif.toolButton',
8928
+ // props: {
8929
+ // type: 'tool',
8930
+ // icon: 'next-arrow',
8931
+ // label: 'Redo',
8932
+ // commands: {
8933
+ // commandName: 'redo',
8934
+ // },
8935
+ // evaluate: 'evaluate.action',
8936
+ // },
8937
+ // },
8938
+ ];
8939
+
8940
+ /**
8941
+ * Default toolbar layout: which buttons appear in each toolbar section.
8942
+ * Registered as a customization so modes (and `?customization=` modules) can
8943
+ * append/replace entries without rebuilding.
8944
+ */
8945
+ const toolbarSections = {
8946
+ [TOOLBAR_SECTIONS.primary]: ['MeasurementTools', 'Zoom', 'Pan', 'TrackballRotate', 'WindowLevel', 'Capture', 'Layout', 'Crosshairs', 'MoreTools'],
8947
+ [TOOLBAR_SECTIONS.viewportActionMenu.topLeft]: ['orientationMenu', 'dataOverlayMenu'],
8948
+ [TOOLBAR_SECTIONS.viewportActionMenu.bottomMiddle]: ['AdvancedRenderingControls'],
8949
+ AdvancedRenderingControls: ['windowLevelMenuEmbedded', 'voiManualControlMenu', 'Colorbar', 'opacityMenu', 'thresholdMenu'],
8950
+ [TOOLBAR_SECTIONS.viewportActionMenu.topRight]: ['modalityLoadBadge', 'trackingStatus', 'navigationComponent'],
8951
+ [TOOLBAR_SECTIONS.viewportActionMenu.bottomLeft]: ['windowLevelMenu'],
8952
+ MeasurementTools: ['Length', 'Bidirectional', 'ArrowAnnotate', 'EllipticalROI', 'RectangleROI', 'CircleROI', 'PlanarFreehandROI', 'SplineROI', 'LivewireContour'],
8953
+ MoreTools: ['Reset', 'rotate-right', 'flipHorizontal', 'ImageSliceSync', 'ReferenceLines', 'ImageOverlayViewer', 'StackScroll', 'invert', 'Probe', 'Cine', 'Angle', 'CobbAngle', 'Magnify', 'CalibrationLine', 'TagBrowser', 'AdvancedMagnify', 'UltrasoundDirectionalTool', 'WindowLevelRegion', 'SegmentLabelTool']
8954
+ };
8955
+
8956
+ /**
8957
+ * Customizations registered (at default scope) by the cornerstone extension:
8958
+ * - `cornerstone.toolbarButtons` – the default toolbar button definitions
8959
+ * - `cornerstone.toolbarSections` – the default toolbar layout (section -> button ids)
8960
+ *
8961
+ * Modes read these by name in `onModeEnter`; URL `?customization=` modules can
8962
+ * extend them with immutability-helper commands (e.g. `$push` a new button).
8963
+ */
8964
+ const toolbarButtonsCustomization = {
8965
+ 'cornerstone.toolbarButtons': toolbarButtonsCustomization_toolbarButtons,
8966
+ 'cornerstone.toolbarSections': toolbarSections
8967
+ };
8968
+
8969
+ /* export default */ const customizations_toolbarButtonsCustomization = (toolbarButtonsCustomization);
8322
8970
  // EXTERNAL MODULE: ../../../node_modules/react-dropzone/dist/es/index.js + 4 modules
8323
8971
  var dist_es = __webpack_require__(2721);
8324
8972
  // EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
@@ -9133,6 +9781,7 @@ function getViewportScrollbarCustomization() {
9133
9781
 
9134
9782
 
9135
9783
 
9784
+
9136
9785
  function getCustomizationModule({
9137
9786
  commandsManager,
9138
9787
  servicesManager,
@@ -9155,6 +9804,7 @@ function getCustomizationModule({
9155
9804
  ...customizations_colorbarCustomization,
9156
9805
  ...modalityColorMapCustomization,
9157
9806
  ...windowLevelPresetsCustomization,
9807
+ ...customizations_toolbarButtonsCustomization,
9158
9808
  ...miscCustomization,
9159
9809
  ...captureViewportModalCustomization,
9160
9810
  ...viewportDownloadWarningCustomization,
@@ -13403,8 +14053,6 @@ function commandsModule({
13403
14053
  };
13404
14054
  }
13405
14055
  /* export default */ const src_commandsModule = (commandsModule);
13406
- // EXTERNAL MODULE: ../../../node_modules/i18next/dist/esm/i18next.js + 22 modules
13407
- var i18next = __webpack_require__(26104);
13408
14056
  ;// CONCATENATED MODULE: ../../../extensions/cornerstone/src/hps/mpr.ts
13409
14057
 
13410
14058
  const VOI_SYNC_GROUP = {