antvis / antvis/X6

边的背景色能否设置垂直渐变?

Open
#3,592 6 comments 0 reactions 0 assignees View on GitHub
help wanted
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

看了文档,边的背景可以做成水平方向渐变,能否实现垂直渐变的效果?效果如图(下)所示:

![image](https://github.com/antvis/X6/assets/88022434/78d7060c-e45d-45b6-a3b8-3e18c77a7106)

### 重现链接

### 重现步骤

### 预期行为

### 平台

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

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

_No response_

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reading the existing documentation for horizontal edge background gradients and locating the related edge-rendering implementation. Determine how a vertical gradient would be represented and verify that the requested effect works in the diagram editor; the issue provides no named files, tests, or reproduction link.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.