Add comment about PointText#matrix and #point being exposed.

This commit is contained in:
Jürg Lehni 2011-05-20 08:56:14 +01:00
parent ec0484e798
commit 0a87eef244

View file

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