@tresjs/cientos 4.0.0-next.1 → 4.0.0-rc.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/AnimatedSprite/Atlas.d.ts +1 -1
- package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +15 -15
- package/dist/core/abstractions/Lensflare/component.vue.d.ts +12 -12
- package/dist/core/abstractions/Levioso.vue.d.ts +11 -11
- package/dist/core/abstractions/MouseParallax.vue.d.ts +11 -11
- package/dist/core/abstractions/PositionalAudio.vue.d.ts +13 -13
- package/dist/core/abstractions/Reflector.vue.d.ts +11 -11
- package/dist/core/abstractions/Text3D.vue.d.ts +132 -11
- package/dist/core/abstractions/useFBO/component.vue.d.ts +11 -11
- package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +8 -8
- package/dist/core/abstractions/useSurfaceSampler/index.d.ts +3 -3
- package/dist/core/controls/CameraControls.vue.d.ts +22 -22
- package/dist/core/controls/KeyboardControls.vue.d.ts +11 -11
- package/dist/core/controls/MapControls.vue.d.ts +21 -21
- package/dist/core/controls/OrbitControls.vue.d.ts +25 -25
- package/dist/core/controls/PointerLockControls.vue.d.ts +11 -11
- package/dist/core/controls/ScrollControls.vue.d.ts +11 -11
- package/dist/core/controls/TransformControls.vue.d.ts +11 -11
- package/dist/core/loaders/SVG/component.vue.d.ts +11 -11
- package/dist/core/loaders/useFBX/component.vue.d.ts +11 -11
- package/dist/core/loaders/useGLTF/component.vue.d.ts +11 -11
- package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -3
- package/dist/core/materials/holographicMaterial/index.vue.d.ts +11 -11
- package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +11 -11
- package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +11 -11
- package/dist/core/misc/html/HTML.vue.d.ts +11 -11
- package/dist/core/shapes/Box.vue.d.ts +11 -11
- package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +11 -11
- package/dist/core/shapes/Circle.vue.d.ts +11 -11
- package/dist/core/shapes/Cone.vue.d.ts +11 -11
- package/dist/core/shapes/Cylinder.vue.d.ts +11 -11
- package/dist/core/shapes/Dodecahedron.vue.d.ts +11 -11
- package/dist/core/shapes/Icosahedron.vue.d.ts +11 -11
- package/dist/core/shapes/Line2.vue.d.ts +11 -11
- package/dist/core/shapes/Octahedron.vue.d.ts +11 -11
- package/dist/core/shapes/Plane.vue.d.ts +11 -11
- package/dist/core/shapes/Ring.vue.d.ts +11 -11
- package/dist/core/shapes/RoundedBox.vue.d.ts +11 -11
- package/dist/core/shapes/Sphere.vue.d.ts +11 -11
- package/dist/core/shapes/Superformula.vue.d.ts +11 -11
- package/dist/core/shapes/Tetrahedron.vue.d.ts +11 -11
- package/dist/core/shapes/Torus.vue.d.ts +11 -11
- package/dist/core/shapes/TorusKnot.vue.d.ts +11 -11
- package/dist/core/shapes/Tube.vue.d.ts +11 -11
- package/dist/core/staging/Backdrop.vue.d.ts +11 -11
- package/dist/core/staging/ContactShadows.vue.d.ts +57 -62
- package/dist/core/staging/Fit.vue.d.ts +17 -12
- package/dist/core/staging/Ocean.vue.d.ts +14 -14
- package/dist/core/staging/Precipitation.vue.d.ts +18 -18
- package/dist/core/staging/Sky.vue.d.ts +11 -11
- package/dist/core/staging/Smoke.vue.d.ts +13 -13
- package/dist/core/staging/Sparkles/component.vue.d.ts +17 -17
- package/dist/core/staging/Stars.vue.d.ts +15 -15
- package/dist/core/staging/useEnvironment/component.vue.d.ts +15 -15
- package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
- package/dist/trescientos.js +5186 -5115
- package/dist/trescientos.umd.cjs +67 -67
- package/package.json +10 -10
- package/dist/composables/useOnDemandInvalidation.d.ts +0 -3
|
@@ -109,7 +109,7 @@ export interface PrecipitationProps {
|
|
|
109
109
|
*/
|
|
110
110
|
sizeAttenuation?: boolean;
|
|
111
111
|
}
|
|
112
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
112
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PrecipitationProps>, {
|
|
113
113
|
size: number;
|
|
114
114
|
area: () => number[];
|
|
115
115
|
color: number;
|
|
@@ -123,7 +123,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
123
123
|
sizeAttenuation: boolean;
|
|
124
124
|
}>, {
|
|
125
125
|
instance: import('vue').ShallowRef<any>;
|
|
126
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
126
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PrecipitationProps>, {
|
|
127
127
|
size: number;
|
|
128
128
|
area: () => number[];
|
|
129
129
|
color: number;
|
|
@@ -136,28 +136,19 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
136
136
|
transparent: boolean;
|
|
137
137
|
sizeAttenuation: boolean;
|
|
138
138
|
}>>>, {
|
|
139
|
-
|
|
139
|
+
size: number;
|
|
140
140
|
color: TresColor;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
area: [number, number, number];
|
|
142
|
+
speed: number;
|
|
143
|
+
count: number;
|
|
144
144
|
alphaTest: number;
|
|
145
|
-
|
|
145
|
+
depthWrite: boolean;
|
|
146
146
|
sizeAttenuation: boolean;
|
|
147
|
-
|
|
148
|
-
|
|
147
|
+
transparent: boolean;
|
|
148
|
+
opacity: number;
|
|
149
149
|
randomness: number;
|
|
150
150
|
}, {}>;
|
|
151
151
|
export default _default;
|
|
152
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
153
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
154
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
155
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
156
|
-
} : {
|
|
157
|
-
type: import('vue').PropType<T[K]>;
|
|
158
|
-
required: true;
|
|
159
|
-
};
|
|
160
|
-
};
|
|
161
152
|
type __VLS_WithDefaults<P, D> = {
|
|
162
153
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
163
154
|
default: D[K];
|
|
@@ -166,3 +157,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
166
157
|
type __VLS_Prettify<T> = {
|
|
167
158
|
[K in keyof T]: T[K];
|
|
168
159
|
} & {};
|
|
160
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
161
|
+
type __VLS_TypePropsToOption<T> = {
|
|
162
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
163
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
164
|
+
} : {
|
|
165
|
+
type: import('vue').PropType<T[K]>;
|
|
166
|
+
required: true;
|
|
167
|
+
};
|
|
168
|
+
};
|
|
@@ -32,7 +32,7 @@ export interface SkyProps {
|
|
|
32
32
|
*/
|
|
33
33
|
distance?: number;
|
|
34
34
|
}
|
|
35
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
35
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkyProps>, {
|
|
36
36
|
turbidity: number;
|
|
37
37
|
rayleigh: number;
|
|
38
38
|
mieCoefficient: number;
|
|
@@ -43,7 +43,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
43
43
|
}>, {
|
|
44
44
|
instance: import('vue').ShallowRef<SkyImpl | undefined>;
|
|
45
45
|
sunPosition: Vector3;
|
|
46
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
46
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkyProps>, {
|
|
47
47
|
turbidity: number;
|
|
48
48
|
rayleigh: number;
|
|
49
49
|
mieCoefficient: number;
|
|
@@ -61,15 +61,6 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
61
61
|
azimuth: number;
|
|
62
62
|
}, {}>;
|
|
63
63
|
export default _default;
|
|
64
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
65
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
66
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
67
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
68
|
-
} : {
|
|
69
|
-
type: import('vue').PropType<T[K]>;
|
|
70
|
-
required: true;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
64
|
type __VLS_WithDefaults<P, D> = {
|
|
74
65
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
75
66
|
default: D[K];
|
|
@@ -78,3 +69,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
78
69
|
type __VLS_Prettify<T> = {
|
|
79
70
|
[K in keyof T]: T[K];
|
|
80
71
|
} & {};
|
|
72
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
73
|
+
type __VLS_TypePropsToOption<T> = {
|
|
74
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
75
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
76
|
+
} : {
|
|
77
|
+
type: import('vue').PropType<T[K]>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -66,7 +66,7 @@ export interface SmokeProps {
|
|
|
66
66
|
*/
|
|
67
67
|
depthTest?: boolean;
|
|
68
68
|
}
|
|
69
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
69
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SmokeProps>, {
|
|
70
70
|
opacity: number;
|
|
71
71
|
speed: number;
|
|
72
72
|
width: number;
|
|
@@ -77,7 +77,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
77
77
|
depthTest: boolean;
|
|
78
78
|
}>, {
|
|
79
79
|
instance: import('vue').ShallowRef<any>;
|
|
80
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
80
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SmokeProps>, {
|
|
81
81
|
opacity: number;
|
|
82
82
|
speed: number;
|
|
83
83
|
width: number;
|
|
@@ -87,25 +87,16 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
87
87
|
color: string;
|
|
88
88
|
depthTest: boolean;
|
|
89
89
|
}>>>, {
|
|
90
|
-
speed: number;
|
|
91
90
|
color: TresColor;
|
|
92
91
|
texture: string;
|
|
92
|
+
speed: number;
|
|
93
93
|
width: number;
|
|
94
|
+
depth: number;
|
|
94
95
|
depthTest: boolean;
|
|
95
96
|
opacity: number;
|
|
96
|
-
depth: number;
|
|
97
97
|
segments: number;
|
|
98
98
|
}, {}>;
|
|
99
99
|
export default _default;
|
|
100
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
101
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
102
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
103
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
104
|
-
} : {
|
|
105
|
-
type: import('vue').PropType<T[K]>;
|
|
106
|
-
required: true;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
100
|
type __VLS_WithDefaults<P, D> = {
|
|
110
101
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
111
102
|
default: D[K];
|
|
@@ -114,3 +105,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
114
105
|
type __VLS_Prettify<T> = {
|
|
115
106
|
[K in keyof T]: T[K];
|
|
116
107
|
} & {};
|
|
108
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
109
|
+
type __VLS_TypePropsToOption<T> = {
|
|
110
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
111
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
112
|
+
} : {
|
|
113
|
+
type: import('vue').PropType<T[K]>;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Blending, BufferGeometry, Texture, Object3D } from 'three';
|
|
1
|
+
import { Blending, BufferGeometry, Texture, Object3D, Points, ShaderMaterial } from 'three';
|
|
2
2
|
import { TresColor } from '@tresjs/core';
|
|
3
3
|
import { VectorFlexibleParams } from '@tresjs/core/dist/utils/normalize';
|
|
4
4
|
import { Gradient } from '../../../utils/Gradient';
|
|
@@ -134,7 +134,7 @@ interface SparkleProps {
|
|
|
134
134
|
*/
|
|
135
135
|
depthWrite?: boolean;
|
|
136
136
|
}
|
|
137
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
137
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SparkleProps>, {
|
|
138
138
|
map: string;
|
|
139
139
|
geometry: undefined;
|
|
140
140
|
directionalLight: undefined;
|
|
@@ -165,8 +165,8 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
165
165
|
transparent: boolean;
|
|
166
166
|
depthWrite: boolean;
|
|
167
167
|
}>, {
|
|
168
|
-
instance: import('
|
|
169
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
168
|
+
instance: Points<BufferGeometry<import('three').NormalOrGLBufferAttributes>, ShaderMaterial, import('three').Object3DEventMap>;
|
|
169
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SparkleProps>, {
|
|
170
170
|
map: string;
|
|
171
171
|
geometry: undefined;
|
|
172
172
|
directionalLight: undefined;
|
|
@@ -197,15 +197,14 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
197
197
|
transparent: boolean;
|
|
198
198
|
depthWrite: boolean;
|
|
199
199
|
}>>>, {
|
|
200
|
+
size: number;
|
|
200
201
|
map: Texture | string;
|
|
201
202
|
directionalLight: Object3D;
|
|
203
|
+
geometry: Object3D | BufferGeometry;
|
|
202
204
|
offset: number;
|
|
203
|
-
blending: Blending;
|
|
204
205
|
depthWrite: boolean;
|
|
205
206
|
transparent: boolean;
|
|
206
|
-
|
|
207
|
-
geometry: Object3D | BufferGeometry;
|
|
208
|
-
alpha: number;
|
|
207
|
+
blending: Blending;
|
|
209
208
|
lifetimeSec: number;
|
|
210
209
|
cooldownSec: number;
|
|
211
210
|
normalThreshold: number;
|
|
@@ -213,6 +212,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
213
212
|
scaleNoise: number;
|
|
214
213
|
offsetNoise: number;
|
|
215
214
|
lifetimeNoise: number;
|
|
215
|
+
alpha: number;
|
|
216
216
|
surfaceDistance: number;
|
|
217
217
|
sequenceColor: Gradient<TresColor>;
|
|
218
218
|
sequenceAlpha: Gradient<number>;
|
|
@@ -228,15 +228,6 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
228
228
|
mixNoise: number;
|
|
229
229
|
}, {}>;
|
|
230
230
|
export default _default;
|
|
231
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
232
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
233
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
234
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
235
|
-
} : {
|
|
236
|
-
type: import('vue').PropType<T[K]>;
|
|
237
|
-
required: true;
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
231
|
type __VLS_WithDefaults<P, D> = {
|
|
241
232
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
242
233
|
default: D[K];
|
|
@@ -245,3 +236,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
245
236
|
type __VLS_Prettify<T> = {
|
|
246
237
|
[K in keyof T]: T[K];
|
|
247
238
|
} & {};
|
|
239
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
240
|
+
type __VLS_TypePropsToOption<T> = {
|
|
241
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
242
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
243
|
+
} : {
|
|
244
|
+
type: import('vue').PropType<T[K]>;
|
|
245
|
+
required: true;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
@@ -64,7 +64,7 @@ export interface StarsProps {
|
|
|
64
64
|
*/
|
|
65
65
|
alphaMap?: null;
|
|
66
66
|
}
|
|
67
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
67
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<StarsProps>, {
|
|
68
68
|
size: number;
|
|
69
69
|
sizeAttenuation: boolean;
|
|
70
70
|
transparent: boolean;
|
|
@@ -75,7 +75,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
75
75
|
radius: number;
|
|
76
76
|
}>, {
|
|
77
77
|
instance: import('vue').ShallowRef<any>;
|
|
78
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
78
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<StarsProps>, {
|
|
79
79
|
size: number;
|
|
80
80
|
sizeAttenuation: boolean;
|
|
81
81
|
transparent: boolean;
|
|
@@ -85,25 +85,16 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
85
85
|
depth: number;
|
|
86
86
|
radius: number;
|
|
87
87
|
}>>>, {
|
|
88
|
-
transparent: boolean;
|
|
89
|
-
alphaTest: number;
|
|
90
88
|
size: number;
|
|
91
|
-
alphaMap: null;
|
|
92
|
-
sizeAttenuation: boolean;
|
|
93
89
|
depth: number;
|
|
94
90
|
count: number;
|
|
91
|
+
alphaTest: number;
|
|
92
|
+
alphaMap: null;
|
|
93
|
+
sizeAttenuation: boolean;
|
|
94
|
+
transparent: boolean;
|
|
95
95
|
radius: number;
|
|
96
96
|
}, {}>;
|
|
97
97
|
export default _default;
|
|
98
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
99
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
100
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
101
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
102
|
-
} : {
|
|
103
|
-
type: import('vue').PropType<T[K]>;
|
|
104
|
-
required: true;
|
|
105
|
-
};
|
|
106
|
-
};
|
|
107
98
|
type __VLS_WithDefaults<P, D> = {
|
|
108
99
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
109
100
|
default: D[K];
|
|
@@ -112,3 +103,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
112
103
|
type __VLS_Prettify<T> = {
|
|
113
104
|
[K in keyof T]: T[K];
|
|
114
105
|
} & {};
|
|
106
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
107
|
+
type __VLS_TypePropsToOption<T> = {
|
|
108
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
109
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
110
|
+
} : {
|
|
111
|
+
type: import('vue').PropType<T[K]>;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
@@ -5,7 +5,7 @@ import { EnvironmentOptions } from './const';
|
|
|
5
5
|
declare function __VLS_template(): {
|
|
6
6
|
default?(_: {}): any;
|
|
7
7
|
};
|
|
8
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
8
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<EnvironmentOptions>, {
|
|
9
9
|
background: boolean;
|
|
10
10
|
blur: number;
|
|
11
11
|
files: never[];
|
|
@@ -17,7 +17,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
17
17
|
frames: number;
|
|
18
18
|
}>, {
|
|
19
19
|
texture: Ref<Texture | CubeTexture | null>;
|
|
20
|
-
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
20
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<EnvironmentOptions>, {
|
|
21
21
|
background: boolean;
|
|
22
22
|
blur: number;
|
|
23
23
|
files: never[];
|
|
@@ -29,26 +29,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
|
29
29
|
frames: number;
|
|
30
30
|
}>>>, {
|
|
31
31
|
path: string;
|
|
32
|
+
background: boolean | string;
|
|
32
33
|
blur: number;
|
|
34
|
+
preset: import('./const').EnvironmentPresetsType;
|
|
35
|
+
files: string | string[];
|
|
33
36
|
resolution: number;
|
|
37
|
+
near: number;
|
|
34
38
|
far: number;
|
|
35
39
|
frames: number;
|
|
36
|
-
near: number;
|
|
37
|
-
preset: import('./const').EnvironmentPresetsType;
|
|
38
|
-
files: string | string[];
|
|
39
|
-
background: boolean | string;
|
|
40
40
|
}, {}>;
|
|
41
41
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
42
42
|
export default _default;
|
|
43
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
44
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
45
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
46
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
47
|
-
} : {
|
|
48
|
-
type: import('vue').PropType<T[K]>;
|
|
49
|
-
required: true;
|
|
50
|
-
};
|
|
51
|
-
};
|
|
52
43
|
type __VLS_WithDefaults<P, D> = {
|
|
53
44
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
54
45
|
default: D[K];
|
|
@@ -62,3 +53,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
62
53
|
$slots: S;
|
|
63
54
|
};
|
|
64
55
|
};
|
|
56
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
57
|
+
type __VLS_TypePropsToOption<T> = {
|
|
58
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
59
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
60
|
+
} : {
|
|
61
|
+
type: import('vue').PropType<T[K]>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Texture, Color } from 'three';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<
|
|
3
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
4
4
|
args?: any[];
|
|
5
5
|
from?: "circle" | "ring" | "rect" | any;
|
|
6
6
|
toneMapped?: boolean;
|
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
14
14
|
map: any;
|
|
15
15
|
intensity: number;
|
|
16
16
|
color: Color;
|
|
17
|
-
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<
|
|
17
|
+
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
18
18
|
args?: any[];
|
|
19
19
|
from?: "circle" | "ring" | "rect" | any;
|
|
20
20
|
toneMapped?: boolean;
|
|
@@ -37,15 +37,6 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
37
37
|
intensity: number;
|
|
38
38
|
}, {}>;
|
|
39
39
|
export default _default;
|
|
40
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
41
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
42
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
43
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
44
|
-
} : {
|
|
45
|
-
type: import('vue').PropType<T[K]>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
40
|
type __VLS_WithDefaults<P, D> = {
|
|
50
41
|
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
51
42
|
default: D[K];
|
|
@@ -54,3 +45,12 @@ type __VLS_WithDefaults<P, D> = {
|
|
|
54
45
|
type __VLS_Prettify<T> = {
|
|
55
46
|
[K in keyof T]: T[K];
|
|
56
47
|
} & {};
|
|
48
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
49
|
+
type __VLS_TypePropsToOption<T> = {
|
|
50
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
51
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
52
|
+
} : {
|
|
53
|
+
type: import('vue').PropType<T[K]>;
|
|
54
|
+
required: true;
|
|
55
|
+
};
|
|
56
|
+
};
|