scheduler.profiling.min.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. /**
  2. * @license React
  3. *
  4. * Copyright (c) Facebook, Inc. and its affiliates.
  5. *
  6. * This source code is licensed under the MIT license found in the
  7. * LICENSE file in the root directory of this source tree.
  8. */
  9. /* eslint-disable max-len */
  10. 'use strict';
  11. (function(global, factory) {
  12. // eslint-disable-next-line no-unused-expressions
  13. typeof exports === 'object' && typeof module !== 'undefined'
  14. ? (module.exports = factory(require('react')))
  15. : typeof define === 'function' && define.amd // eslint-disable-line no-undef
  16. ? define(['react'], factory) // eslint-disable-line no-undef
  17. : (global.Scheduler = factory(global));
  18. })(this, function(global) {
  19. function unstable_now() {
  20. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
  21. this,
  22. arguments
  23. );
  24. }
  25. function unstable_scheduleCallback() {
  26. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleCallback.apply(
  27. this,
  28. arguments
  29. );
  30. }
  31. function unstable_cancelCallback() {
  32. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelCallback.apply(
  33. this,
  34. arguments
  35. );
  36. }
  37. function unstable_shouldYield() {
  38. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_shouldYield.apply(
  39. this,
  40. arguments
  41. );
  42. }
  43. function unstable_requestPaint() {
  44. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_requestPaint.apply(
  45. this,
  46. arguments
  47. );
  48. }
  49. function unstable_runWithPriority() {
  50. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_runWithPriority.apply(
  51. this,
  52. arguments
  53. );
  54. }
  55. function unstable_next() {
  56. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_next.apply(
  57. this,
  58. arguments
  59. );
  60. }
  61. function unstable_wrapCallback() {
  62. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_wrapCallback.apply(
  63. this,
  64. arguments
  65. );
  66. }
  67. function unstable_getCurrentPriorityLevel() {
  68. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getCurrentPriorityLevel.apply(
  69. this,
  70. arguments
  71. );
  72. }
  73. function unstable_getFirstCallbackNode() {
  74. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_getFirstCallbackNode.apply(
  75. this,
  76. arguments
  77. );
  78. }
  79. function unstable_pauseExecution() {
  80. return undefined;
  81. }
  82. function unstable_continueExecution() {
  83. return undefined;
  84. }
  85. function unstable_forceFrameRate() {
  86. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_forceFrameRate.apply(
  87. this,
  88. arguments
  89. );
  90. }
  91. return Object.freeze({
  92. unstable_now: unstable_now,
  93. unstable_scheduleCallback: unstable_scheduleCallback,
  94. unstable_cancelCallback: unstable_cancelCallback,
  95. unstable_shouldYield: unstable_shouldYield,
  96. unstable_requestPaint: unstable_requestPaint,
  97. unstable_runWithPriority: unstable_runWithPriority,
  98. unstable_next: unstable_next,
  99. unstable_wrapCallback: unstable_wrapCallback,
  100. unstable_getCurrentPriorityLevel: unstable_getCurrentPriorityLevel,
  101. unstable_continueExecution: unstable_continueExecution,
  102. unstable_pauseExecution: unstable_pauseExecution,
  103. unstable_getFirstCallbackNode: unstable_getFirstCallbackNode,
  104. unstable_forceFrameRate: unstable_forceFrameRate,
  105. get unstable_IdlePriority() {
  106. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
  107. .Scheduler.unstable_IdlePriority;
  108. },
  109. get unstable_ImmediatePriority() {
  110. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
  111. .Scheduler.unstable_ImmediatePriority;
  112. },
  113. get unstable_LowPriority() {
  114. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
  115. .Scheduler.unstable_LowPriority;
  116. },
  117. get unstable_NormalPriority() {
  118. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
  119. .Scheduler.unstable_NormalPriority;
  120. },
  121. get unstable_UserBlockingPriority() {
  122. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
  123. .Scheduler.unstable_UserBlockingPriority;
  124. },
  125. get unstable_Profiling() {
  126. return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
  127. .Scheduler.unstable_Profiling;
  128. },
  129. });
  130. });