Comments (3)
hi @Radomir-Drukh, welcome!
from g6.
Hi @Radomir-Drukh, Please star this repo if you find it useful! Thanks ⭐!
你好 @Radomir-Drukh。如果该仓库对你有用,可以 star 一下,感谢你的 ⭐!
from g6.
The implementation of getViewPortCenterPoint is:
Which means the API returns the point in rendering coordinate system for the center of canvas DOM. If the graph has initial zoom (1) and not translation, the point of rendering coordinate system is equal to the center point of canvas DOM in number. But after zooming and translating (maybe caused by fitView, fitCenter, mouse wheel, etc.), they are different. Refer to the doc: https://g6.antv.antgroup.com/en/manual/advanced/coordinate-system , where the rendering coordinate system I mentioned before is the pointX/pointY coordinate system in the doc.
from g6.
Related Issues (20)
- v5.0.0-beta.28 画布初始化位置异常 HOT 2
- fitview/fitcenter 整个图会显示异常 HOT 2
- 图在快速 addShape/removeShape 的时候出现报错: Uncaught TypeError: Cannot read property 'length' of undefined HOT 3
- 文字怎么自动换行 HOT 3
- 使用svg渲染,fitview视口不会适应画布居中 HOT 1
- 使用addItems后,undo判断存在bug,无法回退 HOT 2
- Decision Tree, if I set the chart layout to "Horizontal", expand to next level, if the items out of the canvas, there isn't have any scroll bar HOT 1
- Decision Tree, if I set the chart layout to "Right-Left", some items are not aligned with other items which in the same level HOT 1
- 自定义边拖动后,refY失效 HOT 2
- mindmap 图removeChild后节点自动重新定位,但边没有。 HOT 1
- G6-4.8.23 在自定义布局execute()内更改Node节点的Style未立即生效问题 HOT 2
- 图使用插件Minimap并设置type="delegate"时调用Graph的clear方法则会报错 HOT 1
- 鼠标移入select组件,drag-canvas失效 HOT 2
- linkCenter为false情况下,处理平行边时候,边两边会出现相交情况 HOT 4
- 自定义节点时,坐标系与原生节点坐标系不一致
- Dragging a node draws some lines HOT 2
- Combo的collapsed全局默认配置优于局部配置导致显示出问题
- 自定义节点点击高亮和展开相冲突 HOT 2
- 4.8.23 layout type设置为forceAtlas2 问题 HOT 3
- item.update无法更新type HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g6.