NuclearDispersionSystem/ant-design-vue-jeecg/node_modules/@antv/g2/esm/util/graphics.d.ts

59 lines
1.7 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { Coordinate, IShape } from '../dependents';
import { ShapeInfo } from '../interface';
/**
* @ignore
*
* @param centerX
* @param centerY
* @param radius
* @param angleInRadian
* @returns
*/
export declare function polarToCartesian(centerX: number, centerY: number, radius: number, angleInRadian: number): {
x: number;
y: number;
};
/**
* @ignore
* path
* @param centerX
* @param centerY
* @param radius
* @param startAngleInRadian
* @param endAngleInRadian
* @returns
*/
export declare function getSectorPath(centerX: number, centerY: number, radius: number, startAngleInRadian: number, endAngleInRadian: number, innerRadius?: number): (string | number)[][];
/**
* @ignore
* Gets arc path
* @param centerX
* @param centerY
* @param radius
* @param startAngleInRadian
* @param endAngleInRadian
* @returns
*/
export declare function getArcPath(centerX: number, centerY: number, radius: number, startAngleInRadian: number, endAngleInRadian: number): (string | number)[][];
/**
* @ignore
* points
* @param shapeModel
* @param coordinate
* @returns
*/
export declare function getAngle(shapeModel: ShapeInfo, coordinate: Coordinate): {
startAngle: any;
endAngle: any;
};
/**
* @ignore
* 计算多边形重心: https://en.wikipedia.org/wiki/Centroid#Of_a_polygon
*/
export declare function getPolygonCentroid(xs: number | number[], ys: number | number[]): number[];
/**
* @ignore
* undefined
*/
export declare function getReplaceAttrs(sourceShape: IShape, targetShape: IShape): any;