@scratch/scratch-render 12.0.0-react-18-face-sensing.2 → 12.1.0-localte-selection

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.
@@ -40829,7 +40829,7 @@ module.exports = core => {
40829
40829
  if (null == loc) {
40830
40830
  throw new Error
40831
40831
  // removed by dead control flow
40832
- {}
40832
+
40833
40833
  }
40834
40834
  return a.node('PathExpr', loc);
40835
40835
  }
@@ -80124,7 +80124,7 @@ exports.install = (globalObject, globalNames) => {
80124
80124
  `Failed to execute 'setRangeText' on 'HTMLInputElement': only ${arguments.length} arguments present.`
80125
80125
  );
80126
80126
  // removed by dead control flow
80127
- {}
80127
+
80128
80128
  case 3:
80129
80129
  {
80130
80130
  let curArg = arguments[0];
@@ -95203,7 +95203,7 @@ exports.install = (globalObject, globalNames) => {
95203
95203
  `Failed to execute 'setRangeText' on 'HTMLTextAreaElement': only ${arguments.length} arguments present.`
95204
95204
  );
95205
95205
  // removed by dead control flow
95206
- {}
95206
+
95207
95207
  case 3:
95208
95208
  {
95209
95209
  let curArg = arguments[0];
@@ -193353,56 +193353,6 @@ var RenderWebGL = /*#__PURE__*/function (_EventEmitter) {
193353
193353
  return false;
193354
193354
  }
193355
193355
 
193356
- /**
193357
- * Determine if the drawable is touching a rectangle.
193358
- *
193359
- * @param {int} drawableID The ID of the drawable to check.
193360
- * @param {int} left - The left X coordinate of the rectangle.
193361
- * @param {int} top - The top Y coordinate of the rectangle.
193362
- * @param {int} right - The right X coordinate of the rectangle.
193363
- * @param {int} bottom - The bottom Y coordinate of the rectangle.
193364
- * @returns {boolean} If the drawable has any pixels that would draw in the rectangle area
193365
- */
193366
- }, {
193367
- key: "drawableTouchingScratchRect",
193368
- value: function drawableTouchingScratchRect(drawableID, left, top, right, bottom) {
193369
- var drawable = this._allDrawables[drawableID];
193370
- if (!drawable) {
193371
- return false;
193372
- }
193373
- var bounds = new Rectangle();
193374
- bounds.initFromBounds(left, right, bottom, top);
193375
- var worldPos = twgl.v3.create();
193376
- drawable.updateCPURenderAttributes();
193377
- for (worldPos[1] = bounds.bottom; worldPos[1] <= bounds.top; worldPos[1]++) {
193378
- for (worldPos[0] = bounds.left; worldPos[0] <= bounds.right; worldPos[0]++) {
193379
- if (drawable.isTouching(worldPos)) {
193380
- return true;
193381
- }
193382
- }
193383
- }
193384
- return false;
193385
- }
193386
-
193387
- /**
193388
- * Determine if the drawable is touching a point in the Scratch coordinate system
193389
- *
193390
- * @param {int} drawableID The ID of the drawable to check.
193391
- * @param {int} x The x coordinate of the point.
193392
- * @param {int} y The y coordinate of the point.
193393
- * @returns {boolean} If the drawable is touching the point
193394
- */
193395
- }, {
193396
- key: "drawableTouchingScratchPoint",
193397
- value: function drawableTouchingScratchPoint(drawableID, x, y) {
193398
- var drawable = this._allDrawables[drawableID];
193399
- if (!drawable) {
193400
- return false;
193401
- }
193402
- drawable.updateCPURenderAttributes();
193403
- return drawable.isTouching([x, y]);
193404
- }
193405
-
193406
193356
  /**
193407
193357
  * Detect which sprite, if any, is at the given location.
193408
193358
  * This function will pick all drawables that are visible, unless specific