开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.
refactor: move pinch zoom to plugins folder (#74)
pubuzhixing896d0e4018cac
diff --git a/packages/react-board/src/hooks/with-pinch-zoom-plugin.ts b/packages/react-board/src/plugins/with-pinch-zoom-plugin.tssimilarity index 100%rename from packages/react-board/src/hooks/with-pinch-zoom-plugin.tsrename to packages/react-board/src/plugins/with-pinch-zoom-plugin.tsdiff --git a/packages/react-board/src/wrapper.tsx b/packages/react-board/src/wrapper.tsxindex a7fd12d..f7c59bc 100644--- a/packages/react-board/src/wrapper.tsx+++ b/packages/react-board/src/wrapper.tsx@@ -28,7 +28,7 @@ import { withReact } from './plugins/with-react';import { withImage, withText } from '@plait/common';import { BoardContext, BoardContextValue } from './hooks/use-board';import React from 'react';-import { withPinchZoom } from './hooks/with-pinch-zoom-plugin';+import { withPinchZoom } from './plugins/with-pinch-zoom-plugin';export type WrapperProps = {value: PlaitElement[];