@sheetxl/models
Version:
Models - A Headless javascript spreadsheet library.
53 lines • 1.71 kB
TypeScript
import { SerializableProperties } from "../primitives";
import { HorizontalAlignment, VerticalAlignment, TextOverflow, ReadingDirection } from "../text/types";
export interface CellAlignmentValues {
/**
* Types of horizontal alignment
*/
horizontal: HorizontalAlignment;
/**
* Types of horizontal alignment
*/
vertical: VerticalAlignment;
/**
* An integer value, where an increment of 1 represents 3 spaces.
* Indicates the number of spaces (of the normal style font) of indentation for text in a cell.
*
* @remarks
*
* Note - This is only applied for alignments: left, right, and distributed
*/
indent: number;
/**
* Indicates additional number of spaces of indentation to adjust for text in a cell.
*/
relativeIndent: number;
/**
* The behavior for text that does not fit with the cell bounds.
* @see {@link TextOverflow}
*/
overflow: TextOverflow;
/**
* Rotation of the text.
* @defaultValue 0
*/
rotation: number;
/**
* If the text should stack vertically instead of horizontally.
*/
stacked: boolean;
/**
* If the cells justified or distributed alignment should be used on the last line of text.
* (This is typical for East Asian alignments but not typical in other contexts.)
*/
justifyLastLine: boolean;
/**
* The direction the cell is being read
*/
readingDirection: ReadingDirection;
}
export interface ICellAlignment extends Readonly<CellAlignmentValues> {
readonly isICellAlignment: true;
toJSON(): SerializableProperties<CellAlignmentValues>;
}
//# sourceMappingURL=ICellAlignment.d.ts.map