mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Moved IPathIntersection into root module
This commit is contained in:
Vendored
+21
-21
@@ -188,6 +188,27 @@ declare module MakerJs {
|
||||
Circle: string;
|
||||
Arc: string;
|
||||
};
|
||||
/**
|
||||
* An intersection of two paths.
|
||||
*/
|
||||
interface IPathIntersection {
|
||||
/**
|
||||
* Array of points where the two paths intersected. The length of the array may be either 1 or 2 points.
|
||||
*/
|
||||
intersectionPoints: IPoint[];
|
||||
/**
|
||||
* This Array property will only be defined if the first parameter passed to pathIntersection is either an Arc or a Circle.
|
||||
* It contains the angles of intersection relative to the first path parameter.
|
||||
* The length of the array may be either 1 or 2.
|
||||
*/
|
||||
path1Angles?: number[];
|
||||
/**
|
||||
* This Array property will only be defined if the second parameter passed to pathIntersection is either an Arc or a Circle.
|
||||
* It contains the angles of intersection relative to the second path parameter.
|
||||
* The length of the array may be either 1 or 2.
|
||||
*/
|
||||
path2Angles?: number[];
|
||||
}
|
||||
interface IPathMap {
|
||||
[id: string]: IPath;
|
||||
}
|
||||
@@ -635,27 +656,6 @@ declare module MakerJs.solvers {
|
||||
function solveTriangleASA(oppositeAngleInDegrees: number, lengthOfSideBetweenAngles: number, otherAngleInDegrees: number): number;
|
||||
}
|
||||
declare module MakerJs.path {
|
||||
/**
|
||||
* An intersection of two paths.
|
||||
*/
|
||||
interface IPathIntersection {
|
||||
/**
|
||||
* Array of points where the two paths intersected. The length of the array may be either 1 or 2 points.
|
||||
*/
|
||||
intersectionPoints: IPoint[];
|
||||
/**
|
||||
* This Array property will only be defined if the first parameter passed to pathIntersection is either an Arc or a Circle.
|
||||
* It contains the angles of intersection relative to the first path parameter.
|
||||
* The length of the array may be either 1 or 2.
|
||||
*/
|
||||
path1Angles?: number[];
|
||||
/**
|
||||
* This Array property will only be defined if the second parameter passed to pathIntersection is either an Arc or a Circle.
|
||||
* It contains the angles of intersection relative to the second path parameter.
|
||||
* The length of the array may be either 1 or 2.
|
||||
*/
|
||||
path2Angles?: number[];
|
||||
}
|
||||
/**
|
||||
* Find the point(s) where 2 paths intersect.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user