智慧水务管理系统 - 精河县供水工程综合管理平台

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. // @ts-check
  2. /**
  3. * The {@link ResourceLoader} state.
  4. *
  5. * @enum {number}
  6. * @private
  7. */
  8. const ResourceLoaderState = {
  9. /**
  10. * The resource has not yet been loaded.
  11. *
  12. * @type {number}
  13. * @constant
  14. * @private
  15. */
  16. UNLOADED: 0,
  17. /**
  18. * The resource is loading. In this state, external resources are fetched as needed.
  19. *
  20. * @type {number}
  21. * @constant
  22. * @private
  23. */
  24. LOADING: 1,
  25. /**
  26. * The resource has finished loading, but requires further processing.
  27. *
  28. * @type {number}
  29. * @constant
  30. * @private
  31. */
  32. LOADED: 2,
  33. /**
  34. * The resource is processing. GPU resources are allocated in this state as needed.
  35. *
  36. * @type {number}
  37. * @constant
  38. * @private
  39. */
  40. PROCESSING: 3,
  41. /**
  42. * The resource has finished loading and processing; the results are ready to be used.
  43. *
  44. * @type {number}
  45. * @constant
  46. * @private
  47. */
  48. READY: 4,
  49. /**
  50. * The resource loading or processing has failed due to an error.
  51. *
  52. * @type {number}
  53. * @constant
  54. * @private
  55. */
  56. FAILED: 5,
  57. };
  58. Object.freeze(ResourceLoaderState);
  59. export default ResourceLoaderState;