Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Implements

Index

Constructors

constructor

Properties

alphabet

alphabet: string = ''

caseInsensitive

caseInsensitive: boolean = false

flipHorizontal

flipHorizontal: boolean = false

Gets or sets the flipHorizontal, which will flip the graphic horizontally (across the y axis)

flipVertical

flipVertical: boolean = false

Gets or sets the flipVertical, which will flip the graphic vertically (across the x axis)

Readonly id

id: number = ...

opacity

opacity: number = 1

Gets or sets the opacity of the graphic, 0 is transparent, 1 is solid (opaque).

origin

origin: Vector = null

Gets or sets the origin of the graphic, if not set the center of the graphic is the origin

rotation

rotation: number = 0

Gets or sets the rotation of the graphic

scale

scale: Vector = Vector.One

Gets or sets the scale of the graphic, this affects the width and

shadow

shadow: { offset: Vector } = null

Type declaration

showDebug

showDebug: boolean = false

Gets or sets wether to show debug information about the graphic

spacing

spacing: number = 0

spriteSheet

spriteSheet: SpriteSheet

Accessors

height

  • get height(): number
  • set height(value: number): void
  • Gets or sets the height of the graphic (always positive)

    Returns number

  • Gets or sets the height of the graphic (always positive)

    Parameters

    • value: number

    Returns void

localBounds

  • Gets a copy of the bounds in pixels occupied by the graphic on the the screen. This includes scale.

    Returns BoundingBox

width

  • get width(): number
  • set width(value: number): void
  • Gets or sets the width of the graphic (always positive)

    Returns number

  • Gets or sets the width of the graphic (always positive)

    Parameters

    • value: number

    Returns void

Methods

Protected _drawImage

Protected _flip

Protected _postDraw

Protected _preDraw

Protected _rotate

clone

cloneGraphicOptions

draw

render

updateText

  • updateText(text: string): void

Static fromLegacySpriteFont