Skip to content

Commit

Permalink
src/web
Browse files Browse the repository at this point in the history
  • Loading branch information
abernier committed Dec 1, 2024
1 parent 0a09433 commit f19801b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/loaders/screen-video-texture.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: ScreenVideoTexture
sourcecode: src/core/ScreenVideoTexture.tsx
sourcecode: src/web/ScreenVideoTexture.tsx
---

[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/misc-screenvideotexture) ![](https://img.shields.io/badge/-suspense-brightgreen)
Expand Down
2 changes: 1 addition & 1 deletion docs/loaders/webcam-video-texture.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: WebcamVideoTexture
sourcecode: src/core/WebcamVideoTexture.tsx
sourcecode: src/web/WebcamVideoTexture.tsx
---

[![](https://img.shields.io/badge/-storybook-%23ff69b4)](https://drei.pmnd.rs/?path=/story/misc-webcamvideotexture) ![](https://img.shields.io/badge/-suspense-brightgreen)
Expand Down
2 changes: 0 additions & 2 deletions src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ export * from './Ktx2'
export * from './Progress'
export * from './Texture'
export * from './VideoTexture'
export * from './ScreenVideoTexture'
export * from './WebcamVideoTexture'
export * from './useFont'
export * from './useSpriteLoader'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { forwardRef, useEffect } from 'react'
import { suspend, clear } from 'suspend-react'
import { VideoTexture, VideoTextureProps } from './VideoTexture'
import { VideoTexture, VideoTextureProps } from '..'

export type ScreenVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
options?: DisplayMediaStreamOptions
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react'
import { forwardRef, useEffect } from 'react'
import { suspend, clear } from 'suspend-react'
import { VideoTexture, VideoTextureProps } from './VideoTexture'
import { VideoTexture, VideoTextureProps } from '..'

export type WebcamVideoTextureProps = Omit<VideoTextureProps, 'src'> & {
constraints?: MediaStreamConstraints
Expand Down
4 changes: 4 additions & 0 deletions src/web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ export * from './View'
// Gizmos
export * from './pivotControls'

// Loaders
export * from './ScreenVideoTexture'
export * from './WebcamVideoTexture'

// Controls
export * from './FaceControls'
export { DragControls } from './DragControls'
Expand Down

0 comments on commit f19801b

Please sign in to comment.