UNPKG

595 BTypeScriptView Raw
1import { Coordinate } from '@antv/coord';
2import { IGroup } from '@antv/g-base';
3/** label 的必要配置 */
4declare type Cfg = {
5 data: any;
6 origin: any;
7 animateCfg: any;
8 coordinate: Coordinate;
9};
10/**
11 * @desc 更新 label (目前没有根据 id 索引,还是会存在一点小问题的,只能根据 idx 索引)
12 * @done shape 属性更新
13 * @done shape delete
14 * @done shape append
15 *
16 * @param fromShape old labelShape
17 * @param toShape new labelShape
18 * @param cfg
19 */
20export declare function updateLabel(fromShape: IGroup, toShape: IGroup, cfg: Cfg): void;
21export {};