-
Notifications
You must be signed in to change notification settings - Fork 417
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
能否让FFText这个Api,也支持设置宽高 #126
Comments
现在在api里有这个方法吧 setWH,设置宽高: FFCreator/types/lib/FFNode.d.ts Line 138 in 9d04d28
|
谢谢你,不过我测试了一下,没有生效 |
目前对于 |
谢谢你,我这几天认真学习一下 |
Oh, it can be supported in the future. Welcome to submit pr |
预计哪个版本能支持呢?现在text就像html里的行内元素一样,比如span,无论setWH还是style都无法实现宽高设置。除非使用一些其他的方法,比如设置两个text,一个用padding和lineHeight来制作一个背景区域,上边再叠一个text显示内容。 |
如果padding 上下左右的值不一样怎么设置? |
你计算x,y的位置吗?我这样做了 |
Hello @drawcall , This is still an issue. using the below does in any way does not affect the width and height. const text1 = new FFText({ text: 'FFText组件demo', x: json.width / 2, y: 130, width: 980, height: 200, w: 980, h: 200 }); ![]() |
mark |
Hello @drawcall Sorry mark? |
能否让FFText这个Api,也支持设置宽高
因为,在开发在线制作工具时,每段文字块,会需要自己的背景颜色
The text was updated successfully, but these errors were encountered: