@plait/draw
Version:
Implementation of the core logic of the flowchart drawing tool plugin.
17 lines (16 loc) • 621 B
TypeScript
import { ShapeEngine } from '../../interfaces';
import { DrawTextInfo } from '../../generators/text.generator';
import { PlaitTable, PlaitTableCellWithPoints, PlaitTableDrawOptions } from '../../interfaces/table';
export declare const TableEngine: ShapeEngine<PlaitTable, PlaitTableDrawOptions, DrawTextInfo>;
export declare function getVerticalTextRectangle(cell: PlaitTableCellWithPoints): {
width: number;
height: number;
x: number;
y: number;
};
export declare function getHorizontalTextRectangle(cell: PlaitTableCellWithPoints): {
height: number;
width: number;
x: any;
y: number;
};