vevet 2.17.0 → 3.0.0-beta.1

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.
Files changed (1088) hide show
  1. package/README.md +17 -16
  2. package/lib/cjs/Application/events/PageLoad/index.js +83 -0
  3. package/lib/cjs/Application/events/PageLoad/index.js.map +1 -0
  4. package/lib/cjs/Application/events/PageLoad/types.js +3 -0
  5. package/lib/cjs/Application/events/PageLoad/types.js.map +1 -0
  6. package/lib/cjs/Application/events/Viewport/index.js +270 -0
  7. package/lib/cjs/Application/events/Viewport/index.js.map +1 -0
  8. package/lib/cjs/Application/events/Viewport/types.js +17 -0
  9. package/lib/cjs/Application/events/Viewport/types.js.map +1 -0
  10. package/lib/cjs/Application/index.js +238 -0
  11. package/lib/cjs/Application/index.js.map +1 -0
  12. package/lib/cjs/Application/types.js +3 -0
  13. package/lib/cjs/Application/types.js.map +1 -0
  14. package/lib/cjs/base/Callbacks/index.js +177 -0
  15. package/lib/cjs/base/Callbacks/index.js.map +1 -0
  16. package/lib/cjs/base/Callbacks/types.js +3 -0
  17. package/lib/cjs/base/Callbacks/types.js.map +1 -0
  18. package/lib/cjs/base/Component/index.js +51 -0
  19. package/lib/cjs/base/Component/index.js.map +1 -0
  20. package/lib/cjs/base/Component/types.js +3 -0
  21. package/lib/cjs/base/Component/types.js.map +1 -0
  22. package/lib/cjs/base/Module/index.js +258 -0
  23. package/lib/cjs/base/Module/index.js.map +1 -0
  24. package/lib/cjs/base/Module/types.js +3 -0
  25. package/lib/cjs/base/Module/types.js.map +1 -0
  26. package/lib/cjs/base/MutableProps/index.js +190 -0
  27. package/lib/cjs/base/MutableProps/index.js.map +1 -0
  28. package/lib/cjs/base/MutableProps/types.js +3 -0
  29. package/lib/cjs/base/MutableProps/types.js.map +1 -0
  30. package/lib/cjs/base/Plugin/index.js +47 -0
  31. package/lib/cjs/base/Plugin/index.js.map +1 -0
  32. package/lib/cjs/base/Plugin/types.js +3 -0
  33. package/lib/cjs/base/Plugin/types.js.map +1 -0
  34. package/lib/cjs/base/index.js +22 -0
  35. package/lib/cjs/base/index.js.map +1 -0
  36. package/lib/cjs/components/AnimationFrame/index.js +190 -0
  37. package/lib/cjs/components/AnimationFrame/index.js.map +1 -0
  38. package/lib/cjs/components/AnimationFrame/types.js +3 -0
  39. package/lib/cjs/components/AnimationFrame/types.js.map +1 -0
  40. package/lib/cjs/components/BaseTimeline/index.js +124 -0
  41. package/lib/cjs/components/BaseTimeline/index.js.map +1 -0
  42. package/lib/cjs/components/BaseTimeline/types.js +3 -0
  43. package/lib/cjs/components/BaseTimeline/types.js.map +1 -0
  44. package/lib/cjs/components/Ctx2D/index.js +230 -0
  45. package/lib/cjs/components/Ctx2D/index.js.map +1 -0
  46. package/lib/cjs/components/Ctx2D/types.js +3 -0
  47. package/lib/cjs/components/Ctx2D/types.js.map +1 -0
  48. package/lib/cjs/components/Ctx2DPrerender/index.js +84 -0
  49. package/lib/cjs/components/Ctx2DPrerender/index.js.map +1 -0
  50. package/lib/cjs/components/Ctx2DPrerender/types.js +3 -0
  51. package/lib/cjs/components/Ctx2DPrerender/types.js.map +1 -0
  52. package/lib/cjs/components/CustomCursor/index.js +353 -0
  53. package/lib/cjs/components/CustomCursor/index.js.map +1 -0
  54. package/lib/cjs/components/CustomCursor/types.js +3 -0
  55. package/lib/cjs/components/CustomCursor/types.js.map +1 -0
  56. package/lib/cjs/components/DraggerBase/index.js +251 -0
  57. package/lib/cjs/components/DraggerBase/index.js.map +1 -0
  58. package/lib/cjs/components/DraggerBase/types.js +3 -0
  59. package/lib/cjs/components/DraggerBase/types.js.map +1 -0
  60. package/lib/cjs/components/DraggerDirection/index.js +68 -0
  61. package/lib/cjs/components/DraggerDirection/index.js.map +1 -0
  62. package/lib/cjs/components/DraggerDirection/types.js +3 -0
  63. package/lib/cjs/components/DraggerDirection/types.js.map +1 -0
  64. package/lib/cjs/components/DraggerMove/index.js +130 -0
  65. package/lib/cjs/components/DraggerMove/index.js.map +1 -0
  66. package/lib/cjs/components/DraggerMove/types.js +3 -0
  67. package/lib/cjs/components/DraggerMove/types.js.map +1 -0
  68. package/lib/cjs/components/Preloader/index.js +199 -0
  69. package/lib/cjs/components/Preloader/index.js.map +1 -0
  70. package/lib/cjs/components/Preloader/types.js +3 -0
  71. package/lib/cjs/components/Preloader/types.js.map +1 -0
  72. package/lib/cjs/components/ProgressPreloader/index.js +314 -0
  73. package/lib/cjs/components/ProgressPreloader/index.js.map +1 -0
  74. package/lib/cjs/components/ProgressPreloader/types.js +3 -0
  75. package/lib/cjs/components/ProgressPreloader/types.js.map +1 -0
  76. package/lib/cjs/components/ProgressPreloader/utils/preloadCustomElement.js +55 -0
  77. package/lib/cjs/components/ProgressPreloader/utils/preloadCustomElement.js.map +1 -0
  78. package/lib/cjs/components/ProgressPreloader/utils/preloadImage.js +16 -0
  79. package/lib/cjs/components/ProgressPreloader/utils/preloadImage.js.map +1 -0
  80. package/lib/cjs/components/ProgressPreloader/utils/preloadVideo.js +17 -0
  81. package/lib/cjs/components/ProgressPreloader/utils/preloadVideo.js.map +1 -0
  82. package/lib/cjs/components/ScrollBar/Bar/index.js +254 -0
  83. package/lib/cjs/components/ScrollBar/Bar/index.js.map +1 -0
  84. package/lib/cjs/components/ScrollBar/Bar/types.js +3 -0
  85. package/lib/cjs/components/ScrollBar/Bar/types.js.map +1 -0
  86. package/lib/cjs/components/ScrollBar/index.js +171 -0
  87. package/lib/cjs/components/ScrollBar/index.js.map +1 -0
  88. package/lib/cjs/components/ScrollBar/types.js +3 -0
  89. package/lib/cjs/components/ScrollBar/types.js.map +1 -0
  90. package/lib/cjs/components/ScrollView/index.js +271 -0
  91. package/lib/cjs/components/ScrollView/index.js.map +1 -0
  92. package/lib/cjs/components/ScrollView/types.js +3 -0
  93. package/lib/cjs/components/ScrollView/types.js.map +1 -0
  94. package/lib/cjs/components/SectionScrollProgress/index.js +234 -0
  95. package/lib/cjs/components/SectionScrollProgress/index.js.map +1 -0
  96. package/lib/cjs/components/SectionScrollProgress/types.js +3 -0
  97. package/lib/cjs/components/SectionScrollProgress/types.js.map +1 -0
  98. package/lib/cjs/components/SmoothScroll/AnimatonFrame.js +64 -0
  99. package/lib/cjs/components/SmoothScroll/AnimatonFrame.js.map +1 -0
  100. package/lib/cjs/components/SmoothScroll/Elements.js +122 -0
  101. package/lib/cjs/components/SmoothScroll/Elements.js.map +1 -0
  102. package/lib/cjs/components/SmoothScroll/index.js +492 -0
  103. package/lib/cjs/components/SmoothScroll/index.js.map +1 -0
  104. package/lib/cjs/components/SmoothScroll/types.js +3 -0
  105. package/lib/cjs/components/SmoothScroll/types.js.map +1 -0
  106. package/lib/cjs/components/SmoothScrollDragPlugin/index.js +184 -0
  107. package/lib/cjs/components/SmoothScrollDragPlugin/index.js.map +1 -0
  108. package/lib/cjs/components/SmoothScrollDragPlugin/types.js +3 -0
  109. package/lib/cjs/components/SmoothScrollDragPlugin/types.js.map +1 -0
  110. package/lib/cjs/components/SmoothScrollKeyboardPlugin/index.js +178 -0
  111. package/lib/cjs/components/SmoothScrollKeyboardPlugin/index.js.map +1 -0
  112. package/lib/cjs/components/SmoothScrollKeyboardPlugin/types.js +3 -0
  113. package/lib/cjs/components/SmoothScrollKeyboardPlugin/types.js.map +1 -0
  114. package/lib/cjs/components/SplitText/index.js +343 -0
  115. package/lib/cjs/components/SplitText/index.js.map +1 -0
  116. package/lib/cjs/components/SplitText/types.js +3 -0
  117. package/lib/cjs/components/SplitText/types.js.map +1 -0
  118. package/lib/cjs/components/Timeline/index.js +167 -0
  119. package/lib/cjs/components/Timeline/index.js.map +1 -0
  120. package/lib/cjs/components/Timeline/types.js +3 -0
  121. package/lib/cjs/components/Timeline/types.js.map +1 -0
  122. package/lib/cjs/components/index.js +34 -0
  123. package/lib/cjs/components/index.js.map +1 -0
  124. package/lib/cjs/index.js +23 -0
  125. package/lib/cjs/index.js.map +1 -0
  126. package/lib/cjs/types/general.js +3 -0
  127. package/lib/cjs/types/general.js.map +1 -0
  128. package/lib/cjs/types/utility.js +3 -0
  129. package/lib/cjs/types/utility.js.map +1 -0
  130. package/lib/cjs/utils/common/index.js +22 -0
  131. package/lib/cjs/utils/common/index.js.map +1 -0
  132. package/lib/cjs/utils/common/mergeWithoutArrays.js +25 -0
  133. package/lib/cjs/utils/common/mergeWithoutArrays.js.map +1 -0
  134. package/lib/cjs/utils/common/normalizedTimeoutCallback.js +30 -0
  135. package/lib/cjs/utils/common/normalizedTimeoutCallback.js.map +1 -0
  136. package/lib/cjs/utils/common/pickObjectProps.js +19 -0
  137. package/lib/cjs/utils/common/pickObjectProps.js.map +1 -0
  138. package/lib/cjs/utils/common/times.js +22 -0
  139. package/lib/cjs/utils/common/times.js.map +1 -0
  140. package/lib/cjs/utils/common/uid.js +20 -0
  141. package/lib/cjs/utils/common/uid.js.map +1 -0
  142. package/lib/cjs/utils/image/index.js +21 -0
  143. package/lib/cjs/utils/image/index.js.map +1 -0
  144. package/lib/cjs/utils/image/load.js +79 -0
  145. package/lib/cjs/utils/image/load.js.map +1 -0
  146. package/lib/cjs/utils/image/pathsToProps.js +33 -0
  147. package/lib/cjs/utils/image/pathsToProps.js.map +1 -0
  148. package/lib/cjs/utils/image/sizesToSrcSet.js +19 -0
  149. package/lib/cjs/utils/image/sizesToSrcSet.js.map +1 -0
  150. package/lib/cjs/utils/index.js +22 -0
  151. package/lib/cjs/utils/index.js.map +1 -0
  152. package/lib/cjs/utils/internal/fetchWebpSupport.js +25 -0
  153. package/lib/cjs/utils/internal/fetchWebpSupport.js.map +1 -0
  154. package/lib/cjs/utils/internal/getDeviceInfo.js +22 -0
  155. package/lib/cjs/utils/internal/getDeviceInfo.js.map +1 -0
  156. package/lib/cjs/utils/internal/onResize.js +57 -0
  157. package/lib/cjs/utils/internal/onResize.js.map +1 -0
  158. package/lib/cjs/utils/listeners/index.js +19 -0
  159. package/lib/cjs/utils/listeners/index.js.map +1 -0
  160. package/lib/cjs/utils/listeners/isIntersectionObserverSupported.js +14 -0
  161. package/lib/cjs/utils/listeners/isIntersectionObserverSupported.js.map +1 -0
  162. package/lib/cjs/utils/math/clamp.js +23 -0
  163. package/lib/cjs/utils/math/clamp.js.map +1 -0
  164. package/lib/cjs/utils/math/clampScope.js +20 -0
  165. package/lib/cjs/utils/math/clampScope.js.map +1 -0
  166. package/lib/cjs/utils/math/easing.js +25 -0
  167. package/lib/cjs/utils/math/easing.js.map +1 -0
  168. package/lib/cjs/utils/math/inScope.js +19 -0
  169. package/lib/cjs/utils/math/inScope.js.map +1 -0
  170. package/lib/cjs/utils/math/index.js +26 -0
  171. package/lib/cjs/utils/math/index.js.map +1 -0
  172. package/lib/cjs/utils/math/lerp.js +22 -0
  173. package/lib/cjs/utils/math/lerp.js.map +1 -0
  174. package/lib/cjs/utils/math/normalizeNestedScope.js +20 -0
  175. package/lib/cjs/utils/math/normalizeNestedScope.js.map +1 -0
  176. package/lib/cjs/utils/math/scoped.js +19 -0
  177. package/lib/cjs/utils/math/scoped.js.map +1 -0
  178. package/lib/cjs/utils/math/spreadScope.js +25 -0
  179. package/lib/cjs/utils/math/spreadScope.js.map +1 -0
  180. package/lib/cjs/utils/math/wrap.js +25 -0
  181. package/lib/cjs/utils/math/wrap.js.map +1 -0
  182. package/lib/cjs/utils/scroll/getScrollValues.js +20 -0
  183. package/lib/cjs/utils/scroll/getScrollValues.js.map +1 -0
  184. package/lib/cjs/utils/scroll/index.js +23 -0
  185. package/lib/cjs/utils/scroll/index.js.map +1 -0
  186. package/lib/cjs/utils/scroll/normalizeWheel.js +12 -0
  187. package/lib/cjs/utils/scroll/normalizeWheel.js.map +1 -0
  188. package/lib/cjs/utils/scroll/onScroll.js +62 -0
  189. package/lib/cjs/utils/scroll/onScroll.js.map +1 -0
  190. package/lib/cjs/utils/scroll/scrollTo.js +41 -0
  191. package/lib/cjs/utils/scroll/scrollTo.js.map +1 -0
  192. package/lib/cjs/utils/scroll/scrollToElement.js +57 -0
  193. package/lib/cjs/utils/scroll/scrollToElement.js.map +1 -0
  194. package/lib/cjs/version.js +5 -0
  195. package/lib/cjs/version.js.map +1 -0
  196. package/lib/cjs/vevet.js +6 -0
  197. package/lib/cjs/vevet.js.map +1 -0
  198. package/lib/esm/Application/events/PageLoad/index.js +54 -0
  199. package/lib/esm/Application/events/PageLoad/index.js.map +1 -0
  200. package/lib/esm/Application/events/PageLoad/types.js +2 -0
  201. package/lib/esm/Application/events/PageLoad/types.js.map +1 -0
  202. package/lib/esm/Application/events/Viewport/index.js +194 -0
  203. package/lib/esm/Application/events/Viewport/index.js.map +1 -0
  204. package/lib/esm/Application/events/Viewport/types.js +14 -0
  205. package/lib/esm/Application/events/Viewport/types.js.map +1 -0
  206. package/lib/esm/Application/index.js +150 -0
  207. package/lib/esm/Application/index.js.map +1 -0
  208. package/lib/esm/Application/types.js +2 -0
  209. package/lib/esm/Application/types.js.map +1 -0
  210. package/lib/esm/base/Callbacks/index.js +141 -0
  211. package/lib/esm/base/Callbacks/index.js.map +1 -0
  212. package/lib/esm/base/Callbacks/types.js +2 -0
  213. package/lib/esm/base/Callbacks/types.js.map +1 -0
  214. package/lib/esm/base/Component/index.js +27 -0
  215. package/lib/esm/base/Component/index.js.map +1 -0
  216. package/lib/esm/base/Component/types.js +2 -0
  217. package/lib/esm/base/Component/types.js.map +1 -0
  218. package/lib/esm/base/Module/index.js +200 -0
  219. package/lib/esm/base/Module/index.js.map +1 -0
  220. package/lib/esm/base/Module/types.js +2 -0
  221. package/lib/esm/base/Module/types.js.map +1 -0
  222. package/lib/esm/base/MutableProps/index.js +168 -0
  223. package/lib/esm/base/MutableProps/index.js.map +1 -0
  224. package/lib/esm/base/MutableProps/types.js +2 -0
  225. package/lib/esm/base/MutableProps/types.js.map +1 -0
  226. package/lib/esm/base/Plugin/index.js +22 -0
  227. package/lib/esm/base/Plugin/index.js.map +1 -0
  228. package/lib/esm/base/Plugin/types.js +2 -0
  229. package/lib/esm/base/Plugin/types.js.map +1 -0
  230. package/lib/esm/base/index.js +6 -0
  231. package/lib/esm/base/index.js.map +1 -0
  232. package/lib/esm/components/AnimationFrame/index.js +144 -0
  233. package/lib/esm/components/AnimationFrame/index.js.map +1 -0
  234. package/lib/esm/components/AnimationFrame/types.js +2 -0
  235. package/lib/esm/components/AnimationFrame/types.js.map +1 -0
  236. package/lib/esm/components/BaseTimeline/index.js +74 -0
  237. package/lib/esm/components/BaseTimeline/index.js.map +1 -0
  238. package/lib/esm/components/BaseTimeline/types.js +2 -0
  239. package/lib/esm/components/BaseTimeline/types.js.map +1 -0
  240. package/lib/esm/components/Ctx2D/index.js +159 -0
  241. package/lib/esm/components/Ctx2D/index.js.map +1 -0
  242. package/lib/esm/components/Ctx2D/types.js +2 -0
  243. package/lib/esm/components/Ctx2D/types.js.map +1 -0
  244. package/lib/esm/components/Ctx2DPrerender/index.js +47 -0
  245. package/lib/esm/components/Ctx2DPrerender/index.js.map +1 -0
  246. package/lib/esm/components/Ctx2DPrerender/types.js +2 -0
  247. package/lib/esm/components/Ctx2DPrerender/types.js.map +1 -0
  248. package/lib/esm/components/CustomCursor/index.js +283 -0
  249. package/lib/esm/components/CustomCursor/index.js.map +1 -0
  250. package/lib/esm/components/CustomCursor/types.js +2 -0
  251. package/lib/esm/components/CustomCursor/types.js.map +1 -0
  252. package/lib/esm/components/DraggerBase/index.js +182 -0
  253. package/lib/esm/components/DraggerBase/index.js.map +1 -0
  254. package/lib/esm/components/DraggerBase/types.js +2 -0
  255. package/lib/esm/components/DraggerBase/types.js.map +1 -0
  256. package/lib/esm/components/DraggerDirection/index.js +33 -0
  257. package/lib/esm/components/DraggerDirection/index.js.map +1 -0
  258. package/lib/esm/components/DraggerDirection/types.js +2 -0
  259. package/lib/esm/components/DraggerDirection/types.js.map +1 -0
  260. package/lib/esm/components/DraggerMove/index.js +86 -0
  261. package/lib/esm/components/DraggerMove/index.js.map +1 -0
  262. package/lib/esm/components/DraggerMove/types.js +2 -0
  263. package/lib/esm/components/DraggerMove/types.js.map +1 -0
  264. package/lib/esm/components/Preloader/index.js +135 -0
  265. package/lib/esm/components/Preloader/index.js.map +1 -0
  266. package/lib/esm/components/Preloader/types.js +2 -0
  267. package/lib/esm/components/Preloader/types.js.map +1 -0
  268. package/lib/esm/components/ProgressPreloader/index.js +230 -0
  269. package/lib/esm/components/ProgressPreloader/index.js.map +1 -0
  270. package/lib/esm/components/ProgressPreloader/types.js +2 -0
  271. package/lib/esm/components/ProgressPreloader/types.js.map +1 -0
  272. package/lib/esm/components/ProgressPreloader/utils/preloadCustomElement.js +50 -0
  273. package/lib/esm/components/ProgressPreloader/utils/preloadCustomElement.js.map +1 -0
  274. package/lib/esm/components/ProgressPreloader/utils/preloadImage.js +12 -0
  275. package/lib/esm/components/ProgressPreloader/utils/preloadImage.js.map +1 -0
  276. package/lib/esm/components/ProgressPreloader/utils/preloadVideo.js +13 -0
  277. package/lib/esm/components/ProgressPreloader/utils/preloadVideo.js.map +1 -0
  278. package/lib/esm/components/ScrollBar/Bar/index.js +206 -0
  279. package/lib/esm/components/ScrollBar/Bar/index.js.map +1 -0
  280. package/lib/esm/components/ScrollBar/Bar/types.js +2 -0
  281. package/lib/esm/components/ScrollBar/Bar/types.js.map +1 -0
  282. package/lib/esm/components/ScrollBar/index.js +117 -0
  283. package/lib/esm/components/ScrollBar/index.js.map +1 -0
  284. package/lib/esm/components/ScrollBar/types.js +2 -0
  285. package/lib/esm/components/ScrollBar/types.js.map +1 -0
  286. package/lib/esm/components/ScrollView/index.js +217 -0
  287. package/lib/esm/components/ScrollView/index.js.map +1 -0
  288. package/lib/esm/components/ScrollView/types.js +2 -0
  289. package/lib/esm/components/ScrollView/types.js.map +1 -0
  290. package/lib/esm/components/SectionScrollProgress/index.js +156 -0
  291. package/lib/esm/components/SectionScrollProgress/index.js.map +1 -0
  292. package/lib/esm/components/SectionScrollProgress/types.js +2 -0
  293. package/lib/esm/components/SectionScrollProgress/types.js.map +1 -0
  294. package/lib/esm/components/SmoothScroll/AnimatonFrame.js +44 -0
  295. package/lib/esm/components/SmoothScroll/AnimatonFrame.js.map +1 -0
  296. package/lib/esm/components/SmoothScroll/Elements.js +102 -0
  297. package/lib/esm/components/SmoothScroll/Elements.js.map +1 -0
  298. package/lib/esm/components/SmoothScroll/index.js +390 -0
  299. package/lib/esm/components/SmoothScroll/index.js.map +1 -0
  300. package/lib/esm/components/SmoothScroll/types.js +2 -0
  301. package/lib/esm/components/SmoothScroll/types.js.map +1 -0
  302. package/lib/esm/components/SmoothScrollDragPlugin/index.js +143 -0
  303. package/lib/esm/components/SmoothScrollDragPlugin/index.js.map +1 -0
  304. package/lib/esm/components/SmoothScrollDragPlugin/types.js +2 -0
  305. package/lib/esm/components/SmoothScrollDragPlugin/types.js.map +1 -0
  306. package/lib/esm/components/SmoothScrollKeyboardPlugin/index.js +139 -0
  307. package/lib/esm/components/SmoothScrollKeyboardPlugin/index.js.map +1 -0
  308. package/lib/esm/components/SmoothScrollKeyboardPlugin/types.js +2 -0
  309. package/lib/esm/components/SmoothScrollKeyboardPlugin/types.js.map +1 -0
  310. package/lib/esm/components/SplitText/index.js +280 -0
  311. package/lib/esm/components/SplitText/index.js.map +1 -0
  312. package/lib/esm/components/SplitText/types.js +2 -0
  313. package/lib/esm/components/SplitText/types.js.map +1 -0
  314. package/lib/esm/components/Timeline/index.js +121 -0
  315. package/lib/esm/components/Timeline/index.js.map +1 -0
  316. package/lib/esm/components/Timeline/types.js +2 -0
  317. package/lib/esm/components/Timeline/types.js.map +1 -0
  318. package/lib/esm/components/index.js +18 -0
  319. package/lib/esm/components/index.js.map +1 -0
  320. package/lib/esm/index.js +7 -0
  321. package/lib/esm/index.js.map +1 -0
  322. package/lib/esm/types/general.js +2 -0
  323. package/lib/esm/types/general.js.map +1 -0
  324. package/lib/esm/types/utility.js +2 -0
  325. package/lib/esm/types/utility.js.map +1 -0
  326. package/lib/esm/utils/common/index.js +6 -0
  327. package/lib/esm/utils/common/index.js.map +1 -0
  328. package/lib/esm/utils/common/mergeWithoutArrays.js +18 -0
  329. package/lib/esm/utils/common/mergeWithoutArrays.js.map +1 -0
  330. package/lib/esm/utils/common/normalizedTimeoutCallback.js +26 -0
  331. package/lib/esm/utils/common/normalizedTimeoutCallback.js.map +1 -0
  332. package/lib/esm/utils/common/pickObjectProps.js +15 -0
  333. package/lib/esm/utils/common/pickObjectProps.js.map +1 -0
  334. package/lib/esm/utils/common/times.js +18 -0
  335. package/lib/esm/utils/common/times.js.map +1 -0
  336. package/lib/esm/utils/common/uid.js +15 -0
  337. package/lib/esm/utils/common/uid.js.map +1 -0
  338. package/lib/esm/utils/image/index.js +5 -0
  339. package/lib/esm/utils/image/index.js.map +1 -0
  340. package/lib/esm/utils/image/load.js +61 -0
  341. package/lib/esm/utils/image/load.js.map +1 -0
  342. package/lib/esm/utils/image/pathsToProps.js +29 -0
  343. package/lib/esm/utils/image/pathsToProps.js.map +1 -0
  344. package/lib/esm/utils/image/sizesToSrcSet.js +15 -0
  345. package/lib/esm/utils/image/sizesToSrcSet.js.map +1 -0
  346. package/lib/esm/utils/index.js +6 -0
  347. package/lib/esm/utils/index.js.map +1 -0
  348. package/lib/esm/utils/internal/fetchWebpSupport.js +18 -0
  349. package/lib/esm/utils/internal/fetchWebpSupport.js.map +1 -0
  350. package/lib/esm/utils/internal/getDeviceInfo.js +15 -0
  351. package/lib/esm/utils/internal/getDeviceInfo.js.map +1 -0
  352. package/lib/esm/utils/internal/onResize.js +50 -0
  353. package/lib/esm/utils/internal/onResize.js.map +1 -0
  354. package/lib/esm/utils/listeners/index.js +3 -0
  355. package/lib/esm/utils/listeners/index.js.map +1 -0
  356. package/lib/esm/utils/listeners/isIntersectionObserverSupported.js +10 -0
  357. package/lib/esm/utils/listeners/isIntersectionObserverSupported.js.map +1 -0
  358. package/lib/esm/utils/math/clamp.js +18 -0
  359. package/lib/esm/utils/math/clamp.js.map +1 -0
  360. package/lib/esm/utils/math/clampScope.js +14 -0
  361. package/lib/esm/utils/math/clampScope.js.map +1 -0
  362. package/lib/esm/utils/math/easing.js +13 -0
  363. package/lib/esm/utils/math/easing.js.map +1 -0
  364. package/lib/esm/utils/math/inScope.js +14 -0
  365. package/lib/esm/utils/math/inScope.js.map +1 -0
  366. package/lib/esm/utils/math/index.js +10 -0
  367. package/lib/esm/utils/math/index.js.map +1 -0
  368. package/lib/esm/utils/math/lerp.js +17 -0
  369. package/lib/esm/utils/math/lerp.js.map +1 -0
  370. package/lib/esm/utils/math/normalizeNestedScope.js +16 -0
  371. package/lib/esm/utils/math/normalizeNestedScope.js.map +1 -0
  372. package/lib/esm/utils/math/scoped.js +14 -0
  373. package/lib/esm/utils/math/scoped.js.map +1 -0
  374. package/lib/esm/utils/math/spreadScope.js +21 -0
  375. package/lib/esm/utils/math/spreadScope.js.map +1 -0
  376. package/lib/esm/utils/math/wrap.js +21 -0
  377. package/lib/esm/utils/math/wrap.js.map +1 -0
  378. package/lib/esm/utils/scroll/getScrollValues.js +15 -0
  379. package/lib/esm/utils/scroll/getScrollValues.js.map +1 -0
  380. package/lib/esm/utils/scroll/index.js +7 -0
  381. package/lib/esm/utils/scroll/index.js.map +1 -0
  382. package/lib/esm/utils/scroll/normalizeWheel.js +5 -0
  383. package/lib/esm/utils/scroll/normalizeWheel.js.map +1 -0
  384. package/lib/esm/utils/scroll/onScroll.js +55 -0
  385. package/lib/esm/utils/scroll/onScroll.js.map +1 -0
  386. package/lib/esm/utils/scroll/scrollTo.js +35 -0
  387. package/lib/esm/utils/scroll/scrollTo.js.map +1 -0
  388. package/lib/esm/utils/scroll/scrollToElement.js +42 -0
  389. package/lib/esm/utils/scroll/scrollToElement.js.map +1 -0
  390. package/lib/esm/version.js +3 -0
  391. package/lib/esm/version.js.map +1 -0
  392. package/lib/esm/vevet.js +3 -0
  393. package/lib/esm/vevet.js.map +1 -0
  394. package/lib/styles/base.scss +3 -0
  395. package/lib/styles/components/CustomCursor.scss +60 -0
  396. package/lib/styles/components/Preloader.scss +13 -0
  397. package/lib/styles/components/ScrollBar.scss +69 -0
  398. package/lib/styles/components/SmoothScroll.scss +20 -0
  399. package/lib/styles/components/index.scss +4 -0
  400. package/lib/styles/globals/index.scss +18 -0
  401. package/lib/styles/index.scss +4 -0
  402. package/lib/styles/mixins/_scroll.scss +11 -0
  403. package/lib/styles/mixins/_transition.scss +19 -0
  404. package/lib/styles/mixins/_viewport.scss +40 -0
  405. package/lib/styles/mixins/index.scss +3 -0
  406. package/lib/types/Application/events/PageLoad/index.d.ts +25 -0
  407. package/lib/types/Application/events/PageLoad/index.d.ts.map +1 -0
  408. package/lib/types/Application/events/PageLoad/types.d.ts +7 -0
  409. package/lib/types/Application/events/PageLoad/types.d.ts.map +1 -0
  410. package/lib/types/Application/events/Viewport/index.d.ts +59 -0
  411. package/lib/types/Application/events/Viewport/index.d.ts.map +1 -0
  412. package/lib/types/Application/events/Viewport/types.d.ts +52 -0
  413. package/lib/types/Application/events/Viewport/types.d.ts.map +1 -0
  414. package/lib/types/Application/index.d.ts +76 -0
  415. package/lib/types/Application/index.d.ts.map +1 -0
  416. package/lib/types/Application/types.d.ts +40 -0
  417. package/lib/types/Application/types.d.ts.map +1 -0
  418. package/lib/types/base/Callbacks/index.d.ts +79 -0
  419. package/lib/types/base/Callbacks/index.d.ts.map +1 -0
  420. package/lib/types/base/Callbacks/types.d.ts +41 -0
  421. package/lib/types/base/Callbacks/types.d.ts.map +1 -0
  422. package/lib/types/base/Component/index.d.ts +18 -0
  423. package/lib/types/base/Component/index.d.ts.map +1 -0
  424. package/lib/types/base/Component/types.d.ts +13 -0
  425. package/lib/types/base/Component/types.d.ts.map +1 -0
  426. package/lib/types/base/Module/index.d.ts +126 -0
  427. package/lib/types/base/Module/index.d.ts.map +1 -0
  428. package/lib/types/base/Module/types.d.ts +24 -0
  429. package/lib/types/base/Module/types.d.ts.map +1 -0
  430. package/lib/types/base/MutableProps/index.d.ts +140 -0
  431. package/lib/types/base/MutableProps/index.d.ts.map +1 -0
  432. package/lib/types/base/MutableProps/types.d.ts +20 -0
  433. package/lib/types/base/MutableProps/types.d.ts.map +1 -0
  434. package/lib/types/base/Plugin/index.d.ts +14 -0
  435. package/lib/types/base/Plugin/index.d.ts.map +1 -0
  436. package/lib/types/base/Plugin/types.d.ts +10 -0
  437. package/lib/types/base/Plugin/types.d.ts.map +1 -0
  438. package/lib/types/base/index.d.ts +6 -0
  439. package/lib/types/base/index.d.ts.map +1 -0
  440. package/lib/types/components/AnimationFrame/index.d.ts +50 -0
  441. package/lib/types/components/AnimationFrame/index.d.ts.map +1 -0
  442. package/lib/types/components/AnimationFrame/types.d.ts +29 -0
  443. package/lib/types/components/AnimationFrame/types.d.ts.map +1 -0
  444. package/lib/types/components/BaseTimeline/index.d.ts +37 -0
  445. package/lib/types/components/BaseTimeline/index.d.ts.map +1 -0
  446. package/lib/types/components/BaseTimeline/types.d.ts +34 -0
  447. package/lib/types/components/BaseTimeline/types.d.ts.map +1 -0
  448. package/lib/types/components/Ctx2D/index.d.ts +55 -0
  449. package/lib/types/components/Ctx2D/index.d.ts.map +1 -0
  450. package/lib/types/components/Ctx2D/types.d.ts +71 -0
  451. package/lib/types/components/Ctx2D/types.d.ts.map +1 -0
  452. package/lib/types/components/Ctx2DPrerender/index.d.ts +26 -0
  453. package/lib/types/components/Ctx2DPrerender/index.d.ts.map +1 -0
  454. package/lib/types/components/Ctx2DPrerender/types.d.ts +17 -0
  455. package/lib/types/components/Ctx2DPrerender/types.d.ts.map +1 -0
  456. package/lib/types/components/CustomCursor/index.d.ts +94 -0
  457. package/lib/types/components/CustomCursor/index.d.ts.map +1 -0
  458. package/lib/types/components/CustomCursor/types.d.ts +82 -0
  459. package/lib/types/components/CustomCursor/types.d.ts.map +1 -0
  460. package/lib/types/components/DraggerBase/index.d.ts +78 -0
  461. package/lib/types/components/DraggerBase/index.d.ts.map +1 -0
  462. package/lib/types/components/DraggerBase/types.d.ts +37 -0
  463. package/lib/types/components/DraggerBase/types.d.ts.map +1 -0
  464. package/lib/types/components/DraggerDirection/index.d.ts +17 -0
  465. package/lib/types/components/DraggerDirection/index.d.ts.map +1 -0
  466. package/lib/types/components/DraggerDirection/types.d.ts +19 -0
  467. package/lib/types/components/DraggerDirection/types.d.ts.map +1 -0
  468. package/lib/types/components/DraggerMove/index.d.ts +34 -0
  469. package/lib/types/components/DraggerMove/index.d.ts.map +1 -0
  470. package/lib/types/components/DraggerMove/types.d.ts +22 -0
  471. package/lib/types/components/DraggerMove/types.d.ts.map +1 -0
  472. package/lib/types/components/Preloader/index.d.ts +54 -0
  473. package/lib/types/components/Preloader/index.d.ts.map +1 -0
  474. package/lib/types/components/Preloader/types.d.ts +26 -0
  475. package/lib/types/components/Preloader/types.d.ts.map +1 -0
  476. package/lib/types/components/ProgressPreloader/index.d.ts +71 -0
  477. package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -0
  478. package/lib/types/components/ProgressPreloader/types.d.ts +76 -0
  479. package/lib/types/components/ProgressPreloader/types.d.ts.map +1 -0
  480. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts +4 -0
  481. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts.map +1 -0
  482. package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts +2 -0
  483. package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts.map +1 -0
  484. package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts +2 -0
  485. package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts.map +1 -0
  486. package/lib/types/components/ScrollBar/Bar/index.d.ts +44 -0
  487. package/lib/types/components/ScrollBar/Bar/index.d.ts.map +1 -0
  488. package/lib/types/components/ScrollBar/Bar/types.d.ts +29 -0
  489. package/lib/types/components/ScrollBar/Bar/types.d.ts.map +1 -0
  490. package/lib/types/components/ScrollBar/index.d.ts +43 -0
  491. package/lib/types/components/ScrollBar/index.d.ts.map +1 -0
  492. package/lib/types/components/ScrollBar/types.d.ts +30 -0
  493. package/lib/types/components/ScrollBar/types.d.ts.map +1 -0
  494. package/lib/types/components/ScrollView/index.d.ts +72 -0
  495. package/lib/types/components/ScrollView/index.d.ts.map +1 -0
  496. package/lib/types/components/ScrollView/types.d.ts +71 -0
  497. package/lib/types/components/ScrollView/types.d.ts.map +1 -0
  498. package/lib/types/components/SectionScrollProgress/index.d.ts +67 -0
  499. package/lib/types/components/SectionScrollProgress/index.d.ts.map +1 -0
  500. package/lib/types/components/SectionScrollProgress/types.d.ts +33 -0
  501. package/lib/types/components/SectionScrollProgress/types.d.ts.map +1 -0
  502. package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts +20 -0
  503. package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts.map +1 -0
  504. package/lib/types/components/SmoothScroll/Elements.d.ts +30 -0
  505. package/lib/types/components/SmoothScroll/Elements.d.ts.map +1 -0
  506. package/lib/types/components/SmoothScroll/index.d.ts +139 -0
  507. package/lib/types/components/SmoothScroll/index.d.ts.map +1 -0
  508. package/lib/types/components/SmoothScroll/types.d.ts +105 -0
  509. package/lib/types/components/SmoothScroll/types.d.ts.map +1 -0
  510. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts +48 -0
  511. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts.map +1 -0
  512. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts +39 -0
  513. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts.map +1 -0
  514. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts +28 -0
  515. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts.map +1 -0
  516. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts +12 -0
  517. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts.map +1 -0
  518. package/lib/types/components/SplitText/index.d.ts +59 -0
  519. package/lib/types/components/SplitText/index.d.ts.map +1 -0
  520. package/lib/types/components/SplitText/types.d.ts +60 -0
  521. package/lib/types/components/SplitText/types.d.ts.map +1 -0
  522. package/lib/types/components/Timeline/index.d.ts +45 -0
  523. package/lib/types/components/Timeline/index.d.ts.map +1 -0
  524. package/lib/types/components/Timeline/types.d.ts +22 -0
  525. package/lib/types/components/Timeline/types.d.ts.map +1 -0
  526. package/lib/types/components/index.d.ts +18 -0
  527. package/lib/types/components/index.d.ts.map +1 -0
  528. package/lib/types/index.d.ts +6 -0
  529. package/lib/types/index.d.ts.map +1 -0
  530. package/lib/types/types/general.d.ts +16 -0
  531. package/lib/types/types/general.d.ts.map +1 -0
  532. package/lib/types/types/utility.d.ts +14 -0
  533. package/lib/types/types/utility.d.ts.map +1 -0
  534. package/lib/types/utils/common/index.d.ts +6 -0
  535. package/lib/types/utils/common/index.d.ts.map +1 -0
  536. package/lib/types/utils/common/mergeWithoutArrays.d.ts +10 -0
  537. package/lib/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
  538. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts +13 -0
  539. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts.map +1 -0
  540. package/lib/types/utils/common/pickObjectProps.d.ts +9 -0
  541. package/lib/types/utils/common/pickObjectProps.d.ts.map +1 -0
  542. package/lib/types/utils/common/times.d.ts +10 -0
  543. package/lib/types/utils/common/times.d.ts.map +1 -0
  544. package/lib/types/utils/common/uid.d.ts +11 -0
  545. package/lib/types/utils/common/uid.d.ts.map +1 -0
  546. package/lib/types/utils/image/index.d.ts +4 -0
  547. package/lib/types/utils/image/index.d.ts.map +1 -0
  548. package/lib/types/utils/image/load.d.ts +17 -0
  549. package/lib/types/utils/image/load.d.ts.map +1 -0
  550. package/lib/types/utils/image/pathsToProps.d.ts +17 -0
  551. package/lib/types/utils/image/pathsToProps.d.ts.map +1 -0
  552. package/lib/types/utils/image/sizesToSrcSet.d.ts +5 -0
  553. package/lib/types/utils/image/sizesToSrcSet.d.ts.map +1 -0
  554. package/lib/types/utils/index.d.ts +6 -0
  555. package/lib/types/utils/index.d.ts.map +1 -0
  556. package/lib/types/utils/internal/fetchWebpSupport.d.ts +3 -0
  557. package/lib/types/utils/internal/fetchWebpSupport.d.ts.map +1 -0
  558. package/lib/types/utils/internal/getDeviceInfo.d.ts +6 -0
  559. package/lib/types/utils/internal/getDeviceInfo.d.ts.map +1 -0
  560. package/lib/types/utils/internal/onResize.d.ts +42 -0
  561. package/lib/types/utils/internal/onResize.d.ts.map +1 -0
  562. package/lib/types/utils/listeners/index.d.ts +2 -0
  563. package/lib/types/utils/listeners/index.d.ts.map +1 -0
  564. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts +3 -0
  565. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts.map +1 -0
  566. package/lib/types/utils/math/clamp.d.ts +10 -0
  567. package/lib/types/utils/math/clamp.d.ts.map +1 -0
  568. package/lib/types/utils/math/clampScope.d.ts +10 -0
  569. package/lib/types/utils/math/clampScope.d.ts.map +1 -0
  570. package/lib/types/utils/math/easing.d.ts +13 -0
  571. package/lib/types/utils/math/easing.d.ts.map +1 -0
  572. package/lib/types/utils/math/inScope.d.ts +12 -0
  573. package/lib/types/utils/math/inScope.d.ts.map +1 -0
  574. package/lib/types/utils/math/index.d.ts +10 -0
  575. package/lib/types/utils/math/index.d.ts.map +1 -0
  576. package/lib/types/utils/math/lerp.d.ts +10 -0
  577. package/lib/types/utils/math/lerp.d.ts.map +1 -0
  578. package/lib/types/utils/math/normalizeNestedScope.d.ts +10 -0
  579. package/lib/types/utils/math/normalizeNestedScope.d.ts.map +1 -0
  580. package/lib/types/utils/math/scoped.d.ts +11 -0
  581. package/lib/types/utils/math/scoped.d.ts.map +1 -0
  582. package/lib/types/utils/math/spreadScope.d.ts +10 -0
  583. package/lib/types/utils/math/spreadScope.d.ts.map +1 -0
  584. package/lib/types/utils/math/wrap.d.ts +15 -0
  585. package/lib/types/utils/math/wrap.d.ts.map +1 -0
  586. package/lib/types/utils/scroll/getScrollValues.d.ts +10 -0
  587. package/lib/types/utils/scroll/getScrollValues.d.ts.map +1 -0
  588. package/lib/types/utils/scroll/index.d.ts +6 -0
  589. package/lib/types/utils/scroll/index.d.ts.map +1 -0
  590. package/lib/types/utils/scroll/normalizeWheel.d.ts +7 -0
  591. package/lib/types/utils/scroll/normalizeWheel.d.ts.map +1 -0
  592. package/lib/types/utils/scroll/onScroll.d.ts +18 -0
  593. package/lib/types/utils/scroll/onScroll.d.ts.map +1 -0
  594. package/lib/types/utils/scroll/scrollTo.d.ts +27 -0
  595. package/lib/types/utils/scroll/scrollTo.d.ts.map +1 -0
  596. package/lib/types/utils/scroll/scrollToElement.d.ts +12 -0
  597. package/lib/types/utils/scroll/scrollToElement.d.ts.map +1 -0
  598. package/lib/types/version.d.ts +3 -0
  599. package/lib/types/version.d.ts.map +1 -0
  600. package/lib/types/vevet.d.ts +3 -0
  601. package/lib/types/vevet.d.ts.map +1 -0
  602. package/package.json +102 -118
  603. package/src/Application/events/PageLoad/index.ts +81 -0
  604. package/src/Application/events/PageLoad/stories/index.stories.tsx +13 -0
  605. package/src/Application/events/PageLoad/stories/index.tsx +16 -0
  606. package/src/Application/events/PageLoad/types.ts +7 -0
  607. package/src/Application/events/Viewport/index.ts +248 -0
  608. package/src/Application/events/Viewport/stories/index.stories.tsx +13 -0
  609. package/src/Application/events/Viewport/stories/index.tsx +53 -0
  610. package/src/Application/events/Viewport/types.ts +55 -0
  611. package/src/Application/index.ts +224 -0
  612. package/src/Application/stories/index.stories.tsx +13 -0
  613. package/src/Application/stories/index.tsx +49 -0
  614. package/src/Application/types.ts +40 -0
  615. package/src/base/Callbacks/index.ts +192 -0
  616. package/src/base/Callbacks/stories/index.stories.tsx +13 -0
  617. package/src/base/Callbacks/stories/index.tsx +53 -0
  618. package/src/base/Callbacks/types.ts +46 -0
  619. package/src/base/Component/index.ts +42 -0
  620. package/src/base/Component/types.ts +12 -0
  621. package/src/base/Module/index.ts +324 -0
  622. package/src/base/Module/stories/index.stories.tsx +13 -0
  623. package/src/base/Module/stories/index.tsx +71 -0
  624. package/src/base/Module/types.ts +26 -0
  625. package/src/base/MutableProps/index.ts +232 -0
  626. package/src/base/MutableProps/stories/index.stories.tsx +13 -0
  627. package/src/base/MutableProps/stories/index.tsx +77 -0
  628. package/src/base/MutableProps/types.ts +26 -0
  629. package/src/base/Plugin/index.ts +38 -0
  630. package/src/base/Plugin/types.ts +9 -0
  631. package/src/base/index.ts +5 -0
  632. package/src/components/AnimationFrame/index.ts +225 -0
  633. package/src/components/AnimationFrame/stories/index.stories.tsx +28 -0
  634. package/src/components/AnimationFrame/stories/index.tsx +75 -0
  635. package/src/components/AnimationFrame/types.ts +30 -0
  636. package/src/components/BaseTimeline/index.ts +120 -0
  637. package/src/components/BaseTimeline/stories/Basic.tsx +65 -0
  638. package/src/components/BaseTimeline/stories/Nested.tsx +108 -0
  639. package/src/components/BaseTimeline/stories/index.stories.tsx +16 -0
  640. package/src/components/BaseTimeline/types.ts +36 -0
  641. package/src/components/Ctx2D/index.ts +228 -0
  642. package/src/components/Ctx2D/stories/index.stories.tsx +13 -0
  643. package/src/components/Ctx2D/stories/index.tsx +45 -0
  644. package/src/components/Ctx2D/types.ts +75 -0
  645. package/src/components/Ctx2DPrerender/index.ts +64 -0
  646. package/src/components/Ctx2DPrerender/stories/index.stories.tsx +13 -0
  647. package/src/components/Ctx2DPrerender/stories/index.tsx +78 -0
  648. package/src/components/Ctx2DPrerender/types.ts +19 -0
  649. package/src/components/CustomCursor/index.ts +435 -0
  650. package/src/components/CustomCursor/stories/index.stories.tsx +13 -0
  651. package/src/components/CustomCursor/stories/index.tsx +68 -0
  652. package/src/components/CustomCursor/types.ts +87 -0
  653. package/src/components/DraggerBase/index.ts +288 -0
  654. package/src/components/DraggerBase/types.ts +42 -0
  655. package/src/components/DraggerDirection/index.ts +49 -0
  656. package/src/components/DraggerDirection/stories/index.stories.tsx +13 -0
  657. package/src/components/DraggerDirection/stories/index.tsx +59 -0
  658. package/src/components/DraggerDirection/types.ts +20 -0
  659. package/src/components/DraggerMove/index.ts +130 -0
  660. package/src/components/DraggerMove/stories/index.stories.tsx +13 -0
  661. package/src/components/DraggerMove/stories/index.tsx +87 -0
  662. package/src/components/DraggerMove/types.ts +24 -0
  663. package/src/components/Preloader/index.ts +198 -0
  664. package/src/components/Preloader/stories/index.stories.tsx +23 -0
  665. package/src/components/Preloader/stories/index.tsx +31 -0
  666. package/src/components/Preloader/types.ts +28 -0
  667. package/src/components/ProgressPreloader/index.ts +346 -0
  668. package/src/components/ProgressPreloader/stories/index.stories.tsx +13 -0
  669. package/src/components/ProgressPreloader/stories/index.tsx +80 -0
  670. package/src/components/ProgressPreloader/types.ts +82 -0
  671. package/src/components/ProgressPreloader/utils/preloadCustomElement.ts +73 -0
  672. package/src/components/ProgressPreloader/utils/preloadImage.ts +18 -0
  673. package/src/components/ProgressPreloader/utils/preloadVideo.ts +19 -0
  674. package/src/components/ScrollBar/Bar/index.ts +306 -0
  675. package/src/components/ScrollBar/Bar/types.ts +30 -0
  676. package/src/components/ScrollBar/index.ts +192 -0
  677. package/src/components/ScrollBar/stories/Default.tsx +27 -0
  678. package/src/components/ScrollBar/stories/WithInnerScroll.tsx +44 -0
  679. package/src/components/ScrollBar/stories/WithSmoothScrollComponent.tsx +49 -0
  680. package/src/components/ScrollBar/stories/index.stories.tsx +23 -0
  681. package/src/components/ScrollBar/types.ts +37 -0
  682. package/src/components/ScrollView/index.ts +323 -0
  683. package/src/components/ScrollView/stories/index.stories.tsx +13 -0
  684. package/src/components/ScrollView/stories/index.tsx +46 -0
  685. package/src/components/ScrollView/types.ts +70 -0
  686. package/src/components/SectionScrollProgress/index.ts +232 -0
  687. package/src/components/SectionScrollProgress/stories/Default.tsx +77 -0
  688. package/src/components/SectionScrollProgress/stories/WithCustomScroll.tsx +96 -0
  689. package/src/components/SectionScrollProgress/stories/index.stories.tsx +18 -0
  690. package/src/components/SectionScrollProgress/types.ts +34 -0
  691. package/src/components/SmoothScroll/AnimatonFrame.ts +67 -0
  692. package/src/components/SmoothScroll/Elements.ts +148 -0
  693. package/src/components/SmoothScroll/index.ts +589 -0
  694. package/src/components/SmoothScroll/stories/Default.tsx +64 -0
  695. package/src/components/SmoothScroll/stories/WithHorizontal.tsx +90 -0
  696. package/src/components/SmoothScroll/stories/WithInnerLerp.tsx +69 -0
  697. package/src/components/SmoothScroll/stories/index.stories.tsx +23 -0
  698. package/src/components/SmoothScroll/types.ts +114 -0
  699. package/src/components/SmoothScrollDragPlugin/index.ts +225 -0
  700. package/src/components/SmoothScrollDragPlugin/stories/index.stories.tsx +13 -0
  701. package/src/components/SmoothScrollDragPlugin/stories/index.tsx +76 -0
  702. package/src/components/SmoothScrollDragPlugin/types.ts +40 -0
  703. package/src/components/SmoothScrollKeyboardPlugin/index.ts +201 -0
  704. package/src/components/SmoothScrollKeyboardPlugin/stories/index.stories.tsx +13 -0
  705. package/src/components/SmoothScrollKeyboardPlugin/stories/index.tsx +76 -0
  706. package/src/components/SmoothScrollKeyboardPlugin/types.ts +12 -0
  707. package/src/components/SplitText/index.ts +387 -0
  708. package/src/components/SplitText/stories/index.stories.tsx +28 -0
  709. package/src/components/SplitText/stories/index.tsx +26 -0
  710. package/src/components/SplitText/types.ts +65 -0
  711. package/src/components/Timeline/index.ts +180 -0
  712. package/src/components/Timeline/stories/Basic.tsx +86 -0
  713. package/src/components/Timeline/stories/Nested.tsx +132 -0
  714. package/src/components/Timeline/stories/index.stories.tsx +16 -0
  715. package/src/components/Timeline/types.ts +24 -0
  716. package/src/components/index.ts +17 -0
  717. package/src/index.ts +11 -0
  718. package/src/styles/base.scss +3 -0
  719. package/src/styles/components/CustomCursor.scss +60 -0
  720. package/src/styles/components/Preloader.scss +13 -0
  721. package/src/styles/components/ScrollBar.scss +69 -0
  722. package/src/styles/components/SmoothScroll.scss +20 -0
  723. package/src/styles/components/index.scss +4 -0
  724. package/src/styles/globals/index.scss +18 -0
  725. package/src/styles/index.scss +4 -0
  726. package/src/styles/mixins/_scroll.scss +11 -0
  727. package/src/styles/mixins/_transition.scss +19 -0
  728. package/src/styles/mixins/_viewport.scss +40 -0
  729. package/src/styles/mixins/index.scss +3 -0
  730. package/src/types/general.ts +17 -0
  731. package/src/types/utility.ts +49 -0
  732. package/src/utils/common/index.ts +5 -0
  733. package/src/utils/common/mergeWithoutArrays.ts +22 -0
  734. package/src/utils/common/normalizedTimeoutCallback.ts +26 -0
  735. package/src/utils/common/pickObjectProps.ts +19 -0
  736. package/src/utils/common/times.ts +22 -0
  737. package/src/utils/common/uid.ts +16 -0
  738. package/src/utils/image/index.ts +5 -0
  739. package/src/utils/image/load.ts +90 -0
  740. package/src/utils/image/pathsToProps.ts +44 -0
  741. package/src/utils/image/sizesToSrcSet.ts +16 -0
  742. package/src/utils/index.ts +5 -0
  743. package/src/utils/internal/fetchWebpSupport.ts +20 -0
  744. package/src/utils/internal/getDeviceInfo.ts +17 -0
  745. package/src/utils/internal/onResize.ts +108 -0
  746. package/src/utils/listeners/index.ts +3 -0
  747. package/src/utils/listeners/isIntersectionObserverSupported.ts +12 -0
  748. package/src/utils/math/clamp.ts +18 -0
  749. package/src/utils/math/clampScope.ts +18 -0
  750. package/src/utils/math/easing.ts +17 -0
  751. package/src/utils/math/inScope.ts +13 -0
  752. package/src/utils/math/index.ts +9 -0
  753. package/src/utils/math/lerp.ts +23 -0
  754. package/src/utils/math/normalizeNestedScope.ts +19 -0
  755. package/src/utils/math/scoped.ts +14 -0
  756. package/src/utils/math/spreadScope.ts +23 -0
  757. package/src/utils/math/wrap.ts +25 -0
  758. package/src/utils/scroll/getScrollValues.ts +28 -0
  759. package/src/utils/scroll/index.ts +7 -0
  760. package/src/utils/scroll/normalizeWheel.ts +5 -0
  761. package/src/utils/scroll/onScroll.ts +113 -0
  762. package/src/utils/scroll/scrollTo.ts +74 -0
  763. package/src/utils/scroll/scrollToElement.ts +54 -0
  764. package/src/version.ts +2 -0
  765. package/src/vevet.ts +4 -0
  766. package/LICENSE +0 -21
  767. package/build/cdn/index.js +0 -12
  768. package/build/cdn/index.js.LICENSE.txt +0 -14
  769. package/build/cjs/app/Application.js +0 -332
  770. package/build/cjs/app/events/PageLoad.js +0 -74
  771. package/build/cjs/app/events/Viewport.js +0 -336
  772. package/build/cjs/base/Callbacks.js +0 -232
  773. package/build/cjs/base/Component.js +0 -56
  774. package/build/cjs/base/Module.js +0 -271
  775. package/build/cjs/base/MutableProp.js +0 -165
  776. package/build/cjs/base/Plugin.js +0 -56
  777. package/build/cjs/components/animation-frame/AnimationFrame.js +0 -183
  778. package/build/cjs/components/canvas/Ctx2D.js +0 -234
  779. package/build/cjs/components/canvas/Ctx2DPrerender.js +0 -90
  780. package/build/cjs/components/cursor/CustomCursor.js +0 -437
  781. package/build/cjs/components/dragger/Dragger.js +0 -229
  782. package/build/cjs/components/dragger/DraggerDirection.js +0 -77
  783. package/build/cjs/components/dragger/DraggerMove.js +0 -84
  784. package/build/cjs/components/loading/Preloader.js +0 -229
  785. package/build/cjs/components/loading/ProgressPreloader.js +0 -434
  786. package/build/cjs/components/page/Page.js +0 -471
  787. package/build/cjs/components/scroll/plugins/SmoothScrollDragPlugin.js +0 -213
  788. package/build/cjs/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +0 -147
  789. package/build/cjs/components/scroll/scrollable/ScrollEventsBase.js +0 -136
  790. package/build/cjs/components/scroll/scrollable/ScrollView.js +0 -377
  791. package/build/cjs/components/scroll/scrollbar/Bar.js +0 -321
  792. package/build/cjs/components/scroll/scrollbar/ScrollBar.js +0 -208
  793. package/build/cjs/components/scroll/section/ScrollSectionProgress.js +0 -261
  794. package/build/cjs/components/scroll/smooth-scroll/SmoothScroll.js +0 -635
  795. package/build/cjs/components/scroll/types.js +0 -2
  796. package/build/cjs/components/text/SplitText.js +0 -376
  797. package/build/cjs/components/timeline/StaticTimeline.js +0 -137
  798. package/build/cjs/components/timeline/Timeline.js +0 -191
  799. package/build/cjs/handlers/wheel/WheelHandler.js +0 -195
  800. package/build/cjs/index.js +0 -95
  801. package/build/cjs/utils/common/id.js +0 -12
  802. package/build/cjs/utils/common/index.js +0 -12
  803. package/build/cjs/utils/common/mergeWithoutArrays.js +0 -19
  804. package/build/cjs/utils/common/orderId.js +0 -12
  805. package/build/cjs/utils/common/randID.js +0 -11
  806. package/build/cjs/utils/common/timeoutCallback.js +0 -25
  807. package/build/cjs/utils/errors.js +0 -8
  808. package/build/cjs/utils/image/index.js +0 -12
  809. package/build/cjs/utils/image/load.js +0 -77
  810. package/build/cjs/utils/image/pathsToProps.js +0 -34
  811. package/build/cjs/utils/image/sizesToSrcSet.js +0 -17
  812. package/build/cjs/utils/listeners/index.js +0 -10
  813. package/build/cjs/utils/listeners/intersectionObserverSupported.js +0 -11
  814. package/build/cjs/utils/listeners/onScroll.js +0 -87
  815. package/build/cjs/utils/math/clamp.js +0 -16
  816. package/build/cjs/utils/math/clampScope.js +0 -16
  817. package/build/cjs/utils/math/easing.js +0 -11
  818. package/build/cjs/utils/math/inScope.js +0 -10
  819. package/build/cjs/utils/math/index.js +0 -22
  820. package/build/cjs/utils/math/lerp.js +0 -15
  821. package/build/cjs/utils/math/scoped.js +0 -18
  822. package/build/cjs/utils/math/spreadScope.js +0 -18
  823. package/build/cjs/utils/math/wrap.js +0 -13
  824. package/build/cjs/utils/scroll/getScrollValues.js +0 -20
  825. package/build/cjs/utils/scroll/index.js +0 -12
  826. package/build/cjs/utils/scroll/scrollTo.js +0 -41
  827. package/build/cjs/utils/scroll/scrollToElement.js +0 -39
  828. package/build/cjs/utils/types/general.js +0 -2
  829. package/build/cjs/utils/types/utility.js +0 -2
  830. package/build/cjs/version.js +0 -4
  831. package/build/es/app/Application.js +0 -236
  832. package/build/es/app/events/PageLoad.js +0 -47
  833. package/build/es/app/events/Viewport.js +0 -256
  834. package/build/es/base/Callbacks.js +0 -205
  835. package/build/es/base/Component.js +0 -32
  836. package/build/es/base/Module.js +0 -223
  837. package/build/es/base/MutableProp.js +0 -152
  838. package/build/es/base/Plugin.js +0 -31
  839. package/build/es/components/animation-frame/AnimationFrame.js +0 -145
  840. package/build/es/components/canvas/Ctx2D.js +0 -155
  841. package/build/es/components/canvas/Ctx2DPrerender.js +0 -55
  842. package/build/es/components/cursor/CustomCursor.js +0 -355
  843. package/build/es/components/dragger/Dragger.js +0 -175
  844. package/build/es/components/dragger/DraggerDirection.js +0 -42
  845. package/build/es/components/dragger/DraggerMove.js +0 -56
  846. package/build/es/components/loading/Preloader.js +0 -164
  847. package/build/es/components/loading/ProgressPreloader.js +0 -361
  848. package/build/es/components/page/Page.js +0 -391
  849. package/build/es/components/scroll/plugins/SmoothScrollDragPlugin.js +0 -175
  850. package/build/es/components/scroll/plugins/SmoothScrollKeyboardPlugin.js +0 -118
  851. package/build/es/components/scroll/scrollable/ScrollEventsBase.js +0 -82
  852. package/build/es/components/scroll/scrollable/ScrollView.js +0 -316
  853. package/build/es/components/scroll/scrollbar/Bar.js +0 -268
  854. package/build/es/components/scroll/scrollbar/ScrollBar.js +0 -154
  855. package/build/es/components/scroll/section/ScrollSectionProgress.js +0 -181
  856. package/build/es/components/scroll/smooth-scroll/SmoothScroll.js +0 -529
  857. package/build/es/components/scroll/types.js +0 -1
  858. package/build/es/components/text/SplitText.js +0 -317
  859. package/build/es/components/timeline/StaticTimeline.js +0 -92
  860. package/build/es/components/timeline/Timeline.js +0 -142
  861. package/build/es/handlers/wheel/WheelHandler.js +0 -153
  862. package/build/es/index.js +0 -43
  863. package/build/es/utils/common/id.js +0 -8
  864. package/build/es/utils/common/index.js +0 -4
  865. package/build/es/utils/common/mergeWithoutArrays.js +0 -13
  866. package/build/es/utils/common/orderId.js +0 -8
  867. package/build/es/utils/common/randID.js +0 -7
  868. package/build/es/utils/common/timeoutCallback.js +0 -22
  869. package/build/es/utils/errors.js +0 -5
  870. package/build/es/utils/image/index.js +0 -4
  871. package/build/es/utils/image/load.js +0 -60
  872. package/build/es/utils/image/pathsToProps.js +0 -28
  873. package/build/es/utils/image/sizesToSrcSet.js +0 -14
  874. package/build/es/utils/listeners/index.js +0 -3
  875. package/build/es/utils/listeners/intersectionObserverSupported.js +0 -8
  876. package/build/es/utils/listeners/onScroll.js +0 -83
  877. package/build/es/utils/math/clamp.js +0 -12
  878. package/build/es/utils/math/clampScope.js +0 -8
  879. package/build/es/utils/math/easing.js +0 -6
  880. package/build/es/utils/math/inScope.js +0 -6
  881. package/build/es/utils/math/index.js +0 -9
  882. package/build/es/utils/math/lerp.js +0 -11
  883. package/build/es/utils/math/scoped.js +0 -14
  884. package/build/es/utils/math/spreadScope.js +0 -15
  885. package/build/es/utils/math/wrap.js +0 -10
  886. package/build/es/utils/scroll/getScrollValues.js +0 -16
  887. package/build/es/utils/scroll/index.js +0 -4
  888. package/build/es/utils/scroll/scrollTo.js +0 -34
  889. package/build/es/utils/scroll/scrollToElement.js +0 -32
  890. package/build/es/utils/types/general.js +0 -1
  891. package/build/es/utils/types/utility.js +0 -1
  892. package/build/es/version.js +0 -2
  893. package/build/types/app/Application.d.ts +0 -173
  894. package/build/types/app/Application.d.ts.map +0 -1
  895. package/build/types/app/events/PageLoad.d.ts +0 -28
  896. package/build/types/app/events/PageLoad.d.ts.map +0 -1
  897. package/build/types/app/events/Viewport.d.ts +0 -156
  898. package/build/types/app/events/Viewport.d.ts.map +0 -1
  899. package/build/types/base/Callbacks.d.ts +0 -174
  900. package/build/types/base/Callbacks.d.ts.map +0 -1
  901. package/build/types/base/Component.d.ts +0 -48
  902. package/build/types/base/Component.d.ts.map +0 -1
  903. package/build/types/base/Module.d.ts +0 -179
  904. package/build/types/base/Module.d.ts.map +0 -1
  905. package/build/types/base/MutableProp.d.ts +0 -142
  906. package/build/types/base/MutableProp.d.ts.map +0 -1
  907. package/build/types/base/Plugin.d.ts +0 -35
  908. package/build/types/base/Plugin.d.ts.map +0 -1
  909. package/build/types/components/animation-frame/AnimationFrame.d.ts +0 -96
  910. package/build/types/components/animation-frame/AnimationFrame.d.ts.map +0 -1
  911. package/build/types/components/canvas/Ctx2D.d.ts +0 -132
  912. package/build/types/components/canvas/Ctx2D.d.ts.map +0 -1
  913. package/build/types/components/canvas/Ctx2DPrerender.d.ts +0 -41
  914. package/build/types/components/canvas/Ctx2DPrerender.d.ts.map +0 -1
  915. package/build/types/components/cursor/CustomCursor.d.ts +0 -254
  916. package/build/types/components/cursor/CustomCursor.d.ts.map +0 -1
  917. package/build/types/components/dragger/Dragger.d.ts +0 -120
  918. package/build/types/components/dragger/Dragger.d.ts.map +0 -1
  919. package/build/types/components/dragger/DraggerDirection.d.ts +0 -39
  920. package/build/types/components/dragger/DraggerDirection.d.ts.map +0 -1
  921. package/build/types/components/dragger/DraggerMove.d.ts +0 -49
  922. package/build/types/components/dragger/DraggerMove.d.ts.map +0 -1
  923. package/build/types/components/loading/Preloader.d.ts +0 -107
  924. package/build/types/components/loading/Preloader.d.ts.map +0 -1
  925. package/build/types/components/loading/ProgressPreloader.d.ts +0 -179
  926. package/build/types/components/loading/ProgressPreloader.d.ts.map +0 -1
  927. package/build/types/components/page/Page.d.ts +0 -147
  928. package/build/types/components/page/Page.d.ts.map +0 -1
  929. package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts +0 -108
  930. package/build/types/components/scroll/plugins/SmoothScrollDragPlugin.d.ts.map +0 -1
  931. package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts +0 -34
  932. package/build/types/components/scroll/plugins/SmoothScrollKeyboardPlugin.d.ts.map +0 -1
  933. package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts +0 -66
  934. package/build/types/components/scroll/scrollable/ScrollEventsBase.d.ts.map +0 -1
  935. package/build/types/components/scroll/scrollable/ScrollView.d.ts +0 -172
  936. package/build/types/components/scroll/scrollable/ScrollView.d.ts.map +0 -1
  937. package/build/types/components/scroll/scrollbar/Bar.d.ts +0 -84
  938. package/build/types/components/scroll/scrollbar/Bar.d.ts.map +0 -1
  939. package/build/types/components/scroll/scrollbar/ScrollBar.d.ts +0 -113
  940. package/build/types/components/scroll/scrollbar/ScrollBar.d.ts.map +0 -1
  941. package/build/types/components/scroll/section/ScrollSectionProgress.d.ts +0 -131
  942. package/build/types/components/scroll/section/ScrollSectionProgress.d.ts.map +0 -1
  943. package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts +0 -311
  944. package/build/types/components/scroll/smooth-scroll/SmoothScroll.d.ts.map +0 -1
  945. package/build/types/components/scroll/types.d.ts +0 -8
  946. package/build/types/components/scroll/types.d.ts.map +0 -1
  947. package/build/types/components/text/SplitText.d.ts +0 -133
  948. package/build/types/components/text/SplitText.d.ts.map +0 -1
  949. package/build/types/components/timeline/StaticTimeline.d.ts +0 -92
  950. package/build/types/components/timeline/StaticTimeline.d.ts.map +0 -1
  951. package/build/types/components/timeline/Timeline.d.ts +0 -101
  952. package/build/types/components/timeline/Timeline.d.ts.map +0 -1
  953. package/build/types/handlers/wheel/WheelHandler.d.ts +0 -100
  954. package/build/types/handlers/wheel/WheelHandler.d.ts.map +0 -1
  955. package/build/types/index.d.ts +0 -44
  956. package/build/types/index.d.ts.map +0 -1
  957. package/build/types/utils/common/id.d.ts +0 -5
  958. package/build/types/utils/common/id.d.ts.map +0 -1
  959. package/build/types/utils/common/index.d.ts +0 -5
  960. package/build/types/utils/common/index.d.ts.map +0 -1
  961. package/build/types/utils/common/mergeWithoutArrays.d.ts +0 -6
  962. package/build/types/utils/common/mergeWithoutArrays.d.ts.map +0 -1
  963. package/build/types/utils/common/orderId.d.ts +0 -5
  964. package/build/types/utils/common/orderId.d.ts.map +0 -1
  965. package/build/types/utils/common/randID.d.ts +0 -5
  966. package/build/types/utils/common/randID.d.ts.map +0 -1
  967. package/build/types/utils/common/timeoutCallback.d.ts +0 -8
  968. package/build/types/utils/common/timeoutCallback.d.ts.map +0 -1
  969. package/build/types/utils/errors.d.ts +0 -3
  970. package/build/types/utils/errors.d.ts.map +0 -1
  971. package/build/types/utils/image/index.d.ts +0 -5
  972. package/build/types/utils/image/index.d.ts.map +0 -1
  973. package/build/types/utils/image/load.d.ts +0 -17
  974. package/build/types/utils/image/load.d.ts.map +0 -1
  975. package/build/types/utils/image/pathsToProps.d.ts +0 -9
  976. package/build/types/utils/image/pathsToProps.d.ts.map +0 -1
  977. package/build/types/utils/image/sizesToSrcSet.d.ts +0 -5
  978. package/build/types/utils/image/sizesToSrcSet.d.ts.map +0 -1
  979. package/build/types/utils/listeners/index.d.ts +0 -4
  980. package/build/types/utils/listeners/index.d.ts.map +0 -1
  981. package/build/types/utils/listeners/intersectionObserverSupported.d.ts +0 -2
  982. package/build/types/utils/listeners/intersectionObserverSupported.d.ts.map +0 -1
  983. package/build/types/utils/listeners/onScroll.d.ts +0 -18
  984. package/build/types/utils/listeners/onScroll.d.ts.map +0 -1
  985. package/build/types/utils/math/clamp.d.ts +0 -5
  986. package/build/types/utils/math/clamp.d.ts.map +0 -1
  987. package/build/types/utils/math/clampScope.d.ts +0 -5
  988. package/build/types/utils/math/clampScope.d.ts.map +0 -1
  989. package/build/types/utils/math/easing.d.ts +0 -7
  990. package/build/types/utils/math/easing.d.ts.map +0 -1
  991. package/build/types/utils/math/inScope.d.ts +0 -5
  992. package/build/types/utils/math/inScope.d.ts.map +0 -1
  993. package/build/types/utils/math/index.d.ts +0 -10
  994. package/build/types/utils/math/index.d.ts.map +0 -1
  995. package/build/types/utils/math/lerp.d.ts +0 -5
  996. package/build/types/utils/math/lerp.d.ts.map +0 -1
  997. package/build/types/utils/math/scoped.d.ts +0 -12
  998. package/build/types/utils/math/scoped.d.ts.map +0 -1
  999. package/build/types/utils/math/spreadScope.d.ts +0 -5
  1000. package/build/types/utils/math/spreadScope.d.ts.map +0 -1
  1001. package/build/types/utils/math/wrap.d.ts +0 -5
  1002. package/build/types/utils/math/wrap.d.ts.map +0 -1
  1003. package/build/types/utils/scroll/getScrollValues.d.ts +0 -9
  1004. package/build/types/utils/scroll/getScrollValues.d.ts.map +0 -1
  1005. package/build/types/utils/scroll/index.d.ts +0 -5
  1006. package/build/types/utils/scroll/index.d.ts.map +0 -1
  1007. package/build/types/utils/scroll/scrollTo.d.ts +0 -28
  1008. package/build/types/utils/scroll/scrollTo.d.ts.map +0 -1
  1009. package/build/types/utils/scroll/scrollToElement.d.ts +0 -32
  1010. package/build/types/utils/scroll/scrollToElement.d.ts.map +0 -1
  1011. package/build/types/utils/types/general.d.ts +0 -22
  1012. package/build/types/utils/types/general.d.ts.map +0 -1
  1013. package/build/types/utils/types/utility.d.ts +0 -14
  1014. package/build/types/utils/types/utility.d.ts.map +0 -1
  1015. package/build/types/version.d.ts +0 -3
  1016. package/build/types/version.d.ts.map +0 -1
  1017. package/src/cdn/index.js +0 -3
  1018. package/src/sass/base.scss +0 -3
  1019. package/src/sass/components/cursor/_custom-cursor.scss +0 -62
  1020. package/src/sass/components/index.scss +0 -6
  1021. package/src/sass/components/loading/_preloader.scss +0 -15
  1022. package/src/sass/components/scroll/_scrollbar.scss +0 -73
  1023. package/src/sass/components/scroll/_smooth-scroll.scss +0 -17
  1024. package/src/sass/index.scss +0 -3
  1025. package/src/sass/mixins/_scroll.scss +0 -7
  1026. package/src/sass/mixins/_transition.scss +0 -19
  1027. package/src/sass/mixins/_viewport.scss +0 -69
  1028. package/src/sass/mixins/index.scss +0 -3
  1029. package/src/ts/app/Application.ts +0 -391
  1030. package/src/ts/app/events/PageLoad.ts +0 -79
  1031. package/src/ts/app/events/Viewport.ts +0 -398
  1032. package/src/ts/base/Callbacks.ts +0 -380
  1033. package/src/ts/base/Component.ts +0 -83
  1034. package/src/ts/base/Module.ts +0 -386
  1035. package/src/ts/base/MutableProp.ts +0 -242
  1036. package/src/ts/base/Plugin.ts +0 -76
  1037. package/src/ts/components/animation-frame/AnimationFrame.ts +0 -264
  1038. package/src/ts/components/canvas/Ctx2D.ts +0 -294
  1039. package/src/ts/components/canvas/Ctx2DPrerender.ts +0 -113
  1040. package/src/ts/components/cursor/CustomCursor.ts +0 -610
  1041. package/src/ts/components/dragger/Dragger.ts +0 -313
  1042. package/src/ts/components/dragger/DraggerDirection.ts +0 -106
  1043. package/src/ts/components/dragger/DraggerMove.ts +0 -114
  1044. package/src/ts/components/loading/Preloader.ts +0 -279
  1045. package/src/ts/components/loading/ProgressPreloader.ts +0 -555
  1046. package/src/ts/components/page/Page.ts +0 -537
  1047. package/src/ts/components/scroll/plugins/SmoothScrollDragPlugin.ts +0 -304
  1048. package/src/ts/components/scroll/plugins/SmoothScrollKeyboardPlugin.ts +0 -178
  1049. package/src/ts/components/scroll/scrollable/ScrollEventsBase.ts +0 -161
  1050. package/src/ts/components/scroll/scrollable/ScrollView.ts +0 -514
  1051. package/src/ts/components/scroll/scrollbar/Bar.ts +0 -370
  1052. package/src/ts/components/scroll/scrollbar/ScrollBar.ts +0 -299
  1053. package/src/ts/components/scroll/section/ScrollSectionProgress.ts +0 -344
  1054. package/src/ts/components/scroll/smooth-scroll/SmoothScroll.ts +0 -877
  1055. package/src/ts/components/scroll/types.ts +0 -8
  1056. package/src/ts/components/text/SplitText.ts +0 -487
  1057. package/src/ts/components/timeline/StaticTimeline.ts +0 -197
  1058. package/src/ts/components/timeline/Timeline.ts +0 -257
  1059. package/src/ts/handlers/wheel/WheelHandler.ts +0 -269
  1060. package/src/ts/index.ts +0 -104
  1061. package/src/ts/utils/common/id.ts +0 -11
  1062. package/src/ts/utils/common/index.ts +0 -9
  1063. package/src/ts/utils/common/mergeWithoutArrays.ts +0 -20
  1064. package/src/ts/utils/common/timeoutCallback.ts +0 -24
  1065. package/src/ts/utils/errors.ts +0 -6
  1066. package/src/ts/utils/image/index.ts +0 -9
  1067. package/src/ts/utils/image/load.ts +0 -88
  1068. package/src/ts/utils/image/pathsToProps.ts +0 -34
  1069. package/src/ts/utils/image/sizesToSrcSet.ts +0 -16
  1070. package/src/ts/utils/listeners/index.ts +0 -7
  1071. package/src/ts/utils/listeners/intersectionObserverSupported.ts +0 -10
  1072. package/src/ts/utils/listeners/onScroll.ts +0 -127
  1073. package/src/ts/utils/math/clamp.ts +0 -15
  1074. package/src/ts/utils/math/clampScope.ts +0 -16
  1075. package/src/ts/utils/math/easing.ts +0 -8
  1076. package/src/ts/utils/math/inScope.ts +0 -9
  1077. package/src/ts/utils/math/index.ts +0 -19
  1078. package/src/ts/utils/math/lerp.ts +0 -16
  1079. package/src/ts/utils/math/scoped.ts +0 -17
  1080. package/src/ts/utils/math/spreadScope.ts +0 -18
  1081. package/src/ts/utils/math/wrap.ts +0 -18
  1082. package/src/ts/utils/scroll/getScrollValues.ts +0 -20
  1083. package/src/ts/utils/scroll/index.ts +0 -9
  1084. package/src/ts/utils/scroll/scrollTo.ts +0 -65
  1085. package/src/ts/utils/scroll/scrollToElement.ts +0 -74
  1086. package/src/ts/utils/types/general.ts +0 -27
  1087. package/src/ts/utils/types/utility.ts +0 -34
  1088. package/src/ts/version.ts +0 -2
@@ -0,0 +1,200 @@
1
+ import { addEventListener, } from 'vevet-dom';
2
+ import { MutableProps } from '../MutableProps';
3
+ import { Callbacks } from '../Callbacks';
4
+ import { mergeWithoutArrays } from '../../utils/common';
5
+ /**
6
+ * Module base
7
+ */
8
+ export class Module {
9
+ /**
10
+ * Get Default properties (should be extended)
11
+ */
12
+ _getDefaultProps() {
13
+ return { parent: null };
14
+ }
15
+ /** Current properties */
16
+ get props() {
17
+ return this._mutableProps.props;
18
+ }
19
+ /** Module Callbacks */
20
+ get callbacks() {
21
+ return this._callbacks;
22
+ }
23
+ /** Vevet Application */
24
+ get app() {
25
+ return this._app;
26
+ }
27
+ /** Module name */
28
+ get name() {
29
+ return this.constructor.name;
30
+ }
31
+ /** Module prefix */
32
+ get prefix() {
33
+ return '';
34
+ }
35
+ /** The module is initialized */
36
+ get isInitialized() {
37
+ return this._isInitialized;
38
+ }
39
+ /** The module is destroyed */
40
+ get isDestroyed() {
41
+ return this._isDestroyed;
42
+ }
43
+ /**
44
+ * @example
45
+ *
46
+ * interface IStaticProps extends NModule.IStaticProps {
47
+ * staticName: 'My name';
48
+ * }
49
+
50
+ * interface IChangeableProps extends NModule.IChangeableProps {
51
+ * weight: number;
52
+ * height: number;
53
+ * }
54
+
55
+ * interface ICallbacks extends NModule.ICallbacksTypes {}
56
+
57
+ * const module = new Module<IStaticProps, IChangeableProps, ICallbacks>(
58
+ * {
59
+ * staticName: 'My name',
60
+ * weight: 70,
61
+ * height: 175,
62
+ * },
63
+ * false
64
+ * );
65
+
66
+ * module.addResponsiveProps({
67
+ * breakpoint: 'viewport_phone',
68
+ * settings: {
69
+ * weight: 80,
70
+ * },
71
+ * });
72
+
73
+ * module.init();
74
+
75
+ * module.addCallback('propsMutate', () => console.log('mutate props'));
76
+
77
+ * module.addCallback('destroy', () => console.log('destroy'));
78
+ */
79
+ constructor(
80
+ /** Initial properties */
81
+ initialProps,
82
+ /**
83
+ * Defines if you need to call {@linkcode Module.init} at the constructor's end.
84
+ * If you want to add responsive properties, set this parameter to `false`.
85
+ */
86
+ canInit = true) {
87
+ /** The module is initialized */
88
+ this._isInitialized = false;
89
+ /** The module is destroyed */
90
+ this._isDestroyed = false;
91
+ if (window.vevetApp) {
92
+ this._app = window.vevetApp;
93
+ }
94
+ else {
95
+ throw new Error('Vevet.Application does not exist yet. Call "new Vevet.Application()" before using all the stuff');
96
+ }
97
+ this._callbacks = new Callbacks();
98
+ this._listeners = [];
99
+ this._destroyableActions = [];
100
+ this._classNamesToRemove = [];
101
+ const props = mergeWithoutArrays(this._getDefaultProps(), initialProps || {});
102
+ this._mutableProps = new MutableProps(props, () => this._onPropsMutate(), this.name);
103
+ if (canInit) {
104
+ this.init();
105
+ }
106
+ }
107
+ /** Add responsive rules */
108
+ addResponsiveProps(rules) {
109
+ if (this.isInitialized) {
110
+ throw new Error('Responsive properties cannot be added after `init` is called');
111
+ }
112
+ else {
113
+ this._mutableProps.addResponsiveProps(rules);
114
+ }
115
+ }
116
+ /** Change module properties */
117
+ changeProps(props) {
118
+ if (this.isDestroyed) {
119
+ return;
120
+ }
121
+ this._mutableProps.changeProps(props);
122
+ this._callbacks.tbt('propsChange', undefined);
123
+ }
124
+ /**
125
+ * This method is called on properties change
126
+ */
127
+ _onPropsMutate() {
128
+ this._callbacks.tbt('propsMutate', undefined);
129
+ }
130
+ /** Initializes the class */
131
+ init() {
132
+ if (this.isInitialized) {
133
+ return;
134
+ }
135
+ this._isInitialized = true;
136
+ this._init();
137
+ // destroy the current module on parent destroy
138
+ if (this.props.parent) {
139
+ this.props.parent.addCallback('destroy', () => this.destroy(), {
140
+ isProtected: true,
141
+ name: this.name,
142
+ });
143
+ }
144
+ }
145
+ /** Inner extra initialization */
146
+ _init() { }
147
+ /** Add destroyable actions */
148
+ addDestroyableAction(action) {
149
+ this._destroyableActions.push(action);
150
+ }
151
+ /**
152
+ * Add a viewport callback that will be removed on class destroy
153
+ */
154
+ addViewportCallback(target, action, data = {}) {
155
+ const callback = this._app.viewport.add(target, action, Object.assign(Object.assign({}, data), { name: this.constructor.name }));
156
+ this.addDestroyableAction(() => callback.remove());
157
+ }
158
+ /** Add a module callback */
159
+ addCallback(target, action, settings = {}) {
160
+ return this.callbacks.add(target, action, settings);
161
+ }
162
+ /** Add a DOM event listener */
163
+ addEventListener(el, target, callback, options) {
164
+ const listener = addEventListener(el, target, callback, options);
165
+ this._listeners.push(listener);
166
+ return Object.assign(Object.assign({}, listener), { remove: () => {
167
+ this._listeners = this._listeners.filter((item) => item.id !== listener.id);
168
+ return listener.remove();
169
+ } });
170
+ }
171
+ className(...classNames) {
172
+ return classNames.map((value) => `${this.prefix}${value}`).join(' ');
173
+ }
174
+ /** Toggle classList */
175
+ toggleClassName(element, className, isActive) {
176
+ const isAlreadyExists = element.classList.contains(className);
177
+ element.classList.toggle(className, isActive);
178
+ if (!isAlreadyExists) {
179
+ this._classNamesToRemove.push({ element, className });
180
+ }
181
+ }
182
+ /** Destroy the module */
183
+ destroy() {
184
+ if (this.isDestroyed) {
185
+ return;
186
+ }
187
+ this._destroy();
188
+ }
189
+ /** Destroy the module */
190
+ _destroy() {
191
+ this._callbacks.tbt('destroy', undefined);
192
+ this._callbacks.destroy();
193
+ this._mutableProps.destroy();
194
+ this._destroyableActions.forEach((action) => action());
195
+ this._listeners.forEach((listener) => listener.remove());
196
+ this._classNamesToRemove.forEach(({ element, className }) => element.classList.remove(className));
197
+ this._isDestroyed = true;
198
+ }
199
+ }
200
+ //# sourceMappingURL=index.js.map
@@ -0,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AAmB,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC;QACvD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QAEzD,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE,CAC1D,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CACpC,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/base/Module/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,168 @@
1
+ import { mergeWithoutArrays } from '../../utils/common';
2
+ /**
3
+ * A class for creating mutable properties that can change on window resize. <br><br>
4
+ *
5
+ * There are two ways to change properties:
6
+ * - To set a resize-listener on window (or use {@linkcode Viewport}).
7
+ * When the window is resized, change the properties with the help of
8
+ * {@linkcode MutableProps.changeProps}
9
+ *
10
+ * - The second way is to use the MutableProps and add responsive properties
11
+ * with help of {@linkcode MutableProps.addResponsiveProps}.
12
+ *
13
+ * @example
14
+ *
15
+ * interface IStatic {
16
+ * static: string;
17
+ * }
18
+
19
+ * interface IChangeable {
20
+ * changeable: string;
21
+ * }
22
+
23
+ * const props = new MutableProps<IStatic, IChangeable>({
24
+ * static: '',
25
+ * changeable: 'something',
26
+ * });
27
+
28
+ * props.addResponsiveProps({
29
+ * breakpoint: 'viewport_phone',
30
+ * settings: {
31
+ * changeable: 'phone',
32
+ * },
33
+ * });
34
+
35
+ * props.changeProps({ changeable: 'changed' });
36
+ */
37
+ export class MutableProps {
38
+ /**
39
+ * Get current properties
40
+ */
41
+ get props() {
42
+ return this._props;
43
+ }
44
+ /**
45
+ * @example
46
+ *
47
+ * const static = {
48
+ * myProp: true,
49
+ * };
50
+ *
51
+ * const responsive = [
52
+ * {
53
+ * breakpoint: 'm',
54
+ * settings: {
55
+ * myProp: false
56
+ * }
57
+ * }
58
+ * ];
59
+ *
60
+ * const props = new MutableProps(static, responsive);
61
+ */
62
+ constructor(
63
+ /**
64
+ * The properties that were set while initialization.
65
+ * These properties will nevet change.
66
+ */
67
+ _initProps,
68
+ /**
69
+ * A callback that is launched when properties are changed
70
+ */
71
+ _onMutate = () => { },
72
+ /**
73
+ * Name of the responsive properties.
74
+ */
75
+ _name = 'Responsive Props') {
76
+ this._initProps = _initProps;
77
+ this._onMutate = _onMutate;
78
+ this._name = _name;
79
+ /**
80
+ * A set of responsive rules
81
+ */
82
+ this._responsiveRules = [];
83
+ this._app = window.vevetApp;
84
+ this._refProps = mergeWithoutArrays({}, _initProps);
85
+ this._props = mergeWithoutArrays({}, _initProps);
86
+ this._activeBreakpoints = [];
87
+ }
88
+ /**
89
+ * Add responsive rules
90
+ */
91
+ addResponsiveProps(rules) {
92
+ this._responsiveRules.push(rules);
93
+ this._responseProps();
94
+ if (typeof this._viewportCallback !== 'undefined') {
95
+ return;
96
+ }
97
+ this._viewportCallback = this._app.viewport.add('width', this._responseProps.bind(this), { name: this._name });
98
+ }
99
+ /**
100
+ * Change properties according to the "responsive" settings
101
+ */
102
+ _responseProps() {
103
+ const app = this._app;
104
+ const { viewport } = app;
105
+ let newProps = false;
106
+ const statProp = mergeWithoutArrays({}, this._refProps);
107
+ const prevActiveBreakpointsString = [...this._activeBreakpoints].join('_');
108
+ this._activeBreakpoints = [];
109
+ // go through all breakpoints
110
+ // and check if a proper breakpoint exists
111
+ this._responsiveRules.forEach(({ settings, breakpoint }) => {
112
+ if (typeof breakpoint === 'number') {
113
+ if (viewport.width <= breakpoint) {
114
+ this._activeBreakpoints.push(breakpoint);
115
+ newProps = mergeWithoutArrays(statProp, settings);
116
+ }
117
+ }
118
+ else if (typeof breakpoint === 'string') {
119
+ // viewport size
120
+ if ((breakpoint === 'viewport_desktop' && viewport.isDesktop) ||
121
+ (breakpoint === 'viewport_tablet' && viewport.isTablet) ||
122
+ (breakpoint === 'viewport_phone' && viewport.isPhone)) {
123
+ this._activeBreakpoints.push(breakpoint);
124
+ newProps = mergeWithoutArrays(statProp, settings);
125
+ }
126
+ // device type
127
+ if ((breakpoint === 'device_phone' && app.isPhone) ||
128
+ (breakpoint === 'device_tablet' && app.isTablet) ||
129
+ (breakpoint === 'device_mobile' && app.isMobile)) {
130
+ this._activeBreakpoints.push(breakpoint);
131
+ newProps = mergeWithoutArrays(statProp, settings);
132
+ }
133
+ }
134
+ });
135
+ // check if properties really changed
136
+ const activeBreakpointsString = this._activeBreakpoints.join('_');
137
+ const isPropsChanged = activeBreakpointsString !== prevActiveBreakpointsString;
138
+ // if there's no breakpoint, restore the props
139
+ if (!newProps) {
140
+ this._props = mergeWithoutArrays(this._props, this._refProps);
141
+ }
142
+ else {
143
+ // otherwise, change the properties
144
+ this._props = mergeWithoutArrays(this._props, newProps);
145
+ }
146
+ // callback
147
+ if (isPropsChanged) {
148
+ this._onMutate();
149
+ }
150
+ }
151
+ /**
152
+ * This method allows you to change the properties manually.
153
+ */
154
+ changeProps(props) {
155
+ this._props = mergeWithoutArrays(this._props, props);
156
+ this._refProps = mergeWithoutArrays(this._refProps, props);
157
+ this._onMutate();
158
+ }
159
+ /**
160
+ * Destroy the responsive properties.
161
+ */
162
+ destroy() {
163
+ if (this._viewportCallback) {
164
+ this._viewportCallback.remove();
165
+ }
166
+ }
167
+ }
168
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/MutableProps/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAMpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,OAAO,Y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C,IAAI,CAAC,UAAU,CAAC,CAAC;oBACzC,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;iBACnD;aACF;QACH,CAAC,CAAC,CAAC;QAEH,qCAAqC;QACrC,MAAM,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClE,MAAM,cAAc,GAClB,uBAAuB,KAAK,2BAA2B,CAAC;QAE1D,8CAA8C;QAC9C,IAAI,CAAC,QAAQ,EAAE;YACb,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;SAC/D;aAAM;YACL,mCAAmC;YACnC,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;SACzD;QAED,WAAW;QACX,IAAI,cAAc,EAAE;YAClB,IAAI,CAAC,SAAS,EAAE,CAAC;SAClB;IACH,CAAC;IAED;;OAEG;IACI,WAAW,CAAC,KAA+B;QAChD,IAAI,CAAC,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QACrD,IAAI,CAAC,SAAS,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAE3D,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED;;OAEG;IACI,OAAO;QACZ,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;SACjC;IACH,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/base/MutableProps/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,22 @@
1
+ import { Module } from '../Module';
2
+ /**
3
+ * A class for Plugins.
4
+ */
5
+ export class Plugin extends Module {
6
+ constructor(initialProps) {
7
+ super(initialProps, false);
8
+ }
9
+ get component() {
10
+ return this._component;
11
+ }
12
+ set component(value) {
13
+ this._component = value;
14
+ }
15
+ init() {
16
+ if (!this.component) {
17
+ throw new Error('Component is unknown. Be sure that `plugin.component` is non-nullable.');
18
+ }
19
+ super.init();
20
+ }
21
+ }
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/Plugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKnC;;GAEG;AACH,MAAM,OAAgB,MAKpB,SAAQ,MAAoD;IAC5D,YAAY,YAA4C;QACtD,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;IAC7B,CAAC;IAID,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAED,IAAI,SAAS,CAAC,KAAK;QACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IAC1B,CAAC;IAEM,IAAI;QACT,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;SACH;QAED,KAAK,CAAC,IAAI,EAAE,CAAC;IACf,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/base/Plugin/types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export * from './Callbacks';
2
+ export * from './Component';
3
+ export * from './Module';
4
+ export * from './MutableProps';
5
+ export * from './Plugin';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/base/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC"}
@@ -0,0 +1,144 @@
1
+ import { Component as ComponentClass } from '../../base/Component';
2
+ /**
3
+ * Launch an animation frame with a certain FPS
4
+ */
5
+ export class AnimationFrame extends ComponentClass {
6
+ _getDefaultProps() {
7
+ return Object.assign(Object.assign({}, super._getDefaultProps()), { fps: 'auto', autoFpsFrames: 50, isEnabled: false });
8
+ }
9
+ get isPlaying() {
10
+ return this._isPlaying;
11
+ }
12
+ /** Computed real time fps */
13
+ get computedFPS() {
14
+ return this._computedFPS;
15
+ }
16
+ /** Coefficient of standard fps (60) divided by computed fps */
17
+ get easeMultiplier() {
18
+ return 60 / this.computedFPS;
19
+ }
20
+ constructor(initialProps, canInit = true) {
21
+ super(initialProps, false);
22
+ this._isPlaying = false;
23
+ this._frame = null;
24
+ this._frameIndex = -1;
25
+ this._firstFrameTime = null;
26
+ this._lastFrameTime = null;
27
+ this._frameDurations = [];
28
+ this._computedFPS = this.props.fps !== 'auto' ? this.props.fps : 60;
29
+ if (canInit) {
30
+ this.init();
31
+ }
32
+ }
33
+ _init() {
34
+ super._init();
35
+ if (this.props.isEnabled) {
36
+ this.play();
37
+ }
38
+ }
39
+ _onPropsMutate() {
40
+ super._onPropsMutate();
41
+ this._frameIndex = -1;
42
+ this._firstFrameTime = null;
43
+ this._lastFrameTime = null;
44
+ if (this.props.isEnabled) {
45
+ this._play();
46
+ }
47
+ else {
48
+ this._pause();
49
+ }
50
+ }
51
+ /** Play animation */
52
+ play() {
53
+ if (this.isDestroyed) {
54
+ return;
55
+ }
56
+ if (this.props.isEnabled) {
57
+ return;
58
+ }
59
+ this.changeProps({ isEnabled: true });
60
+ }
61
+ /** Play animation */
62
+ _play() {
63
+ if (this.isPlaying) {
64
+ return;
65
+ }
66
+ this._isPlaying = true;
67
+ this.callbacks.tbt('play', undefined);
68
+ this.callbacks.tbt('toggle', undefined);
69
+ this._frame = window.requestAnimationFrame(this._animate.bind(this));
70
+ }
71
+ /** Pause animation */
72
+ pause() {
73
+ if (!this.props.isEnabled) {
74
+ return;
75
+ }
76
+ this.changeProps({ isEnabled: false });
77
+ }
78
+ /** Pause animation */
79
+ _pause() {
80
+ if (!this.isPlaying) {
81
+ return;
82
+ }
83
+ if (this._frame) {
84
+ window.cancelAnimationFrame(this._frame);
85
+ this._frame = null;
86
+ }
87
+ this._isPlaying = false;
88
+ this.callbacks.tbt('pause', undefined);
89
+ this.callbacks.tbt('toggle', undefined);
90
+ }
91
+ /** Launch the animation frame */
92
+ _animate() {
93
+ if (!this._isPlaying) {
94
+ return;
95
+ }
96
+ this._frame = window.requestAnimationFrame(this._animate.bind(this));
97
+ // update time
98
+ const startTime = +new Date();
99
+ if (this._firstFrameTime === null) {
100
+ this._firstFrameTime = startTime;
101
+ }
102
+ // calculate frame index
103
+ const minFrameDuration = this.props.fps === 'auto' ? 1 : 1000 / this.props.fps;
104
+ const newFrameIndex = Math.floor((startTime - this._firstFrameTime) / minFrameDuration);
105
+ // break if frame index the same
106
+ if (newFrameIndex <= this._frameIndex) {
107
+ return;
108
+ }
109
+ // update frame index
110
+ this._frameIndex = newFrameIndex;
111
+ // compute fps
112
+ this._computeFPS(startTime);
113
+ // launch callbacks
114
+ this.callbacks.tbt('frame', undefined);
115
+ // update vars
116
+ this._lastFrameTime = startTime;
117
+ }
118
+ /** Compute real-time FPS */
119
+ _computeFPS(startTime) {
120
+ var _a;
121
+ const lastFrameDuration = startTime - ((_a = this._lastFrameTime) !== null && _a !== void 0 ? _a : startTime);
122
+ // skip frames that seem not real
123
+ if (lastFrameDuration <= 0 || lastFrameDuration > 250) {
124
+ return;
125
+ }
126
+ this._frameDurations.push(lastFrameDuration);
127
+ if (this._frameDurations.length < this.props.autoFpsFrames) {
128
+ return;
129
+ }
130
+ const totalFramesDuration = this._frameDurations.reduce((prev, curr) => prev + curr);
131
+ const approximateFrameDuration = totalFramesDuration / this._frameDurations.length;
132
+ const computedFPS = Math.floor(1000 / approximateFrameDuration);
133
+ const normalizedFPS = Math.round(computedFPS / 10) * 10;
134
+ this._computedFPS = normalizedFPS;
135
+ // clear durations
136
+ this._frameDurations = [];
137
+ }
138
+ /** Destroy the animation frame */
139
+ _destroy() {
140
+ this.pause();
141
+ super._destroy();
142
+ }
143
+ }
144
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/AnimationFrame/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAK/D;;GAEG;AACH,MAAM,OAAO,cAIX,SAAQ,cAA4D;IAC1D,gBAAgB;QACxB,uCACK,KAAK,CAAC,gBAAgB,EAAE,KAC3B,GAAG,EAAE,MAAM,EACX,aAAa,EAAE,EAAE,EACjB,SAAS,EAAE,KAAK,IAChB;IACJ,CAAC;IAKD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IAoBD,6BAA6B;IAC7B,IAAI,WAAW;QACb,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,+DAA+D;IAC/D,IAAI,cAAc;QAChB,OAAO,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;IAC/B,CAAC;IAED,YAAY,YAA4C,EAAE,OAAO,GAAG,IAAI;QACtE,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;QAE3B,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QACxB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;QAC5B,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,G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AAC,YAAY,GAAG,aAAa,CAAC;QAElC,kBAAkB;QAClB,IAAI,CAAC,eAAe,GAAG,EAAE,CAAC;IAC5B,CAAC;IAED,kCAAkC;IACxB,QAAQ;QAChB,IAAI,CAAC,KAAK,EAAE,CAAC;QAEb,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/AnimationFrame/types.ts"],"names":[],"mappings":""}