Remove Numerical.TOLERANCE

This commit is contained in:
Jürg Lehni 2017-01-16 17:48:26 +01:00
parent 13accee9fd
commit da52f1f685
2 changed files with 2 additions and 3 deletions

View file

@ -1883,8 +1883,8 @@ new function() { // Injection scope for hit-test functions shared with project
: this.getGlobalMatrix().prepend(this.getView()._matrix),
// Calculate the transformed padding as 2D size that describes the
// transformed tolerance circle / ellipse. Make sure it's never 0
// since we're using it for division.
tolerance = Math.max(options.tolerance, /*#=*/Numerical.TOLERANCE),
// since we're using it for division (see checkBounds()).
tolerance = Math.max(options.tolerance, /*#=*/Numerical.EPSILON),
// Hit-tests are performed in the item's local coordinate space.
// To calculate the correct 2D padding for tolerance, we therefore
// need to apply the inverted item matrix.

View file

@ -112,7 +112,6 @@ var Numerical = new function() {
}
return /** @lends Numerical */{
TOLERANCE: 1e-6,
/**
* 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