DygraphDragContext class

Generic chart interaction context.

Annotations
  • @JS()
  • @anonymous

Constructors

DygraphDragContext({bool isZooming = false, bool isPanning = false, bool is2DPan = false, num? dragStartX, num? dragStartY, num? dragEndX, num? dragEndY, num? dragDirection, num? prevEndX, num? prevEndY, num? prevDragDirection, bool cancelNextDblclick = false, num? initialLeftmostDate, num? xUnitsPerPixel, num? dateRange, num px = 0, num py = 0, List? boundedDates, List? boundedValues, DygraphIframeTarp? tarp, InteractionModelFunc? initializeMouseDown, Function? destroy})
factory

Properties

boundedDates List
Values for use with panEdgeFraction, which limit how far outside the graph's data boundaries it can be panned ([minDate, maxDate]).
getter/setter pair
boundedValues List
Values for use with panEdgeFraction, which limit how far outside the graph's data boundaries it can be panned ([minValue, maxValue]).
getter/setter pair
cancelNextDblclick bool
Disable zooming out if panning.
getter/setter pair
dateRange num
The range in second/value units that the viewport encompasses during a panning operation.
getter/setter pair
destroy Function
getter/setter pair
dragDirection num
Indicates the current drag direction.
getter/setter pair
dragEndX num
Drag start X-axis pixel coordinates.
getter/setter pair
dragEndY num
Drag end Y-axis pixel coordinates.
getter/setter pair
dragStartX num
Drag start X-axis pixel coordinates.
getter/setter pair
dragStartY num
Drag start Y-axis pixel coordinates.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
initializeMouseDown InteractionModelFunc
We cover iframes during mouse interactions.
getter/setter pair
initialLeftmostDate num
The value on the left side of the graph when a pan operation starts.
getter/setter pair
is2DPan bool
If so, is that pan 1- or 2-dimensional?
getter/setter pair
isPanning bool
Is this drag part of a pan?
getter/setter pair
isZooming bool
Tracks whether the mouse is down right now
getter/setter pair
prevDragDirection num
Previous drag direction.
getter/setter pair
prevEndX num
Previous drag end X-axis pixel coordinates.
getter/setter pair
prevEndY num
Previous drag end Y-axis pixel coordinates.
getter/setter pair
px num
Top corner of the canvas, in DOM coords.
getter/setter pair
py num
Left corner of the canvas, in DOM coords.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tarp DygraphIframeTarp
We cover iframes during mouse interactions.
getter/setter pair
xUnitsPerPixel num
The number of units each pixel spans (this won't be valid for log scales).
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited