diff --git a/src/stores/useModelStore.ts b/src/stores/useModelStore.ts index 914b38a..6216d0c 100644 --- a/src/stores/useModelStore.ts +++ b/src/stores/useModelStore.ts @@ -556,6 +556,22 @@ export const useModelStore = create((set, get) => ({ gridCalibMode: false, setGridCalibMode: (gridCalibMode) => set({ gridCalibMode }), + sectionEnabled: { x: false, y: false, z: false }, + sectionInvert: { x: false, y: false, z: false }, + sectionLevel: { x: 0, y: 0, z: 0 }, + sectionPanelOpen: false, + sectionPanelOpacity: 0.9, + setSectionEnabled: (axis, on) => set((s) => ({ sectionEnabled: { ...s.sectionEnabled, [axis]: on } })), + setSectionInvert: (axis, on) => set((s) => ({ sectionInvert: { ...s.sectionInvert, [axis]: on } })), + setSectionLevel: (axis, v) => set((s) => ({ sectionLevel: { ...s.sectionLevel, [axis]: v } })), + setSectionPanelOpen: (sectionPanelOpen) => set({ sectionPanelOpen }), + setSectionPanelOpacity: (sectionPanelOpacity) => set({ sectionPanelOpacity }), + resetSection: () => set({ + sectionEnabled: { x: false, y: false, z: false }, + sectionInvert: { x: false, y: false, z: false }, + sectionLevel: { x: 0, y: 0, z: 0 }, + }), + wireframeColor: '#00f3ff', setWireframeColor: (wireframeColor) => set({ wireframeColor }),