Closed WenHua39 closed 2 years ago
pc中 graph.node获取根节点的x,y值,使用graph.moveTo(x, y)可以移动画布使画布中心与根节点位置重合, 微信小程序中pixelRatio的存在,要怎么使画布中心与根节点位置重合呢?graph.translate或者graph.moveTo的x, y值应该是如何计算呢?
pc中 graph.node获取根节点的x,y值,使用graph.moveTo(x, y)可以移动画布使画布中心与根节点位置重合, 微信小程序中pixelRatio的存在,要怎么使画布中心与根节点位置重合呢?graph.translate或者graph.moveTo的x, y值应该是如何计算呢?