endPan static method

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

Called in response to an interaction model operation that responds to an event that ends panning.

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

Implementation

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