mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-13 06:29:11 -04:00
Remove Base.merge() and use a new Straps.js feature instead.
A more clever Base() constructor that allows merging.
This commit is contained in:
parent
2d38c9220d
commit
593e0d8d7f
15 changed files with 28 additions and 51 deletions
src/project
|
@ -425,9 +425,9 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
this._drawCount++;
|
||||
ctx.save();
|
||||
matrix.applyToContext(ctx);
|
||||
// Use Base.merge() so we can use param.extend() to easily override
|
||||
// Use new Base() so we can use param.extend() to easily override
|
||||
// values
|
||||
var param = Base.merge({
|
||||
var param = new Base({
|
||||
offset: new Point(0, 0),
|
||||
ratio: ratio,
|
||||
// A stack of concatenated matrices, to keep track of the current
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue