Skip to content

Commit

Permalink
Adding extends
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed Jan 2, 2023
1 parent b9748c4 commit 960fbf5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/framer-motion-3d/src/components/LayoutCamera.tsx
Expand Up @@ -5,6 +5,9 @@ import { LayoutCameraProps } from "./types"
import { motion } from "../render/motion"
import { useLayoutCamera } from "./use-layout-camera"
import { ThreeMotionProps } from "../types"
import { extend } from "@react-three/fiber"

extend({ PerspectiveCamera: PerspectiveCameraImpl })

type Props = JSX.IntrinsicElements["perspectiveCamera"] &
LayoutCameraProps &
Expand Down
Expand Up @@ -5,6 +5,9 @@ import { motion } from "../render/motion"
import { LayoutCameraProps } from "./types"
import { useLayoutCamera } from "./use-layout-camera"
import { ThreeMotionProps } from "../types"
import { extend } from "@react-three/fiber"

extend({ OrthographicCamera: OrthographicCameraImpl })

type Props = JSX.IntrinsicElements["orthographicCamera"] &
LayoutCameraProps &
Expand Down

0 comments on commit 960fbf5

Please sign in to comment.