add collapse-icon
This commit is contained in:
1 parent
f08e0e3c67
commit
25083f9b9d
1 file changed
+17
@@ -239,6 +239,23 @@ export default class Main extends Component {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cfg.children) {
|
||||||
|
group.addShape('marker', {
|
||||||
|
attrs: {
|
||||||
|
x: w / 2,
|
||||||
|
y: 0,
|
||||||
|
r: 6,
|
||||||
|
cursor: 'pointer',
|
||||||
|
symbol: G6.Marker.collapse,
|
||||||
|
stroke: '#666',
|
||||||
|
lineWidth: 1,
|
||||||
|
fill: '#fff',
|
||||||
|
},
|
||||||
|
name: 'collapse-icon',
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
group.addShape('rect', {
|
group.addShape('rect', {
|
||||||
name: 'drag-up',
|
name: 'drag-up',
|
||||||
attrs: {
|
attrs: {
|
||||||
|
|||||||
Reference in new issue
Block a user