UNPKG

@antv/s2

Version:

effective spreadsheet render core lib

15 lines (14 loc) 871 B
import type { Totals } from '../common/interface'; import type { TotalStatus } from '../data-set'; export declare const getListBySorted: (list: string[], sorted: string[], mapValue?: (val: string) => string) => string[]; export declare const filterOutDetail: (values?: string[]) => string[]; export declare const customFlattenDeep: (data: Record<any, any>[] | Record<any, any>) => any[]; /** * arr1包含arr2,将arr2排到最后 * */ export declare const sortByItems: (arr1: string[], arr2: string[]) => string[]; export declare function getAggregationAndCalcFuncByQuery(totalsStatus: TotalStatus, totalsOptions?: Totals | null): { aggregation: "SUM" | "MIN" | "MAX" | "AVG" | "COUNT"; calcFunc: ((query: import("../data-set").Query, data: import("../data-set").CellData[], spreadsheet: import("@antv/s2").SpreadSheet) => number) | undefined; } | undefined;