Added undopoint in editing

main
Boris Sekachev 6 years ago
parent ef11ca4fc6
commit 472d3174b6

@ -99,6 +99,12 @@ export class EditHandlerImpl implements EditHandler {
if (e.which === 1) {
mouseX = e.clientX;
mouseY = e.clientY;
} else if (e.which === 3 && this.editLine) {
if (this.editData.state.shapeType === 'points'
|| this.editLine.attr('points').split(' ').length > 2
) {
(this.editLine as any).draw('undo');
}
}
});

Loading…
Cancel
Save