@tresjs/cientos 3.8.0 → 3.9.0
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/core/abstractions/GlobalAudio.d.ts +1 -1
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +2 -2
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +11 -10
- package/dist/core/abstractions/Lensflare/constants.d.ts +2 -1
- package/dist/core/abstractions/Lensflare/index.d.ts +5 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +5 -5
- package/dist/core/abstractions/MouseParallax.vue.d.ts +16 -5
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
- package/dist/core/abstractions/Reflector.vue.d.ts +6 -5
- package/dist/core/abstractions/Text3D.vue.d.ts +3 -3
- package/dist/core/abstractions/index.d.ts +10 -8
- package/dist/core/abstractions/useAnimations.d.ts +4 -4
- package/dist/core/abstractions/useFBO/component.vue.d.ts +6 -5
- package/dist/core/abstractions/useFBO/index.d.ts +4 -4
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +5 -4
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +6 -6
- package/dist/core/controls/CameraControls.vue.d.ts +3214 -3049
- package/dist/core/controls/KeyboardControls.vue.d.ts +13 -13
- package/dist/core/controls/MapControls.vue.d.ts +4 -3
- package/dist/core/controls/OrbitControls.vue.d.ts +5158 -5016
- package/dist/core/controls/PointerLockControls.vue.d.ts +6 -5
- package/dist/core/controls/ScrollControls.vue.d.ts +8 -8
- package/dist/core/controls/TransformControls.vue.d.ts +6 -4
- package/dist/core/controls/index.d.ts +9 -8
- package/dist/core/directives/index.d.ts +1 -0
- package/dist/core/directives/vAlwaysLookAt.d.ts +2 -1
- package/dist/core/directives/vLightHelper.d.ts +3 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +13 -12
- package/dist/core/loaders/index.d.ts +4 -3
- package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
- package/dist/core/loaders/useFBX/index.d.ts +2 -1
- package/dist/core/loaders/useGLTF/component.vue.d.ts +8 -8
- package/dist/core/loaders/useProgress.d.ts +2 -1
- package/dist/core/loaders/useVideoTexture.d.ts +1 -0
- package/dist/core/materials/blurPass.d.ts +2 -1
- package/dist/core/materials/convolutionMaterial.d.ts +1 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +41 -0
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +86 -0
- package/dist/core/materials/holographicMaterial/material.d.ts +27 -0
- package/dist/core/materials/index.d.ts +7 -5
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +4 -3
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +2 -2
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +2 -2
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
- package/dist/core/misc/BakeShadows.d.ts +1 -1
- package/dist/core/misc/Stats.d.ts +2 -2
- package/dist/core/misc/StatsGl.d.ts +1 -1
- package/dist/core/misc/html/HTML.vue.d.ts +7 -6
- package/dist/core/misc/html/utils.d.ts +3 -3
- package/dist/core/misc/index.d.ts +2 -1
- package/dist/core/misc/useGLTFExporter.d.ts +2 -1
- package/dist/core/misc/useTweakPane/index.d.ts +3 -2
- package/dist/core/shapes/Box.vue.d.ts +7 -6
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +4 -3
- package/dist/core/shapes/Circle.vue.d.ts +7 -6
- package/dist/core/shapes/Cone.vue.d.ts +7 -6
- package/dist/core/shapes/Dodecahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Icosahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Line2.vue.d.ts +5 -4
- package/dist/core/shapes/Octahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Plane.vue.d.ts +7 -6
- package/dist/core/shapes/Ring.vue.d.ts +7 -6
- package/dist/core/shapes/RoundedBox.vue.d.ts +59 -0
- package/dist/core/shapes/Sphere.vue.d.ts +7 -6
- package/dist/core/shapes/Superformula.vue.d.ts +21 -20
- package/dist/core/shapes/Tetrahedron.vue.d.ts +7 -6
- package/dist/core/shapes/Torus.vue.d.ts +7 -6
- package/dist/core/shapes/TorusKnot.vue.d.ts +7 -6
- package/dist/core/shapes/Tube.vue.d.ts +8 -8
- package/dist/core/shapes/index.d.ts +19 -17
- package/dist/core/staging/Backdrop.vue.d.ts +2 -2
- package/dist/core/staging/Fit.vue.d.ts +56 -0
- package/dist/core/staging/Ocean.vue.d.ts +164 -0
- package/dist/core/staging/Precipitation.vue.d.ts +6 -5
- package/dist/core/staging/Sky.vue.d.ts +8 -2
- package/dist/core/staging/Smoke.vue.d.ts +6 -5
- package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +4 -4
- package/dist/core/staging/Sparkles/component.vue.d.ts +17 -17
- package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
- package/dist/core/staging/Stars.vue.d.ts +4 -4
- package/dist/core/staging/index.d.ts +13 -9
- package/dist/core/staging/useEnvironment/component.vue.d.ts +62 -0
- package/dist/core/staging/useEnvironment/const.d.ts +28 -0
- package/dist/core/staging/useEnvironment/envSence.d.ts +9 -0
- package/dist/core/staging/useEnvironment/index.d.ts +5 -3
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +56 -0
- package/dist/trescientos.js +5946 -5098
- package/dist/trescientos.umd.cjs +301 -82
- package/dist/utils/Gradient.d.ts +3 -2
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/types.d.ts +4 -0
- package/package.json +29 -26
- package/dist/core/loaders/useGLTF/index.d.ts +0 -36
package/dist/utils/Gradient.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Color } from 'three';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import { TresColor } from '@tresjs/core';
|
|
3
|
+
import { VectorFlexibleParams } from '@tresjs/core/dist/utils/normalize';
|
|
4
|
+
|
|
4
5
|
export type Gradient<T> = T | T[] | NormalizedGradient<T>;
|
|
5
6
|
export type NormalizedGradient<T> = [number, T][];
|
|
6
7
|
export type GradientTresColor = Gradient<TresColor>;
|
package/dist/utils/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/cientos",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.9.0",
|
|
5
5
|
"packageManager": "pnpm@8.10.2",
|
|
6
6
|
"description": "Collection of useful helpers and fully functional, ready-made abstractions for Tres",
|
|
7
7
|
"author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"module": "./dist/trescientos.js",
|
|
35
35
|
"types": "./dist/index.d.ts",
|
|
36
36
|
"files": [
|
|
37
|
-
"
|
|
38
|
-
"
|
|
37
|
+
"*.d.ts",
|
|
38
|
+
"dist"
|
|
39
39
|
],
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
@@ -45,10 +45,12 @@
|
|
|
45
45
|
"playground": "cd playground && pnpm dev",
|
|
46
46
|
"build": "vite build",
|
|
47
47
|
"release": "release-it",
|
|
48
|
-
"lint": "eslint .
|
|
48
|
+
"lint": "eslint .",
|
|
49
|
+
"lint:fix": "eslint . --fix",
|
|
49
50
|
"docs:dev": "vitepress dev docs",
|
|
50
51
|
"docs:build": "vitepress build docs",
|
|
51
|
-
"docs:preview": "vitepress preview docs"
|
|
52
|
+
"docs:preview": "vitepress preview docs",
|
|
53
|
+
"prepare": "node .husky/install.mjs"
|
|
52
54
|
},
|
|
53
55
|
"peerDependencies": {
|
|
54
56
|
"@tresjs/core": ">=3.2",
|
|
@@ -57,41 +59,42 @@
|
|
|
57
59
|
"vue": ">=3.3"
|
|
58
60
|
},
|
|
59
61
|
"dependencies": {
|
|
60
|
-
"@tresjs/core": "3.
|
|
61
|
-
"@vueuse/core": "^10.
|
|
62
|
-
"camera-controls": "^2.
|
|
63
|
-
"stats-gl": "^2.
|
|
62
|
+
"@tresjs/core": "3.9.0",
|
|
63
|
+
"@vueuse/core": "^10.9.0",
|
|
64
|
+
"camera-controls": "^2.8.3",
|
|
65
|
+
"stats-gl": "^2.2.8",
|
|
64
66
|
"stats.js": "^0.17.0",
|
|
65
67
|
"three-custom-shader-material": "^5.4.0",
|
|
66
|
-
"three-stdlib": "^2.29.
|
|
68
|
+
"three-stdlib": "^2.29.11"
|
|
67
69
|
},
|
|
68
70
|
"devDependencies": {
|
|
69
71
|
"@release-it/conventional-changelog": "^8.0.1",
|
|
70
72
|
"@tresjs/core": "^3.2.1",
|
|
71
|
-
"@tresjs/eslint-config
|
|
73
|
+
"@tresjs/eslint-config": "^1.0.0",
|
|
72
74
|
"@tweakpane/core": "^1.1.9",
|
|
73
|
-
"@types/node": "^20.
|
|
74
|
-
"@types/three": "^0.
|
|
75
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
76
|
-
"@typescript-eslint/parser": "^
|
|
77
|
-
"@vitejs/plugin-vue": "^5.0.
|
|
78
|
-
"eslint": "^
|
|
79
|
-
"eslint-plugin-vue": "^9.
|
|
75
|
+
"@types/node": "^20.12.10",
|
|
76
|
+
"@types/three": "^0.164.0",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
78
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
79
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
80
|
+
"eslint": "^9.1.1",
|
|
81
|
+
"eslint-plugin-vue": "^9.25.0",
|
|
80
82
|
"gsap": "^3.12.5",
|
|
83
|
+
"husky": "^9.0.11",
|
|
81
84
|
"kolorist": "^1.8.0",
|
|
82
85
|
"pathe": "^1.1.2",
|
|
83
|
-
"release-it": "^17.
|
|
86
|
+
"release-it": "^17.2.1",
|
|
84
87
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
85
88
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
86
|
-
"three": "^0.
|
|
89
|
+
"three": "^0.164.1",
|
|
87
90
|
"tweakpane": "^3.1.10",
|
|
88
|
-
"typescript": "^5.
|
|
89
|
-
"unocss": "^0.
|
|
90
|
-
"vite": "^5.
|
|
91
|
+
"typescript": "^5.4.5",
|
|
92
|
+
"unocss": "^0.59.4",
|
|
93
|
+
"vite": "^5.2.11",
|
|
91
94
|
"vite-plugin-banner": "^0.7.1",
|
|
92
|
-
"vite-plugin-dts": "3.
|
|
93
|
-
"vite-plugin-glsl": "^1.
|
|
95
|
+
"vite-plugin-dts": "3.9.1",
|
|
96
|
+
"vite-plugin-glsl": "^1.3.0",
|
|
94
97
|
"vite-svg-loader": "^5.1.0",
|
|
95
|
-
"vitepress": "1.
|
|
98
|
+
"vitepress": "1.1.4"
|
|
96
99
|
}
|
|
97
100
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { GLTFLoader } from 'three-stdlib';
|
|
2
|
-
import type { TresObject3D } from '@tresjs/core';
|
|
3
|
-
export interface GLTFLoaderOptions {
|
|
4
|
-
/**
|
|
5
|
-
* Whether to use Draco compression.
|
|
6
|
-
*
|
|
7
|
-
* @type {boolean}
|
|
8
|
-
* @memberof GLTFLoaderOptions
|
|
9
|
-
*/
|
|
10
|
-
draco?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The path to the Draco decoder.
|
|
13
|
-
*
|
|
14
|
-
* @type {string}
|
|
15
|
-
* @memberof GLTFLoaderOptions
|
|
16
|
-
*/
|
|
17
|
-
decoderPath?: string;
|
|
18
|
-
}
|
|
19
|
-
export interface GLTFResult {
|
|
20
|
-
animations: Array<THREE.AnimationClip>;
|
|
21
|
-
nodes: Record<string, TresObject3D>;
|
|
22
|
-
materials: Record<string, THREE.Material>;
|
|
23
|
-
scene: THREE.Scene;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Loads a GLTF file and returns a THREE.Object3D.
|
|
27
|
-
*
|
|
28
|
-
* @export
|
|
29
|
-
* @param {(string | string[])} path
|
|
30
|
-
* @param {GLTFLoaderOptions} [options={
|
|
31
|
-
* draco: false,
|
|
32
|
-
* }]
|
|
33
|
-
* @param {(loader: GLTFLoader) => void} [extendLoader]
|
|
34
|
-
* @return {*} {Promise<GLTFResult>}
|
|
35
|
-
*/
|
|
36
|
-
export declare function useGLTF<T extends string | string[]>(path: T, options?: GLTFLoaderOptions, extendLoader?: (loader: GLTFLoader) => void): Promise<T extends string[] ? GLTFResult[] : GLTFResult>;
|