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