molstar
Version:
A comprehensive macromolecular library.
33 lines (32 loc) • 994 B
TypeScript
/**
* Copyright (c) 2020-2025 mol* contributors, licensed under MIT, See LICENSE file for more info.
*
* @author David Sehnal <david.sehnal@gmail.com>
* @author Alexander Rose <alexander.rose@weirdbyte.de>
*/
import { PluginContext } from './context.js';
import { PluginAnimationManager } from '../mol-plugin-state/manager/animation.js';
export declare class PluginAnimationLoop {
private plugin;
private lastTickT;
private properTimeT;
private currentFrame;
private _isAnimating;
get isAnimating(): boolean;
tick(t: number, options?: {
isSynchronous?: boolean;
manualDraw?: boolean;
animation?: PluginAnimationManager.AnimationInfo;
updateControls?: boolean;
xrFrame?: XRFrame;
}): Promise<void>;
private frame;
resetTime(t: number): void;
start(options?: {
immediate?: boolean;
}): void;
stop(options?: {
noDraw?: boolean;
}): void;
constructor(plugin: PluginContext);
}