How to cut a hole in a shape or closed path using antvis/g.
Open
enhancement
- Dominant language
- TypeScript
- Stars
- 1.2k
- Forks
- 230
- PR merge metrics
- No merged PRs in 30d
Description
- [x] I have searched the [issues](https://github.com/antvis/g/issues) of this repository and believe that this is not a duplicate.
### What problem does this feature solve?
It's like to dig a hole in a desk for a stove, or draw holes for a vehicle wheel. Pixi does support adding holes, like Graphics().beginHole().endHole(). I can't find a way to add hole to a Path. It seems the clipPath can't help me because it is opposite to holes.
### What does the proposed API look like?
Maybe add a 'holes' property in style, or supplement related tutorial cases to the documents if it already can.
Contributor guide
Assessment
This issue has not been assessed yet.