wente
2024-03-19 64e66a21a9111bbd21c442f3657f098f96f7b4df
线条拖动
1个文件已修改
20 ■■■■ 已修改文件
web/src/views/modules/taskReliability/RBD-edit-img.vue 20 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
web/src/views/modules/taskReliability/RBD-edit-img.vue
@@ -810,9 +810,23 @@
        this.graph.on('edge:mouseenter', ({cell}) => {
          // alert(123)
          cell.addTools(
              ['segments']
          )
          cell.addTools([
            {
              name: 'source-arrowhead',
            },
            {
              name: 'target-arrowhead',
              args: {
                attrs: {
                  fill: 'red',
                },
              },
            },
              {
                  name: 'segments',
                  args: {snapRadius: 20, attrs: {fill: '#444'}}
              },
          ])
        })
        this.graph.on('edge:mouseleave', ({cell}) => {