Skip to content

Commit

Permalink
update for Maker.js 0.2.3
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarshall committed Jul 20, 2015
1 parent 3174d8c commit c5063eb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
3 changes: 2 additions & 1 deletion maker.js/makerjs-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
16 changes: 12 additions & 4 deletions maker.js/makerjs.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Project: https://github.com/Microsoft/maker.js
// Definitions by: Dan Marshall <https://github.com/danmarshall>
// Definitions: https://github.com/borisyankov/DefinitelyTyped

/**
* Root module for Maker.js.
*
Expand Down Expand Up @@ -94,10 +95,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.
Expand Down Expand Up @@ -425,6 +422,17 @@ 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.
*/
function breakAtPoint(pathToBreak: IPath, pointOfBreak: IPoint): IPath;
}
declare module MakerJs.paths {
/**
* Class for arc path.
Expand Down

0 comments on commit c5063eb

Please sign in to comment.