mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Use Numerical.TOLERANCE instead of hardcoded one.
This commit is contained in:
parent
218c7ce2fc
commit
aed1bb0878
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue