mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-06 11:09:33 -04:00
Implement a better way to name and export class constructors.
This change also simplified the way classes are exported to PaperScope objects.
This commit is contained in:
parent
15b1ea7af0
commit
10d5de3ed6
45 changed files with 127 additions and 154 deletions
src/path
|
@ -24,7 +24,7 @@
|
|||
* convenient ways to work with parts of the path, finding lengths, positions or
|
||||
* tangents at given offsets.
|
||||
*/
|
||||
var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
||||
var Curve = Base.extend(/** @lends Curve# */{
|
||||
/**
|
||||
* Creates a new curve object.
|
||||
*
|
||||
|
@ -55,7 +55,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
|||
* @param {Number} x2
|
||||
* @param {Number} y2
|
||||
*/
|
||||
initialize: function(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
||||
initialize: function Curve(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7) {
|
||||
var count = arguments.length;
|
||||
if (count === 0) {
|
||||
this._segment1 = new Segment();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue