From 20912a73c632d7c527753bbbcb536377646cf84d Mon Sep 17 00:00:00 2001 From: amhsirak Date: Mon, 6 Jan 2025 10:56:31 +0530 Subject: [PATCH] fix: missing coordinates interface export --- src/components/atoms/canvas.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/components/atoms/canvas.tsx b/src/components/atoms/canvas.tsx index d198adb0..96933030 100644 --- a/src/components/atoms/canvas.tsx +++ b/src/components/atoms/canvas.tsx @@ -3,7 +3,6 @@ import { useSocketStore } from '../../context/socket'; import { useGlobalInfoStore } from "../../context/globalInfo"; import { useActionContext } from '../../context/browserActions'; import { FrontendPerformanceMonitor } from '../../../perf/performance'; - const DatePicker = React.lazy(() => import('./DatePicker')); const Dropdown = React.lazy(() => import('./Dropdown')); const TimePicker = React.lazy(() => import('./TimePicker')); @@ -146,6 +145,14 @@ interface CanvasProps { onCreateRef: (ref: React.RefObject) => void; } +/** + * Interface for mouse's x,y coordinates + */ +export interface Coordinates { + x: number; + y: number; +}; + const Canvas = React.memo(({ width, height, onCreateRef }: CanvasProps) => { const canvasRef = useRef(null); const { socket } = useSocketStore();