23 lines
717 B
TypeScript
23 lines
717 B
TypeScript
import Geometry from '../base';
|
|
import { LabelItem } from './interface';
|
|
import PolarLabel from './polar';
|
|
/**
|
|
* 饼图 label
|
|
*/
|
|
export default class PieLabel extends PolarLabel {
|
|
defaultLayout: string;
|
|
constructor(geometry: Geometry);
|
|
protected getDefaultLabelCfg(): any;
|
|
protected getDefaultOffset(offset: any): any;
|
|
protected getLabelRotate(angle: number, offset: number, isLabelLimit: boolean): any;
|
|
protected getLabelAlign(point: LabelItem): any;
|
|
protected getArcPoint(point: any): any;
|
|
protected getPointAngle(point: any): any;
|
|
protected getCirclePoint(angle: any, offset: any, p?: any): {
|
|
angle: any;
|
|
r: any;
|
|
x: number;
|
|
y: number;
|
|
};
|
|
}
|