@ohif/extension-cornerstone 3.14.0-beta.97 → 3.14.0-beta.99

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 (325) hide show
  1. package/dist/915.ohif-extension-cornerstone.umd.js +1 -1
  2. package/dist/ohif-extension-cornerstone.umd.js +1 -5
  3. package/package.json +18 -8
  4. package/src/Viewport/OHIFCornerstoneViewport.css +46 -0
  5. package/src/Viewport/OHIFCornerstoneViewport.tsx +502 -0
  6. package/src/Viewport/Overlays/CornerstoneOverlays.tsx +103 -0
  7. package/src/Viewport/Overlays/CustomizableViewportOverlay.css +25 -0
  8. package/src/Viewport/Overlays/CustomizableViewportOverlay.tsx +469 -0
  9. package/src/Viewport/Overlays/ViewportImageScrollbar.tsx +106 -0
  10. package/src/Viewport/Overlays/ViewportImageSliceLoadingIndicator.tsx +87 -0
  11. package/src/Viewport/Overlays/ViewportOrientationMarkers.css +41 -0
  12. package/src/Viewport/Overlays/ViewportOrientationMarkers.tsx +136 -0
  13. package/src/Viewport/Overlays/ViewportSliceProgressScrollbar/ViewportSliceProgressScrollbar.tsx +195 -0
  14. package/src/Viewport/Overlays/ViewportSliceProgressScrollbar/helpers.ts +46 -0
  15. package/src/Viewport/Overlays/ViewportSliceProgressScrollbar/hooks.ts +383 -0
  16. package/src/Viewport/Overlays/ViewportSliceProgressScrollbar/index.ts +1 -0
  17. package/src/Viewport/Overlays/ViewportSliceProgressScrollbar/types.ts +17 -0
  18. package/src/Viewport/Overlays/utils.ts +66 -0
  19. package/src/commandsModule.ts +2951 -0
  20. package/src/components/AccordionGroup/AccordionGroup.tsx +195 -0
  21. package/src/components/AccordionGroup/index.ts +4 -0
  22. package/src/components/ActiveViewportWindowLevel/ActiveViewportWindowLevel.tsx +23 -0
  23. package/src/components/ActiveViewportWindowLevel/index.js +1 -0
  24. package/src/components/AdvancedRenderingControls/AdvancedRenderingControls.tsx +149 -0
  25. package/src/components/AdvancedRenderingControls/index.ts +1 -0
  26. package/src/components/CinePlayer/CinePlayer.tsx +247 -0
  27. package/src/components/CinePlayer/index.ts +3 -0
  28. package/src/components/DicomUpload/DicomUpload.tsx +111 -0
  29. package/src/components/DicomUpload/DicomUploadProgress.tsx +396 -0
  30. package/src/components/DicomUpload/DicomUploadProgressItem.tsx +119 -0
  31. package/src/components/ExportSegmentationSubMenuItem.tsx +75 -0
  32. package/src/components/MeasurementItems.tsx +70 -0
  33. package/src/components/MeasurementTableNested.tsx +30 -0
  34. package/src/components/MeasurementsMenu.tsx +84 -0
  35. package/src/components/MeasurementsOrAdditionalFindings.tsx +82 -0
  36. package/src/components/ModalityLoadBadge/ModalityLoadBadge.tsx +171 -0
  37. package/src/components/ModalityLoadBadge/index.ts +1 -0
  38. package/src/components/NavigationComponent/NavigationComponent.tsx +138 -0
  39. package/src/components/NavigationComponent/index.ts +3 -0
  40. package/src/components/OHIFViewportActionCorners.tsx +94 -0
  41. package/src/components/OpacityMenu/OpacityMenu.tsx +54 -0
  42. package/src/components/OpacityMenu/OpacityMenuWrapper.tsx +85 -0
  43. package/src/components/OpacityMenu/index.ts +2 -0
  44. package/src/components/PanelAccordionTrigger.tsx +48 -0
  45. package/src/components/SegmentationToolConfig.tsx +71 -0
  46. package/src/components/SegmentationUtilityButton.tsx +61 -0
  47. package/src/components/SelectItemWithModality.tsx +29 -0
  48. package/src/components/SeriesMeasurements.tsx +90 -0
  49. package/src/components/SeriesSummaryFromDisplaySet.tsx +21 -0
  50. package/src/components/StudyMeasurements.tsx +88 -0
  51. package/src/components/StudyMeasurementsActions.tsx +75 -0
  52. package/src/components/StudySummaryFromMetadata.test.ts +47 -0
  53. package/src/components/StudySummaryFromMetadata.tsx +31 -0
  54. package/src/components/StudySummaryWithActions.tsx +14 -0
  55. package/src/components/ThresholdMenu/ThresholdMenu.tsx +104 -0
  56. package/src/components/ThresholdMenu/ThresholdMenuWrapper.tsx +85 -0
  57. package/src/components/ThresholdMenu/index.ts +2 -0
  58. package/src/components/TrackingStatus/TrackingStatus.tsx +32 -0
  59. package/src/components/TrackingStatus/index.ts +1 -0
  60. package/src/components/VOIManualControlMenu/VOIManualControlMenu.tsx +190 -0
  61. package/src/components/VOIManualControlMenu/VOIManualControlMenuWrapper.tsx +85 -0
  62. package/src/components/VOIManualControlMenu/index.ts +2 -0
  63. package/src/components/ViewportColorbar/ViewportColorbar.tsx +150 -0
  64. package/src/components/ViewportColorbar/ViewportColorbarsContainer.tsx +125 -0
  65. package/src/components/ViewportColorbar/index.ts +5 -0
  66. package/src/components/ViewportDataOverlaySettingMenu/ViewportDataOverlayMenu.tsx +538 -0
  67. package/src/components/ViewportDataOverlaySettingMenu/ViewportDataOverlayMenuWrapper.tsx +91 -0
  68. package/src/components/ViewportDataOverlaySettingMenu/utils.ts +118 -0
  69. package/src/components/ViewportOrientationMenu/ViewportOrientationMenu.tsx +249 -0
  70. package/src/components/ViewportOrientationMenu/ViewportOrientationMenuWrapper.tsx +29 -0
  71. package/src/components/ViewportWindowLevel/ViewportWindowLevel.tsx +261 -0
  72. package/src/components/ViewportWindowLevel/getViewportVolumeHistogram.ts +72 -0
  73. package/src/components/ViewportWindowLevel/histogramWorker.js +97 -0
  74. package/src/components/ViewportWindowLevel/index.js +1 -0
  75. package/src/components/ViewportWindowLevel/utils.ts +176 -0
  76. package/src/components/WindowLevelActionMenu/Colorbar.tsx +30 -0
  77. package/src/components/WindowLevelActionMenu/Colormap.tsx +121 -0
  78. package/src/components/WindowLevelActionMenu/VolumeLighting.tsx +82 -0
  79. package/src/components/WindowLevelActionMenu/VolumeRenderingOptions.tsx +38 -0
  80. package/src/components/WindowLevelActionMenu/VolumeRenderingPresets.tsx +36 -0
  81. package/src/components/WindowLevelActionMenu/VolumeRenderingPresetsContent.tsx +78 -0
  82. package/src/components/WindowLevelActionMenu/VolumeRenderingQuality.tsx +64 -0
  83. package/src/components/WindowLevelActionMenu/VolumeShade.tsx +47 -0
  84. package/src/components/WindowLevelActionMenu/VolumeShift.tsx +92 -0
  85. package/src/components/WindowLevelActionMenu/WindowLevel.tsx +157 -0
  86. package/src/components/WindowLevelActionMenu/WindowLevelActionMenu.tsx +102 -0
  87. package/src/components/WindowLevelActionMenu/WindowLevelActionMenuWrapper.tsx +131 -0
  88. package/src/components/WindowLevelActionMenu/defaultWindowLevelPresets.ts +23 -0
  89. package/src/components/WindowLevelActionMenu/index.ts +11 -0
  90. package/src/components/WindowLevelActionMenu/windowLevelPresetHotkeys.test.ts +19 -0
  91. package/src/components/index.ts +12 -0
  92. package/src/constants/index.ts +13 -0
  93. package/src/customizations/CustomDropdownMenuContent.tsx +106 -0
  94. package/src/customizations/CustomSegmentStatisticsHeader.tsx +140 -0
  95. package/src/customizations/captureViewportModalCustomization.tsx +175 -0
  96. package/src/customizations/colorbarCustomization.ts +93 -0
  97. package/src/customizations/gpuSettingsPresetCustomization.ts +8 -0
  98. package/src/customizations/layoutSelectorCustomization.ts +104 -0
  99. package/src/customizations/measurementsCustomization.ts +124 -0
  100. package/src/customizations/miscCustomization.ts +22 -0
  101. package/src/customizations/modalityColorMapCustomization.ts +23 -0
  102. package/src/customizations/segmentationHydrationCustomization.ts +16 -0
  103. package/src/customizations/segmentationPanelCustomization.tsx +119 -0
  104. package/src/customizations/segmentationToolbarCustomization.ts +964 -0
  105. package/src/customizations/toolGroupToolsCustomization.ts +204 -0
  106. package/src/customizations/toolbarButtonsCustomization.ts +805 -0
  107. package/src/customizations/viewportClickCommandsCustomization.ts +15 -0
  108. package/src/customizations/viewportDownloadWarningCustomization.tsx +6 -0
  109. package/src/customizations/viewportOverlayCustomization.tsx +46 -0
  110. package/src/customizations/viewportScrollbarCustomization.tsx +27 -0
  111. package/src/customizations/viewportToolsCustomization.ts +33 -0
  112. package/src/customizations/volumeRenderingCustomization.ts +14 -0
  113. package/src/customizations/windowLevelPresetsCustomization.ts +5 -0
  114. package/src/enums.ts +9 -0
  115. package/src/getCustomizationModule.tsx +54 -0
  116. package/src/getHangingProtocolModule.ts +47 -0
  117. package/src/getPanelModule.tsx +128 -0
  118. package/src/getSopClassHandlerModule.js +284 -0
  119. package/src/getToolbarModule.tsx +622 -0
  120. package/src/hooks/index.ts +8 -0
  121. package/src/hooks/useActiveViewportSegmentationRepresentations.ts +14 -0
  122. package/src/hooks/useMeasurementTracking.ts +132 -0
  123. package/src/hooks/useMeasurements.ts +104 -0
  124. package/src/hooks/useSegmentations.ts +147 -0
  125. package/src/hooks/useViewportDisplaySets.ts +284 -0
  126. package/src/hooks/useViewportHover.ts +77 -0
  127. package/src/hooks/useViewportRendering.tsx +868 -0
  128. package/src/hooks/useViewportSegmentations.ts +245 -0
  129. package/src/hps/fourUp.ts +117 -0
  130. package/src/hps/frameView.ts +1581 -0
  131. package/src/hps/main3D.ts +142 -0
  132. package/src/hps/mpr.ts +197 -0
  133. package/src/hps/mprAnd3DVolumeViewport.ts +124 -0
  134. package/src/hps/only3D.ts +70 -0
  135. package/src/hps/primary3D.ts +142 -0
  136. package/src/hps/primaryAxial.ts +114 -0
  137. package/src/id.js +5 -0
  138. package/src/index.tsx +350 -0
  139. package/src/init.tsx +445 -0
  140. package/src/initCineService.ts +75 -0
  141. package/src/initContextMenu.ts +94 -0
  142. package/src/initCornerstoneTools.js +188 -0
  143. package/src/initDoubleClick.ts +82 -0
  144. package/src/initMeasurementService.ts +576 -0
  145. package/src/initStudyPrefetcherService.ts +33 -0
  146. package/src/initWADOImageLoader.js +56 -0
  147. package/src/panels/PanelMeasurement.tsx +84 -0
  148. package/src/panels/PanelSegmentation.tsx +338 -0
  149. package/src/services/ColorbarService/ColorbarService.ts +242 -0
  150. package/src/services/ColorbarService/index.ts +2 -0
  151. package/src/services/CornerstoneCacheService/CornerstoneCacheService.ts +326 -0
  152. package/src/services/CornerstoneCacheService/index.js +3 -0
  153. package/src/services/SegmentationService/RTSTRUCT/mapROIContoursToRTStructData.ts +36 -0
  154. package/src/services/SegmentationService/SegmentationService.test.ts +3698 -0
  155. package/src/services/SegmentationService/SegmentationService.ts +2376 -0
  156. package/src/services/SegmentationService/backends/ISegmentationBackend.ts +102 -0
  157. package/src/services/SegmentationService/backends/ISegmentationServiceInternals.ts +44 -0
  158. package/src/services/SegmentationService/backends/LegacySegmentationBackend.ts +139 -0
  159. package/src/services/SegmentationService/backends/NextSegmentationBackend.ts +159 -0
  160. package/src/services/SegmentationService/backends/index.ts +4 -0
  161. package/src/services/SegmentationService/index.ts +3 -0
  162. package/src/services/SyncGroupService/SyncGroupService.ts +264 -0
  163. package/src/services/SyncGroupService/createHydrateSegmentationSynchronizer.ts +118 -0
  164. package/src/services/SyncGroupService/index.js +3 -0
  165. package/src/services/ToolGroupService/ToolGroupService.test.ts +83 -0
  166. package/src/services/ToolGroupService/ToolGroupService.ts +541 -0
  167. package/src/services/ToolGroupService/index.js +3 -0
  168. package/src/services/ViewedDataService/ViewedDataService.ts +58 -0
  169. package/src/services/ViewedDataService/index.ts +3 -0
  170. package/src/services/ViewportService/CornerstoneViewportService.ts +1814 -0
  171. package/src/services/ViewportService/IViewportService.ts +64 -0
  172. package/src/services/ViewportService/Viewport.ts +372 -0
  173. package/src/services/ViewportService/adapter/IViewportAdapter.contract.test.ts +467 -0
  174. package/src/services/ViewportService/adapter/IViewportAdapter.ts +179 -0
  175. package/src/services/ViewportService/adapter/LegacyViewportAdapter.ts +240 -0
  176. package/src/services/ViewportService/adapter/NextViewportAdapter.ts +241 -0
  177. package/src/services/ViewportService/adapter/getViewportAdapter.ts +62 -0
  178. package/src/services/ViewportService/adapter/index.ts +16 -0
  179. package/src/services/ViewportService/backends/IViewportBackend.ts +195 -0
  180. package/src/services/ViewportService/backends/IViewportOperations.ts +98 -0
  181. package/src/services/ViewportService/backends/IViewportServiceInternals.ts +47 -0
  182. package/src/services/ViewportService/backends/LegacyViewportBackend.ts +264 -0
  183. package/src/services/ViewportService/backends/LegacyViewportOperations.ts +272 -0
  184. package/src/services/ViewportService/backends/NextViewportBackend.ts +671 -0
  185. package/src/services/ViewportService/backends/NextViewportOperations.ts +169 -0
  186. package/src/services/ViewportService/backends/README.md +62 -0
  187. package/src/services/ViewportService/backends/dataIdRegistry.ts +121 -0
  188. package/src/services/ViewportService/backends/viewportOperations.ts +71 -0
  189. package/src/services/ViewportService/constants.ts +3 -0
  190. package/src/state.ts +34 -0
  191. package/src/stores/index.ts +5 -0
  192. package/src/stores/presentationUtils.ts +42 -0
  193. package/src/stores/useLutPresentationStore.ts +166 -0
  194. package/src/stores/usePositionPresentationStore.ts +172 -0
  195. package/src/stores/useSegmentationPresentationStore.test.ts +146 -0
  196. package/src/stores/useSegmentationPresentationStore.ts +417 -0
  197. package/src/stores/useSelectedSegmentationsForViewportStore.ts +85 -0
  198. package/src/stores/useSynchronizersStore.ts +84 -0
  199. package/src/synchronizers/frameViewSynchronizer.ts +52 -0
  200. package/src/tools/CalibrationLineTool.ts +97 -0
  201. package/src/tools/ImageOverlayViewerTool.tsx +279 -0
  202. package/src/tools/OverlayPlaneModuleProvider.ts +40 -0
  203. package/src/tools/WindowLevelTool.test.ts +55 -0
  204. package/src/tools/WindowLevelTool.ts +22 -0
  205. package/src/types/AppTypes.ts +70 -0
  206. package/src/types/Colorbar.ts +114 -0
  207. package/src/types/Colormap.ts +16 -0
  208. package/src/types/CornerstoneCacheService.ts +40 -0
  209. package/src/types/CornerstoneServices.ts +18 -0
  210. package/src/types/Presentation.ts +83 -0
  211. package/src/types/SelectedSegmentationByTypeMap.ts +3 -0
  212. package/src/types/ViewportPresets.ts +53 -0
  213. package/src/types/VolumeLighting.ts +7 -0
  214. package/src/types/VolumeRenderingConfig.ts +8 -0
  215. package/src/types/WindowLevel.ts +5 -0
  216. package/src/types/index.ts +10 -0
  217. package/src/utils/ActiveViewportBehavior.tsx +80 -0
  218. package/src/utils/CornerstoneViewportDownloadForm.tsx +319 -0
  219. package/src/utils/DicomFileUploader.ts +204 -0
  220. package/src/utils/JumpPresets.ts +14 -0
  221. package/src/utils/autoHydrateViewportTypes.ts +69 -0
  222. package/src/utils/colormaps.js +1597 -0
  223. package/src/utils/createSegmentationForViewport.ts +83 -0
  224. package/src/utils/dicomLoaderService.js +225 -0
  225. package/src/utils/ecgMetadata.test.ts +137 -0
  226. package/src/utils/ecgMetadata.ts +109 -0
  227. package/src/utils/findNearbyToolData.test.ts +125 -0
  228. package/src/utils/findNearbyToolData.ts +21 -0
  229. package/src/utils/generateSegmentationCSVReport.test.ts +324 -0
  230. package/src/utils/generateSegmentationCSVReport.ts +131 -0
  231. package/src/utils/getActiveViewportEnabledElement.test.ts +70 -0
  232. package/src/utils/getActiveViewportEnabledElement.ts +8 -0
  233. package/src/utils/getCenterExtent.test.ts +313 -0
  234. package/src/utils/getCenterExtent.ts +46 -0
  235. package/src/utils/getCornerstoneBlendMode.test.ts +59 -0
  236. package/src/utils/getCornerstoneBlendMode.ts +25 -0
  237. package/src/utils/getCornerstoneOrientation.test.ts +78 -0
  238. package/src/utils/getCornerstoneOrientation.ts +31 -0
  239. package/src/utils/getCornerstoneViewportType.test.ts +169 -0
  240. package/src/utils/getCornerstoneViewportType.ts +88 -0
  241. package/src/utils/getInterleavedFrames.test.ts +85 -0
  242. package/src/utils/getInterleavedFrames.ts +73 -0
  243. package/src/utils/getLegacyViewportType.ts +64 -0
  244. package/src/utils/getNthFrames.test.ts +145 -0
  245. package/src/utils/getNthFrames.ts +31 -0
  246. package/src/utils/getViewportEnabledElement.test.ts +83 -0
  247. package/src/utils/getViewportEnabledElement.ts +8 -0
  248. package/src/utils/getViewportOrientationFromImageOrientationPatient.test.ts +50 -0
  249. package/src/utils/getViewportOrientationFromImageOrientationPatient.ts +56 -0
  250. package/src/utils/hydrationUtils.test.ts +572 -0
  251. package/src/utils/hydrationUtils.ts +197 -0
  252. package/src/utils/imageSliceSync/calculateViewportRegistrations.ts +28 -0
  253. package/src/utils/imageSliceSync/toggleImageSliceSync.ts +101 -0
  254. package/src/utils/index.ts +29 -0
  255. package/src/utils/initGpuSettingsPreset.ts +51 -0
  256. package/src/utils/initViewTiming.test.ts +342 -0
  257. package/src/utils/initViewTiming.ts +52 -0
  258. package/src/utils/initWebWorkerProgressHandler.test.ts +381 -0
  259. package/src/utils/initWebWorkerProgressHandler.ts +110 -0
  260. package/src/utils/interleave.test.ts +304 -0
  261. package/src/utils/interleave.ts +32 -0
  262. package/src/utils/interleaveCenterLoader.test.ts +547 -0
  263. package/src/utils/interleaveCenterLoader.ts +143 -0
  264. package/src/utils/interleaveTopToBottom.test.ts +487 -0
  265. package/src/utils/interleaveTopToBottom.ts +132 -0
  266. package/src/utils/isAnyDisplaySetCommon.ts +18 -0
  267. package/src/utils/isDisplaySetOverlayable.ts +96 -0
  268. package/src/utils/isMeasurementWithinViewport.test.ts +340 -0
  269. package/src/utils/isMeasurementWithinViewport.ts +33 -0
  270. package/src/utils/isReferenceViewable.test.ts +581 -0
  271. package/src/utils/isReferenceViewable.ts +95 -0
  272. package/src/utils/loadDisplaySetData.ts +49 -0
  273. package/src/utils/measurementServiceMappings/Angle.ts +200 -0
  274. package/src/utils/measurementServiceMappings/ArrowAnnotate.ts +176 -0
  275. package/src/utils/measurementServiceMappings/Bidirectional.ts +193 -0
  276. package/src/utils/measurementServiceMappings/CircleROI.ts +227 -0
  277. package/src/utils/measurementServiceMappings/CobbAngle.ts +206 -0
  278. package/src/utils/measurementServiceMappings/EllipticalROI.ts +221 -0
  279. package/src/utils/measurementServiceMappings/Length.ts +206 -0
  280. package/src/utils/measurementServiceMappings/LivewireContour.ts +175 -0
  281. package/src/utils/measurementServiceMappings/PlanarFreehandROI.ts +228 -0
  282. package/src/utils/measurementServiceMappings/Probe.ts +192 -0
  283. package/src/utils/measurementServiceMappings/RectangleROI.ts +225 -0
  284. package/src/utils/measurementServiceMappings/SegmentBidirectional.ts +184 -0
  285. package/src/utils/measurementServiceMappings/SplineROI.ts +227 -0
  286. package/src/utils/measurementServiceMappings/UltrasoundDirectional.ts +214 -0
  287. package/src/utils/measurementServiceMappings/UltrasoundPleuraBLine.ts +179 -0
  288. package/src/utils/measurementServiceMappings/constants/supportedTools.js +21 -0
  289. package/src/utils/measurementServiceMappings/index.ts +3 -0
  290. package/src/utils/measurementServiceMappings/measurementServiceMappingsFactory.ts +324 -0
  291. package/src/utils/measurementServiceMappings/utils/getDisplayUnit.js +3 -0
  292. package/src/utils/measurementServiceMappings/utils/getHandlesFromPoints.js +14 -0
  293. package/src/utils/measurementServiceMappings/utils/getIsLocked.ts +5 -0
  294. package/src/utils/measurementServiceMappings/utils/getIsVisible.ts +6 -0
  295. package/src/utils/measurementServiceMappings/utils/getSOPInstanceAttributes.js +66 -0
  296. package/src/utils/measurementServiceMappings/utils/getValueDisplayString.js +12 -0
  297. package/src/utils/measurementServiceMappings/utils/index.ts +17 -0
  298. package/src/utils/measurementServiceMappings/utils/selection.ts +33 -0
  299. package/src/utils/mpr/getProtocolViewportStructureFromGridViewports.ts +74 -0
  300. package/src/utils/nextViewportPolicies.ts +41 -0
  301. package/src/utils/nextViewports.ts +157 -0
  302. package/src/utils/nthLoader.test.ts +317 -0
  303. package/src/utils/nthLoader.ts +78 -0
  304. package/src/utils/presentations/getViewportPresentations.test.ts +280 -0
  305. package/src/utils/presentations/getViewportPresentations.ts +151 -0
  306. package/src/utils/promptHydrationDialog.test.ts +490 -0
  307. package/src/utils/promptHydrationDialog.ts +197 -0
  308. package/src/utils/removeViewportSegmentationRepresentations.test.ts +129 -0
  309. package/src/utils/removeViewportSegmentationRepresentations.ts +17 -0
  310. package/src/utils/segmentUtils.test.ts +515 -0
  311. package/src/utils/segmentUtils.ts +46 -0
  312. package/src/utils/segmentationExportUtils.test.ts +100 -0
  313. package/src/utils/segmentationExportUtils.ts +171 -0
  314. package/src/utils/segmentationHandlers.test.ts +614 -0
  315. package/src/utils/segmentationHandlers.ts +164 -0
  316. package/src/utils/setUpAnnotationEventHandlers.ts +26 -0
  317. package/src/utils/setUpSegmentationEventHandlers.test.ts +372 -0
  318. package/src/utils/setUpSegmentationEventHandlers.ts +122 -0
  319. package/src/utils/toggleVOISliceSync.test.ts +606 -0
  320. package/src/utils/toggleVOISliceSync.ts +103 -0
  321. package/src/utils/transitions.test.ts +351 -0
  322. package/src/utils/transitions.ts +300 -0
  323. package/src/utils/updateSegmentationStats.test.ts +942 -0
  324. package/src/utils/updateSegmentationStats.ts +192 -0
  325. package/src/utils/viewportDataShape.ts +85 -0
@@ -0,0 +1,1581 @@
1
+ import { Types } from '@ohif/core';
2
+ import i18n from 'i18next';
3
+ const frameView: Types.HangingProtocol.Protocol = {
4
+ id: '@ohif/frameView',
5
+ description: i18n.t('Hps:Frame view for the active series'),
6
+ name: i18n.t('Hps:Frame View'),
7
+ icon: 'tool-stack-scroll',
8
+ isPreset: true,
9
+ toolGroupIds: ['default'],
10
+ protocolMatchingRules: [],
11
+ displaySetSelectors: {
12
+ activeDisplaySet: {
13
+ seriesMatchingRules: [
14
+ {
15
+ attribute: 'numImageFrames',
16
+ constraint: {
17
+ greaterThanOrEqual: { value: 16 },
18
+ },
19
+ required: true,
20
+ },
21
+ {
22
+ attribute: 'isDisplaySetFromUrl',
23
+ weight: 20,
24
+ constraint: {
25
+ equals: true,
26
+ },
27
+ },
28
+ ],
29
+ },
30
+ },
31
+ defaultViewport: {
32
+ viewportOptions: {
33
+ viewportType: 'stack',
34
+ toolGroupId: 'default',
35
+ allowUnmatchedView: true,
36
+ },
37
+ displaySets: [
38
+ {
39
+ id: 'activeDisplaySet',
40
+ },
41
+ ],
42
+ },
43
+ stages: [
44
+ {
45
+ name: 'frameView',
46
+ id: '4x4',
47
+ viewportStructure: {
48
+ layoutType: 'grid',
49
+ properties: {
50
+ rows: 4,
51
+ columns: 4,
52
+ },
53
+ },
54
+ viewports: [
55
+ {
56
+ viewportOptions: {
57
+ viewportId: 'custom_R0_C0',
58
+ toolGroupId: 'default',
59
+ syncGroups: [
60
+ {
61
+ type: 'zoompan',
62
+ id: 'zoompansync',
63
+ source: true,
64
+ target: true,
65
+ },
66
+ {
67
+ type: 'voi',
68
+ id: 'wlsync',
69
+ source: true,
70
+ target: true,
71
+ options: {
72
+ syncColormap: true,
73
+ },
74
+ },
75
+ {
76
+ type: 'frameview',
77
+ id: 'frameViewSync',
78
+ source: true,
79
+ target: true,
80
+ options: {
81
+ viewportIndex: 0,
82
+ },
83
+ },
84
+ ],
85
+ },
86
+ displaySets: [
87
+ {
88
+ id: 'activeDisplaySet',
89
+ },
90
+ ],
91
+ },
92
+ {
93
+ viewportOptions: {
94
+ viewportId: 'custom_R0_C1',
95
+ toolGroupId: 'default',
96
+ syncGroups: [
97
+ {
98
+ type: 'zoompan',
99
+ id: 'zoompansync',
100
+ source: true,
101
+ target: true,
102
+ },
103
+ {
104
+ type: 'voi',
105
+ id: 'wlsync',
106
+ source: true,
107
+ target: true,
108
+ options: {
109
+ syncColormap: true,
110
+ },
111
+ },
112
+ {
113
+ type: 'frameview',
114
+ id: 'frameViewSync',
115
+ source: true,
116
+ target: true,
117
+ options: {
118
+ viewportIndex: 1,
119
+ },
120
+ },
121
+ ],
122
+ },
123
+ displaySets: [
124
+ {
125
+ id: 'activeDisplaySet',
126
+ },
127
+ ],
128
+ },
129
+ {
130
+ viewportOptions: {
131
+ viewportId: 'custom_R0_C2',
132
+ toolGroupId: 'default',
133
+ syncGroups: [
134
+ {
135
+ type: 'zoompan',
136
+ id: 'zoompansync',
137
+ source: true,
138
+ target: true,
139
+ },
140
+ {
141
+ type: 'voi',
142
+ id: 'wlsync',
143
+ source: true,
144
+ target: true,
145
+ options: {
146
+ syncColormap: true,
147
+ },
148
+ },
149
+ {
150
+ type: 'frameview',
151
+ id: 'frameViewSync',
152
+ source: true,
153
+ target: true,
154
+ options: {
155
+ viewportIndex: 2,
156
+ },
157
+ },
158
+ ],
159
+ },
160
+ displaySets: [
161
+ {
162
+ id: 'activeDisplaySet',
163
+ },
164
+ ],
165
+ },
166
+ {
167
+ viewportOptions: {
168
+ viewportId: 'custom_R0_C3',
169
+ toolGroupId: 'default',
170
+ syncGroups: [
171
+ {
172
+ type: 'zoompan',
173
+ id: 'zoompansync',
174
+ source: true,
175
+ target: true,
176
+ },
177
+ {
178
+ type: 'voi',
179
+ id: 'wlsync',
180
+ source: true,
181
+ target: true,
182
+ options: {
183
+ syncColormap: true,
184
+ },
185
+ },
186
+ {
187
+ type: 'frameview',
188
+ id: 'frameViewSync',
189
+ source: true,
190
+ target: true,
191
+ options: {
192
+ viewportIndex: 3,
193
+ },
194
+ },
195
+ ],
196
+ },
197
+ displaySets: [
198
+ {
199
+ id: 'activeDisplaySet',
200
+ },
201
+ ],
202
+ },
203
+ {
204
+ viewportOptions: {
205
+ viewportId: 'custom_R1_C0',
206
+ toolGroupId: 'default',
207
+ syncGroups: [
208
+ {
209
+ type: 'zoompan',
210
+ id: 'zoompansync',
211
+ source: true,
212
+ target: true,
213
+ },
214
+ {
215
+ type: 'voi',
216
+ id: 'wlsync',
217
+ source: true,
218
+ target: true,
219
+ options: {
220
+ syncColormap: true,
221
+ },
222
+ },
223
+ {
224
+ type: 'frameview',
225
+ id: 'frameViewSync',
226
+ source: true,
227
+ target: true,
228
+ options: {
229
+ viewportIndex: 4,
230
+ },
231
+ },
232
+ ],
233
+ },
234
+ displaySets: [
235
+ {
236
+ id: 'activeDisplaySet',
237
+ },
238
+ ],
239
+ },
240
+ {
241
+ viewportOptions: {
242
+ viewportId: 'custom_R1_C1',
243
+ toolGroupId: 'default',
244
+ syncGroups: [
245
+ {
246
+ type: 'zoompan',
247
+ id: 'zoompansync',
248
+ source: true,
249
+ target: true,
250
+ },
251
+ {
252
+ type: 'voi',
253
+ id: 'wlsync',
254
+ source: true,
255
+ target: true,
256
+ options: {
257
+ syncColormap: true,
258
+ },
259
+ },
260
+ {
261
+ type: 'frameview',
262
+ id: 'frameViewSync',
263
+ source: true,
264
+ target: true,
265
+ options: {
266
+ viewportIndex: 5,
267
+ },
268
+ },
269
+ ],
270
+ },
271
+ displaySets: [
272
+ {
273
+ id: 'activeDisplaySet',
274
+ },
275
+ ],
276
+ },
277
+ {
278
+ viewportOptions: {
279
+ viewportId: 'custom_R1_C2',
280
+ toolGroupId: 'default',
281
+ syncGroups: [
282
+ {
283
+ type: 'zoompan',
284
+ id: 'zoompansync',
285
+ source: true,
286
+ target: true,
287
+ },
288
+ {
289
+ type: 'voi',
290
+ id: 'wlsync',
291
+ source: true,
292
+ target: true,
293
+ options: {
294
+ syncColormap: true,
295
+ },
296
+ },
297
+ {
298
+ type: 'frameview',
299
+ id: 'frameViewSync',
300
+ source: true,
301
+ target: true,
302
+ options: {
303
+ viewportIndex: 6,
304
+ },
305
+ },
306
+ ],
307
+ },
308
+ displaySets: [
309
+ {
310
+ id: 'activeDisplaySet',
311
+ },
312
+ ],
313
+ },
314
+ {
315
+ viewportOptions: {
316
+ viewportId: 'custom_R1_C3',
317
+ toolGroupId: 'default',
318
+ syncGroups: [
319
+ {
320
+ type: 'zoompan',
321
+ id: 'zoompansync',
322
+ source: true,
323
+ target: true,
324
+ },
325
+ {
326
+ type: 'voi',
327
+ id: 'wlsync',
328
+ source: true,
329
+ target: true,
330
+ options: {
331
+ syncColormap: true,
332
+ },
333
+ },
334
+ {
335
+ type: 'frameview',
336
+ id: 'frameViewSync',
337
+ source: true,
338
+ target: true,
339
+ options: {
340
+ viewportIndex: 7,
341
+ },
342
+ },
343
+ ],
344
+ },
345
+ displaySets: [
346
+ {
347
+ id: 'activeDisplaySet',
348
+ },
349
+ ],
350
+ },
351
+ {
352
+ viewportOptions: {
353
+ viewportId: 'custom_R2_C0',
354
+ toolGroupId: 'default',
355
+ syncGroups: [
356
+ {
357
+ type: 'zoompan',
358
+ id: 'zoompansync',
359
+ source: true,
360
+ target: true,
361
+ },
362
+ {
363
+ type: 'voi',
364
+ id: 'wlsync',
365
+ source: true,
366
+ target: true,
367
+ options: {
368
+ syncColormap: true,
369
+ },
370
+ },
371
+ {
372
+ type: 'frameview',
373
+ id: 'frameViewSync',
374
+ source: true,
375
+ target: true,
376
+ options: {
377
+ viewportIndex: 8,
378
+ },
379
+ },
380
+ ],
381
+ },
382
+ displaySets: [
383
+ {
384
+ id: 'activeDisplaySet',
385
+ },
386
+ ],
387
+ },
388
+ {
389
+ viewportOptions: {
390
+ viewportId: 'custom_R2_C1',
391
+ toolGroupId: 'default',
392
+ syncGroups: [
393
+ {
394
+ type: 'zoompan',
395
+ id: 'zoompansync',
396
+ source: true,
397
+ target: true,
398
+ },
399
+ {
400
+ type: 'voi',
401
+ id: 'wlsync',
402
+ source: true,
403
+ target: true,
404
+ options: {
405
+ syncColormap: true,
406
+ },
407
+ },
408
+ {
409
+ type: 'frameview',
410
+ id: 'frameViewSync',
411
+ source: true,
412
+ target: true,
413
+ options: {
414
+ viewportIndex: 9,
415
+ },
416
+ },
417
+ ],
418
+ },
419
+ displaySets: [
420
+ {
421
+ id: 'activeDisplaySet',
422
+ },
423
+ ],
424
+ },
425
+ {
426
+ viewportOptions: {
427
+ viewportId: 'custom_R2_C2',
428
+ toolGroupId: 'default',
429
+ syncGroups: [
430
+ {
431
+ type: 'zoompan',
432
+ id: 'zoompansync',
433
+ source: true,
434
+ target: true,
435
+ },
436
+ {
437
+ type: 'voi',
438
+ id: 'wlsync',
439
+ source: true,
440
+ target: true,
441
+ options: {
442
+ syncColormap: true,
443
+ },
444
+ },
445
+ {
446
+ type: 'frameview',
447
+ id: 'frameViewSync',
448
+ source: true,
449
+ target: true,
450
+ options: {
451
+ viewportIndex: 10,
452
+ },
453
+ },
454
+ ],
455
+ },
456
+ displaySets: [
457
+ {
458
+ id: 'activeDisplaySet',
459
+ },
460
+ ],
461
+ },
462
+ {
463
+ viewportOptions: {
464
+ viewportId: 'custom_R2_C3',
465
+ toolGroupId: 'default',
466
+ syncGroups: [
467
+ {
468
+ type: 'zoompan',
469
+ id: 'zoompansync',
470
+ source: true,
471
+ target: true,
472
+ },
473
+ {
474
+ type: 'voi',
475
+ id: 'wlsync',
476
+ source: true,
477
+ target: true,
478
+ options: {
479
+ syncColormap: true,
480
+ },
481
+ },
482
+ {
483
+ type: 'frameview',
484
+ id: 'frameViewSync',
485
+ source: true,
486
+ target: true,
487
+ options: {
488
+ viewportIndex: 11,
489
+ },
490
+ },
491
+ ],
492
+ },
493
+ displaySets: [
494
+ {
495
+ id: 'activeDisplaySet',
496
+ },
497
+ ],
498
+ },
499
+ {
500
+ viewportOptions: {
501
+ viewportId: 'custom_R3_C0',
502
+ toolGroupId: 'default',
503
+ syncGroups: [
504
+ {
505
+ type: 'zoompan',
506
+ id: 'zoompansync',
507
+ source: true,
508
+ target: true,
509
+ },
510
+ {
511
+ type: 'voi',
512
+ id: 'wlsync',
513
+ source: true,
514
+ target: true,
515
+ options: {
516
+ syncColormap: true,
517
+ },
518
+ },
519
+ {
520
+ type: 'frameview',
521
+ id: 'frameViewSync',
522
+ source: true,
523
+ target: true,
524
+ options: {
525
+ viewportIndex: 12,
526
+ },
527
+ },
528
+ ],
529
+ },
530
+ displaySets: [
531
+ {
532
+ id: 'activeDisplaySet',
533
+ },
534
+ ],
535
+ },
536
+ {
537
+ viewportOptions: {
538
+ viewportId: 'custom_R3_C1',
539
+ toolGroupId: 'default',
540
+ syncGroups: [
541
+ {
542
+ type: 'zoompan',
543
+ id: 'zoompansync',
544
+ source: true,
545
+ target: true,
546
+ },
547
+ {
548
+ type: 'voi',
549
+ id: 'wlsync',
550
+ source: true,
551
+ target: true,
552
+ options: {
553
+ syncColormap: true,
554
+ },
555
+ },
556
+ {
557
+ type: 'frameview',
558
+ id: 'frameViewSync',
559
+ source: true,
560
+ target: true,
561
+ options: {
562
+ viewportIndex: 13,
563
+ },
564
+ },
565
+ ],
566
+ },
567
+ displaySets: [
568
+ {
569
+ id: 'activeDisplaySet',
570
+ },
571
+ ],
572
+ },
573
+ {
574
+ viewportOptions: {
575
+ viewportId: 'custom_R3_C2',
576
+ toolGroupId: 'default',
577
+ syncGroups: [
578
+ {
579
+ type: 'zoompan',
580
+ id: 'zoompansync',
581
+ source: true,
582
+ target: true,
583
+ },
584
+ {
585
+ type: 'voi',
586
+ id: 'wlsync',
587
+ source: true,
588
+ target: true,
589
+ options: {
590
+ syncColormap: true,
591
+ },
592
+ },
593
+ {
594
+ type: 'frameview',
595
+ id: 'frameViewSync',
596
+ source: true,
597
+ target: true,
598
+ options: {
599
+ viewportIndex: 14,
600
+ },
601
+ },
602
+ ],
603
+ },
604
+ displaySets: [
605
+ {
606
+ id: 'activeDisplaySet',
607
+ },
608
+ ],
609
+ },
610
+ {
611
+ viewportOptions: {
612
+ viewportId: 'custom_R3_C3',
613
+ toolGroupId: 'default',
614
+ syncGroups: [
615
+ {
616
+ type: 'zoompan',
617
+ id: 'zoompansync',
618
+ source: true,
619
+ target: true,
620
+ },
621
+ {
622
+ type: 'voi',
623
+ id: 'wlsync',
624
+ source: true,
625
+ target: true,
626
+ options: {
627
+ syncColormap: true,
628
+ },
629
+ },
630
+ {
631
+ type: 'frameview',
632
+ id: 'frameViewSync',
633
+ source: true,
634
+ target: true,
635
+ options: {
636
+ viewportIndex: 15,
637
+ },
638
+ },
639
+ ],
640
+ },
641
+ displaySets: [
642
+ {
643
+ id: 'activeDisplaySet',
644
+ },
645
+ ],
646
+ },
647
+ ],
648
+ },
649
+ {
650
+ name: 'frameView',
651
+ id: '3x3',
652
+ viewportStructure: {
653
+ layoutType: 'grid',
654
+ properties: {
655
+ rows: 3,
656
+ columns: 3,
657
+ },
658
+ },
659
+ viewports: [
660
+ {
661
+ viewportOptions: {
662
+ toolGroupId: 'default',
663
+ syncGroups: [
664
+ {
665
+ type: 'zoompan',
666
+ id: 'zoompansync',
667
+ source: true,
668
+ target: true,
669
+ },
670
+ {
671
+ type: 'voi',
672
+ id: 'wlsync',
673
+ source: true,
674
+ target: true,
675
+ options: {
676
+ syncColormap: true,
677
+ },
678
+ },
679
+ {
680
+ type: 'frameview',
681
+ id: 'frameViewSync',
682
+ source: true,
683
+ target: true,
684
+ options: {
685
+ viewportIndex: 0,
686
+ },
687
+ },
688
+ ],
689
+ },
690
+ displaySets: [
691
+ {
692
+ id: 'activeDisplaySet',
693
+ },
694
+ ],
695
+ },
696
+ {
697
+ viewportOptions: {
698
+ toolGroupId: 'default',
699
+ syncGroups: [
700
+ {
701
+ type: 'zoompan',
702
+ id: 'zoompansync',
703
+ source: true,
704
+ target: true,
705
+ },
706
+ {
707
+ type: 'voi',
708
+ id: 'wlsync',
709
+ source: true,
710
+ target: true,
711
+ options: {
712
+ syncColormap: true,
713
+ },
714
+ },
715
+ {
716
+ type: 'frameview',
717
+ id: 'frameViewSync',
718
+ source: true,
719
+ target: true,
720
+ options: {
721
+ viewportIndex: 1,
722
+ },
723
+ },
724
+ ],
725
+ },
726
+ displaySets: [
727
+ {
728
+ id: 'activeDisplaySet',
729
+ },
730
+ ],
731
+ },
732
+ {
733
+ viewportOptions: {
734
+ toolGroupId: 'default',
735
+ syncGroups: [
736
+ {
737
+ type: 'zoompan',
738
+ id: 'zoompansync',
739
+ source: true,
740
+ target: true,
741
+ },
742
+ {
743
+ type: 'voi',
744
+ id: 'wlsync',
745
+ source: true,
746
+ target: true,
747
+ options: {
748
+ syncColormap: true,
749
+ },
750
+ },
751
+ {
752
+ type: 'frameview',
753
+ id: 'frameViewSync',
754
+ source: true,
755
+ target: true,
756
+ options: {
757
+ viewportIndex: 2,
758
+ },
759
+ },
760
+ ],
761
+ },
762
+ displaySets: [
763
+ {
764
+ id: 'activeDisplaySet',
765
+ },
766
+ ],
767
+ },
768
+ {
769
+ viewportOptions: {
770
+ toolGroupId: 'default',
771
+ syncGroups: [
772
+ {
773
+ type: 'zoompan',
774
+ id: 'zoompansync',
775
+ source: true,
776
+ target: true,
777
+ },
778
+ {
779
+ type: 'voi',
780
+ id: 'wlsync',
781
+ source: true,
782
+ target: true,
783
+ options: {
784
+ syncColormap: true,
785
+ },
786
+ },
787
+ {
788
+ type: 'frameview',
789
+ id: 'frameViewSync',
790
+ source: true,
791
+ target: true,
792
+ options: {
793
+ viewportIndex: 3,
794
+ },
795
+ },
796
+ ],
797
+ },
798
+ displaySets: [
799
+ {
800
+ id: 'activeDisplaySet',
801
+ },
802
+ ],
803
+ },
804
+ {
805
+ viewportOptions: {
806
+ toolGroupId: 'default',
807
+ syncGroups: [
808
+ {
809
+ type: 'zoompan',
810
+ id: 'zoompansync',
811
+ source: true,
812
+ target: true,
813
+ },
814
+ {
815
+ type: 'voi',
816
+ id: 'wlsync',
817
+ source: true,
818
+ target: true,
819
+ options: {
820
+ syncColormap: true,
821
+ },
822
+ },
823
+ {
824
+ type: 'frameview',
825
+ id: 'frameViewSync',
826
+ source: true,
827
+ target: true,
828
+ options: {
829
+ viewportIndex: 4,
830
+ },
831
+ },
832
+ ],
833
+ },
834
+ displaySets: [
835
+ {
836
+ id: 'activeDisplaySet',
837
+ },
838
+ ],
839
+ },
840
+ {
841
+ viewportOptions: {
842
+ toolGroupId: 'default',
843
+ syncGroups: [
844
+ {
845
+ type: 'zoompan',
846
+ id: 'zoompansync',
847
+ source: true,
848
+ target: true,
849
+ },
850
+ {
851
+ type: 'voi',
852
+ id: 'wlsync',
853
+ source: true,
854
+ target: true,
855
+ options: {
856
+ syncColormap: true,
857
+ },
858
+ },
859
+ {
860
+ type: 'frameview',
861
+ id: 'frameViewSync',
862
+ source: true,
863
+ target: true,
864
+ options: {
865
+ viewportIndex: 5,
866
+ },
867
+ },
868
+ ],
869
+ },
870
+ displaySets: [
871
+ {
872
+ id: 'activeDisplaySet',
873
+ },
874
+ ],
875
+ },
876
+ {
877
+ viewportOptions: {
878
+ toolGroupId: 'default',
879
+ syncGroups: [
880
+ {
881
+ type: 'zoompan',
882
+ id: 'zoompansync',
883
+ source: true,
884
+ target: true,
885
+ },
886
+ {
887
+ type: 'voi',
888
+ id: 'wlsync',
889
+ source: true,
890
+ target: true,
891
+ options: {
892
+ syncColormap: true,
893
+ },
894
+ },
895
+ {
896
+ type: 'frameview',
897
+ id: 'frameViewSync',
898
+ source: true,
899
+ target: true,
900
+ options: {
901
+ viewportIndex: 6,
902
+ },
903
+ },
904
+ ],
905
+ },
906
+ displaySets: [
907
+ {
908
+ id: 'activeDisplaySet',
909
+ },
910
+ ],
911
+ },
912
+ {
913
+ viewportOptions: {
914
+ toolGroupId: 'default',
915
+ syncGroups: [
916
+ {
917
+ type: 'zoompan',
918
+ id: 'zoompansync',
919
+ source: true,
920
+ target: true,
921
+ },
922
+ {
923
+ type: 'voi',
924
+ id: 'wlsync',
925
+ source: true,
926
+ target: true,
927
+ options: {
928
+ syncColormap: true,
929
+ },
930
+ },
931
+ {
932
+ type: 'frameview',
933
+ id: 'frameViewSync',
934
+ source: true,
935
+ target: true,
936
+ options: {
937
+ viewportIndex: 7,
938
+ },
939
+ },
940
+ ],
941
+ },
942
+ displaySets: [
943
+ {
944
+ id: 'activeDisplaySet',
945
+ },
946
+ ],
947
+ },
948
+ {
949
+ viewportOptions: {
950
+ toolGroupId: 'default',
951
+ syncGroups: [
952
+ {
953
+ type: 'zoompan',
954
+ id: 'zoompansync',
955
+ source: true,
956
+ target: true,
957
+ },
958
+ {
959
+ type: 'voi',
960
+ id: 'wlsync',
961
+ source: true,
962
+ target: true,
963
+ options: {
964
+ syncColormap: true,
965
+ },
966
+ },
967
+ {
968
+ type: 'frameview',
969
+ id: 'frameViewSync',
970
+ source: true,
971
+ target: true,
972
+ options: {
973
+ viewportIndex: 8,
974
+ },
975
+ },
976
+ ],
977
+ },
978
+ displaySets: [
979
+ {
980
+ id: 'activeDisplaySet',
981
+ },
982
+ ],
983
+ },
984
+ ],
985
+ },
986
+ {
987
+ name: 'frameView',
988
+ id: '3x2',
989
+ viewportStructure: {
990
+ layoutType: 'grid',
991
+ properties: {
992
+ rows: 2,
993
+ columns: 3,
994
+ },
995
+ },
996
+ viewports: [
997
+ {
998
+ viewportOptions: {
999
+ toolGroupId: 'default',
1000
+ syncGroups: [
1001
+ {
1002
+ type: 'zoompan',
1003
+ id: 'zoompansync',
1004
+ source: true,
1005
+ target: true,
1006
+ },
1007
+ {
1008
+ type: 'voi',
1009
+ id: 'wlsync',
1010
+ source: true,
1011
+ target: true,
1012
+ options: {
1013
+ syncColormap: true,
1014
+ },
1015
+ },
1016
+ {
1017
+ type: 'frameview',
1018
+ id: 'frameViewSync',
1019
+ source: true,
1020
+ target: true,
1021
+ options: {
1022
+ viewportIndex: 0,
1023
+ },
1024
+ },
1025
+ ],
1026
+ },
1027
+ displaySets: [
1028
+ {
1029
+ id: 'activeDisplaySet',
1030
+ },
1031
+ ],
1032
+ },
1033
+ {
1034
+ viewportOptions: {
1035
+ toolGroupId: 'default',
1036
+ syncGroups: [
1037
+ {
1038
+ type: 'zoompan',
1039
+ id: 'zoompansync',
1040
+ source: true,
1041
+ target: true,
1042
+ },
1043
+ {
1044
+ type: 'voi',
1045
+ id: 'wlsync',
1046
+ source: true,
1047
+ target: true,
1048
+ options: {
1049
+ syncColormap: true,
1050
+ },
1051
+ },
1052
+ {
1053
+ type: 'frameview',
1054
+ id: 'frameViewSync',
1055
+ source: true,
1056
+ target: true,
1057
+ options: {
1058
+ viewportIndex: 1,
1059
+ },
1060
+ },
1061
+ ],
1062
+ },
1063
+ displaySets: [
1064
+ {
1065
+ id: 'activeDisplaySet',
1066
+ },
1067
+ ],
1068
+ },
1069
+ {
1070
+ viewportOptions: {
1071
+ toolGroupId: 'default',
1072
+ syncGroups: [
1073
+ {
1074
+ type: 'zoompan',
1075
+ id: 'zoompansync',
1076
+ source: true,
1077
+ target: true,
1078
+ },
1079
+ {
1080
+ type: 'voi',
1081
+ id: 'wlsync',
1082
+ source: true,
1083
+ target: true,
1084
+ options: {
1085
+ syncColormap: true,
1086
+ },
1087
+ },
1088
+ {
1089
+ type: 'frameview',
1090
+ id: 'frameViewSync',
1091
+ source: true,
1092
+ target: true,
1093
+ options: {
1094
+ viewportIndex: 2,
1095
+ },
1096
+ },
1097
+ ],
1098
+ },
1099
+ displaySets: [
1100
+ {
1101
+ id: 'activeDisplaySet',
1102
+ },
1103
+ ],
1104
+ },
1105
+ {
1106
+ viewportOptions: {
1107
+ toolGroupId: 'default',
1108
+ syncGroups: [
1109
+ {
1110
+ type: 'zoompan',
1111
+ id: 'zoompansync',
1112
+ source: true,
1113
+ target: true,
1114
+ },
1115
+ {
1116
+ type: 'voi',
1117
+ id: 'wlsync',
1118
+ source: true,
1119
+ target: true,
1120
+ options: {
1121
+ syncColormap: true,
1122
+ },
1123
+ },
1124
+ {
1125
+ type: 'frameview',
1126
+ id: 'frameViewSync',
1127
+ source: true,
1128
+ target: true,
1129
+ options: {
1130
+ viewportIndex: 3,
1131
+ },
1132
+ },
1133
+ ],
1134
+ },
1135
+ displaySets: [
1136
+ {
1137
+ id: 'activeDisplaySet',
1138
+ },
1139
+ ],
1140
+ },
1141
+ {
1142
+ viewportOptions: {
1143
+ toolGroupId: 'default',
1144
+ syncGroups: [
1145
+ {
1146
+ type: 'zoompan',
1147
+ id: 'zoompansync',
1148
+ source: true,
1149
+ target: true,
1150
+ },
1151
+ {
1152
+ type: 'voi',
1153
+ id: 'wlsync',
1154
+ source: true,
1155
+ target: true,
1156
+ options: {
1157
+ syncColormap: true,
1158
+ },
1159
+ },
1160
+ {
1161
+ type: 'frameview',
1162
+ id: 'frameViewSync',
1163
+ source: true,
1164
+ target: true,
1165
+ options: {
1166
+ viewportIndex: 4,
1167
+ },
1168
+ },
1169
+ ],
1170
+ },
1171
+ displaySets: [
1172
+ {
1173
+ id: 'activeDisplaySet',
1174
+ },
1175
+ ],
1176
+ },
1177
+ {
1178
+ viewportOptions: {
1179
+ toolGroupId: 'default',
1180
+ syncGroups: [
1181
+ {
1182
+ type: 'zoompan',
1183
+ id: 'zoompansync',
1184
+ source: true,
1185
+ target: true,
1186
+ },
1187
+ {
1188
+ type: 'voi',
1189
+ id: 'wlsync',
1190
+ source: true,
1191
+ target: true,
1192
+ options: {
1193
+ syncColormap: true,
1194
+ },
1195
+ },
1196
+ {
1197
+ type: 'frameview',
1198
+ id: 'frameViewSync',
1199
+ source: true,
1200
+ target: true,
1201
+ options: {
1202
+ viewportIndex: 5,
1203
+ },
1204
+ },
1205
+ ],
1206
+ },
1207
+ displaySets: [
1208
+ {
1209
+ id: 'activeDisplaySet',
1210
+ },
1211
+ ],
1212
+ },
1213
+ ],
1214
+ },
1215
+ {
1216
+ name: 'frameView',
1217
+ id: '2x2',
1218
+ viewportStructure: {
1219
+ layoutType: 'grid',
1220
+ properties: {
1221
+ rows: 2,
1222
+ columns: 2,
1223
+ },
1224
+ },
1225
+ viewports: [
1226
+ {
1227
+ viewportOptions: {
1228
+ toolGroupId: 'default',
1229
+ syncGroups: [
1230
+ {
1231
+ type: 'zoompan',
1232
+ id: 'zoompansync',
1233
+ source: true,
1234
+ target: true,
1235
+ },
1236
+ {
1237
+ type: 'voi',
1238
+ id: 'wlsync',
1239
+ source: true,
1240
+ target: true,
1241
+ options: {
1242
+ syncColormap: true,
1243
+ },
1244
+ },
1245
+ {
1246
+ type: 'frameview',
1247
+ id: 'frameViewSync',
1248
+ source: true,
1249
+ target: true,
1250
+ options: {
1251
+ viewportIndex: 0,
1252
+ },
1253
+ },
1254
+ ],
1255
+ },
1256
+ displaySets: [
1257
+ {
1258
+ id: 'activeDisplaySet',
1259
+ },
1260
+ ],
1261
+ },
1262
+ {
1263
+ viewportOptions: {
1264
+ toolGroupId: 'default',
1265
+ syncGroups: [
1266
+ {
1267
+ type: 'zoompan',
1268
+ id: 'zoompansync',
1269
+ source: true,
1270
+ target: true,
1271
+ },
1272
+ {
1273
+ type: 'voi',
1274
+ id: 'wlsync',
1275
+ source: true,
1276
+ target: true,
1277
+ options: {
1278
+ syncColormap: true,
1279
+ },
1280
+ },
1281
+ {
1282
+ type: 'frameview',
1283
+ id: 'frameViewSync',
1284
+ source: true,
1285
+ target: true,
1286
+ options: {
1287
+ viewportIndex: 1,
1288
+ },
1289
+ },
1290
+ ],
1291
+ },
1292
+ displaySets: [
1293
+ {
1294
+ id: 'activeDisplaySet',
1295
+ },
1296
+ ],
1297
+ },
1298
+ {
1299
+ viewportOptions: {
1300
+ toolGroupId: 'default',
1301
+ syncGroups: [
1302
+ {
1303
+ type: 'zoompan',
1304
+ id: 'zoompansync',
1305
+ source: true,
1306
+ target: true,
1307
+ },
1308
+ {
1309
+ type: 'voi',
1310
+ id: 'wlsync',
1311
+ source: true,
1312
+ target: true,
1313
+ options: {
1314
+ syncColormap: true,
1315
+ },
1316
+ },
1317
+ {
1318
+ type: 'frameview',
1319
+ id: 'frameViewSync',
1320
+ source: true,
1321
+ target: true,
1322
+ options: {
1323
+ viewportIndex: 2,
1324
+ },
1325
+ },
1326
+ ],
1327
+ },
1328
+ displaySets: [
1329
+ {
1330
+ id: 'activeDisplaySet',
1331
+ },
1332
+ ],
1333
+ },
1334
+ {
1335
+ viewportOptions: {
1336
+ toolGroupId: 'default',
1337
+ syncGroups: [
1338
+ {
1339
+ type: 'zoompan',
1340
+ id: 'zoompansync',
1341
+ source: true,
1342
+ target: true,
1343
+ },
1344
+ {
1345
+ type: 'voi',
1346
+ id: 'wlsync',
1347
+ source: true,
1348
+ target: true,
1349
+ options: {
1350
+ syncColormap: true,
1351
+ },
1352
+ },
1353
+ {
1354
+ type: 'frameview',
1355
+ id: 'frameViewSync',
1356
+ source: true,
1357
+ target: true,
1358
+ options: {
1359
+ viewportIndex: 3,
1360
+ },
1361
+ },
1362
+ ],
1363
+ },
1364
+ displaySets: [
1365
+ {
1366
+ id: 'activeDisplaySet',
1367
+ },
1368
+ ],
1369
+ },
1370
+ ],
1371
+ },
1372
+ {
1373
+ name: 'frameView',
1374
+ id: '1x3',
1375
+ viewportStructure: {
1376
+ layoutType: 'grid',
1377
+ properties: {
1378
+ rows: 1,
1379
+ columns: 3,
1380
+ },
1381
+ },
1382
+ viewports: [
1383
+ {
1384
+ viewportOptions: {
1385
+ toolGroupId: 'default',
1386
+ syncGroups: [
1387
+ {
1388
+ type: 'zoompan',
1389
+ id: 'zoompansync',
1390
+ source: true,
1391
+ target: true,
1392
+ },
1393
+ {
1394
+ type: 'voi',
1395
+ id: 'wlsync',
1396
+ source: true,
1397
+ target: true,
1398
+ options: {
1399
+ syncColormap: true,
1400
+ },
1401
+ },
1402
+ {
1403
+ type: 'frameview',
1404
+ id: 'frameViewSync',
1405
+ source: true,
1406
+ target: true,
1407
+ options: {
1408
+ viewportIndex: 0,
1409
+ },
1410
+ },
1411
+ ],
1412
+ },
1413
+ displaySets: [
1414
+ {
1415
+ id: 'activeDisplaySet',
1416
+ },
1417
+ ],
1418
+ },
1419
+ {
1420
+ viewportOptions: {
1421
+ toolGroupId: 'default',
1422
+ syncGroups: [
1423
+ {
1424
+ type: 'zoompan',
1425
+ id: 'zoompansync',
1426
+ source: true,
1427
+ target: true,
1428
+ },
1429
+ {
1430
+ type: 'voi',
1431
+ id: 'wlsync',
1432
+ source: true,
1433
+ target: true,
1434
+ options: {
1435
+ syncColormap: true,
1436
+ },
1437
+ },
1438
+ {
1439
+ type: 'frameview',
1440
+ id: 'frameViewSync',
1441
+ source: true,
1442
+ target: true,
1443
+ options: {
1444
+ viewportIndex: 1,
1445
+ },
1446
+ },
1447
+ ],
1448
+ },
1449
+ displaySets: [
1450
+ {
1451
+ id: 'activeDisplaySet',
1452
+ },
1453
+ ],
1454
+ },
1455
+ {
1456
+ viewportOptions: {
1457
+ toolGroupId: 'default',
1458
+ syncGroups: [
1459
+ {
1460
+ type: 'zoompan',
1461
+ id: 'zoompansync',
1462
+ source: true,
1463
+ target: true,
1464
+ },
1465
+ {
1466
+ type: 'voi',
1467
+ id: 'wlsync',
1468
+ source: true,
1469
+ target: true,
1470
+ options: {
1471
+ syncColormap: true,
1472
+ },
1473
+ },
1474
+ {
1475
+ type: 'frameview',
1476
+ id: 'frameViewSync',
1477
+ source: true,
1478
+ target: true,
1479
+ options: {
1480
+ viewportIndex: 2,
1481
+ },
1482
+ },
1483
+ ],
1484
+ },
1485
+ displaySets: [
1486
+ {
1487
+ id: 'activeDisplaySet',
1488
+ },
1489
+ ],
1490
+ },
1491
+ ],
1492
+ },
1493
+ {
1494
+ name: 'frameView',
1495
+ id: '1x2',
1496
+ viewportStructure: {
1497
+ layoutType: 'grid',
1498
+ properties: {
1499
+ rows: 1,
1500
+ columns: 2,
1501
+ },
1502
+ },
1503
+ viewports: [
1504
+ {
1505
+ viewportOptions: {
1506
+ toolGroupId: 'default',
1507
+ syncGroups: [
1508
+ {
1509
+ type: 'zoompan',
1510
+ id: 'zoompansync',
1511
+ source: true,
1512
+ target: true,
1513
+ },
1514
+ {
1515
+ type: 'voi',
1516
+ id: 'wlsync',
1517
+ source: true,
1518
+ target: true,
1519
+ options: {
1520
+ syncColormap: true,
1521
+ },
1522
+ },
1523
+ {
1524
+ type: 'frameview',
1525
+ id: 'frameViewSync',
1526
+ source: true,
1527
+ target: true,
1528
+ options: {
1529
+ viewportIndex: 0,
1530
+ },
1531
+ },
1532
+ ],
1533
+ },
1534
+ displaySets: [
1535
+ {
1536
+ id: 'activeDisplaySet',
1537
+ },
1538
+ ],
1539
+ },
1540
+ {
1541
+ viewportOptions: {
1542
+ toolGroupId: 'default',
1543
+ syncGroups: [
1544
+ {
1545
+ type: 'zoompan',
1546
+ id: 'zoompansync',
1547
+ source: true,
1548
+ target: true,
1549
+ },
1550
+ {
1551
+ type: 'voi',
1552
+ id: 'wlsync',
1553
+ source: true,
1554
+ target: true,
1555
+ options: {
1556
+ syncColormap: true,
1557
+ },
1558
+ },
1559
+ {
1560
+ type: 'frameview',
1561
+ id: 'frameViewSync',
1562
+ source: true,
1563
+ target: true,
1564
+ options: {
1565
+ viewportIndex: 1,
1566
+ },
1567
+ },
1568
+ ],
1569
+ },
1570
+ displaySets: [
1571
+ {
1572
+ id: 'activeDisplaySet',
1573
+ },
1574
+ ],
1575
+ },
1576
+ ],
1577
+ },
1578
+ ],
1579
+ };
1580
+
1581
+ export { frameView };