From 276eb3301e6e581c85f7c2aea81663bd43906054 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 19 May 2011 21:56:49 +0100 Subject: [PATCH] Define scafold #clone() function for the classes that still required a proper definition. --- src/item/PlacedSymbol.js | 5 +++++ src/item/Raster.js | 5 +++++ src/project/Symbol.js | 5 +++++ src/text/PointText.js | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/src/item/PlacedSymbol.js b/src/item/PlacedSymbol.js index e293128c..3083af7c 100644 --- a/src/item/PlacedSymbol.js +++ b/src/item/PlacedSymbol.js @@ -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 diff --git a/src/item/Raster.js b/src/item/Raster.js index e42d0071..ab9d047b 100644 --- a/src/item/Raster.js +++ b/src/item/Raster.js @@ -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. */ diff --git a/src/project/Symbol.js b/src/project/Symbol.js index 196180a4..a7b1aa43 100644 --- a/src/project/Symbol.js +++ b/src/project/Symbol.js @@ -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; }, diff --git a/src/text/PointText.js b/src/text/PointText.js index 11718c4e..01c5d797 100644 --- a/src/text/PointText.js +++ b/src/text/PointText.js @@ -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; },