UNPKG

hyperformula-dc

Version:

HyperFormula is a JavaScript engine for efficient processing of spreadsheet-like data and formulas

29 lines (28 loc) 1.57 kB
/** * @license * Copyright (c) 2021 Handsoncode. All rights reserved. */ import { SimpleCellAddress } from '../Cell'; import { Config } from '../Config'; import { CellValueChange } from '../ContentChanges'; import { DependencyGraph } from '../DependencyGraph'; import { RawNoErrorScalarValue, RawScalarValue } from '../interpreter/InterpreterValue'; import { SimpleRangeValue } from '../interpreter/SimpleRangeValue'; import { ColumnsSpan } from '../Span'; import { AdvancedFind } from './AdvancedFind'; import { ColumnSearchStrategy } from './SearchStrategy'; export declare class ColumnBinarySearch extends AdvancedFind implements ColumnSearchStrategy { protected dependencyGraph: DependencyGraph; private config; constructor(dependencyGraph: DependencyGraph, config: Config); add(value: RawScalarValue, address: SimpleCellAddress): void; remove(value: RawScalarValue | undefined, address: SimpleCellAddress): void; change(oldValue: RawScalarValue | undefined, newValue: RawScalarValue, address: SimpleCellAddress): void; applyChanges(contentChanges: CellValueChange[]): void; addColumns(columnsSpan: ColumnsSpan): void; removeColumns(columnsSpan: ColumnsSpan): void; removeSheet(sheetId: number): void; moveValues(sourceRange: IterableIterator<[RawScalarValue, SimpleCellAddress]>, toRight: number, toBottom: number, toSheet: number): void; removeValues(range: IterableIterator<[RawScalarValue, SimpleCellAddress]>): void; find(key: RawNoErrorScalarValue, rangeValue: SimpleRangeValue, sorted: boolean): number; }