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

ImagePaint 中有没有类似 background-position 的属性 #131

Closed
3400442579 opened this issue Apr 22, 2024 · 4 comments
Closed

ImagePaint 中有没有类似 background-position 的属性 #131

3400442579 opened this issue Apr 22, 2024 · 4 comments

Comments

@3400442579
Copy link

如题

@leaferjs
Copy link
Owner

leaferjs commented Apr 22, 2024

用图片的clip模式, 通过x, y定位

@3400442579
Copy link
Author

这个不太好现实居中平铺,平铺的第一张在中间,Leafer 宽高 是会变化的

@leaferjs
Copy link
Owner

那估计得后面添加支持才行

@leaferjs
Copy link
Owner

图片填充已增加了 around 参数,可以实现这个效果:
https://leaferjs.com/ui/guide/property/paint/image.html#around-idirection

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