@erase2d/fabric 1.1.7 → 1.1.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,10 +47,12 @@ eraser.on('start', (e) => {
|
|
|
47
47
|
eraser.on('end', async (e) => {
|
|
48
48
|
// prevent from committing erasing to the tree
|
|
49
49
|
e.preventDefault();
|
|
50
|
-
|
|
50
|
+
|
|
51
|
+
const { path, targets } = e.detail;
|
|
52
|
+
const isErased = targets.includes(circle);
|
|
51
53
|
|
|
52
54
|
// commit erasing manually
|
|
53
|
-
const pathPerObjectMap = await eraser.commit(
|
|
55
|
+
const pathPerObjectMap = await eraser.commit({ path, targets });
|
|
54
56
|
|
|
55
57
|
const committedEraser = circle.clipPath instanceof ClippingGroup;
|
|
56
58
|
});
|
|
@@ -59,6 +61,38 @@ canvas.freeDrawingBrush = eraser;
|
|
|
59
61
|
canvas.isDrawingMode = true;
|
|
60
62
|
```
|
|
61
63
|
|
|
64
|
+
## Sponsors
|
|
65
|
+
|
|
66
|
+
<table>
|
|
67
|
+
<tr>
|
|
68
|
+
<td>
|
|
69
|
+
<a
|
|
70
|
+
href="https://rembg.com/?utm_source=erase2d&utm_medium=github_readme&utm_campaign=sponsorship"
|
|
71
|
+
>
|
|
72
|
+
<img
|
|
73
|
+
width="120px"
|
|
74
|
+
height="120px"
|
|
75
|
+
alt="RemBG.com Logo"
|
|
76
|
+
src="https://github.com/user-attachments/assets/25433a27-5758-4c02-8375-649acde37556"
|
|
77
|
+
/>
|
|
78
|
+
</a>
|
|
79
|
+
</td>
|
|
80
|
+
<td>
|
|
81
|
+
<b>RemBG Remove Background API</b>
|
|
82
|
+
<br />
|
|
83
|
+
<a
|
|
84
|
+
href="https://rembg.com/?utm_source=erase2d&utm_medium=github_readme&utm_campaign=sponsorship"
|
|
85
|
+
>https://rembg.com</a
|
|
86
|
+
>
|
|
87
|
+
<br />
|
|
88
|
+
<p width="200px">
|
|
89
|
+
Accurate and affordable background remover API
|
|
90
|
+
<br />
|
|
91
|
+
</p>
|
|
92
|
+
</td>
|
|
93
|
+
</tr>
|
|
94
|
+
</table>
|
|
95
|
+
|
|
62
96
|
## Migrating from fabric@5
|
|
63
97
|
|
|
64
98
|
The logic has been reworked from the bottom.
|