Rename PathFitter#process() -> #fit().

This commit is contained in:
Jürg Lehni 2011-06-05 21:26:01 +01:00
parent 4854e56e1d
commit 7d2742cd94
2 changed files with 2 additions and 2 deletions

View file

@ -477,7 +477,7 @@ var Path = this.Path = PathItem.extend({
pointsToCurves: function(tolerance) {
var fitter = new PathFitter(this, tolerance || 2.5);
this.setSegments(fitter.process());
this.setSegments(fitter.fit());
},
// TODO: reduceSegments([flatness])

View file

@ -35,7 +35,7 @@ var PathFitter = Base.extend({
this.iterationError = error * error;
},
process: function() {
fit: function() {
this.segments = [new Segment(this.points[0])];
this.fitCubic(0, this.points.length - 1,
// Left Tangent