@wix/motion 1.644.0 → 1.646.0

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 (204) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/api/common.js +7 -3
  3. package/dist/cjs/api/common.js.map +1 -1
  4. package/dist/cjs/api/cssAnimations.js +3 -3
  5. package/dist/cjs/api/cssAnimations.js.map +1 -1
  6. package/dist/cjs/api/webAnimations.js +5 -5
  7. package/dist/cjs/api/webAnimations.js.map +1 -1
  8. package/dist/cjs/library/backgroundScroll/test/testUtils.js +1 -2
  9. package/dist/cjs/library/backgroundScroll/test/testUtils.js.map +1 -1
  10. package/dist/cjs/library/entrance/test/testUtils.js +1 -2
  11. package/dist/cjs/library/entrance/test/testUtils.js.map +1 -1
  12. package/dist/cjs/library/ongoing/test/testUtils.js +1 -2
  13. package/dist/cjs/library/ongoing/test/testUtils.js.map +1 -1
  14. package/dist/cjs/library/scroll/test/testUtils.js +1 -2
  15. package/dist/cjs/library/scroll/test/testUtils.js.map +1 -1
  16. package/dist/cjs/playground/animationMotionBgScroll.stories.js +14 -16
  17. package/dist/cjs/playground/animationMotionBgScroll.stories.js.map +1 -1
  18. package/dist/cjs/playground/animationsMotion.stories.js +11 -12
  19. package/dist/cjs/playground/animationsMotion.stories.js.map +1 -1
  20. package/dist/cjs/playground/animationsMotionMouse.stories.js +14 -15
  21. package/dist/cjs/playground/animationsMotionMouse.stories.js.map +1 -1
  22. package/dist/cjs/playground/animationsMotionOngoing.stories.js +11 -12
  23. package/dist/cjs/playground/animationsMotionOngoing.stories.js.map +1 -1
  24. package/dist/cjs/playground/animationsMotionScroll.stories.js +12 -13
  25. package/dist/cjs/playground/animationsMotionScroll.stories.js.map +1 -1
  26. package/dist/cjs/types.js.map +1 -1
  27. package/dist/esm/api/common.js +7 -4
  28. package/dist/esm/api/common.js.map +1 -1
  29. package/dist/esm/api/cssAnimations.js +4 -4
  30. package/dist/esm/api/cssAnimations.js.map +1 -1
  31. package/dist/esm/api/webAnimations.js +6 -6
  32. package/dist/esm/api/webAnimations.js.map +1 -1
  33. package/dist/esm/library/backgroundScroll/test/testUtils.js +1 -2
  34. package/dist/esm/library/backgroundScroll/test/testUtils.js.map +1 -1
  35. package/dist/esm/library/entrance/test/testUtils.js +1 -2
  36. package/dist/esm/library/entrance/test/testUtils.js.map +1 -1
  37. package/dist/esm/library/ongoing/test/testUtils.js +1 -2
  38. package/dist/esm/library/ongoing/test/testUtils.js.map +1 -1
  39. package/dist/esm/library/scroll/test/testUtils.js +1 -2
  40. package/dist/esm/library/scroll/test/testUtils.js.map +1 -1
  41. package/dist/esm/playground/animationMotionBgScroll.stories.js +0 -2
  42. package/dist/esm/playground/animationMotionBgScroll.stories.js.map +1 -1
  43. package/dist/esm/playground/animationsMotion.stories.js +0 -1
  44. package/dist/esm/playground/animationsMotion.stories.js.map +1 -1
  45. package/dist/esm/playground/animationsMotionMouse.stories.js +0 -1
  46. package/dist/esm/playground/animationsMotionMouse.stories.js.map +1 -1
  47. package/dist/esm/playground/animationsMotionOngoing.stories.js +0 -1
  48. package/dist/esm/playground/animationsMotionOngoing.stories.js.map +1 -1
  49. package/dist/esm/playground/animationsMotionScroll.stories.js +0 -1
  50. package/dist/esm/playground/animationsMotionScroll.stories.js.map +1 -1
  51. package/dist/esm/types.js.map +1 -1
  52. package/dist/types/api/common.d.ts +4 -9
  53. package/dist/types/api/common.d.ts.map +1 -1
  54. package/dist/types/api/cssAnimations.d.ts +1 -1
  55. package/dist/types/api/cssAnimations.d.ts.map +1 -1
  56. package/dist/types/api/webAnimations.d.ts.map +1 -1
  57. package/dist/types/library/backgroundScroll/BgCloseUp.d.ts +0 -2
  58. package/dist/types/library/backgroundScroll/BgCloseUp.d.ts.map +1 -1
  59. package/dist/types/library/backgroundScroll/BgFade.d.ts +0 -1
  60. package/dist/types/library/backgroundScroll/BgFade.d.ts.map +1 -1
  61. package/dist/types/library/backgroundScroll/BgFadeBack.d.ts +0 -2
  62. package/dist/types/library/backgroundScroll/BgFadeBack.d.ts.map +1 -1
  63. package/dist/types/library/backgroundScroll/BgFake3D.d.ts +0 -2
  64. package/dist/types/library/backgroundScroll/BgFake3D.d.ts.map +1 -1
  65. package/dist/types/library/backgroundScroll/BgPan.d.ts +0 -1
  66. package/dist/types/library/backgroundScroll/BgPan.d.ts.map +1 -1
  67. package/dist/types/library/backgroundScroll/BgParallax.d.ts +0 -1
  68. package/dist/types/library/backgroundScroll/BgParallax.d.ts.map +1 -1
  69. package/dist/types/library/backgroundScroll/BgPullBack.d.ts +0 -1
  70. package/dist/types/library/backgroundScroll/BgPullBack.d.ts.map +1 -1
  71. package/dist/types/library/backgroundScroll/BgRotate.d.ts +0 -1
  72. package/dist/types/library/backgroundScroll/BgRotate.d.ts.map +1 -1
  73. package/dist/types/library/backgroundScroll/BgSkew.d.ts +0 -1
  74. package/dist/types/library/backgroundScroll/BgSkew.d.ts.map +1 -1
  75. package/dist/types/library/backgroundScroll/BgZoom.d.ts +0 -3
  76. package/dist/types/library/backgroundScroll/BgZoom.d.ts.map +1 -1
  77. package/dist/types/library/backgroundScroll/ImageParallax.d.ts +0 -1
  78. package/dist/types/library/backgroundScroll/ImageParallax.d.ts.map +1 -1
  79. package/dist/types/library/backgroundScroll/test/testUtils.d.ts.map +1 -1
  80. package/dist/types/library/entrance/ArcIn.d.ts +0 -4
  81. package/dist/types/library/entrance/ArcIn.d.ts.map +1 -1
  82. package/dist/types/library/entrance/BlurIn.d.ts +0 -4
  83. package/dist/types/library/entrance/BlurIn.d.ts.map +1 -1
  84. package/dist/types/library/entrance/BounceIn.d.ts +0 -4
  85. package/dist/types/library/entrance/BounceIn.d.ts.map +1 -1
  86. package/dist/types/library/entrance/CircleIn.d.ts +0 -4
  87. package/dist/types/library/entrance/CircleIn.d.ts.map +1 -1
  88. package/dist/types/library/entrance/CurveIn.d.ts +0 -2
  89. package/dist/types/library/entrance/CurveIn.d.ts.map +1 -1
  90. package/dist/types/library/entrance/DropIn.d.ts +0 -4
  91. package/dist/types/library/entrance/DropIn.d.ts.map +1 -1
  92. package/dist/types/library/entrance/ExpandIn.d.ts +0 -4
  93. package/dist/types/library/entrance/ExpandIn.d.ts.map +1 -1
  94. package/dist/types/library/entrance/FadeIn.d.ts +0 -2
  95. package/dist/types/library/entrance/FadeIn.d.ts.map +1 -1
  96. package/dist/types/library/entrance/FlipIn.d.ts +0 -4
  97. package/dist/types/library/entrance/FlipIn.d.ts.map +1 -1
  98. package/dist/types/library/entrance/FloatIn.d.ts +0 -2
  99. package/dist/types/library/entrance/FloatIn.d.ts.map +1 -1
  100. package/dist/types/library/entrance/FoldIn.d.ts +0 -4
  101. package/dist/types/library/entrance/FoldIn.d.ts.map +1 -1
  102. package/dist/types/library/entrance/GlideIn.d.ts +0 -2
  103. package/dist/types/library/entrance/GlideIn.d.ts.map +1 -1
  104. package/dist/types/library/entrance/GlitchIn.d.ts +0 -2
  105. package/dist/types/library/entrance/GlitchIn.d.ts.map +1 -1
  106. package/dist/types/library/entrance/GrowIn.d.ts +0 -4
  107. package/dist/types/library/entrance/GrowIn.d.ts.map +1 -1
  108. package/dist/types/library/entrance/PunchIn.d.ts +0 -4
  109. package/dist/types/library/entrance/PunchIn.d.ts.map +1 -1
  110. package/dist/types/library/entrance/RevealIn.d.ts +0 -2
  111. package/dist/types/library/entrance/RevealIn.d.ts.map +1 -1
  112. package/dist/types/library/entrance/ShapeIn.d.ts +0 -4
  113. package/dist/types/library/entrance/ShapeIn.d.ts.map +1 -1
  114. package/dist/types/library/entrance/ShuttersIn.d.ts +0 -2
  115. package/dist/types/library/entrance/ShuttersIn.d.ts.map +1 -1
  116. package/dist/types/library/entrance/SlideIn.d.ts +0 -2
  117. package/dist/types/library/entrance/SlideIn.d.ts.map +1 -1
  118. package/dist/types/library/entrance/SpinIn.d.ts +0 -4
  119. package/dist/types/library/entrance/SpinIn.d.ts.map +1 -1
  120. package/dist/types/library/entrance/TiltIn.d.ts +0 -6
  121. package/dist/types/library/entrance/TiltIn.d.ts.map +1 -1
  122. package/dist/types/library/entrance/TurnIn.d.ts +0 -4
  123. package/dist/types/library/entrance/TurnIn.d.ts.map +1 -1
  124. package/dist/types/library/entrance/WinkIn.d.ts +0 -6
  125. package/dist/types/library/entrance/WinkIn.d.ts.map +1 -1
  126. package/dist/types/library/entrance/test/testUtils.d.ts.map +1 -1
  127. package/dist/types/library/ongoing/Blink.d.ts +0 -1
  128. package/dist/types/library/ongoing/Blink.d.ts.map +1 -1
  129. package/dist/types/library/ongoing/Bounce.d.ts +0 -2
  130. package/dist/types/library/ongoing/Bounce.d.ts.map +1 -1
  131. package/dist/types/library/ongoing/Breathe.d.ts +0 -2
  132. package/dist/types/library/ongoing/Breathe.d.ts.map +1 -1
  133. package/dist/types/library/ongoing/Cross.d.ts +0 -1
  134. package/dist/types/library/ongoing/Cross.d.ts.map +1 -1
  135. package/dist/types/library/ongoing/DVD.d.ts +0 -2
  136. package/dist/types/library/ongoing/DVD.d.ts.map +1 -1
  137. package/dist/types/library/ongoing/Flash.d.ts +0 -2
  138. package/dist/types/library/ongoing/Flash.d.ts.map +1 -1
  139. package/dist/types/library/ongoing/Flip.d.ts +0 -2
  140. package/dist/types/library/ongoing/Flip.d.ts.map +1 -1
  141. package/dist/types/library/ongoing/Fold.d.ts +0 -2
  142. package/dist/types/library/ongoing/Fold.d.ts.map +1 -1
  143. package/dist/types/library/ongoing/Jello.d.ts +0 -2
  144. package/dist/types/library/ongoing/Jello.d.ts.map +1 -1
  145. package/dist/types/library/ongoing/Poke.d.ts +0 -2
  146. package/dist/types/library/ongoing/Poke.d.ts.map +1 -1
  147. package/dist/types/library/ongoing/Pulse.d.ts +0 -2
  148. package/dist/types/library/ongoing/Pulse.d.ts.map +1 -1
  149. package/dist/types/library/ongoing/Rubber.d.ts +0 -2
  150. package/dist/types/library/ongoing/Rubber.d.ts.map +1 -1
  151. package/dist/types/library/ongoing/Spin.d.ts +0 -2
  152. package/dist/types/library/ongoing/Spin.d.ts.map +1 -1
  153. package/dist/types/library/ongoing/Swing.d.ts +0 -2
  154. package/dist/types/library/ongoing/Swing.d.ts.map +1 -1
  155. package/dist/types/library/ongoing/Wiggle.d.ts +0 -2
  156. package/dist/types/library/ongoing/Wiggle.d.ts.map +1 -1
  157. package/dist/types/library/ongoing/test/testUtils.d.ts.map +1 -1
  158. package/dist/types/library/scroll/ArcScroll.d.ts +0 -1
  159. package/dist/types/library/scroll/ArcScroll.d.ts.map +1 -1
  160. package/dist/types/library/scroll/BlurScroll.d.ts +0 -1
  161. package/dist/types/library/scroll/BlurScroll.d.ts.map +1 -1
  162. package/dist/types/library/scroll/FadeScroll.d.ts +0 -1
  163. package/dist/types/library/scroll/FadeScroll.d.ts.map +1 -1
  164. package/dist/types/library/scroll/FlipScroll.d.ts +0 -1
  165. package/dist/types/library/scroll/FlipScroll.d.ts.map +1 -1
  166. package/dist/types/library/scroll/GrowScroll.d.ts +0 -1
  167. package/dist/types/library/scroll/GrowScroll.d.ts.map +1 -1
  168. package/dist/types/library/scroll/MoveScroll.d.ts +0 -1
  169. package/dist/types/library/scroll/MoveScroll.d.ts.map +1 -1
  170. package/dist/types/library/scroll/PanScroll.d.ts +0 -1
  171. package/dist/types/library/scroll/PanScroll.d.ts.map +1 -1
  172. package/dist/types/library/scroll/ParallaxScroll.d.ts +0 -1
  173. package/dist/types/library/scroll/ParallaxScroll.d.ts.map +1 -1
  174. package/dist/types/library/scroll/RevealScroll.d.ts +0 -1
  175. package/dist/types/library/scroll/RevealScroll.d.ts.map +1 -1
  176. package/dist/types/library/scroll/ShapeScroll.d.ts +0 -1
  177. package/dist/types/library/scroll/ShapeScroll.d.ts.map +1 -1
  178. package/dist/types/library/scroll/ShrinkScroll.d.ts +0 -1
  179. package/dist/types/library/scroll/ShrinkScroll.d.ts.map +1 -1
  180. package/dist/types/library/scroll/ShuttersScroll.d.ts +0 -1
  181. package/dist/types/library/scroll/ShuttersScroll.d.ts.map +1 -1
  182. package/dist/types/library/scroll/SkewPanScroll.d.ts +0 -1
  183. package/dist/types/library/scroll/SkewPanScroll.d.ts.map +1 -1
  184. package/dist/types/library/scroll/SlideScroll.d.ts +0 -1
  185. package/dist/types/library/scroll/SlideScroll.d.ts.map +1 -1
  186. package/dist/types/library/scroll/Spin3dScroll.d.ts +0 -1
  187. package/dist/types/library/scroll/Spin3dScroll.d.ts.map +1 -1
  188. package/dist/types/library/scroll/SpinScroll.d.ts +0 -1
  189. package/dist/types/library/scroll/SpinScroll.d.ts.map +1 -1
  190. package/dist/types/library/scroll/StretchScroll.d.ts +0 -2
  191. package/dist/types/library/scroll/StretchScroll.d.ts.map +1 -1
  192. package/dist/types/library/scroll/TiltScroll.d.ts +0 -2
  193. package/dist/types/library/scroll/TiltScroll.d.ts.map +1 -1
  194. package/dist/types/library/scroll/TurnScroll.d.ts +0 -1
  195. package/dist/types/library/scroll/TurnScroll.d.ts.map +1 -1
  196. package/dist/types/library/scroll/test/testUtils.d.ts.map +1 -1
  197. package/dist/types/playground/animationMotionBgScroll.stories.d.ts.map +1 -1
  198. package/dist/types/playground/animationsMotion.stories.d.ts.map +1 -1
  199. package/dist/types/playground/animationsMotionMouse.stories.d.ts.map +1 -1
  200. package/dist/types/playground/animationsMotionOngoing.stories.d.ts.map +1 -1
  201. package/dist/types/playground/animationsMotionScroll.stories.d.ts.map +1 -1
  202. package/dist/types/types.d.ts +4 -2
  203. package/dist/types/types.d.ts.map +1 -1
  204. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["type LengthUnit = 'px' | 'em' | 'rem' | 'vh' | 'vw' | 'vmin' | 'vmax';\n\nexport declare type Length = {\n value: number;\n type: LengthUnit;\n};\n\nexport declare type Percentage = {\n value: number;\n type: 'percentage';\n};\n\nexport declare type LengthPercentage = Length | Percentage;\n\nexport declare type UnitLengthPercentage = LengthPercentage;\n\nexport type Point = [number, number];\n\nexport type EffectNineDirections =\n | 'right'\n | 'top-right'\n | 'top'\n | 'top-left'\n | 'left'\n | 'bottom-left'\n | 'bottom'\n | 'bottom-right'\n | 'center';\n\nexport type EffectScaleDirection = 'up' | 'down';\n\ndeclare class ViewTimeline {\n constructor(options: { subject: HTMLElement });\n}\n\ndeclare global {\n interface Window {\n ViewTimeline: ViewTimeline;\n }\n}\n\nexport type AnimationFillMode = 'none' | 'backwards' | 'forwards' | 'both';\n\nexport type BaseDataItemLike<Type extends string = string> = {\n id?: string;\n type: Type;\n};\n\nexport type EffectTwoSides = 'left' | 'right';\n\nexport type EffectFourDirections = 'top' | 'right' | 'bottom' | 'left';\nexport type EffectFourCorners =\n | 'top-right'\n | 'top-left'\n | 'bottom-right'\n | 'bottom-left';\nexport type EffectEightDirections = EffectFourDirections | EffectFourCorners;\nexport type EffectPower = 'soft' | 'medium' | 'hard';\nexport type EffectScrollRange = 'in' | 'out' | 'continuous';\n\nexport type FadeIn = BaseDataItemLike<'FadeIn'>;\nexport type ArcIn = BaseDataItemLike<'ArcIn'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n};\nexport type CurveIn = BaseDataItemLike<'CurveIn'> & {\n direction: EffectTwoSides;\n};\nexport type DropIn = BaseDataItemLike<'DropIn'> & {\n power?: EffectPower;\n initialScale?: number;\n};\nexport type ExpandIn = BaseDataItemLike<'ExpandIn'> & {\n power?: EffectPower;\n direction: EffectEightDirections | 'center';\n initialScale?: number;\n};\nexport type FlipIn = BaseDataItemLike<'FlipIn'> & {\n power?: EffectPower;\n direction: EffectFourDirections;\n initialRotate?: number;\n};\nexport type FloatIn = BaseDataItemLike<'FloatIn'> & {\n direction: EffectFourDirections;\n};\nexport type FoldIn = BaseDataItemLike<'FoldIn'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n initialRotate?: number;\n};\nexport type SlideIn = BaseDataItemLike<'SlideIn'> & {\n power?: EffectPower;\n direction: EffectFourDirections;\n initialTranslate?: number;\n};\nexport type SpinIn = BaseDataItemLike<'SpinIn'> & {\n spins: number;\n direction: 'clockwise' | 'counter-clockwise';\n power?: EffectPower;\n initialScale?: number;\n};\nexport type BounceIn = BaseDataItemLike<'BounceIn'> & {\n direction: EffectFourDirections | 'center';\n power?: EffectPower;\n distanceFactor?: number;\n};\nexport type PunchIn = BaseDataItemLike<'PunchIn'> & {\n direction: EffectFourCorners | 'center';\n power?: EffectPower;\n};\nexport type GlideIn = BaseDataItemLike<'GlideIn'> & {\n direction: number;\n distance: UnitLengthPercentage;\n power?: EffectPower;\n startFromOffScreen?: boolean;\n};\nexport type GlitchIn = BaseDataItemLike<'GlitchIn'> & {\n direction: number;\n distance: UnitLengthPercentage;\n power?: EffectPower;\n startFromOffScreen?: boolean;\n};\nexport type TurnIn = BaseDataItemLike<'TurnIn'> & {\n direction: EffectFourCorners;\n power?: EffectPower;\n};\nexport type CircleIn = BaseDataItemLike<'CircleIn'> & {\n direction: EffectTwoSides;\n};\nexport type WinkIn = BaseDataItemLike<'WinkIn'> & {\n direction: 'vertical' | 'horizontal';\n};\nexport type TiltIn = BaseDataItemLike<'TiltIn'> & {\n direction: EffectTwoSides;\n};\nexport type ShapeIn = BaseDataItemLike<'ShapeIn'> & {\n shape: 'circle' | 'ellipse' | 'rectangle' | 'diamond' | 'window';\n direction: EffectEightDirections | 'center';\n};\n\nexport type ShuttersIn = BaseDataItemLike<'ShuttersIn'> & {\n direction: EffectFourDirections;\n shutters: number;\n staggered: boolean;\n power?: EffectPower;\n};\nexport type GrowIn = BaseDataItemLike<'GrowIn'> & {\n direction: number;\n distance: UnitLengthPercentage;\n power?: EffectPower;\n initialScale?: number;\n};\nexport type RevealIn = BaseDataItemLike<'RevealIn'> & {\n direction: EffectFourDirections;\n};\nexport type BlurIn = BaseDataItemLike<'BlurIn'> & {\n blur?: number;\n power?: EffectPower;\n};\n\nexport type AnimationOptionsTypes = {\n time: TimeAnimationOptions & AnimationExtraOptions;\n scrub: ScrubAnimationOptions & AnimationExtraOptions;\n};\n\nexport type AnimationEffectAPI<Enum extends keyof AnimationOptionsTypes> = {\n web: (\n animationOptions: AnimationOptionsTypes[Enum],\n dom?: DomApi,\n options?: Record<string, any>,\n ) => AnimationData[];\n getNames: (animationOptions: AnimationOptionsTypes[Enum]) => string[];\n style?: (options: AnimationOptionsTypes[Enum]) => AnimationData[];\n prepare?: (options: AnimationOptionsTypes[Enum], dom?: DomApi) => void;\n};\n\nexport type WebAnimationEffectFactory<\n Enum extends keyof AnimationOptionsTypes,\n> = (\n animationOptions: AnimationOptionsTypes[Enum],\n dom?: DomApi,\n options?: Record<string, any>,\n) => AnimationData[];\n\nexport type EntranceAnimation =\n | FadeIn\n | ArcIn\n | CurveIn\n | DropIn\n | ExpandIn\n | FlipIn\n | FloatIn\n | FoldIn\n | SlideIn\n | SpinIn\n | BounceIn\n | PunchIn\n | GlideIn\n | GlitchIn\n | TurnIn\n | CircleIn\n | WinkIn\n | TiltIn\n | ShapeIn\n | ShuttersIn\n | GrowIn\n | RevealIn\n | BlurIn;\nexport type EntranceAnimations = Record<\n EntranceAnimation['type'],\n AnimationEffectAPI<'time'>\n>;\n\nexport type Breathe = BaseDataItemLike<'Breathe'> & {\n direction: 'vertical' | 'horizontal' | 'center';\n distance: UnitLengthPercentage;\n};\nexport type Pulse = BaseDataItemLike<'Pulse'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Spin = BaseDataItemLike<'Spin'> & {\n direction: 'clockwise' | 'counter-clockwise';\n power?: EffectPower;\n};\nexport type Poke = BaseDataItemLike<'Poke'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n intensity?: number;\n};\nexport type Flash = BaseDataItemLike<'Flash'>;\nexport type Swing = BaseDataItemLike<'Swing'> & {\n power?: EffectPower;\n swing?: number;\n direction?: EffectFourDirections;\n};\nexport type Flip = BaseDataItemLike<'Flip'> & {\n direction: 'vertical' | 'horizontal';\n power?: EffectPower;\n};\nexport type Rubber = BaseDataItemLike<'Rubber'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Fold = BaseDataItemLike<'Fold'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n angle?: number;\n};\nexport type Jello = BaseDataItemLike<'Jello'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Wiggle = BaseDataItemLike<'Wiggle'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Bounce = BaseDataItemLike<'Bounce'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Cross = BaseDataItemLike<'Cross'> & {\n direction: EffectEightDirections;\n};\nexport type DVD = BaseDataItemLike<'DVD'> & {\n power?: EffectPower;\n};\n\nexport type Blink = BaseDataItemLike<'Blink'> & {\n power?: EffectPower;\n scale?: number;\n distance?: UnitLengthPercentage;\n};\n\nexport type OngoingAnimation =\n | Breathe\n | Blink\n | Pulse\n | Spin\n | Poke\n | Flash\n | Swing\n | Flip\n | Rubber\n | Fold\n | Jello\n | Wiggle\n | Bounce\n | Cross\n | DVD;\nexport type OngoingAnimations = Record<\n OngoingAnimation['type'],\n AnimationEffectAPI<'time'>\n>;\n\nexport type ArcScroll = BaseDataItemLike<'ArcScroll'> & {\n direction: 'vertical' | 'horizontal';\n range?: EffectScrollRange;\n};\nexport type BlurScroll = BaseDataItemLike<'BlurScroll'> & {\n power?: EffectPower;\n range?: EffectScrollRange;\n blur?: number;\n};\nexport type FadeScroll = BaseDataItemLike<'FadeScroll'> & {\n range: EffectScrollRange;\n opacity: number;\n};\nexport type FlipScroll = BaseDataItemLike<'FlipScroll'> & {\n direction: 'vertical' | 'horizontal';\n power?: EffectPower;\n range?: EffectScrollRange;\n rotate?: number;\n};\nexport type GrowScroll = BaseDataItemLike<'GrowScroll'> & {\n direction: EffectNineDirections;\n power?: EffectPower;\n range?: EffectScrollRange;\n scale?: number;\n speed?: number;\n};\nexport type MoveScroll = BaseDataItemLike<'MoveScroll'> & {\n angle: number;\n power?: EffectPower;\n range?: EffectScrollRange;\n distance?: UnitLengthPercentage;\n};\nexport type PanScroll = BaseDataItemLike<'PanScroll'> & {\n direction: EffectTwoSides;\n distance: UnitLengthPercentage;\n startFromOffScreen: boolean;\n range?: EffectScrollRange;\n};\nexport type ParallaxScroll = BaseDataItemLike<'ParallaxScroll'> & {\n speed: number;\n range?: EffectScrollRange;\n};\nexport type RevealScroll = BaseDataItemLike<'RevealScroll'> & {\n direction: EffectFourDirections;\n range?: EffectScrollRange;\n};\nexport type ShapeScroll = BaseDataItemLike<'ShapeScroll'> & {\n shape: 'circle' | 'ellipse' | 'rectangle' | 'diamond' | 'window';\n range?: EffectScrollRange;\n power?: EffectPower;\n intensity?: number;\n};\nexport type ShrinkScroll = BaseDataItemLike<'ShrinkScroll'> & {\n direction: EffectNineDirections;\n power?: EffectPower;\n range?: EffectScrollRange;\n scale?: number;\n speed?: number;\n};\nexport type ShuttersScroll = BaseDataItemLike<'ShuttersScroll'> & {\n direction: EffectFourDirections;\n shutters: number;\n staggered: boolean;\n range?: EffectScrollRange;\n};\nexport type SkewPanScroll = BaseDataItemLike<'SkewPanScroll'> & {\n direction: EffectTwoSides;\n range?: EffectScrollRange;\n power?: EffectPower;\n skew?: number;\n};\nexport type SlideScroll = BaseDataItemLike<'SlideScroll'> & {\n direction: EffectFourDirections;\n range?: EffectScrollRange;\n};\nexport type Spin3dScroll = BaseDataItemLike<'Spin3dScroll'> & {\n range?: EffectScrollRange;\n power?: EffectPower;\n rotate?: number;\n speed?: number;\n};\nexport type SpinScroll = BaseDataItemLike<'SpinScroll'> & {\n direction: 'clockwise' | 'counter-clockwise';\n spins: number;\n range?: EffectScrollRange;\n power?: EffectPower;\n scale?: number;\n};\nexport type StretchScroll = BaseDataItemLike<'StretchScroll'> & {\n power?: EffectPower;\n range?: EffectScrollRange;\n stretch?: number;\n};\nexport type TiltScroll = BaseDataItemLike<'TiltScroll'> & {\n direction: EffectTwoSides;\n range?: EffectScrollRange;\n power?: EffectPower;\n distance?: number;\n};\nexport type TurnScroll = BaseDataItemLike<'TurnScroll'> & {\n direction: EffectTwoSides;\n spin: 'clockwise' | 'counter-clockwise';\n range?: EffectScrollRange;\n power?: EffectPower;\n scale?: number;\n};\n\nexport type ScrollAnimation =\n | ArcScroll\n | BlurScroll\n | FadeScroll\n | FlipScroll\n | GrowScroll\n | MoveScroll\n | PanScroll\n | ParallaxScroll\n | RevealScroll\n | ShapeScroll\n | ShuttersScroll\n | ShrinkScroll\n | SkewPanScroll\n | SlideScroll\n | Spin3dScroll\n | SpinScroll\n | StretchScroll\n | TiltScroll\n | TurnScroll;\nexport type ScrollAnimations = Record<\n ScrollAnimation['type'],\n WebAnimationEffectFactory<'scrub'>\n>;\n\nexport type BgCloseUp = BaseDataItemLike<'BgCloseUp'> & {\n scale?: number;\n};\nexport type BgFade = BaseDataItemLike<'BgFade'> & {\n range: 'in' | 'out';\n};\nexport type BgFadeBack = BaseDataItemLike<'BgFadeBack'> & {\n scale?: number;\n};\nexport type BgFake3D = BaseDataItemLike<'BgFake3D'> & {\n stretch?: number;\n zoom?: number;\n};\nexport type BgPan = BaseDataItemLike<'BgPan'> & {\n direction: 'left' | 'right';\n speed?: number;\n};\nexport type BgParallax = BaseDataItemLike<'BgParallax'> & {\n speed?: number;\n};\nexport type BgPullBack = BaseDataItemLike<'BgPullBack'> & {\n scale?: number;\n};\nexport type BgReveal = BaseDataItemLike<'BgReveal'>;\nexport type BgRotate = BaseDataItemLike<'BgRotate'> & {\n direction?: 'ccw' | 'cw';\n angle?: number;\n};\nexport type BgSkew = BaseDataItemLike<'BgSkew'> & {\n direction?: 'ccw' | 'cw';\n angle?: number;\n};\nexport type BgZoom = BaseDataItemLike<'BgZoom'> & {\n direction: 'in' | 'out';\n zoom?: number;\n};\nexport type ImageParallax = BaseDataItemLike<'ImageParallax'> & {\n reverse?: boolean;\n speed?: number;\n isPage?: boolean;\n};\n\nexport type BackgroundScrollAnimation =\n | BgCloseUp\n | BgFade\n | BgFadeBack\n | BgFake3D\n | BgPan\n | BgParallax\n | BgPullBack\n | BgReveal\n | BgRotate\n | BgSkew\n | BgZoom\n | ImageParallax;\n\nexport type BackgroundScrollAnimations = Record<\n BackgroundScrollAnimation['type'],\n WebAnimationEffectFactory<'scrub'>\n>;\n\ntype MouseEffectBase = {\n inverted?: boolean;\n};\n\ntype MouseEffectAxis = 'both' | 'horizontal' | 'vertical';\n\nexport type MousePivotAxis =\n | 'top'\n | 'bottom'\n | 'right'\n | 'left'\n | 'center-horizontal'\n | 'center-vertical';\n\nexport type AiryMouse = BaseDataItemLike<'AiryMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n angle?: number;\n power?: EffectPower;\n };\nexport type BlobMouse = BaseDataItemLike<'BlobMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n scale?: number;\n power?: EffectPower;\n };\nexport type BlurMouse = BaseDataItemLike<'BlurMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n angle?: number;\n scale?: number;\n blur?: number;\n perspective?: number;\n power?: EffectPower;\n };\nexport type BounceMouse = BaseDataItemLike<'BounceMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\nexport type ScaleMouse = BaseDataItemLike<'ScaleMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n scale?: number;\n power?: EffectPower;\n scaleDirection: EffectScaleDirection;\n };\nexport type SkewMouse = BaseDataItemLike<'SkewMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n angle?: number;\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\nexport type SpinMouse = BaseDataItemLike<'SpinMouse'> &\n MouseEffectBase & {\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\nexport type SwivelMouse = BaseDataItemLike<'SwivelMouse'> &\n MouseEffectBase & {\n angle?: number;\n perspective?: number;\n pivotAxis?: MousePivotAxis;\n power?: EffectPower;\n };\nexport type Tilt3DMouse = BaseDataItemLike<'Tilt3DMouse'> &\n MouseEffectBase & {\n angle?: number;\n perspective?: number;\n power?: EffectPower;\n };\nexport type Track3DMouse = BaseDataItemLike<'Track3DMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n angle?: number;\n axis?: MouseEffectAxis;\n perspective?: number;\n power?: EffectPower;\n };\nexport type TrackMouse = BaseDataItemLike<'TrackMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\n\nexport type CustomMouse = BaseDataItemLike<'CustomMouse'>;\n\nexport type Progress = {\n x: number;\n y: number;\n v?: { x: number; y: number };\n active?: boolean;\n};\nexport interface MouseAnimationInstance {\n target: HTMLElement;\n play: () => void;\n progress: (progress: Progress) => void;\n cancel: () => void;\n}\n\nexport interface CustomMouseAnimationInstance extends MouseAnimationInstance {\n getProgress: () => Progress;\n}\n\nexport type MouseAnimationFactory = (\n element: HTMLElement,\n) => MouseAnimationInstance;\n\nexport type MouseAnimationFactoryCreate = (\n options: ScrubAnimationOptions,\n dom?: DomApi,\n) => MouseAnimationFactory;\n\nexport type MouseAnimation =\n | AiryMouse\n | BlobMouse\n | BlurMouse\n | BounceMouse\n | CustomMouse\n | ScaleMouse\n | SkewMouse\n | SpinMouse\n | SwivelMouse\n | Tilt3DMouse\n | Track3DMouse\n | TrackMouse;\nexport type MouseAnimations = Record<\n MouseAnimation['type'],\n MouseAnimationFactoryCreate\n>;\n\nexport type NamedEffect =\n | EntranceAnimation\n | OngoingAnimation\n | ScrollAnimation\n | MouseAnimation\n | BackgroundScrollAnimation;\n\nexport type CustomEffect =\n | {\n ranges: { name: string; min: number; max: number; step?: number }[];\n }\n | ((element: Element | null, progress: number | null) => void);\n\nexport type AnimationExtraOptions = {\n effectId?: string;\n effect?: (\n progress: () => number | { x: number | undefined; y: number | undefined },\n ) => void;\n};\n\nexport type AnimationOptions = (TimeAnimationOptions | ScrubAnimationOptions) &\n AnimationExtraOptions;\n\nexport type MotionAnimationOptions<T extends keyof AnimationOptionsTypes> =\n AnimationOptionsTypes[T];\n\nexport type MeasureCallback = (\n fn: (target: HTMLElement | null) => void,\n) => void;\nexport type DomApi = { measure: MeasureCallback; mutate: MeasureCallback };\n\nexport type NamedEffectFunction = (\n options: AnimationOptions,\n domApi?: DomApi | undefined,\n config?: Record<string, any>,\n) => AnimationData[];\n\nexport type ScrubTransitionEasing =\n | 'linear'\n | 'hardBackOut'\n | 'easeOut'\n | 'elastic'\n | 'bounce';\n\nexport type RangeOffset = {\n name?:\n | 'entry'\n | 'exit'\n | 'contain'\n | 'cover'\n | 'entry-crossing'\n | 'exit-crossing';\n offset?: LengthPercentage;\n};\n\nexport type MotionKeyframeEffect = BaseDataItemLike<'KeyframeEffect'> & {\n name: string;\n keyframes: Keyframe[];\n};\n\nexport type TimeAnimationOptions = BaseDataItemLike<'TimeAnimationOptions'> & {\n keyframeEffect?: MotionKeyframeEffect;\n namedEffect?: NamedEffect;\n customEffect?: CustomEffect;\n duration?: number;\n delay?: number;\n endDelay?: number;\n easing?: string;\n iterations?: number;\n alternate?: boolean;\n fill?: AnimationFillMode;\n reversed?: boolean;\n};\n\ntype ScrubAnimationDataBase = BaseDataItemLike<'ScrubAnimationOptions'> & {\n keyframeEffect?: MotionKeyframeEffect;\n namedEffect?: NamedEffect;\n customEffect?: CustomEffect;\n startOffset?: RangeOffset;\n endOffset?: RangeOffset;\n playbackRate?: number;\n easing?: string;\n iterations?: number;\n fill?: AnimationFillMode;\n alternate?: boolean;\n reversed?: boolean;\n transitionDuration?: number;\n transitionDelay?: number;\n transitionEasing?: ScrubTransitionEasing;\n centeredToTarget?: boolean;\n};\n\nexport type ScrubAnimationOptions = ScrubAnimationDataBase & {\n duration?: LengthPercentage;\n};\n\ntype AnimationDataExtra = {\n name?: string; // TODO: need to be added to all animations and then be made required\n keyframes: Record<string, string | number | undefined>[];\n custom?: Record<string, string | number | undefined>;\n composite?: CompositeOperation;\n part?: string;\n timing?: Partial<EffectTiming>;\n};\n\nexport type AnimationDataForScrub = ScrubAnimationDataBase & {\n duration?: LengthPercentage | number;\n startOffsetAdd?: string;\n endOffsetAdd?: string;\n};\n\nexport type AnimationData = (TimeAnimationOptions | AnimationDataForScrub) &\n AnimationDataExtra;\n\n// TODO: need it?\nexport type AnimationProperties = {\n groups?: string[];\n schema: { [key: string]: any };\n};\n\nexport type TriggerVariant = {\n id: string;\n trigger: 'view-progress' | 'pointer-move';\n componentId: string;\n};\n\nexport type AnimationGroupOptions = AnimationOptions & {\n trigger?: Partial<TriggerVariant> | undefined;\n startOffsetAdd?: string | undefined;\n endOffsetAdd?: string | undefined;\n measured?: Promise<void>;\n};\n\nexport type Shape = 'ellipse' | 'circle' | 'rectangle' | 'diamond' | 'window';\n\nexport interface ScrubScrollScene {\n start: RangeOffset;\n end: RangeOffset;\n viewSource: HTMLElement;\n ready: Promise<void>;\n getProgress(): number;\n effect(__: any, p: number): void;\n disabled: boolean;\n destroy(): void;\n groupId?: string;\n}\n\nexport interface ScrubPointerScene {\n target?: HTMLElement;\n centeredToTarget?: boolean;\n transitionDuration?: number;\n transitionEasing?: ScrubTransitionEasing;\n getProgress(): Progress;\n effect(p: Progress): void;\n disabled: boolean;\n destroy(): void;\n allowActiveEvent?: boolean;\n}\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"names":[],"sources":["../../src/types.ts"],"sourcesContent":["type LengthUnit = 'px' | 'em' | 'rem' | 'vh' | 'vw' | 'vmin' | 'vmax';\n\nexport declare type Length = {\n value: number;\n type: LengthUnit;\n};\n\nexport declare type Percentage = {\n value: number;\n type: 'percentage';\n};\n\nexport declare type LengthPercentage = Length | Percentage;\n\nexport declare type UnitLengthPercentage = LengthPercentage;\n\nexport type Point = [number, number];\n\nexport type EffectNineDirections =\n | 'right'\n | 'top-right'\n | 'top'\n | 'top-left'\n | 'left'\n | 'bottom-left'\n | 'bottom'\n | 'bottom-right'\n | 'center';\n\nexport type EffectScaleDirection = 'up' | 'down';\n\ndeclare class ViewTimeline {\n constructor(options: { subject: HTMLElement });\n}\n\ndeclare global {\n interface Window {\n ViewTimeline: ViewTimeline;\n }\n}\n\nexport type AnimationFillMode = 'none' | 'backwards' | 'forwards' | 'both';\n\nexport type BaseDataItemLike<Type extends string = string> = {\n id?: string;\n type: Type;\n};\n\nexport type EffectTwoSides = 'left' | 'right';\n\nexport type EffectFourDirections = 'top' | 'right' | 'bottom' | 'left';\nexport type EffectFourCorners =\n | 'top-right'\n | 'top-left'\n | 'bottom-right'\n | 'bottom-left';\nexport type EffectEightDirections = EffectFourDirections | EffectFourCorners;\nexport type EffectPower = 'soft' | 'medium' | 'hard';\nexport type EffectScrollRange = 'in' | 'out' | 'continuous';\n\nexport type FadeIn = BaseDataItemLike<'FadeIn'>;\nexport type ArcIn = BaseDataItemLike<'ArcIn'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n};\nexport type CurveIn = BaseDataItemLike<'CurveIn'> & {\n direction: EffectTwoSides;\n};\nexport type DropIn = BaseDataItemLike<'DropIn'> & {\n power?: EffectPower;\n initialScale?: number;\n};\nexport type ExpandIn = BaseDataItemLike<'ExpandIn'> & {\n power?: EffectPower;\n direction: EffectEightDirections | 'center';\n initialScale?: number;\n};\nexport type FlipIn = BaseDataItemLike<'FlipIn'> & {\n power?: EffectPower;\n direction: EffectFourDirections;\n initialRotate?: number;\n};\nexport type FloatIn = BaseDataItemLike<'FloatIn'> & {\n direction: EffectFourDirections;\n};\nexport type FoldIn = BaseDataItemLike<'FoldIn'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n initialRotate?: number;\n};\nexport type SlideIn = BaseDataItemLike<'SlideIn'> & {\n power?: EffectPower;\n direction: EffectFourDirections;\n initialTranslate?: number;\n};\nexport type SpinIn = BaseDataItemLike<'SpinIn'> & {\n spins: number;\n direction: 'clockwise' | 'counter-clockwise';\n power?: EffectPower;\n initialScale?: number;\n};\nexport type BounceIn = BaseDataItemLike<'BounceIn'> & {\n direction: EffectFourDirections | 'center';\n power?: EffectPower;\n distanceFactor?: number;\n};\nexport type PunchIn = BaseDataItemLike<'PunchIn'> & {\n direction: EffectFourCorners | 'center';\n power?: EffectPower;\n};\nexport type GlideIn = BaseDataItemLike<'GlideIn'> & {\n direction: number;\n distance: UnitLengthPercentage;\n power?: EffectPower;\n startFromOffScreen?: boolean;\n};\nexport type GlitchIn = BaseDataItemLike<'GlitchIn'> & {\n direction: number;\n distance: UnitLengthPercentage;\n power?: EffectPower;\n startFromOffScreen?: boolean;\n};\nexport type TurnIn = BaseDataItemLike<'TurnIn'> & {\n direction: EffectFourCorners;\n power?: EffectPower;\n};\nexport type CircleIn = BaseDataItemLike<'CircleIn'> & {\n direction: EffectTwoSides;\n};\nexport type WinkIn = BaseDataItemLike<'WinkIn'> & {\n direction: 'vertical' | 'horizontal';\n};\nexport type TiltIn = BaseDataItemLike<'TiltIn'> & {\n direction: EffectTwoSides;\n};\nexport type ShapeIn = BaseDataItemLike<'ShapeIn'> & {\n shape: 'circle' | 'ellipse' | 'rectangle' | 'diamond' | 'window';\n direction: EffectEightDirections | 'center';\n};\n\nexport type ShuttersIn = BaseDataItemLike<'ShuttersIn'> & {\n direction: EffectFourDirections;\n shutters: number;\n staggered: boolean;\n power?: EffectPower;\n};\nexport type GrowIn = BaseDataItemLike<'GrowIn'> & {\n direction: number;\n distance: UnitLengthPercentage;\n power?: EffectPower;\n initialScale?: number;\n};\nexport type RevealIn = BaseDataItemLike<'RevealIn'> & {\n direction: EffectFourDirections;\n};\nexport type BlurIn = BaseDataItemLike<'BlurIn'> & {\n blur?: number;\n power?: EffectPower;\n};\n\nexport type AnimationOptionsTypes = {\n time: TimeAnimationOptions & AnimationExtraOptions;\n scrub: ScrubAnimationOptions & AnimationExtraOptions;\n};\n\nexport type AnimationEffectAPI<Enum extends keyof AnimationOptionsTypes> = {\n web: (\n animationOptions: AnimationOptionsTypes[Enum],\n dom?: DomApi,\n options?: Record<string, any>,\n ) => AnimationData[];\n getNames: (animationOptions: AnimationOptionsTypes[Enum]) => string[];\n style?: (options: AnimationOptionsTypes[Enum]) => AnimationData[];\n prepare?: (options: AnimationOptionsTypes[Enum], dom?: DomApi) => void;\n};\n\nexport type WebAnimationEffectFactory<\n Enum extends keyof AnimationOptionsTypes,\n> = (\n animationOptions: AnimationOptionsTypes[Enum],\n dom?: DomApi,\n options?: Record<string, any>,\n) => AnimationData[];\n\nexport type EntranceAnimation =\n | FadeIn\n | ArcIn\n | CurveIn\n | DropIn\n | ExpandIn\n | FlipIn\n | FloatIn\n | FoldIn\n | SlideIn\n | SpinIn\n | BounceIn\n | PunchIn\n | GlideIn\n | GlitchIn\n | TurnIn\n | CircleIn\n | WinkIn\n | TiltIn\n | ShapeIn\n | ShuttersIn\n | GrowIn\n | RevealIn\n | BlurIn;\nexport type EntranceAnimations = Record<\n EntranceAnimation['type'],\n AnimationEffectAPI<'time'>\n>;\n\nexport type Breathe = BaseDataItemLike<'Breathe'> & {\n direction: 'vertical' | 'horizontal' | 'center';\n distance: UnitLengthPercentage;\n};\nexport type Pulse = BaseDataItemLike<'Pulse'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Spin = BaseDataItemLike<'Spin'> & {\n direction: 'clockwise' | 'counter-clockwise';\n power?: EffectPower;\n};\nexport type Poke = BaseDataItemLike<'Poke'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n intensity?: number;\n};\nexport type Flash = BaseDataItemLike<'Flash'>;\nexport type Swing = BaseDataItemLike<'Swing'> & {\n power?: EffectPower;\n swing?: number;\n direction?: EffectFourDirections;\n};\nexport type Flip = BaseDataItemLike<'Flip'> & {\n direction: 'vertical' | 'horizontal';\n power?: EffectPower;\n};\nexport type Rubber = BaseDataItemLike<'Rubber'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Fold = BaseDataItemLike<'Fold'> & {\n direction: EffectFourDirections;\n power?: EffectPower;\n angle?: number;\n};\nexport type Jello = BaseDataItemLike<'Jello'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Wiggle = BaseDataItemLike<'Wiggle'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Bounce = BaseDataItemLike<'Bounce'> & {\n power?: EffectPower;\n intensity?: number;\n};\nexport type Cross = BaseDataItemLike<'Cross'> & {\n direction: EffectEightDirections;\n};\nexport type DVD = BaseDataItemLike<'DVD'> & {\n power?: EffectPower;\n};\n\nexport type Blink = BaseDataItemLike<'Blink'> & {\n power?: EffectPower;\n scale?: number;\n distance?: UnitLengthPercentage;\n};\n\nexport type OngoingAnimation =\n | Breathe\n | Blink\n | Pulse\n | Spin\n | Poke\n | Flash\n | Swing\n | Flip\n | Rubber\n | Fold\n | Jello\n | Wiggle\n | Bounce\n | Cross\n | DVD;\nexport type OngoingAnimations = Record<\n OngoingAnimation['type'],\n AnimationEffectAPI<'time'>\n>;\n\nexport type ArcScroll = BaseDataItemLike<'ArcScroll'> & {\n direction: 'vertical' | 'horizontal';\n range?: EffectScrollRange;\n};\nexport type BlurScroll = BaseDataItemLike<'BlurScroll'> & {\n power?: EffectPower;\n range?: EffectScrollRange;\n blur?: number;\n};\nexport type FadeScroll = BaseDataItemLike<'FadeScroll'> & {\n range: EffectScrollRange;\n opacity: number;\n};\nexport type FlipScroll = BaseDataItemLike<'FlipScroll'> & {\n direction: 'vertical' | 'horizontal';\n power?: EffectPower;\n range?: EffectScrollRange;\n rotate?: number;\n};\nexport type GrowScroll = BaseDataItemLike<'GrowScroll'> & {\n direction: EffectNineDirections;\n power?: EffectPower;\n range?: EffectScrollRange;\n scale?: number;\n speed?: number;\n};\nexport type MoveScroll = BaseDataItemLike<'MoveScroll'> & {\n angle: number;\n power?: EffectPower;\n range?: EffectScrollRange;\n distance?: UnitLengthPercentage;\n};\nexport type PanScroll = BaseDataItemLike<'PanScroll'> & {\n direction: EffectTwoSides;\n distance: UnitLengthPercentage;\n startFromOffScreen: boolean;\n range?: EffectScrollRange;\n};\nexport type ParallaxScroll = BaseDataItemLike<'ParallaxScroll'> & {\n speed: number;\n range?: EffectScrollRange;\n};\nexport type RevealScroll = BaseDataItemLike<'RevealScroll'> & {\n direction: EffectFourDirections;\n range?: EffectScrollRange;\n};\nexport type ShapeScroll = BaseDataItemLike<'ShapeScroll'> & {\n shape: 'circle' | 'ellipse' | 'rectangle' | 'diamond' | 'window';\n range?: EffectScrollRange;\n power?: EffectPower;\n intensity?: number;\n};\nexport type ShrinkScroll = BaseDataItemLike<'ShrinkScroll'> & {\n direction: EffectNineDirections;\n power?: EffectPower;\n range?: EffectScrollRange;\n scale?: number;\n speed?: number;\n};\nexport type ShuttersScroll = BaseDataItemLike<'ShuttersScroll'> & {\n direction: EffectFourDirections;\n shutters: number;\n staggered: boolean;\n range?: EffectScrollRange;\n};\nexport type SkewPanScroll = BaseDataItemLike<'SkewPanScroll'> & {\n direction: EffectTwoSides;\n range?: EffectScrollRange;\n power?: EffectPower;\n skew?: number;\n};\nexport type SlideScroll = BaseDataItemLike<'SlideScroll'> & {\n direction: EffectFourDirections;\n range?: EffectScrollRange;\n};\nexport type Spin3dScroll = BaseDataItemLike<'Spin3dScroll'> & {\n range?: EffectScrollRange;\n power?: EffectPower;\n rotate?: number;\n speed?: number;\n};\nexport type SpinScroll = BaseDataItemLike<'SpinScroll'> & {\n direction: 'clockwise' | 'counter-clockwise';\n spins: number;\n range?: EffectScrollRange;\n power?: EffectPower;\n scale?: number;\n};\nexport type StretchScroll = BaseDataItemLike<'StretchScroll'> & {\n power?: EffectPower;\n range?: EffectScrollRange;\n stretch?: number;\n};\nexport type TiltScroll = BaseDataItemLike<'TiltScroll'> & {\n direction: EffectTwoSides;\n range?: EffectScrollRange;\n power?: EffectPower;\n distance?: number;\n};\nexport type TurnScroll = BaseDataItemLike<'TurnScroll'> & {\n direction: EffectTwoSides;\n spin: 'clockwise' | 'counter-clockwise';\n range?: EffectScrollRange;\n power?: EffectPower;\n scale?: number;\n};\n\nexport type ScrollAnimation =\n | ArcScroll\n | BlurScroll\n | FadeScroll\n | FlipScroll\n | GrowScroll\n | MoveScroll\n | PanScroll\n | ParallaxScroll\n | RevealScroll\n | ShapeScroll\n | ShuttersScroll\n | ShrinkScroll\n | SkewPanScroll\n | SlideScroll\n | Spin3dScroll\n | SpinScroll\n | StretchScroll\n | TiltScroll\n | TurnScroll;\nexport type ScrollAnimations = Record<\n ScrollAnimation['type'],\n WebAnimationEffectFactory<'scrub'>\n>;\n\nexport type BgCloseUp = BaseDataItemLike<'BgCloseUp'> & {\n scale?: number;\n};\nexport type BgFade = BaseDataItemLike<'BgFade'> & {\n range: 'in' | 'out';\n};\nexport type BgFadeBack = BaseDataItemLike<'BgFadeBack'> & {\n scale?: number;\n};\nexport type BgFake3D = BaseDataItemLike<'BgFake3D'> & {\n stretch?: number;\n zoom?: number;\n};\nexport type BgPan = BaseDataItemLike<'BgPan'> & {\n direction: 'left' | 'right';\n speed?: number;\n};\nexport type BgParallax = BaseDataItemLike<'BgParallax'> & {\n speed?: number;\n};\nexport type BgPullBack = BaseDataItemLike<'BgPullBack'> & {\n scale?: number;\n};\nexport type BgReveal = BaseDataItemLike<'BgReveal'>;\nexport type BgRotate = BaseDataItemLike<'BgRotate'> & {\n direction?: 'ccw' | 'cw';\n angle?: number;\n};\nexport type BgSkew = BaseDataItemLike<'BgSkew'> & {\n direction?: 'ccw' | 'cw';\n angle?: number;\n};\nexport type BgZoom = BaseDataItemLike<'BgZoom'> & {\n direction: 'in' | 'out';\n zoom?: number;\n};\nexport type ImageParallax = BaseDataItemLike<'ImageParallax'> & {\n reverse?: boolean;\n speed?: number;\n isPage?: boolean;\n};\n\nexport type BackgroundScrollAnimation =\n | BgCloseUp\n | BgFade\n | BgFadeBack\n | BgFake3D\n | BgPan\n | BgParallax\n | BgPullBack\n | BgReveal\n | BgRotate\n | BgSkew\n | BgZoom\n | ImageParallax;\n\nexport type BackgroundScrollAnimations = Record<\n BackgroundScrollAnimation['type'],\n WebAnimationEffectFactory<'scrub'>\n>;\n\ntype MouseEffectBase = {\n inverted?: boolean;\n};\n\ntype MouseEffectAxis = 'both' | 'horizontal' | 'vertical';\n\nexport type MousePivotAxis =\n | 'top'\n | 'bottom'\n | 'right'\n | 'left'\n | 'center-horizontal'\n | 'center-vertical';\n\nexport type AiryMouse = BaseDataItemLike<'AiryMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n angle?: number;\n power?: EffectPower;\n };\nexport type BlobMouse = BaseDataItemLike<'BlobMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n scale?: number;\n power?: EffectPower;\n };\nexport type BlurMouse = BaseDataItemLike<'BlurMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n angle?: number;\n scale?: number;\n blur?: number;\n perspective?: number;\n power?: EffectPower;\n };\nexport type BounceMouse = BaseDataItemLike<'BounceMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\nexport type ScaleMouse = BaseDataItemLike<'ScaleMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n scale?: number;\n power?: EffectPower;\n scaleDirection: EffectScaleDirection;\n };\nexport type SkewMouse = BaseDataItemLike<'SkewMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n angle?: number;\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\nexport type SpinMouse = BaseDataItemLike<'SpinMouse'> &\n MouseEffectBase & {\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\nexport type SwivelMouse = BaseDataItemLike<'SwivelMouse'> &\n MouseEffectBase & {\n angle?: number;\n perspective?: number;\n pivotAxis?: MousePivotAxis;\n power?: EffectPower;\n };\nexport type Tilt3DMouse = BaseDataItemLike<'Tilt3DMouse'> &\n MouseEffectBase & {\n angle?: number;\n perspective?: number;\n power?: EffectPower;\n };\nexport type Track3DMouse = BaseDataItemLike<'Track3DMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n angle?: number;\n axis?: MouseEffectAxis;\n perspective?: number;\n power?: EffectPower;\n };\nexport type TrackMouse = BaseDataItemLike<'TrackMouse'> &\n MouseEffectBase & {\n distance?: UnitLengthPercentage;\n axis?: MouseEffectAxis;\n power?: EffectPower;\n };\n\nexport type CustomMouse = BaseDataItemLike<'CustomMouse'>;\n\nexport type Progress = {\n x: number;\n y: number;\n v?: { x: number; y: number };\n active?: boolean;\n};\nexport interface MouseAnimationInstance {\n target: HTMLElement;\n play: () => void;\n progress: (progress: Progress) => void;\n cancel: () => void;\n}\n\nexport interface CustomMouseAnimationInstance extends MouseAnimationInstance {\n getProgress: () => Progress;\n}\n\nexport type MouseAnimationFactory = (\n element: HTMLElement,\n) => MouseAnimationInstance;\n\nexport type MouseAnimationFactoryCreate = (\n options: ScrubAnimationOptions,\n dom?: DomApi,\n) => MouseAnimationFactory;\n\nexport type MouseAnimation =\n | AiryMouse\n | BlobMouse\n | BlurMouse\n | BounceMouse\n | CustomMouse\n | ScaleMouse\n | SkewMouse\n | SpinMouse\n | SwivelMouse\n | Tilt3DMouse\n | Track3DMouse\n | TrackMouse;\nexport type MouseAnimations = Record<\n MouseAnimation['type'],\n MouseAnimationFactoryCreate\n>;\n\nexport type NamedEffect =\n | EntranceAnimation\n | OngoingAnimation\n | ScrollAnimation\n | MouseAnimation\n | BackgroundScrollAnimation;\n\nexport type CustomEffect =\n | {\n ranges: { name: string; min: number; max: number; step?: number }[];\n }\n | ((element: Element | null, progress: number | null) => void);\n\nexport type AnimationExtraOptions = {\n effectId?: string;\n effect?: (\n progress: () => number | { x: number | undefined; y: number | undefined },\n ) => void;\n};\n\nexport type AnimationOptions = (TimeAnimationOptions | ScrubAnimationOptions) &\n AnimationExtraOptions;\n\nexport type MotionAnimationOptions<T extends keyof AnimationOptionsTypes> =\n AnimationOptionsTypes[T];\n\nexport type MeasureCallback = (\n fn: (target: HTMLElement | null) => void,\n) => void;\nexport type DomApi = { measure: MeasureCallback; mutate: MeasureCallback };\n\nexport type NamedEffectFunction = (\n options: AnimationOptions,\n domApi?: DomApi | undefined,\n config?: Record<string, any>,\n) => AnimationData[];\n\nexport type ScrubTransitionEasing =\n | 'linear'\n | 'hardBackOut'\n | 'easeOut'\n | 'elastic'\n | 'bounce';\n\nexport type RangeOffset = {\n name?:\n | 'entry'\n | 'exit'\n | 'contain'\n | 'cover'\n | 'entry-crossing'\n | 'exit-crossing';\n offset?: LengthPercentage;\n};\n\nexport type MotionKeyframeEffect = BaseDataItemLike<'KeyframeEffect'> & {\n name: string;\n keyframes: Keyframe[];\n};\n\nexport type TimeAnimationOptions = {\n id?: string;\n keyframeEffect?: MotionKeyframeEffect;\n namedEffect?: NamedEffect;\n customEffect?: CustomEffect;\n duration?: number;\n delay?: number;\n endDelay?: number;\n easing?: string;\n iterations?: number;\n alternate?: boolean;\n fill?: AnimationFillMode;\n reversed?: boolean;\n};\n\ntype ScrubAnimationDataBase = {\n id?: string;\n keyframeEffect?: MotionKeyframeEffect;\n namedEffect?: NamedEffect;\n customEffect?: CustomEffect;\n startOffset?: RangeOffset;\n endOffset?: RangeOffset;\n playbackRate?: number;\n easing?: string;\n iterations?: number;\n fill?: AnimationFillMode;\n alternate?: boolean;\n reversed?: boolean;\n transitionDuration?: number;\n transitionDelay?: number;\n transitionEasing?: ScrubTransitionEasing;\n centeredToTarget?: boolean;\n};\n\nexport type ScrubAnimationOptions = ScrubAnimationDataBase & {\n duration?: LengthPercentage;\n};\n\ntype AnimationDataExtra = {\n name?: string; // TODO: need to be added to all animations and then be made required\n keyframes: Record<string, string | number | undefined>[];\n custom?: Record<string, string | number | undefined>;\n composite?: CompositeOperation;\n part?: string;\n timing?: Partial<EffectTiming>;\n};\n\nexport type AnimationDataForScrub = ScrubAnimationDataBase & {\n duration?: LengthPercentage | number;\n startOffsetAdd?: string;\n endOffsetAdd?: string;\n};\n\nexport type AnimationData = (TimeAnimationOptions | AnimationDataForScrub) &\n AnimationDataExtra;\n\n// TODO: need it?\nexport type AnimationProperties = {\n groups?: string[];\n schema: { [key: string]: any };\n};\n\nexport type TriggerVariant = {\n id: string;\n trigger: 'view-progress' | 'pointer-move';\n componentId: string;\n};\n\nexport type AnimationGroupOptions = AnimationOptions & {\n trigger?: Partial<TriggerVariant> | undefined;\n startOffsetAdd?: string | undefined;\n endOffsetAdd?: string | undefined;\n measured?: Promise<void>;\n};\n\nexport type Shape = 'ellipse' | 'circle' | 'rectangle' | 'diamond' | 'window';\n\nexport interface ScrubScrollScene {\n start: RangeOffset;\n end: RangeOffset;\n viewSource: HTMLElement;\n ready: Promise<void>;\n getProgress(): number;\n effect(__: any, p: number): void;\n disabled: boolean;\n destroy(): void;\n groupId?: string;\n}\n\nexport interface ScrubPointerScene {\n target?: HTMLElement;\n centeredToTarget?: boolean;\n transitionDuration?: number;\n transitionEasing?: ScrubTransitionEasing;\n getProgress(): Progress;\n effect(p: Progress): void;\n disabled: boolean;\n destroy(): void;\n allowActiveEvent?: boolean;\n}\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { AnimationData, AnimationDataForScrub, AnimationOptions, MeasureCallback, RangeOffset, UnitLengthPercentage } from '../types';
1
+ import type { AnimationData, AnimationDataForScrub, AnimationOptions, MeasureCallback, RangeOffset, TriggerVariant, UnitLengthPercentage } from '../types';
2
2
  declare function getElement(id: string | null, ownerDocument?: Document): HTMLElement | null;
3
3
  declare function getElementMotionPart(element: Element | null, part: string): Element | null | undefined;
4
4
  declare function getDirection(effect: AnimationData): KeyframeEffectOptions['direction'];
@@ -12,7 +12,6 @@ declare function mutate(target: HTMLElement | null): MeasureCallback;
12
12
  declare function getNamedEffect(animation: AnimationOptions): import("../types").AnimationEffectAPI<"time"> | import("../types").WebAnimationEffectFactory<"scrub"> | import("../types").MouseAnimationFactoryCreate | ((animation_: AnimationOptions) => ({
13
13
  keyframes: never[];
14
14
  id?: string | undefined;
15
- type: "TimeAnimationOptions";
16
15
  keyframeEffect?: import("../types").MotionKeyframeEffect | undefined;
17
16
  namedEffect?: import("../types").NamedEffect | undefined;
18
17
  customEffect?: import("../types").CustomEffect | undefined;
@@ -32,7 +31,6 @@ declare function getNamedEffect(animation: AnimationOptions): import("../types")
32
31
  } | {
33
32
  keyframes: never[];
34
33
  id?: string | undefined;
35
- type: "ScrubAnimationOptions";
36
34
  keyframeEffect?: import("../types").MotionKeyframeEffect | undefined;
37
35
  namedEffect?: import("../types").NamedEffect | undefined;
38
36
  customEffect?: import("../types").CustomEffect | undefined;
@@ -59,7 +57,6 @@ declare function getNamedEffect(animation: AnimationOptions): import("../types")
59
57
  name: string;
60
58
  keyframes: Keyframe[];
61
59
  id?: string | undefined;
62
- type: "TimeAnimationOptions";
63
60
  keyframeEffect?: import("../types").MotionKeyframeEffect | undefined;
64
61
  namedEffect?: import("../types").NamedEffect | undefined;
65
62
  customEffect?: import("../types").CustomEffect | undefined;
@@ -80,7 +77,6 @@ declare function getNamedEffect(animation: AnimationOptions): import("../types")
80
77
  name: string;
81
78
  keyframes: Keyframe[];
82
79
  id?: string | undefined;
83
- type: "ScrubAnimationOptions";
84
80
  keyframeEffect?: import("../types").MotionKeyframeEffect | undefined;
85
81
  namedEffect?: import("../types").NamedEffect | undefined;
86
82
  customEffect?: import("../types").CustomEffect | undefined;
@@ -107,7 +103,6 @@ declare function getNamedEffect(animation: AnimationOptions): import("../types")
107
103
  name: string;
108
104
  keyframes: Keyframe[];
109
105
  id?: string | undefined;
110
- type: "TimeAnimationOptions";
111
106
  keyframeEffect?: import("../types").MotionKeyframeEffect | undefined;
112
107
  namedEffect?: import("../types").NamedEffect | undefined;
113
108
  customEffect?: import("../types").CustomEffect | undefined;
@@ -128,7 +123,6 @@ declare function getNamedEffect(animation: AnimationOptions): import("../types")
128
123
  name: string;
129
124
  keyframes: Keyframe[];
130
125
  id?: string | undefined;
131
- type: "ScrubAnimationOptions";
132
126
  keyframeEffect?: import("../types").MotionKeyframeEffect | undefined;
133
127
  namedEffect?: import("../types").NamedEffect | undefined;
134
128
  customEffect?: import("../types").CustomEffect | undefined;
@@ -153,7 +147,7 @@ declare function getNamedEffect(animation: AnimationOptions): import("../types")
153
147
  })[];
154
148
  getNames: (animation_: AnimationOptions) => string[];
155
149
  } | null | undefined;
156
- declare function getEffectsData(animations: AnimationData[], effectId?: string): {
150
+ declare function getEffectsData(animations: AnimationData[], trigger?: Partial<TriggerVariant>, effectId?: string): {
157
151
  effect: AnimationData;
158
152
  options: KeyframeEffectOptions & {
159
153
  rangeStart: string;
@@ -162,5 +156,6 @@ declare function getEffectsData(animations: AnimationData[], effectId?: string):
162
156
  id: string | undefined;
163
157
  part: string | undefined;
164
158
  }[];
165
- export { getElement, getElementMotionPart, getNamedEffect, getEffectsData, measure, mutate, getDirection, getLength, getRanges, };
159
+ declare function isNotAScrubTrigger(trigger?: Partial<TriggerVariant>): boolean;
160
+ export { isNotAScrubTrigger, getElement, getElementMotionPart, getNamedEffect, getEffectsData, measure, mutate, getDirection, getLength, getRanges, };
166
161
  //# sourceMappingURL=common.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/api/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAGhB,eAAe,EAGf,WAAW,EAGX,oBAAoB,EACrB,MAAM,UAAU,CAAC;AASlB,iBAAS,UAAU,CACjB,EAAE,EAAE,MAAM,GAAG,IAAI,EACjB,aAAa,CAAC,EAAE,QAAQ,GACvB,WAAW,GAAG,IAAI,CAEpB;AAED,iBAAS,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,8BAKlE;AAED,iBAAS,YAAY,CACnB,MAAM,EAAE,aAAa,GACpB,qBAAqB,CAAC,WAAW,CAAC,CAOpC;AAED,iBAAS,SAAS,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAEvD;AAkBD,iBAAS,SAAS,CAAC,MAAM,EAAE,qBAAqB;;;EAK/C;AAED,iBAAS,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,eAAe,CAE5D;AAED,iBAAS,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,eAAe,CAE3D;AAED,iBAAS,cAAc,CAAC,SAAS,EAAE,gBAAgB,0KAiC3B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAdR,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAhB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAKd,gBAAgB;qBAYjD;AAED,iBAAS,cAAc,CAAC,UAAU,EAAE,aAAa,EAAE,EAAE,QAAQ,CAAC,EAAE,MAAM;;;oBAUvB,MAAM;kBAAY,MAAM;;;;IA0BtE;AAED,OAAO,EACL,UAAU,EACV,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,OAAO,EACP,MAAM,EACN,YAAY,EACZ,SAAS,EACT,SAAS,GACV,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/api/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAGhB,eAAe,EAGf,WAAW,EAGX,cAAc,EACd,oBAAoB,EACrB,MAAM,UAAU,CAAC;AASlB,iBAAS,UAAU,CACjB,EAAE,EAAE,MAAM,GAAG,IAAI,EACjB,aAAa,CAAC,EAAE,QAAQ,GACvB,WAAW,GAAG,IAAI,CAEpB;AAED,iBAAS,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,IAAI,EAAE,MAAM,8BAKlE;AAED,iBAAS,YAAY,CACnB,MAAM,EAAE,aAAa,GACpB,qBAAqB,CAAC,WAAW,CAAC,CAOpC;AAED,iBAAS,SAAS,CAAC,MAAM,EAAE,oBAAoB,GAAG,MAAM,CAEvD;AAkBD,iBAAS,SAAS,CAAC,MAAM,EAAE,qBAAqB;;;EAK/C;AAED,iBAAS,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,eAAe,CAE5D;AAED,iBAAS,MAAM,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,eAAe,CAE3D;AAED,iBAAS,cAAc,CAAC,SAAS,EAAE,gBAAgB,0KAiC3B,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAdR,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAAhB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAKd,gBAAgB;qBAYjD;AAED,iBAAS,cAAc,CACrB,UAAU,EAAE,aAAa,EAAE,EAC3B,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,EACjC,QAAQ,CAAC,EAAE,MAAM;;;oBAW4B,MAAM;kBAAY,MAAM;;;;IA0BtE;AAED,iBAAS,kBAAkB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,WAK5D;AAED,OAAO,EACL,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,OAAO,EACP,MAAM,EACN,YAAY,EACZ,SAAS,EACT,SAAS,GACV,CAAC"}
@@ -5,7 +5,7 @@ declare function getAnimationAsCSS(data: {
5
5
  id: string | undefined;
6
6
  part: string | undefined;
7
7
  }, isRunning?: boolean): string;
8
- declare function getCSSAnimationEffect(preset: AnimationEffectAPI<any> | null, animation: AnimationOptions): AnimationData[];
8
+ declare function getCSSAnimationEffect(preset: AnimationEffectAPI<any> | null, animation: AnimationOptions, trigger?: Partial<TriggerVariant>): AnimationData[];
9
9
  declare function getCSSAnimation(target: string | null, animationOptions: AnimationOptions, trigger?: TriggerVariant): {
10
10
  target: string;
11
11
  animation: string;
@@ -1 +1 @@
1
- {"version":3,"file":"cssAnimations.d.ts","sourceRoot":"","sources":["../../../src/api/cssAnimations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACf,MAAM,UAAU,CAAC;AASlB,iBAAS,iBAAiB,CACxB,IAAI,EAAE;IACJ,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,EACD,SAAS,CAAC,EAAE,OAAO,UAoBpB;AAED,iBAAS,qBAAqB,CAC5B,MAAM,EAAE,kBAAkB,CAAC,GAAG,CAAC,GAAG,IAAI,EACtC,SAAS,EAAE,gBAAgB,GAC1B,aAAa,EAAE,CAWjB;AAED,iBAAS,eAAe,CACtB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;IA4BzB;AAED,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"cssAnimations.d.ts","sourceRoot":"","sources":["../../../src/api/cssAnimations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EAEb,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACf,MAAM,UAAU,CAAC;AAclB,iBAAS,iBAAiB,CACxB,IAAI,EAAE;IACJ,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,qBAAqB,CAAC;IAC/B,EAAE,EAAE,MAAM,GAAG,SAAS,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1B,EACD,SAAS,CAAC,EAAE,OAAO,UAoBpB;AAED,iBAAS,qBAAqB,CAC5B,MAAM,EAAE,kBAAkB,CAAC,GAAG,CAAC,GAAG,IAAI,EACtC,SAAS,EAAE,gBAAgB,EAC3B,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAChC,aAAa,EAAE,CAWjB;AAED,iBAAS,eAAe,CACtB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;IAgCzB;AAED,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"webAnimations.d.ts","sourceRoot":"","sources":["../../../src/api/webAnimations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,gBAAgB,EAEhB,sBAAsB,EAEtB,cAAc,EAEf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA6CnD,iBAAS,eAAe,CACtB,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,EAC7D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,aAAa,CAAC,EAAE,QAAQ,GACvB,cAAc,GAAG,sBAAsB,CA8IzC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
1
+ {"version":3,"file":"webAnimations.d.ts","sourceRoot":"","sources":["../../../src/api/webAnimations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,gBAAgB,EAEhB,sBAAsB,EAEtB,cAAc,EAEf,MAAM,UAAU,CAAC;AAElB,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA+CnD,iBAAS,eAAe,CACtB,MAAM,EAAE,WAAW,GAAG,MAAM,GAAG,IAAI,EACnC,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,WAAW,CAAA;CAAE,EAC7D,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,aAAa,CAAC,EAAE,QAAQ,GACvB,cAAc,GAAG,sBAAsB,CAoJzC;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
@@ -10,7 +10,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
10
10
  opacity: number;
11
11
  }[];
12
12
  id?: string | undefined;
13
- type: "ScrubAnimationOptions";
14
13
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
15
14
  namedEffect?: import("../../types").NamedEffect | undefined;
16
15
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -34,7 +33,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
34
33
  transform: string;
35
34
  }[];
36
35
  id?: string | undefined;
37
- type: "ScrubAnimationOptions";
38
36
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
39
37
  namedEffect?: import("../../types").NamedEffect | undefined;
40
38
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgCloseUp.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgCloseUp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8D1E"}
1
+ {"version":3,"file":"BgCloseUp.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgCloseUp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8D1E"}
@@ -10,7 +10,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): {
10
10
  opacity: number;
11
11
  }[];
12
12
  id?: string | undefined;
13
- type: "ScrubAnimationOptions";
14
13
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
15
14
  namedEffect?: import("../../types").NamedEffect | undefined;
16
15
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgFade.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgFade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;IAyC1E"}
1
+ {"version":3,"file":"BgFade.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgFade.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAMrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAyC1E"}
@@ -10,7 +10,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
10
10
  opacity: number;
11
11
  }[];
12
12
  id?: string | undefined;
13
- type: "ScrubAnimationOptions";
14
13
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
15
14
  namedEffect?: import("../../types").NamedEffect | undefined;
16
15
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -35,7 +34,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
35
34
  scale: number;
36
35
  }[];
37
36
  id?: string | undefined;
38
- type: "ScrubAnimationOptions";
39
37
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
40
38
  namedEffect?: import("../../types").NamedEffect | undefined;
41
39
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgFadeBack.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgFadeBack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6D1E"}
1
+ {"version":3,"file":"BgFadeBack.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgFadeBack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA6D1E"}
@@ -9,7 +9,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
9
9
  transform: string;
10
10
  }[];
11
11
  id?: string | undefined;
12
- type: "ScrubAnimationOptions";
13
12
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
14
13
  namedEffect?: import("../../types").NamedEffect | undefined;
15
14
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -34,7 +33,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
34
33
  transform: string;
35
34
  }[];
36
35
  id?: string | undefined;
37
- type: "ScrubAnimationOptions";
38
36
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
39
37
  namedEffect?: import("../../types").NamedEffect | undefined;
40
38
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgFake3D.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgFake3D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,qBAAqB,EACrB,MAAM,EACP,MAAM,aAAa,CAAC;AAKrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2F1E"}
1
+ {"version":3,"file":"BgFake3D.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgFake3D.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,qBAAqB,EACrB,MAAM,EACP,MAAM,aAAa,CAAC;AAKrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA2F1E"}
@@ -8,7 +8,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): {
8
8
  transform: string;
9
9
  }[];
10
10
  id?: string | undefined;
11
- type: "ScrubAnimationOptions";
12
11
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
13
12
  namedEffect?: import("../../types").NamedEffect | undefined;
14
13
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgPan.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgPan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAuC1E"}
1
+ {"version":3,"file":"BgPan.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgPan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;IAuC1E"}
@@ -8,7 +8,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): {
8
8
  transform: string;
9
9
  }[];
10
10
  id?: string | undefined;
11
- type: "ScrubAnimationOptions";
12
11
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
13
12
  namedEffect?: import("../../types").NamedEffect | undefined;
14
13
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgParallax.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgParallax.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,qBAAqB,EACrB,MAAM,EACP,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAiC1E"}
1
+ {"version":3,"file":"BgParallax.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgParallax.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,qBAAqB,EACrB,MAAM,EACP,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;IAiC1E"}
@@ -9,7 +9,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): {
9
9
  transform: string;
10
10
  }[];
11
11
  id?: string | undefined;
12
- type: "ScrubAnimationOptions";
13
12
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
14
13
  namedEffect?: import("../../types").NamedEffect | undefined;
15
14
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgPullBack.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgPullBack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAqC1E"}
1
+ {"version":3,"file":"BgPullBack.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgPullBack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;IAqC1E"}
@@ -9,7 +9,6 @@ export default function create(options: ScrubAnimationOptions): {
9
9
  transform: string;
10
10
  }[];
11
11
  id?: string | undefined;
12
- type: "ScrubAnimationOptions";
13
12
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
14
13
  namedEffect?: import("../../types").NamedEffect | undefined;
15
14
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgRotate.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgRotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,WAAW,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEhF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;IA+B5D"}
1
+ {"version":3,"file":"BgRotate.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgRotate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAY,WAAW,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAEhF,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;IA+B5D"}
@@ -8,7 +8,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): {
8
8
  transform: string;
9
9
  }[];
10
10
  id?: string | undefined;
11
- type: "ScrubAnimationOptions";
12
11
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
13
12
  namedEffect?: import("../../types").NamedEffect | undefined;
14
13
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgSkew.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgSkew.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAsC1E"}
1
+ {"version":3,"file":"BgSkew.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgSkew.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;IAsC1E"}
@@ -8,7 +8,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
8
8
  transform: string;
9
9
  }[];
10
10
  id?: string | undefined;
11
- type: "ScrubAnimationOptions";
12
11
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
13
12
  namedEffect?: import("../../types").NamedEffect | undefined;
14
13
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -32,7 +31,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
32
31
  transform: string;
33
32
  }[];
34
33
  id?: string | undefined;
35
- type: "ScrubAnimationOptions";
36
34
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
37
35
  namedEffect?: import("../../types").NamedEffect | undefined;
38
36
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -57,7 +55,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): ({
57
55
  transform: string;
58
56
  }[];
59
57
  id?: string | undefined;
60
- type: "ScrubAnimationOptions";
61
58
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
62
59
  namedEffect?: import("../../types").NamedEffect | undefined;
63
60
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BgZoom.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgZoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,qBAAqB,EACrB,MAAM,EACP,MAAM,aAAa,CAAC;AAkBrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqG1E"}
1
+ {"version":3,"file":"BgZoom.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/BgZoom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,WAAW,EACX,qBAAqB,EACrB,MAAM,EACP,MAAM,aAAa,CAAC;AAkBrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqG1E"}
@@ -8,7 +8,6 @@ export default function create(options: ScrubAnimationOptions, dom?: DomApi): {
8
8
  transform: string;
9
9
  }[];
10
10
  id?: string | undefined;
11
- type: "ScrubAnimationOptions";
12
11
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
13
12
  namedEffect?: import("../../types").NamedEffect | undefined;
14
13
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ImageParallax.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/ImageParallax.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;IAoD1E"}
1
+ {"version":3,"file":"ImageParallax.d.ts","sourceRoot":"","sources":["../../../../src/library/backgroundScroll/ImageParallax.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,MAAM,EAEN,WAAW,EACX,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,OAAO,EAAE,qBAAqB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;IAoD1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../../../../src/library/backgroundScroll/test/testUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,eAAO,MAAM,eAAe,EAAE,qBAG7B,CAAC"}
1
+ {"version":3,"file":"testUtils.d.ts","sourceRoot":"","sources":["../../../../../src/library/backgroundScroll/test/testUtils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AAE5D,eAAO,MAAM,eAAe,EAAE,qBAE7B,CAAC"}
@@ -12,7 +12,6 @@ export declare function web(options: TimeAnimationOptions, dom?: DomApi): ({
12
12
  offset?: undefined;
13
13
  })[];
14
14
  id?: string | undefined;
15
- type: "TimeAnimationOptions";
16
15
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
17
16
  namedEffect?: import("../../types").NamedEffect | undefined;
18
17
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -38,7 +37,6 @@ export declare function web(options: TimeAnimationOptions, dom?: DomApi): ({
38
37
  offset?: undefined;
39
38
  })[];
40
39
  id?: string | undefined;
41
- type: "TimeAnimationOptions";
42
40
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
43
41
  namedEffect?: import("../../types").NamedEffect | undefined;
44
42
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -64,7 +62,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
64
62
  offset?: undefined;
65
63
  })[];
66
64
  id?: string | undefined;
67
- type: "TimeAnimationOptions";
68
65
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
69
66
  namedEffect?: import("../../types").NamedEffect | undefined;
70
67
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -90,7 +87,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
90
87
  offset?: undefined;
91
88
  })[];
92
89
  id?: string | undefined;
93
- type: "TimeAnimationOptions";
94
90
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
95
91
  namedEffect?: import("../../types").NamedEffect | undefined;
96
92
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"ArcIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/ArcIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EAEpB,MAAM,EACP,MAAM,aAAa,CAAC;AAoBrB,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAI9D;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgEjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM,QAmB5D"}
1
+ {"version":3,"file":"ArcIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/ArcIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EAEpB,MAAM,EACP,MAAM,aAAa,CAAC;AAoBrB,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAI9D;AAED,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAgEjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM,QAmB5D"}
@@ -13,7 +13,6 @@ export declare function web(options: TimeAnimationOptions): ({
13
13
  offset?: undefined;
14
14
  })[];
15
15
  id?: string | undefined;
16
- type: "TimeAnimationOptions";
17
16
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
18
17
  namedEffect?: import("../../types").NamedEffect | undefined;
19
18
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -34,7 +33,6 @@ export declare function web(options: TimeAnimationOptions): ({
34
33
  filter: string;
35
34
  }[];
36
35
  id?: string | undefined;
37
- type: "TimeAnimationOptions";
38
36
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
39
37
  namedEffect?: import("../../types").NamedEffect | undefined;
40
38
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -59,7 +57,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
59
57
  offset?: undefined;
60
58
  })[];
61
59
  id?: string | undefined;
62
- type: "TimeAnimationOptions";
63
60
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
64
61
  namedEffect?: import("../../types").NamedEffect | undefined;
65
62
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -80,7 +77,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
80
77
  filter: string;
81
78
  }[];
82
79
  id?: string | undefined;
83
- type: "TimeAnimationOptions";
84
80
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
85
81
  namedEffect?: import("../../types").NamedEffect | undefined;
86
82
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BlurIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/BlurIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAShE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEhD;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCjE"}
1
+ {"version":3,"file":"BlurIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/BlurIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAU,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAShE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEhD;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAwCjE"}
@@ -13,7 +13,6 @@ export declare function web(options: TimeAnimationOptions): ({
13
13
  offset?: undefined;
14
14
  })[];
15
15
  id?: string | undefined;
16
- type: "TimeAnimationOptions";
17
16
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
18
17
  namedEffect?: import("../../types").NamedEffect | undefined;
19
18
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -44,7 +43,6 @@ export declare function web(options: TimeAnimationOptions): ({
44
43
  transform: string;
45
44
  })[];
46
45
  id?: string | undefined;
47
- type: "TimeAnimationOptions";
48
46
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
49
47
  namedEffect?: import("../../types").NamedEffect | undefined;
50
48
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -69,7 +67,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
69
67
  offset?: undefined;
70
68
  })[];
71
69
  id?: string | undefined;
72
- type: "TimeAnimationOptions";
73
70
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
74
71
  namedEffect?: import("../../types").NamedEffect | undefined;
75
72
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -100,7 +97,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
100
97
  transform: string;
101
98
  })[];
102
99
  id?: string | undefined;
103
- type: "TimeAnimationOptions";
104
100
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
105
101
  namedEffect?: import("../../types").NamedEffect | undefined;
106
102
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"BounceIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/BounceIn.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAY,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AA8BD,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEhD;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EjE"}
1
+ {"version":3,"file":"BounceIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/BounceIn.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAY,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAElE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AA8BD,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEhD;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA8EjE"}
@@ -14,7 +14,6 @@ export declare function web(options: TimeAnimationOptions, dom?: DomApi): ({
14
14
  offset?: undefined;
15
15
  })[];
16
16
  id?: string | undefined;
17
- type: "TimeAnimationOptions";
18
17
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
19
18
  namedEffect?: import("../../types").NamedEffect | undefined;
20
19
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -49,7 +48,6 @@ export declare function web(options: TimeAnimationOptions, dom?: DomApi): ({
49
48
  easing?: undefined;
50
49
  })[];
51
50
  id?: string | undefined;
52
- type: "TimeAnimationOptions";
53
51
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
54
52
  namedEffect?: import("../../types").NamedEffect | undefined;
55
53
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -75,7 +73,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
75
73
  offset?: undefined;
76
74
  })[];
77
75
  id?: string | undefined;
78
- type: "TimeAnimationOptions";
79
76
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
80
77
  namedEffect?: import("../../types").NamedEffect | undefined;
81
78
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -110,7 +107,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): (
110
107
  easing?: undefined;
111
108
  })[];
112
109
  id?: string | undefined;
113
- type: "TimeAnimationOptions";
114
110
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
115
111
  namedEffect?: import("../../types").NamedEffect | undefined;
116
112
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"CircleIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/CircleIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAY,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1E,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AAID,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAI9D;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiEjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM,QAgB5D"}
1
+ {"version":3,"file":"CircleIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/CircleIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAY,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1E,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AAID,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAI9D;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiEjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM,QAgB5D"}
@@ -24,7 +24,6 @@ export declare function web(options: TimeAnimationOptions, dom?: DomApi): {
24
24
  easing?: undefined;
25
25
  })[];
26
26
  id?: string | undefined;
27
- type: "TimeAnimationOptions";
28
27
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
29
28
  namedEffect?: import("../../types").NamedEffect | undefined;
30
29
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -60,7 +59,6 @@ export declare function style(options: TimeAnimationOptions, asWeb?: boolean): {
60
59
  easing?: undefined;
61
60
  })[];
62
61
  id?: string | undefined;
63
- type: "TimeAnimationOptions";
64
62
  keyframeEffect?: import("../../types").MotionKeyframeEffect | undefined;
65
63
  namedEffect?: import("../../types").NamedEffect | undefined;
66
64
  customEffect?: import("../../types").CustomEffect | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"CurveIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/CurveIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,oBAAoB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGzE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AASD,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI9D;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM,QAgB5D"}
1
+ {"version":3,"file":"CurveIn.d.ts","sourceRoot":"","sources":["../../../../src/library/entrance/CurveIn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAW,oBAAoB,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAGzE,wBAAgB,QAAQ,CAAC,CAAC,EAAE,oBAAoB,YAE/C;AASD,wBAAgB,GAAG,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI9D;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,oBAAoB,EAAE,KAAK,UAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4CjE;AAED,wBAAgB,OAAO,CAAC,CAAC,EAAE,oBAAoB,EAAE,GAAG,CAAC,EAAE,MAAM,QAgB5D"}