@tresjs/cientos 3.4.0 → 3.4.1
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/README.md +1 -1
- package/dist/composables/useLogger.d.ts +8 -0
- package/dist/core/abstractions/Lensflare/RandUtils.d.ts +68 -0
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +69 -0
- package/dist/core/abstractions/Lensflare/constants.d.ts +20 -0
- package/dist/core/abstractions/Lensflare/index.d.ts +36 -0
- package/dist/core/abstractions/Levioso.vue.d.ts +52 -0
- package/dist/core/abstractions/MouseParallax.vue.d.ts +58 -0
- package/dist/core/abstractions/Text3D.vue.d.ts +234 -0
- package/dist/core/abstractions/index.d.ts +7 -0
- package/dist/core/abstractions/useAnimations.d.ts +18 -0
- package/dist/core/controls/CameraControls.vue.d.ts +10026 -0
- package/dist/core/controls/KeyboardControls.vue.d.ts +167 -0
- package/dist/core/controls/MapControls.vue.d.ts +54 -0
- package/dist/core/controls/OrbitControls.vue.d.ts +456 -0
- package/dist/core/controls/PointerLockControls.vue.d.ts +75 -0
- package/dist/core/controls/ScrollControls.vue.d.ts +101 -0
- package/dist/core/controls/TransformControls.vue.d.ts +124 -0
- package/dist/core/controls/index.d.ts +8 -0
- package/dist/core/directives/index.d.ts +4 -0
- package/dist/core/directives/vAlwaysLookAt.d.ts +4 -0
- package/dist/core/directives/vLightHelper.d.ts +5 -0
- package/dist/core/directives/vLog.d.ts +3 -0
- package/dist/core/index.d.ts +8 -0
- package/dist/core/loaders/SVG/component.vue.d.ts +68 -0
- package/dist/core/loaders/index.d.ts +8 -0
- package/dist/core/loaders/useFBX/component.vue.d.ts +24 -0
- package/dist/core/loaders/useFBX/index.d.ts +9 -0
- package/dist/core/loaders/useGLTF/component.vue.d.ts +65 -0
- package/dist/core/loaders/useGLTF/index.d.ts +36 -0
- package/dist/core/loaders/useProgress.d.ts +6 -0
- package/dist/core/loaders/useVideoTexture.d.ts +28 -0
- package/dist/core/materials/index.d.ts +3 -0
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +4 -0
- package/dist/core/materials/meshGlassMaterial/material.d.ts +31 -0
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +23 -0
- package/dist/core/materials/meshWobbleMaterial/material.d.ts +16 -0
- package/dist/core/misc/Stats.d.ts +1 -0
- package/dist/core/misc/StatsGl.d.ts +10 -0
- package/dist/core/misc/index.d.ts +4 -0
- package/dist/core/misc/useTweakPane/index.d.ts +10 -0
- package/dist/core/shapes/Box.vue.d.ts +53 -0
- package/dist/core/shapes/Circle.vue.d.ts +52 -0
- package/dist/core/shapes/Cone.vue.d.ts +52 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +52 -0
- package/dist/core/shapes/Icosahedron.vue.d.ts +52 -0
- package/dist/core/shapes/Octahedron.vue.d.ts +52 -0
- package/dist/core/shapes/Plane.vue.d.ts +52 -0
- package/dist/core/shapes/Ring.vue.d.ts +52 -0
- package/dist/core/shapes/Sphere.vue.d.ts +53 -0
- package/dist/core/shapes/Tetrahedron.vue.d.ts +52 -0
- package/dist/core/shapes/Torus.vue.d.ts +52 -0
- package/dist/core/shapes/TorusKnot.vue.d.ts +52 -0
- package/dist/core/shapes/Tube.vue.d.ts +53 -0
- package/dist/core/shapes/index.d.ts +14 -0
- package/dist/core/staging/Backdrop.vue.d.ts +44 -0
- package/dist/core/staging/Precipitation.vue.d.ts +226 -0
- package/dist/core/staging/Sky.vue.d.ts +77 -0
- package/dist/core/staging/Smoke.vue.d.ts +146 -0
- package/dist/core/staging/Stars.vue.d.ts +145 -0
- package/dist/core/staging/index.d.ts +8 -0
- package/dist/core/staging/useEnvironment/component.d.ts +4 -0
- package/dist/core/staging/useEnvironment/index.d.ts +17 -0
- package/dist/index.d.ts +2 -0
- package/dist/trescientos.js +10915 -0
- package/dist/trescientos.umd.cjs +355 -0
- package/dist/utils/easing.d.ts +5 -0
- package/dist/utils/index.d.ts +20 -0
- package/package.json +3 -3
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export interface StarsProps {
|
|
2
|
+
/**
|
|
3
|
+
* The size of the stars.
|
|
4
|
+
*
|
|
5
|
+
* @type {number}
|
|
6
|
+
* @memberof StarsProps
|
|
7
|
+
* @default 0.1
|
|
8
|
+
*/
|
|
9
|
+
size?: number;
|
|
10
|
+
/**
|
|
11
|
+
* keep the same size regardless distance.
|
|
12
|
+
*
|
|
13
|
+
* @type {boolean}
|
|
14
|
+
* @memberof StarsProps
|
|
15
|
+
* @default true
|
|
16
|
+
*/
|
|
17
|
+
sizeAttenuation?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* show transparency on the stars texture.
|
|
20
|
+
*
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof StarsProps
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
transparent?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* enables the WebGL to know when not to render the pixel.
|
|
28
|
+
*
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof StarsProps
|
|
31
|
+
* @default 0.01
|
|
32
|
+
*/
|
|
33
|
+
alphaTest?: number;
|
|
34
|
+
/**
|
|
35
|
+
* number of stars.
|
|
36
|
+
*
|
|
37
|
+
* @type {number}
|
|
38
|
+
* @memberof StarsProps
|
|
39
|
+
* @default 5000
|
|
40
|
+
*/
|
|
41
|
+
count?: number;
|
|
42
|
+
/**
|
|
43
|
+
* depth of star's shape.
|
|
44
|
+
*
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof StarsProps
|
|
47
|
+
* @default 50
|
|
48
|
+
*/
|
|
49
|
+
depth?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Radius of star's shape.
|
|
52
|
+
*
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof StarsProps
|
|
55
|
+
* @default 100
|
|
56
|
+
*/
|
|
57
|
+
radius?: number;
|
|
58
|
+
/**
|
|
59
|
+
* texture of the stars.
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof StarsProps
|
|
63
|
+
* @default null
|
|
64
|
+
*/
|
|
65
|
+
alphaMap?: null;
|
|
66
|
+
}
|
|
67
|
+
declare const _default: import("vue").DefineComponent<{
|
|
68
|
+
alphaTest: {
|
|
69
|
+
type: import("vue").PropType<number>;
|
|
70
|
+
default: number;
|
|
71
|
+
};
|
|
72
|
+
transparent: {
|
|
73
|
+
type: import("vue").PropType<boolean>;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
size: {
|
|
77
|
+
type: import("vue").PropType<number>;
|
|
78
|
+
default: number;
|
|
79
|
+
};
|
|
80
|
+
depth: {
|
|
81
|
+
type: import("vue").PropType<number>;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
alphaMap: {
|
|
85
|
+
type: import("vue").PropType<null>;
|
|
86
|
+
default: null;
|
|
87
|
+
};
|
|
88
|
+
count: {
|
|
89
|
+
type: import("vue").PropType<number>;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
radius: {
|
|
93
|
+
type: import("vue").PropType<number>;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
sizeAttenuation: {
|
|
97
|
+
type: import("vue").PropType<boolean>;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
}, {
|
|
101
|
+
value: import("vue").ShallowRef<any>;
|
|
102
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
103
|
+
alphaTest: {
|
|
104
|
+
type: import("vue").PropType<number>;
|
|
105
|
+
default: number;
|
|
106
|
+
};
|
|
107
|
+
transparent: {
|
|
108
|
+
type: import("vue").PropType<boolean>;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
size: {
|
|
112
|
+
type: import("vue").PropType<number>;
|
|
113
|
+
default: number;
|
|
114
|
+
};
|
|
115
|
+
depth: {
|
|
116
|
+
type: import("vue").PropType<number>;
|
|
117
|
+
default: number;
|
|
118
|
+
};
|
|
119
|
+
alphaMap: {
|
|
120
|
+
type: import("vue").PropType<null>;
|
|
121
|
+
default: null;
|
|
122
|
+
};
|
|
123
|
+
count: {
|
|
124
|
+
type: import("vue").PropType<number>;
|
|
125
|
+
default: number;
|
|
126
|
+
};
|
|
127
|
+
radius: {
|
|
128
|
+
type: import("vue").PropType<number>;
|
|
129
|
+
default: number;
|
|
130
|
+
};
|
|
131
|
+
sizeAttenuation: {
|
|
132
|
+
type: import("vue").PropType<boolean>;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
}>>, {
|
|
136
|
+
alphaTest: number;
|
|
137
|
+
transparent: boolean;
|
|
138
|
+
size: number;
|
|
139
|
+
depth: number;
|
|
140
|
+
alphaMap: null;
|
|
141
|
+
count: number;
|
|
142
|
+
radius: number;
|
|
143
|
+
sizeAttenuation: boolean;
|
|
144
|
+
}, {}>;
|
|
145
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Environment } from './useEnvironment/component';
|
|
2
|
+
import Backdrop from './Backdrop.vue';
|
|
3
|
+
import ContactShadows from './ContactShadows.vue';
|
|
4
|
+
import Stars from './Stars.vue';
|
|
5
|
+
import Precipitation from './Precipitation.vue';
|
|
6
|
+
import Smoke from './Smoke.vue';
|
|
7
|
+
import Sky from './Sky.vue';
|
|
8
|
+
export { Backdrop, ContactShadows, Stars, Precipitation, Smoke, Environment, Sky, };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { EnvironmentOptions } from './const';
|
|
2
|
+
export declare const Environment: import("vue").DefineComponent<EnvironmentOptions, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<EnvironmentOptions>, {
|
|
3
|
+
encoding?: any;
|
|
4
|
+
}, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { CubeTexture, Texture } from 'three';
|
|
2
|
+
import type { EnvironmentOptions } from './const';
|
|
3
|
+
/**
|
|
4
|
+
* Component that loads an environment map and sets it as the scene's background and environment.
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @param {Partial<EnvironmentOptions>} {
|
|
8
|
+
* files = ['/px.png', '/nx.png', '/py.png', '/ny.png', '/pz.png', '/nz.png'],
|
|
9
|
+
* blur = 0,
|
|
10
|
+
* background = false,
|
|
11
|
+
* path = undefined,
|
|
12
|
+
* preset = undefined,
|
|
13
|
+
* colorSpace = undefined,
|
|
14
|
+
* }
|
|
15
|
+
* @return {*} {(Promise<Texture | CubeTexture>)}
|
|
16
|
+
*/
|
|
17
|
+
export declare function useEnvironment({ files, blur, background, path, preset, }: Partial<EnvironmentOptions>): Promise<Texture | CubeTexture>;
|
package/dist/index.d.ts
ADDED