@tresjs/nuxt 1.1.1 → 1.1.3

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.3"
5
5
  }
@@ -3,9 +3,15 @@ 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
- defineProps<TresCanvasProps>()
8
+ withDefaults(defineProps<TresCanvasProps>(), {
9
+ alpha: false,
10
+ antialias: true,
11
+ depth: true,
12
+ stencil: true,
13
+ preserveDrawingBuffer: false,
14
+ })
9
15
 
10
16
  const rendererPresets = {
11
17
  realistic: {
@@ -21,18 +27,17 @@ const rendererPresets = {
21
27
 
22
28
  type RendererPresetsType = keyof typeof rendererPresets
23
29
 
24
- interface TresCanvasProps {
30
+ interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'> {
31
+ // required by for useRenderer
25
32
  shadows?: boolean
33
+ clearColor?: string
34
+ toneMapping?: ToneMapping
26
35
  shadowMapType?: ShadowMapType
27
- physicallyCorrectLights?: boolean
28
36
  useLegacyLights?: boolean
29
37
  outputColorSpace?: ColorSpace
30
- toneMapping?: ToneMapping
31
38
  toneMappingExposure?: number
32
- context?: WebGLRenderingContext
33
- powerPreference?: 'high-performance' | 'low-power' | 'default'
34
- preserveDrawingBuffer?: boolean
35
- clearColor?: string
39
+
40
+ // required by useTresContextProvider
36
41
  windowSize?: boolean
37
42
  preset?: RendererPresetsType
38
43
  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.3",
5
5
  "packageManager": "pnpm@8.6.2",
6
6
  "description": "TresJS integration for Nuxt.",
7
7
  "author": "Daniel Roe (https://github.com/danielroe/)",