NorthwoodsSoftware / GoJS

JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
http://gojs.net
Other
7.7k stars 2.86k forks source link

使用RadialLayout示例时gojs会报错 #180

Closed cindydove closed 2 years ago

cindydove commented 2 years ago

RadialLayout.js:136 Uncaught Error: RadialLayout.root must be a Node in the LayoutNetwork that the RadialLayout is operating on at RadialLayout.doLayout (RadialLayout.js:136:32) at jj (go.js:719:379) at rf (go.js:636:493) at t.jd (go.js:634:453) at go.js:634:385

https://gojs.net/latest/extensions/RadialLayout.js是这个文件在报错
WalterNorthwoods commented 2 years ago

You have to set the "root" node for the RadialLayout. https://gojs.net/latest/api/symbols/RadialLayout.html#root Examples are at: https://gojs.net/latest/samples/radial.html and https://gojs.net/latest/samples/radialPartition.html