Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.editing$.subscribe((editUpdate: HippodromeEditUpdate) => {
if (editUpdate.editAction === EditActions.DRAG_POINT || editUpdate.editAction === EditActions.ADD_POINT) {
console.log('width', this.editing$.getCurrentWidth());
console.log('positions', this.editing$.getCurrentPoints());
// or
console.log('width', editUpdate.width);
console.log('positions', editUpdate.points); // cartesian3
}
});
}
this.editing$.subscribe((editUpdate: PolylineEditUpdate) => {
if (editUpdate.editAction === EditActions.ADD_POINT) {
console.log(editUpdate.points); // point = position with id
console.log(editUpdate.positions); // or just position
console.log(editUpdate.updatedPosition); // added position
}
});
}