anchor property

Anchor get anchor

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

Anchor get anchor => _anchor;
set anchor (Anchor value)

Implementation

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