viewportTranslatePx property

  1. @override
double get viewportTranslatePx

Returns the current pixel viewport offset

The translate is used by the scale function when it applies the scale. This is the equivalent to panning. Its value is likely <= 0 to pan the data to the left.

Implementation

@override
double get viewportTranslatePx => _viewportSettings.translatePx;