GraphicsComponentOptions
Index
Properties
optionalanchor
optionalcolor
Optionally set the color of the graphics component
optionalcopyGraphics
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.
optionalcurrent
Name of current graphic to use
optionalgraphics
List of graphics and optionally the options per graphic
Type declaration
[graphicName string]: Graphic | { graphic: Graphic; options?: GraphicsShowOptions }
optionalmaterial
Optionally set a material to use on the graphic
optionaloffset
Optional offset in absolute pixels to shift all graphics in this component from each graphic's anchor (default is top left corner)
optionalonPostDraw
Type declaration
Parameters
ex: ExcaliburGraphicsContext
elapsed: number
Returns void
optionalonPostTransformDraw
Type declaration
Parameters
ex: ExcaliburGraphicsContext
elapsed: number
Returns void
optionalonPreDraw
Type declaration
Parameters
ex: ExcaliburGraphicsContext
elapsed: number
Returns void
optionalonPreTransformDraw
Type declaration
Parameters
ex: ExcaliburGraphicsContext
elapsed: number
Returns void
optionalopacity
Optional opacity
optionalvisible
Optional visible flag, if the graphics component is not visible it will not be displayed
Optional anchor