diff --git a/README.md b/README.md index d06248c..ca58c49 100644 --- a/README.md +++ b/README.md @@ -77,15 +77,15 @@ resemble.outputSettings({ // resembleControl.repaint(); ``` -It is possible to narrow down the area of comparison, by specifying bounding box: +It is possible to narrow down the area of comparison, by specifying a bounding box measured in pixels from the top left: ```javascript resemble.outputSettings({ boundingBox: { - x1: 100, // left - y1: 200, // top - x2: 200, // right - y2: 600, // bottom + left: 100, + top: 200, + right: 200, + bottom: 600 } }); // resembleControl.repaint(); diff --git a/demoassets/main.js b/demoassets/main.js index 7c2b92c..993b86e 100644 --- a/demoassets/main.js +++ b/demoassets/main.js @@ -196,10 +196,10 @@ $(function(){ if($this.is('#boundingBox')){ resemble.outputSettings({ boundingBox: { - x1: $("#x1").val(), - y1: $("#y1").val(), - x2: $("#x2").val(), - y2: $("#y2").val(), + left: $("#x1").val(), + top: $("#y1").val(), + right: $("#x2").val(), + bottom: $("#y2").val() } }); resembleControl.repaint(); diff --git a/index.html b/index.html index 6c47e67..0443795 100644 --- a/index.html +++ b/index.html @@ -133,19 +133,19 @@