NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/esm/geometry/label/index.d.ts

39 lines
1.4 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { BBox, IGroup, IShape } from '../../dependents';
import { LooseObject } from '../../interface';
import { GeometryLabelConstructor } from './base';
import { LabelItem } from './interface';
/**
* label
* @param items label
* @param labels labels
* @param shapes label
* @param region
* @param cfg
*/
declare type GeometryLabelsLayoutFn = (items: LabelItem[], labels: IGroup[], shapes: IShape[] | IGroup[], region: BBox, cfg?: LooseObject) => void;
/**
* `type` [[GeometryLabel]]
* @param type
* @returns
*/
export declare function getGeometryLabel(type: string): GeometryLabelConstructor;
/**
* GeometryLabel
* @param type GeometryLabel
* @param ctor GeometryLabel
*/
export declare function registerGeometryLabel(type: string, ctor: GeometryLabelConstructor): void;
/**
* `type` [[GeometryLabelsLayoutFn]] label
* @param type
* @returns
*/
export declare function getGeometryLabelLayout(type: string): GeometryLabelsLayoutFn;
/**
* label
* @param type label
* @param layoutFn label
*/
export declare function registerGeometryLabelLayout(type: string, layoutFn: GeometryLabelsLayoutFn): void;
export {};