isPointVisible method

bool isPointVisible(
  1. GraphPosition point,
  2. Size screenSize
)

Checks if a point is visible in the current viewport.

Parameters:

  • point: Point in graph coordinates to check
  • screenSize: The size of the viewport in screen pixels

Returns: true if the point is within the visible area

Implementation

bool isPointVisible(GraphPosition point, Size screenSize) {
  final visibleArea = getVisibleArea(screenSize);
  return visibleArea.contains(point);
}