mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-28 22:08:54 -04:00
Update copyright / licensing comments.
This commit is contained in:
parent
34a6c7871c
commit
6a67052090
36 changed files with 164 additions and 39 deletions
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Line = this.Line = Base.extend({
|
var Line = this.Line = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Based on goog.graphics.AffineTransform, as part of the Closure Library.
|
// Based on goog.graphics.AffineTransform, as part of the Closure Library.
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Rectangle = this.Rectangle = Base.extend({
|
var Rectangle = this.Rectangle = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Size = this.Size = Base.extend({
|
var Size = this.Size = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Color = this.Color = Base.extend({
|
var Color = this.Color = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Gradient = this.Gradient = Base.extend({
|
var Gradient = this.Gradient = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var GradientColor = this.GradientColor = Color.extend({
|
var GradientColor = this.GradientColor = Color.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var GradientStop = this.GradientStop = Base.extend({
|
var GradientStop = this.GradientStop = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var GrayColor = this.GrayColor = Color.extend({
|
var GrayColor = this.GrayColor = Color.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var RGBColor = this.RGBColor = Color.extend(new function() {
|
var RGBColor = this.RGBColor = Color.extend(new function() {
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Document = this.Document = Base.extend({
|
var Document = this.Document = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var DocumentView = this.DocumentView = Base.extend({
|
var DocumentView = this.DocumentView = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Symbol = this.Symbol = Base.extend({
|
var Symbol = this.Symbol = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Group = this.Group = Item.extend({
|
var Group = this.Group = Item.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Item = this.Item = Base.extend({
|
var Item = this.Item = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Layer = this.Layer = Group.extend({
|
var Layer = this.Layer = Group.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var PathStyle = this.PathStyle = Base.extend(new function() {
|
var PathStyle = this.PathStyle = Base.extend(new function() {
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var PlacedSymbol = this.PlacedSymbol = Item.extend({
|
var PlacedSymbol = this.PlacedSymbol = Item.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Raster = this.Raster = Item.extend({
|
var Raster = this.Raster = Item.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This file is only used by examples and unit tests, in order to load the
|
// This file is only used by examples and unit tests, in order to load the
|
||||||
|
|
28
src/paper.js
28
src/paper.js
|
@ -1,4 +1,5 @@
|
||||||
/*
|
/***
|
||||||
|
*
|
||||||
* Paper.js
|
* Paper.js
|
||||||
*
|
*
|
||||||
* A JavaScript Vector Graphics Library, based on Scriptographer.org and
|
* A JavaScript Vector Graphics Library, based on Scriptographer.org and
|
||||||
|
@ -6,14 +7,33 @@
|
||||||
* http://paperjs.org/
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Bootstrap is released under the MIT license.
|
***
|
||||||
* See LICENSE file for details.
|
*
|
||||||
*/
|
* Bootstrap.js JavaScript Framework.
|
||||||
|
* http://bootstrapjs.org/
|
||||||
|
*
|
||||||
|
* Distributed under the MIT license.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2006 - 2011 Juerg Lehni
|
||||||
|
* http://lehni.org/
|
||||||
|
*
|
||||||
|
***
|
||||||
|
*
|
||||||
|
* Parse-JS, A JavaScript tokenizer / parser / generator.
|
||||||
|
*
|
||||||
|
* Distributed under the BSD license.
|
||||||
|
*
|
||||||
|
* Copyright (c) 2010, Mihai Bazon <mihai.bazon@gmail.com>
|
||||||
|
* http://mihai.bazon.net/blog/
|
||||||
|
*
|
||||||
|
***/
|
||||||
|
|
||||||
var paper = new function() {
|
var paper = new function() {
|
||||||
|
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var CompoundPath = this.CompoundPath = PathItem.extend({
|
var CompoundPath = this.CompoundPath = PathItem.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Curve = this.Curve = Base.extend({
|
var Curve = this.Curve = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Path.inject({ statics: new function() {
|
Path.inject({ statics: new function() {
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Path = this.Path = PathItem.extend({
|
var Path = this.Path = PathItem.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var PathItem = this.PathItem = Item.extend({
|
var PathItem = this.PathItem = Item.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Segment = this.Segment = Base.extend({
|
var Segment = this.Segment = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Tool = this.Tool = ToolHandler.extend(new function() {
|
var Tool = this.Tool = ToolHandler.extend(new function() {
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var ToolHandler = this.ToolHandler = Base.extend({
|
var ToolHandler = this.ToolHandler = Base.extend({
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// TODO: it might be better to make a ContextProvider class, since you
|
// TODO: it might be better to make a ContextProvider class, since you
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Events = {
|
var Events = {
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var Numerical = new function() {
|
var Numerical = new function() {
|
||||||
|
|
|
@ -3,12 +3,15 @@
|
||||||
*
|
*
|
||||||
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
* This file is part of Paper.js, a JavaScript Vector Graphics Library,
|
||||||
* based on Scriptographer.org and designed to be largely API compatible.
|
* based on Scriptographer.org and designed to be largely API compatible.
|
||||||
|
* http://paperjs.org/
|
||||||
* http://scriptographer.org/
|
* http://scriptographer.org/
|
||||||
*
|
*
|
||||||
|
* Distributed under the MIT license. See LICENSE file for details.
|
||||||
|
*
|
||||||
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
* Copyright (c) 2011, Juerg Lehni & Jonathan Puckey
|
||||||
* http://lehni.org/ & http://jonathanpuckey.com/
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
||||||
*
|
*
|
||||||
* All rights reserved. See LICENSE file for details.
|
* All rights reserved.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var PaperScript = new function() {
|
var PaperScript = new function() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue