diff --git a/packages/fabric/README.md b/packages/fabric/README.md index 5a7844d..0ab4da3 100644 --- a/packages/fabric/README.md +++ b/packages/fabric/README.md @@ -44,13 +44,13 @@ eraser.on('start', (e) => { // inform something }); -eraser.on('end', (e) => { +eraser.on('end', async (e) => { // prevent from committing erasing to the tree e.preventDefault(); const isErased = e.targets.includes(circle); // commit erasing manually - eraser.commit(e.detail); + const pathPerObjectMap = await eraser.commit(e.detail); const committedEraser = circle.clipPath instanceof ClippingGroup; });