Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

31 строка
813 B

  1. // usage assumption: currentStyle values have already been rendered but it says
  2. // nothing of whether currentStyle is stale (see unreadPropStyle)
  3. 'use strict';
  4. exports.__esModule = true;
  5. exports['default'] = shouldStopAnimation;
  6. function shouldStopAnimation(currentStyle, style, currentVelocity) {
  7. for (var key in style) {
  8. if (!Object.prototype.hasOwnProperty.call(style, key)) {
  9. continue;
  10. }
  11. if (currentVelocity[key] !== 0) {
  12. return false;
  13. }
  14. var styleValue = typeof style[key] === 'number' ? style[key] : style[key].val;
  15. // stepper will have already taken care of rounding precision errors, so
  16. // won't have such thing as 0.9999 !=== 1
  17. if (currentStyle[key] !== styleValue) {
  18. return false;
  19. }
  20. }
  21. return true;
  22. }
  23. module.exports = exports['default'];