some cleanup and start movinig to multiple instances

This commit is contained in:
Ross
2025-06-02 10:39:07 +01:00
parent 3f6c68523e
commit 43c3f75889
3 changed files with 15 additions and 17 deletions
-10
View File
@@ -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";