anchor property

  1. @override
Anchor anchor
override

The point within the viewport that is considered the "logical center" of the camera.

This anchor is relative to the viewport's bounding rect, and by default is at the center of the viewport.

The "logical center" of the camera means the point within the viewport where the viewfinder's focus is located at. It is at this point within the viewport that the world's point position will be displayed.

Implementation

@override
Anchor get anchor => _anchor;
  1. @override
void anchor=(Anchor value)
override

Implementation

@override
set anchor(Anchor value) {
  _anchor = value;
  onViewportResize();
}