Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

constants.ts 1006B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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.
  13. *
  14. * ```
  15. * Request.data example:
  16. * {
  17. * id: SET_TIMEOUT,
  18. * timeMs: 33
  19. * }
  20. * ```
  21. */
  22. export const SET_TIMEOUT = 1;
  23. /**
  24. * CLEAR_TIMEOUT constant is used to clear the interval and it is set in
  25. * the id property of the request.data property.
  26. *
  27. * ```
  28. * {
  29. * id: CLEAR_TIMEOUT
  30. * }
  31. * ```
  32. */
  33. export const CLEAR_TIMEOUT = 2;
  34. /**
  35. * TIMEOUT_TICK constant is used as response and it is set in the id property.
  36. *
  37. * ```
  38. * {
  39. * id: TIMEOUT_TICK
  40. * }
  41. * ```
  42. */
  43. export const TIMEOUT_TICK = 3;
  44. export const SCREENSHOT_QUEUE_LIMIT = 3;
  45. export const MAX_FILE_SIZE = 1000000;