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 964B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /**
  2. * Percent of pixels that signal if two images should be considered different.
  3. */
  4. export const PERCENTAGE_LOWER_BOUND = 4;
  5. /**
  6. * Number of milliseconds that represent how often screenshots should be taken.
  7. */
  8. export const POLL_INTERVAL = 2000;
  9. /**
  10. * SET_TIMEOUT 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_TIMEOUT,
  16. * timeMs: 33
  17. * }.
  18. */
  19. export const SET_TIMEOUT = 1;
  20. /**
  21. * CLEAR_TIMEOUT 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_TIMEOUT
  26. * }.
  27. */
  28. export const CLEAR_TIMEOUT = 2;
  29. /**
  30. * TIMEOUT_TICK constant is used as response and it is set in the id property.
  31. *
  32. * {
  33. * id: TIMEOUT_TICK
  34. * }.
  35. */
  36. export const TIMEOUT_TICK = 3;
  37. export const SCREENSHOT_QUEUE_LIMIT = 3;
  38. export const MAX_FILE_SIZE = 1000000;