Define scafold #clone() function for the classes that still required a proper definition.

This commit is contained in:
Jürg Lehni 2011-05-19 21:56:49 +01:00
parent 7401e42316
commit 276eb3301e
4 changed files with 20 additions and 0 deletions

View file

@ -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

View file

@ -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.
*/ */

View file

@ -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;
}, },

View file

@ -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;
}, },