chore(demo): update some demo

This commit is contained in:
yilin.qyl 2019-04-01 12:04:55 +08:00
parent 321c7b76dc
commit 49ea7268af

View File

@ -354,7 +354,11 @@
width: 1000,
height: 600,
modes: {
default: ['drag-canvas']
default: [{
type: 'brush-select',
onSelect(nodes) { console.log('selected:', nodes); },
onDeselect(nodes) { console.log('deselect', nodes); }
}]
},
defaultNode: {
size: [10, 10],
@ -368,6 +372,9 @@
default: {
lineWidth: 2,
fill: '#fff'
},
selected: {
fill: 'steelblue'
}
},
edgeStyle: {