mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-23 15:59:45 -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();
|
: new Matrix();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clone: function() {
|
||||||
|
// TODO: Implement!
|
||||||
|
return this.base();
|
||||||
|
},
|
||||||
|
|
||||||
_transform: function(matrix, flags) {
|
_transform: function(matrix, flags) {
|
||||||
// In order to set the right context transformation when drawing the
|
// In order to set the right context transformation when drawing the
|
||||||
// raster, simply preconcatenate the internal matrix with the provided
|
// raster, simply preconcatenate the internal matrix with the provided
|
||||||
|
|
|
@ -34,6 +34,11 @@ var Raster = this.Raster = Item.extend({
|
||||||
this.matrix = new Matrix();
|
this.matrix = new Matrix();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clone: function() {
|
||||||
|
// TODO: Implement!
|
||||||
|
return this.base();
|
||||||
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The size of the raster in pixels.
|
* The size of the raster in pixels.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -23,6 +23,11 @@ var Symbol = this.Symbol = Base.extend({
|
||||||
this.setDefinition(item);
|
this.setDefinition(item);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clone: function() {
|
||||||
|
// TODO: Implement!
|
||||||
|
return this.base();
|
||||||
|
},
|
||||||
|
|
||||||
getDefinition: function() {
|
getDefinition: function() {
|
||||||
return this._definition;
|
return this._definition;
|
||||||
},
|
},
|
||||||
|
|
|
@ -23,6 +23,11 @@ var PointText = this.PointText = TextItem.extend({
|
||||||
this.matrix = new Matrix().translate(this._point);
|
this.matrix = new Matrix().translate(this._point);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
clone: function() {
|
||||||
|
// TODO: Implement!
|
||||||
|
return this.base();
|
||||||
|
},
|
||||||
|
|
||||||
getPoint: function() {
|
getPoint: function() {
|
||||||
return this._point;
|
return this._point;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue