Home > @visualization-tools/core > IHitTestComponent > index
Where a hit test requires generating / modifying a data structure, this can be done here.
Signature:
index(entity: TEntityTrait<TUpdateArg, TTraits>, updateArg: TUpdateArg, componentState: TComponentState): void;
| Parameter | Type | Description |
|---|---|---|
| entity | TEntityTrait<TUpdateArg, TTraits> | The entity to index. |
| updateArg | TUpdateArg | Specific to the current plot type. |
| componentState | TComponentState | The data structure to update. |
Returns:
void