@lunit/insight-viewer
Version:
Based on the cornerstone library, it provides several components for handling Dicom images
17 lines (16 loc) • 701 B
TypeScript
import type { MouseEvent } from 'react';
import type { Point } from '../../types';
export interface UseAnnotationEventParams {
mouseDownCallback: (point: Point) => void;
mouseMoveCallback: (point: Point) => void;
mouseUpCallback: () => void;
mouseLeaveCallback: () => void;
keyDownCallback: (event: KeyboardEvent) => void;
}
declare const useMouseEvent: ({ mouseDownCallback, mouseMoveCallback, mouseLeaveCallback, mouseUpCallback, keyDownCallback, }: UseAnnotationEventParams) => {
onMouseDown: (event: MouseEvent) => void;
onMouseMove: (event: MouseEvent) => void;
onMouseLeave: () => void;
onMouseUp: () => void;
};
export default useMouseEvent;