mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
parent
af1de8862c
commit
c48f4d772e
2 changed files with 11 additions and 4 deletions
|
@ -36,6 +36,16 @@ Base.inject(/** @lends Base# */{
|
||||||
}, []).join(', ') + ' }';
|
}, []).join(', ') + ' }';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The class name of the object as a string, if the prototype defines a
|
||||||
|
* `_class` value.
|
||||||
|
*
|
||||||
|
* @beans
|
||||||
|
*/
|
||||||
|
getClassName: function() {
|
||||||
|
return this._class || '';
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serializes this object to a JSON string.
|
* Serializes this object to a JSON string.
|
||||||
*
|
*
|
||||||
|
|
|
@ -320,13 +320,10 @@ var Item = Base.extend(Emitter, /** @lends Item# */{
|
||||||
/**
|
/**
|
||||||
* The class name of the item as a string.
|
* The class name of the item as a string.
|
||||||
*
|
*
|
||||||
|
* @name Item#className
|
||||||
* @type String('Group', 'Layer', 'Path', 'CompoundPath', 'Shape',
|
* @type String('Group', 'Layer', 'Path', 'CompoundPath', 'Shape',
|
||||||
* 'Raster', 'PlacedSymbol', 'PointText')
|
* 'Raster', 'PlacedSymbol', 'PointText')
|
||||||
* @bean
|
|
||||||
*/
|
*/
|
||||||
getClassName: function() {
|
|
||||||
return this._class;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The name of the item. If the item has a name, it can be accessed by name
|
* The name of the item. If the item has a name, it can be accessed by name
|
||||||
|
|
Loading…
Reference in a new issue