@fortune-sheet/core
Version:
FortuneSheet is a drop-in javascript spreadsheet library that provides rich features like Excel and Google Sheets
18 lines (17 loc) • 1.14 kB
TypeScript
import { Context } from "../context";
import { Sheet } from "../types";
export * from "./patch";
export declare function generateRandomSheetName(file: Sheet[], isPivotTable: boolean, ctx: Context): string;
export declare function rgbToHex(color: string): string;
export declare function indexToColumnChar(n: number): string;
export declare function columnCharToIndex(a: string): number;
export declare function escapeScriptTag(str: string): string;
export declare function escapeHTMLTag(str: string): string;
export declare function getSheetIndex(ctx: Context, id: string): number | null;
export declare function getSheetIdByName(ctx: Context, name: string): string | null | undefined;
export declare function getSheetByIndex(ctx: Context, id: string): Sheet | null;
export declare function getNowDateTime(format: number): string;
export declare function replaceHtml(temp: string, dataarry: any): string;
export declare function getRegExpStr(str: string): string;
export declare function chatatABC(n: number): string;
export declare function isAllowEdit(ctx: Context, range?: Sheet["luckysheet_select_save"]): boolean;