5.0.5版本 node设置为image 无法对图片设置radius了吗 #7522
Unanswered
hewanwan99
asked this question in
Q&A
Replies: 0 comments
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.
-
const graph = new Graph({ container: containerRef.current, width, height, data: graphData, layout: { type: 'd3-force', link: { distance: (d: any) => { if (d.source.id === 'center') { return 200; } return 40; }, } }, node: { type: 'image', style: { size(data: any) { return data.size; }, src: (data: any) => data.img || '/graph.svg', }, }, behaviors: ['drag-element-force', 'drag-canvas'], });### Version 5.0.5
最新版本如何设置image样式
Beta Was this translation helpful? Give feedback.
All reactions