From c838ef96d49fd7d4e285d2f27207184aca55b28c Mon Sep 17 00:00:00 2001 From: Shachar <34343793+ShaMan123@users.noreply.github.com> Date: Thu, 17 Oct 2024 20:37:22 +0300 Subject: [PATCH] Update README.md --- packages/fabric/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; });