Implement PointText#drawSelected. Closes #127.

This commit is contained in:
Jonathan Puckey 2012-11-23 21:49:07 +01:00
parent 906faf7956
commit e073cafd2c

View file

@ -84,6 +84,13 @@ var PointText = this.PointText = TextItem.extend(/** @lends PointText# */{
ctx.strokeText(line, 0, 0);
ctx.translate(0, leading);
}
},
// TODO: Should we be drawing the selection like this? Perhaps a small
// rectangle for the starting point of the text and a colored line on
// the baseline for its width?
drawSelected: function(ctx, matrix) {
Item.drawSelectedBounds(this._getBounds(), ctx, matrix);
}
}, new function() {
var context = null;