translate method

void translate(
  1. double dx,
  2. double dy
)

Implementation

void translate(double dx, double dy) {
  Matrix4Utils.postTranslate(viewPortHandler!.matrixTouch, dx, dy);
  viewPortHandler!.limitTransAndScale(
      viewPortHandler!.matrixTouch, viewPortHandler!.contentRect);
  if (_chartTransListener != null) {
    _chartTransListener!.translate(dx, dy);
  }
}