Use Numerical.TOLERANCE instead of hardcoded one.

This commit is contained in:
Jürg Lehni 2011-05-06 12:06:05 +01:00
parent 218c7ce2fc
commit aed1bb0878

View file

@ -879,7 +879,8 @@ var Path = this.Path = PathItem.extend({
// Add some tolerance for good roots, as t = 0 / 1 are added seperately
// anyhow, and we don't want joins to be added with radiuses in
// getBounds()
var tMin = 10e-6, tMax = 1 - 10e-6;
var tMin = Numerical.TOLERANCE,
tMax = 1 - tMin;
function getBounds(that, matrix, strokePadding) {
// Code ported and further optimised from: