您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

constants.js 908B

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