@visx/drag
Version:
visx drag
10 lines • 325 B
TypeScript
import { UseDragOptions } from '../useDrag';
/** Restrict a point to an area, or samples along a path. */
export default function restrictPoint(point: {
x: number;
y: number;
}, samples: DOMPoint[], restrict?: UseDragOptions['restrict']): {
x: number;
y: number;
};
//# sourceMappingURL=restrictPoint.d.ts.map