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

对于剪切区域,如何调整大小 #2

Closed
cfanbo opened this issue Jul 17, 2015 · 5 comments
Closed

对于剪切区域,如何调整大小 #2

cfanbo opened this issue Jul 17, 2015 · 5 comments

Comments

@cfanbo
Copy link

cfanbo commented Jul 17, 2015

默认情况下是正方型,100x100的(比例绽放),但需求是高度与宽度不一样,这个如何调整?

@furybean
Copy link
Contributor

目前没有开放选项,例子也得有点调整,争取这个周末做掉吧。

@cfanbo
Copy link
Author

cfanbo commented Jul 17, 2015

好的,那周一过来看, 辛苦了!

@furybean
Copy link
Contributor

更新到了0.3.0版本:
增加了aspectRatio的选项,设置为非数字,则为任意宽高比。

文档也已经补充到首页上了,例子可参考demo/standalone-noar.html。

@cfanbo
Copy link
Author

cfanbo commented Jul 20, 2015

难道不能限制高与宽的比较值么?如 2:1 再在是要么1:1,要么是任意,想在客户端对比例限制一下

@furybean
Copy link
Contributor

可以,设置为2,则宽高比为2。设置为字符串则为任意比例。

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