You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

constants.ts 901B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /**
  2. * Percent of pixels that signal if two images should be considered different.
  3. */
  4. export const PERCENTAGE_LOWER_BOUND = 5;
  5. /**
  6. * Number of milliseconds that represent how often screenshots should be taken.
  7. */
  8. export const POLL_INTERVAL = 4000;
  9. /**
  10. * SET_INTERVAL constant is used to set interval and it is set in
  11. * the id property of the request.data property. TimeMs property must
  12. * also be set. Request.data example:
  13. *
  14. * {
  15. * id: SET_INTERVAL,
  16. * timeMs: 33
  17. * }.
  18. */
  19. export const SET_INTERVAL = 1;
  20. /**
  21. * CLEAR_INTERVAL constant is used to clear the interval and it is set in
  22. * the id property of the request.data property.
  23. *
  24. * {
  25. * id: CLEAR_INTERVAL
  26. * }.
  27. */
  28. export const CLEAR_INTERVAL = 2;
  29. /**
  30. * INTERVAL_TIMEOUT constant is used as response and it is set in the id property.
  31. *
  32. * {
  33. * id: INTERVAL_TIMEOUT
  34. * }.
  35. */
  36. export const INTERVAL_TIMEOUT = 3;