mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Use a Base object for PaperScope#settings and update straps.js to version that offers Base#set().
This commit is contained in:
parent
1f7cb30fa5
commit
d12607dd44
3 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@
|
||||||
"test"
|
"test"
|
||||||
],
|
],
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"straps": "~1.5.1",
|
"straps": "~1.5.2",
|
||||||
"acorn": "git://github.com/paperjs/acorn#0.3.2",
|
"acorn": "git://github.com/paperjs/acorn#0.3.2",
|
||||||
"esprima": "~1.0.3",
|
"esprima": "~1.0.3",
|
||||||
"stats.js": "r11"
|
"stats.js": "r11"
|
||||||
|
|
|
@ -48,11 +48,11 @@ var PaperScope = Base.extend(/** @lends PaperScope# */{
|
||||||
// one.
|
// one.
|
||||||
paper = this;
|
paper = this;
|
||||||
// Default configurable settings.
|
// Default configurable settings.
|
||||||
this.settings = {
|
this.settings = new Base({
|
||||||
applyMatrix: true,
|
applyMatrix: true,
|
||||||
handleSize: 4,
|
handleSize: 4,
|
||||||
hitTolerance: 0
|
hitTolerance: 0
|
||||||
};
|
});
|
||||||
this.project = null;
|
this.project = null;
|
||||||
this.projects = [];
|
this.projects = [];
|
||||||
this.tools = [];
|
this.tools = [];
|
||||||
|
|
|
@ -87,7 +87,7 @@ var CurveLocation = Base.extend(/** @lends CurveLocation# */{
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The curve by which the location is defined.
|
* The curve that this location belongs to.
|
||||||
*
|
*
|
||||||
* @type Curve
|
* @type Curve
|
||||||
* @bean
|
* @bean
|
||||||
|
|
Loading…
Reference in a new issue