Options
All
  • Public
  • Public/Protected
  • All
Menu

Data for an entity's graphic.

Hierarchy

  • Component
    • Graphic

Indexable

[name: string]: any

Data for an entity's graphic.

Index

Properties

anchorX

anchorX: number

The graphic's X anchor coordinate, in pixels.

anchorY

anchorY: number

The graphic's Y anchor coordinate, in pixels.

color

color: number

The numeric color value for the graphic.

entity

entity: Entity

height

height: number

The height of the graphic, in pixels.

id

id: string

width

width: number

The width of the graphic, in pixels.

Static key

key: string = "graphic"

Static registered

registered: Boolean

Static serialize

serialize: Boolean

Static serializeFields

serializeFields: string[]

Static skipSerializeFields

skipSerializeFields: string[]

Static subbed

subbed: Boolean

Static typeName

typeName: string = "Graphic"

Accessors

key

  • set key(arg: string): any
  • Parameters

    • arg: string

    Returns any

type

  • get type(): string
  • Returns string

Methods

destroy

  • destroy(): void
  • Returns void

getObject

  • getObject(withIds?: undefined | false | true): IComponentObject
  • Parameters

    • Optional withIds: undefined | false | true

    Returns IComponentObject

init

  • init(initial: any): void
  • Parameters

    • initial: any

    Returns void

postDestroy

  • postDestroy(): void
  • Returns void

preDestroy

  • preDestroy(): void
  • Returns void

preInit

  • preInit(initial: any): any
  • Parameters

    • initial: any

    Returns any

update

  • update(values?: IComponentUpdate): void
  • Parameters

    • Optional values: IComponentUpdate

    Returns void

Object literals

Static properties

properties: object

anchorX

anchorX: number = 0

anchorY

anchorY: number = 0

color

color: number = 0

height

height: number = 0

width

width: number = 0

Generated using TypeDoc