import { ContentDefinition } from './content-definition' ; /**
 * Class that contains the global style definitions
 */ export abstract class StyleDefinition < T extends StyleDefinition < T , I > , I > extends ContentDefinition < T , I > { param size public fontSize ( size ) { this . content . fontSize = size ; return this as any ; } param size public width ( size ) { this . content . width = size ; return this as any ; } param size public height ( size ) { this . content . height = size ; return this as any ; } param align public alignment ( align ) { this . content . alignment = align ; return this as any ; } /**
     * Set bold text
     */ public bold ( ) { this . content . bold = true ; return this as any ; } /**
     * Set italics text
     */ public italics ( ) { this . content . italics = true ; return this as any ; } param margin public margin ( margin ) { this . content . margin = margin ; return this as any ; } /**
     * Set a style
     */ public style ( style ) { this . content . style = style ; return this as any ; } /**
     * Set a color
     */ public color ( color ) { this . content . color = color ; return this as any ; } /**
     * Set a background
     */ public background ( background ) { this . content . background = background ; return this as any ; } /**
     * Set a link
     */ public link ( link ) { this . content . link = link ; return this as any ; } /**
     * Set a link to any page
     */ public linkToPage ( page ) { this . content . linkToPage = page ; return this as any ; } /**
     * Set noWrap
     */ public noWrap ( ) { this . content . noWrap = true ; return this as any ; } /**
     * Set decoration
     */ public decoration ( decoration ) { this . content . decoration = decoration ; return this as any ; } /**
     * Set decorationStyle
     */ public decorationStyle ( decorationStyle ) { this . content . decorationStyle = decorationStyle ; return this as any ; } /**
     * Set decorationColor
     */ public decorationColor ( decorationColor ) { this . content . decorationColor = decorationColor ; return this as any ; } /**
     * Set fontFeatures
     */ public fontFeatures ( fontFeatures ) { this . content . fontFeatures = fontFeatures ; return this as any ; } param fontName public font ( fontName ) { this . content . font = fontName ; return this as any ; } param x param y public absolutePosition ( x , y ) { this . content . absolutePosition = { x , y } ; return this as any ; } param x param y public relativePosition ( x , y ) { this . content . relativePosition = { x , y } ; return this as any ; } param height public lineHeight ( height ) { this . content . lineHeight = height ; return this as any ; } param spacing public characterSpacing ( spacing ) { this . content . characterSpacing = spacing ; return this as any ; } }