mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #4983 from danmarshall/master
update for Maker.js 0.2.3
This commit is contained in:
@@ -75,7 +75,8 @@ function test() {
|
||||
];
|
||||
}
|
||||
|
||||
function testPath() {
|
||||
function testPath() {
|
||||
makerjs.path.breakAtPoint(paths.arc, [0,0]).type;
|
||||
makerjs.path.intersection(paths.circle, paths.arc).intersectionPoints;
|
||||
makerjs.path.mirror(paths.arc, true, true);
|
||||
makerjs.path.moveRelative(paths.circle, [0,0]);
|
||||
|
||||
Vendored
+13
-5
@@ -94,10 +94,6 @@ declare module MakerJs {
|
||||
* The main point of reference for this path.
|
||||
*/
|
||||
origin: IPoint;
|
||||
/**
|
||||
* Optional CSS style properties to be emitted into SVG. Useful for creating guidelines and debugging your model.
|
||||
*/
|
||||
cssStyle?: string;
|
||||
}
|
||||
/**
|
||||
* Test to see if an object implements the required properties of a path.
|
||||
@@ -425,6 +421,18 @@ declare module MakerJs.path {
|
||||
*/
|
||||
function scale(pathToScale: IPath, scaleValue: number): IPath;
|
||||
}
|
||||
declare module MakerJs.path {
|
||||
/**
|
||||
* Breaks a path in two. The supplied path will end at the supplied pointOfBreak,
|
||||
* a new path is returned which begins at the pointOfBreak and ends at the supplied path's initial end point.
|
||||
* For Circle, the original path will be converted in place to an Arc, and null is returned.
|
||||
*
|
||||
* @param pathToBreak The path to break.
|
||||
* @param pointOfBreak The point at which to break the path.
|
||||
* @returns A new path of the same type, when path type is line or arc. Returns null for circle.
|
||||
*/
|
||||
function breakAtPoint(pathToBreak: IPath, pointOfBreak: IPoint): IPath;
|
||||
}
|
||||
declare module MakerJs.paths {
|
||||
/**
|
||||
* Class for arc path.
|
||||
@@ -661,7 +669,7 @@ declare module MakerJs.path {
|
||||
*
|
||||
* @param path1 First path to find intersection.
|
||||
* @param path2 Second path to find intersection.
|
||||
* @result IPathIntersection object, with points(s) of intersection (and angles, when a path is an arc or circle); or null if the paths did not intersect.
|
||||
* @returns IPathIntersection object, with points(s) of intersection (and angles, when a path is an arc or circle); or null if the paths did not intersect.
|
||||
*/
|
||||
function intersection(path1: IPath, path2: IPath): IPathIntersection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user