index.js 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. "use strict";
  2. function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  3. Object.defineProperty(exports, "__esModule", {
  4. value: true
  5. });
  6. var _exportNames = {};
  7. exports.default = void 0;
  8. var _utils = _interopRequireWildcard(require("./src/utils"));
  9. Object.keys(_utils).forEach(function (key) {
  10. if (key === "default" || key === "__esModule") return;
  11. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  12. if (key in exports && exports[key] === _utils[key]) return;
  13. Object.defineProperty(exports, key, {
  14. enumerable: true,
  15. get: function get() {
  16. return _utils[key];
  17. }
  18. });
  19. });
  20. var _dom = _interopRequireWildcard(require("./src/dom"));
  21. Object.keys(_dom).forEach(function (key) {
  22. if (key === "default" || key === "__esModule") return;
  23. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  24. if (key in exports && exports[key] === _dom[key]) return;
  25. Object.defineProperty(exports, key, {
  26. enumerable: true,
  27. get: function get() {
  28. return _dom[key];
  29. }
  30. });
  31. });
  32. var _event = _interopRequireWildcard(require("./src/event"));
  33. Object.keys(_event).forEach(function (key) {
  34. if (key === "default" || key === "__esModule") return;
  35. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  36. if (key in exports && exports[key] === _event[key]) return;
  37. Object.defineProperty(exports, key, {
  38. enumerable: true,
  39. get: function get() {
  40. return _event[key];
  41. }
  42. });
  43. });
  44. var _resize = require("./src/resize");
  45. Object.keys(_resize).forEach(function (key) {
  46. if (key === "default" || key === "__esModule") return;
  47. if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  48. if (key in exports && exports[key] === _resize[key]) return;
  49. Object.defineProperty(exports, key, {
  50. enumerable: true,
  51. get: function get() {
  52. return _resize[key];
  53. }
  54. });
  55. });
  56. function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
  57. function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
  58. var _default = {
  59. UtilTools: _utils.default,
  60. DomTools: _dom.default,
  61. GlobalEvent: _event.default
  62. };
  63. exports.default = _default;