From 49ea7268af3c9b46d6fcc3b6449a5707fc120f3b Mon Sep 17 00:00:00 2001 From: "yilin.qyl" Date: Mon, 1 Apr 2019 12:04:55 +0800 Subject: [PATCH] chore(demo): update some demo --- demos/force-layout.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/demos/force-layout.html b/demos/force-layout.html index 8937e83b4a..e4ffdf3adc 100644 --- a/demos/force-layout.html +++ b/demos/force-layout.html @@ -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: {