fix: Cornerstone3D 3.0 (#4816)
Co-authored-by: sedghi <ar.sedghi@gmail.com>
This commit is contained in:
1 parent
62abb3ac47
commit
24567c4e92
25 files changed
+326
-342
No files matched your search
@@ -37,6 +37,7 @@ import {
|
||||
OrientationMarkerTool,
|
||||
WindowLevelRegionTool,
|
||||
} from '@cornerstonejs/tools';
|
||||
import * as polySeg from '@cornerstonejs/polymorphic-segmentation';
|
||||
|
||||
import CalibrationLineTool from './tools/CalibrationLineTool';
|
||||
import ImageOverlayViewerTool from './tools/ImageOverlayViewerTool';
|
||||
@@ -47,7 +48,11 @@ export default function initCornerstoneTools(configuration = {}) {
|
||||
AdvancedMagnifyTool.isAnnotation = false;
|
||||
PlanarFreehandContourSegmentationTool.isAnnotation = false;
|
||||
|
||||
init(configuration);
|
||||
init({
|
||||
addons: {
|
||||
polySeg,
|
||||
},
|
||||
});
|
||||
addTool(PanTool);
|
||||
addTool(WindowLevelTool);
|
||||
addTool(StackScrollTool);
|
||||
|
||||
@@ -2,7 +2,8 @@ import SUPPORTED_TOOLS from './constants/supportedTools';
|
||||
import { getIsLocked } from './utils/getIsLocked';
|
||||
import getSOPInstanceAttributes from './utils/getSOPInstanceAttributes';
|
||||
import { getIsVisible } from './utils/getIsVisible';
|
||||
const Length = {
|
||||
|
||||
const ArrowAnnotate = {
|
||||
toAnnotation: measurement => {},
|
||||
|
||||
/**
|
||||
@@ -172,4 +173,4 @@ function _getReport(mappedAnnotations, points, FrameOfReferenceUID) {
|
||||
values,
|
||||
};
|
||||
}
|
||||
export default Length;
|
||||
export default ArrowAnnotate;
|
||||
Reference in new issue
Block a user