mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
improve renderer interface
This commit is contained in:
parent
1c4acdc1e3
commit
dde4c566ae
@ -1,7 +1,7 @@
|
||||
/* eslint-disable no-use-before-define */
|
||||
import { Camera, NoToneMapping, PCFShadowMap, Scene, WebGLRenderer } from 'three'
|
||||
import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer'
|
||||
import { defineComponent, InjectionKey, PropType } from 'vue'
|
||||
import { ComponentPublicInstance, defineComponent, InjectionKey, PropType } from 'vue'
|
||||
import { bindProp } from '../tools'
|
||||
import { PointerPublicConfigInterface } from './usePointer'
|
||||
import useThree, { SizeInterface, ThreeConfigInterface, ThreeInterface } from './useThree'
|
||||
@ -93,7 +93,9 @@ export interface RendererInterface extends RendererSetupInterface {
|
||||
removeListener<T extends keyof EventCallbackMap>(t: T, cb: EventCallbackMap[T]): void
|
||||
}
|
||||
|
||||
export const RendererInjectionKey: InjectionKey<RendererInterface> = Symbol('Renderer')
|
||||
export interface RendererPublicInterface extends ComponentPublicInstance, RendererInterface {}
|
||||
|
||||
export const RendererInjectionKey: InjectionKey<RendererPublicInterface> = Symbol('Renderer')
|
||||
|
||||
export default defineComponent({
|
||||
name: 'Renderer',
|
||||
|
@ -9,5 +9,5 @@ export { default as Raycaster } from './Raycaster'
|
||||
|
||||
export { default as CubeCamera } from './CubeCamera'
|
||||
|
||||
export type { RendererInterface } from './Renderer'
|
||||
export type { RendererPublicInterface } from './Renderer'
|
||||
export type { Object3DInterface } from './Object3D'
|
||||
|
Loading…
Reference in New Issue
Block a user