|
@@ -29,8 +29,8 @@ export const point = (function() {
|
|
|
this.points[0] = pos.x;
|
|
|
this.points[1] = pos.y;
|
|
|
let p = this.points.slice();
|
|
|
- this._drawPoint(p[0], p[1], true);
|
|
|
- this._clearState();
|
|
|
+ this.drawPoint(p[0], p[1], true);
|
|
|
+ state = undefined;
|
|
|
App.clearSelectedTool();
|
|
|
App.setStatus("");
|
|
|
}
|
|
@@ -119,6 +119,7 @@ export const point = (function() {
|
|
|
icon: "point",
|
|
|
click: _click,
|
|
|
draw: _draw,
|
|
|
+ drawPoint: _drawPoint,
|
|
|
points: points
|
|
|
};
|
|
|
|