1 | import { Y as YAxisStates } from './Enums-8f0d4a61';
|
2 | import { Selection } from 'd3';
|
3 |
|
4 | declare class Utils {
|
5 | static guidForNullTSID: string;
|
6 | static formatYAxisNumber(val: number): string;
|
7 | static getStackStates(): typeof YAxisStates;
|
8 | static parseTimeInput(inputString: string): number;
|
9 | static findClosestTime(prevMillis: number, timeMap: any): number;
|
10 | static getValueOfVisible(d: any, visibleMeasure: string): any;
|
11 | static isStartAt(startAtString?: string, searchSpan?: any): boolean;
|
12 | static parseShift(shiftString: string, startAtString?: any, searchSpan?: any): number;
|
13 | static adjustStartMillisToAbsoluteZero(fromMillis: any, bucketSize: any): number;
|
14 | static bucketSizeToTsqInterval(bucketSize: string): string;
|
15 | static createEntityKey(aggName: string, aggIndex: number): string;
|
16 | static getColorForValue(chartDataOptions: any, value: any): any;
|
17 | static rollUpContiguous(data: any): any;
|
18 | static formatOffsetMinutes(offset: any): string;
|
19 | static getOffsetMinutes(offset: any, millis: number): any;
|
20 | static offsetUTC(date: Date): Date;
|
21 | static getMinutesToUTC(offset: any, millisInOffset: number): number;
|
22 | static addOffsetGuess(timezoneName: any): string;
|
23 | static timezoneAbbreviation(timezoneName: any): string;
|
24 | static createTimezoneAbbreviation(offset: any): string;
|
25 | static parseTimezoneName(timezoneRaw: any): any;
|
26 | static convertTimezoneToLabel(timezone: any, locdLocal?: string): string;
|
27 | static rangeTimeFormat(rangeMillis: number): string;
|
28 | static subDateTimeFormat(is24HourTime: any, usesSeconds: any, usesMillis: any): string;
|
29 | static timeFormat(usesSeconds?: boolean, usesMillis?: boolean, offset?: any, is24HourTime?: boolean, shiftMillis?: number, timeFormat?: string, locale?: string): (d: any) => string;
|
30 | static splitTimeLabel(text: any): void;
|
31 | static getUTCHours(d: Date, is24HourTime?: boolean): number;
|
32 | static UTCTwelveHourFormat(d: Date): string;
|
33 | static getAgVisible(displayState: any, aggI: string, splitBy: string): any;
|
34 | static getAgVisibleMeasure(displayState: any, aggI: string, splitBy: string): any;
|
35 | static createSeriesTypeIcon(seriesType: string, selection: any): void;
|
36 | static strip(text: any): string;
|
37 | static stripForConcat(text: any): any;
|
38 | static setSeriesLabelSubtitleText(subtitle: any, isInFocus?: boolean): void;
|
39 | static revertAllSubtitleText(markerValues: any, opacity?: number): void;
|
40 | static generateColors(numColors: number, includeColors?: string[]): any[];
|
41 | static convertFromLocal(date: Date): Date;
|
42 | static adjustDateFromTimezoneOffset(date: Date): Date;
|
43 | static offsetFromUTC(date: Date, offset?: number): Date;
|
44 | static offsetToUTC(date: Date, offset?: number): Date;
|
45 | static parseUserInputDateTime(timeText: any, offset: any): number;
|
46 | static getBrighterColor(color: string): any;
|
47 | static createSplitByColors(displayState: any, aggKey: string, ignoreIsOnlyAgg?: boolean): any[];
|
48 | static colorSplitBy(displayState: any, splitByIndex: number, aggKey: string, ignoreIsOnlyAgg?: boolean): any;
|
49 | static getTheme(theme: any): string;
|
50 | static clearSelection(): void;
|
51 | static mark(filter: any, text: any): any;
|
52 | static hash(str: any): number;
|
53 | static guid(): string;
|
54 | static createValueFilter(aggregateKey: any, splitBy: any): (d: any, j: number) => boolean;
|
55 | static downloadCSV(csvString: string, csvName?: string): void;
|
56 | static sanitizeString(str: any, type: String): any;
|
57 | static focusOnEllipsisButton(renderTarget: any): void;
|
58 | static createDownloadEllipsisOption(csvStringGenerator: any, action?: () => void, downloadLabel?: string): {
|
59 | iconClass: string;
|
60 | label: string;
|
61 | action: () => void;
|
62 | description: string;
|
63 | };
|
64 | static createControlPanel(renderTarget: any, legendWidth: number, topChartMargin: number, chartOptions: any): Selection<HTMLDivElement, unknown, null, undefined>;
|
65 | static escapeQuotesCommasAndNewlines(stringToEscape: string): string;
|
66 | static getNonNumericHeight(rawHeight: number): number;
|
67 | static getControlPanelWidth(renderTarget: any, legendWidth: any, isLegendShown: any): number;
|
68 | static getValueOrDefault(chartOptionsObj: any, propertyName: any, defaultValue?: any): any;
|
69 | static safeNotNullOrUndefined(valueLambda: any): boolean;
|
70 | static equalToEventTarget: (current: any, event: any) => boolean;
|
71 | static getAggKeys(data: any): any;
|
72 | static roundToMillis(rawTo: any, bucketSize: any): number;
|
73 | static mergeSeriesForScatterPlot(chartData: any, scatterMeasures: any): {
|
74 | [x: string]: {
|
75 | "": {};
|
76 | };
|
77 | };
|
78 | static getScatterPlotMeasureNames(chartData: any, scatterMeasures: any): {
|
79 | X_MEASURE: string;
|
80 | Y_MEASURE: string;
|
81 | R_MEASURE: string;
|
82 | };
|
83 | static isKeyDownAndNotEnter: (e: any) => boolean;
|
84 | static getMinWarmTime(warmStoreFrom: any, retentionString: any): Date;
|
85 | static standardizeTSStrings(rawData: any): any[];
|
86 | static cullValuesOutOfRange(availabilityDistribution: any, minDateString: string, maxDateString: string): any[];
|
87 | static mergeAvailabilities(warmAvailability: any, coldAvailability: any, retentionString?: any): any;
|
88 | static languageGuess(): string;
|
89 | static getInstanceKey: (instance: any) => any;
|
90 | static stripNullGuid: (str: any) => any;
|
91 | static getTimeSeriesIdString: (instance: any) => any;
|
92 | static getTimeSeriesIdToDisplay: (instance: any, emptyDisplayString: any) => any;
|
93 | static getHighlightedTimeSeriesIdToDisplay: (instance: any) => any;
|
94 | static instanceHasEmptyTSID: (instance: any) => boolean;
|
95 | static appendFormattedElementsFromString: (targetElem: any, str: any, options?: {
|
96 | additionalClassName?: string;
|
97 | inSvg?: boolean;
|
98 | splitByTag?: string;
|
99 | }) => void;
|
100 | static escapedTsidForExactSearch: (tsid: string) => string;
|
101 | static memorySizeOf(obj: any): number;
|
102 | }
|
103 |
|
104 | export { Utils as U };
|