mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples.
This commit is contained in:
parent
219f288207
commit
7cd749e63d
50 changed files with 697 additions and 781 deletions
|
@ -1,22 +1,27 @@
|
|||
/*
|
||||
* Paper.js
|
||||
*
|
||||
*
|
||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||
* based on Scriptographer.org and designed to be largely API compatible.
|
||||
* http://paperjs.org/
|
||||
* http://scriptographer.org/
|
||||
*
|
||||
*
|
||||
* Distributed under the MIT license. See LICENSE file for details.
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||
*
|
||||
*
|
||||
* All rights reserved.
|
||||
*/
|
||||
|
||||
var Path = this.Path = PathItem.extend({
|
||||
/** @lends Path# */
|
||||
|
||||
/**
|
||||
* @name Path
|
||||
*
|
||||
* @class The Path item represents a path in a Paper.js project.
|
||||
*
|
||||
* @extends PathItem
|
||||
*/
|
||||
var Path = this.Path = PathItem.extend(/** @lends Path# */{
|
||||
/**
|
||||
* Creates a new Path item and places it at the top of the active layer.
|
||||
*
|
||||
|
@ -35,10 +40,6 @@ var Path = this.Path = PathItem.extend({
|
|||
* var segments = [new Point(30, 30), new Point(100, 100)];
|
||||
* var path = new Path(segments);
|
||||
* path.strokeColor = 'black';
|
||||
*
|
||||
* @class The Path item represents a path in a Paper.js project.
|
||||
* @extends PathItem
|
||||
* @constructs Path
|
||||
*/
|
||||
initialize: function(segments) {
|
||||
this.base();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue