@antv/g2
Version:
the Grammar of Graphics in Javascript
10 lines (9 loc) • 371 B
TypeScript
import { BBox, IGroup, IShape } from '../../../dependents';
import { LabelItem } from '../interface';
/**
* @ignore
* 将 label 限制在画布范围内,简单得将超出画布的 label 往画布内调整
* @param labels
* @param cfg
*/
export declare function limitInCanvas(items: LabelItem[], labels: IGroup[], shapes: IShape[] | IGroup[], region: BBox): void;