Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
ffdead committed Aug 14, 2023
1 parent aeee7a2 commit 4cf9c10
Show file tree
Hide file tree
Showing 19 changed files with 30 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dist/scrollbar.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.modern.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.modern.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollbar.umd.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.modern.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.modern.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.module.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.umd.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/scrollrig.umd.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/src/components/ScrollScene.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { MutableRefObject, ReactNode } from 'react';
import { Scene } from 'three';
import type { ScrollState } from '../hooks/useTrackerTypes';
export interface ScrollSceneChildProps {
track: MutableRefObject<HTMLElement>;
Expand All @@ -7,6 +8,7 @@ export interface ScrollSceneChildProps {
scale: vec3 | undefined;
scrollState: ScrollState;
inViewport: boolean;
scene: Scene;
}
interface IScrollScene {
track: MutableRefObject<HTMLElement>;
Expand Down
12 changes: 10 additions & 2 deletions dist/src/components/ViewportScrollScene.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MutableRefObject, ReactNode } from 'react';
import type { ScrollSceneChildProps } from './ScrollScene';
import type { ScrollState } from '../hooks/useTrackerTypes';
interface IViewportScrollScene {
track: MutableRefObject<HTMLElement>;
children: (state: ScrollSceneChildProps) => ReactNode;
children: (state: ViewportScrollSceneChildProps) => ReactNode;
margin?: number;
inViewportMargin?: string;
inViewportThreshold?: number;
Expand All @@ -14,6 +14,14 @@ interface IViewportScrollScene {
hud?: boolean;
camera?: any;
}
export interface ViewportScrollSceneChildProps {
track: MutableRefObject<HTMLElement>;
margin: number;
priority: number;
scale: vec3 | undefined;
scrollState: ScrollState;
inViewport: boolean;
}
declare function ViewportScrollScene({ track, margin, // Margin outside viewport to avoid clipping vertex displacement (px)
inViewportMargin, inViewportThreshold, priority, ...props }: IViewportScrollScene): JSX.Element;
export { ViewportScrollScene };
4 changes: 2 additions & 2 deletions dist/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import './styles/index.css';
export { GlobalCanvas } from './components/GlobalCanvas';
export { ScrollScene } from './components/ScrollScene';
export { ViewportScrollScene } from './components/ViewportScrollScene';
export { type ScrollSceneChildProps, ScrollScene } from './components/ScrollScene';
export { type ViewportScrollSceneChildProps, ViewportScrollScene } from './components/ViewportScrollScene';
export { UseCanvas } from './components/UseCanvas';
export { useScrollRig } from './hooks/useScrollRig';
export { useCanvas } from './hooks/useCanvas';
Expand Down

0 comments on commit 4cf9c10

Please sign in to comment.