@hufe921/canvas-editor
Version:
rich text editor by canvas/svg
14 lines (13 loc) • 400 B
TypeScript
import { TextDecorationStyle } from '../dataset/enum/Text';
export interface ITextMetrics {
width: number;
actualBoundingBoxAscent: number;
actualBoundingBoxDescent: number;
actualBoundingBoxLeft: number;
actualBoundingBoxRight: number;
fontBoundingBoxAscent: number;
fontBoundingBoxDescent: number;
}
export interface ITextDecoration {
style?: TextDecorationStyle;
}