Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 vivagraph.js 和 webglGraphics 制作了一个简单的图表,并在节点上添加了图像。但是节点在 Y 轴上移动不正确。当我选择节点并向上移动鼠标时,图像会向下移动。我该如何解决?
我将 y 位置更改为负数,现在它适用于图像,但是当我添加文本节点时,节点向与鼠标相反的方向移动
行:5413 = > 已更改
pos.y = ui.position.y; to=> pos.y = -ui.position.y;