Is there a way to cancel a sketch during an update. I want to cancel update operation based on a condition.
const sketch = new Sketch({
layer: layer,
view: view
});
sketch.on('update', event => {
// if something
sketch.cancel();
})
Here's a CodePen of what i'm trying to achieve. Cancel Sketch Update
Thanks