UNPKG

sketch-constructor

Version:

Read/write/manipulate Sketch files in Node without Sketch plugins!

38 lines (29 loc) 815 B
import Color from '../Color'; import ParagraphStyle = require('../ParagraphStyle'); // import { textAlignmentMap, verticalAlignmentMap } from '../../utils/maps'; declare class TextStyle { _class: 'textStyle'; encodedAttributes: { MSAttributedStringFontAttribute: { _class: 'fontDescriptor'; attributes: { name: string; size: number; }; }; MSAttributedStringColorAttribute: Color; textStyleVerticalAlignmentKey: number; underlineStyle: number; strikethroughStyle: number; kerning: number; paragraphStyle: ParagraphStyle; }; verticalAlignment: number; constructor(args?: any, json?: any); getColor(): Color; getFontSize(): number; getFontName(): string; getLineHeight(): number; getKerning(): number; } export = TextStyle;