From 0a87eef24485b634109f95288f6a22be4a6c4c20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Fri, 20 May 2011 08:56:14 +0100 Subject: [PATCH] Add comment about PointText#matrix and #point being exposed. --- src/text/PointText.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/text/PointText.js b/src/text/PointText.js index b752ffa8..e48c63e6 100644 --- a/src/text/PointText.js +++ b/src/text/PointText.js @@ -21,6 +21,9 @@ var PointText = this.PointText = TextItem.extend({ this.base(); var point = Point.read(arguments); this.content = ''; + // TODO: Since we're exposing matrix, we actually need to extract _point + // from it each time getPoint is called, as it could be modified other + // than through PointText#transform(). this._point = LinkedPoint.create(this, 'setPoint', point.x, point.y); this.matrix = new Matrix().translate(point); },