瀏覽代碼

Add SVG support to download options

dogukanuhn 2 年之前
父節點
當前提交
2650776f0a
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      src/hooks/store/useConfig.tsx

+ 0 - 3
src/hooks/store/useConfig.tsx

@@ -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) {