react-multi-carousel-18
Version:
Production-ready, lightweight fully customizable React carousel component that rocks supports multiple items and SSR(Server-side rendering) with typescript.
19 lines (18 loc) • 1.5 kB
TypeScript
import { CarouselInternalState, CarouselProps } from "../types";
declare function notEnoughChildren(state: CarouselInternalState): boolean;
declare function getInitialState(state: CarouselInternalState, props: CarouselProps): {
shouldRenderOnSSR: boolean;
flexBisis: number | string | undefined;
domFullyLoaded: boolean;
partialVisibilityGutter: number | undefined;
shouldRenderAtAll: boolean;
};
declare function getIfSlideIsVisbile(index: number, state: CarouselInternalState): boolean;
declare function getTransformForCenterMode(state: CarouselInternalState, props: CarouselProps, transformPlaceHolder?: number): number;
declare function isInLeftEnd({ currentSlide }: CarouselInternalState): boolean;
declare function isInRightEnd({ currentSlide, totalItems, slidesToShow }: CarouselInternalState): boolean;
declare function getTransformForPartialVsibile(state: CarouselInternalState, partialVisibilityGutter: number | undefined, props: CarouselProps, transformPlaceHolder?: number): number;
export declare function parsePosition(props: CarouselProps, position: number): number;
declare function getTransform(state: CarouselInternalState, props: CarouselProps, transformPlaceHolder?: number): number;
declare function getSlidesToSlide(state: CarouselInternalState, props: CarouselProps): number;
export { isInLeftEnd, isInRightEnd, getInitialState, getIfSlideIsVisbile, getTransformForCenterMode, getTransformForPartialVsibile, notEnoughChildren, getSlidesToSlide, getTransform };