visibleWorldRect property

Rect get visibleWorldRect

@en: The coordinates formed by the viewport on the canvas

@zh: 视窗在画布中形成的坐标

Implementation

Rect get visibleWorldRect {
  return Rect.fromPoints(
    globalToLocal(Vector2.zero()).toOffset(),
    globalToLocal(Vector2(size.value.width, size.value.height)).toOffset(),
  );
}