Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
Add example configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelerz committed Jun 3, 2015
1 parent 2d01de1 commit 1ee4c14
Showing 1 changed file with 144 additions and 0 deletions.
144 changes: 144 additions & 0 deletions lib/defaultConfig.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
module.exports = {

debug: true,
verbose: false,

imageA: {
image: "",
crop: {
left: 0,
top: 0,
width: 100,
height: 100
}
},
imageB: {
image: "",
crop: {
left: 0,
top: 0,
width: 100,
height: 100
}
},

comparisons: [
{
type: 'structure',

selector: "body div.test", // *

anchors:[
{
type: "width", // height, left, right, top, bottom, horizontal, vertical
position: "absolute", // relative
threshold: {
type: 'pixel',
value: 5
}
}
],

limits: [
{
type: "min", // max
context: "width", // height
value: 50
}
],

color: {
red: 0,
green: 0,
blue: 0,
alpha: 0,
opacity: 0
}
},
{
type: 'pixel',
colorDelta: 5,

gamma: {
red: 0,
green: 0,
blue: 0
},
perceptual: true,
filters: ['blur'],

shift: {
active: true,
horizontal: 2,
vertical: 2
},

blockOuts: [
{
visible: true,
area: {
left: 0,
top: 0,
width: 100,
height: 100
},
color: {
red: 0,
green: 0,
blue: 0,
alpha: 0,
opacity: 0
}
}
],

color: {
red: 0,
green: 0,
blue: 0,
alpha: 0,
opacity: 0
},

areaImageA: {
left: 0,
top: 0,
width: null,
height: null
},
areaImageB: {
left: 0,
top: 0,
width: null,
height: null
}
}
],

threshold: {
type: 'pixel',
value: 500
},

backgroundColor: {
red: 0,
green: 0,
blue: 0,
alpha: 0,
opacity: 0
},
ignoreColor: {
red: 0,
green: 0,
blue: 0,
alpha: 0,
opacity: 0
},

output: {
imagePath: "",
limit: OUTPUT_DIFFERENT,
composition: COMPOSITION_AUTO,
copyImage: COPY_IMAGE_A
}
};

0 comments on commit 1ee4c14

Please sign in to comment.