touchHandlerModifyHorizontalAngleLimits property

(double, double) get touchHandlerModifyHorizontalAngleLimits

Horizontal angle adjustment limits for user gestures during follow mode

Defines the minimum and maximum horizontal rotation angles users can apply via touch gestures while in follow mode. An empty range (0.0, 0.0) forbids horizontal angle adjustment entirely.

Returns

  • A tuple (min, max) of angle limits in degrees. Default is (0.0, 0.0) meaning adjustment is forbidden

See also:

Implementation

(double, double) get touchHandlerModifyHorizontalAngleLimits {
  final OperationResult resultString = objectMethod(
    pointerId,
    'FollowPositionPreferences',
    'getTouchHandlerModifyHorizontalAngleLimits',
    dependencyId: _mapPointerId,
  );

  final Map<String, dynamic> result =
      resultString['result'] as Map<String, dynamic>;
  final double first = result['first'];
  final double second = result['second'];

  return (first, second);
}
set touchHandlerModifyHorizontalAngleLimits ((double, double) angles)

Set horizontal rotation angle limits for user gestures during follow mode

Defines the range of horizontal rotation angles users can apply via touch gestures. Use (0.0, 0.0) to disable horizontal angle adjustment.

Parameters

  • angles: Tuple (min, max) of angle limits in degrees. Use (0.0, 0.0) to forbid adjustment. Default: (0.0, 0.0)

Implementation

set touchHandlerModifyHorizontalAngleLimits(final (double, double) angles) {
  objectMethod(
    pointerId,
    'FollowPositionPreferences',
    'setTouchHandlerModifyHorizontalAngleLimits',
    args: Pair<double, double>(angles.$1, angles.$2).toJson(),
    dependencyId: _mapPointerId,
  );
}