|
@@ -975,14 +975,14 @@ export default class Draw {
|
|
this.context.lineTo(end.x, end.y);
|
|
this.context.lineTo(end.x, end.y);
|
|
this.context.stroke();
|
|
this.context.stroke();
|
|
|
|
|
|
- this.context.beginPath();
|
|
|
|
- this.context.arc(start.x, start.y, Constant.minAdsorbPix, 0, 2 * Math.PI);
|
|
|
|
- if (!hit) {
|
|
|
|
- this.context.fillStyle = "black";
|
|
|
|
- } else {
|
|
|
|
- this.context.fillStyle = "red";
|
|
|
|
- }
|
|
|
|
- this.context.fill();
|
|
|
|
|
|
+ // this.context.beginPath();
|
|
|
|
+ // this.context.arc(start.x, start.y, Constant.minAdsorbPix, 0, 2 * Math.PI);
|
|
|
|
+ // if (!hit) {
|
|
|
|
+ // this.context.fillStyle = "black";
|
|
|
|
+ // } else {
|
|
|
|
+ // this.context.fillStyle = "red";
|
|
|
|
+ // }
|
|
|
|
+ // this.context.fill();
|
|
|
|
|
|
this.context.restore();
|
|
this.context.restore();
|
|
}
|
|
}
|