Changes
Co-authored-by: Reifonas <211114984+Reifonas@users.noreply.github.com>
This commit is contained in:
@@ -556,6 +556,22 @@ export const useModelStore = create<ModelStore>((set, get) => ({
|
|||||||
gridCalibMode: false,
|
gridCalibMode: false,
|
||||||
setGridCalibMode: (gridCalibMode) => set({ gridCalibMode }),
|
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',
|
wireframeColor: '#00f3ff',
|
||||||
setWireframeColor: (wireframeColor) => set({ wireframeColor }),
|
setWireframeColor: (wireframeColor) => set({ wireframeColor }),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user