antvis / antvis/XFlow

使用XFlow的initData,如果虚线设置了id,那么虚线效果就没了

Open
#504 2 comments 0 reactions 0 assignees View on GitHub
stale
Dominant language
TypeScript
Stars
648
Forks
241
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

用xflow画虚线,如何设置了线的id,虚线效果就没了
1. 纯x6,用graph.addEdge方式画虚线,没问题
2. 纯x6,用graph.fromJSON方式画虚线,没问题
3. xflow,用graph.fromJSON方式画虚线,没问题
4. xflow,用initData方式画虚线,不设置id,没问题,**指定了id,虚线有问题,变成直线了**
5. xflow,用graph.addEdge方式画虚线,**无论是否指定id,虚线都有问题**

### 重现链接

https://x6.antv.antgroup.com/xflow/guide/quick-start

### 重现步骤

使用官网的这个示例,[官网示例](https://x6.antv.antgroup.com/xflow/guide/quick-start)
设置连线为虚线,会发现,如果指定了id,虚线效果就没了

### 预期行为

希望和x6一样,虚线效果正常显示

### 平台

- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
- XFlow 版本: [1.28.2 ... ]

### 屏幕截图或视频(可选)

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the XFlow quick-start example linked in the issue and compare the initData, graph.fromJSON, and graph.addEdge paths for dashed edges. Reproduce the behavior with and without an edge id, then compare it with the equivalent X6 cases. Done means dashed styling remains visible for identified edges created through initData and graph.addEdge, matching X6 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.