antvis / antvis/X6

小地图渲染定制节点图片不渲染

Open
#4,527 4 comments 1 reaction 0 assignees View on GitHub
bug:minimap oscp
Dominant language
TypeScript
Stars
6.7k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

### 问题描述

设置小地图的容器display='none'时,往画布中拖拽添加包含图片的定制节点rect,再开启小地图容器显示display='block',小地图上只渲染了rect节点,没有渲染节点上的图片。display='block'期间添加的定制节点图片会正常渲染,隐藏时图片不能渲染。

### 重现链接

怎么让小地图在隐藏时添加含图片的定制节点也渲染图片

### 重现步骤

1.默认隐藏小地图,点击拖拽添加含图片的定制节点。2.开启小地图,只渲染了定制节点继承的父节点rect,没有渲染节点上的图片。3.开启小地图,点击拖拽添加含图片的定制节点,能正常渲染定制节点rect和节点上面的图片。

### 预期行为

让小地图在隐藏时添加含图片的定制节点也渲染图片

### 平台

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

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

https://github.com/user-attachments/assets/a845df9d-f633-46e8-bc61-bcc6a24c74fc

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

No source file or test is identified. Start by reproducing the issue with the minimap container hidden, then inspect the minimap's custom-node image rendering path; it is done when images added while the minimap is hidden render after the container is shown, while existing visible-container behavior remains intact.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.