mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Implement PointText#drawSelected. Closes #127.
This commit is contained in:
parent
906faf7956
commit
e073cafd2c
1 changed files with 7 additions and 0 deletions
|
@ -84,6 +84,13 @@ var PointText = this.PointText = TextItem.extend(/** @lends PointText# */{
|
||||||
ctx.strokeText(line, 0, 0);
|
ctx.strokeText(line, 0, 0);
|
||||||
ctx.translate(0, leading);
|
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() {
|
}, new function() {
|
||||||
var context = null;
|
var context = null;
|
||||||
|
|
Loading…
Reference in a new issue