cameraFocus property
Camera focus position in viewport coordinates
The camera focus determines where the position tracker appears within the viewport during follow mode. Coordinates range from 0.0 (left/top) to 1.0 (right/bottom). Default is typically center (0.5, 0.5).
Returns
- A Point with x and y coordinates between 0.0 and 1.0 representing the focus position in the viewport
See also:
- setCameraFocus - Modify the camera focus position
Implementation
Point<double> get cameraFocus {
final OperationResult resultString = objectMethod(
pointerId,
'FollowPositionPreferences',
'getCameraFocus',
dependencyId: _mapPointerId,
);
return XyType<double>.fromJson(resultString['result']).toPoint();
}