applyParentOffset method

void applyParentOffset(
  1. Offset offset
)

Implementation

void applyParentOffset(ui.Offset offset) {
  // only apply  offset on scaled values, those have chart coordinates that are painted.

  // not needed to offset : StackableValuePoint predecessorPoint;

  /// Scaled values represent screen coordinates, apply offset to all.
  scaledX += offset.dx;
  scaledY += offset.dy;
  scaledFromY += offset.dy;
  scaledToY += offset.dy;

  scaledFrom += offset;
  scaledTo += offset;
}