import { SKColor } from './SKColor'; /** * @description 段落文本分布方式 * @enum {number} */ declare enum SKAlignment { Left = 0, Right = 1, Center = 2, Justify = 3 } /** * 段落样式 */ export declare type SKParagraphStyle = { _class: 'paragraphStyle'; alignment: SKAlignment; allowsDefaultTighteningForTruncation: number; maximumLineHeight: number; paragraphSpacing: number; }; /** * 字体描述 */ export declare type SKFontDescriptor = { _class: 'fontDescriptor'; attributes: { name: string; size: number; }; }; declare enum SKTextTransformAttribute { Normal = 0, LowerCase = 1, UpperCase = 2 } export declare type SKAttributes = { MSAttributedStringFontAttribute: SKFontDescriptor; MSAttributedStringColorAttribute: SKColor; kerning: number; textStyleVerticalAlignmentKey: number; paragraphStyle: SKParagraphStyle; MSAttributedStringTextTransformAttribute: SKTextTransformAttribute; underlineStyle: number; strikethroughStyle: number; }; export declare type SKStringAttribute = { _class: 'stringAttribute'; location: number; length: number; attributes: SKAttributes; }; /** * 图层文本属性 */ export declare type SKAttributedString = { _class: 'attributedString'; string: string; attributes: SKStringAttribute[]; }; export {};