OHIF with Cornerstone3D 2.0 (#4347)

This commit is contained in:
Alireza authored and GitHub committed 2024-11-06 07:15:27 -05:00
1 parent 8981a61b8c
commit 7ce7127d7c
803 files changed
+32760 -15893

No files matched your search

@@ -0,0 +1,19 @@
import { create } from 'zustand';
const PRESENTATION_TYPE_ID = 'toggleOneUpViewportGridId';
type ToggleOneUpViewportGridState = {
toggleOneUpViewportGridStore: any | null;
setToggleOneUpViewportGridStore: (state: any) => void;
clearToggleOneUpViewportGridStore: () => void;
type: string;
};
// Stores the entire ViewportGridService getState when toggling to one up
// (e.g. via a double click) so that it can be restored when toggling back.
export const useToggleOneUpViewportGridStore = create<ToggleOneUpViewportGridState>(set => ({
toggleOneUpViewportGridStore: null,
type: PRESENTATION_TYPE_ID,
setToggleOneUpViewportGridStore: state => set({ toggleOneUpViewportGridStore: state }),
clearToggleOneUpViewportGridStore: () => set({ toggleOneUpViewportGridStore: null }),
}));