UNPKG

@mindfiredigital/pivothead

Version:

PivotHead is a powerful and flexible library for creating interactive pivot tables in JavaScript applications. It provides a core engine for data manipulation and, in the future, will be compatible with wrappers for React, Vue, Svelte, and Angular, making

26 lines 1.21 kB
import type { FileConnectionResult, ConnectionOptions, DataRecord } from '../../types/interfaces'; import { PivotEngine } from '../pivotEngine'; declare const DEFAULT_MAX_RECORDS = 50000; declare const LARGE_FILE_MAX_RECORDS = 20000; export { DEFAULT_MAX_RECORDS, LARGE_FILE_MAX_RECORDS }; export interface PostParseOptions { file: File; parsedData: DataRecord[]; engine: PivotEngine<DataRecord>; options: ConnectionOptions; /** If true, skip processCSVData normalization (already done by caller) */ skipNormalization?: boolean; /** Override performance mode label */ performanceModeOverride?: 'standard' | 'workers' | 'wasm' | 'streaming-wasm'; /** Parse timing in ms (for streaming modes) */ parseTime?: number; } /** * Shared post-parse logic: record limiting, validation, layout building, * engine updating, conditional formatting, and performance config. * * This deduplicates the code that was repeated across processCSVFile, * processCSVFileWithWasm, processCSVFileWithStreamingWasm, and processCSVFileWithWorkers. */ export declare function applyParsedDataToEngine(opts: PostParseOptions): FileConnectionResult; //# sourceMappingURL=engineUpdater.d.ts.map