mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-20 22:39:50 -05:00
Rename PathFitter#process() -> #fit().
This commit is contained in:
parent
4854e56e1d
commit
7d2742cd94
2 changed files with 2 additions and 2 deletions
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue