mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Remove Numerical.TOLERANCE
This commit is contained in:
parent
13accee9fd
commit
da52f1f685
2 changed files with 2 additions and 3 deletions
|
@ -1883,8 +1883,8 @@ new function() { // Injection scope for hit-test functions shared with project
|
||||||
: this.getGlobalMatrix().prepend(this.getView()._matrix),
|
: this.getGlobalMatrix().prepend(this.getView()._matrix),
|
||||||
// Calculate the transformed padding as 2D size that describes the
|
// Calculate the transformed padding as 2D size that describes the
|
||||||
// transformed tolerance circle / ellipse. Make sure it's never 0
|
// transformed tolerance circle / ellipse. Make sure it's never 0
|
||||||
// since we're using it for division.
|
// since we're using it for division (see checkBounds()).
|
||||||
tolerance = Math.max(options.tolerance, /*#=*/Numerical.TOLERANCE),
|
tolerance = Math.max(options.tolerance, /*#=*/Numerical.EPSILON),
|
||||||
// Hit-tests are performed in the item's local coordinate space.
|
// Hit-tests are performed in the item's local coordinate space.
|
||||||
// To calculate the correct 2D padding for tolerance, we therefore
|
// To calculate the correct 2D padding for tolerance, we therefore
|
||||||
// need to apply the inverted item matrix.
|
// need to apply the inverted item matrix.
|
||||||
|
|
|
@ -112,7 +112,6 @@ var Numerical = new function() {
|
||||||
}
|
}
|
||||||
|
|
||||||
return /** @lends Numerical */{
|
return /** @lends Numerical */{
|
||||||
TOLERANCE: 1e-6,
|
|
||||||
/**
|
/**
|
||||||
* A very small absolute value used to check if a value is very close to
|
* A very small absolute value used to check if a value is very close to
|
||||||
* zero. The value should be large enough to offset any floating point
|
* zero. The value should be large enough to offset any floating point
|
||||||
|
|
Loading…
Reference in a new issue