mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-21 03:41:52 +00:00
Add "rx", "ry" to the stateProperties of fabric.Rect. Fixes issue #16.
This commit is contained in:
parent
77ed374671
commit
03561f762f
1 changed files with 11 additions and 0 deletions
|
|
@ -39,10 +39,21 @@
|
|||
* @return {Object} thisArg
|
||||
*/
|
||||
initialize: function(options) {
|
||||
this._initStateProperties();
|
||||
this.callSuper('initialize', options);
|
||||
this._initRxRy();
|
||||
},
|
||||
|
||||
/**
|
||||
* Creates `stateProperties` list on an instance, and adds `fabric.Rect` -specific ones to it
|
||||
* (such as "rx", "ry", etc.)
|
||||
* @private
|
||||
* @method _initStateProperties
|
||||
*/
|
||||
_initStateProperties: function() {
|
||||
this.stateProperties = this.stateProperties.concat(['rx', 'ry']);
|
||||
},
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @method _initRxRy
|
||||
|
|
|
|||
Loading…
Reference in a new issue