Alexander Deplov

Cursor Move with Delta

Cursor Move with Delta

Code

//https://observablehq.com/@d3/build-your-own-graph

  var cursor;
  var links = [];

  function spawn(){

  }

  cursor = new Path.Circle({
    center: [0, 0],
    radius: 30,
    strokeColor: 'red'
  });

  function onMouseMove(event){
    cursor.position = event.point + event.delta ;
  }