Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to cut a hole in a shape or closed path using antvis/g. #1614

Open
1 task done
zhenghub opened this issue Dec 13, 2023 · 0 comments
Open
1 task done

How to cut a hole in a shape or closed path using antvis/g. #1614

zhenghub opened this issue Dec 13, 2023 · 0 comments
Assignees

Comments

@zhenghub
Copy link

zhenghub commented Dec 13, 2023

  • I have searched the 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.

@xiaoiver xiaoiver self-assigned this Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants