mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Define scafold #clone() function for the classes that still required a proper definition.
This commit is contained in:
parent
7401e42316
commit
276eb3301e
4 changed files with 20 additions and 0 deletions
|
@ -27,6 +27,11 @@ var PlacedSymbol = this.PlacedSymbol = Item.extend({
|
|||
: new Matrix();
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
// TODO: Implement!
|
||||
return this.base();
|
||||
},
|
||||
|
||||
_transform: function(matrix, flags) {
|
||||
// In order to set the right context transformation when drawing the
|
||||
// raster, simply preconcatenate the internal matrix with the provided
|
||||
|
|
|
@ -34,6 +34,11 @@ var Raster = this.Raster = Item.extend({
|
|||
this.matrix = new Matrix();
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
// TODO: Implement!
|
||||
return this.base();
|
||||
},
|
||||
|
||||
/**
|
||||
* The size of the raster in pixels.
|
||||
*/
|
||||
|
|
|
@ -23,6 +23,11 @@ var Symbol = this.Symbol = Base.extend({
|
|||
this.setDefinition(item);
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
// TODO: Implement!
|
||||
return this.base();
|
||||
},
|
||||
|
||||
getDefinition: function() {
|
||||
return this._definition;
|
||||
},
|
||||
|
|
|
@ -23,6 +23,11 @@ var PointText = this.PointText = TextItem.extend({
|
|||
this.matrix = new Matrix().translate(this._point);
|
||||
},
|
||||
|
||||
clone: function() {
|
||||
// TODO: Implement!
|
||||
return this.base();
|
||||
},
|
||||
|
||||
getPoint: function() {
|
||||
return this._point;
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue