π¬ A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots π
TypeScript browser-extensionchrome-extensiondocumentationfirefox-extensionguide-generatorlocal-firstmanifest-v3privacy-firstproductivityreactscreenshotstep-by-step-guidetutorialtypescriptworkflowwxt
import type { ScreenshotBounds } from '@mimik/core/guides/types';
import type { Handle } from '@mimik/core/screenshot/geometry';
import { handleCorners } from './handle-corners';
export function hitHandle(b: ScreenshotBounds, x: number, y: number, radius: number): Handle | null {
for (const [handle, hx, hy] of handleCorners(b)) {
if (Math.abs(x - hx) <= radius && Math.abs(y - hy) <= radius) return handle;
}
return null;
}