|
@@ -44,6 +44,7 @@ export class LineSegmentDrawer extends Drawer {
|
|
|
|
|
|
draw() {
|
|
|
const points = Selector.getSelectedPoints();
|
|
|
+
|
|
|
if (points == undefined || points.length < 1) {
|
|
|
this.drawByState();
|
|
|
}
|
|
@@ -120,7 +121,6 @@ export class LineSegmentDrawer extends Drawer {
|
|
|
}
|
|
|
|
|
|
insertPoint(aggregator) {
|
|
|
- console.info("aggregator", aggregator);
|
|
|
const pointA = aggregator.genericObject.pointA;
|
|
|
const pointB = aggregator.genericObject.pointB;
|
|
|
const pointCAggregator = this.pointDrawer.drawPoint();
|
|
@@ -155,10 +155,7 @@ export class LineSegmentDrawer extends Drawer {
|
|
|
return line;
|
|
|
}
|
|
|
static configureLineEvents(line) {
|
|
|
- console.info("configureLine");
|
|
|
line.on("click tap", function(e) {
|
|
|
- console.info("linha clicada", e);
|
|
|
- console.info("linha clicada", this);
|
|
|
this.pointDrawer.drawPoint();
|
|
|
});
|
|
|
return line;
|