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

添加的素材只保留原比例缩放 #48

Closed
BOKE2014 opened this issue Jan 25, 2024 · 5 comments
Closed

添加的素材只保留原比例缩放 #48

BOKE2014 opened this issue Jan 25, 2024 · 5 comments
Labels

Comments

@BOKE2014
Copy link

大佬能不能将插入的素材,如:video,image和text只保留按原比例缩放。因为一不小心比例变了弄不回去只能删了再添加。

谢谢!

@hughfenghen
Copy link
Member

建议在业务层支持一个“重置”功能,用户点击时将素材重置为初始状态(宽高)

@hughfenghen
Copy link
Member

“重置” 功能将列入诉求收集,决定实现优先级

@pbdm
Copy link
Contributor

pbdm commented May 31, 2024

和重置不是一个事情,还是期望优先搞下

@hughfenghen
Copy link
Member

明天就搞

@hughfenghen
Copy link
Member

next 版本(0.9.0-beta.16) 已支持

sprite.rect.rect.fixedAspectRatio = true 将移除四个控制点,只能等比例缩放

image

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

No branches or pull requests

3 participants