Stop drawing

This commit is contained in:
ziajka 2017-12-08 15:02:41 +01:00
parent cb403ae13a
commit 70b8556873
2 changed files with 2 additions and 1 deletions

View File

@ -67,7 +67,7 @@ export class NodesWidget implements Widget {
if (n.label.x === null) {
// center
const bbox = this.getBBox();
return - n.height + 20;
return - n.height / 2. - bbox.height ;
}
return n.label.y - n.height / 2.;
});

View File

@ -267,6 +267,7 @@ export class ProjectMapComponent implements OnInit {
public turnOffDrawLineMode() {
this.drawLineMode = false;
this.mapChild.graphLayout.getDrawingLineTool().stop();
}
public onChooseInterface(event) {