visualization-tools

Home > @visualization-tools/core > IGraphAttachPoint

IGraphAttachPoint interface

Wrapper of DOM element that contains the chart, houses hidden canvases as required.

Signature:

export interface IGraphAttachPoint 

Properties

Property Type Description
canvasDims ICanvasDimensions  
canvasElement HTMLCanvasElement  
hiddenElement HTMLDivElement  

Methods

Method Description
addHiddenElement(className, tagName)  
removeHiddenElement(className)  
resizeCanvas() Synchronizes the canvas’ actual size with the size set by attribute. Returns the updated size in both css and actual pixels.Do not call directly, call resize on the chart.
updateBoundingRects() Interaction handlers depend on the position of the element on the screen to determine the relative position of the cursor. This updates ICanvasDimensions.boundingRect on the current canvasDims.