@scratch/scratch-render 11.6.0-face-sensing → 11.6.0-react-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34507,36 +34507,6 @@ var RenderWebGL = /*#__PURE__*/function (_EventEmitter) {
34507
34507
  }
34508
34508
  return false;
34509
34509
  }
34510
- }, {
34511
- key: "drawableTouchingScratchRect",
34512
- value: function drawableTouchingScratchRect(drawableID, left, top, right, bottom) {
34513
- var drawable = this._allDrawables[drawableID];
34514
- if (!drawable) {
34515
- return false;
34516
- }
34517
- var bounds = new Rectangle();
34518
- bounds.initFromBounds(left, right, bottom, top);
34519
- var worldPos = twgl.v3.create();
34520
- drawable.updateCPURenderAttributes();
34521
- for (worldPos[1] = bounds.bottom; worldPos[1] <= bounds.top; worldPos[1]++) {
34522
- for (worldPos[0] = bounds.left; worldPos[0] <= bounds.right; worldPos[0]++) {
34523
- if (drawable.isTouching(worldPos)) {
34524
- return true;
34525
- }
34526
- }
34527
- }
34528
- return false;
34529
- }
34530
- }, {
34531
- key: "drawableTouchingScratchPoint",
34532
- value: function drawableTouchingScratchPoint(drawableID, x, y) {
34533
- var drawable = this._allDrawables[drawableID];
34534
- if (!drawable) {
34535
- return false;
34536
- }
34537
- drawable.updateCPURenderAttributes();
34538
- return drawable.isTouching([x, y]);
34539
- }
34540
34510
 
34541
34511
  /**
34542
34512
  * Detect which sprite, if any, is at the given location.