Home > @visualization-tools/cartesian-2d > Sorted2dUpdateStrategy
Sorts entities according to IScene2d and then batches entities to minimize draw calls. Respects ICompositeGraphicsComponent.groupUpdatesByEntity flag.
Signature:
export declare class Sorted2dUpdateStrategy<TPlotRange extends IPlotRange, TUpdateArg, TRequiredTraits> implements IPlotUpdateStrategy<IUpdate2dGroup<TPlotRange, TUpdateArg, TRequiredTraits>>
Implements: IPlotUpdateStrategy<IUpdate2dGroup<TPlotRange, TUpdateArg, TRequiredTraits>>
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(plot, updateGroup, scene, getUserTransform) | Constructs a new instance of the Sorted2dUpdateStrategy class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| updateGroup | IUpdate2dGroup<TPlotRange, TUpdateArg, TRequiredTraits> |
| Method | Modifiers | Description |
|---|---|---|
| update(canvasDims, renderer) |