vevet 1.4.27 → 2.0.1-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +7 -71
- package/build/cdn/index.js +12 -0
- package/build/cdn/index.js.LICENSE.txt +14 -0
- package/build/cjs/app/Application.js +297 -0
- package/build/cjs/app/events/PageLoad.js +74 -0
- package/build/cjs/app/events/Viewport.js +303 -0
- package/build/cjs/base/Callbacks.js +232 -0
- package/build/cjs/base/Component.js +56 -0
- package/build/cjs/base/Module.js +262 -0
- package/build/cjs/base/MutableProp.js +165 -0
- package/build/cjs/base/Plugin.js +56 -0
- package/build/cjs/components/animation-frame/AnimationFrame.js +183 -0
- package/build/cjs/components/canvas/Ctx2D.js +200 -0
- package/build/cjs/components/canvas/Ctx2DPrerender.js +72 -0
- package/build/cjs/components/cursor/CustomCursor.js +344 -0
- package/build/cjs/components/dragger/Dragger.js +229 -0
- package/build/cjs/components/dragger/DraggerDirection.js +77 -0
- package/build/cjs/components/dragger/DraggerMove.js +84 -0
- package/build/cjs/components/loading/Preloader.js +229 -0
- package/build/cjs/components/loading/ProgressPreloader.js +377 -0
- package/build/cjs/components/page/Page.js +353 -0
- package/build/cjs/components/scroll/custom-scroll/CustomScroll.js +517 -0
- package/build/cjs/components/scroll/plugins/SmoothScrollDragPlugin.js +178 -0
- package/build/cjs/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +138 -0
- package/build/cjs/components/scroll/scrollable/ScrollEventsBase.js +133 -0
- package/build/cjs/components/scroll/scrollable/ScrollView.js +315 -0
- package/build/cjs/components/scroll/scrollbar/Bar.js +315 -0
- package/build/cjs/components/scroll/scrollbar/ScrollBar.js +206 -0
- package/build/cjs/components/scroll/smooth-scroll/SmoothScroll.js +625 -0
- package/build/cjs/components/scroll/types.js +2 -0
- package/build/cjs/components/split-text/SplitText.js +233 -0
- package/build/cjs/components/text/SplitText.js +329 -0
- package/build/cjs/components/timeline/StaticTimeline.js +137 -0
- package/build/cjs/components/timeline/Timeline.js +190 -0
- package/build/cjs/index.js +87 -0
- package/build/cjs/utils/common/index.js +12 -0
- package/build/cjs/utils/common/mergeWithoutArrays.js +19 -0
- package/build/cjs/utils/common/randID.js +11 -0
- package/build/cjs/utils/common/timeoutCallback.js +17 -0
- package/build/cjs/utils/errors.js +8 -0
- package/build/cjs/utils/listeners/index.js +10 -0
- package/build/cjs/utils/listeners/intersectionObserverSupported.js +11 -0
- package/build/cjs/utils/listeners/onScroll.js +47 -0
- package/build/cjs/utils/math/boundVal.js +16 -0
- package/build/cjs/utils/math/index.js +12 -0
- package/build/cjs/utils/math/lerp.js +15 -0
- package/build/cjs/utils/math/scopeProgress.js +25 -0
- package/build/cjs/utils/types/general.js +2 -0
- package/build/cjs/utils/types/utility.js +2 -0
- package/build/es/app/Application.js +210 -0
- package/build/es/app/events/PageLoad.js +47 -0
- package/build/es/app/events/Viewport.js +232 -0
- package/build/es/base/Callbacks.js +205 -0
- package/build/es/base/Component.js +32 -0
- package/build/es/base/Module.js +225 -0
- package/build/es/base/MutableProp.js +152 -0
- package/build/es/base/Plugin.js +31 -0
- package/build/es/components/animation-frame/AnimationFrame.js +145 -0
- package/build/es/components/canvas/Ctx2D.js +133 -0
- package/build/es/components/canvas/Ctx2DPrerender.js +37 -0
- package/build/es/components/cursor/CustomCursor.js +274 -0
- package/build/es/components/dragger/Dragger.js +175 -0
- package/build/es/components/dragger/DraggerDirection.js +42 -0
- package/build/es/components/dragger/DraggerMove.js +56 -0
- package/build/es/components/loading/Preloader.js +164 -0
- package/build/es/components/loading/ProgressPreloader.js +304 -0
- package/build/es/components/page/Page.js +283 -0
- package/build/es/components/scroll/custom-scroll/CustomScroll.js +486 -0
- package/build/es/components/scroll/plugins/SmoothScrollDragPlugin.js +140 -0
- package/build/es/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +109 -0
- package/build/es/components/scroll/scrollable/ScrollEventsBase.js +79 -0
- package/build/es/components/scroll/scrollable/ScrollView.js +264 -0
- package/build/es/components/scroll/scrollbar/Bar.js +262 -0
- package/build/es/components/scroll/scrollbar/ScrollBar.js +152 -0
- package/build/es/components/scroll/smooth-scroll/SmoothScroll.js +519 -0
- package/build/es/components/scroll/types.js +1 -0
- package/build/es/components/split-text/SplitText.js +199 -0
- package/build/es/components/text/SplitText.js +270 -0
- package/build/es/components/timeline/StaticTimeline.js +92 -0
- package/build/es/components/timeline/Timeline.js +141 -0
- package/build/es/index.js +37 -0
- package/build/es/utils/common/index.js +4 -0
- package/build/es/utils/common/mergeWithoutArrays.js +13 -0
- package/build/es/utils/common/randID.js +7 -0
- package/build/es/utils/common/timeoutCallback.js +14 -0
- package/build/es/utils/errors.js +5 -0
- package/build/es/utils/listeners/index.js +3 -0
- package/build/es/utils/listeners/intersectionObserverSupported.js +8 -0
- package/build/es/utils/listeners/onScroll.js +44 -0
- package/build/es/utils/math/boundVal.js +12 -0
- package/build/es/utils/math/index.js +4 -0
- package/build/es/utils/math/lerp.js +11 -0
- package/build/es/utils/math/scopeProgress.js +22 -0
- package/build/es/utils/types/general.js +1 -0
- package/build/es/utils/types/utility.js +1 -0
- package/build/types/app/Application.d.ts +161 -0
- package/build/types/app/Application.d.ts.map +1 -0
- package/build/types/app/events/PageLoad.d.ts +28 -0
- package/build/types/app/events/PageLoad.d.ts.map +1 -0
- package/build/types/app/events/Viewport.d.ts +137 -0
- package/build/types/app/events/Viewport.d.ts.map +1 -0
- package/build/types/base/Callbacks.d.ts +174 -0
- package/build/types/base/Callbacks.d.ts.map +1 -0
- package/build/types/base/Component.d.ts +48 -0
- package/build/types/base/Component.d.ts.map +1 -0
- package/build/types/base/Module.d.ts +179 -0
- package/build/types/base/Module.d.ts.map +1 -0
- package/build/types/base/MutableProp.d.ts +142 -0
- package/build/types/base/MutableProp.d.ts.map +1 -0
- package/build/types/base/Plugin.d.ts +35 -0
- package/build/types/base/Plugin.d.ts.map +1 -0
- package/build/types/components/animation-frame/AnimationFrame.d.ts +96 -0
- package/build/types/components/animation-frame/AnimationFrame.d.ts.map +1 -0
- package/build/types/components/canvas/Ctx2D.d.ts +111 -0
- package/build/types/components/canvas/Ctx2D.d.ts.map +1 -0
- package/build/types/components/canvas/Ctx2DPrerender.d.ts +41 -0
- package/build/types/components/canvas/Ctx2DPrerender.d.ts.map +1 -0
- package/build/types/components/cursor/CustomCursor.d.ts +181 -0
- package/build/types/components/cursor/CustomCursor.d.ts.map +1 -0
- package/build/types/components/dragger/Dragger.d.ts +120 -0
- package/build/types/components/dragger/Dragger.d.ts.map +1 -0
- package/build/types/components/dragger/DraggerDirection.d.ts +39 -0
- package/build/types/components/dragger/DraggerDirection.d.ts.map +1 -0
- package/build/types/components/dragger/DraggerMove.d.ts +49 -0
- package/build/types/components/dragger/DraggerMove.d.ts.map +1 -0
- package/build/types/components/loading/Preloader.d.ts +107 -0
- package/build/types/components/loading/Preloader.d.ts.map +1 -0
- package/build/types/components/loading/ProgressPreloader.d.ts +166 -0
- package/build/types/components/loading/ProgressPreloader.d.ts.map +1 -0
- package/build/types/components/page/Page.d.ts +126 -0
- package/build/types/components/page/Page.d.ts.map +1 -0
- package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts +322 -0
- package/build/types/components/scroll/custom-scroll/CustomScroll.d.ts.map +1 -0
- package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts +97 -0
- package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts.map +1 -0
- package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts +34 -0
- package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts.map +1 -0
- package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts +60 -0
- package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts.map +1 -0
- package/build/types/components/scroll/scrollable/ScrollView.d.ts +140 -0
- package/build/types/components/scroll/scrollable/ScrollView.d.ts.map +1 -0
- package/build/types/components/scroll/scrollbar/Bar.d.ts +84 -0
- package/build/types/components/scroll/scrollbar/Bar.d.ts.map +1 -0
- package/build/types/components/scroll/scrollbar/ScrollBar.d.ts +109 -0
- package/build/types/components/scroll/scrollbar/ScrollBar.d.ts.map +1 -0
- package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts +307 -0
- package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts.map +1 -0
- package/build/types/components/scroll/types.d.ts +11 -0
- package/build/types/components/scroll/types.d.ts.map +1 -0
- package/build/types/components/split-text/SplitText.d.ts +118 -0
- package/build/types/components/split-text/SplitText.d.ts.map +1 -0
- package/build/types/components/text/SplitText.d.ts +118 -0
- package/build/types/components/text/SplitText.d.ts.map +1 -0
- package/build/types/components/timeline/StaticTimeline.d.ts +92 -0
- package/build/types/components/timeline/StaticTimeline.d.ts.map +1 -0
- package/build/types/components/timeline/Timeline.d.ts +101 -0
- package/build/types/components/timeline/Timeline.d.ts.map +1 -0
- package/build/types/index.d.ts +38 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/utils/common/index.d.ts +5 -0
- package/build/types/utils/common/index.d.ts.map +1 -0
- package/build/types/utils/common/mergeWithoutArrays.d.ts +6 -0
- package/build/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
- package/build/types/utils/common/randID.d.ts +5 -0
- package/build/types/utils/common/randID.d.ts.map +1 -0
- package/build/types/utils/common/timeoutCallback.d.ts +6 -0
- package/build/types/utils/common/timeoutCallback.d.ts.map +1 -0
- package/build/types/utils/errors.d.ts +3 -0
- package/build/types/utils/errors.d.ts.map +1 -0
- package/build/types/utils/listeners/index.d.ts +4 -0
- package/build/types/utils/listeners/index.d.ts.map +1 -0
- package/build/types/utils/listeners/intersectionObserverSupported.d.ts +2 -0
- package/build/types/utils/listeners/intersectionObserverSupported.d.ts.map +1 -0
- package/build/types/utils/listeners/onScroll.d.ts +10 -0
- package/build/types/utils/listeners/onScroll.d.ts.map +1 -0
- package/build/types/utils/math/boundVal.d.ts +5 -0
- package/build/types/utils/math/boundVal.d.ts.map +1 -0
- package/build/types/utils/math/index.d.ts +5 -0
- package/build/types/utils/math/index.d.ts.map +1 -0
- package/build/types/utils/math/lerp.d.ts +5 -0
- package/build/types/utils/math/lerp.d.ts.map +1 -0
- package/build/types/utils/math/scopeProgress.d.ts +20 -0
- package/build/types/utils/math/scopeProgress.d.ts.map +1 -0
- package/build/types/utils/types/general.d.ts +7 -0
- package/build/types/utils/types/general.d.ts.map +1 -0
- package/build/types/utils/types/utility.d.ts +14 -0
- package/build/types/utils/types/utility.d.ts.map +1 -0
- package/package.json +88 -82
- package/src/cdn/index.js +3 -0
- package/src/sass/base.scss +3 -0
- package/src/sass/components/cursor/_custom-cursor.scss +63 -0
- package/src/sass/components/index.scss +6 -0
- package/src/sass/components/loading/_preloader.scss +15 -0
- package/src/sass/components/scroll/_scrollbar.scss +73 -0
- package/src/sass/components/scroll/_smooth-scroll.scss +17 -0
- package/src/sass/index.scss +3 -0
- package/src/sass/mixins/_scroll.scss +7 -0
- package/{dist/scss → src/sass}/mixins/_transition.scss +8 -4
- package/src/sass/mixins/_viewport.scss +69 -0
- package/src/sass/mixins/index.scss +3 -0
- package/src/ts/app/Application.ts +350 -0
- package/src/ts/app/events/PageLoad.ts +79 -0
- package/src/ts/app/events/Viewport.ts +365 -0
- package/src/ts/base/Callbacks.ts +380 -0
- package/src/ts/base/Component.ts +83 -0
- package/src/ts/base/Module.ts +385 -0
- package/src/ts/base/MutableProp.ts +242 -0
- package/src/ts/base/Plugin.ts +76 -0
- package/src/ts/components/animation-frame/AnimationFrame.ts +264 -0
- package/src/ts/components/canvas/Ctx2D.ts +260 -0
- package/src/ts/components/canvas/Ctx2DPrerender.ts +96 -0
- package/src/ts/components/cursor/CustomCursor.ts +462 -0
- package/src/ts/components/dragger/Dragger.ts +313 -0
- package/src/ts/components/dragger/DraggerDirection.ts +106 -0
- package/src/ts/components/dragger/DraggerMove.ts +114 -0
- package/src/ts/components/loading/Preloader.ts +279 -0
- package/src/ts/components/loading/ProgressPreloader.ts +484 -0
- package/src/ts/components/page/Page.ts +421 -0
- package/src/ts/components/scroll/plugins/SmoothScrollDragPlugin.ts +251 -0
- package/src/ts/components/scroll/plugins/SmoothScrollKeyboardPlugin.ts +166 -0
- package/src/ts/components/scroll/scrollable/ScrollEventsBase.ts +151 -0
- package/src/ts/components/scroll/scrollable/ScrollView.ts +435 -0
- package/src/ts/components/scroll/scrollbar/Bar.ts +364 -0
- package/src/ts/components/scroll/scrollbar/ScrollBar.ts +292 -0
- package/src/ts/components/scroll/smooth-scroll/SmoothScroll.ts +861 -0
- package/src/ts/components/scroll/types.ts +10 -0
- package/src/ts/components/text/SplitText.ts +418 -0
- package/src/ts/components/timeline/StaticTimeline.ts +197 -0
- package/src/ts/components/timeline/Timeline.ts +256 -0
- package/src/ts/index.ts +94 -0
- package/src/ts/utils/common/index.ts +9 -0
- package/src/ts/utils/common/mergeWithoutArrays.ts +20 -0
- package/src/ts/utils/common/randID.ts +9 -0
- package/src/ts/utils/common/timeoutCallback.ts +16 -0
- package/src/ts/utils/errors.ts +6 -0
- package/src/ts/utils/listeners/index.ts +7 -0
- package/src/ts/utils/listeners/intersectionObserverSupported.ts +10 -0
- package/src/ts/utils/listeners/onScroll.ts +56 -0
- package/src/ts/utils/math/boundVal.ts +15 -0
- package/src/ts/utils/math/index.ts +9 -0
- package/src/ts/utils/math/lerp.ts +16 -0
- package/src/ts/utils/math/scopeProgress.ts +23 -0
- package/src/ts/utils/types/general.ts +7 -0
- package/src/ts/utils/types/utility.ts +34 -0
- package/dist/js/AJAXEvent.js +0 -355
- package/dist/js/Application.js +0 -345
- package/dist/js/ColumnsModule.js +0 -392
- package/dist/js/CursorModule.js +0 -390
- package/dist/js/DraggerModule.js +0 -792
- package/dist/js/Event.js +0 -538
- package/dist/js/FilterModule.js +0 -943
- package/dist/js/FormModule.js +0 -706
- package/dist/js/FrameModule.js +0 -229
- package/dist/js/IntervalModule.js +0 -270
- package/dist/js/KeydownModule.js +0 -293
- package/dist/js/LoadEvent.js +0 -106
- package/dist/js/MenuBaseModule.js +0 -292
- package/dist/js/MenuModule.js +0 -265
- package/dist/js/MenuTimelineModule.js +0 -321
- package/dist/js/Module.js +0 -478
- package/dist/js/PageAjaxModule.js +0 -1010
- package/dist/js/PageLoadMediaPlugin.js +0 -285
- package/dist/js/PageModule.js +0 -440
- package/dist/js/PaginationModule.js +0 -961
- package/dist/js/PaginationScrollPlugin.js +0 -209
- package/dist/js/Plugin.js +0 -114
- package/dist/js/PopupModule.js +0 -942
- package/dist/js/PreloaderModule.js +0 -724
- package/dist/js/ResponsiveProp.js +0 -301
- package/dist/js/ScrollAnchorModule.js +0 -554
- package/dist/js/ScrollAnimateModule.js +0 -419
- package/dist/js/ScrollBarPlugin.js +0 -594
- package/dist/js/ScrollDragPlugin.js +0 -396
- package/dist/js/ScrollModule.js +0 -1071
- package/dist/js/ScrollViewModule.js +0 -388
- package/dist/js/SelectModule.js +0 -860
- package/dist/js/SliderCanvasModule.js +0 -733
- package/dist/js/SliderControlsPlugin.js +0 -247
- package/dist/js/SliderCounterPlugin.js +0 -278
- package/dist/js/SliderDotsPlugin.js +0 -270
- package/dist/js/SliderDragSwipePlugin.js +0 -245
- package/dist/js/SliderIntervalPlugin.js +0 -192
- package/dist/js/SliderKeydownPlugin.js +0 -185
- package/dist/js/SliderModule.js +0 -1062
- package/dist/js/SliderWheelPlugin.js +0 -194
- package/dist/js/TextAnimateModule.js +0 -663
- package/dist/js/TextSplitModule.js +0 -785
- package/dist/js/TimelineBaseModule.js +0 -405
- package/dist/js/TimelineModule.js +0 -494
- package/dist/js/URLEvent.js +0 -239
- package/dist/js/ViewportEvent.js +0 -465
- package/dist/js/WheelEventModule.js +0 -295
- package/dist/js/domChildOf.js +0 -46
- package/dist/js/domChildren.js +0 -47
- package/dist/js/domInsertAfter.js +0 -32
- package/dist/js/domRemoveChildren.js +0 -26
- package/dist/js/easing.js +0 -363
- package/dist/js/eventListenerAdd.js +0 -87
- package/dist/js/eventListenerGet.js +0 -49
- package/dist/js/eventListenerRemove.js +0 -36
- package/dist/js/generateId.js +0 -29
- package/dist/js/getBrowserName.js +0 -60
- package/dist/js/getOsName.js +0 -39
- package/dist/js/getVevetProperties.js +0 -22
- package/dist/js/index.js +0 -519
- package/dist/js/mathScopeProgress.js +0 -32
- package/dist/js/mathSpreadScopeProgress.js +0 -35
- package/dist/js/merge.js +0 -33
- package/dist/js/normalizeWheel.js +0 -97
- package/dist/js/text_animate_module_addons/_composite_elementary.js +0 -196
- package/dist/js/text_animate_module_addons/_elementary.js +0 -88
- package/dist/js/timeoutCallback.js +0 -26
- package/dist/js/vevet.js +0 -10
- package/dist/scss/_prefix.scss +0 -1
- package/dist/scss/classes/_clear.scss +0 -5
- package/dist/scss/classes/_col-row.scss +0 -48
- package/dist/scss/classes/_display.scss +0 -65
- package/dist/scss/classes/_document-reset.scss +0 -28
- package/dist/scss/classes/_document.scss +0 -7
- package/dist/scss/classes/_overflow.scss +0 -39
- package/dist/scss/classes/_position.scss +0 -55
- package/dist/scss/classes/_text.scss +0 -24
- package/dist/scss/classes/_transition.scss +0 -22
- package/dist/scss/classes/_wrap.scss +0 -31
- package/dist/scss/classes/index.scss +0 -14
- package/dist/scss/index.scss +0 -3
- package/dist/scss/mixins/_clear.scss +0 -6
- package/dist/scss/mixins/_display.scss +0 -6
- package/dist/scss/mixins/_form.scss +0 -14
- package/dist/scss/mixins/_position.scss +0 -42
- package/dist/scss/mixins/_reset.scss +0 -17
- package/dist/scss/mixins/_responsive.scss +0 -88
- package/dist/scss/mixins/index.scss +0 -7
- package/dist/scss/modules/columns/_settings.scss +0 -1
- package/dist/scss/modules/columns/index.scss +0 -19
- package/dist/scss/modules/cursor/_settings.scss +0 -7
- package/dist/scss/modules/cursor/index.scss +0 -15
- package/dist/scss/modules/form/_settings.scss +0 -15
- package/dist/scss/modules/form/index.scss +0 -57
- package/dist/scss/modules/index.scss +0 -11
- package/dist/scss/modules/menu/_button.scss +0 -58
- package/dist/scss/modules/menu/_menu.scss +0 -25
- package/dist/scss/modules/menu/_settings.scss +0 -23
- package/dist/scss/modules/menu/index.scss +0 -3
- package/dist/scss/modules/pagination/_settings.scss +0 -6
- package/dist/scss/modules/pagination/index.scss +0 -24
- package/dist/scss/modules/popup/_settings.scss +0 -26
- package/dist/scss/modules/popup/index.scss +0 -294
- package/dist/scss/modules/preloader/_settings.scss +0 -3
- package/dist/scss/modules/preloader/index.scss +0 -19
- package/dist/scss/modules/scroll/_settings.scss +0 -22
- package/dist/scss/modules/scroll/index.scss +0 -94
- package/dist/scss/modules/select/_settings.scss +0 -28
- package/dist/scss/modules/select/index.scss +0 -142
- package/dist/scss/modules/slider/_settings.scss +0 -35
- package/dist/scss/modules/slider/index.scss +0 -153
- package/dist/scss/modules/text/_settings.scss +0 -1
- package/dist/scss/modules/text/index.scss +0 -19
- package/dist/types/types.d.ts +0 -18763
package/dist/js/ScrollModule.js
DELETED
|
@@ -1,1071 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
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); }
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
|
|
10
|
-
var _Module2 = _interopRequireDefault(require("./Module"));
|
|
11
|
-
|
|
12
|
-
var _merge = _interopRequireDefault(require("./merge"));
|
|
13
|
-
|
|
14
|
-
var _timeoutCallback = _interopRequireDefault(require("./timeoutCallback"));
|
|
15
|
-
|
|
16
|
-
var _normalizeWheel = _interopRequireDefault(require("./normalizeWheel"));
|
|
17
|
-
|
|
18
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
-
|
|
20
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
|
|
22
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
23
|
-
|
|
24
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
-
|
|
26
|
-
function _get(target, property, receiver) { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get; } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(receiver); } return desc.value; }; } return _get(target, property, receiver || target); }
|
|
27
|
-
|
|
28
|
-
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
29
|
-
|
|
30
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
31
|
-
|
|
32
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
33
|
-
|
|
34
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
35
|
-
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
37
|
-
|
|
38
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
|
-
|
|
40
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
|
-
|
|
42
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
|
-
|
|
44
|
-
var dom = require('dom-create-element');
|
|
45
|
-
|
|
46
|
-
var selectEl = require('select-el');
|
|
47
|
-
|
|
48
|
-
var lerp = require('lerp');
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @classdesc A class for cretating custom smooth scrolling.
|
|
52
|
-
* While setting up the class, you can choose what elements will imitate scrolling.
|
|
53
|
-
* There can be several elements, that will imitate scrolling with or without delays (with different easings),
|
|
54
|
-
* or there can be one element, an outer element, that will be translated while scrolling.
|
|
55
|
-
* The scroll itself works on the basis of {@linkcode requestAnimationFrame} and {@linkcode css-transforms}. <br>
|
|
56
|
-
* Available targets:
|
|
57
|
-
* <ul>
|
|
58
|
-
* <li>update - when scroll values are updated, it is launched on each frame. Each callback receives {@linkcode Vevet.ScrollModule.Event} as an argument.</li>
|
|
59
|
-
* <li>size - when scroll sizes are updated. This happens either with each frame if {@linkcode resizeOnUpdate} is enabled or on window resize.</li>
|
|
60
|
-
* <li>wheel - event on wheen. Each callback receives {@linkcode WheelEvent} as an argument.</li>
|
|
61
|
-
* <li>approximate - when scroll targets and values are approximated.</li>
|
|
62
|
-
* </ul>
|
|
63
|
-
* <br><br> <b>import {ScrollModule} from 'vevet';</b>
|
|
64
|
-
*
|
|
65
|
-
* @vevetModuleCallback { Vevet.ScrollModule : update : Vevet.ScrollModule.Event}
|
|
66
|
-
* @vevetModuleCallback { Vevet.ScrollModule : size : }
|
|
67
|
-
* @vevetModuleCallback { Vevet.ScrollModule : wheel : WheelEvent }
|
|
68
|
-
* @vevetModuleCallback { Vevet.ScrollModule : approximate : }
|
|
69
|
-
*
|
|
70
|
-
* @class
|
|
71
|
-
* @memberof Vevet
|
|
72
|
-
* @augments Vevet.Module
|
|
73
|
-
*/
|
|
74
|
-
var ScrollModule = /*#__PURE__*/function (_Module) {
|
|
75
|
-
_inherits(ScrollModule, _Module);
|
|
76
|
-
|
|
77
|
-
var _super = _createSuper(ScrollModule);
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* @memberof Vevet.ScrollModule
|
|
81
|
-
* @typedef {object} Properties
|
|
82
|
-
* @augments Vevet.Module.Properties
|
|
83
|
-
*
|
|
84
|
-
* @property {object} [selectors]
|
|
85
|
-
* @property {string|HTMLElement} [selectors.outer=.vevet-scroll] - *** The scroll outer element.
|
|
86
|
-
* @property {string|HTMLElement|NodeList|Array<HTMLElement>} [selectors.elements=.vevet-scroll__el] - Elements inside the outer element to be scrolled.
|
|
87
|
-
*
|
|
88
|
-
* @property {boolean} [run=true] - If true, the scrolling will work.
|
|
89
|
-
* @property {false|Vevet.FrameModule|Vevet.Module} [frame=false] - If false, the animation will work on the basis of {@linkcode requestAnimationFrame}.
|
|
90
|
-
* If not a frame or another module, an event under the target "frame" willbe added to it, and in this very event
|
|
91
|
-
* the scrolling values will be calculated.
|
|
92
|
-
* @property {boolean} [resizeOnUpdate=true] - Sometimes content and its height may change.
|
|
93
|
-
* If so, you need to launch {@linkcode Vevet.ScrollModule#setSize}.
|
|
94
|
-
* But if resizeOnUpdate is true, this action is not needed, because everything will be updated automatically.
|
|
95
|
-
* @property {number} [resizeTimeout=0] - A timeout before sizes are updated when the window is resized.
|
|
96
|
-
* @property {boolean} [scroll=true] - Defines if the scroll will respond to the wheel event.
|
|
97
|
-
* @property {boolean} [autoStop=true] - Stop the animation frame when the scroll and target values are maximally approximated.
|
|
98
|
-
* @property {boolean} [horizontal=false]
|
|
99
|
-
*
|
|
100
|
-
* @property {number} [ease=0.1] - The higher number, the faster animation.
|
|
101
|
-
* By the way, each scrolling element may have the attribute "data-vevet-scroll-ease" which will set
|
|
102
|
-
* a custom ease value for this very element.
|
|
103
|
-
*
|
|
104
|
-
* @property {boolean} [propagation=false] - If false, 'stopPropagation' will work.
|
|
105
|
-
* @property {boolean} [willChange=false] - Add will-change to the scrolling elements.
|
|
106
|
-
* @property { boolean } [round=false] - Round the scroll value to an integer.
|
|
107
|
-
* @property { boolean } [useTransform=true] - If false, "top" & "left" will be changed.
|
|
108
|
-
*/
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @alias Vevet.ScrollModule
|
|
112
|
-
*
|
|
113
|
-
* @param {Vevet.ScrollModule.Properties} [data]
|
|
114
|
-
*/
|
|
115
|
-
function ScrollModule(data) {
|
|
116
|
-
_classCallCheck(this, ScrollModule);
|
|
117
|
-
|
|
118
|
-
return _super.call(this, data);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
_createClass(ScrollModule, [{
|
|
122
|
-
key: "prefix",
|
|
123
|
-
get: function get() {
|
|
124
|
-
return "".concat(this._v.prefix, "scroll");
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* @readonly
|
|
128
|
-
* @type {Vevet.ScrollModule.Properties}
|
|
129
|
-
*/
|
|
130
|
-
|
|
131
|
-
}, {
|
|
132
|
-
key: "defaultProp",
|
|
133
|
-
get: function get() {
|
|
134
|
-
var prefix = this._prefix;
|
|
135
|
-
return (0, _merge.default)(_get(_getPrototypeOf(ScrollModule.prototype), "defaultProp", this), {
|
|
136
|
-
selectors: {
|
|
137
|
-
outer: ".".concat(prefix),
|
|
138
|
-
elements: ".".concat(prefix, "__el")
|
|
139
|
-
},
|
|
140
|
-
run: true,
|
|
141
|
-
frame: false,
|
|
142
|
-
resizeOnUpdate: true,
|
|
143
|
-
resizeTimeout: 0,
|
|
144
|
-
scroll: true,
|
|
145
|
-
autoStop: true,
|
|
146
|
-
horizontal: false,
|
|
147
|
-
ease: .1,
|
|
148
|
-
propagation: false,
|
|
149
|
-
willChange: false,
|
|
150
|
-
round: false,
|
|
151
|
-
useTransform: true
|
|
152
|
-
});
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* @member Vevet.ScrollModule#prop
|
|
156
|
-
* @memberof Vevet.ScrollModule
|
|
157
|
-
* @readonly
|
|
158
|
-
* @type {Vevet.ScrollModule.Properties}
|
|
159
|
-
*/
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @member Vevet.ScrollModule#_prop
|
|
163
|
-
* @memberof Vevet.ScrollModule
|
|
164
|
-
* @protected
|
|
165
|
-
* @type {Vevet.ScrollModule.Properties}
|
|
166
|
-
*/
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* @function Vevet.ScrollModule#changeProp
|
|
170
|
-
* @memberof Vevet.ScrollModule
|
|
171
|
-
* @param {Vevet.ScrollModule.Properties} [prop]
|
|
172
|
-
*/
|
|
173
|
-
|
|
174
|
-
/**
|
|
175
|
-
* @description Scroll outer.
|
|
176
|
-
* @readonly
|
|
177
|
-
* @type {HTMLElement}
|
|
178
|
-
*/
|
|
179
|
-
|
|
180
|
-
}, {
|
|
181
|
-
key: "outer",
|
|
182
|
-
get: function get() {
|
|
183
|
-
return this._outer;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* @description Elements to be scrolled.
|
|
187
|
-
* @readonly
|
|
188
|
-
* @type {Array<HTMLElement>|NodeList}
|
|
189
|
-
*/
|
|
190
|
-
|
|
191
|
-
}, {
|
|
192
|
-
key: "elements",
|
|
193
|
-
get: function get() {
|
|
194
|
-
return this._el;
|
|
195
|
-
}
|
|
196
|
-
/**
|
|
197
|
-
* @description Get container sizes: scrollWidth & scrollHeight.
|
|
198
|
-
* @readonly
|
|
199
|
-
* @type {Array<number>}
|
|
200
|
-
*/
|
|
201
|
-
|
|
202
|
-
}, {
|
|
203
|
-
key: "sizes",
|
|
204
|
-
get: function get() {
|
|
205
|
-
return [this._width, this._height];
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* @description Get scroll width.
|
|
209
|
-
* @readonly
|
|
210
|
-
* @type {number}
|
|
211
|
-
*/
|
|
212
|
-
|
|
213
|
-
}, {
|
|
214
|
-
key: "scrollWidth",
|
|
215
|
-
get: function get() {
|
|
216
|
-
return this._width;
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* @description Get scroll height.
|
|
220
|
-
* @readonly
|
|
221
|
-
* @type {number}
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
|
-
}, {
|
|
225
|
-
key: "scrollHeight",
|
|
226
|
-
get: function get() {
|
|
227
|
-
return this._height;
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* @description Get outer sizes: clientWidth & clientHeight.
|
|
231
|
-
* @readonly
|
|
232
|
-
* @type {Array<number>}
|
|
233
|
-
*/
|
|
234
|
-
|
|
235
|
-
}, {
|
|
236
|
-
key: "outerSizes",
|
|
237
|
-
get: function get() {
|
|
238
|
-
return [this._widthOuter, this._heightOuter];
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* @description Get outer width.
|
|
242
|
-
* @readonly
|
|
243
|
-
* @type {number}
|
|
244
|
-
*/
|
|
245
|
-
|
|
246
|
-
}, {
|
|
247
|
-
key: "width",
|
|
248
|
-
get: function get() {
|
|
249
|
-
return this._widthOuter;
|
|
250
|
-
}
|
|
251
|
-
/**
|
|
252
|
-
* @description Get outer height.
|
|
253
|
-
* @readonly
|
|
254
|
-
* @type {number}
|
|
255
|
-
*/
|
|
256
|
-
|
|
257
|
-
}, {
|
|
258
|
-
key: "height",
|
|
259
|
-
get: function get() {
|
|
260
|
-
return this._heightOuter;
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* @description ScrollTop value.
|
|
264
|
-
* @type {number}
|
|
265
|
-
*/
|
|
266
|
-
|
|
267
|
-
}, {
|
|
268
|
-
key: "scrollTop",
|
|
269
|
-
get: function get() {
|
|
270
|
-
return this._scrollTop;
|
|
271
|
-
},
|
|
272
|
-
set: function set(value) {
|
|
273
|
-
this._targetTop = value;
|
|
274
|
-
|
|
275
|
-
this._boundaries(true);
|
|
276
|
-
|
|
277
|
-
this._instant = true;
|
|
278
|
-
this.play();
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* @description ScrollLeft value.
|
|
282
|
-
* @type {number}
|
|
283
|
-
*/
|
|
284
|
-
|
|
285
|
-
}, {
|
|
286
|
-
key: "scrollLeft",
|
|
287
|
-
get: function get() {
|
|
288
|
-
return this._scrollLeft;
|
|
289
|
-
},
|
|
290
|
-
set: function set(value) {
|
|
291
|
-
this._targetLeft = value;
|
|
292
|
-
|
|
293
|
-
this._boundaries(false);
|
|
294
|
-
|
|
295
|
-
this._instant = true;
|
|
296
|
-
this.play();
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* @description Set scroll values. X & Y
|
|
300
|
-
* @type {Array<number>}
|
|
301
|
-
*/
|
|
302
|
-
|
|
303
|
-
}, {
|
|
304
|
-
key: "scrollValues",
|
|
305
|
-
set: function set(coord) {
|
|
306
|
-
this._targetLeft = coord[0];
|
|
307
|
-
this._targetTop = coord[1];
|
|
308
|
-
|
|
309
|
-
this._boundaries(false);
|
|
310
|
-
|
|
311
|
-
this._boundaries();
|
|
312
|
-
|
|
313
|
-
this._instant = true;
|
|
314
|
-
this.play();
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @description Get/Change left scroll value goal.
|
|
318
|
-
* @type {number}
|
|
319
|
-
*/
|
|
320
|
-
|
|
321
|
-
}, {
|
|
322
|
-
key: "targetLeft",
|
|
323
|
-
get: function get() {
|
|
324
|
-
return this._targetLeft;
|
|
325
|
-
},
|
|
326
|
-
set: function set(value) {
|
|
327
|
-
this._targetLeft = value;
|
|
328
|
-
this.play();
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* @description Get/Change top scroll value goal.
|
|
332
|
-
* @type {number}
|
|
333
|
-
*/
|
|
334
|
-
|
|
335
|
-
}, {
|
|
336
|
-
key: "targetTop",
|
|
337
|
-
get: function get() {
|
|
338
|
-
return this._targetTop;
|
|
339
|
-
},
|
|
340
|
-
set: function set(value) {
|
|
341
|
-
this._targetTop = value;
|
|
342
|
-
this.play();
|
|
343
|
-
} // Extra Constructor
|
|
344
|
-
|
|
345
|
-
}, {
|
|
346
|
-
key: "_extra",
|
|
347
|
-
value: function _extra() {
|
|
348
|
-
_get(_getPrototypeOf(ScrollModule.prototype), "_extra", this).call(this);
|
|
349
|
-
|
|
350
|
-
var prefix = this._prefix;
|
|
351
|
-
/**
|
|
352
|
-
* @description Data attributes names.
|
|
353
|
-
* @member {object}
|
|
354
|
-
* @protected
|
|
355
|
-
*/
|
|
356
|
-
|
|
357
|
-
this._data = {
|
|
358
|
-
ease: "data-".concat(prefix, "-ease")
|
|
359
|
-
};
|
|
360
|
-
/**
|
|
361
|
-
* @description Element properties.
|
|
362
|
-
* @member {object}
|
|
363
|
-
* @protected
|
|
364
|
-
*/
|
|
365
|
-
|
|
366
|
-
this._properties = {
|
|
367
|
-
current: "".concat(prefix, "-current"),
|
|
368
|
-
ease: "".concat(prefix, "-ease")
|
|
369
|
-
}; // what scroll values must be
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* @description Scroll Top goal
|
|
373
|
-
* @protected
|
|
374
|
-
* @type {number}
|
|
375
|
-
*/
|
|
376
|
-
|
|
377
|
-
this._targetTop = 0;
|
|
378
|
-
/**
|
|
379
|
-
* @description Scroll Left goal
|
|
380
|
-
* @protected
|
|
381
|
-
* @type {number}
|
|
382
|
-
*/
|
|
383
|
-
|
|
384
|
-
this._targetLeft = 0; // scroll top & scroll left
|
|
385
|
-
// these are actually current values of last elements
|
|
386
|
-
|
|
387
|
-
/**
|
|
388
|
-
* @description Scroll Top value
|
|
389
|
-
* @protected
|
|
390
|
-
* @type {number}
|
|
391
|
-
*/
|
|
392
|
-
|
|
393
|
-
this._scrollTop = 0;
|
|
394
|
-
/**
|
|
395
|
-
* @description Scroll Left value
|
|
396
|
-
* @protected
|
|
397
|
-
* @type {number}
|
|
398
|
-
*/
|
|
399
|
-
|
|
400
|
-
this._scrollLeft = 0;
|
|
401
|
-
/**
|
|
402
|
-
* @description If the change of the scroll values must happen without interpolation
|
|
403
|
-
* @protected
|
|
404
|
-
* @type {boolean}
|
|
405
|
-
*/
|
|
406
|
-
|
|
407
|
-
this._instant = false;
|
|
408
|
-
/**
|
|
409
|
-
* @description Direction, 1 for down, -1 for up
|
|
410
|
-
* @protected
|
|
411
|
-
* @type {number}
|
|
412
|
-
*/
|
|
413
|
-
|
|
414
|
-
this._direction = 1;
|
|
415
|
-
/**
|
|
416
|
-
* @description Container width
|
|
417
|
-
* @protected
|
|
418
|
-
* @type {number}
|
|
419
|
-
*/
|
|
420
|
-
|
|
421
|
-
this._width = 1;
|
|
422
|
-
/**
|
|
423
|
-
* @description Container height
|
|
424
|
-
* @protected
|
|
425
|
-
* @type {number}
|
|
426
|
-
*/
|
|
427
|
-
|
|
428
|
-
this._height = 1;
|
|
429
|
-
/**
|
|
430
|
-
* @description Container exists by default
|
|
431
|
-
*/
|
|
432
|
-
|
|
433
|
-
this._containerExists = false;
|
|
434
|
-
/**
|
|
435
|
-
* @description Outer width
|
|
436
|
-
* @protected
|
|
437
|
-
* @type {number}
|
|
438
|
-
*/
|
|
439
|
-
|
|
440
|
-
this._widthOuter = 1;
|
|
441
|
-
/**
|
|
442
|
-
* @description Outer height
|
|
443
|
-
* @protected
|
|
444
|
-
* @type {number}
|
|
445
|
-
*/
|
|
446
|
-
|
|
447
|
-
this._heightOuter = 1;
|
|
448
|
-
/**
|
|
449
|
-
* @description Animation frame
|
|
450
|
-
* @protected
|
|
451
|
-
* @type {false|number}
|
|
452
|
-
*/
|
|
453
|
-
|
|
454
|
-
this._frame = false; // get elements
|
|
455
|
-
|
|
456
|
-
this._elGet(); // create additional scrolling elements
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
this._elCreate();
|
|
460
|
-
} // Initialize & Run animation frame
|
|
461
|
-
|
|
462
|
-
}, {
|
|
463
|
-
key: "_init",
|
|
464
|
-
value: function _init() {
|
|
465
|
-
_get(_getPrototypeOf(ScrollModule.prototype), "_init", this).call(this);
|
|
466
|
-
|
|
467
|
-
this._run();
|
|
468
|
-
} // When properties are changed
|
|
469
|
-
|
|
470
|
-
}, {
|
|
471
|
-
key: "_changeProp",
|
|
472
|
-
value: function _changeProp(prop) {
|
|
473
|
-
_get(_getPrototypeOf(ScrollModule.prototype), "_changeProp", this).call(this, prop); // update elements
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
this._elGet(true);
|
|
477
|
-
|
|
478
|
-
this.setSize();
|
|
479
|
-
|
|
480
|
-
this._run();
|
|
481
|
-
}
|
|
482
|
-
/**
|
|
483
|
-
* @description Get elements. Scroll elements are searched not only inside the outer.
|
|
484
|
-
* @protected
|
|
485
|
-
*/
|
|
486
|
-
|
|
487
|
-
}, {
|
|
488
|
-
key: "_elGet",
|
|
489
|
-
value: function _elGet() {
|
|
490
|
-
// copy values
|
|
491
|
-
var prop = this._prop,
|
|
492
|
-
selectors = prop.selectors;
|
|
493
|
-
/**
|
|
494
|
-
* @description Outer element.
|
|
495
|
-
* @protected
|
|
496
|
-
* @member {HTMLElement}
|
|
497
|
-
*/
|
|
498
|
-
|
|
499
|
-
this._outer = selectEl.one(selectors.outer);
|
|
500
|
-
|
|
501
|
-
this._outer.classList.add(this._prefix);
|
|
502
|
-
/**
|
|
503
|
-
* @description Scroll elements.
|
|
504
|
-
* @protected
|
|
505
|
-
* @member {Array<HTMLElement>|NodeList}
|
|
506
|
-
*/
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
this._el = selectEl.all(selectors.elements);
|
|
510
|
-
var el = this._el;
|
|
511
|
-
/**
|
|
512
|
-
* @description Amount of elements.
|
|
513
|
-
* @protected
|
|
514
|
-
* @member {number}
|
|
515
|
-
*/
|
|
516
|
-
|
|
517
|
-
this._length = el.length; // apply will change
|
|
518
|
-
|
|
519
|
-
var willChangeValue = '';
|
|
520
|
-
|
|
521
|
-
if (prop.willChange) {
|
|
522
|
-
if (prop.useTransform) {
|
|
523
|
-
willChangeValue = 'transform';
|
|
524
|
-
} else {
|
|
525
|
-
willChangeValue = 'top, left';
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
for (var i = 0; i < el.length; i++) {
|
|
530
|
-
el[i].style.willChange = willChangeValue;
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
/**
|
|
534
|
-
* @description Set element properties.
|
|
535
|
-
* @protected
|
|
536
|
-
*/
|
|
537
|
-
|
|
538
|
-
}, {
|
|
539
|
-
key: "_elProp",
|
|
540
|
-
value: function _elProp() {
|
|
541
|
-
for (var i = 0; i < this._length; i++) {
|
|
542
|
-
var el = this._el[i],
|
|
543
|
-
prop = this._properties,
|
|
544
|
-
current = prop.current,
|
|
545
|
-
ease = this._data.ease; // get current scroll values
|
|
546
|
-
|
|
547
|
-
el[current] = [this._scrollLeft, this.scrollTop]; // get ease
|
|
548
|
-
|
|
549
|
-
var attr = el.getAttribute(ease);
|
|
550
|
-
|
|
551
|
-
if (attr) {
|
|
552
|
-
ease = parseFloat(attr);
|
|
553
|
-
} else {
|
|
554
|
-
ease = this._prop.ease;
|
|
555
|
-
} // set ease
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
el[prop.ease] = ease;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
/**
|
|
562
|
-
* @description Create additional elements. They are needed for scrolling.
|
|
563
|
-
* @protected
|
|
564
|
-
*/
|
|
565
|
-
|
|
566
|
-
}, {
|
|
567
|
-
key: "_elCreate",
|
|
568
|
-
value: function _elCreate() {
|
|
569
|
-
var containerSelector = "".concat(this._prefix, "__container");
|
|
570
|
-
var containerElement = selectEl.one('.' + containerSelector, this._outer);
|
|
571
|
-
|
|
572
|
-
if (containerElement) {
|
|
573
|
-
this._container = containerElement;
|
|
574
|
-
this._containerExists = true;
|
|
575
|
-
} else {
|
|
576
|
-
/**
|
|
577
|
-
* @description Scroll Container.
|
|
578
|
-
* @protected
|
|
579
|
-
* @member {HTMLElement}
|
|
580
|
-
*/
|
|
581
|
-
this._container = dom({
|
|
582
|
-
selector: 'div',
|
|
583
|
-
styles: "".concat(this._prefix, "__container")
|
|
584
|
-
}); // move elements
|
|
585
|
-
|
|
586
|
-
while (this._outer.firstChild) {
|
|
587
|
-
this._container.appendChild(this._outer.firstChild);
|
|
588
|
-
} // append additional elements
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
this._outer.appendChild(this._container);
|
|
592
|
-
}
|
|
593
|
-
} // Set Events
|
|
594
|
-
|
|
595
|
-
}, {
|
|
596
|
-
key: "_setEvents",
|
|
597
|
-
value: function _setEvents() {
|
|
598
|
-
var _this = this;
|
|
599
|
-
|
|
600
|
-
// sizes
|
|
601
|
-
this.setSize();
|
|
602
|
-
this.addEvent('viewport', {
|
|
603
|
-
target: '',
|
|
604
|
-
name: this.name,
|
|
605
|
-
do: function _do() {
|
|
606
|
-
(0, _timeoutCallback.default)(function () {
|
|
607
|
-
_this.setSize(true);
|
|
608
|
-
}, _this._prop.resizeTimeout);
|
|
609
|
-
}
|
|
610
|
-
}); // wheel
|
|
611
|
-
|
|
612
|
-
this.addEventListener({
|
|
613
|
-
el: this._outer,
|
|
614
|
-
target: 'wheel',
|
|
615
|
-
do: this._wheel.bind(this),
|
|
616
|
-
passive: true
|
|
617
|
-
}); // on scroll
|
|
618
|
-
|
|
619
|
-
this.addEventListener({
|
|
620
|
-
el: this._outer,
|
|
621
|
-
target: "scroll",
|
|
622
|
-
do: this._onScroll.bind(this),
|
|
623
|
-
passive: true
|
|
624
|
-
});
|
|
625
|
-
}
|
|
626
|
-
/**
|
|
627
|
-
* @description Update size values.
|
|
628
|
-
* @param {boolean} native - Defines if the method was called on window resize.
|
|
629
|
-
*/
|
|
630
|
-
|
|
631
|
-
}, {
|
|
632
|
-
key: "setSize",
|
|
633
|
-
value: function setSize() {
|
|
634
|
-
var native = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
635
|
-
|
|
636
|
-
if (!this._prop.run) {
|
|
637
|
-
return;
|
|
638
|
-
} // elements
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
var container = this._container,
|
|
642
|
-
outer = this._outer; // get sizes
|
|
643
|
-
|
|
644
|
-
this._width = container.clientWidth;
|
|
645
|
-
this._height = container.clientHeight;
|
|
646
|
-
this._widthOuter = outer.clientWidth;
|
|
647
|
-
this._heightOuter = outer.clientHeight; // bound height and widths
|
|
648
|
-
|
|
649
|
-
if (this._width < this._widthOuter) {
|
|
650
|
-
this._width = this._widthOuter;
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
if (this._height < this._heightOuter) {
|
|
654
|
-
this._height = this._heightOuter;
|
|
655
|
-
} // force change
|
|
656
|
-
// it means that after resizing scrolling will be instantaneous for a while
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
if (native) {
|
|
660
|
-
this._instant = true;
|
|
661
|
-
} // sometimes after resizing it may happen that targets are less or more
|
|
662
|
-
// eslint-disable-next-line no-irregular-whitespace
|
|
663
|
-
// than maximum values of scrolling
|
|
664
|
-
// that's why we check it out here and fix it
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
if (native) {
|
|
668
|
-
this._boundaries(false);
|
|
669
|
-
|
|
670
|
-
this._boundaries(true);
|
|
671
|
-
} // change element properties
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
this._elProp(); // launch callbacks
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
this.lbt("size");
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* @description Event on wheel.
|
|
681
|
-
* @param {WheelEvent} evt - Event.
|
|
682
|
-
* @protected
|
|
683
|
-
*/
|
|
684
|
-
|
|
685
|
-
}, {
|
|
686
|
-
key: "_wheel",
|
|
687
|
-
value: function _wheel(evt) {
|
|
688
|
-
var prop = this._prop;
|
|
689
|
-
|
|
690
|
-
if (prop.run & prop.scroll) {
|
|
691
|
-
// stop propagation if enabled
|
|
692
|
-
if (!prop.propagation) {
|
|
693
|
-
// evt.preventDefault();
|
|
694
|
-
evt.stopPropagation();
|
|
695
|
-
} // get normalized delta
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
var delta = (0, _normalizeWheel.default)(evt); // set new scroll targets
|
|
699
|
-
|
|
700
|
-
var x = delta.pixelX,
|
|
701
|
-
y = delta.pixelY;
|
|
702
|
-
|
|
703
|
-
if (prop.horizontal) {
|
|
704
|
-
x = delta.pixelY;
|
|
705
|
-
y = delta.pixelX;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
this.targetLeft += x;
|
|
709
|
-
this.targetTop += y; // shrink target values
|
|
710
|
-
|
|
711
|
-
this._boundaries(false);
|
|
712
|
-
|
|
713
|
-
this._boundaries(true); // set direction
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
var directionPixel = 'pixelY';
|
|
717
|
-
|
|
718
|
-
if (prop.horizontal) {
|
|
719
|
-
directionPixel = 'pixelX';
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
if (delta[directionPixel] < 0) {
|
|
723
|
-
this._direction = -1;
|
|
724
|
-
} else {
|
|
725
|
-
this._direction = 1;
|
|
726
|
-
} // play scroll
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
this.play(); // launch events
|
|
730
|
-
|
|
731
|
-
this.lbt("wheel", evt);
|
|
732
|
-
}
|
|
733
|
-
}
|
|
734
|
-
/**
|
|
735
|
-
* @description Event on scroll. Reset native scroll values.
|
|
736
|
-
* @protected
|
|
737
|
-
*/
|
|
738
|
-
|
|
739
|
-
}, {
|
|
740
|
-
key: "_onScroll",
|
|
741
|
-
value: function _onScroll() {
|
|
742
|
-
var prop = this._prop;
|
|
743
|
-
|
|
744
|
-
if (prop.run) {
|
|
745
|
-
this._outer.scrollTop = 0;
|
|
746
|
-
this._outer.scrollLeft = 0;
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
/**
|
|
750
|
-
* @description Prevent cases when targets are less or more than the maximum values of scrolling
|
|
751
|
-
* @protected
|
|
752
|
-
* @param {boolean} [vertical=true]
|
|
753
|
-
*/
|
|
754
|
-
|
|
755
|
-
}, {
|
|
756
|
-
key: "_boundaries",
|
|
757
|
-
value: function _boundaries() {
|
|
758
|
-
var vertical = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
759
|
-
var targetTop = this._targetTop,
|
|
760
|
-
targetLeft = this._targetLeft; // check cases
|
|
761
|
-
|
|
762
|
-
if (vertical) {
|
|
763
|
-
var max = this._height - this._heightOuter;
|
|
764
|
-
|
|
765
|
-
if (targetTop < 0) {
|
|
766
|
-
this.targetTop = 0;
|
|
767
|
-
}
|
|
768
|
-
|
|
769
|
-
if (targetTop > max) {
|
|
770
|
-
this.targetTop = max;
|
|
771
|
-
}
|
|
772
|
-
} else {
|
|
773
|
-
var _max = this._width - this._widthOuter;
|
|
774
|
-
|
|
775
|
-
if (targetLeft < 0) {
|
|
776
|
-
this.targetLeft = 0;
|
|
777
|
-
}
|
|
778
|
-
|
|
779
|
-
if (targetLeft > _max) {
|
|
780
|
-
this.targetLeft = _max;
|
|
781
|
-
}
|
|
782
|
-
}
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
* @description The same as {@linkcode Vevet.ScrollModule._boundaries} but for both axis.
|
|
786
|
-
* @protected
|
|
787
|
-
*/
|
|
788
|
-
|
|
789
|
-
}, {
|
|
790
|
-
key: "_boundariesBoth",
|
|
791
|
-
value: function _boundariesBoth() {
|
|
792
|
-
this._boundaries(false);
|
|
793
|
-
|
|
794
|
-
this._boundaries();
|
|
795
|
-
}
|
|
796
|
-
/**
|
|
797
|
-
* @description Run animationFrame.
|
|
798
|
-
* @protected
|
|
799
|
-
*/
|
|
800
|
-
|
|
801
|
-
}, {
|
|
802
|
-
key: "_run",
|
|
803
|
-
value: function _run() {
|
|
804
|
-
if (this._prop.run) {
|
|
805
|
-
this.play();
|
|
806
|
-
} else {
|
|
807
|
-
this.stop();
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
/**
|
|
811
|
-
* @description Run animation frame if scroll is enabled.
|
|
812
|
-
*/
|
|
813
|
-
|
|
814
|
-
}, {
|
|
815
|
-
key: "play",
|
|
816
|
-
value: function play() {
|
|
817
|
-
var frame = this._frame;
|
|
818
|
-
|
|
819
|
-
if (!frame & this._prop.run) {
|
|
820
|
-
if (this._prop.frame) {
|
|
821
|
-
this._frame = this._prop.frame.on("frame", this.animate.bind(this));
|
|
822
|
-
} else {
|
|
823
|
-
this._frame = window.requestAnimationFrame(this.animate.bind(this));
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
/**
|
|
828
|
-
* @description Stop animation frame. Though it will restart on the wheel event.
|
|
829
|
-
* To stop scroll forever use {@linkcode Vevet.ScrollModule.changeProp}.
|
|
830
|
-
*/
|
|
831
|
-
|
|
832
|
-
}, {
|
|
833
|
-
key: "stop",
|
|
834
|
-
value: function stop() {
|
|
835
|
-
var frame = this._frame;
|
|
836
|
-
|
|
837
|
-
if (frame) {
|
|
838
|
-
if (this._prop.frame) {
|
|
839
|
-
this._prop.frame.remove(this._frame);
|
|
840
|
-
} else {
|
|
841
|
-
window.cancelAnimationFrame(frame);
|
|
842
|
-
}
|
|
843
|
-
|
|
844
|
-
this._frame = false;
|
|
845
|
-
}
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* @memberof Vevet.ScrollModule
|
|
849
|
-
* @typedef {object} Event
|
|
850
|
-
*
|
|
851
|
-
* @property {number} left
|
|
852
|
-
* @property {number} top
|
|
853
|
-
*/
|
|
854
|
-
|
|
855
|
-
/**
|
|
856
|
-
* @description Animation. Here scroll values are calculated.
|
|
857
|
-
*/
|
|
858
|
-
|
|
859
|
-
}, {
|
|
860
|
-
key: "animate",
|
|
861
|
-
value: function animate() {
|
|
862
|
-
// auto-resizing
|
|
863
|
-
this._autoResize(); // instant scroll after resizing
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
var instant = false;
|
|
867
|
-
|
|
868
|
-
if (this._instant) {
|
|
869
|
-
instant = true;
|
|
870
|
-
this._instant = false;
|
|
871
|
-
} // calculate scroll values: scrollLeft & scrollTop
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
this._calcScrollValues(instant); // change elements' values
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
this._calcElValues(instant); // render
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
this._render(); // event
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
this.lbt("update", {
|
|
884
|
-
left: this._scrollLeft,
|
|
885
|
-
top: this._scrollTop
|
|
886
|
-
}); // animation frame
|
|
887
|
-
|
|
888
|
-
if (!this._prop.frame) {
|
|
889
|
-
this._frame = window.requestAnimationFrame(this.animate.bind(this));
|
|
890
|
-
} // stop frame if values are interpolated
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
var yDiff = Math.abs(this._targetTop - this._scrollTop);
|
|
894
|
-
var xDiff = Math.abs(this._targetLeft - this._scrollLeft);
|
|
895
|
-
|
|
896
|
-
if (yDiff < .01 & xDiff < .01) {
|
|
897
|
-
if (this._prop.autoStop) {
|
|
898
|
-
this.stop();
|
|
899
|
-
}
|
|
900
|
-
|
|
901
|
-
this.lbt("approximate");
|
|
902
|
-
}
|
|
903
|
-
}
|
|
904
|
-
/**
|
|
905
|
-
* @description Auto-resizing while animating.
|
|
906
|
-
*/
|
|
907
|
-
|
|
908
|
-
}, {
|
|
909
|
-
key: "_autoResize",
|
|
910
|
-
value: function _autoResize() {
|
|
911
|
-
// get prop
|
|
912
|
-
var prop = this._prop,
|
|
913
|
-
container = this._container; // auto resize
|
|
914
|
-
|
|
915
|
-
if (prop.resizeOnUpdate) {
|
|
916
|
-
var height = container.clientHeight,
|
|
917
|
-
width = container.clientWidth;
|
|
918
|
-
|
|
919
|
-
if (height != this._height || width != this._width) {
|
|
920
|
-
this.setSize();
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
}
|
|
924
|
-
/**
|
|
925
|
-
* @description Calculate elements' values.
|
|
926
|
-
* @param {boolean} instant - If animation is to be implemented instantly.
|
|
927
|
-
*/
|
|
928
|
-
|
|
929
|
-
}, {
|
|
930
|
-
key: "_calcElValues",
|
|
931
|
-
value: function _calcElValues(instant) {
|
|
932
|
-
// get prop
|
|
933
|
-
var properties = this._properties;
|
|
934
|
-
|
|
935
|
-
for (var i = 0; i < this._length; i++) {
|
|
936
|
-
// get element
|
|
937
|
-
var el = this._el[i]; // get ease
|
|
938
|
-
|
|
939
|
-
var ease = this._getEase(el, instant); // target and current values
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
var current = el[properties.current]; // change values
|
|
943
|
-
|
|
944
|
-
if (ease === this._prop.ease) {
|
|
945
|
-
current[0] = this._scrollLeft;
|
|
946
|
-
current[1] = this._scrollTop;
|
|
947
|
-
} else {
|
|
948
|
-
current[0] = this._r(lerp(current[0], this._targetLeft, ease));
|
|
949
|
-
current[1] = this._r(lerp(current[1], this._targetTop, ease)); // round the values
|
|
950
|
-
|
|
951
|
-
if (this._prop.round) {
|
|
952
|
-
current[0] = Math.round(current[0]);
|
|
953
|
-
current[1] = Math.round(current[1]);
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @description Calculate scroll values: scrollLeft & scrollTop.
|
|
960
|
-
* @param {boolean} instant - If animation is to be implemented instantly.
|
|
961
|
-
*/
|
|
962
|
-
|
|
963
|
-
}, {
|
|
964
|
-
key: "_calcScrollValues",
|
|
965
|
-
value: function _calcScrollValues(instant) {
|
|
966
|
-
// get ease
|
|
967
|
-
var ease = this._getEase(null, instant); // change values
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
this._scrollLeft = this._r(lerp(this._scrollLeft, this._targetLeft, ease));
|
|
971
|
-
this._scrollTop = this._r(lerp(this._scrollTop, this._targetTop, ease)); // round the values
|
|
972
|
-
|
|
973
|
-
if (this._prop.round) {
|
|
974
|
-
this._scrollLeft = Math.round(this._scrollLeft);
|
|
975
|
-
this._scrollTop = Math.round(this._scrollTop);
|
|
976
|
-
}
|
|
977
|
-
}
|
|
978
|
-
}, {
|
|
979
|
-
key: "_r",
|
|
980
|
-
value: function _r(t, e) {
|
|
981
|
-
return e = void 0 !== e ? Math.pow(10, e) : 1e3, Math.round(t * e) / e;
|
|
982
|
-
}
|
|
983
|
-
/**
|
|
984
|
-
* @description Get elements ease.
|
|
985
|
-
* @protected
|
|
986
|
-
* @param {HTMLElement} el
|
|
987
|
-
* @param {boolean} instant - Instant scroll after resizing.
|
|
988
|
-
*/
|
|
989
|
-
|
|
990
|
-
}, {
|
|
991
|
-
key: "_getEase",
|
|
992
|
-
value: function _getEase(el, instant) {
|
|
993
|
-
if (instant) {
|
|
994
|
-
return 1;
|
|
995
|
-
} else {
|
|
996
|
-
if (el == null) {
|
|
997
|
-
return this._prop.ease;
|
|
998
|
-
} else {
|
|
999
|
-
return el[this._properties.ease];
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
/**
|
|
1004
|
-
* @description Render elements, transforms.
|
|
1005
|
-
* @protected
|
|
1006
|
-
*/
|
|
1007
|
-
|
|
1008
|
-
}, {
|
|
1009
|
-
key: "_render",
|
|
1010
|
-
value: function _render() {
|
|
1011
|
-
// through all elements
|
|
1012
|
-
for (var i = 0; i < this._length; i++) {
|
|
1013
|
-
var el = this._el[i],
|
|
1014
|
-
current = el[this._properties.current]; // coords
|
|
1015
|
-
|
|
1016
|
-
var x = -current[0];
|
|
1017
|
-
var y = -current[1]; // set styles
|
|
1018
|
-
|
|
1019
|
-
if (this._prop.useTransform) {
|
|
1020
|
-
el.style.transform = "\n matrix3d(1,0,0.00,0,0.00,1,0.00,0,0,0,1,0, ".concat(x, ", ").concat(y, ", 0,1)\n ");
|
|
1021
|
-
} else {
|
|
1022
|
-
el.style.left = x + 'px';
|
|
1023
|
-
el.style.top = y + 'px';
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* @description Destroy the scroll.
|
|
1029
|
-
*/
|
|
1030
|
-
|
|
1031
|
-
}, {
|
|
1032
|
-
key: "destroy",
|
|
1033
|
-
value: function destroy() {
|
|
1034
|
-
_get(_getPrototypeOf(ScrollModule.prototype), "destroy", this).call(this); // stop frame
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
this._prop.run = false;
|
|
1038
|
-
|
|
1039
|
-
this._run(); // vars
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
var outer = this._outer; // remove container if created by the script
|
|
1043
|
-
|
|
1044
|
-
if (!this._containerExists) {
|
|
1045
|
-
// vars
|
|
1046
|
-
var container = this._container,
|
|
1047
|
-
children = container.children; // move children from the container to the root
|
|
1048
|
-
|
|
1049
|
-
for (var i = 0; i < children.length; i++) {
|
|
1050
|
-
outer.appendChild(children[i]);
|
|
1051
|
-
} // remove container
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
outer.removeChild(container);
|
|
1055
|
-
} // classes
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
outer.classList.remove(this._prefix); // styles
|
|
1059
|
-
|
|
1060
|
-
for (var _i = 0; _i < this._el.length; _i++) {
|
|
1061
|
-
var el = this._el[_i];
|
|
1062
|
-
el.style.transform = '';
|
|
1063
|
-
el.style.willChange = '';
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
}]);
|
|
1067
|
-
|
|
1068
|
-
return ScrollModule;
|
|
1069
|
-
}(_Module2.default);
|
|
1070
|
-
|
|
1071
|
-
exports.default = ScrollModule;
|