UNPKG

@fortune-sheet/core

Version:

FortuneSheet is a drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets

37 lines (36 loc) 1.45 kB
import { Context } from "../context"; import { CellMatrix, SearchResult, GlobalCache } from "../types"; export declare function getSearchIndexArr(searchText: string, range: { row: number[]; column: number[]; }[], flowdata: CellMatrix, { regCheck, wordCheck, caseCheck }?: { regCheck: boolean; wordCheck: boolean; caseCheck: boolean; }): { r: number; c: number; }[]; export declare function searchNext(ctx: Context, searchText: string, checkModes: { regCheck: boolean; wordCheck: boolean; caseCheck: boolean; }): string | null; export declare function searchAll(ctx: Context, searchText: string, checkModes: { regCheck: boolean; wordCheck: boolean; caseCheck: boolean; }): SearchResult[]; export declare function onSearchDialogMoveStart(globalCache: GlobalCache, e: MouseEvent, container: HTMLDivElement): void; export declare function onSearchDialogMove(globalCache: GlobalCache, e: MouseEvent): void; export declare function onSearchDialogMoveEnd(globalCache: GlobalCache): void; export declare function replace(ctx: Context, searchText: string, replaceText: string, checkModes: { regCheck: boolean; wordCheck: boolean; caseCheck: boolean; }): string | null; export declare function replaceAll(ctx: Context, searchText: string, replaceText: string, checkModes: { regCheck: boolean; wordCheck: boolean; caseCheck: boolean; }): string;