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

80 lines
1.9 KiB
TypeScript
Raw Normal View History

2023-09-14 14:47:11 +08:00
import { Coordinate } from '../dependents';
import { Point } from '../interface';
/**
* @ignore
* Gets x dimension length
* @param coordinate
* @returns x dimension length
*/
export declare function getXDimensionLength(coordinate: any): number;
/**
* @ignore
* Determines whether full circle is
* @param coordinate
* @returns true if full circle
*/
export declare function isFullCircle(coordinate: Coordinate): boolean;
/**
* @ignore
*
* @param coordinate
* @param point
* @returns distance to center
*/
export declare function getDistanceToCenter(coordinate: Coordinate, point: Point): number;
/**
* @ignore
*
* @param coordinate
* @param point
*/
export declare function isPointInCoordinate(coordinate: Coordinate, point: Point): boolean;
/**
* @ignore
* 线
*/
export declare function getAngleByPoint(coordinate: Coordinate, point: Point): number;
/**
* @ignore
*
* @param coordinate
* @returns
*/
export declare function getCoordinateClipCfg(coordinate: Coordinate, margin?: number): {
type: string;
startState: {
path: (string | number)[][];
x?: undefined;
y?: undefined;
width?: undefined;
height?: undefined;
};
endState: (ratio: any) => {
path: (string | number)[][];
};
attrs: {
path: (string | number)[][];
x?: undefined;
y?: undefined;
width?: undefined;
height?: undefined;
};
} | {
type: string;
startState: {
x: number;
y: number;
width: number;
height: number;
path?: undefined;
};
endState: any;
attrs: {
x: number;
y: number;
width: number;
height: number;
path?: undefined;
};
};