1 | import { Coordinate } from '../dependents';
|
2 | import { Point } from '../interface';
|
3 | import { BBox } from './bbox';
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare function getXDimensionLength(coordinate: any): number;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | export declare function isFullCircle(coordinate: Coordinate): boolean;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export declare function getDistanceToCenter(coordinate: Coordinate, point: Point): number;
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function isPointInCoordinate(coordinate: Coordinate, point: Point): boolean;
|
33 |
|
34 |
|
35 |
|
36 |
|
37 | export declare function getAngleByPoint(coordinate: Coordinate, point: Point): number;
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | export declare function getCoordinateClipCfg(coordinate: Coordinate, margin?: number): {
|
45 | type: string;
|
46 | startState: {
|
47 | path: (string | number)[][];
|
48 | x?: undefined;
|
49 | y?: undefined;
|
50 | width?: undefined;
|
51 | height?: undefined;
|
52 | };
|
53 | endState: (ratio: any) => {
|
54 | path: (string | number)[][];
|
55 | };
|
56 | attrs: {
|
57 | path: (string | number)[][];
|
58 | x?: undefined;
|
59 | y?: undefined;
|
60 | width?: undefined;
|
61 | height?: undefined;
|
62 | };
|
63 | } | {
|
64 | type: string;
|
65 | startState: {
|
66 | x: number;
|
67 | y: number;
|
68 | width: number;
|
69 | height: number;
|
70 | path?: undefined;
|
71 | };
|
72 | endState: any;
|
73 | attrs: {
|
74 | x: number;
|
75 | y: number;
|
76 | width: number;
|
77 | height: number;
|
78 | path?: undefined;
|
79 | };
|
80 | };
|
81 |
|
82 |
|
83 |
|
84 |
|
85 |
|
86 | export declare function getCoordinateBBox(coordinate: Coordinate, margin?: number): BBox;
|