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

导出按照形状图片裁切 #365

Open
Keyans opened this issue Feb 25, 2025 · 1 comment
Open

导出按照形状图片裁切 #365

Keyans opened this issue Feb 25, 2025 · 1 comment

Comments

@Keyans
Copy link

Keyans commented Feb 25, 2025

请教一下导出的时候有没有办法按照图片的形状去做裁切,图片形状为不规则的
这个是画布内容

Image

这个是导出的代码
Image

@leaferjs
Copy link
Owner

了解一下遮罩功能,就是专门解决这种问题的:

https://www.leaferjs.com/ui/reference/property/mask.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants