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

Point 有问题 #13

Open
mightyroy opened this issue Feb 19, 2022 · 2 comments
Open

Point 有问题 #13

mightyroy opened this issue Feb 19, 2022 · 2 comments

Comments

@mightyroy
Copy link

image

我弄了29多个point, 你看number已经30了,但是没有什么point出现!

@mightyroy
Copy link
Author

mightyroy commented Feb 19, 2022

我在用苹果Safari。

问题解决了,global.js 里的 drawPoint 需要更新:

function drawPoint(context, x, y, color = '#f00', width = 1) {
    context.beginPath();
    context.lineCap = 'round';
    context.moveTo(x-0.1, y-0.1);
    context.lineTo(x+0.1, y+0.1);
    context.closePath();
    context.lineWidth = width;
    context.strokeStyle = color;
    context.stroke();

}

@Elin24
Copy link
Owner

Elin24 commented Apr 16, 2022

为什么要加减0.1呢?

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

No branches or pull requests

2 participants