startPan static method

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

Called in response to an interaction model operation that should start the default panning behavior.

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

Implementation

external static void startPan(
  // the event object which led to the startPan 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,
);