自定义圆形combo 设置半径大小不生效 #3387
Closed
huangyq199205
started this conversation in
Show and tell
Replies: 1 comment
-
暂不支持。只支持设置 padding |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
G6.registerCombo(
'cCombo',{
draw(cfg, group) {
const { label, asset, system} = cfg;
const circle = group.addShape('circle', {
attrs:{
r: 120,
fill: '#999',
},
name:'areaCombo-shape'
})
return circle
}
}
, 'circle');
期望: combo如果设定大小了,可以指定combo 大小 而不是根据子节点自行计算了(若能计算出子节点范围超过设定大小,再计算优化是最好)
Beta Was this translation helpful? Give feedback.
All reactions