@tresjs/nuxt 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@tresjs/nuxt",
3
3
  "configKey": "tres",
4
- "version": "1.1.1"
4
+ "version": "1.1.2"
5
5
  }
@@ -3,7 +3,7 @@ import { ref } from 'vue'
3
3
  import { TresCanvas as TC } from '@tresjs/core'
4
4
  import type { TresCamera } from '@tresjs/core'
5
5
  import { ACESFilmicToneMapping, PCFSoftShadowMap, SRGBColorSpace } from 'three'
6
- import type { ColorSpace, ShadowMapType, ToneMapping } from 'three'
6
+ import type { ColorSpace, ShadowMapType, ToneMapping, WebGLRendererParameters } from 'three'
7
7
 
8
8
  defineProps<TresCanvasProps>()
9
9
 
@@ -21,18 +21,17 @@ const rendererPresets = {
21
21
 
22
22
  type RendererPresetsType = keyof typeof rendererPresets
23
23
 
24
- interface TresCanvasProps {
24
+ interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'> {
25
+ // required by for useRenderer
25
26
  shadows?: boolean
27
+ clearColor?: string
28
+ toneMapping?: ToneMapping
26
29
  shadowMapType?: ShadowMapType
27
- physicallyCorrectLights?: boolean
28
30
  useLegacyLights?: boolean
29
31
  outputColorSpace?: ColorSpace
30
- toneMapping?: ToneMapping
31
32
  toneMappingExposure?: number
32
- context?: WebGLRenderingContext
33
- powerPreference?: 'high-performance' | 'low-power' | 'default'
34
- preserveDrawingBuffer?: boolean
35
- clearColor?: string
33
+
34
+ // required by useTresContextProvider
36
35
  windowSize?: boolean
37
36
  preset?: RendererPresetsType
38
37
  disableRender?: boolean
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tresjs/nuxt",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.1.2",
5
5
  "packageManager": "pnpm@8.6.2",
6
6
  "description": "TresJS integration for Nuxt.",
7
7
  "author": "Daniel Roe (https://github.com/danielroe/)",