Hierarchy

  • GraphicsComponentOptions

Properties

anchor?: Vector

Optional anchor

copyGraphics?: boolean

Optionally copy instances of graphics by calling .clone(), you may set this to false to avoid sharing graphics when added to the component for performance reasons. By default graphics are not copied and are shared when added to the component.

current?: string

Name of current graphic to use

graphics?: {
    [graphicName: string]: Graphic;
}

List of graphics

Type declaration

offset?: Vector

Optional offset in absolute pixels to shift all graphics in this component from each graphic's anchor (default is top left corner)

onPostDraw?: ((ex: ExcaliburGraphicsContext, elapsed: number) => void)

Type declaration

onPreDraw?: ((ex: ExcaliburGraphicsContext, elapsed: number) => void)

Type declaration

opacity?: number

Optional opacity

visible?: boolean

Optional visible flag, if the graphics component is not visible it will not be displayed