diff --git a/.travis.yml b/.travis.yml index 076e3e0..4152f3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,10 +1,8 @@ language: node_js node_js: - - "0.10" - - "0.11" - - "0.12" - - "iojs" + - node + - lts/* branches: except: diff --git a/README.md b/README.md index 0ac0fcc..156c6a3 100644 --- a/README.md +++ b/README.md @@ -163,8 +163,8 @@ All the parameters that were available in the command-line tool are also availab * ```composition``` Creates as output a composition of all three images (approved, highlight, and build) (default: true) * ```composeLeftToRight``` Creates comparison-composition from left to right, otherwise it lets decide the app on what is best * ```composeTopToBottom``` Creates comparison-composition from top to bottom, otherwise it lets decide the app on what is best -* ```hShift``` Horizontal shift for possible antialiasing (default: 2) Set to 0 to turn this off. -* ```vShift``` Vertical shift for possible antialiasing (default: 2) Set to 0 to turn this off. +* ```hShift``` Horizontal shift for possible antialiasing (default: 0) +* ```vShift``` Vertical shift for possible antialiasing (default: 0) * ```hideShift``` Uses the background color for "highlighting" shifts. (default: false) * ```cropImageA``` Cropping for first image (default: no cropping) - Format: { x:, y:, width:, height: } * ```cropImageB``` Cropping for second image (default: no cropping) - Format: { x:, y:, width:, height: } diff --git a/index.js b/index.js index 681bbb1..49f7a85 100644 --- a/index.js +++ b/index.js @@ -53,8 +53,8 @@ function load(value, defaultValue) { * @param {boolean} [options.composeLeftToRight=false] Create composition from left to right, otherwise let it decide on its own whats best * @param {boolean} [options.composeTopToBottom=false] Create composition from top to bottom, otherwise let it decide on its own whats best * @param {boolean} [options.hideShift=false] Hides shift highlighting by using the background color instead - * @param {int} [options.hShift=2] Horizontal shift for possible antialiasing - * @param {int} [options.vShift=2] Vertical shift for possible antialiasing + * @param {int} [options.hShift=0] Horizontal shift for possible antialiasing + * @param {int} [options.vShift=0] Vertical shift for possible antialiasing * @param {object} [options.cropImageA=null] Cropping for first image (default: no cropping) * @param {int} [options.cropImageA.x=0] Coordinate for left corner of cropping region * @param {int} [options.cropImageA.y=0] Coordinate for top corner of cropping region @@ -201,8 +201,8 @@ function BlinkDiff (options) { this._composeLeftToRight = load(options.composeLeftToRight, false); this._composeTopToBottom = load(options.composeTopToBottom, false); - this._hShift = load(options.hShift, 2); - this._vShift = load(options.vShift, 2); + this._hShift = load(options.hShift, 0); + this._vShift = load(options.vShift, 0); this._cropImageA = options.cropImageA; this._cropImageB = options.cropImageB; diff --git a/lib/compatibility.js b/lib/compatibility.js index cfef1d4..46721f0 100644 --- a/lib/compatibility.js +++ b/lib/compatibility.js @@ -58,8 +58,8 @@ var Compatibility = Base.extend( * @param {boolean} [options.composeLeftToRight=false] Create composition from left to right, otherwise let it decide on its own whats best * @param {boolean} [options.composeTopToBottom=false] Create composition from top to bottom, otherwise let it decide on its own whats best * @param {boolean} [options.hideShift=false] Hides shift highlighting by using the background color instead - * @param {int} [options.hShift=2] Horizontal shift for possible antialiasing - * @param {int} [options.vShift=2] Vertical shift for possible antialiasing + * @param {int} [options.hShift=0] Horizontal shift for possible antialiasing + * @param {int} [options.vShift=0] Vertical shift for possible antialiasing * @param {object} [options.cropImageA=null] Cropping for first image (default: no cropping) * @param {int} [options.cropImageA.x=0] Coordinate for left corner of cropping region * @param {int} [options.cropImageA.y=0] Coordinate for top corner of cropping region @@ -136,8 +136,8 @@ var Compatibility = Base.extend( shift: { active: !options.hideShift, - horizontal: options.hShift || 2, - vertical: options.vShift || 2 + horizontal: options.hShift || 0, + vertical: options.vShift || 0 }, blockOuts: blockOuts,