Home > @visualization-tools/core > IGraphAttachPoint
Wrapper of DOM element that contains the chart, houses hidden canvases as required.
Signature:
export interface IGraphAttachPoint
| Property | Type | Description |
|---|---|---|
| canvasDims | ICanvasDimensions | |
| canvasElement | HTMLCanvasElement | |
| hiddenElement | HTMLDivElement |
| 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. |