Skip to content

Commit

Permalink
v0.2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Oct 12, 2022
1 parent 84bf2fb commit a7653b8
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 30 deletions.
4 changes: 2 additions & 2 deletions bundled/lenis.js

Large diffs are not rendered by default.

28 changes: 5 additions & 23 deletions dist/lenis.d.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,12 @@
export default class Lenis {
/**
* @typedef {(t: number) => number} EasingFunction
* @typedef {'vertical' | 'horizontal'} Direction
* @typedef {'vertical' | 'horizontal' | 'both'} GestureDirection
*
* @typedef LenisOptions
* @property {number} [duration]
* @property {EasingFunction} [easing]
* @property {boolean} [smooth]
* @property {boolean} [smoothTouch]
* @property {number} [touchMultiplier]
* @property {Direction} [direction]
* @property {GestureDirection} [gestureDirection]
* @property {Window | HTMLElement} [wrapper]
* @property {HTMLElement} [content]
*
* @param {LenisOptions}
*/
constructor({ duration, easing, smooth, smoothTouch, touchMultiplier, direction, gestureDirection, wrapper, content, }?: {
duration?: number;
easing?: (t: number) => number;
smooth?: boolean;
smoothTouch?: boolean;
touchMultiplier?: number;
direction?: "vertical" | "horizontal";
gestureDirection?: "vertical" | "horizontal" | "both";
gestureDirection?: "both" | "vertical" | "horizontal";
wrapper?: Window | HTMLElement;
content?: HTMLElement;
});
Expand All @@ -35,8 +17,8 @@ export default class Lenis {
smoothTouch: boolean;
touchMultiplier: number;
direction: "vertical" | "horizontal";
gestureDirection: "vertical" | "horizontal" | "both";
wrapper: Window | HTMLElement;
gestureDirection: "both" | "vertical" | "horizontal";
wrapper: HTMLElement | Window;
content: HTMLElement;
};
duration: number;
Expand All @@ -45,8 +27,8 @@ export default class Lenis {
smoothTouch: boolean;
touchMultiplier: number;
direction: "vertical" | "horizontal";
gestureDirection: "vertical" | "horizontal" | "both";
wrapperNode: Window | HTMLElement;
gestureDirection: "both" | "vertical" | "horizontal";
wrapperNode: HTMLElement | Window;
contentNode: HTMLElement;
wrapperHeight: any;
wrapperWidth: any;
Expand Down
2 changes: 1 addition & 1 deletion dist/lenis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

2 comments on commit a7653b8

@vercel
Copy link

@vercel vercel bot commented on a7653b8 Oct 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"⚡️ Lighthouse report for the changes in this commit:

🔴 Performance: 48
🟢 Accessibility: 98
🟢 Best practices: 92
🟢 SEO: 92
🟢 PWA: 100

Lighthouse ran on https://lenis-kozax6205-studio-freight.vercel.app/"

Please sign in to comment.