photo-sphere-viewer
Version:
A JavaScript library to display Photo Sphere panoramas
33 lines (25 loc) • 972 B
TypeScript
import { ExtendedPosition, AbstractPlugin, Viewer } from 'photo-sphere-viewer';
/**
* @summary Definition of keypoints for automatic rotation, can be a position object, a marker id or an object with the following properties
*/
type AutorotateKeypoint = string | ExtendedPosition | {
markerId?: string;
position?: ExtendedPosition;
tooltip?: string | { content: string, position: string };
pause?: number;
};
type AutorotateKeypointsPluginOptions = {
startFromClosest?: boolean;
keypoints?: AutorotateKeypoint[];
}
/**
* @summary Replaces the standard autorotate animation by a smooth transition between multiple points
*/
declare class AutorotateKeypointsPlugin extends AbstractPlugin {
constructor(psv: Viewer, options: AutorotateKeypointsPluginOptions);
/**
* @summary Changes the keypoints
*/
setKeypoints(keypoints: AutorotateKeypoint[]);
}
export { AutorotateKeypoint, AutorotateKeypointsPlugin, AutorotateKeypointsPluginOptions };