mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Merge branch 'master' of https://github.com/paperjs/paper.js
* 'master' of https://github.com/paperjs/paper.js: Explicitly use bash to avoid build problems on linux. Bump version number to 0.9.2 Fix exporting of Base, Numerical and PaperScript into PaperScope.
This commit is contained in:
commit
1e86aa4e97
11 changed files with 15 additions and 13 deletions
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
||||
# http://paperjs.org/
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "paper",
|
||||
"version": "0.9.1",
|
||||
"version": "0.9.2",
|
||||
"main": "./src/node/index.js",
|
||||
"engines": { "node": ">= 0.4.0" },
|
||||
"dependencies": {
|
||||
|
|
|
@ -81,8 +81,7 @@ Base.inject(/** @lends Base# */{
|
|||
statics: /** @lends Base */{
|
||||
|
||||
// Keep track of all named classes for serialization and exporting.
|
||||
// Also register the Base class itself.
|
||||
exports: new Base({ Base: Base }),
|
||||
exports: new Base(),
|
||||
|
||||
extend: function extend(src) {
|
||||
// Override Base.extend() to register named classes in Base.exports,
|
||||
|
|
|
@ -10,9 +10,12 @@
|
|||
* All rights reserved.
|
||||
*/
|
||||
|
||||
// Add PaperScript and Numerical to exports, inject all exports into PaperScope,
|
||||
// and create the initial paper object, all in one condensed statement:
|
||||
// First add Base, PaperScript and Numerical to exports, then inject all exports
|
||||
// into PaperScope, and create the initial paper object, all in one statement:
|
||||
paper = new (PaperScope.inject(Base.exports.inject({
|
||||
// Mark fields as enumeralbe so PaperScope.inject can pick them up
|
||||
enumerable: true,
|
||||
Base: Base,
|
||||
PaperScript: PaperScript,
|
||||
Numerical: Numerical
|
||||
})))();
|
||||
|
|
Loading…
Reference in a new issue