mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-01 16:49:15 -04:00
Add options argument to #toJson() methods, and use to implement optional fractional digit precision control.
This commit is contained in:
parent
053aa15ded
commit
fdd15e675f
11 changed files with 40 additions and 28 deletions
src/basic
|
@ -72,8 +72,8 @@ var Matrix = this.Matrix = Base.extend(/** @lends Matrix# */{
|
|||
throw new Error('Unsupported matrix parameters');
|
||||
},
|
||||
|
||||
_serialize: function() {
|
||||
return this.getValues();
|
||||
_serialize: function(options) {
|
||||
return Base.serialize(this.getValues(), options);
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue