visualization-tools

Home > @visualization-tools/core > CanvasRenderer

CanvasRenderer class

Canvas implementation of IRenderer.

Signature:

export declare class CanvasRenderer implements ICanvasRenderer 

Implements: ICanvasRenderer

Constructors

Constructor Modifiers Description
(constructor)(context, callbacks)   Constructs a new instance of the CanvasRenderer class

Properties

Property Modifiers Type Description
componentRendererFactory   IComponentRendererFactory<{}, ICanvasComponentRenderer>  
componentRendererProvider   IComponentRendererProvider<ICanvasComponentRenderer>  
context   CanvasRenderingContext2D  
graphicsComponents   GraphicsComponentStore<ICanvasComponentRenderer>  
sharedState   CanvasRendererSharedState  
TComponentRenderer   ICanvasComponentRenderer  
transformComponents   ITransformComponentStore<ICanvasComponentRenderer>  

Methods

Method Modifiers Description
createOne(context, callbacks) static  
destroyBuffers()    
initializeBuffers()    
onAfterPlotDraw()    
onBeforePlotDraw(plot, canvasDims)    
onContextLost()    
onContextRegained(context)