mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-08-01 16:49:15 -04:00
Implement standard behavior of #_hitTest() for items without children, based on #_contains().
This should cover the minimum of what's needed for PointText.
This commit is contained in:
parent
463a00bd1e
commit
fe10c99d1b
5 changed files with 18 additions and 4 deletions
src/project
|
@ -331,6 +331,7 @@ var Project = PaperScopeItem.extend(/** @lends Project# */{
|
|||
if (item._boundsSelected) {
|
||||
// We need to call the internal _getBounds, to get non-
|
||||
// transformed bounds.
|
||||
// TODO: Implement caching for these too!
|
||||
var coords = mx._transformCorners(
|
||||
item._getBounds('getBounds'));
|
||||
// Now draw a rectangle that connects the transformed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue