|
@@ -91,38 +91,19 @@ export default class FlowGraph {
|
|
anchor: 'center', // 指定被连接的节点的锚点
|
|
anchor: 'center', // 指定被连接的节点的锚点
|
|
createEdge() {
|
|
createEdge() {
|
|
// X6 的 Shape 命名空间中内置 Edge、DoubleEdge、ShadowEdge 三种边
|
|
// X6 的 Shape 命名空间中内置 Edge、DoubleEdge、ShadowEdge 三种边
|
|
- return new Shape.DoubleEdge({
|
|
|
|
|
|
+ return new Shape.Edge({
|
|
attrs: {
|
|
attrs: {
|
|
- // line: {
|
|
|
|
- // // stroke: '#5F95FF',
|
|
|
|
- // // strokeWidth: 4,
|
|
|
|
- // // targetMarker: {
|
|
|
|
- // // name: 'classic',
|
|
|
|
- // // size: 8,
|
|
|
|
- // // },
|
|
|
|
- // stroke: '#1890ff',
|
|
|
|
- // strokeDasharray: 5,
|
|
|
|
- // targetMarker: null,//block classic diamond cross async path circle circlePlus ellipse
|
|
|
|
- // style: {
|
|
|
|
- // animation: 'ant-line 30s infinite linear',
|
|
|
|
- // },
|
|
|
|
- // },
|
|
|
|
line: {
|
|
line: {
|
|
- strokeWidth: 4,
|
|
|
|
- stroke: '#cfe7f2',
|
|
|
|
- strokeDasharray: 0,
|
|
|
|
- style: {
|
|
|
|
- animation: 'ant-line 0s infinite linear'
|
|
|
|
- },
|
|
|
|
- targetMarker: null // 去掉箭头
|
|
|
|
- },
|
|
|
|
- outline: {
|
|
|
|
- stroke: '#456d89',
|
|
|
|
- strokeWidth: 7
|
|
|
|
|
|
+ stroke: '#5F95FF',
|
|
|
|
+ strokeWidth: 1,
|
|
|
|
+ targetMarker: {
|
|
|
|
+ name: 'classic',
|
|
|
|
+ size: 8
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
router: {
|
|
router: {
|
|
- name: 'metro'
|
|
|
|
|
|
+ name: 'manhattan'
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|