resolved conflict and merged to main
This commit is contained in:
parent
f175822c3c
commit
09963d3337
|
@ -409,3 +409,22 @@ export const useWidgetSubOption = create<any>((set: any) => ({
|
||||||
widgetSubOption: "2D",
|
widgetSubOption: "2D",
|
||||||
setWidgetSubOption: (x: any) => set({ widgetSubOption: x }),
|
setWidgetSubOption: (x: any) => set({ widgetSubOption: x }),
|
||||||
}));
|
}));
|
||||||
|
export const useLimitDistance = create<any>((set: any) => ({
|
||||||
|
limitDistance: true,
|
||||||
|
setLimitDistance: (x: any) => set({ limitDistance: x }),
|
||||||
|
}));
|
||||||
|
|
||||||
|
export const useTileDistance = create<any>((set: any) => ({
|
||||||
|
gridValue: { size: 300, divisions: 75 },
|
||||||
|
planeValue: { height: 300, width: 300 },
|
||||||
|
|
||||||
|
setGridValue: (value: any) =>
|
||||||
|
set((state: any) => ({
|
||||||
|
gridValue: { ...state.gridValue, ...value },
|
||||||
|
})),
|
||||||
|
|
||||||
|
setPlaneValue: (value: any) =>
|
||||||
|
set((state: any) => ({
|
||||||
|
planeValue: { ...state.planeValue, ...value },
|
||||||
|
})),
|
||||||
|
}));
|
||||||
|
|
Loading…
Reference in New Issue