@ohif/mode-basic-dev-mode 3.7.0-beta.9 → 3.7.0-beta.91
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 +1 @@
|
|
|
1
|
-
!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ohif/ui"),require("@ohif/core")):"function"==typeof define&&define.amd?define(["@ohif/ui","@ohif/core"],e):"object"==typeof exports?exports["ohif-mode-basic-dev"]=e(require("@ohif/ui"),require("@ohif/core")):o["ohif-mode-basic-dev"]=e(o["@ohif/ui"],o["@ohif/core"])}(
|
|
1
|
+
!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@ohif/ui"),require("@ohif/core")):"function"==typeof define&&define.amd?define(["@ohif/ui","@ohif/core"],e):"object"==typeof exports?exports["ohif-mode-basic-dev"]=e(require("@ohif/ui"),require("@ohif/core")):o["ohif-mode-basic-dev"]=e(o["@ohif/ui"],o["@ohif/core"])}(self,((o,e)=>(()=>{"use strict";var t={762:o=>{o.exports=e},369:e=>{e.exports=o}},i={};function n(o){var e=i[o];if(void 0!==e)return e.exports;var a=i[o]={exports:{}};return t[o](a,a.exports,n),a.exports}n.d=(o,e)=>{for(var t in e)n.o(e,t)&&!n.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},n.o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e),n.r=o=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{default:()=>S});var o=n(369),e=n(762);const{windowLevelPresets:t}=e.defaults;function i(o,e,t,i,n,a){return{id:e,icon:t,label:i,type:o,commands:n,tooltip:a}}const l=i.bind(null,"action"),s=(i.bind(null,"toggle"),i.bind(null,"tool"));function r(o,e,i){return{id:o.toString(),title:e,subtitle:i,type:"action",commands:[{commandName:"setWindowLevel",commandOptions:{...t[o]},context:"CORNERSTONE"}]}}const c=[{id:"MeasurementTools",type:"ohif.splitButton",props:{groupId:"MeasurementTools",isRadio:!0,primary:s("Length","tool-length","Length",[{commandName:"setToolActive",commandOptions:{toolName:"Length"},context:"CORNERSTONE"}],"Length"),secondary:{icon:"chevron-down",label:"",isActive:!0,tooltip:"More Measure Tools"},items:[s("Length","tool-length","Length",[{commandName:"setToolActive",commandOptions:{toolName:"Length"},context:"CORNERSTONE"}],"Length Tool"),s("Bidirectional","tool-bidirectional","Bidirectional",[{commandName:"setToolActive",commandOptions:{toolName:"Bidirectional"},context:"CORNERSTONE"}],"Bidirectional Tool"),s("EllipticalROI","tool-elipse","Ellipse",[{commandName:"setToolActive",commandOptions:{toolName:"EllipticalROI"},context:"CORNERSTONE"}],"Ellipse Tool"),s("CircleROI","tool-circle","Circle",[{commandName:"setToolActive",commandOptions:{toolName:"CircleROI"},context:"CORNERSTONE"}],"Circle Tool")]}},{id:"Zoom",type:"ohif.radioGroup",props:{type:"tool",icon:"tool-zoom",label:"Zoom",commands:[{commandName:"setToolActive",commandOptions:{toolName:"Zoom"},context:"CORNERSTONE"}]}},{id:"WindowLevel",type:"ohif.splitButton",props:{groupId:"WindowLevel",primary:s("WindowLevel","tool-window-level","Window Level",[{commandName:"setToolActive",commandOptions:{toolName:"WindowLevel"},context:"CORNERSTONE"}],"Window Level"),secondary:{icon:"chevron-down",label:"W/L Manual",isActive:!0,tooltip:"W/L Presets"},isAction:!0,renderer:o.WindowLevelMenuItem,items:[r(1,"Soft tissue","400 / 40"),r(2,"Lung","1500 / -600"),r(3,"Liver","150 / 90"),r(4,"Bone","2500 / 480"),r(5,"Brain","80 / 40")]}},{id:"Pan",type:"ohif.radioGroup",props:{type:"tool",icon:"tool-move",label:"Pan",commands:[{commandName:"setToolActive",commandOptions:{toolName:"Pan"},context:"CORNERSTONE"}]}},{id:"Capture",type:"ohif.action",props:{icon:"tool-capture",label:"Capture",type:"action",commands:[{commandName:"showDownloadViewportModal",commandOptions:{},context:"CORNERSTONE"}]}},{id:"Layout",type:"ohif.layoutSelector"},{id:"MoreTools",type:"ohif.splitButton",props:{isRadio:!0,groupId:"MoreTools",primary:l("Reset","tool-reset","Reset View",[{commandName:"resetViewport",commandOptions:{},context:"CORNERSTONE"}],"Reset"),secondary:{icon:"chevron-down",label:"",isActive:!0,tooltip:"More Tools"},items:[l("Reset","tool-reset","Reset View",[{commandName:"resetViewport",commandOptions:{},context:"CORNERSTONE"}],"Reset"),l("rotate-right","tool-rotate-right","Rotate Right",[{commandName:"rotateViewportCW",commandOptions:{},context:"CORNERSTONE"}],"Rotate +90"),l("flip-horizontal","tool-flip-horizontal","Flip Horizontally",[{commandName:"flipViewportHorizontal",commandOptions:{},context:"CORNERSTONE"}],"Flip Horizontal"),s("StackScroll","tool-stack-scroll","Stack Scroll",[{commandName:"setToolActive",commandOptions:{toolName:"StackScroll"},context:"CORNERSTONE"}],"Stack Scroll"),l("invert","tool-invert","Invert",[{commandName:"invertViewport",commandOptions:{},context:"CORNERSTONE"}],"Invert Colors"),s("CalibrationLine","tool-calibration","Calibration",[{commandName:"setToolActive",commandOptions:{toolName:"CalibrationLine"},context:"CORNERSTONE"}],"Calibration Line")]}}],d=JSON.parse('{"u2":"@ohif/mode-basic-dev-mode"}').u2,m="@ohif/extension-default.layoutTemplateModule.viewerLayout",p="@ohif/extension-default.sopClassHandlerModule.stack",u="@ohif/extension-default.panelModule.measure",N="@ohif/extension-default.panelModule.seriesList",v="@ohif/extension-cornerstone.viewportModule.cornerstone",f="@ohif/extension-cornerstone-dicom-sr.sopClassHandlerModule.dicom-sr",O="@ohif/extension-dicom-video.sopClassHandlerModule.dicom-video",h="@ohif/extension-dicom-video.viewportModule.dicom-video",y="@ohif/extension-dicom-pdf.sopClassHandlerModule.dicom-pdf",R="@ohif/extension-dicom-pdf.viewportModule.dicom-pdf",T={"@ohif/extension-default":"^3.0.0","@ohif/extension-cornerstone":"^3.0.0","@ohif/extension-cornerstone-dicom-sr":"^3.0.0","@ohif/extension-dicom-pdf":"^3.0.1","@ohif/extension-dicom-video":"^3.0.1"};const S={id:d,modeFactory:function(o){let{modeConfiguration:t}=o;return{id:d,routeName:"dev",displayName:"Basic Dev Viewer",onModeEnter:o=>{let{servicesManager:e,extensionManager:t}=o;const{toolbarService:i,toolGroupService:n}=e.services,a=t.getModuleEntry("@ohif/extension-cornerstone.utilityModule.tools"),{toolNames:l,Enums:s}=a.exports,r={active:[{toolName:l.WindowLevel,bindings:[{mouseButton:s.MouseBindings.Primary}]},{toolName:l.Pan,bindings:[{mouseButton:s.MouseBindings.Auxiliary}]},{toolName:l.Zoom,bindings:[{mouseButton:s.MouseBindings.Secondary}]},{toolName:l.StackScrollMouseWheel,bindings:[]}],passive:[{toolName:l.Length},{toolName:l.Bidirectional},{toolName:l.Probe},{toolName:l.EllipticalROI},{toolName:l.CircleROI},{toolName:l.RectangleROI},{toolName:l.StackScroll},{toolName:l.CalibrationLine}],enabled:[{toolName:l.ImageOverlayViewer}]};let d;n.createToolGroupAndAddTools("default",r);({unsubscribe:d}=n.subscribe(n.EVENTS.VIEWPORT_ADDED,(()=>{i.recordInteraction({groupId:"WindowLevel",interactionType:"tool",commands:[{commandName:"setToolActive",commandOptions:{toolName:"WindowLevel"},context:"CORNERSTONE"}]}),d()}))),i.init(t),i.addButtons(c),i.createButtonSection("primary",["MeasurementTools","Zoom","WindowLevel","Pan","Layout","MoreTools"])},onModeExit:o=>{let{servicesManager:e}=o;const{toolGroupService:t,measurementService:i,toolbarService:n}=e.services;t.destroy()},validationTags:{study:[],series:[]},isValidMode:o=>{let{modalities:e}=o;return!e.split("\\").includes("SM")},routes:[{path:"viewer-cs3d",layoutTemplate:o=>{let{location:e,servicesManager:t}=o;return{id:m,props:{leftPanels:[N],rightPanels:[u],viewports:[{namespace:v,displaySetsToDisplay:[p]},{namespace:h,displaySetsToDisplay:[O]},{namespace:R,displaySetsToDisplay:[y]}]}}}}],extensions:T,hangingProtocol:"default",sopClassHandlers:[O,p,y,f],hotkeys:[...e.hotkeys.defaults.hotkeyBindings]}},extensionDependencies:T}})(),a})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ohif/mode-basic-dev-mode",
|
|
3
|
-
"version": "3.7.0-beta.
|
|
3
|
+
"version": "3.7.0-beta.91",
|
|
4
4
|
"description": "Basic OHIF Viewer Using Cornerstone",
|
|
5
5
|
"author": "OHIF",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"test:unit:ci": "jest --ci --runInBand --collectCoverage --passWithNoTests"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@ohif/core": "3.7.0-beta.
|
|
33
|
-
"@ohif/extension-cornerstone": "3.7.0-beta.
|
|
34
|
-
"@ohif/extension-cornerstone-dicom-sr": "3.7.0-beta.
|
|
35
|
-
"@ohif/extension-default": "3.7.0-beta.
|
|
36
|
-
"@ohif/extension-dicom-pdf": "3.7.0-beta.
|
|
37
|
-
"@ohif/extension-dicom-video": "3.7.0-beta.
|
|
32
|
+
"@ohif/core": "3.7.0-beta.91",
|
|
33
|
+
"@ohif/extension-cornerstone": "3.7.0-beta.91",
|
|
34
|
+
"@ohif/extension-cornerstone-dicom-sr": "3.7.0-beta.91",
|
|
35
|
+
"@ohif/extension-default": "3.7.0-beta.91",
|
|
36
|
+
"@ohif/extension-dicom-pdf": "3.7.0-beta.91",
|
|
37
|
+
"@ohif/extension-dicom-video": "3.7.0-beta.91"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime": "^7.20.13"
|
|
@@ -42,6 +42,5 @@
|
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"webpack": "^5.50.0",
|
|
44
44
|
"webpack-merge": "^5.7.3"
|
|
45
|
-
}
|
|
46
|
-
"gitHead": "a34a0b1a3ad4287e0330da5fc3b49739a6d58a92"
|
|
45
|
+
}
|
|
47
46
|
}
|