|
|
|
@ -188,7 +188,7 @@ export default { |
|
|
|
defaultNodeColor: 'rgba(255, 255, 255, 0.6)', |
|
|
|
defaultNodeBorderWidth: 1, |
|
|
|
defaultNodeBorderColor: 'rgba(255, 255, 255, 0.3)', |
|
|
|
defaultNodeFontColor: '#1b7702', |
|
|
|
defaultNodeFontColor: '#fff', |
|
|
|
defaultNodeShape: 0, |
|
|
|
defaultNodeWidth: 100, |
|
|
|
defaultNodeHeight: 100, |
|
|
|
@ -268,6 +268,7 @@ export default { |
|
|
|
defaultNodeShape: 0, |
|
|
|
defaultLineFontSize: 80, |
|
|
|
defaultNodeBorderWidth: 0, |
|
|
|
defaultNodeFontColor: '#ffffff', |
|
|
|
defaultLineColor: 'rgb(255,255,255)', |
|
|
|
defaultNodeColor: 'rgba(0, 206, 209, 1)', |
|
|
|
lineLengths: 100, |
|
|
|
@ -424,11 +425,24 @@ export default { |
|
|
|
if (res.nodes[i].type=="keyword" && res.nodes[i].text!=this.getpoinName){ |
|
|
|
continue |
|
|
|
} |
|
|
|
let t_data = { |
|
|
|
let t_data ={} |
|
|
|
if (res.nodes[i].type=="keyword"){ |
|
|
|
t_data = { |
|
|
|
id:res.nodes[i].id, |
|
|
|
text:res.nodes[i].text, |
|
|
|
color:this.getColor(res.nodes[i].type), |
|
|
|
fontColor:'#fff' |
|
|
|
} |
|
|
|
}else{ |
|
|
|
t_data = { |
|
|
|
id:res.nodes[i].id, |
|
|
|
text:res.nodes[i].text, |
|
|
|
color:this.getColor(res.nodes[i].type), |
|
|
|
fontColor:'#000' |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
nodes.push(t_data) |
|
|
|
} |
|
|
|
// console.log(res.links) |
|
|
|
|