autoWrap.d.ts 349 B

123456
  1. import type { Text } from '../../../shapes';
  2. import { AxisStyleProps, WrapOverlapCfg } from '../types';
  3. export type Utils = {
  4. wrap: (label: Text, wordWrapWidth: number, maxLines?: number, textBaseline?: string) => void;
  5. };
  6. export default function wrapLabels(labels: Text[], overlapCfg: WrapOverlapCfg, attr: AxisStyleProps, utils: Utils): void;