diff --git a/src/App/App.component.tsx b/src/App/App.component.tsx index 78a028e9..326e077c 100644 --- a/src/App/App.component.tsx +++ b/src/App/App.component.tsx @@ -24,7 +24,6 @@ function App() { shadows animationSrc="/male-idle-2.fbx" style={{ background: 'rgb(9,20,26)' }} - onLoaded={() => console.log('female avatar loaded')} fov={45} effects={{ ambientOcclusion: true diff --git a/src/components/Avatar/Avatar.component.tsx b/src/components/Avatar/Avatar.component.tsx index 9c5f513c..fcb7262c 100644 --- a/src/components/Avatar/Avatar.component.tsx +++ b/src/components/Avatar/Avatar.component.tsx @@ -44,9 +44,9 @@ export const CAMERA = { } } }; -// prettier-ignore + export type Emotion = Record; -// prettier-ignore + export interface AvatarProps extends LightingProps, EnvironmentProps, Omit { /** * Arbitrary binary data (base64 string, Blob) of a `.glb` file or path (URL) to a `.glb` resource. @@ -151,7 +151,7 @@ export interface AvatarProps extends LightingProps, EnvironmentProps, Omit = ({ modelSrc, animationSrc = undefined, diff --git a/src/components/BaseCanvas/BaseCanvas.component.tsx b/src/components/BaseCanvas/BaseCanvas.component.tsx index 092bf468..68c3c05c 100644 --- a/src/components/BaseCanvas/BaseCanvas.component.tsx +++ b/src/components/BaseCanvas/BaseCanvas.component.tsx @@ -15,7 +15,7 @@ interface BaseCanvasProps extends CameraProps { const BASE_DPR = hasWindow ? window.devicePixelRatio : 1; -// prettier-ignore + export const BaseCanvas: FC = ( { children = undefined, fov = 50, position = new Vector3(0, 0, 5), style, dpr = [BASE_DPR * 0.5, 2], className } ) => ( = ({ environment }) => { const config = useMemo<{ files: string }>(() => { const isStaticPreset = environment in environmentPresets;