mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-23 04:35:48 +00:00
Add method complexity() to fabric.Text (returns 1)
This commit is contained in:
parent
d2bcfc922d
commit
727c075235
1 changed files with 8 additions and 0 deletions
|
|
@ -900,6 +900,14 @@
|
|||
this._initDimensions();
|
||||
this.setCoords();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns complexity of an instance
|
||||
* @return {Number} complexity
|
||||
*/
|
||||
complexity: function() {
|
||||
return 1;
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue