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

如何实现mode=aspectFill? #567

Closed
GeeMing opened this issue Dec 3, 2023 · 0 comments
Closed

如何实现mode=aspectFill? #567

GeeMing opened this issue Dec 3, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@GeeMing
Copy link

GeeMing commented Dec 3, 2023

问题描述

根据文档描述,图片渲染是根据是否指定width 和height 来确定mode是widthFix / heightFix 还是 scaleToFill, 似乎没有办法实现 aspectFill.
是否可以考虑判断源style 包含 object-fit: cover 来使用 aspectFill 模式?

@jin-yufeng jin-yufeng added the enhancement New feature or request label Jan 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants