Home > @visualization-tools/core > IGraphicsComponent
Base graphics component.
Signature:
export interface IGraphicsComponent<TComponentRenderer extends TUnknownComponentRenderer, TUpdateArg, TEntityTraits> extends IGraphicsComponentSpecification<TComponentRenderer>
Extends: IGraphicsComponentSpecification<TComponentRenderer>
| Property | Type | Description |
|---|---|---|
| transform | ITransformProvider<TUnknownComponentRenderer, TUpdateArg, TEntityTraits> | |
| type | EGraphicsComponentType.Entity |
| Method | Description |
|---|---|
| initialize(componentRenderer) | |
| onBeforeUpdate(componentRenderer, updateArg) | Invariant by entity for a given frame, called either once or entity count times before update, depending on update strategy. |
| update(entity, componentRenderer, updateArg) | Called once per entity per frame. |