visualization-tools

Home > @visualization-tools/cartesian-2d > SharedInterleavedLine2dHitTestComponent

SharedInterleavedLine2dHitTestComponent class

Where an entity makes use of shared buffers it can be indexed natively, potentially providing a significant performance boost. Otherwise equivalent to InterleavedLine2dHitTestComponent.

Signature:

export declare class SharedInterleavedLine2dHitTestComponent<TArray extends TTypedArray> implements IHitTestComponent<ICartesian2dUpdateArg<TArray>, THitTestableSharedInterleavedPoint2dTrait<TArray>, TCartesianSharedQuadTree<TArray>>, IRefCountedObject 

Implements: IHitTestComponent<ICartesian2dUpdateArg<TArray>, THitTestableSharedInterleavedPoint2dTrait<TArray>, TCartesianSharedQuadTree<TArray>>, IRefCountedObject

Constructors

Constructor Modifiers Description
(constructor)(indexer)   Constructs a new instance of the SharedInterleavedLine2dHitTestComponent class

Properties

Property Modifiers Type Description
sharedObject   ILinkedReferenceCounter  

Methods

Method Modifiers Description
createOne(emscriptenModule, ctor) static  
hitTest(entity, indexOfFirstPoint, cssPosition, updateArg)    
index(entity, updateArg, tree)