@egjs/flicking
Version:
Everyday 30 million people experience. It's reliable, flexible and extendable carousel.
41 lines (40 loc) • 931 B
TypeScript
import Panel from "./panel/Panel";
/**
* Options for creating an AnchorPoint
*/
export interface AnchorPointOptions {
/** Index of AnchorPoint */
index: number;
/** Position of AnchorPoint */
position: number;
/** A {@link Panel} instance AnchorPoint is referencing to */
panel: Panel;
}
/**
* A data component that has actual position where the camera should be stopped at
*/
declare class AnchorPoint {
private _index;
private _pos;
private _panel;
/**
* Index of AnchorPoint
* @readonly
*/
get index(): number;
/**
* Position of AnchorPoint
* @readonly
*/
get position(): number;
/**
* A {@link Panel} instance AnchorPoint is referencing to
* @readonly
*/
get panel(): Panel;
/**
* @param options - {@link AnchorPointOptions}
*/
constructor(options: AnchorPointOptions);
}
export default AnchorPoint;