antvis / antvis/X6

开启自动扩展画布,画布未自动缩小

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

Description

### 问题描述

开启自动扩展画布,画布未自动缩小

### 重现链接

https://codesandbox.io/s/j1c801

### 重现步骤

如图所示

### 预期行为

经过测试,是初始画布(主画布)不会在没有图形的情况下自动消失
期望主画布可以跟其它扩展的画布一样,在没有图形的情况下自动消失

### 平台

- 操作系统: [Windows]
- 网页浏览器: [Google Chrome]
- X6 版本: [1.32.5]

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

![画布未自动缩小](https://user-images.githubusercontent.com/26325346/177237125-c78ee9d3-6ec7-4436-b699-0e8d5f7212b2.gif)

### 补充说明(可选)

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the CodeSandbox reproduction at https://codesandbox.io/s/j1c801 and compare the initial main canvas with the expanded canvases when auto-expansion is enabled. Trace the canvas sizing behavior shown in the reproduction; done means the main canvas also disappears or shrinks when it contains no shapes, matching the other expanded canvases.

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
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.