public static ARE_BOUNDS_OF_SELECTION_AND_AVAILABLE_DATES_THE_SAME()

in src/utils.ts [168:179]


    public static ARE_BOUNDS_OF_SELECTION_AND_AVAILABLE_DATES_THE_SAME(timelineData: ITimelineData): boolean {
        const datePeriod: ITimelineDatePeriod[] = timelineData.currentGranularity.getDatePeriods();
        const startDate: Date = Utils.GET_START_SELECTION_DATE(timelineData);
        const endDate: Date = Utils.GET_END_SELECTION_DATE(timelineData);

        return datePeriod
            && datePeriod.length >= 1
            && startDate
            && endDate
            && datePeriod[0].startDate.getTime() === startDate.getTime()
            && datePeriod[datePeriod.length - 1].endDate.getTime() === endDate.getTime();
    }