@ohif/mode-segmentation 3.8.0-beta.64 → 3.8.0-beta.65

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.
@@ -1,2 +1,2 @@
1
- !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("@ohif/core"),require("@ohif/ui")):"function"==typeof define&&define.amd?define("@ohif/mode-segmentation",["@ohif/core","@ohif/ui"],o):"object"==typeof exports?exports["@ohif/mode-segmentation"]=o(require("@ohif/core"),require("@ohif/ui")):e["@ohif/mode-segmentation"]=o(e["@ohif/core"],e["@ohif/ui"])}("undefined"!=typeof self?self:this,((e,o)=>(()=>{"use strict";var a={498:o=>{o.exports=e},610:e=>{e.exports=o}},t={};function r(e){var o=t[e];if(void 0!==o)return o.exports;var i=t[e]={exports:{}};return a[e](i,i.exports,r),i.exports}r.d=(e,o)=>{for(var a in o)r.o(o,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:o[a]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.r(i),r.d(i,{default:()=>v});var e=r(498);const o=JSON.parse('{"UU":"@ohif/mode-segmentation"}').UU;var a=r(610);const{windowLevelPresets:t}=e.defaults;function n(e,o,a){return{id:e.toString(),title:o,subtitle:a,commands:[{commandName:"setWindowLevel",commandOptions:{...t[e]},context:"CORNERSTONE"}]}}function s(e,o=["default","mpr","SRToolGroup"]){return o.map((o=>({commandName:"setToolActive",commandOptions:{toolGroupId:o,toolName:e},context:"CORNERSTONE"})))}const l=[{id:"Zoom",uiType:"ohif.radioGroup",props:{icon:"tool-zoom",label:"Zoom",commands:s("Zoom"),evaluate:"evaluate.cornerstoneTool"}},{id:"WindowLevel",uiType:"ohif.splitButton",props:{groupId:"WindowLevel",primary:e.ToolbarService.createButton({id:"WindowLevel",icon:"tool-window-level",label:"Window Level",tooltip:"Window Level",commands:s("WindowLevel"),evaluate:"evaluate.cornerstoneTool"}),secondary:{icon:"chevron-down",tooltip:"W/L Presets"},renderer:a.WindowLevelMenuItem,items:[n(1,"Soft tissue","400 / 40"),n(2,"Lung","1500 / -600"),n(3,"Liver","150 / 90"),n(4,"Bone","2500 / 480"),n(5,"Brain","80 / 40")]}},{id:"Pan",uiType:"ohif.radioGroup",props:{icon:"tool-move",label:"Pan",commands:s("Pan"),evaluate:"evaluate.cornerstoneTool"}},{id:"Capture",uiType:"ohif.radioGroup",props:{icon:"tool-capture",label:"Capture",commands:[{commandName:"showDownloadViewportModal",context:"CORNERSTONE"}],evaluate:"evaluate.action"}},{id:"Layout",uiType:"ohif.layoutSelector",props:{rows:3,columns:3,evaluate:"evaluate.action",commands:[{commandName:"setViewportGridLayout"}]}},{id:"MPR",uiType:"ohif.radioGroup",props:{icon:"icon-mpr",label:"MPR",commands:[{commandName:"toggleHangingProtocol",commandOptions:{protocolId:"mpr"},context:"DEFAULT"}],evaluate:"evaluate.mpr"}},{id:"Crosshairs",uiType:"ohif.radioGroup",props:{icon:"tool-crosshair",label:"Crosshairs",commands:s("Crosshairs",["mpr"]),evaluate:"evaluate.cornerstoneTool"}},{id:"MoreTools",uiType:"ohif.splitButton",props:{groupId:"MoreTools",evaluate:"evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList",primary:e.ToolbarService.createButton({id:"Reset",icon:"tool-reset",label:"Reset View",tooltip:"Reset",commands:[{commandName:"resetViewport",context:"CORNERSTONE"}],evaluate:"evaluate.action"}),secondary:{icon:"chevron-down",tooltip:"More Tools"},items:[e.ToolbarService.createButton({id:"RotateRight",icon:"tool-rotate-right",label:"Rotate Right",tooltip:"Rotate +90",commands:[{commandName:"rotateViewportCW",context:"CORNERSTONE"}],evaluate:"evaluate.action"}),e.ToolbarService.createButton({id:"FlipHorizontal",icon:"tool-flip-horizontal",label:"Flip Horizontally",tooltip:"Flip Horizontal",commands:[{commandName:"flipViewportHorizontal",context:"CORNERSTONE"}],evaluate:"evaluate.action"}),e.ToolbarService.createButton({id:"StackScroll",icon:"tool-stack-scroll",label:"Stack Scroll",tooltip:"Stack Scroll",commands:s("StackScroll"),evaluate:"evaluate.cornerstoneTool"}),e.ToolbarService.createButton({id:"Magnify",icon:"tool-magnify",label:"Magnify",tooltip:"Magnify",commands:s("Magnify"),evaluate:"evaluate.cornerstoneTool"}),e.ToolbarService.createButton({id:"Invert",icon:"tool-invert",label:"Invert",tooltip:"Invert Colors",commands:[{commandName:"invertViewport",context:"CORNERSTONE"}],evaluate:"evaluate.action"}),e.ToolbarService.createButton({id:"Cine",icon:"tool-cine",label:"Cine",tooltip:"Cine",commands:[{commandName:"toggleCine",context:"CORNERSTONE"}],evaluate:"evaluate.action"}),e.ToolbarService.createButton({id:"DicomTagBrowser",icon:"list-bullets",label:"Dicom Tag Browser",tooltip:"Dicom Tag Browser",commands:[{commandName:"openDICOMTagViewer",context:"DEFAULT"}],evaluate:"evaluate.action"})]}}];function c(e){return[{commandName:"setToolActive",commandOptions:{toolName:e}}]}const u=[{id:"BrushTools",uiType:"ohif.buttonGroup",props:{groupId:"BrushTools",items:[{id:"Brush",icon:"icon-tool-brush",label:"Brush",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["CircularBrush","SphereBrush"]}},commands:c("CircularBrush"),options:[{name:"Radius (mm)",id:"brush-radius",type:"range",min:.5,max:99.5,step:.5,value:25,commands:{commandName:"setBrushSize",commandOptions:{toolNames:["CircularBrush","SphereBrush"]}}},{name:"Shape",type:"radio",id:"brush-mode",value:"CircularBrush",values:[{value:"CircularBrush",label:"Circle"},{value:"SphereBrush",label:"Sphere"}],commands:"setToolActiveToolbar"}]},{id:"Eraser",icon:"icon-tool-eraser",label:"Eraser",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["CircularEraser","SphereEraser"]}},commands:c("CircularEraser"),options:[{name:"Radius (mm)",id:"eraser-radius",type:"range",min:.5,max:99.5,step:.5,value:25,commands:{commandName:"setBrushSize",commandOptions:{toolNames:["CircularEraser","SphereEraser"]}}},{name:"Shape",type:"radio",id:"eraser-mode",value:"CircularEraser",values:[{value:"CircularEraser",label:"Circle"},{value:"SphereEraser",label:"Sphere"}],commands:"setToolActiveToolbar"}]},{id:"Threshold",icon:"icon-tool-threshold",label:"Eraser",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["ThresholdCircularBrush","ThresholdSphereBrush"]}},commands:c("ThresholdCircularBrush"),options:[{name:"Radius (mm)",id:"threshold-radius",type:"range",min:.5,max:99.5,step:.5,value:25,commands:{commandName:"setBrushSize",commandOptions:{toolNames:["ThresholdCircularBrush","ThresholdSphereBrush"]}}},{name:"Shape",type:"radio",id:"eraser-mode",value:"ThresholdCircularBrush",values:[{value:"ThresholdCircularBrush",label:"Circle"},{value:"ThresholdSphereBrush",label:"Sphere"}],commands:"setToolActiveToolbar"},{name:"Threshold",type:"radio",id:"dynamic-mode",value:"ThresholdRange",values:[{value:"ThresholdDynamic",label:"Dynamic"},{value:"ThresholdRange",label:"Range"}],commands:{commandName:"toggleThresholdRangeAndDynamic"}},{name:"ThresholdRange",type:"double-range",id:"threshold-range",min:-1e3,max:1e3,step:1,values:[100,600],condition:({options:e})=>"ThresholdRange"===e.find((e=>"dynamic-mode"===e.id)).value,commands:{commandName:"setThresholdRange",commandOptions:{toolNames:["ThresholdCircularBrush","ThresholdSphereBrush"]}}}]}]}},{id:"Shapes",uiType:"ohif.radioGroup",props:{label:"Shapes",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["CircleScissor","SphereScissor","RectangleScissor"]}},icon:"icon-tool-shape",commands:c("CircleScissor"),options:[{name:"Shape",type:"radio",value:"CircleScissor",id:"shape-mode",values:[{value:"CircleScissor",label:"Circle"},{value:"SphereScissor",label:"Sphere"},{value:"RectangleScissor",label:"Rectangle"}],commands:"setToolActiveToolbar"}]}}];function m(e){const{toolNames:o,Enums:a}=e.exports;return{active:[{toolName:o.WindowLevel,bindings:[{mouseButton:a.MouseBindings.Primary}]},{toolName:o.Pan,bindings:[{mouseButton:a.MouseBindings.Auxiliary}]},{toolName:o.Zoom,bindings:[{mouseButton:a.MouseBindings.Secondary}]},{toolName:o.StackScrollMouseWheel,bindings:[]}],passive:[{toolName:"CircularBrush",parentTool:"Brush",configuration:{activeStrategy:"FILL_INSIDE_CIRCLE"}},{toolName:"CircularEraser",parentTool:"Brush",configuration:{activeStrategy:"ERASE_INSIDE_CIRCLE"}},{toolName:"SphereBrush",parentTool:"Brush",configuration:{activeStrategy:"FILL_INSIDE_SPHERE"}},{toolName:"SphereEraser",parentTool:"Brush",configuration:{activeStrategy:"ERASE_INSIDE_SPHERE"}},{toolName:"ThresholdCircularBrush",parentTool:"Brush",configuration:{activeStrategy:"THRESHOLD_INSIDE_CIRCLE",dynamicRadius:3}},{toolName:"ThresholdSphereBrush",parentTool:"Brush",configuration:{activeStrategy:"THRESHOLD_INSIDE_SPHERE",dynamicRadius:3}},{toolName:o.CircleScissors},{toolName:o.RectangleScissors},{toolName:o.SphereScissors},{toolName:o.StackScroll},{toolName:o.Magnify},{toolName:o.SegmentationDisplay}],disabled:[{toolName:o.ReferenceLines}]}}const d="@ohif/extension-default.sopClassHandlerModule.stack",p="@ohif/extension-cornerstone-dicom-seg.sopClassHandlerModule.dicom-seg",h={"@ohif/extension-default":"^3.0.0","@ohif/extension-cornerstone":"^3.0.0","@ohif/extension-cornerstone-dicom-seg":"^3.0.0"},v={id:o,modeFactory:function({modeConfiguration:a}){return{id:o,routeName:"segmentation",displayName:"Segmentation",onModeEnter:({servicesManager:e,extensionManager:o,commandsManager:a})=>{const{measurementService:t,toolbarService:r,toolGroupService:i}=e.services;t.clearMeasurements(),function(e,o,a){!function(e,o,a,t){const r=m(e.getModuleEntry("@ohif/extension-cornerstone.utilityModule.tools"));o.createToolGroupAndAddTools("default",r)}(e,o),function(e,o,a){const t=e.getModuleEntry("@ohif/extension-cornerstone.utilityModule.tools"),r=m(t);r.disabled.push({toolName:t.exports.toolNames.Crosshairs,configuration:{viewportIndicators:!1,autoPan:{enabled:!1,panSize:10}}},{toolName:t.exports.toolNames.ReferenceLines}),o.createToolGroupAndAddTools("mpr",r)}(e,o)}(o,i),r.addButtons(l),r.addButtons(u),r.createButtonSection("primary",["Pan","Capture","Layout","MPR","Crosshairs","Zoom","MoreTools"]),r.createButtonSection("segmentationToolbox",["BrushTools","Shapes"])},onModeExit:({servicesManager:e})=>{const{toolGroupService:o,syncGroupService:a,toolbarService:t,segmentationService:r,cornerstoneViewportService:i,uiDialogService:n,uiModalService:s}=e.services;n.dismissAll(),s.hide(),o.destroy(),a.destroy(),r.destroy(),i.destroy()},validationTags:{study:[],series:[]},isValidMode:({modalities:e})=>{const o=e.split("\\");return{valid:1!==o.length||!["SM","US","MG","OT","DOC","CR"].includes(o[0]),description:"The mode does not support studies that ONLY include the following modalities: SM, US, MG, OT, DOC, CR"}},routes:[{path:"template",layoutTemplate:({location:e,servicesManager:o})=>({id:"@ohif/extension-default.layoutTemplateModule.viewerLayout",props:{leftPanels:["@ohif/extension-default.panelModule.seriesList"],rightPanels:["@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentationWithTools"],viewports:[{namespace:"@ohif/extension-cornerstone.viewportModule.cornerstone",displaySetsToDisplay:[d]},{namespace:"@ohif/extension-cornerstone-dicom-seg.viewportModule.dicom-seg",displaySetsToDisplay:[p]}]}})}],extensions:h,sopClassHandlers:[d,p],hotkeys:[...e.hotkeys.defaults.hotkeyBindings]}},extensionDependencies:h}})(),i})()));
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("@ohif/core"),require("@ohif/ui")):"function"==typeof define&&define.amd?define("@ohif/mode-segmentation",["@ohif/core","@ohif/ui"],o):"object"==typeof exports?exports["@ohif/mode-segmentation"]=o(require("@ohif/core"),require("@ohif/ui")):e["@ohif/mode-segmentation"]=o(e["@ohif/core"],e["@ohif/ui"])}("undefined"!=typeof self?self:this,((e,o)=>(()=>{"use strict";var t={498:o=>{o.exports=e},610:e=>{e.exports=o}},a={};function r(e){var o=a[e];if(void 0!==o)return o.exports;var i=a[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{r.r(i),r.d(i,{default:()=>S});var e=r(498);const o=JSON.parse('{"UU":"@ohif/mode-segmentation"}').UU;var t=r(610);const{windowLevelPresets:a}=e.defaults,{createButton:n}=e.ToolbarService,l=[{commandName:"setSourceViewportForReferenceLinesTool",context:"CORNERSTONE"}];function s(e,o,t){return{id:e.toString(),title:o,subtitle:t,commands:[{commandName:"setWindowLevel",commandOptions:{...a[e]},context:"CORNERSTONE"}]}}const c={commandName:"setToolActiveToolbar",commandOptions:{toolGroupIds:["default","mpr","SRToolGroup"]}},u=[{id:"Zoom",uiType:"ohif.radioGroup",props:{icon:"tool-zoom",label:"Zoom",commands:c,evaluate:"evaluate.cornerstoneTool"}},{id:"WindowLevel",uiType:"ohif.splitButton",props:{groupId:"WindowLevel",primary:n({id:"WindowLevel",icon:"tool-window-level",label:"Window Level",tooltip:"Window Level",commands:c,evaluate:"evaluate.cornerstoneTool"}),secondary:{icon:"chevron-down",tooltip:"W/L Presets"},renderer:t.WindowLevelMenuItem,items:[s(1,"Soft tissue","400 / 40"),s(2,"Lung","1500 / -600"),s(3,"Liver","150 / 90"),s(4,"Bone","2500 / 480"),s(5,"Brain","80 / 40")]}},{id:"Pan",uiType:"ohif.radioGroup",props:{icon:"tool-move",label:"Pan",commands:c,evaluate:"evaluate.cornerstoneTool"}},{id:"TrackballRotate",uiType:"ohif.radioGroup",props:{type:"tool",icon:"tool-3d-rotate",label:"3D Rotate",commands:c,evaluate:"evaluate.cornerstoneTool"}},{id:"Capture",uiType:"ohif.radioGroup",props:{icon:"tool-capture",label:"Capture",commands:"showDownloadViewportModal",evaluate:"evaluate.action"}},{id:"Layout",uiType:"ohif.layoutSelector",props:{rows:3,columns:4,evaluate:"evaluate.action",commands:"setViewportGridLayout"}},{id:"Crosshairs",uiType:"ohif.radioGroup",props:{icon:"tool-crosshair",label:"Crosshairs",commands:{commandName:"setToolActiveToolbar",commandOptions:{toolGroupIds:["mpr"]}},evaluate:"evaluate.cornerstoneTool"}},{id:"MoreTools",uiType:"ohif.splitButton",props:{groupId:"MoreTools",evaluate:"evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList",primary:n({id:"Reset",icon:"tool-reset",tooltip:"Reset View",label:"Reset",commands:"resetViewport",evaluate:"evaluate.action"}),secondary:{icon:"chevron-down",label:"",tooltip:"More Tools"},items:[n({id:"Reset",icon:"tool-reset",label:"Reset View",tooltip:"Reset View",commands:"resetViewport",evaluate:"evaluate.action"}),n({id:"rotate-right",icon:"tool-rotate-right",label:"Rotate Right",tooltip:"Rotate +90",commands:"rotateViewportCW",evaluate:"evaluate.action"}),n({id:"flipHorizontal",icon:"tool-flip-horizontal",label:"Flip Horizontal",tooltip:"Flip Horizontally",commands:"flipViewportHorizontal",evaluate:["evaluate.viewportProperties.toggle","evaluate.not3D"]}),n({id:"ReferenceLines",icon:"tool-referenceLines",label:"Reference Lines",tooltip:"Show Reference Lines",commands:{commandName:"setToolEnabled",commandOptions:{toolName:"ReferenceLines",toggle:!0}},listeners:{[e.ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]:l,[e.ViewportGridService.EVENTS.VIEWPORTS_READY]:l},evaluate:"evaluate.cornerstoneTool.toggle"}),n({id:"ImageOverlay",icon:"toggle-dicom-overlay",label:"Image Overlay",tooltip:"Toggle Image Overlay",commands:{commandName:"setToolEnabled",commandOptions:{toolName:"ImageOverlayViewer",toggle:!0}},evaluate:"evaluate.cornerstoneTool.toggle"}),n({id:"StackScroll",icon:"tool-stack-scroll",label:"Stack Scroll",tooltip:"Stack Scroll",commands:c,evaluate:"evaluate.cornerstoneTool"}),n({id:"invert",icon:"tool-invert",label:"Invert",tooltip:"Invert Colors",commands:"invertViewport",evaluate:"evaluate.viewportProperties.toggle"}),n({id:"Probe",icon:"tool-probe",label:"Probe",tooltip:"Probe",commands:c,evaluate:"evaluate.cornerstoneTool"}),n({id:"Cine",icon:"tool-cine",label:"Cine",tooltip:"Cine",commands:"toggleCine",evaluate:["evaluate.cine","evaluate.not3D"]}),n({id:"Angle",icon:"tool-angle",label:"Angle",tooltip:"Angle",commands:c,evaluate:"evaluate.cornerstoneTool"}),n({id:"Magnify",icon:"tool-magnify",label:"Magnify",tooltip:"Magnify",commands:c,evaluate:"evaluate.cornerstoneTool"}),n({id:"RectangleROI",icon:"tool-rectangle",label:"Rectangle",tooltip:"Rectangle",commands:c,evaluate:"evaluate.cornerstoneTool"}),n({id:"CalibrationLine",icon:"tool-calibration",label:"Calibration",tooltip:"Calibration Line",commands:c,evaluate:"evaluate.cornerstoneTool"}),n({id:"TagBrowser",icon:"list-bullets",label:"Dicom Tag Browser",tooltip:"Dicom Tag Browser",commands:"openDICOMTagViewer"})]}}];function d(e){return[{commandName:"setToolActive",commandOptions:{toolName:e}}]}const m=[{id:"BrushTools",uiType:"ohif.buttonGroup",props:{groupId:"BrushTools",items:[{id:"Brush",icon:"icon-tool-brush",label:"Brush",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["CircularBrush","SphereBrush"]}},commands:d("CircularBrush"),options:[{name:"Radius (mm)",id:"brush-radius",type:"range",min:.5,max:99.5,step:.5,value:25,commands:{commandName:"setBrushSize",commandOptions:{toolNames:["CircularBrush","SphereBrush"]}}},{name:"Shape",type:"radio",id:"brush-mode",value:"CircularBrush",values:[{value:"CircularBrush",label:"Circle"},{value:"SphereBrush",label:"Sphere"}],commands:"setToolActiveToolbar"}]},{id:"Eraser",icon:"icon-tool-eraser",label:"Eraser",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["CircularEraser","SphereEraser"]}},commands:d("CircularEraser"),options:[{name:"Radius (mm)",id:"eraser-radius",type:"range",min:.5,max:99.5,step:.5,value:25,commands:{commandName:"setBrushSize",commandOptions:{toolNames:["CircularEraser","SphereEraser"]}}},{name:"Shape",type:"radio",id:"eraser-mode",value:"CircularEraser",values:[{value:"CircularEraser",label:"Circle"},{value:"SphereEraser",label:"Sphere"}],commands:"setToolActiveToolbar"}]},{id:"Threshold",icon:"icon-tool-threshold",label:"Eraser",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["ThresholdCircularBrush","ThresholdSphereBrush"]}},commands:d("ThresholdCircularBrush"),options:[{name:"Radius (mm)",id:"threshold-radius",type:"range",min:.5,max:99.5,step:.5,value:25,commands:{commandName:"setBrushSize",commandOptions:{toolNames:["ThresholdCircularBrush","ThresholdSphereBrush"]}}},{name:"Shape",type:"radio",id:"eraser-mode",value:"ThresholdCircularBrush",values:[{value:"ThresholdCircularBrush",label:"Circle"},{value:"ThresholdSphereBrush",label:"Sphere"}],commands:"setToolActiveToolbar"},{name:"Threshold",type:"radio",id:"dynamic-mode",value:"ThresholdRange",values:[{value:"ThresholdDynamic",label:"Dynamic"},{value:"ThresholdRange",label:"Range"}],commands:{commandName:"toggleThresholdRangeAndDynamic"}},{name:"ThresholdRange",type:"double-range",id:"threshold-range",min:-1e3,max:1e3,step:1,values:[100,600],condition:({options:e})=>"ThresholdRange"===e.find((e=>"dynamic-mode"===e.id)).value,commands:{commandName:"setThresholdRange",commandOptions:{toolNames:["ThresholdCircularBrush","ThresholdSphereBrush"]}}}]}]}},{id:"Shapes",uiType:"ohif.radioGroup",props:{label:"Shapes",evaluate:{name:"evaluate.cornerstone.segmentation",options:{toolNames:["CircleScissor","SphereScissor","RectangleScissor"]}},icon:"icon-tool-shape",commands:d("CircleScissor"),options:[{name:"Shape",type:"radio",value:"CircleScissor",id:"shape-mode",values:[{value:"CircleScissor",label:"Circle"},{value:"SphereScissor",label:"Sphere"},{value:"RectangleScissor",label:"Rectangle"}],commands:"setToolActiveToolbar"}]}}];function p(e){const{toolNames:o,Enums:t}=e.exports;return{active:[{toolName:o.WindowLevel,bindings:[{mouseButton:t.MouseBindings.Primary}]},{toolName:o.Pan,bindings:[{mouseButton:t.MouseBindings.Auxiliary}]},{toolName:o.Zoom,bindings:[{mouseButton:t.MouseBindings.Secondary}]},{toolName:o.StackScrollMouseWheel,bindings:[]}],passive:[{toolName:"CircularBrush",parentTool:"Brush",configuration:{activeStrategy:"FILL_INSIDE_CIRCLE"}},{toolName:"CircularEraser",parentTool:"Brush",configuration:{activeStrategy:"ERASE_INSIDE_CIRCLE"}},{toolName:"SphereBrush",parentTool:"Brush",configuration:{activeStrategy:"FILL_INSIDE_SPHERE"}},{toolName:"SphereEraser",parentTool:"Brush",configuration:{activeStrategy:"ERASE_INSIDE_SPHERE"}},{toolName:"ThresholdCircularBrush",parentTool:"Brush",configuration:{activeStrategy:"THRESHOLD_INSIDE_CIRCLE",dynamicRadius:3}},{toolName:"ThresholdSphereBrush",parentTool:"Brush",configuration:{activeStrategy:"THRESHOLD_INSIDE_SPHERE",dynamicRadius:3}},{toolName:o.CircleScissors},{toolName:o.RectangleScissors},{toolName:o.SphereScissors},{toolName:o.StackScroll},{toolName:o.Magnify},{toolName:o.SegmentationDisplay}],disabled:[{toolName:o.ReferenceLines}]}}const h="@ohif/extension-default.sopClassHandlerModule.stack",v="@ohif/extension-cornerstone-dicom-seg.sopClassHandlerModule.dicom-seg",g={"@ohif/extension-default":"^3.0.0","@ohif/extension-cornerstone":"^3.0.0","@ohif/extension-cornerstone-dicom-seg":"^3.0.0"},S={id:o,modeFactory:function({modeConfiguration:t}){return{id:o,routeName:"segmentation",displayName:"Segmentation",onModeEnter:({servicesManager:e,extensionManager:o,commandsManager:t})=>{const{measurementService:a,toolbarService:r,toolGroupService:i}=e.services;a.clearMeasurements(),function(e,o,t){!function(e,o,t,a){const r=p(e.getModuleEntry("@ohif/extension-cornerstone.utilityModule.tools"));o.createToolGroupAndAddTools("default",r)}(e,o),function(e,o,t){const a=e.getModuleEntry("@ohif/extension-cornerstone.utilityModule.tools"),r=p(a);r.disabled.push({toolName:a.exports.toolNames.Crosshairs,configuration:{viewportIndicators:!1,disableOnPassive:!0,autoPan:{enabled:!1,panSize:10}}},{toolName:a.exports.toolNames.ReferenceLines}),o.createToolGroupAndAddTools("mpr",r)}(e,o),function(e,o){const t=e.getModuleEntry("@ohif/extension-cornerstone.utilityModule.tools"),{toolNames:a,Enums:r}=t.exports,i={active:[{toolName:a.TrackballRotateTool,bindings:[{mouseButton:r.MouseBindings.Primary}]},{toolName:a.Zoom,bindings:[{mouseButton:r.MouseBindings.Secondary}]},{toolName:a.Pan,bindings:[{mouseButton:r.MouseBindings.Auxiliary}]}]};o.createToolGroupAndAddTools("volume3d",i)}(e,o)}(o,i),r.addButtons(u),r.addButtons(m),r.createButtonSection("primary",["WindowLevel","Pan","Zoom","TrackballRotate","Capture","Layout","Crosshairs","MoreTools"]),r.createButtonSection("segmentationToolbox",["BrushTools","Shapes"])},onModeExit:({servicesManager:e})=>{const{toolGroupService:o,syncGroupService:t,toolbarService:a,segmentationService:r,cornerstoneViewportService:i,uiDialogService:n,uiModalService:l}=e.services;n.dismissAll(),l.hide(),o.destroy(),t.destroy(),r.destroy(),i.destroy()},validationTags:{study:[],series:[]},isValidMode:({modalities:e})=>{const o=e.split("\\");return{valid:1!==o.length||!["SM","US","MG","OT","DOC","CR"].includes(o[0]),description:"The mode does not support studies that ONLY include the following modalities: SM, US, MG, OT, DOC, CR"}},routes:[{path:"template",layoutTemplate:({location:e,servicesManager:o})=>({id:"@ohif/extension-default.layoutTemplateModule.viewerLayout",props:{leftPanels:["@ohif/extension-default.panelModule.seriesList"],rightPanels:["@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentationWithTools"],viewports:[{namespace:"@ohif/extension-cornerstone.viewportModule.cornerstone",displaySetsToDisplay:[h]},{namespace:"@ohif/extension-cornerstone-dicom-seg.viewportModule.dicom-seg",displaySetsToDisplay:[v]}]}})}],extensions:g,sopClassHandlers:[h,v],hotkeys:[...e.hotkeys.defaults.hotkeyBindings]}},extensionDependencies:g}})(),i})()));
2
2
  //# sourceMappingURL=index.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.umd.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,cAAeA,QAAQ,aAC/B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,0BAA2B,CAAC,aAAc,YAAaJ,GACpC,iBAAZC,QACdA,QAAQ,2BAA6BD,EAAQG,QAAQ,cAAeA,QAAQ,aAE5EJ,EAAK,2BAA6BC,EAAQD,EAAK,cAAeA,EAAK,YACpE,CATD,CASmB,oBAATO,KAAuBA,KAAOC,MAAM,CAACC,EAAkCC,I,kCCTjFP,EAAOD,QAAUO,C,UCAjBN,EAAOD,QAAUQ,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaZ,QAGrB,IAAIC,EAASQ,EAAyBE,GAAY,CAGjDX,QAAS,CAAC,GAOX,OAHAc,EAAoBH,GAAUV,EAAQA,EAAOD,QAASU,GAG/CT,EAAOD,OACf,CCrBAU,EAAoBK,EAAI,CAACf,EAASgB,KACjC,IAAI,IAAIC,KAAOD,EACXN,EAAoBQ,EAAEF,EAAYC,KAASP,EAAoBQ,EAAElB,EAASiB,IAC5EE,OAAOC,eAAepB,EAASiB,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAE1E,ECNDP,EAAoBQ,EAAI,CAACK,EAAKC,IAAUL,OAAOM,UAAUC,eAAeC,KAAKJ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B,CAAC,aAAc,UAAU,EAErFC,WAAYA,EAAGxB,sBACb,MAAM,iBACJK,EAAgB,iBAChBoB,EAAgB,eAChBrB,EAAc,oBACdsB,EAAmB,2BACnBC,EAA0B,gBAC1BC,EAAe,eACfC,GACE7B,EAAgBM,SAEpBsB,EAAgBE,aAChBD,EAAeE,OACf1B,EAAiB2B,UACjBP,EAAiBO,UACjBN,EAAoBM,UACpBL,EAA2BK,SAAS,EAGtCC,eAAgB,CACdC,MAAO,GACPC,OAAQ,IAOVC,YAAaA,EAAGC,iBAGd,MAAMC,EAAkBD,EAAWE,MAAM,MACzC,MAAO,CACLC,MAAkC,IAA3BF,EAAgBG,SAAgB,CAAC,KAAM,KAAM,KAAM,KAAM,MAAO,MAAMC,SAASJ,EAAgB,IACtGK,YAAa,wGACd,EAcHC,OAAQ,CACN,CACEC,KAAM,WACNC,eAAgBA,EAAGC,WAAU/C,sBACpB,CACLjF,GAzHF,4DA0HEmB,MAAO,CACL8G,WAAY,CAxHb,kDAyHCC,YAAa,CA/Gd,gFAgHCC,UAAW,CACT,CACEC,UAvHN,yDAwHMC,qBAAsB,CAAC5D,IAEzB,CACE2D,UApHN,iEAqHMC,qBAAsB,CAAC3D,UASrC4D,WAAY3D,EAIZ4D,iBAAkB,CAAC9D,EAAsBC,GAEzC8D,QAAS,IAAIA,EAAAA,QAAQrI,SAASsI,gBAElC,EAKE9D,wB","sources":["webpack://@ohif/mode-segmentation/webpack/universalModuleDefinition","webpack://@ohif/mode-segmentation/external umd {\"commonjs2\":\"@ohif/core\",\"commonjs\":\"@ohif/core\",\"amd\":\"@ohif/core\",\"root\":\"@ohif/core\"}","webpack://@ohif/mode-segmentation/external umd {\"commonjs2\":\"@ohif/ui\",\"commonjs\":\"@ohif/ui\",\"amd\":\"@ohif/ui\",\"root\":\"@ohif/ui\"}","webpack://@ohif/mode-segmentation/webpack/bootstrap","webpack://@ohif/mode-segmentation/webpack/runtime/define property getters","webpack://@ohif/mode-segmentation/webpack/runtime/hasOwnProperty shorthand","webpack://@ohif/mode-segmentation/webpack/runtime/make namespace object","webpack://@ohif/mode-segmentation/./src/id.js","webpack://@ohif/mode-segmentation/./src/toolbarButtons.ts","webpack://@ohif/mode-segmentation/./src/segmentationButtons.ts","webpack://@ohif/mode-segmentation/./src/initToolGroups.ts","webpack://@ohif/mode-segmentation/./src/index.tsx"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@ohif/core\"), require(\"@ohif/ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"@ohif/mode-segmentation\", [\"@ohif/core\", \"@ohif/ui\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@ohif/mode-segmentation\"] = factory(require(\"@ohif/core\"), require(\"@ohif/ui\"));\n\telse\n\t\troot[\"@ohif/mode-segmentation\"] = factory(root[\"@ohif/core\"], root[\"@ohif/ui\"]);\n})(typeof self !== 'undefined' ? self : this, (__WEBPACK_EXTERNAL_MODULE__498__, __WEBPACK_EXTERNAL_MODULE__610__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__498__;","module.exports = __WEBPACK_EXTERNAL_MODULE__610__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import packageJson from '../package.json';\n\nconst id = packageJson.name;\n\nexport { id };\n","import { defaults, ToolbarService } from '@ohif/core';\nimport type { Button } from '@ohif/core/types';\nimport { WindowLevelMenuItem } from '@ohif/ui';\n\nconst { windowLevelPresets } = defaults;\n\nfunction _createWwwcPreset(preset, title, subtitle) {\n return {\n id: preset.toString(),\n title,\n subtitle,\n commands: [\n {\n commandName: 'setWindowLevel',\n commandOptions: {\n ...windowLevelPresets[preset],\n },\n context: 'CORNERSTONE',\n },\n ],\n };\n}\n\nfunction _createSetToolActiveCommands(toolName, toolGroupIds = ['default', 'mpr', 'SRToolGroup']) {\n return toolGroupIds.map(toolGroupId => ({\n commandName: 'setToolActive',\n commandOptions: {\n toolGroupId,\n toolName,\n },\n context: 'CORNERSTONE',\n }));\n}\n\nconst toolbarButtons: Button[] = [\n {\n id: 'Zoom',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-zoom',\n label: 'Zoom',\n commands: _createSetToolActiveCommands('Zoom'),\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'WindowLevel',\n uiType: 'ohif.splitButton',\n props: {\n groupId: 'WindowLevel',\n primary: ToolbarService.createButton({\n id: 'WindowLevel',\n icon: 'tool-window-level',\n label: 'Window Level',\n tooltip: 'Window Level',\n commands: _createSetToolActiveCommands('WindowLevel'),\n evaluate: 'evaluate.cornerstoneTool',\n }),\n secondary: {\n icon: 'chevron-down',\n tooltip: 'W/L Presets',\n },\n renderer: WindowLevelMenuItem,\n items: [\n _createWwwcPreset(1, 'Soft tissue', '400 / 40'),\n _createWwwcPreset(2, 'Lung', '1500 / -600'),\n _createWwwcPreset(3, 'Liver', '150 / 90'),\n _createWwwcPreset(4, 'Bone', '2500 / 480'),\n _createWwwcPreset(5, 'Brain', '80 / 40'),\n ],\n },\n },\n {\n id: 'Pan',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-move',\n label: 'Pan',\n commands: _createSetToolActiveCommands('Pan'),\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'Capture',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-capture',\n label: 'Capture',\n commands: [\n {\n commandName: 'showDownloadViewportModal',\n context: 'CORNERSTONE',\n },\n ],\n evaluate: 'evaluate.action',\n },\n },\n {\n id: 'Layout',\n uiType: 'ohif.layoutSelector',\n props: {\n rows: 3,\n columns: 3,\n evaluate: 'evaluate.action',\n commands: [\n {\n commandName: 'setViewportGridLayout',\n },\n ],\n },\n },\n {\n id: 'MPR',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'icon-mpr',\n label: 'MPR',\n commands: [\n {\n commandName: 'toggleHangingProtocol',\n commandOptions: {\n protocolId: 'mpr',\n },\n context: 'DEFAULT',\n },\n ],\n evaluate: 'evaluate.mpr',\n },\n },\n {\n id: 'Crosshairs',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-crosshair',\n label: 'Crosshairs',\n commands: _createSetToolActiveCommands('Crosshairs', ['mpr']),\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'MoreTools',\n uiType: 'ohif.splitButton',\n props: {\n groupId: 'MoreTools',\n evaluate: 'evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList',\n primary: ToolbarService.createButton({\n id: 'Reset',\n icon: 'tool-reset',\n label: 'Reset View',\n tooltip: 'Reset',\n commands: [\n {\n commandName: 'resetViewport',\n context: 'CORNERSTONE',\n },\n ],\n evaluate: 'evaluate.action',\n }),\n secondary: {\n icon: 'chevron-down',\n tooltip: 'More Tools',\n },\n items: [\n ToolbarService.createButton({\n id: 'RotateRight',\n icon: 'tool-rotate-right',\n label: 'Rotate Right',\n tooltip: 'Rotate +90',\n commands: [\n {\n commandName: 'rotateViewportCW',\n context: 'CORNERSTONE',\n },\n ],\n evaluate: 'evaluate.action',\n }),\n ToolbarService.createButton({\n id: 'FlipHorizontal',\n icon: 'tool-flip-horizontal',\n label: 'Flip Horizontally',\n tooltip: 'Flip Horizontal',\n commands: [\n {\n commandName: 'flipViewportHorizontal',\n context: 'CORNERSTONE',\n },\n ],\n evaluate: 'evaluate.action',\n }),\n ToolbarService.createButton({\n id: 'StackScroll',\n icon: 'tool-stack-scroll',\n label: 'Stack Scroll',\n tooltip: 'Stack Scroll',\n commands: _createSetToolActiveCommands('StackScroll'),\n evaluate: 'evaluate.cornerstoneTool',\n }),\n ToolbarService.createButton({\n id: 'Magnify',\n icon: 'tool-magnify',\n label: 'Magnify',\n tooltip: 'Magnify',\n commands: _createSetToolActiveCommands('Magnify'),\n evaluate: 'evaluate.cornerstoneTool',\n }),\n ToolbarService.createButton({\n id: 'Invert',\n icon: 'tool-invert',\n label: 'Invert',\n tooltip: 'Invert Colors',\n commands: [\n {\n commandName: 'invertViewport',\n context: 'CORNERSTONE',\n },\n ],\n evaluate: 'evaluate.action',\n }),\n ToolbarService.createButton({\n id: 'Cine',\n icon: 'tool-cine',\n label: 'Cine',\n tooltip: 'Cine',\n commands: [\n {\n commandName: 'toggleCine',\n context: 'CORNERSTONE',\n },\n ],\n evaluate: 'evaluate.action',\n }),\n ToolbarService.createButton({\n id: 'DicomTagBrowser',\n icon: 'list-bullets',\n label: 'Dicom Tag Browser',\n tooltip: 'Dicom Tag Browser',\n commands: [\n {\n commandName: 'openDICOMTagViewer',\n context: 'DEFAULT',\n },\n ],\n evaluate: 'evaluate.action',\n }),\n ],\n },\n },\n];\n\nexport default toolbarButtons;\n","import type { Button } from '@ohif/core/types';\n\nfunction _createSetToolActiveCommands(toolName) {\n return [\n {\n commandName: 'setToolActive',\n commandOptions: {\n toolName,\n },\n },\n ];\n}\n\nconst toolbarButtons: Button[] = [\n {\n id: 'BrushTools',\n uiType: 'ohif.buttonGroup',\n props: {\n groupId: 'BrushTools',\n items: [\n {\n id: 'Brush',\n icon: 'icon-tool-brush',\n label: 'Brush',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: { toolNames: ['CircularBrush', 'SphereBrush'] },\n },\n commands: _createSetToolActiveCommands('CircularBrush'),\n options: [\n {\n name: 'Radius (mm)',\n id: 'brush-radius',\n type: 'range',\n min: 0.5,\n max: 99.5,\n step: 0.5,\n value: 25,\n commands: {\n commandName: 'setBrushSize',\n commandOptions: { toolNames: ['CircularBrush', 'SphereBrush'] },\n },\n },\n {\n name: 'Shape',\n type: 'radio',\n id: 'brush-mode',\n value: 'CircularBrush',\n values: [\n { value: 'CircularBrush', label: 'Circle' },\n { value: 'SphereBrush', label: 'Sphere' },\n ],\n commands: 'setToolActiveToolbar',\n },\n ],\n },\n {\n id: 'Eraser',\n icon: 'icon-tool-eraser',\n label: 'Eraser',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: {\n toolNames: ['CircularEraser', 'SphereEraser'],\n },\n },\n commands: _createSetToolActiveCommands('CircularEraser'),\n options: [\n {\n name: 'Radius (mm)',\n id: 'eraser-radius',\n type: 'range',\n min: 0.5,\n max: 99.5,\n step: 0.5,\n value: 25,\n commands: {\n commandName: 'setBrushSize',\n commandOptions: { toolNames: ['CircularEraser', 'SphereEraser'] },\n },\n },\n {\n name: 'Shape',\n type: 'radio',\n id: 'eraser-mode',\n value: 'CircularEraser',\n values: [\n { value: 'CircularEraser', label: 'Circle' },\n { value: 'SphereEraser', label: 'Sphere' },\n ],\n commands: 'setToolActiveToolbar',\n },\n ],\n },\n {\n id: 'Threshold',\n icon: 'icon-tool-threshold',\n label: 'Eraser',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: { toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'] },\n },\n commands: _createSetToolActiveCommands('ThresholdCircularBrush'),\n options: [\n {\n name: 'Radius (mm)',\n id: 'threshold-radius',\n type: 'range',\n min: 0.5,\n max: 99.5,\n step: 0.5,\n value: 25,\n commands: {\n commandName: 'setBrushSize',\n commandOptions: {\n toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'],\n },\n },\n },\n {\n name: 'Shape',\n type: 'radio',\n id: 'eraser-mode',\n value: 'ThresholdCircularBrush',\n values: [\n { value: 'ThresholdCircularBrush', label: 'Circle' },\n { value: 'ThresholdSphereBrush', label: 'Sphere' },\n ],\n commands: 'setToolActiveToolbar',\n },\n {\n name: 'Threshold',\n type: 'radio',\n id: 'dynamic-mode',\n value: 'ThresholdRange',\n values: [\n { value: 'ThresholdDynamic', label: 'Dynamic' },\n { value: 'ThresholdRange', label: 'Range' },\n ],\n commands: {\n commandName: 'toggleThresholdRangeAndDynamic',\n },\n },\n {\n name: 'ThresholdRange',\n type: 'double-range',\n id: 'threshold-range',\n min: -1000,\n max: 1000,\n step: 1,\n values: [100, 600],\n condition: ({ options }) =>\n options.find(option => option.id === 'dynamic-mode').value === 'ThresholdRange',\n commands: {\n commandName: 'setThresholdRange',\n commandOptions: {\n toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'],\n },\n },\n },\n ],\n },\n ],\n },\n },\n {\n id: 'Shapes',\n uiType: 'ohif.radioGroup',\n props: {\n label: 'Shapes',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: { toolNames: ['CircleScissor', 'SphereScissor', 'RectangleScissor'] },\n },\n icon: 'icon-tool-shape',\n commands: _createSetToolActiveCommands('CircleScissor'),\n options: [\n {\n name: 'Shape',\n type: 'radio',\n value: 'CircleScissor',\n id: 'shape-mode',\n values: [\n { value: 'CircleScissor', label: 'Circle' },\n { value: 'SphereScissor', label: 'Sphere' },\n { value: 'RectangleScissor', label: 'Rectangle' },\n ],\n commands: 'setToolActiveToolbar',\n },\n ],\n },\n },\n];\n\nexport default toolbarButtons;\n","function createTools(utilityModule) {\n const { toolNames, Enums } = utilityModule.exports;\n return {\n active: [\n { toolName: toolNames.WindowLevel, bindings: [{ mouseButton: Enums.MouseBindings.Primary }] },\n { toolName: toolNames.Pan, bindings: [{ mouseButton: Enums.MouseBindings.Auxiliary }] },\n { toolName: toolNames.Zoom, bindings: [{ mouseButton: Enums.MouseBindings.Secondary }] },\n { toolName: toolNames.StackScrollMouseWheel, bindings: [] },\n ],\n passive: [\n {\n toolName: 'CircularBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'FILL_INSIDE_CIRCLE',\n },\n },\n {\n toolName: 'CircularEraser',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'ERASE_INSIDE_CIRCLE',\n },\n },\n {\n toolName: 'SphereBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'FILL_INSIDE_SPHERE',\n },\n },\n {\n toolName: 'SphereEraser',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'ERASE_INSIDE_SPHERE',\n },\n },\n {\n toolName: 'ThresholdCircularBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',\n dynamicRadius: 3,\n },\n },\n {\n toolName: 'ThresholdSphereBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'THRESHOLD_INSIDE_SPHERE',\n dynamicRadius: 3,\n },\n },\n { toolName: toolNames.CircleScissors },\n { toolName: toolNames.RectangleScissors },\n { toolName: toolNames.SphereScissors },\n { toolName: toolNames.StackScroll },\n { toolName: toolNames.Magnify },\n { toolName: toolNames.SegmentationDisplay },\n ],\n disabled: [{ toolName: toolNames.ReferenceLines }],\n };\n}\n\nfunction initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, toolGroupId) {\n const utilityModule = extensionManager.getModuleEntry(\n '@ohif/extension-cornerstone.utilityModule.tools'\n );\n const tools = createTools(utilityModule);\n toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);\n}\n\nfunction initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {\n const utilityModule = extensionManager.getModuleEntry(\n '@ohif/extension-cornerstone.utilityModule.tools'\n );\n const tools = createTools(utilityModule);\n tools.disabled.push(\n {\n toolName: utilityModule.exports.toolNames.Crosshairs,\n configuration: {\n viewportIndicators: false,\n autoPan: {\n enabled: false,\n panSize: 10,\n },\n },\n },\n { toolName: utilityModule.exports.toolNames.ReferenceLines }\n );\n toolGroupService.createToolGroupAndAddTools('mpr', tools);\n}\n\nfunction initToolGroups(extensionManager, toolGroupService, commandsManager) {\n initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, 'default');\n initMPRToolGroup(extensionManager, toolGroupService, commandsManager);\n}\n\nexport default initToolGroups;\n","import { hotkeys } from '@ohif/core';\nimport { id } from './id';\nimport toolbarButtons from './toolbarButtons';\nimport segmentationButtons from './segmentationButtons';\nimport initToolGroups from './initToolGroups';\n\nconst ohif = {\n layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',\n sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',\n hangingProtocol: '@ohif/extension-default.hangingProtocolModule.default',\n leftPanel: '@ohif/extension-default.panelModule.seriesList',\n rightPanel: '@ohif/extension-default.panelModule.measure',\n};\n\nconst cornerstone = {\n viewport: '@ohif/extension-cornerstone.viewportModule.cornerstone',\n};\n\nconst segmentation = {\n panel: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentation',\n panelTool: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentationWithTools',\n sopClassHandler: '@ohif/extension-cornerstone-dicom-seg.sopClassHandlerModule.dicom-seg',\n viewport: '@ohif/extension-cornerstone-dicom-seg.viewportModule.dicom-seg',\n};\n\n/**\n * Just two dependencies to be able to render a viewport with panels in order\n * to make sure that the mode is working.\n */\nconst extensionDependencies = {\n '@ohif/extension-default': '^3.0.0',\n '@ohif/extension-cornerstone': '^3.0.0',\n '@ohif/extension-cornerstone-dicom-seg': '^3.0.0',\n};\n\nfunction modeFactory({ modeConfiguration }) {\n return {\n /**\n * Mode ID, which should be unique among modes used by the viewer. This ID\n * is used to identify the mode in the viewer's state.\n */\n id,\n routeName: 'segmentation',\n /**\n * Mode name, which is displayed in the viewer's UI in the workList, for the\n * user to select the mode.\n */\n displayName: 'Segmentation',\n /**\n * Runs when the Mode Route is mounted to the DOM. Usually used to initialize\n * Services and other resources.\n */\n onModeEnter: ({ servicesManager, extensionManager, commandsManager }) => {\n const { measurementService, toolbarService, toolGroupService } = servicesManager.services;\n\n measurementService.clearMeasurements();\n\n // Init Default and SR ToolGroups\n initToolGroups(extensionManager, toolGroupService, commandsManager);\n\n toolbarService.addButtons(toolbarButtons);\n toolbarService.addButtons(segmentationButtons);\n\n toolbarService.createButtonSection('primary', [\n 'Pan',\n 'Capture',\n 'Layout',\n 'MPR',\n 'Crosshairs',\n 'Zoom',\n 'MoreTools',\n ]);\n toolbarService.createButtonSection('segmentationToolbox', ['BrushTools', 'Shapes']);\n },\n onModeExit: ({ servicesManager }) => {\n const {\n toolGroupService,\n syncGroupService,\n toolbarService,\n segmentationService,\n cornerstoneViewportService,\n uiDialogService,\n uiModalService,\n } = servicesManager.services;\n\n uiDialogService.dismissAll();\n uiModalService.hide();\n toolGroupService.destroy();\n syncGroupService.destroy();\n segmentationService.destroy();\n cornerstoneViewportService.destroy();\n },\n /** */\n validationTags: {\n study: [],\n series: [],\n },\n /**\n * A boolean return value that indicates whether the mode is valid for the\n * modalities of the selected studies. Currently we don't have stack viewport\n * segmentations and we should exclude them\n */\n isValidMode: ({ modalities }) => {\n // Don't show the mode if the selected studies have only one modality\n // that is not supported by the mode\n const modalitiesArray = modalities.split('\\\\');\n return {\n valid: modalitiesArray.length === 1 ? !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalitiesArray[0]) : true,\n description: 'The mode does not support studies that ONLY include the following modalities: SM, US, MG, OT, DOC, CR',\n }\n },\n /**\n * Mode Routes are used to define the mode's behavior. A list of Mode Route\n * that includes the mode's path and the layout to be used. The layout will\n * include the components that are used in the layout. For instance, if the\n * default layoutTemplate is used (id: '@ohif/extension-default.layoutTemplateModule.viewerLayout')\n * it will include the leftPanels, rightPanels, and viewports. However, if\n * you define another layoutTemplate that includes a Footer for instance,\n * you should provide the Footer component here too. Note: We use Strings\n * to reference the component's ID as they are registered in the internal\n * ExtensionManager. The template for the string is:\n * `${extensionId}.{moduleType}.${componentId}`.\n */\n routes: [\n {\n path: 'template',\n layoutTemplate: ({ location, servicesManager }) => {\n return {\n id: ohif.layout,\n props: {\n leftPanels: [ohif.leftPanel],\n rightPanels: [segmentation.panelTool],\n viewports: [\n {\n namespace: cornerstone.viewport,\n displaySetsToDisplay: [ohif.sopClassHandler],\n },\n {\n namespace: segmentation.viewport,\n displaySetsToDisplay: [segmentation.sopClassHandler],\n },\n ],\n },\n };\n },\n },\n ],\n /** List of extensions that are used by the mode */\n extensions: extensionDependencies,\n /** HangingProtocol used by the mode */\n // hangingProtocol: [''],\n /** SopClassHandlers used by the mode */\n sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler],\n /** hotkeys for mode */\n hotkeys: [...hotkeys.defaults.hotkeyBindings],\n };\n}\n\nconst mode = {\n id,\n modeFactory,\n extensionDependencies,\n};\n\nexport default mode;\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__498__","__WEBPACK_EXTERNAL_MODULE__610__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","id","packageJson","windowLevelPresets","defaults","_createWwwcPreset","preset","title","subtitle","toString","commands","commandName","commandOptions","context","_createSetToolActiveCommands","toolName","toolGroupIds","map","toolGroupId","uiType","props","icon","label","evaluate","groupId","primary","ToolbarService","createButton","tooltip","secondary","renderer","WindowLevelMenuItem","items","rows","columns","protocolId","name","options","toolNames","type","min","max","step","values","condition","find","option","createTools","utilityModule","Enums","active","WindowLevel","bindings","mouseButton","MouseBindings","Primary","Pan","Auxiliary","Zoom","Secondary","StackScrollMouseWheel","passive","parentTool","configuration","activeStrategy","dynamicRadius","CircleScissors","RectangleScissors","SphereScissors","StackScroll","Magnify","SegmentationDisplay","disabled","ReferenceLines","ohif","segmentation","extensionDependencies","modeFactory","modeConfiguration","routeName","displayName","onModeEnter","servicesManager","extensionManager","commandsManager","measurementService","toolbarService","toolGroupService","services","clearMeasurements","tools","getModuleEntry","createToolGroupAndAddTools","initDefaultToolGroup","push","Crosshairs","viewportIndicators","autoPan","enabled","panSize","initMPRToolGroup","initToolGroups","addButtons","toolbarButtons","segmentationButtons","createButtonSection","onModeExit","syncGroupService","segmentationService","cornerstoneViewportService","uiDialogService","uiModalService","dismissAll","hide","destroy","validationTags","study","series","isValidMode","modalities","modalitiesArray","split","valid","length","includes","description","routes","path","layoutTemplate","location","leftPanels","rightPanels","viewports","namespace","displaySetsToDisplay","extensions","sopClassHandlers","hotkeys","hotkeyBindings"],"sourceRoot":""}
1
+ {"version":3,"file":"index.umd.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,cAAeA,QAAQ,aAC/B,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,0BAA2B,CAAC,aAAc,YAAaJ,GACpC,iBAAZC,QACdA,QAAQ,2BAA6BD,EAAQG,QAAQ,cAAeA,QAAQ,aAE5EJ,EAAK,2BAA6BC,EAAQD,EAAK,cAAeA,EAAK,YACpE,CATD,CASmB,oBAATO,KAAuBA,KAAOC,MAAM,CAACC,EAAkCC,I,kCCTjFP,EAAOD,QAAUO,C,UCAjBN,EAAOD,QAAUQ,C,GCCbC,EAA2B,CAAC,EAGhC,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqBE,IAAjBD,EACH,OAAOA,EAAaZ,QAGrB,IAAIC,EAASQ,E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AoB,UAAW,CAC5C,cACA,MACA,OACA,kBACA,UACA,SACA,aACA,cAEFvB,EAAeuB,oBAAoB,sBAAuB,CAAC,aAAc,UAAU,EAErFC,WAAYA,EAAG5B,sBACb,MAAM,iBACJK,EAAgB,iBAChBwB,EAAgB,eAChBzB,EAAc,oBACd0B,EAAmB,2BACnBC,EAA0B,gBAC1BC,EAAe,eACfC,GACEjC,EAAgBM,SAEpB0B,EAAgBE,aAChBD,EAAeE,OACf9B,EAAiB+B,UACjBP,EAAiBO,UACjBN,EAAoBM,UACpBL,EAA2BK,SAAS,EAGtCC,eAAgB,CACdC,MAAO,GACPC,OAAQ,IAOVC,YAAaA,EAAGC,iBAGd,MAAMC,EAAkBD,EAAWE,MAAM,MACzC,MAAO,CACLC,MAC6B,IAA3BF,EAAgBG,SACX,CAAC,KAAM,KAAM,KAAM,KAAM,MAAO,MAAMC,SAASJ,EAAgB,IAEtEK,YACE,wGACH,EAcHC,OAAQ,CACN,CACEC,KAAM,WACNC,eAAgBA,EAAGC,WAAUnD,sBACpB,CACLtF,GA9HF,4DA+HEmB,MAAO,CACLuH,WAAY,CA7Hb,kDA8HCC,YAAa,CApHd,gFAqHCC,UAAW,CACT,CACEC,UA5HN,yDA6HMC,qBAAsB,CAAChE,IAEzB,CACE+D,UAzHN,iEA0HMC,qBAAsB,CAAC/D,UASrCgE,WAAY/D,EAIZgE,iBAAkB,CAAClE,EAAsBC,GAEzCkE,QAAS,IAAIA,EAAAA,QAAQ9I,SAAS+I,gBAElC,EAKElE,wB","sources":["webpack://@ohif/mode-segmentation/webpack/universalModuleDefinition","webpack://@ohif/mode-segmentation/external umd {\"commonjs2\":\"@ohif/core\",\"commonjs\":\"@ohif/core\",\"amd\":\"@ohif/core\",\"root\":\"@ohif/core\"}","webpack://@ohif/mode-segmentation/external umd {\"commonjs2\":\"@ohif/ui\",\"commonjs\":\"@ohif/ui\",\"amd\":\"@ohif/ui\",\"root\":\"@ohif/ui\"}","webpack://@ohif/mode-segmentation/webpack/bootstrap","webpack://@ohif/mode-segmentation/webpack/runtime/define property getters","webpack://@ohif/mode-segmentation/webpack/runtime/hasOwnProperty shorthand","webpack://@ohif/mode-segmentation/webpack/runtime/make namespace object","webpack://@ohif/mode-segmentation/./src/id.js","webpack://@ohif/mode-segmentation/./src/toolbarButtons.ts","webpack://@ohif/mode-segmentation/./src/segmentationButtons.ts","webpack://@ohif/mode-segmentation/./src/initToolGroups.ts","webpack://@ohif/mode-segmentation/./src/index.tsx"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"@ohif/core\"), require(\"@ohif/ui\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"@ohif/mode-segmentation\", [\"@ohif/core\", \"@ohif/ui\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"@ohif/mode-segmentation\"] = factory(require(\"@ohif/core\"), require(\"@ohif/ui\"));\n\telse\n\t\troot[\"@ohif/mode-segmentation\"] = factory(root[\"@ohif/core\"], root[\"@ohif/ui\"]);\n})(typeof self !== 'undefined' ? self : this, (__WEBPACK_EXTERNAL_MODULE__498__, __WEBPACK_EXTERNAL_MODULE__610__) => {\nreturn ","module.exports = __WEBPACK_EXTERNAL_MODULE__498__;","module.exports = __WEBPACK_EXTERNAL_MODULE__610__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import packageJson from '../package.json';\n\nconst id = packageJson.name;\n\nexport { id };\n","import type { Button } from '@ohif/core/types';\nimport { defaults, ToolbarService, ViewportGridService } from '@ohif/core';\nimport { WindowLevelMenuItem } from '@ohif/ui';\n\nconst { windowLevelPresets } = defaults;\nconst { createButton } = ToolbarService;\n\nconst ReferenceLinesListeners: RunCommand = [\n {\n commandName: 'setSourceViewportForReferenceLinesTool',\n context: 'CORNERSTONE',\n },\n];\n\nfunction _createWwwcPreset(preset, title, subtitle) {\n return {\n id: preset.toString(),\n title,\n subtitle,\n commands: [\n {\n commandName: 'setWindowLevel',\n commandOptions: {\n ...windowLevelPresets[preset],\n },\n context: 'CORNERSTONE',\n },\n ],\n };\n}\n\nexport const setToolActiveToolbar = {\n commandName: 'setToolActiveToolbar',\n commandOptions: {\n toolGroupIds: ['default', 'mpr', 'SRToolGroup'],\n },\n};\n\nconst toolbarButtons: Button[] = [\n {\n id: 'Zoom',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-zoom',\n label: 'Zoom',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'WindowLevel',\n uiType: 'ohif.splitButton',\n props: {\n groupId: 'WindowLevel',\n primary: createButton({\n id: 'WindowLevel',\n icon: 'tool-window-level',\n label: 'Window Level',\n tooltip: 'Window Level',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n secondary: {\n icon: 'chevron-down',\n tooltip: 'W/L Presets',\n },\n renderer: WindowLevelMenuItem,\n items: [\n _createWwwcPreset(1, 'Soft tissue', '400 / 40'),\n _createWwwcPreset(2, 'Lung', '1500 / -600'),\n _createWwwcPreset(3, 'Liver', '150 / 90'),\n _createWwwcPreset(4, 'Bone', '2500 / 480'),\n _createWwwcPreset(5, 'Brain', '80 / 40'),\n ],\n },\n },\n {\n id: 'Pan',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-move',\n label: 'Pan',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'TrackballRotate',\n uiType: 'ohif.radioGroup',\n props: {\n type: 'tool',\n icon: 'tool-3d-rotate',\n label: '3D Rotate',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'Capture',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-capture',\n label: 'Capture',\n commands: 'showDownloadViewportModal',\n evaluate: 'evaluate.action',\n },\n },\n {\n id: 'Layout',\n uiType: 'ohif.layoutSelector',\n props: {\n rows: 3,\n columns: 4,\n evaluate: 'evaluate.action',\n commands: 'setViewportGridLayout',\n },\n },\n {\n id: 'Crosshairs',\n uiType: 'ohif.radioGroup',\n props: {\n icon: 'tool-crosshair',\n label: 'Crosshairs',\n commands: {\n commandName: 'setToolActiveToolbar',\n commandOptions: {\n toolGroupIds: ['mpr'],\n },\n },\n evaluate: 'evaluate.cornerstoneTool',\n },\n },\n {\n id: 'MoreTools',\n uiType: 'ohif.splitButton',\n props: {\n groupId: 'MoreTools',\n evaluate: 'evaluate.group.promoteToPrimaryIfCornerstoneToolNotActiveInTheList',\n primary: createButton({\n id: 'Reset',\n icon: 'tool-reset',\n tooltip: 'Reset View',\n label: 'Reset',\n commands: 'resetViewport',\n evaluate: 'evaluate.action',\n }),\n secondary: {\n icon: 'chevron-down',\n label: '',\n tooltip: 'More Tools',\n },\n items: [\n createButton({\n id: 'Reset',\n icon: 'tool-reset',\n label: 'Reset View',\n tooltip: 'Reset View',\n commands: 'resetViewport',\n evaluate: 'evaluate.action',\n }),\n createButton({\n id: 'rotate-right',\n icon: 'tool-rotate-right',\n label: 'Rotate Right',\n tooltip: 'Rotate +90',\n commands: 'rotateViewportCW',\n evaluate: 'evaluate.action',\n }),\n createButton({\n id: 'flipHorizontal',\n icon: 'tool-flip-horizontal',\n label: 'Flip Horizontal',\n tooltip: 'Flip Horizontally',\n commands: 'flipViewportHorizontal',\n evaluate: ['evaluate.viewportProperties.toggle', 'evaluate.not3D'],\n }),\n createButton({\n id: 'ReferenceLines',\n icon: 'tool-referenceLines',\n label: 'Reference Lines',\n tooltip: 'Show Reference Lines',\n commands: {\n commandName: 'setToolEnabled',\n commandOptions: {\n toolName: 'ReferenceLines',\n toggle: true, // Toggle the tool on/off upon click\n },\n },\n listeners: {\n [ViewportGridService.EVENTS.ACTIVE_VIEWPORT_ID_CHANGED]: ReferenceLinesListeners,\n [ViewportGridService.EVENTS.VIEWPORTS_READY]: ReferenceLinesListeners,\n },\n evaluate: 'evaluate.cornerstoneTool.toggle',\n }),\n createButton({\n id: 'ImageOverlay',\n icon: 'toggle-dicom-overlay',\n label: 'Image Overlay',\n tooltip: 'Toggle Image Overlay',\n commands: {\n commandName: 'setToolEnabled',\n commandOptions: {\n toolName: 'ImageOverlayViewer',\n toggle: true, // Toggle the tool on/off upon click\n },\n },\n evaluate: 'evaluate.cornerstoneTool.toggle',\n }),\n createButton({\n id: 'StackScroll',\n icon: 'tool-stack-scroll',\n label: 'Stack Scroll',\n tooltip: 'Stack Scroll',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n createButton({\n id: 'invert',\n icon: 'tool-invert',\n label: 'Invert',\n tooltip: 'Invert Colors',\n commands: 'invertViewport',\n evaluate: 'evaluate.viewportProperties.toggle',\n }),\n createButton({\n id: 'Probe',\n icon: 'tool-probe',\n label: 'Probe',\n tooltip: 'Probe',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n createButton({\n id: 'Cine',\n icon: 'tool-cine',\n label: 'Cine',\n tooltip: 'Cine',\n commands: 'toggleCine',\n evaluate: ['evaluate.cine', 'evaluate.not3D'],\n }),\n createButton({\n id: 'Angle',\n icon: 'tool-angle',\n label: 'Angle',\n tooltip: 'Angle',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n createButton({\n id: 'Magnify',\n icon: 'tool-magnify',\n label: 'Magnify',\n tooltip: 'Magnify',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n createButton({\n id: 'RectangleROI',\n icon: 'tool-rectangle',\n label: 'Rectangle',\n tooltip: 'Rectangle',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n createButton({\n id: 'CalibrationLine',\n icon: 'tool-calibration',\n label: 'Calibration',\n tooltip: 'Calibration Line',\n commands: setToolActiveToolbar,\n evaluate: 'evaluate.cornerstoneTool',\n }),\n createButton({\n id: 'TagBrowser',\n icon: 'list-bullets',\n label: 'Dicom Tag Browser',\n tooltip: 'Dicom Tag Browser',\n commands: 'openDICOMTagViewer',\n }),\n ],\n },\n },\n];\n\nexport default toolbarButtons;\n","import type { Button } from '@ohif/core/types';\n\nfunction _createSetToolActiveCommands(toolName) {\n return [\n {\n commandName: 'setToolActive',\n commandOptions: {\n toolName,\n },\n },\n ];\n}\n\nconst toolbarButtons: Button[] = [\n {\n id: 'BrushTools',\n uiType: 'ohif.buttonGroup',\n props: {\n groupId: 'BrushTools',\n items: [\n {\n id: 'Brush',\n icon: 'icon-tool-brush',\n label: 'Brush',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: { toolNames: ['CircularBrush', 'SphereBrush'] },\n },\n commands: _createSetToolActiveCommands('CircularBrush'),\n options: [\n {\n name: 'Radius (mm)',\n id: 'brush-radius',\n type: 'range',\n min: 0.5,\n max: 99.5,\n step: 0.5,\n value: 25,\n commands: {\n commandName: 'setBrushSize',\n commandOptions: { toolNames: ['CircularBrush', 'SphereBrush'] },\n },\n },\n {\n name: 'Shape',\n type: 'radio',\n id: 'brush-mode',\n value: 'CircularBrush',\n values: [\n { value: 'CircularBrush', label: 'Circle' },\n { value: 'SphereBrush', label: 'Sphere' },\n ],\n commands: 'setToolActiveToolbar',\n },\n ],\n },\n {\n id: 'Eraser',\n icon: 'icon-tool-eraser',\n label: 'Eraser',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: {\n toolNames: ['CircularEraser', 'SphereEraser'],\n },\n },\n commands: _createSetToolActiveCommands('CircularEraser'),\n options: [\n {\n name: 'Radius (mm)',\n id: 'eraser-radius',\n type: 'range',\n min: 0.5,\n max: 99.5,\n step: 0.5,\n value: 25,\n commands: {\n commandName: 'setBrushSize',\n commandOptions: { toolNames: ['CircularEraser', 'SphereEraser'] },\n },\n },\n {\n name: 'Shape',\n type: 'radio',\n id: 'eraser-mode',\n value: 'CircularEraser',\n values: [\n { value: 'CircularEraser', label: 'Circle' },\n { value: 'SphereEraser', label: 'Sphere' },\n ],\n commands: 'setToolActiveToolbar',\n },\n ],\n },\n {\n id: 'Threshold',\n icon: 'icon-tool-threshold',\n label: 'Eraser',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: { toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'] },\n },\n commands: _createSetToolActiveCommands('ThresholdCircularBrush'),\n options: [\n {\n name: 'Radius (mm)',\n id: 'threshold-radius',\n type: 'range',\n min: 0.5,\n max: 99.5,\n step: 0.5,\n value: 25,\n commands: {\n commandName: 'setBrushSize',\n commandOptions: {\n toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'],\n },\n },\n },\n {\n name: 'Shape',\n type: 'radio',\n id: 'eraser-mode',\n value: 'ThresholdCircularBrush',\n values: [\n { value: 'ThresholdCircularBrush', label: 'Circle' },\n { value: 'ThresholdSphereBrush', label: 'Sphere' },\n ],\n commands: 'setToolActiveToolbar',\n },\n {\n name: 'Threshold',\n type: 'radio',\n id: 'dynamic-mode',\n value: 'ThresholdRange',\n values: [\n { value: 'ThresholdDynamic', label: 'Dynamic' },\n { value: 'ThresholdRange', label: 'Range' },\n ],\n commands: {\n commandName: 'toggleThresholdRangeAndDynamic',\n },\n },\n {\n name: 'ThresholdRange',\n type: 'double-range',\n id: 'threshold-range',\n min: -1000,\n max: 1000,\n step: 1,\n values: [100, 600],\n condition: ({ options }) =>\n options.find(option => option.id === 'dynamic-mode').value === 'ThresholdRange',\n commands: {\n commandName: 'setThresholdRange',\n commandOptions: {\n toolNames: ['ThresholdCircularBrush', 'ThresholdSphereBrush'],\n },\n },\n },\n ],\n },\n ],\n },\n },\n {\n id: 'Shapes',\n uiType: 'ohif.radioGroup',\n props: {\n label: 'Shapes',\n evaluate: {\n name: 'evaluate.cornerstone.segmentation',\n options: { toolNames: ['CircleScissor', 'SphereScissor', 'RectangleScissor'] },\n },\n icon: 'icon-tool-shape',\n commands: _createSetToolActiveCommands('CircleScissor'),\n options: [\n {\n name: 'Shape',\n type: 'radio',\n value: 'CircleScissor',\n id: 'shape-mode',\n values: [\n { value: 'CircleScissor', label: 'Circle' },\n { value: 'SphereScissor', label: 'Sphere' },\n { value: 'RectangleScissor', label: 'Rectangle' },\n ],\n commands: 'setToolActiveToolbar',\n },\n ],\n },\n },\n];\n\nexport default toolbarButtons;\n","function createTools(utilityModule) {\n const { toolNames, Enums } = utilityModule.exports;\n return {\n active: [\n { toolName: toolNames.WindowLevel, bindings: [{ mouseButton: Enums.MouseBindings.Primary }] },\n { toolName: toolNames.Pan, bindings: [{ mouseButton: Enums.MouseBindings.Auxiliary }] },\n { toolName: toolNames.Zoom, bindings: [{ mouseButton: Enums.MouseBindings.Secondary }] },\n { toolName: toolNames.StackScrollMouseWheel, bindings: [] },\n ],\n passive: [\n {\n toolName: 'CircularBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'FILL_INSIDE_CIRCLE',\n },\n },\n {\n toolName: 'CircularEraser',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'ERASE_INSIDE_CIRCLE',\n },\n },\n {\n toolName: 'SphereBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'FILL_INSIDE_SPHERE',\n },\n },\n {\n toolName: 'SphereEraser',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'ERASE_INSIDE_SPHERE',\n },\n },\n {\n toolName: 'ThresholdCircularBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'THRESHOLD_INSIDE_CIRCLE',\n dynamicRadius: 3,\n },\n },\n {\n toolName: 'ThresholdSphereBrush',\n parentTool: 'Brush',\n configuration: {\n activeStrategy: 'THRESHOLD_INSIDE_SPHERE',\n dynamicRadius: 3,\n },\n },\n { toolName: toolNames.CircleScissors },\n { toolName: toolNames.RectangleScissors },\n { toolName: toolNames.SphereScissors },\n { toolName: toolNames.StackScroll },\n { toolName: toolNames.Magnify },\n { toolName: toolNames.SegmentationDisplay },\n ],\n disabled: [{ toolName: toolNames.ReferenceLines }],\n };\n}\n\nfunction initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, toolGroupId) {\n const utilityModule = extensionManager.getModuleEntry(\n '@ohif/extension-cornerstone.utilityModule.tools'\n );\n const tools = createTools(utilityModule);\n toolGroupService.createToolGroupAndAddTools(toolGroupId, tools);\n}\n\nfunction initMPRToolGroup(extensionManager, toolGroupService, commandsManager) {\n const utilityModule = extensionManager.getModuleEntry(\n '@ohif/extension-cornerstone.utilityModule.tools'\n );\n const tools = createTools(utilityModule);\n tools.disabled.push(\n {\n toolName: utilityModule.exports.toolNames.Crosshairs,\n configuration: {\n viewportIndicators: false,\n disableOnPassive: true,\n autoPan: {\n enabled: false,\n panSize: 10,\n },\n },\n },\n { toolName: utilityModule.exports.toolNames.ReferenceLines }\n );\n toolGroupService.createToolGroupAndAddTools('mpr', tools);\n}\n\nfunction initVolume3DToolGroup(extensionManager, toolGroupService) {\n const utilityModule = extensionManager.getModuleEntry(\n '@ohif/extension-cornerstone.utilityModule.tools'\n );\n\n const { toolNames, Enums } = utilityModule.exports;\n\n const tools = {\n active: [\n {\n toolName: toolNames.TrackballRotateTool,\n bindings: [{ mouseButton: Enums.MouseBindings.Primary }],\n },\n {\n toolName: toolNames.Zoom,\n bindings: [{ mouseButton: Enums.MouseBindings.Secondary }],\n },\n {\n toolName: toolNames.Pan,\n bindings: [{ mouseButton: Enums.MouseBindings.Auxiliary }],\n },\n ],\n };\n\n toolGroupService.createToolGroupAndAddTools('volume3d', tools);\n}\n\nfunction initToolGroups(extensionManager, toolGroupService, commandsManager) {\n initDefaultToolGroup(extensionManager, toolGroupService, commandsManager, 'default');\n initMPRToolGroup(extensionManager, toolGroupService, commandsManager);\n initVolume3DToolGroup(extensionManager, toolGroupService);\n}\n\nexport default initToolGroups;\n","import { hotkeys } from '@ohif/core';\nimport { id } from './id';\nimport toolbarButtons from './toolbarButtons';\nimport segmentationButtons from './segmentationButtons';\nimport initToolGroups from './initToolGroups';\n\nconst DEFAULT_TOOL_GROUP_ID = 'default';\nconst VOLUME3D_TOOL_GROUP_ID = 'volume3d';\n\nconst ohif = {\n layout: '@ohif/extension-default.layoutTemplateModule.viewerLayout',\n sopClassHandler: '@ohif/extension-default.sopClassHandlerModule.stack',\n hangingProtocol: '@ohif/extension-default.hangingProtocolModule.default',\n leftPanel: '@ohif/extension-default.panelModule.seriesList',\n rightPanel: '@ohif/extension-default.panelModule.measure',\n};\n\nconst cornerstone = {\n viewport: '@ohif/extension-cornerstone.viewportModule.cornerstone',\n};\n\nconst segmentation = {\n panel: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentation',\n panelTool: '@ohif/extension-cornerstone-dicom-seg.panelModule.panelSegmentationWithTools',\n sopClassHandler: '@ohif/extension-cornerstone-dicom-seg.sopClassHandlerModule.dicom-seg',\n viewport: '@ohif/extension-cornerstone-dicom-seg.viewportModule.dicom-seg',\n};\n\n/**\n * Just two dependencies to be able to render a viewport with panels in order\n * to make sure that the mode is working.\n */\nconst extensionDependencies = {\n '@ohif/extension-default': '^3.0.0',\n '@ohif/extension-cornerstone': '^3.0.0',\n '@ohif/extension-cornerstone-dicom-seg': '^3.0.0',\n};\n\nfunction modeFactory({ modeConfiguration }) {\n return {\n /**\n * Mode ID, which should be unique among modes used by the viewer. This ID\n * is used to identify the mode in the viewer's state.\n */\n id,\n routeName: 'segmentation',\n /**\n * Mode name, which is displayed in the viewer's UI in the workList, for the\n * user to select the mode.\n */\n displayName: 'Segmentation',\n /**\n * Runs when the Mode Route is mounted to the DOM. Usually used to initialize\n * Services and other resources.\n */\n onModeEnter: ({ servicesManager, extensionManager, commandsManager }) => {\n const { measurementService, toolbarService, toolGroupService } = servicesManager.services;\n\n measurementService.clearMeasurements();\n\n // Init Default and SR ToolGroups\n initToolGroups(extensionManager, toolGroupService, commandsManager);\n\n toolbarService.addButtons(toolbarButtons);\n toolbarService.addButtons(segmentationButtons);\n\n toolbarService.createButtonSection('primary', [\n 'WindowLevel',\n 'Pan',\n 'Zoom',\n 'TrackballRotate',\n 'Capture',\n 'Layout',\n 'Crosshairs',\n 'MoreTools',\n ]);\n toolbarService.createButtonSection('segmentationToolbox', ['BrushTools', 'Shapes']);\n },\n onModeExit: ({ servicesManager }) => {\n const {\n toolGroupService,\n syncGroupService,\n toolbarService,\n segmentationService,\n cornerstoneViewportService,\n uiDialogService,\n uiModalService,\n } = servicesManager.services;\n\n uiDialogService.dismissAll();\n uiModalService.hide();\n toolGroupService.destroy();\n syncGroupService.destroy();\n segmentationService.destroy();\n cornerstoneViewportService.destroy();\n },\n /** */\n validationTags: {\n study: [],\n series: [],\n },\n /**\n * A boolean return value that indicates whether the mode is valid for the\n * modalities of the selected studies. Currently we don't have stack viewport\n * segmentations and we should exclude them\n */\n isValidMode: ({ modalities }) => {\n // Don't show the mode if the selected studies have only one modality\n // that is not supported by the mode\n const modalitiesArray = modalities.split('\\\\');\n return {\n valid:\n modalitiesArray.length === 1\n ? !['SM', 'US', 'MG', 'OT', 'DOC', 'CR'].includes(modalitiesArray[0])\n : true,\n description:\n 'The mode does not support studies that ONLY include the following modalities: SM, US, MG, OT, DOC, CR',\n };\n },\n /**\n * Mode Routes are used to define the mode's behavior. A list of Mode Route\n * that includes the mode's path and the layout to be used. The layout will\n * include the components that are used in the layout. For instance, if the\n * default layoutTemplate is used (id: '@ohif/extension-default.layoutTemplateModule.viewerLayout')\n * it will include the leftPanels, rightPanels, and viewports. However, if\n * you define another layoutTemplate that includes a Footer for instance,\n * you should provide the Footer component here too. Note: We use Strings\n * to reference the component's ID as they are registered in the internal\n * ExtensionManager. The template for the string is:\n * `${extensionId}.{moduleType}.${componentId}`.\n */\n routes: [\n {\n path: 'template',\n layoutTemplate: ({ location, servicesManager }) => {\n return {\n id: ohif.layout,\n props: {\n leftPanels: [ohif.leftPanel],\n rightPanels: [segmentation.panelTool],\n viewports: [\n {\n namespace: cornerstone.viewport,\n displaySetsToDisplay: [ohif.sopClassHandler],\n },\n {\n namespace: segmentation.viewport,\n displaySetsToDisplay: [segmentation.sopClassHandler],\n },\n ],\n },\n };\n },\n },\n ],\n /** List of extensions that are used by the mode */\n extensions: extensionDependencies,\n /** HangingProtocol used by the mode */\n // hangingProtocol: [''],\n /** SopClassHandlers used by the mode */\n sopClassHandlers: [ohif.sopClassHandler, segmentation.sopClassHandler],\n /** hotkeys for mode */\n hotkeys: [...hotkeys.defaults.hotkeyBindings],\n };\n}\n\nconst mode = {\n id,\n modeFactory,\n extensionDependencies,\n};\n\nexport default mode;\n"],"names":["root","factory","exports","module","require","define","amd","self","this","__WEBPACK_EXTERNAL_MODULE__498__","__WEBPACK_EXTERNAL_MODULE__610__","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","d","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call","r","Symbol","toStringTag","value","id","packageJson","windowLevelPresets","defaults","createButton","ToolbarService","ReferenceLinesListeners","commandName","context","_createWwwcPreset","preset","title","subtitle","toString","commands","commandOptions","setToolActiveToolbar","toolGroupIds","uiType","props","icon","label","evaluate","groupId","primary","tooltip","secondary","renderer","WindowLevelMenuItem","items","type","rows","columns","toolName","toggle","listeners","ViewportGridService","EVENTS","ACTIVE_VIEWPORT_ID_CHANGED","VIEWPORTS_READY","_createSetToolActiveCommands","name","options","toolNames","min","max","step","values","condition","find","option","createTools","utilityModule","Enums","active","WindowLevel","bindings","mouseButton","MouseBindings","Primary","Pan","Auxiliary","Zoom","Secondary","StackScrollMouseWheel","passive","parentTool","configuration","activeStrategy","dynamicRadius","CircleScissors","RectangleScissors","SphereScissors","StackScroll","Magnify","SegmentationDisplay","disabled","ReferenceLines","ohif","segmentation","extensionDependencies","modeFactory","modeConfiguration","routeName","displayName","onModeEnter","servicesManager","extensionManager","commandsManager","measurementService","toolbarService","toolGroupService","services","clearMeasurements","toolGroupId","tools","getModuleEntry","createToolGroupAndAddTools","initDefaultToolGroup","push","Crosshairs","viewportIndicators","disableOnPassive","autoPan","enabled","panSize","initMPRToolGroup","TrackballRotateTool","initVolume3DToolGroup","initToolGroups","addButtons","toolbarButtons","segmentationButtons","createButtonSection","onModeExit","syncGroupService","segmentationService","cornerstoneViewportService","uiDialogService","uiModalService","dismissAll","hide","destroy","validationTags","study","series","isValidMode","modalities","modalitiesArray","split","valid","length","includes","description","routes","path","layoutTemplate","location","leftPanels","rightPanels","viewports","namespace","displaySetsToDisplay","extensions","sopClassHandlers","hotkeys","hotkeyBindings"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohif/mode-segmentation",
3
- "version": "3.8.0-beta.64",
3
+ "version": "3.8.0-beta.65",
4
4
  "description": "OHIF segmentation mode which enables labelmap segmentation read/edit/export",
5
5
  "author": "@ohif",
6
6
  "license": "MIT",
@@ -35,7 +35,14 @@
35
35
  "test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
36
36
  },
37
37
  "peerDependencies": {
38
- "@ohif/core": "3.8.0-beta.64"
38
+ "@ohif/core": "3.8.0-beta.65",
39
+ "@ohif/extension-cornerstone": "3.8.0-beta.65",
40
+ "@ohif/extension-cornerstone-dicom-rt": "3.8.0-beta.65",
41
+ "@ohif/extension-cornerstone-dicom-seg": "3.8.0-beta.65",
42
+ "@ohif/extension-cornerstone-dicom-sr": "3.8.0-beta.65",
43
+ "@ohif/extension-default": "3.8.0-beta.65",
44
+ "@ohif/extension-dicom-pdf": "3.8.0-beta.65",
45
+ "@ohif/extension-dicom-video": "3.8.0-beta.65"
39
46
  },
40
47
  "dependencies": {
41
48
  "@babel/runtime": "^7.20.13",