Skip to content

[Feature] 关联线的样式能否增加从前置任务指向当前任务的左上方呢 #4002

Open
@godjoker1024

Description

@godjoker1024

What problem does this feature solve?

Image

Image
类似于project中这种,从前置任务指向下一个任务的左上方,而不是指向左边,指向左边关联线需要绕一圈;
建议添加2个参数控制,如:
fromAnchor: 'right-center', // 从任务的右侧中心点出发
toAnchor: 'left-top' // 连接到目标任务的左上角

What does the proposed API look like?

// 依赖线基本样式
linkLineStyle: {
lineColor: '#8c8c8c',
lineWidth: 1,
lineDash: [4, 1],
fromAnchor: 'right-center', // 从任务的右侧中心点出发
toAnchor: 'left-top' // 连接到目标任务的左上角
},
// linkSelectable: false,
linkSelectedLineStyle: {
shadowBlur: 5, //阴影宽度
shadowColor: 'blue',
lineColor: 'blue',
lineWidth: 1
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions