Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue-Pen tool is not smooth #14

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anushkaDev9
Copy link
Contributor

Changed the checkPointOnDrawing.ts file .

Changed the checkPointOnDrawing.ts file .
Copy link

vercel bot commented Jun 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
drawsome ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 19, 2024 3:53am

flag = isNearPoint(point.x, point.y, x1, y1, threshold);
return !flag;
});

return flag;
}
function smoothPath(path: any, tolerance = 1) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please use the type of path variable instead of any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants