Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/** adding props descriptions for autodocs */ #2000

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/core/AdaptiveDpr.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import * as React from 'react'
import { useThree } from '@react-three/fiber'

export function AdaptiveDpr({ pixelated }: { pixelated?: boolean }) {
export function AdaptiveDpr({
pixelated,
}: {
/** Whether or not to use 'pixelated' imageRendering for canvas */
pixelated?: boolean
}) {
const gl = useThree((state) => state.gl)
const active = useThree((state) => state.internal.active)
const current = useThree((state) => state.performance.current)
Expand Down
1 change: 1 addition & 0 deletions src/core/BBAnchor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ const boundingBox = /* @__PURE__ */ new THREE.Box3()
const boundingBoxSize = /* @__PURE__ */ new THREE.Vector3()

export interface BBAnchorProps extends GroupProps {
/** Origin point for `children` (in bbox coordinates) */
anchor: THREE.Vector3 | [number, number, number]
}

Expand Down
Loading