2019-09-19 13:28:57 +00:00
|
|
|
/**
|
2021-07-26 11:38:56 +00:00
|
|
|
* Percent of pixels that signal if two images should be considered different.
|
2019-09-19 13:28:57 +00:00
|
|
|
*/
|
2021-07-26 11:38:56 +00:00
|
|
|
export const PERCENTAGE_LOWER_BOUND = 5;
|
2019-09-19 13:28:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Number of milliseconds that represent how often screenshots should be taken.
|
|
|
|
*/
|
2021-12-08 14:15:59 +00:00
|
|
|
export const POLL_INTERVAL = 4000;
|
2019-09-19 13:28:57 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* SET_INTERVAL constant is used to set interval and it is set in
|
2021-11-04 21:10:43 +00:00
|
|
|
* the id property of the request.data property. TimeMs property must
|
|
|
|
* also be set. Request.data example:
|
2019-09-19 13:28:57 +00:00
|
|
|
*
|
|
|
|
* {
|
|
|
|
* id: SET_INTERVAL,
|
|
|
|
* timeMs: 33
|
2021-11-04 21:10:43 +00:00
|
|
|
* }.
|
2019-09-19 13:28:57 +00:00
|
|
|
*/
|
|
|
|
export const SET_INTERVAL = 1;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* CLEAR_INTERVAL constant is used to clear the interval and it is set in
|
|
|
|
* the id property of the request.data property.
|
|
|
|
*
|
|
|
|
* {
|
|
|
|
* id: CLEAR_INTERVAL
|
2021-11-04 21:10:43 +00:00
|
|
|
* }.
|
2019-09-19 13:28:57 +00:00
|
|
|
*/
|
|
|
|
export const CLEAR_INTERVAL = 2;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* INTERVAL_TIMEOUT constant is used as response and it is set in the id property.
|
|
|
|
*
|
|
|
|
* {
|
|
|
|
* id: INTERVAL_TIMEOUT
|
2021-11-04 21:10:43 +00:00
|
|
|
* }.
|
2019-09-19 13:28:57 +00:00
|
|
|
*/
|
|
|
|
export const INTERVAL_TIMEOUT = 3;
|