@tresjs/cientos 5.0.0-next.4 → 5.0.0-next.6
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/Edges.vue.d.ts +5 -5
- package/dist/core/abstractions/Mask/component.vue.d.ts +5 -5
- package/dist/core/abstractions/Outline/component.vue.d.ts +1 -1
- package/dist/core/abstractions/Text3D.vue.d.ts +27 -2
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +3 -2
- package/dist/core/controls/Helper/component.vue.d.ts +2 -3
- package/dist/core/controls/Helper/useHelper.d.ts +2 -1
- package/dist/core/loaders/index.d.ts +3 -2
- package/dist/core/loaders/useFBX/component.vue.d.ts +7258 -0
- package/dist/core/loaders/useGLTF/component.vue.d.ts +3 -8
- package/dist/core/loaders/{SVG → useSVG}/component.vue.d.ts +3 -11
- package/dist/core/materials/meshGlassMaterial/material.d.ts +11 -2
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +2 -2
- package/dist/core/misc/html/HTML.vue.d.ts +4 -4
- package/dist/core/shapes/Box.vue.d.ts +4 -4
- package/dist/core/shapes/Circle.vue.d.ts +4 -4
- package/dist/core/shapes/Cone.vue.d.ts +4 -4
- package/dist/core/shapes/CubicBezierLine.vue.d.ts +4 -4
- package/dist/core/shapes/Cylinder.vue.d.ts +4 -4
- package/dist/core/shapes/Dodecahedron.vue.d.ts +4 -4
- package/dist/core/shapes/Icosahedron.vue.d.ts +4 -4
- package/dist/core/shapes/Line2.vue.d.ts +2 -2
- package/dist/core/shapes/Octahedron.vue.d.ts +4 -4
- package/dist/core/shapes/Plane.vue.d.ts +4 -4
- package/dist/core/shapes/QuadraticBezierLine.vue.d.ts +4 -4
- package/dist/core/shapes/Ring.vue.d.ts +4 -4
- package/dist/core/shapes/RoundedBox.vue.d.ts +4 -4
- package/dist/core/shapes/ScreenQuad.vue.d.ts +4 -4
- package/dist/core/shapes/Sphere.vue.d.ts +4 -4
- package/dist/core/shapes/Superformula.vue.d.ts +4 -4
- package/dist/core/shapes/Tetrahedron.vue.d.ts +4 -4
- package/dist/core/shapes/Torus.vue.d.ts +4 -4
- package/dist/core/shapes/TorusKnot.vue.d.ts +4 -4
- package/dist/core/shapes/Tube.vue.d.ts +4 -4
- package/dist/core/staging/AccumulativeShadows/component.vue.d.ts +4 -4
- package/dist/core/staging/CircleShadow.vue.d.ts +2 -2
- package/dist/core/staging/Grid.vue.d.ts +2 -2
- package/dist/core/staging/Precipitation.vue.d.ts +4 -4
- package/dist/core/staging/Sky.vue.d.ts +46 -0
- package/dist/core/staging/Sparkles/component.vue.d.ts +168 -0
- package/dist/core/staging/Stage.vue.d.ts +4 -4
- package/dist/core/staging/Stars.vue.d.ts +2 -2
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +2 -2
- package/dist/trescientos.js +14426 -15521
- package/package.json +8 -7
- package/dist/core/loaders/useFBX/index.d.ts +0 -9
- package/dist/core/loaders/useGLTF/index.d.ts +0 -51
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tresjs/cientos",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "5.0.0-next.
|
|
4
|
+
"version": "5.0.0-next.6",
|
|
5
5
|
"packageManager": "pnpm@10.11.0",
|
|
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/)",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"@tresjs/core": ">=4.2.1",
|
|
61
61
|
"three": ">=0.133",
|
|
62
|
-
"vue": ">=3.
|
|
62
|
+
"vue": ">=3.5.17"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
65
|
"@vueuse/core": "^12.3.0",
|
|
@@ -74,10 +74,10 @@
|
|
|
74
74
|
"@tresjs/core": "5.0.0-next.6",
|
|
75
75
|
"@tresjs/eslint-config": "^1.4.0",
|
|
76
76
|
"@types/node": "^24.0.3",
|
|
77
|
-
"@types/three": "^0.
|
|
77
|
+
"@types/three": "^0.178.0",
|
|
78
78
|
"@typescript-eslint/eslint-plugin": "^8.19.0",
|
|
79
79
|
"@typescript-eslint/parser": "^8.19.0",
|
|
80
|
-
"@vitejs/plugin-vue": "^
|
|
80
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
81
81
|
"eslint": "^9.27.0",
|
|
82
82
|
"eslint-plugin-vue": "^10.1.0",
|
|
83
83
|
"gsap": "^3.13.0",
|
|
@@ -86,14 +86,15 @@
|
|
|
86
86
|
"release-it": "^19.0.2",
|
|
87
87
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
88
88
|
"rollup-plugin-visualizer": "^5.13.1",
|
|
89
|
-
"three": "^0.
|
|
89
|
+
"three": "^0.178.0",
|
|
90
90
|
"typescript": "^5.8.3",
|
|
91
91
|
"unocss": "^66.1.2",
|
|
92
|
-
"vite": "^
|
|
92
|
+
"vite": "^7.0.2",
|
|
93
93
|
"vite-plugin-banner": "^0.8.1",
|
|
94
94
|
"vite-plugin-dts": "4.5.4",
|
|
95
95
|
"vite-plugin-glsl": "^1.4.1",
|
|
96
96
|
"vite-svg-loader": "^5.1.0",
|
|
97
|
-
"vitepress": "1.6.3"
|
|
97
|
+
"vitepress": "1.6.3",
|
|
98
|
+
"vue-tsc": "^3.0.1"
|
|
98
99
|
}
|
|
99
100
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Group } from 'three';
|
|
2
|
-
/**
|
|
3
|
-
* Loads an FBX file and returns a THREE.Object3D.
|
|
4
|
-
*
|
|
5
|
-
* @export
|
|
6
|
-
* @param {(string | string[])} path
|
|
7
|
-
* @return {*} {Promise<Group>}
|
|
8
|
-
*/
|
|
9
|
-
export declare function useFBX<T extends string | string[]>(path: T): Promise<T extends string[] ? Group[] : Group>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { TresObject } from '@tresjs/core';
|
|
2
|
-
import { MaybeRef } from 'vue';
|
|
3
|
-
import { GLTF } from 'three-stdlib';
|
|
4
|
-
export interface UseGLTFOptions {
|
|
5
|
-
/**
|
|
6
|
-
* Whether to use DRACO compression for loading the model
|
|
7
|
-
* @type {boolean}
|
|
8
|
-
*/
|
|
9
|
-
draco?: boolean;
|
|
10
|
-
/**
|
|
11
|
-
* Path to the DRACO decoder. Defaults to https://www.gstatic.com/draco/versioned/decoders/1.5.6/
|
|
12
|
-
* @type {string}
|
|
13
|
-
*/
|
|
14
|
-
decoderPath?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Vue composable for loading GLTF models in TresJS
|
|
18
|
-
*
|
|
19
|
-
* @remarks
|
|
20
|
-
* This composable uses Three.js GLTFLoader under the hood and supports DRACO compression.
|
|
21
|
-
* When DRACO compression is enabled, it will use the specified decoder path or fallback to Google's CDN.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts
|
|
25
|
-
* const { state: model } = useGLTF('/path/to/model.glb', { draco: true })
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @param {MaybeRef<string>} path - Path to the GLTF model file
|
|
29
|
-
* @param {UseGLTFOptions} options - Options for loading the model
|
|
30
|
-
* @returns {{ state: GLTF, isLoading: boolean, execute: () => Promise<void> }} Object containing the model state, loading state and reload function
|
|
31
|
-
*/
|
|
32
|
-
export declare function useGLTF(path: MaybeRef<string>, options?: UseGLTFOptions): {
|
|
33
|
-
nodes: import('vue').ComputedRef<{
|
|
34
|
-
[name: string]: TresObject;
|
|
35
|
-
}>;
|
|
36
|
-
materials: import('vue').ComputedRef<{
|
|
37
|
-
[name: string]: import('@tresjs/core').TresMaterial;
|
|
38
|
-
}>;
|
|
39
|
-
state: import('vue').Ref<GLTF, GLTF>;
|
|
40
|
-
isReady: import('vue').Ref<boolean>;
|
|
41
|
-
isLoading: import('vue').Ref<boolean>;
|
|
42
|
-
error: import('vue').Ref<unknown>;
|
|
43
|
-
execute: (delay?: number, args_0: string) => Promise<GLTF>;
|
|
44
|
-
then<TResult1 = import('@vueuse/core').UseAsyncStateReturnBase<GLTF, [string], true>, TResult2 = never>(onfulfilled?: ((value: import('@vueuse/core').UseAsyncStateReturnBase<GLTF, [string], true>) => TResult1 | PromiseLike<TResult1>) | null | undefined, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined): PromiseLike<TResult1 | TResult2>;
|
|
45
|
-
load: (path: string) => void;
|
|
46
|
-
progress: {
|
|
47
|
-
loaded: number;
|
|
48
|
-
total: number;
|
|
49
|
-
percentage: number;
|
|
50
|
-
};
|
|
51
|
-
};
|