Interface IBodyTextRender

Hierarchy

Properties

fillStyle: string

A String that defines the fill style to use when rendering the body (if a sprite is not defined). It is the same as when using a canvas, so it accepts CSS style property values. Default: a random colour

lineWidth: number

A Number that defines the line width to use when rendering the body outline (if a sprite is not defined). A value of 0 means no outline will be rendered.

Default

1.5
opacity: number
strokeStyle: string

A String that defines the stroke style to use when rendering the body outline (if a sprite is not defined). It is the same as when using a canvas, so it accepts CSS style property values. Default: a random colour

text: {
    align: CanvasTextAlign;
    color: string;
    content: string;
    font: string;
    isBold: boolean;
    isStroke: boolean;
    paddingX: number;
    paddingY: number;
    size: number;
}

Type declaration

  • align: CanvasTextAlign

    Default

    'center'
    
  • color: string

    Default

    '#000000'
    
  • content: string

    Text body to be displayed

  • font: string

    Default

    'Arial'
    
  • isBold: boolean

    Default

    false
    
  • isStroke: boolean

    Default

    false
    
  • paddingX: number

    Default

    0
    
  • paddingY: number

    Default

    0
    
  • size: number

    Default

    16
    
visible: boolean

A flag that indicates if the body should be rendered.

Default

true

Generated using TypeDoc