UNPKG

ag-charts-enterprise

Version:

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

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