antvis/G6

addItem后传入的坐标值与实际渲染的坐标轴不符 #5659

Shen120 posted onGitHub

问题描述

使用addItem,我传入的坐标轴与实际渲染的坐标轴不符,而且还是用了左边转换函数getPointByCanvas

重现链接

-

重现步骤

image

预期行为

正常渲染

平台

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

屏幕截图或视频(可选)

image

补充说明(可选)

No response


找到问题了,自定义节点时注意的keyShape不能去取cfg的xy,默认为0 image

posted by Shen120 about 1 year ago

Fund this Issue

$0.00
Funded

Pull requests