some cleanup and start movinig to multiple instances
This commit is contained in:
@@ -65,8 +65,6 @@ const { MouseBindings, KeyboardBindings } = csToolsEnums;
|
||||
|
||||
const { IMAGE_RENDERED } = Enums.Events;
|
||||
|
||||
const STACK_TOOL_GROUP_ID = 'STACK_TOOL_GROUP_ID';
|
||||
const VOLUME_TOOL_GROUP_ID = 'VOLUME_TOOL_GROUP_ID';
|
||||
const MAIN_TOOL_GROUP_ID = 'MAIN_TOOL_GROUP_ID';
|
||||
|
||||
// Common CT presets (add more as needed)
|
||||
@@ -121,7 +119,6 @@ const ALL_MOUSE_BINDINGS = [
|
||||
// App definintion
|
||||
function App() {
|
||||
const elementRef = useRef<HTMLDivElement>(null)
|
||||
const viewportRef = useRef<any>(null) // Store the viewport instance
|
||||
const running = useRef(false)
|
||||
|
||||
// State to control preset menu open/close
|
||||
@@ -131,13 +128,6 @@ function App() {
|
||||
|
||||
const [fullscreenHoverIdx, setFullscreenHoverIdx] = useState<number | null>(null);
|
||||
const [openDropdownIdx, setOpenDropdownIdx] = useState<number | null>(null);
|
||||
// State for overlay info
|
||||
const [imageInfo, setImageInfo] = useState({
|
||||
index: 0,
|
||||
total: 0,
|
||||
windowCenter: "",
|
||||
windowWidth: "",
|
||||
})
|
||||
|
||||
const MAX_VIEWPORTS = 9;
|
||||
const renderingEngineId = "mainRenderingEngine";
|
||||
|
||||
Reference in New Issue
Block a user