D3 forceSimulation and dragging, what is node.fx/node.fy?
问题 For d3 force layouts that include drag functionality with d3-drag, it seems that the functions called on each drag event modify d.fx / d.fy , eg: function dragged(d) { d.fx = d3.event.x; d.fy = d3.event.y; } The drag start event often bases d.fx / d.fy on d.x / d.y while the end event sets d.fx / d.fy to null . Where does d.fx / d.fy come from and why does it get used on elements that are being dragged? Is this built into d3 or d3-force in some way? Where is it assigned to the element being