UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

23 lines 750 B
import { ChartDataTypes } from './interfaces'; import { ChartScale, NumericChartScale } from './scales'; export interface FormattedTick { position: number; space: number; lines: string[]; } export declare function formatTicks({ ticks, scale, getLabelSpace, tickFormatter }: { ticks: readonly ChartDataTypes[]; scale: ChartScale | NumericChartScale; getLabelSpace: (label: string) => number; tickFormatter?: (value: any) => string; }): FormattedTick[]; export declare function getVisibleTicks(ticks: readonly FormattedTick[], from: number, until: number, balanceTicks?: boolean): readonly FormattedTick[]; export declare function getSVGTextSize(element: null | SVGTextElement): undefined | { width: number; height: number; };