Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

animator.js 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import _Object$getPrototypeOf from 'babel-runtime/core-js/object/get-prototype-of';
  2. import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
  3. import _createClass from 'babel-runtime/helpers/createClass';
  4. import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
  5. import _inherits from 'babel-runtime/helpers/inherits';
  6. /*
  7. Copyright 2013-2015 ASIAL CORPORATION
  8. Licensed under the Apache License, Version 2.0 (the "License");
  9. you may not use this file except in compliance with the License.
  10. You may obtain a copy of the License at
  11. http://www.apache.org/licenses/LICENSE-2.0
  12. Unless required by applicable law or agreed to in writing, software
  13. distributed under the License is distributed on an "AS IS" BASIS,
  14. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. See the License for the specific language governing permissions and
  16. limitations under the License.
  17. */
  18. import BaseAnimator from '../../ons/base-animator';
  19. var ModalAnimator = function (_BaseAnimator) {
  20. _inherits(ModalAnimator, _BaseAnimator);
  21. /**
  22. * @param {Object} options
  23. * @param {String} options.timing
  24. * @param {Number} options.duration
  25. * @param {Number} options.delay
  26. */
  27. function ModalAnimator() {
  28. var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
  29. _ref$timing = _ref.timing,
  30. timing = _ref$timing === undefined ? 'linear' : _ref$timing,
  31. _ref$delay = _ref.delay,
  32. delay = _ref$delay === undefined ? 0 : _ref$delay,
  33. _ref$duration = _ref.duration,
  34. duration = _ref$duration === undefined ? 0.2 : _ref$duration;
  35. _classCallCheck(this, ModalAnimator);
  36. return _possibleConstructorReturn(this, (ModalAnimator.__proto__ || _Object$getPrototypeOf(ModalAnimator)).call(this, { timing: timing, delay: delay, duration: duration }));
  37. }
  38. /**
  39. * @param {HTMLElement} modal
  40. * @param {Function} callback
  41. */
  42. _createClass(ModalAnimator, [{
  43. key: 'show',
  44. value: function show(modal, callback) {
  45. callback();
  46. }
  47. /**
  48. * @param {HTMLElement} modal
  49. * @param {Function} callback
  50. */
  51. }, {
  52. key: 'hide',
  53. value: function hide(modal, callback) {
  54. callback();
  55. }
  56. }]);
  57. return ModalAnimator;
  58. }(BaseAnimator);
  59. export default ModalAnimator;