movePan static method

void movePan(
  1. Event e,
  2. Dygraph dygraph,
  3. DygraphDragContext context
)

Called in response to an interaction model operation that responds to an event that pans the view.

It's used in the default callback for "mousemove" operations. Custom interaction model builders can use it to provide the default panning behavior.

Implementation

external static void movePan(
  // the event object which led to the movePan call
  Event e,
  // the dygraph on which to act
  Dygraph dygraph,
  // the dragging context object (with dragStartX/dragStartY/etc. properties).
  // (this function modifies the context!!!)
  DygraphDragContext context,
);