@awayjs/scene
Version:
AwayJS scene classes
29 lines (26 loc) • 786 B
text/typescript
/**
* The TextFormatAlign class provides values for text alignment in the
* TextFormat class.
*/
export class TextFormatAlign {
/**
* Constant; centers the text in the text field. Use the syntax
* <code>TextFormatAlign.CENTER</code>.
*/
public static CENTER: string = 'center';
/**
* Constant; justifies text within the text field. Use the syntax
* <code>TextFormatAlign.JUSTIFY</code>.
*/
public static JUSTIFY: string = 'justify';
/**
* Constant; aligns text to the left within the text field. Use the syntax
* <code>TextFormatAlign.LEFT</code>.
*/
public static LEFT: string = 'left';
/**
* Constant; aligns text to the right within the text field. Use the syntax
* <code>TextFormatAlign.RIGHT</code>.
*/
public static RIGHT: string = 'right';
}