mirror of
https://gitee.com/antv/g6.git
synced 2024-12-05 05:09:07 +08:00
chore(demo): update some demo
This commit is contained in:
parent
321c7b76dc
commit
49ea7268af
@ -354,7 +354,11 @@
|
|||||||
width: 1000,
|
width: 1000,
|
||||||
height: 600,
|
height: 600,
|
||||||
modes: {
|
modes: {
|
||||||
default: ['drag-canvas']
|
default: [{
|
||||||
|
type: 'brush-select',
|
||||||
|
onSelect(nodes) { console.log('selected:', nodes); },
|
||||||
|
onDeselect(nodes) { console.log('deselect', nodes); }
|
||||||
|
}]
|
||||||
},
|
},
|
||||||
defaultNode: {
|
defaultNode: {
|
||||||
size: [10, 10],
|
size: [10, 10],
|
||||||
@ -368,6 +372,9 @@
|
|||||||
default: {
|
default: {
|
||||||
lineWidth: 2,
|
lineWidth: 2,
|
||||||
fill: '#fff'
|
fill: '#fff'
|
||||||
|
},
|
||||||
|
selected: {
|
||||||
|
fill: 'steelblue'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
edgeStyle: {
|
edgeStyle: {
|
||||||
|
Loading…
Reference in New Issue
Block a user