antvis / antvis/Graphin

节点不能居中

Open
#334 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.1k
Forks
275
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
当初始化加载节点的时候,节点是从左上方加载的并没有居中,看了一下canvas渲染的width 和height属性是实际长宽的2倍,设置fitView或者fitCenter为true时,节点会到右下角。
![image](https://user-images.githubusercontent.com/17940669/144817958-b861ad08-ddda-40ba-9c43-c015cf580fc5.png)

**Desktop (please complete the following information):**
- OS: Win10
- Browser [chrome,]
- Version [2.3.8]

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.