perfect-scrollbar.interfaces.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. /**
  2. * @fileoverview added by tsickle
  3. * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
  4. */
  5. import { InjectionToken } from '@angular/core';
  6. /** @type {?} */
  7. export var PERFECT_SCROLLBAR_CONFIG = new InjectionToken('PERFECT_SCROLLBAR_CONFIG');
  8. var Geometry = /** @class */ (function () {
  9. function Geometry(x, y, w, h) {
  10. this.x = x;
  11. this.y = y;
  12. this.w = w;
  13. this.h = h;
  14. }
  15. return Geometry;
  16. }());
  17. export { Geometry };
  18. if (false) {
  19. /** @type {?} */
  20. Geometry.prototype.x;
  21. /** @type {?} */
  22. Geometry.prototype.y;
  23. /** @type {?} */
  24. Geometry.prototype.w;
  25. /** @type {?} */
  26. Geometry.prototype.h;
  27. }
  28. var Position = /** @class */ (function () {
  29. function Position(x, y) {
  30. this.x = x;
  31. this.y = y;
  32. }
  33. return Position;
  34. }());
  35. export { Position };
  36. if (false) {
  37. /** @type {?} */
  38. Position.prototype.x;
  39. /** @type {?} */
  40. Position.prototype.y;
  41. }
  42. /** @type {?} */
  43. export var PerfectScrollbarEvents = [
  44. 'psScrollY',
  45. 'psScrollX',
  46. 'psScrollUp',
  47. 'psScrollDown',
  48. 'psScrollLeft',
  49. 'psScrollRight',
  50. 'psYReachEnd',
  51. 'psYReachStart',
  52. 'psXReachEnd',
  53. 'psXReachStart'
  54. ];
  55. /**
  56. * @record
  57. */
  58. export function PerfectScrollbarConfigInterface() { }
  59. if (false) {
  60. /** @type {?|undefined} */
  61. PerfectScrollbarConfigInterface.prototype.handlers;
  62. /** @type {?|undefined} */
  63. PerfectScrollbarConfigInterface.prototype.wheelSpeed;
  64. /** @type {?|undefined} */
  65. PerfectScrollbarConfigInterface.prototype.swipeEasing;
  66. /** @type {?|undefined} */
  67. PerfectScrollbarConfigInterface.prototype.suppressScrollX;
  68. /** @type {?|undefined} */
  69. PerfectScrollbarConfigInterface.prototype.suppressScrollY;
  70. /** @type {?|undefined} */
  71. PerfectScrollbarConfigInterface.prototype.wheelPropagation;
  72. /** @type {?|undefined} */
  73. PerfectScrollbarConfigInterface.prototype.useBothWheelAxes;
  74. /** @type {?|undefined} */
  75. PerfectScrollbarConfigInterface.prototype.scrollingThreshold;
  76. /** @type {?|undefined} */
  77. PerfectScrollbarConfigInterface.prototype.minScrollbarLength;
  78. /** @type {?|undefined} */
  79. PerfectScrollbarConfigInterface.prototype.maxScrollbarLength;
  80. /** @type {?|undefined} */
  81. PerfectScrollbarConfigInterface.prototype.scrollXMarginOffset;
  82. /** @type {?|undefined} */
  83. PerfectScrollbarConfigInterface.prototype.scrollYMarginOffset;
  84. }
  85. var PerfectScrollbarConfig = /** @class */ (function () {
  86. function PerfectScrollbarConfig(config) {
  87. if (config === void 0) { config = {}; }
  88. this.assign(config);
  89. }
  90. /**
  91. * @param {?=} config
  92. * @return {?}
  93. */
  94. PerfectScrollbarConfig.prototype.assign = /**
  95. * @param {?=} config
  96. * @return {?}
  97. */
  98. function (config) {
  99. if (config === void 0) { config = {}; }
  100. for (var key in config) {
  101. this[(/** @type {?} */ (key))] = config[(/** @type {?} */ (key))];
  102. }
  103. };
  104. return PerfectScrollbarConfig;
  105. }());
  106. export { PerfectScrollbarConfig };
  107. if (false) {
  108. /** @type {?} */
  109. PerfectScrollbarConfig.prototype.handlers;
  110. /** @type {?} */
  111. PerfectScrollbarConfig.prototype.wheelSpeed;
  112. /** @type {?} */
  113. PerfectScrollbarConfig.prototype.swipeEasing;
  114. /** @type {?} */
  115. PerfectScrollbarConfig.prototype.suppressScrollX;
  116. /** @type {?} */
  117. PerfectScrollbarConfig.prototype.suppressScrollY;
  118. /** @type {?} */
  119. PerfectScrollbarConfig.prototype.wheelPropagation;
  120. /** @type {?} */
  121. PerfectScrollbarConfig.prototype.useBothWheelAxes;
  122. /** @type {?} */
  123. PerfectScrollbarConfig.prototype.scrollingThreshold;
  124. /** @type {?} */
  125. PerfectScrollbarConfig.prototype.minScrollbarLength;
  126. /** @type {?} */
  127. PerfectScrollbarConfig.prototype.maxScrollbarLength;
  128. /** @type {?} */
  129. PerfectScrollbarConfig.prototype.scrollXMarginOffset;
  130. /** @type {?} */
  131. PerfectScrollbarConfig.prototype.scrollYMarginOffset;
  132. }
  133. //# sourceMappingURL=perfect-scrollbar.interfaces.js.map