@antv/g2
Version:
the Grammar of Graphics in Javascript
8 lines (7 loc) • 355 B
TypeScript
import { BBox, IGroup, IShape } from '../../../dependents';
import { LabelItem } from '../interface';
/**
* @ignore
* 根据图形元素以及 label 的 bbox 进行调整,如果 label 超出了 shape 的 bbox 则不展示
*/
export declare function limitInShape(items: LabelItem[], labels: IGroup[], shapes: IShape[] | IGroup[], region: BBox): void;