@tresjs/nuxt 1.1.2 → 1.1.4
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.d.mts +8 -0
- package/dist/module.d.ts +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/TresCanvas.vue +7 -1
- package/dist/types.d.mts +15 -0
- package/package.json +17 -17
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
|
@@ -5,7 +5,13 @@ import type { TresCamera } from '@tresjs/core'
|
|
|
5
5
|
import { ACESFilmicToneMapping, PCFSoftShadowMap, SRGBColorSpace } from 'three'
|
|
6
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: {
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
import { ModuleOptions } from './module'
|
|
3
|
+
|
|
4
|
+
declare module '@nuxt/schema' {
|
|
5
|
+
interface NuxtConfig { ['tres']?: Partial<ModuleOptions> }
|
|
6
|
+
interface NuxtOptions { ['tres']?: ModuleOptions }
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare module 'nuxt/schema' {
|
|
10
|
+
interface NuxtConfig { ['tres']?: Partial<ModuleOptions> }
|
|
11
|
+
interface NuxtOptions { ['tres']?: ModuleOptions }
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
export { ModuleOptions, default } from './module'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.4",
|
|
5
5
|
"packageManager": "pnpm@8.6.2",
|
|
6
6
|
"description": "TresJS integration for Nuxt.",
|
|
7
7
|
"author": "Daniel Roe (https://github.com/danielroe/)",
|
|
@@ -33,27 +33,27 @@
|
|
|
33
33
|
"test:watch": "vitest watch"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@nuxt/kit": "^3.
|
|
37
|
-
"@tresjs/core": "^3.
|
|
38
|
-
"@types/three": "^0.
|
|
39
|
-
"mlly": "^1.4.
|
|
36
|
+
"@nuxt/kit": "^3.7.0",
|
|
37
|
+
"@tresjs/core": "^3.1.1",
|
|
38
|
+
"@types/three": "^0.155.1",
|
|
39
|
+
"mlly": "^1.4.1",
|
|
40
40
|
"pkg-types": "^1.0.3",
|
|
41
41
|
"three": "^0.155.0",
|
|
42
|
-
"typescript": "^5.
|
|
42
|
+
"typescript": "^5.2.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@alvarosabu/eslint-config-vue": "^0.4.0",
|
|
46
|
-
"@nuxt/eslint-config": "^0.
|
|
47
|
-
"@nuxt/module-builder": "^0.
|
|
48
|
-
"@nuxt/schema": "^3.
|
|
49
|
-
"@nuxt/test-utils": "^3.
|
|
46
|
+
"@nuxt/eslint-config": "^0.2.0",
|
|
47
|
+
"@nuxt/module-builder": "^0.5.0",
|
|
48
|
+
"@nuxt/schema": "^3.7.0",
|
|
49
|
+
"@nuxt/test-utils": "^3.7.0",
|
|
50
50
|
"@release-it/conventional-changelog": "^7.0.0",
|
|
51
|
-
"@types/node": "^20.
|
|
52
|
-
"changelogen": "^0.5.
|
|
53
|
-
"eslint": "^8.
|
|
54
|
-
"nuxt": "^3.
|
|
55
|
-
"playwright": "^1.
|
|
56
|
-
"release-it": "^16.1.
|
|
57
|
-
"vitest": "^0.
|
|
51
|
+
"@types/node": "^20.5.7",
|
|
52
|
+
"changelogen": "^0.5.5",
|
|
53
|
+
"eslint": "^8.48.0",
|
|
54
|
+
"nuxt": "^3.7.0",
|
|
55
|
+
"playwright": "^1.37.1",
|
|
56
|
+
"release-it": "^16.1.5",
|
|
57
|
+
"vitest": "^0.34.3"
|
|
58
58
|
}
|
|
59
59
|
}
|