UNPKG

@antv/g2

Version:

the Grammar of Graphics in Javascript

14 lines (13 loc) 394 B
import { Coordinate } from '@antv/coord'; import { Vector2 } from '../../../runtime'; import { LabelPosition } from './default'; /** * Only for Area label. */ export declare function area(position: LabelPosition, points: Vector2[], value: Record<string, any>, coordinate: Coordinate): { x: number; y: number; transform: string; textAlign: string; textBaseline: string; };