@egjs/flicking
Version:
Everyday 30 million people experience. It's reliable, flexible and extendable carousel.
24 lines (23 loc) • 824 B
TypeScript
import AnchorPoint from "../../core/AnchorPoint";
import Panel from "../../core/panel/Panel";
import { CameraRange } from "../Camera";
import CameraMode from "./CameraMode";
/**
* A {@link Camera} mode that connects the last panel and the first panel, enabling continuous loop
*/
declare class CircularCameraMode extends CameraMode {
checkAvailability(): boolean;
getRange(): CameraRange;
getAnchors(): AnchorPoint[];
findNearestAnchor(position: number): AnchorPoint | null;
findAnchorIncludePosition(position: number): AnchorPoint | null;
getCircularOffset(): number;
clampToReachablePosition(position: number): number;
canReach(panel: Panel): boolean;
canSee(panel: Panel): boolean;
/**
* @internal
*/
private _calcPanelAreaSum;
}
export default CircularCameraMode;