API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
interfaceTextStyle
@codexo/exojs-tilemap / tilemap / stable
Text styling options carried by a TextObject.
11
props
0
methods
0
events
Import
import { TextStyle } from '@codexo/exojs-tilemap'Text styling options carried by a TextObject.
Properties11
bold?: booleanBold text.
color?: null | numberText colour as 0xRRGGBB, or null if default.
fontFamily?: stringFont family name.
halign?: "center" | "justify" | "left" | "right"Horizontal alignment.
italic?: booleanItalic text.
pixelSize?: numberFont size in pixels.
strikeout?: booleanStrikeout text.
text: stringThe text content.
underline?: booleanUnderline text.
valign?: "bottom" | "center" | "top"Vertical alignment.
wrap?: booleanWrap text within the object bounds.
Source