mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Add comment about PointText#matrix and #point being exposed.
This commit is contained in:
parent
ec0484e798
commit
0a87eef244
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue