|
@@ -7,7 +7,6 @@ interface ConfigActions {
|
|
|
setJson: (json: string) => void;
|
|
|
setConfig: (key: keyof Config, value: unknown) => void;
|
|
|
getJson: () => string;
|
|
|
- setExtension: () => (extension: number) => void;
|
|
|
zoomIn: () => void;
|
|
|
zoomOut: () => void;
|
|
|
centerView: () => void;
|
|
@@ -19,7 +18,6 @@ const initialStates = {
|
|
|
layout: "RIGHT" as CanvasDirection,
|
|
|
expand: true,
|
|
|
hideEditor: false,
|
|
|
- extension: 0,
|
|
|
performanceMode: true,
|
|
|
disableLoading: false,
|
|
|
zoomPanPinch: undefined as ReactZoomPanPinchRef | undefined,
|
|
@@ -31,7 +29,6 @@ const useConfig = create<Config & ConfigActions>()((set, get) => ({
|
|
|
...initialStates,
|
|
|
getJson: () => get().json,
|
|
|
setJson: (json: string) => set({ json }),
|
|
|
- setExtension: (extension: number) => set({ extension }),
|
|
|
zoomIn: () => {
|
|
|
const zoomPanPinch = get().zoomPanPinch;
|
|
|
if (zoomPanPinch) {
|