visualization-tools

Home > @visualization-tools/core > IEntityCategoryWrite > addEntity

IEntityCategoryWrite.addEntity() method

Signature:

addEntity<TGraphicsTraits extends object, TCategoryTraits extends object>(entity: IChartEntity<TUpdateArg> & TGraphicsTraits & TCategoryTraits & TRequiredTraits, graphicsComponent: TGraphicsComponent<TComponentRenderer, TUpdateArg, TGraphicsTraits>, hooks?: IEntityChangeHooks<TCategoryTraits>): void;

Parameters

Parameter Type Description
entity IChartEntity<TUpdateArg> & TGraphicsTraits & TCategoryTraits & TRequiredTraits  
graphicsComponent TGraphicsComponent<TComponentRenderer, TUpdateArg, TGraphicsTraits>  
hooks IEntityChangeHooks<TCategoryTraits>  

Returns:

void