@tresjs/cientos 3.9.0 → 4.0.0-next.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/dist/composables/useOnDemandInvalidation.d.ts +3 -0
- package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
- package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
- package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +4 -4
- package/dist/core/abstractions/Levioso.vue.d.ts +15 -13
- package/dist/core/abstractions/MouseParallax.vue.d.ts +6 -6
- package/dist/core/abstractions/Reflector.vue.d.ts +9 -7
- package/dist/core/abstractions/Text3D.vue.d.ts +7 -5
- package/dist/core/abstractions/index.d.ts +2 -1
- package/dist/core/abstractions/useFBO/component.vue.d.ts +2 -2
- package/dist/core/abstractions/useFBO/index.d.ts +2 -2
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +6 -4
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +161 -133
- package/dist/core/controls/CameraControls.vue.d.ts +1593 -1473
- package/dist/core/controls/KeyboardControls.vue.d.ts +39 -85
- package/dist/core/controls/MapControls.vue.d.ts +9495 -2
- package/dist/core/controls/OrbitControls.vue.d.ts +1366 -1262
- package/dist/core/controls/PointerLockControls.vue.d.ts +1 -1
- package/dist/core/controls/ScrollControls.vue.d.ts +19 -15
- package/dist/core/controls/TransformControls.vue.d.ts +6 -2
- package/dist/core/index.d.ts +0 -1
- package/dist/core/loaders/SVG/component.vue.d.ts +2 -2
- package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
- package/dist/core/loaders/useGLTF/component.vue.d.ts +9 -9
- package/dist/core/loaders/useGLTF/index.d.ts +41 -0
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +4 -2
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +22 -22
- package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
- package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +6 -5
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +170 -40
- package/dist/core/materials/meshReflectionMaterial/material.d.ts +31 -34
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +7 -5
- package/dist/core/misc/html/HTML.vue.d.ts +8 -4
- package/dist/core/misc/index.d.ts +1 -2
- package/dist/core/shapes/Box.vue.d.ts +9 -7
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +3 -1
- package/dist/core/shapes/Circle.vue.d.ts +9 -7
- package/dist/core/shapes/Cone.vue.d.ts +9 -7
- package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
- package/dist/core/shapes/Dodecahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Icosahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Line2.vue.d.ts +4 -2
- package/dist/core/shapes/Octahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Plane.vue.d.ts +9 -7
- package/dist/core/shapes/Ring.vue.d.ts +9 -7
- package/dist/core/shapes/RoundedBox.vue.d.ts +9 -7
- package/dist/core/shapes/Sphere.vue.d.ts +9 -7
- package/dist/core/shapes/Superformula.vue.d.ts +8 -6
- package/dist/core/shapes/Tetrahedron.vue.d.ts +9 -7
- package/dist/core/shapes/Torus.vue.d.ts +9 -7
- package/dist/core/shapes/TorusKnot.vue.d.ts +9 -7
- package/dist/core/shapes/Tube.vue.d.ts +10 -8
- package/dist/core/shapes/index.d.ts +2 -1
- package/dist/core/staging/Backdrop.vue.d.ts +9 -5
- package/dist/core/staging/ContactShadows.vue.d.ts +173 -0
- package/dist/core/staging/Fit.vue.d.ts +9 -6
- package/dist/core/staging/Ocean.vue.d.ts +11 -9
- package/dist/core/staging/Precipitation.vue.d.ts +6 -4
- package/dist/core/staging/Sky.vue.d.ts +2 -2
- package/dist/core/staging/Smoke.vue.d.ts +3 -3
- package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +3 -3
- package/dist/core/staging/Sparkles/component.vue.d.ts +10 -8
- package/dist/core/staging/Stars.vue.d.ts +4 -4
- package/dist/core/staging/useEnvironment/component.vue.d.ts +8 -6
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
- package/dist/trescientos.js +6517 -6177
- package/dist/trescientos.umd.cjs +455 -440
- package/package.json +20 -24
- package/dist/core/directives/index.d.ts +0 -6
- package/dist/core/directives/vAlwaysLookAt.d.ts +0 -5
- package/dist/core/directives/vDistanceTo.d.ts +0 -4
- package/dist/core/directives/vLightHelper.d.ts +0 -7
- package/dist/core/directives/vLog.d.ts +0 -3
- package/dist/core/misc/useTweakPane/index.d.ts +0 -11
- /package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +0 -0
|
@@ -2,6 +2,7 @@ import { default as Box } from './Box.vue';
|
|
|
2
2
|
import { default as CatmullRomCurve3 } from './CatmullRomCurve3.vue';
|
|
3
3
|
import { default as Circle } from './Circle.vue';
|
|
4
4
|
import { default as Cone } from './Cone.vue';
|
|
5
|
+
import { default as Cylinder } from './Cylinder.vue';
|
|
5
6
|
import { default as Dodecahedron } from './Dodecahedron.vue';
|
|
6
7
|
import { default as Icosahedron } from './Icosahedron.vue';
|
|
7
8
|
import { default as Line2 } from './Line2.vue';
|
|
@@ -16,4 +17,4 @@ import { default as Torus } from './Torus.vue';
|
|
|
16
17
|
import { default as TorusKnot } from './TorusKnot.vue';
|
|
17
18
|
import { default as Tube } from './Tube.vue';
|
|
18
19
|
|
|
19
|
-
export { Box, CatmullRomCurve3, Circle, Cone, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
|
|
20
|
+
export { Box, CatmullRomCurve3, Circle, Cone, Cylinder, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
|
|
@@ -3,11 +3,16 @@ export interface BackdropProps {
|
|
|
3
3
|
segments?: number;
|
|
4
4
|
receiveShadow?: boolean;
|
|
5
5
|
}
|
|
6
|
-
declare
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
|
|
7
10
|
floor: number;
|
|
8
11
|
segments: number;
|
|
9
12
|
receiveShadow: boolean;
|
|
10
|
-
}>, {
|
|
13
|
+
}>, {
|
|
14
|
+
instance: import('vue').ShallowRef<any>;
|
|
15
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
|
|
11
16
|
floor: number;
|
|
12
17
|
segments: number;
|
|
13
18
|
receiveShadow: boolean;
|
|
@@ -15,9 +20,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
15
20
|
receiveShadow: boolean;
|
|
16
21
|
floor: number;
|
|
17
22
|
segments: number;
|
|
18
|
-
}, {}
|
|
19
|
-
|
|
20
|
-
}>;
|
|
23
|
+
}, {}>;
|
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
21
25
|
export default _default;
|
|
22
26
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
27
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { TresColor } from '@tresjs/core';
|
|
2
|
+
|
|
3
|
+
export interface ContactShadowsProps {
|
|
4
|
+
/**
|
|
5
|
+
*
|
|
6
|
+
* The opacity of the shadows.
|
|
7
|
+
*
|
|
8
|
+
* @default 1
|
|
9
|
+
* @type {number}
|
|
10
|
+
* @memberof ContactShadowsProps
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
opacity?: number;
|
|
14
|
+
/**
|
|
15
|
+
* The width of the shadows.
|
|
16
|
+
*
|
|
17
|
+
* @default 1
|
|
18
|
+
* @type {number}
|
|
19
|
+
* @memberof ContactShadowsProps
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
width?: number;
|
|
23
|
+
/**
|
|
24
|
+
* The height of the shadows.
|
|
25
|
+
*
|
|
26
|
+
* @default 1
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ContactShadowsProps
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
height?: number;
|
|
32
|
+
/**
|
|
33
|
+
* The blur of the shadows.
|
|
34
|
+
*
|
|
35
|
+
* @default 1
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof ContactShadowsProps
|
|
38
|
+
*
|
|
39
|
+
*/
|
|
40
|
+
blur?: number;
|
|
41
|
+
/**
|
|
42
|
+
* How far the OrthographicCamera should be to capture the shadows.
|
|
43
|
+
*
|
|
44
|
+
* @default 10
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof ContactShadowsProps
|
|
47
|
+
*
|
|
48
|
+
*/
|
|
49
|
+
far?: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether the shadows should be smooth or not.
|
|
52
|
+
*
|
|
53
|
+
* @default true
|
|
54
|
+
* @type {boolean}
|
|
55
|
+
* @memberof ContactShadowsProps
|
|
56
|
+
*
|
|
57
|
+
*/
|
|
58
|
+
smooth?: boolean;
|
|
59
|
+
/**
|
|
60
|
+
* The resolution of the shadows.
|
|
61
|
+
*
|
|
62
|
+
* @default 512
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof ContactShadowsProps
|
|
65
|
+
*
|
|
66
|
+
*/
|
|
67
|
+
resolution?: number;
|
|
68
|
+
/**
|
|
69
|
+
* The number of frames to render the shadows.
|
|
70
|
+
*
|
|
71
|
+
* @default Infinity
|
|
72
|
+
* @type {number}
|
|
73
|
+
* @memberof ContactShadowsProps
|
|
74
|
+
*
|
|
75
|
+
*/
|
|
76
|
+
frames?: number;
|
|
77
|
+
/**
|
|
78
|
+
* The scale of the shadows.
|
|
79
|
+
*
|
|
80
|
+
* @default 10
|
|
81
|
+
* @type {(number | [x: number, y: number])}
|
|
82
|
+
* @memberof ContactShadowsProps
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
85
|
+
scale?: number | [x: number, y: number];
|
|
86
|
+
/**
|
|
87
|
+
* The color of the shadows.
|
|
88
|
+
*
|
|
89
|
+
* @default '#000000'
|
|
90
|
+
* @type {TresColor}
|
|
91
|
+
* @memberof ContactShadowsProps
|
|
92
|
+
*
|
|
93
|
+
*/
|
|
94
|
+
color?: TresColor;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the shadows should write to the depth buffer or not.
|
|
97
|
+
*
|
|
98
|
+
* @default false
|
|
99
|
+
* @type {boolean}
|
|
100
|
+
* @memberof ContactShadowsProps
|
|
101
|
+
*
|
|
102
|
+
*/
|
|
103
|
+
depthWrite?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Whether the OrthographicCamera helper should be visible or not.
|
|
106
|
+
*
|
|
107
|
+
* @default false
|
|
108
|
+
* @type {boolean}
|
|
109
|
+
* @memberof ContactShadowsProps
|
|
110
|
+
*
|
|
111
|
+
*/
|
|
112
|
+
helper?: boolean;
|
|
113
|
+
}
|
|
114
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactShadowsProps>, {
|
|
115
|
+
scale: number;
|
|
116
|
+
frames: number;
|
|
117
|
+
opacity: number;
|
|
118
|
+
width: number;
|
|
119
|
+
height: number;
|
|
120
|
+
blur: number;
|
|
121
|
+
far: number;
|
|
122
|
+
resolution: number;
|
|
123
|
+
smooth: boolean;
|
|
124
|
+
color: string;
|
|
125
|
+
depthWrite: boolean;
|
|
126
|
+
helper: boolean;
|
|
127
|
+
}>, {
|
|
128
|
+
instance: import('vue').ShallowRef<any>;
|
|
129
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactShadowsProps>, {
|
|
130
|
+
scale: number;
|
|
131
|
+
frames: number;
|
|
132
|
+
opacity: number;
|
|
133
|
+
width: number;
|
|
134
|
+
height: number;
|
|
135
|
+
blur: number;
|
|
136
|
+
far: number;
|
|
137
|
+
resolution: number;
|
|
138
|
+
smooth: boolean;
|
|
139
|
+
color: string;
|
|
140
|
+
depthWrite: boolean;
|
|
141
|
+
helper: boolean;
|
|
142
|
+
}>>>, {
|
|
143
|
+
color: TresColor;
|
|
144
|
+
scale: number | [x: number, y: number];
|
|
145
|
+
width: number;
|
|
146
|
+
height: number;
|
|
147
|
+
helper: boolean;
|
|
148
|
+
depthWrite: boolean;
|
|
149
|
+
opacity: number;
|
|
150
|
+
blur: number;
|
|
151
|
+
resolution: number;
|
|
152
|
+
far: number;
|
|
153
|
+
smooth: boolean;
|
|
154
|
+
frames: number;
|
|
155
|
+
}, {}>;
|
|
156
|
+
export default _default;
|
|
157
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
158
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
159
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
160
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
161
|
+
} : {
|
|
162
|
+
type: import('vue').PropType<T[K]>;
|
|
163
|
+
required: true;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
type __VLS_WithDefaults<P, D> = {
|
|
167
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
168
|
+
default: D[K];
|
|
169
|
+
}> : P[K];
|
|
170
|
+
};
|
|
171
|
+
type __VLS_Prettify<T> = {
|
|
172
|
+
[K in keyof T]: T[K];
|
|
173
|
+
} & {};
|
|
@@ -15,22 +15,25 @@ export interface Props {
|
|
|
15
15
|
/** [See `precise` argument in `THREE.Box3.setFromObject`](https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject) */
|
|
16
16
|
precise?: boolean;
|
|
17
17
|
}
|
|
18
|
-
declare const
|
|
18
|
+
declare const props: Props;
|
|
19
|
+
declare function __VLS_template(): {
|
|
20
|
+
default?(_: {}): any;
|
|
21
|
+
};
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
23
|
into: () => Box3;
|
|
20
24
|
precise: boolean;
|
|
21
25
|
}>, {
|
|
22
26
|
instance: import('vue').ShallowRef<any>;
|
|
23
|
-
fit: (into?:
|
|
27
|
+
fit: (into?: typeof props.into, precise?: boolean) => void;
|
|
24
28
|
update: () => void;
|
|
25
29
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
26
30
|
into: () => Box3;
|
|
27
31
|
precise: boolean;
|
|
28
32
|
}>>>, {
|
|
29
|
-
into: number |
|
|
33
|
+
into: number | [number, number, number] | Vector3 | Box3 | Object3D | null;
|
|
30
34
|
precise: boolean;
|
|
31
|
-
}, {}
|
|
32
|
-
|
|
33
|
-
}>;
|
|
35
|
+
}, {}>;
|
|
36
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
34
37
|
export default _default;
|
|
35
38
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
39
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -98,7 +98,10 @@ export interface OceanProps {
|
|
|
98
98
|
*/
|
|
99
99
|
side?: TresVector3;
|
|
100
100
|
}
|
|
101
|
-
declare
|
|
101
|
+
declare function __VLS_template(): {
|
|
102
|
+
default?(_: {}): any;
|
|
103
|
+
};
|
|
104
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
|
|
102
105
|
textureWidth: number;
|
|
103
106
|
textureHeight: number;
|
|
104
107
|
waterNormals: string;
|
|
@@ -111,7 +114,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
111
114
|
alpha: number;
|
|
112
115
|
side: 0;
|
|
113
116
|
}>, {
|
|
114
|
-
|
|
117
|
+
instance: import('vue').ShallowRef<any>;
|
|
115
118
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
|
|
116
119
|
textureWidth: number;
|
|
117
120
|
textureHeight: number;
|
|
@@ -125,20 +128,19 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
125
128
|
alpha: number;
|
|
126
129
|
side: 0;
|
|
127
130
|
}>>>, {
|
|
128
|
-
side:
|
|
131
|
+
side: TresVector3;
|
|
129
132
|
textureWidth: number;
|
|
130
133
|
textureHeight: number;
|
|
131
134
|
clipBias: number;
|
|
132
135
|
size: number;
|
|
133
136
|
waterNormals: string;
|
|
134
|
-
sunDirection:
|
|
135
|
-
sunColor:
|
|
136
|
-
waterColor:
|
|
137
|
+
sunDirection: TresVector3;
|
|
138
|
+
sunColor: TresColor;
|
|
139
|
+
waterColor: TresColor;
|
|
137
140
|
distortionScale: number;
|
|
138
141
|
alpha: number;
|
|
139
|
-
}, {}
|
|
140
|
-
|
|
141
|
-
}>;
|
|
142
|
+
}, {}>;
|
|
143
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
142
144
|
export default _default;
|
|
143
145
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
144
146
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -121,7 +121,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
121
121
|
depthWrite: boolean;
|
|
122
122
|
transparent: boolean;
|
|
123
123
|
sizeAttenuation: boolean;
|
|
124
|
-
}>, {
|
|
124
|
+
}>, {
|
|
125
|
+
instance: import('vue').ShallowRef<any>;
|
|
126
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
|
|
125
127
|
size: number;
|
|
126
128
|
area: () => number[];
|
|
127
129
|
color: number;
|
|
@@ -135,16 +137,16 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
135
137
|
sizeAttenuation: boolean;
|
|
136
138
|
}>>>, {
|
|
137
139
|
speed: number;
|
|
138
|
-
color:
|
|
140
|
+
color: TresColor;
|
|
139
141
|
depthWrite: boolean;
|
|
140
142
|
opacity: number;
|
|
141
143
|
transparent: boolean;
|
|
142
144
|
alphaTest: number;
|
|
143
|
-
count: number;
|
|
144
145
|
size: number;
|
|
146
|
+
sizeAttenuation: boolean;
|
|
147
|
+
count: number;
|
|
145
148
|
area: [number, number, number];
|
|
146
149
|
randomness: number;
|
|
147
|
-
sizeAttenuation: boolean;
|
|
148
150
|
}, {}>;
|
|
149
151
|
export default _default;
|
|
150
152
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector3 } from 'three';
|
|
2
|
-
import { Sky as SkyImpl } from 'three
|
|
2
|
+
import { Sky as SkyImpl } from 'three-stdlib';
|
|
3
3
|
|
|
4
4
|
export interface SkyProps {
|
|
5
5
|
/**
|
|
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
41
|
azimuth: number;
|
|
42
42
|
distance: number;
|
|
43
43
|
}>, {
|
|
44
|
-
|
|
44
|
+
instance: import('vue').ShallowRef<SkyImpl | undefined>;
|
|
45
45
|
sunPosition: Vector3;
|
|
46
46
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
|
|
47
47
|
turbidity: number;
|
|
@@ -76,7 +76,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
76
76
|
color: string;
|
|
77
77
|
depthTest: boolean;
|
|
78
78
|
}>, {
|
|
79
|
-
|
|
79
|
+
instance: import('vue').ShallowRef<any>;
|
|
80
80
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SmokeProps>, {
|
|
81
81
|
opacity: number;
|
|
82
82
|
speed: number;
|
|
@@ -88,11 +88,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
88
88
|
depthTest: boolean;
|
|
89
89
|
}>>>, {
|
|
90
90
|
speed: number;
|
|
91
|
-
color:
|
|
91
|
+
color: TresColor;
|
|
92
92
|
texture: string;
|
|
93
|
+
width: number;
|
|
93
94
|
depthTest: boolean;
|
|
94
95
|
opacity: number;
|
|
95
|
-
width: number;
|
|
96
96
|
depth: number;
|
|
97
97
|
segments: number;
|
|
98
98
|
}, {}>;
|
|
@@ -2,9 +2,9 @@ import { MaybeRef } from 'vue';
|
|
|
2
2
|
import { GradientScalar, GradientTresColor, GradientVectorFlexibleParams } from './../../../utils/Gradient';
|
|
3
3
|
import { CanvasGradientRenderer, ShaderDataEntry, ShaderData } from './ShaderData';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type ShaderSuffix = (
|
|
5
|
+
type rgbaSuffixes = ['r', 'rg', 'rgb', 'rgba'];
|
|
6
|
+
type xyzwSuffixes = ['x', 'xy', 'xyz', 'xyzw'];
|
|
7
|
+
type ShaderSuffix = (rgbaSuffixes)[number] | (xyzwSuffixes)[number];
|
|
8
8
|
export default class ShaderDataBuilder {
|
|
9
9
|
private entries;
|
|
10
10
|
private resolution;
|
|
@@ -164,7 +164,9 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
164
164
|
blending: 2;
|
|
165
165
|
transparent: boolean;
|
|
166
166
|
depthWrite: boolean;
|
|
167
|
-
}>, {
|
|
167
|
+
}>, {
|
|
168
|
+
instance: import('vue').ShallowRef<any>;
|
|
169
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SparkleProps>, {
|
|
168
170
|
map: string;
|
|
169
171
|
geometry: undefined;
|
|
170
172
|
directionalLight: undefined;
|
|
@@ -195,14 +197,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
195
197
|
transparent: boolean;
|
|
196
198
|
depthWrite: boolean;
|
|
197
199
|
}>>>, {
|
|
198
|
-
map:
|
|
199
|
-
directionalLight: Object3D
|
|
200
|
+
map: Texture | string;
|
|
201
|
+
directionalLight: Object3D;
|
|
202
|
+
offset: number;
|
|
200
203
|
blending: Blending;
|
|
201
204
|
depthWrite: boolean;
|
|
202
205
|
transparent: boolean;
|
|
203
|
-
offset: number;
|
|
204
206
|
size: number;
|
|
205
|
-
geometry: Object3D
|
|
207
|
+
geometry: Object3D | BufferGeometry;
|
|
206
208
|
alpha: number;
|
|
207
209
|
lifetimeSec: number;
|
|
208
210
|
cooldownSec: number;
|
|
@@ -212,10 +214,10 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
212
214
|
offsetNoise: number;
|
|
213
215
|
lifetimeNoise: number;
|
|
214
216
|
surfaceDistance: number;
|
|
215
|
-
sequenceColor: Gradient<
|
|
217
|
+
sequenceColor: Gradient<TresColor>;
|
|
216
218
|
sequenceAlpha: Gradient<number>;
|
|
217
|
-
sequenceOffset:
|
|
218
|
-
sequenceNoise:
|
|
219
|
+
sequenceOffset: Gradient<VectorFlexibleParams>;
|
|
220
|
+
sequenceNoise: Gradient<VectorFlexibleParams>;
|
|
219
221
|
sequenceSize: Gradient<number>;
|
|
220
222
|
sequenceSurfaceDistance: Gradient<number>;
|
|
221
223
|
mixColor: number;
|
|
@@ -74,7 +74,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
74
74
|
depth: number;
|
|
75
75
|
radius: number;
|
|
76
76
|
}>, {
|
|
77
|
-
|
|
77
|
+
instance: import('vue').ShallowRef<any>;
|
|
78
78
|
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
|
|
79
79
|
size: number;
|
|
80
80
|
sizeAttenuation: boolean;
|
|
@@ -87,12 +87,12 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
87
87
|
}>>>, {
|
|
88
88
|
transparent: boolean;
|
|
89
89
|
alphaTest: number;
|
|
90
|
-
count: number;
|
|
91
|
-
radius: number;
|
|
92
90
|
size: number;
|
|
93
|
-
depth: number;
|
|
94
91
|
alphaMap: null;
|
|
95
92
|
sizeAttenuation: boolean;
|
|
93
|
+
depth: number;
|
|
94
|
+
count: number;
|
|
95
|
+
radius: number;
|
|
96
96
|
}, {}>;
|
|
97
97
|
export default _default;
|
|
98
98
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -2,7 +2,10 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { CubeTexture, Texture } from 'three';
|
|
3
3
|
import { EnvironmentOptions } from './const';
|
|
4
4
|
|
|
5
|
-
declare
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
default?(_: {}): any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvironmentOptions>, {
|
|
6
9
|
background: boolean;
|
|
7
10
|
blur: number;
|
|
8
11
|
files: never[];
|
|
@@ -31,12 +34,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
|
|
|
31
34
|
far: number;
|
|
32
35
|
frames: number;
|
|
33
36
|
near: number;
|
|
34
|
-
preset:
|
|
37
|
+
preset: import('./const').EnvironmentPresetsType;
|
|
35
38
|
files: string | string[];
|
|
36
|
-
background:
|
|
37
|
-
}, {}
|
|
38
|
-
|
|
39
|
-
}>;
|
|
39
|
+
background: boolean | string;
|
|
40
|
+
}, {}>;
|
|
41
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
40
42
|
export default _default;
|
|
41
43
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
42
44
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Texture, Color } from 'three';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
-
args?: any[]
|
|
5
|
-
from?:
|
|
6
|
-
toneMapped?: boolean
|
|
7
|
-
map?: Texture
|
|
8
|
-
intensity?: number
|
|
4
|
+
args?: any[];
|
|
5
|
+
from?: "circle" | "ring" | "rect" | any;
|
|
6
|
+
toneMapped?: boolean;
|
|
7
|
+
map?: Texture;
|
|
8
|
+
intensity?: number;
|
|
9
9
|
color?: any;
|
|
10
10
|
}>, {
|
|
11
11
|
args: any;
|
|
@@ -15,11 +15,11 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
intensity: number;
|
|
16
16
|
color: Color;
|
|
17
17
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
-
args?: any[]
|
|
19
|
-
from?:
|
|
20
|
-
toneMapped?: boolean
|
|
21
|
-
map?: Texture
|
|
22
|
-
intensity?: number
|
|
18
|
+
args?: any[];
|
|
19
|
+
from?: "circle" | "ring" | "rect" | any;
|
|
20
|
+
toneMapped?: boolean;
|
|
21
|
+
map?: Texture;
|
|
22
|
+
intensity?: number;
|
|
23
23
|
color?: any;
|
|
24
24
|
}>, {
|
|
25
25
|
args: any;
|
|
@@ -33,7 +33,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
33
33
|
color: any;
|
|
34
34
|
args: any[];
|
|
35
35
|
toneMapped: boolean;
|
|
36
|
-
from:
|
|
36
|
+
from: "circle" | "ring" | "rect" | any;
|
|
37
37
|
intensity: number;
|
|
38
38
|
}, {}>;
|
|
39
39
|
export default _default;
|