mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Simplify injection separation by using multiple arguments to extend().
This commit is contained in:
parent
5850ef3cfc
commit
e6dc189310
1 changed files with 2 additions and 5 deletions
|
@ -367,11 +367,8 @@ Path = PathItem.extend({
|
||||||
if (this.strokeColor) ctx.stroke();
|
if (this.strokeColor) ctx.stroke();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
}, new function() { // inject methods that require scoped privates
|
||||||
|
/**
|
||||||
// Now inject methods that require scoped private functions and values.
|
|
||||||
Path.inject(new function() {
|
|
||||||
/**
|
|
||||||
* Solves a tri-diagonal system for one of coordinates (x or y) of first
|
* Solves a tri-diagonal system for one of coordinates (x or y) of first
|
||||||
* bezier control points.
|
* bezier control points.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue