@maplibre/native-ffi
    Preparing search index...

    Interface AnimationOptions

    Optional animation controls for camera transitions.

    See mln_animation_options in the C API reference.

    interface AnimationOptions {
        durationMs?: number;
        easing?: UnitBezier;
        endHandler?: CameraTransitionHandler;
        minZoom?: number;
        transitionId?: bigint;
        velocity?: number;
    }
    Index
    durationMs?: number

    Duration in milliseconds. Must be finite, non-negative, and short enough to represent as a duration.

    easing?: UnitBezier

    Reports the end of the command's transitions. Disabled by default.

    minZoom?: number

    Peak zoom for flyTo transitions.

    transitionId?: bigint

    Caller-chosen identity of the command that these options animate, which mln_map_cancel_camera_transition() matches.

    velocity?: number

    Average fly velocity in screenfuls per second. Must be positive and finite; defaults to 1.2 when omitted. A flight whose derived duration is too long to represent fails its completion with MLN_STATUS_NATIVE_ERROR. An explicit duration overrides velocity.