UNPKG

@nfdi4plants/swate-components

Version:

Customizable React components for ontology annotation, based on Swate and the ARC.

73 lines 3.38 kB
import { uint32, int32 } from '@fable-org/fable-library-js/Int32.js'; import { TypeInfo } from '@fable-org/fable-library-js/Reflection.js'; export declare const CellReference_indexRegex: RegExp; /** * Transforms excel column string indices (e.g. A, B, Z, AA, CD) to index number (starting with A = 1). */ export declare function CellReference_colAdressToIndex(columnAdress: string): uint32; /** * Transforms number index to excel column string indices (e.g. A, B, Z, AA, CD) (starting with A = 1). */ export declare function CellReference_indexToColAdress(i: uint32): string; /** * Maps 1 based column and row indices to "A1" style reference. */ export declare function CellReference_ofIndices(column: uint32, row: uint32): string; /** * Maps a "A1" style excel cell reference to a column * row index tuple (1 Based indices). */ export declare function CellReference_toIndices(reference: string): [uint32, uint32]; /** * Maps a "A1" style excel cell reference to a column (1 Based indices). */ export declare function CellReference_toColIndex(reference: string): uint32; /** * Maps a "A1" style excel cell reference to a row (1 Based indices). */ export declare function CellReference_toRowIndex(reference: string): uint32; /** * Sets the column index (1 Based indices) of a "A1" style excel cell reference. */ export declare function CellReference_setColIndex(colI: uint32, reference: string): string; /** * Sets the row index (1 Based indices) of a "A1" style excel cell reference. */ export declare function CellReference_setRowIndex(rowI: uint32, reference: string): string; /** * Changes the column portion of a "A1"-style reference by the given amount (positive amount = increase and vice versa). */ export declare function CellReference_moveHorizontal(amount: int32, reference: string): string; /** * Changes the row portion of a "A1"-style reference by the given amount (positive amount = increase and vice versa). */ export declare function CellReference_moveVertical(amount: int32, reference: string): string; export declare class FsAddress { _fixedRow: boolean; _fixedColumn: boolean; _rowNumber: int32; _columnNumber: int32; _trimmedAddress: string; constructor(rowNumber: int32, columnNumber: int32, fixedRow?: boolean, fixedColumn?: boolean); static fromString(cellAddressString: string, fixedRow?: boolean, fixedColumn?: boolean): FsAddress; get ColumnNumber(): int32; set ColumnNumber(colI: int32); get RowNumber(): int32; set RowNumber(rowI: int32); get Address(): string; set Address(address: string); get FixedRow(): boolean; get FixedColumn(): boolean; Copy(): FsAddress; static copy(address: FsAddress): FsAddress; UpdateIndices(rowIndex: int32, colIndex: int32): void; static updateIndices(rowIndex: int32, colIndex: int32, address: FsAddress): FsAddress; ToIndices(): [int32, int32]; static toIndices(address: FsAddress): [int32, int32]; Compare(address: FsAddress): boolean; static compare(address1: FsAddress, address2: FsAddress): boolean; GetHashCode(): int32; Equals(other: any): boolean; } export declare function FsAddress_$reflection(): TypeInfo; export declare function FsAddress_$ctor_42410CA0(rowNumber: int32, columnNumber: int32, fixedRow?: boolean, fixedColumn?: boolean): FsAddress; //# sourceMappingURL=FsAddress.fs.d.ts.map