@@ -133,18 +133,24 @@ function initGraph(width: number, height: number) {
},
nodeStateStyles: {
selected: {
- stroke: '#FBEECD',
- fill: '#F79767',
+ stroke: '#00FA9A',
+ fill: '#00FA9A',
defaultNode: {
size: 56,
type: 'circle',
style: {
- stroke: '#F36924',
- fill: '#F79767'
+ stroke: '#90EE90',
+ fill: '#90EE90',
// 选中颜色为 #FBEECD
+ labelCfg: {
+ position: 'center',
+ style: {
+ fontSize: 11,
+ },
defaultEdge: {
label: '下级学科',