Browse Source

spacing and falsey

pull/104/head
james.cryer 7 years ago
parent
commit
74585fcfb4
  1. 16
      resemble.js

16
resemble.js

@ -30,15 +30,15 @@ URL: https://github.com/Huddle/Resemble.js
} }
function withinBoundingBox(x, y, width, height) { function withinBoundingBox(x, y, width, height) {
if (boundingBox === null) { if (!boundingBox) {
return true; return true;
} }
return x > (boundingBox.x1 || 0) && return x > (boundingBox.x1 || 0) &&
x < (boundingBox.x2 || width) && x < (boundingBox.x2 || width) &&
y > (boundingBox.y1 || 0) && y > (boundingBox.y1 || 0) &&
y < (boundingBox.y2 || height); y < (boundingBox.y2 || height);
} }
var errorPixelTransform = { var errorPixelTransform = {
flat: function (px, offset, d1, d2) { flat: function (px, offset, d1, d2) {
@ -70,7 +70,7 @@ URL: https://github.com/Huddle/Resemble.js
}; };
var errorPixel = errorPixelTransform.flat; var errorPixel = errorPixelTransform.flat;
var boundingBox = null; var boundingBox;
var largeImageThreshold = 1200; var largeImageThreshold = 1200;
var useCrossOrigin = true; var useCrossOrigin = true;
var document = typeof window != "undefined" ? window.document : { var document = typeof window != "undefined" ? window.document : {

Loading…
Cancel
Save