From 130dcfcefd0ac857c5e61baf027a68dfd33866ea Mon Sep 17 00:00:00 2001 From: Kevin Levron Date: Sat, 24 Apr 2021 22:46:47 +0200 Subject: [PATCH] export inject keys --- src/core/index.ts | 4 ++-- src/effects/index.ts | 2 +- src/materials/index.ts | 1 + src/meshes/index.ts | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/core/index.ts b/src/core/index.ts index c007f6e..def8028 100644 --- a/src/core/index.ts +++ b/src/core/index.ts @@ -1,8 +1,8 @@ -export { default as Renderer } from './Renderer' +export { default as Renderer, RendererInjectionKey } from './Renderer' export { default as OrthographicCamera } from './OrthographicCamera' export { default as PerspectiveCamera } from './PerspectiveCamera' export { default as Camera } from './PerspectiveCamera' export { default as Group } from './Group' -export { default as Scene } from './Scene' +export { default as Scene, SceneInjectionKey } from './Scene' export { default as Object3D } from './Object3D' export { default as Raycaster } from './Raycaster' diff --git a/src/effects/index.ts b/src/effects/index.ts index 584d323..096aa5b 100644 --- a/src/effects/index.ts +++ b/src/effects/index.ts @@ -1,4 +1,4 @@ -export { default as EffectComposer } from './EffectComposer' +export { default as EffectComposer, ComposerInjectionKey } from './EffectComposer' export { default as RenderPass } from './RenderPass' export { default as BokehPass } from './BokehPass' diff --git a/src/materials/index.ts b/src/materials/index.ts index 80e6196..b46195c 100644 --- a/src/materials/index.ts +++ b/src/materials/index.ts @@ -1,3 +1,4 @@ +export { MaterialInjectionKey } from './Material' export { default as BasicMaterial } from './BasicMaterial' export { default as LambertMaterial } from './LambertMaterial' export { default as MatcapMaterial } from './MatcapMaterial' diff --git a/src/meshes/index.ts b/src/meshes/index.ts index b96d1a0..8d75503 100644 --- a/src/meshes/index.ts +++ b/src/meshes/index.ts @@ -1,4 +1,4 @@ -export { default as Mesh } from './Mesh' +export { default as Mesh, MeshInjectionKey } from './Mesh' export { default as Box } from './Box' export { default as Circle } from './Circle'