Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Tresjs/nuxt
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1.1.1
Choose a base ref
...
head repository: Tresjs/nuxt
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1.1.2
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Jul 29, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    1bec0d7 View commit details
  2. chore: release v1.1.2

    alvarosabu committed Jul 29, 2023
    Copy the full SHA
    1b722ca View commit details
Showing with 15 additions and 9 deletions.
  1. +7 −0 CHANGELOG.md
  2. +1 −1 package.json
  3. +7 −8 src/runtime/components/TresCanvas.vue
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@


## [1.1.2](///compare/1.1.1...1.1.2) (2023-07-29)


### Bug Fixes

* update TresCanvasProps to newest ([#29](null//null/issues/29)) 1bec0d7

## [1.1.1](///compare/1.1.0...1.1.1) (2023-07-29)


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tresjs/nuxt",
"type": "module",
"version": "1.1.1",
"version": "1.1.2",
"packageManager": "pnpm@8.6.2",
"description": "TresJS integration for Nuxt.",
"author": "Daniel Roe (https://github.com/danielroe/)",
15 changes: 7 additions & 8 deletions src/runtime/components/TresCanvas.vue
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@ import { ref } from 'vue'
import { TresCanvas as TC } from '@tresjs/core'
import type { TresCamera } from '@tresjs/core'
import { ACESFilmicToneMapping, PCFSoftShadowMap, SRGBColorSpace } from 'three'
import type { ColorSpace, ShadowMapType, ToneMapping } from 'three'
import type { ColorSpace, ShadowMapType, ToneMapping, WebGLRendererParameters } from 'three'
defineProps<TresCanvasProps>()
@@ -21,18 +21,17 @@ const rendererPresets = {
type RendererPresetsType = keyof typeof rendererPresets
interface TresCanvasProps {
interface TresCanvasProps extends Omit<WebGLRendererParameters, 'canvas'> {
// required by for useRenderer
shadows?: boolean
clearColor?: string
toneMapping?: ToneMapping
shadowMapType?: ShadowMapType
physicallyCorrectLights?: boolean
useLegacyLights?: boolean
outputColorSpace?: ColorSpace
toneMapping?: ToneMapping
toneMappingExposure?: number
context?: WebGLRenderingContext
powerPreference?: 'high-performance' | 'low-power' | 'default'
preserveDrawingBuffer?: boolean
clearColor?: string
// required by useTresContextProvider
windowSize?: boolean
preset?: RendererPresetsType
disableRender?: boolean