mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Avoid accidental global leakage.
This commit is contained in:
parent
75adbd0adc
commit
02ca95eb46
3 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@
|
|||
* test. It is returned by {@link Item#hitTest(point)} and
|
||||
* {@link Project#hitTest(point)}.
|
||||
*/
|
||||
HitResult = Base.extend(/** @lends HitResult# */{
|
||||
var HitResult = this.HitResult = Base.extend(/** @lends HitResult# */{
|
||||
initialize: function(type, item, values) {
|
||||
this.type = type;
|
||||
this.item = item;
|
||||
|
|
|
@ -602,7 +602,7 @@ statics: {
|
|||
// same quadratic roots.
|
||||
var a = 3 * (v1 - v2) - v0 + v3,
|
||||
b = 2 * (v0 + v2) - 4 * v1,
|
||||
c = v1 - v0;
|
||||
c = v1 - v0,
|
||||
count = Numerical.solveQuadratic(a, b, c, roots,
|
||||
/*#=*/ Numerical.TOLERANCE),
|
||||
// Add some tolerance for good roots, as t = 0 / 1 are added
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
* {@link PathItem#getIntersections(path)},
|
||||
* etc.
|
||||
*/
|
||||
CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
||||
var CurveLocation = this.CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
||||
// DOCS: CurveLocation class description: add these back when the mentioned
|
||||
// functioned have been added: {@link Path#split(location)}
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue