/* * Copyright 2026 Hypergiant Galactic Systems Inc. All rights reserved. * This file is licensed to you under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. You may obtain a copy * of the License at https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software distributed under * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS * OF ANY KIND, either express or implied. See the License for the specific language * governing permissions and limitations under the License. */ import { GanttDerivedThresholdValue, GanttMetThresholdData, GanttRegion, GanttThreshold, GanttTimeBounds, GanttTimescale } from "../types.js"; //#region src/components/gantt/utils/thresholds.d.ts /** * Derives the total data region from the total row count and bounds. */ declare function deriveTotalDataRegion(totalRowsCount: number, totalBounds: GanttTimeBounds): GanttRegion; /** * Derives the rendered region from the rendered slice and bounds. */ declare function deriveRenderedRegion(renderedSlice: { start: number; end: number; }, renderedRegionBounds: GanttTimeBounds): GanttRegion; /** * Derives temporal threshold values from the threshold object and total data region. * Returns null if the threshold values are invalid. */ declare function deriveTemporalThresholds(threshold: GanttThreshold, totalDataRegion: GanttRegion, timescale: GanttTimescale): GanttDerivedThresholdValue | null; /** * Derives row index threshold values from the threshold object and total data region. * Returns null if the threshold values are invalid. */ declare function deriveRowIndexThresholds(threshold: GanttThreshold, totalDataRegion: GanttRegion): GanttDerivedThresholdValue | null; /** * Examines if any thresholds have been met by comparing the rendered region * against the derived threshold values. * Returns an array of GanttMetThresholdData objects for thresholds that have been met. */ declare function examineThresholds(renderedRegion: GanttRegion, temporalThresholds: GanttDerivedThresholdValue | null, rowIndexThresholds: GanttDerivedThresholdValue | null): GanttMetThresholdData[]; /** * Validates if the threshold examination should proceed based on input parameters. * Returns true if examination should proceed, false otherwise. */ declare function shouldExamineThresholds(totalRowsCount: number, verticalScrollElement: { clientHeight: number; } | null, threshold: GanttThreshold | undefined): boolean; //#endregion export { deriveRenderedRegion, deriveRowIndexThresholds, deriveTemporalThresholds, deriveTotalDataRegion, examineThresholds, shouldExamineThresholds }; //# sourceMappingURL=thresholds.d.ts.map