From 2754260962aee696190dd02cff974714276401c8 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 24 May 2026 22:52:52 +0000 Subject: [PATCH] Changes Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com> --- src/stores/useModelStore.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 }),