|
|
@ -88,6 +88,7 @@ URL: https://github.com/Huddle/Resemble.js |
|
|
|
|
|
|
|
|
|
|
|
var ignoreAntialiasing = false; |
|
|
|
var ignoreAntialiasing = false; |
|
|
|
var ignoreColors = false; |
|
|
|
var ignoreColors = false; |
|
|
|
|
|
|
|
var scaleToSameSize = false; |
|
|
|
|
|
|
|
|
|
|
|
function triggerDataUpdate(){ |
|
|
|
function triggerDataUpdate(){ |
|
|
|
var len = updateCallbackArray.length; |
|
|
|
var len = updateCallbackArray.length; |
|
|
@ -165,6 +166,12 @@ URL: https://github.com/Huddle/Resemble.js |
|
|
|
|
|
|
|
|
|
|
|
var hiddenCanvas = document.createElement('canvas'); |
|
|
|
var hiddenCanvas = document.createElement('canvas'); |
|
|
|
var imageData; |
|
|
|
var imageData; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( scaleToSameSize && images.length == 1 ){ |
|
|
|
|
|
|
|
hiddenImage.width = images[0].width; |
|
|
|
|
|
|
|
hiddenImage.height = images[0].height; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var width = hiddenImage.width; |
|
|
|
var width = hiddenImage.width; |
|
|
|
var height = hiddenImage.height; |
|
|
|
var height = hiddenImage.height; |
|
|
|
|
|
|
|
|
|
|
@ -584,6 +591,18 @@ URL: https://github.com/Huddle/Resemble.js |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var self = { |
|
|
|
var self = { |
|
|
|
|
|
|
|
scaleToSameSize: function(){ |
|
|
|
|
|
|
|
scaleToSameSize = true; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(hasMethod) { param(); } |
|
|
|
|
|
|
|
return self; |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
useOriginalSize: function(){ |
|
|
|
|
|
|
|
scaleToSameSize = false; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(hasMethod) { param(); } |
|
|
|
|
|
|
|
return self; |
|
|
|
|
|
|
|
}, |
|
|
|
ignoreNothing: function(){ |
|
|
|
ignoreNothing: function(){ |
|
|
|
|
|
|
|
|
|
|
|
tolerance.red = 0; |
|
|
|
tolerance.red = 0; |
|
|
|