UNPKG

ag-charts-enterprise

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

22 lines (21 loc) 930 B
import type { _ModuleSupport } from 'ag-charts-community'; export declare function preferredLabelCenter(polygons: _ModuleSupport.Position[][], { aspectRatio, precision }: { aspectRatio: number; precision: number; }): { x: number; y: number; maxWidth: number; } | undefined; export declare function maxWidthOfRectConstrainedByCenterAndAspectRatioToLineSegment(a: _ModuleSupport.Position, b: _ModuleSupport.Position, cx: number, cy: number, aspectRatio: number): number; export declare function xExtentsOfRectConstrainedByCenterAndHeightToLineSegment(into: { minX: number; maxX: number; }, a: _ModuleSupport.Position, b: _ModuleSupport.Position, cx: number, cy: number, height: number): { minX: number; maxX: number; }; export declare function maxWidthInPolygonForRectOfHeight(polygons: _ModuleSupport.Position[][], cx: number, cy: number, height: number): { x: number; width: number; };