[Feature] 关联线的样式能否增加从前置任务指向当前任务的左上方呢
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
What problem does this feature solve?
类似于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
}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the dependency-link rendering entry point and the existing linkLineStyle configuration. Trace how link endpoints are selected, then determine how the proposed fromAnchor and toAnchor options should affect routing and the displayed example. Done means links can target the requested right-center and left-top anchors without the unnecessary loop.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100