react-pdf-highlighter
Version:
Set of React components for PDF annotation
16 lines (15 loc) • 438 B
TypeScript
import { Component } from "react";
declare type Props = {
onMoveAway: () => void;
paddingX: number;
paddingY: number;
children: JSX.Element;
};
declare class MouseMonitor extends Component<Props> {
container: HTMLDivElement | null;
unsubscribe: () => void;
onMouseMove: (event: MouseEvent) => void;
attachRef: (ref: HTMLDivElement | null) => void;
render(): JSX.Element;
}
export default MouseMonitor;