/** * Copyright (c) 2018-2026 Mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author David Sehnal * @author Adam Midlik */ import { ParamDefinition as PD } from '../../mol-util/param-definition.js'; import { Camera } from '../camera.js'; import { CameraTransitionManager } from './transition.js'; /** Simple linear transition with constant absolute speed. */ export declare function transitionLinear(out: Camera.Snapshot, t: number, source: Camera.Snapshot, target: Camera.Snapshot): void; /** Linear transition with constant speed relative to visible sphere radius (move slower where zoomed-in more, dtarget / dt = (r + CONST_REL_SPEED_OFFSET) * const). * Rotational component of the transition has constant speed. */ export declare function transitionLinearRelative(out: Camera.Snapshot, t: number, source: Camera.Snapshot, target: Camera.Snapshot): void; /** "Leaping" camera transition with constant absolute speed. * Visible sphere radius increases during the transition so that for some t (0<=t<=1) the interpolated sphere will contain both source and target spheres. * When source and target spheres overlap, the transition is partially or fully linearized to avoid disturbing zoom-out. * Camera target position and rotational component of the transition use linear interpolation. */ export declare function transitionLeap(out: Camera.Snapshot, t: number, source: Camera.Snapshot, target: Camera.Snapshot): void; /** "Leaping" camera transition with constant speed relative to visible sphere radius (move slower where zoomed-in more, dtarget / dt = (r + CONST_REL_SPEED_OFFSET) * const). * Rotational component of the transition uses linear interpolation. */ declare function transitionLeapRelative(out: Camera.Snapshot, t: number, source: Camera.Snapshot, target: Camera.Snapshot): void; export declare const TransitionFunctions: { linear: typeof transitionLinear; 'linear-relative': typeof transitionLinearRelative; leap: typeof transitionLeap; 'leap-relative': typeof transitionLeapRelative; }; export type TransitionTrajectory = keyof typeof TransitionFunctions; export declare function getTransitionFn(trajectory: TransitionTrajectory | undefined): CameraTransitionManager.TransitionFunc; export declare function TransitionTrajectoryParamDefinition(defaultValue: TransitionTrajectory): PD.Select; export {};