You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is part of the code: the function is used to determine the effective click range,but the return value has a large deviation by using isPointInStroke.
cxt = canvas.getContext('2d');
async function isInCricle(x, y) {
cxt.beginPath();
cxt.lineWidth = arcRadio + 50;
let path = new Path2D(canvas);
path.arc(center, center, radius, Math.PI * 0.32, Math.PI * 0.68, true);
let result = await cxt.isPointInStroke(path, x, y);
Alert.alert(result + x.toFixed(1) + y.toFixed(1))
return result;
}
The text was updated successfully, but these errors were encountered:
This is part of the code: the function is used to determine the effective click range,but the return value has a large deviation by using isPointInStroke.
The text was updated successfully, but these errors were encountered: