Skip to content

Commit

Permalink
fix: more omission of args in props
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Jan 4, 2025
1 parent 2cc899b commit 0cb59e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/CameraControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export type CameraControlsProps = Omit<
regress?: boolean
}
>,
'ref' | keyof EventDispatcher
'ref' | 'args' | keyof EventDispatcher
>

export const CameraControls: ForwardRefComponent<CameraControlsProps, CameraControlsImpl> = /* @__PURE__ */ forwardRef<
Expand Down
3 changes: 1 addition & 2 deletions src/core/GradientTexture.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export type GradientTextureProps = {
type?: GradientType
innerCircleRadius?: number
outerCircleRadius?: string | number
} & Omit<ThreeElements['texture'], 'type'>
} & Omit<ThreeElements['texture'], 'args' | 'type'>

export function GradientTexture({
stops,
Expand Down Expand Up @@ -67,6 +67,5 @@ export function GradientTexture({
return canvas
}, [stops])

// @ts-ignore ????
return <canvasTexture colorSpace={gl.outputColorSpace} args={[canvas]} attach="map" {...props} />
}

0 comments on commit 0cb59e9

Please sign in to comment.