UNPKG

ui-complex

Version:

25 lines (23 loc) 963 B
import { default as dayjs } from 'dayjs'; import { DateType } from '../enums/dateType'; import { DateFormatToDate } from './dateTypeToDate'; export declare const UIC_TIMELINE_SCROLL_LEFT = "--uic-timeline-scroll-left"; export declare const UIC_TIMELINE_SCROLL_TOP = "--uic-timeline-scroll-top"; export declare const timelineOnScroll: (e: React.UIEvent<HTMLDivElement, UIEvent>, { randomId, setStartTimeline, startTimeline, endCount, startCount, dateType, dateFormatTodates, holderWidth, }: { randomId: string; setStartTimeline: import('react').Dispatch<import('react').SetStateAction<{ date: dayjs.Dayjs; startCount: number; endCount: number; }>>; startTimeline: dayjs.Dayjs; startCount: number; endCount: number; dateType: DateType; dateFormatTodates: DateFormatToDate; holderWidth: number; }) => void; export declare const getTimelineScroll: (randomId?: string) => { x: number; y: number; };