mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
Remove template
This commit is contained in:
parent
accdbb0fc3
commit
e9392d4b2b
2 changed files with 4 additions and 0 deletions
|
@ -11,6 +11,7 @@ import {isGroupChild} from './group';
|
|||
* @return {paper.Item} the hovered item or null if there is none
|
||||
*/
|
||||
const getHoveredItem = function (event, hitOptions, subselect) {
|
||||
// @todo make hit test only hit painting layer
|
||||
const hitResults = paper.project.hitTestAll(event.point, hitOptions);
|
||||
if (hitResults.length === 0) {
|
||||
return null;
|
||||
|
|
|
@ -154,6 +154,7 @@ class BoundingBoxTool {
|
|||
this.boundsPath.strokeWidth = 1 / paper.view.zoom;
|
||||
this.boundsPath.strokeColor = getGuideColor();
|
||||
|
||||
// Make a template to copy
|
||||
const boundsScaleCircleShadow =
|
||||
new paper.Path.Circle({
|
||||
center: new paper.Point(0, 0),
|
||||
|
@ -223,6 +224,8 @@ class BoundingBoxTool {
|
|||
noHover: true
|
||||
};
|
||||
}
|
||||
// Remove the template
|
||||
boundsScaleHandle.remove();
|
||||
}
|
||||
removeBoundsPath () {
|
||||
removeBoundsPath();
|
||||
|
|
Loading…
Reference in a new issue