mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-25 17:42:46 +02:00
proof fixes
This commit is contained in:
@@ -101,7 +101,9 @@ class Bezier extends Original {
|
||||
api.circle(p.x, p.y, 5);
|
||||
if (labels) {
|
||||
api.setFill(`black`);
|
||||
api.text(`(${p.x},${p.y})`, p.x + 10, p.y + 10);
|
||||
let x = p.x|0;
|
||||
let y = p.y|0;
|
||||
api.text(`(${x},${y})`, x + 10, y + 10);
|
||||
}
|
||||
});
|
||||
ctx.restoreStyle();
|
||||
|
Reference in New Issue
Block a user