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

feat: renamed useCamera composable methods to prevent confusion #380

Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into feature/379-renaming-…
…methods-of-the-usecamera-composable-to-prevent-confusion
  • Loading branch information
Tinoooo committed Sep 4, 2023
commit a4ddde03cd24397bbeb3ce1972f209ec5a194db7
6 changes: 2 additions & 4 deletions src/composables/useTresContextProvider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@ import type { UseRendererOptions } from '../useRenderer'
import { useRenderer } from '../useRenderer'
import { extend } from '../../core/catalogue'

import type { ComputedRef, DeepReadonly, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef } from 'vue';

export type TresContext = {
export interface TresContext {
scene: ShallowRef<Scene>
sizes: { height: Ref<number>, width: Ref<number>, aspectRatio: ComputedRef<number> }
sizes: { height: Ref<number>; width: Ref<number>; aspectRatio: ComputedRef<number> }
extend: (objects: any) => void
camera: ComputedRef<Camera | undefined>
cameras: DeepReadonly<Ref<Camera[]>>
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.