VisActor / VisActor/VTable

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

Open
#4,002 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature good first issue
Dominant language
TypeScript
Stars
3.7k
Forks
486
Avg merge
1d 19h
Merged PRs (30d)
16

Description

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
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.