@tresjs/cientos 4.0.0-next.0 → 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.
Files changed (106) hide show
  1. package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +38 -0
  2. package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +10 -0
  3. package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +2 -0
  4. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +130 -0
  5. package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
  6. package/dist/core/abstractions/Lensflare/RandUtils.d.ts +2 -2
  7. package/dist/core/abstractions/Lensflare/component.vue.d.ts +22 -21
  8. package/dist/core/abstractions/Lensflare/constants.d.ts +2 -1
  9. package/dist/core/abstractions/Lensflare/index.d.ts +5 -4
  10. package/dist/core/abstractions/Levioso.vue.d.ts +25 -23
  11. package/dist/core/abstractions/MouseParallax.vue.d.ts +31 -20
  12. package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
  13. package/dist/core/abstractions/Reflector.vue.d.ts +21 -18
  14. package/dist/core/abstractions/Text3D.vue.d.ts +138 -15
  15. package/dist/core/abstractions/index.d.ts +11 -8
  16. package/dist/core/abstractions/useAnimations.d.ts +4 -4
  17. package/dist/core/abstractions/useFBO/component.vue.d.ts +15 -14
  18. package/dist/core/abstractions/useFBO/index.d.ts +5 -5
  19. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +14 -11
  20. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +170 -142
  21. package/dist/core/controls/CameraControls.vue.d.ts +4147 -3862
  22. package/dist/core/controls/KeyboardControls.vue.d.ts +51 -97
  23. package/dist/core/controls/MapControls.vue.d.ts +9507 -13
  24. package/dist/core/controls/OrbitControls.vue.d.ts +5906 -5660
  25. package/dist/core/controls/PointerLockControls.vue.d.ts +15 -14
  26. package/dist/core/controls/ScrollControls.vue.d.ts +34 -30
  27. package/dist/core/controls/TransformControls.vue.d.ts +20 -14
  28. package/dist/core/controls/index.d.ts +9 -8
  29. package/dist/core/index.d.ts +0 -1
  30. package/dist/core/loaders/SVG/component.vue.d.ts +23 -22
  31. package/dist/core/loaders/index.d.ts +4 -3
  32. package/dist/core/loaders/useFBX/component.vue.d.ts +18 -18
  33. package/dist/core/loaders/useFBX/index.d.ts +2 -1
  34. package/dist/core/loaders/useGLTF/component.vue.d.ts +25 -25
  35. package/dist/core/loaders/useGLTF/index.d.ts +14 -9
  36. package/dist/core/loaders/useProgress.d.ts +2 -1
  37. package/dist/core/loaders/useVideoTexture.d.ts +1 -0
  38. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +7 -5
  39. package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +41 -0
  40. package/dist/core/materials/holographicMaterial/index.vue.d.ts +86 -0
  41. package/dist/core/materials/holographicMaterial/material.d.ts +27 -0
  42. package/dist/core/materials/index.d.ts +7 -5
  43. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -3
  44. package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
  45. package/dist/core/materials/{blurPass.d.ts → meshReflectionMaterial/BlurPass.d.ts} +8 -6
  46. package/dist/core/materials/{convolutionMaterial.d.ts → meshReflectionMaterial/ConvolutionMaterial.d.ts} +1 -0
  47. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +180 -49
  48. package/dist/core/materials/meshReflectionMaterial/material.d.ts +33 -36
  49. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +17 -15
  50. package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
  51. package/dist/core/misc/BakeShadows.d.ts +1 -1
  52. package/dist/core/misc/Stats.d.ts +2 -2
  53. package/dist/core/misc/StatsGl.d.ts +1 -1
  54. package/dist/core/misc/html/HTML.vue.d.ts +22 -17
  55. package/dist/core/misc/html/utils.d.ts +3 -3
  56. package/dist/core/misc/index.d.ts +3 -3
  57. package/dist/core/misc/useGLTFExporter.d.ts +2 -1
  58. package/dist/core/shapes/Box.vue.d.ts +22 -19
  59. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +15 -12
  60. package/dist/core/shapes/Circle.vue.d.ts +22 -19
  61. package/dist/core/shapes/Cone.vue.d.ts +22 -19
  62. package/dist/core/shapes/Cylinder.vue.d.ts +60 -0
  63. package/dist/core/shapes/Dodecahedron.vue.d.ts +22 -19
  64. package/dist/core/shapes/Icosahedron.vue.d.ts +22 -19
  65. package/dist/core/shapes/Line2.vue.d.ts +16 -13
  66. package/dist/core/shapes/Octahedron.vue.d.ts +22 -19
  67. package/dist/core/shapes/Plane.vue.d.ts +22 -19
  68. package/dist/core/shapes/Ring.vue.d.ts +22 -19
  69. package/dist/core/shapes/RoundedBox.vue.d.ts +22 -19
  70. package/dist/core/shapes/Sphere.vue.d.ts +22 -19
  71. package/dist/core/shapes/Superformula.vue.d.ts +35 -32
  72. package/dist/core/shapes/Tetrahedron.vue.d.ts +22 -19
  73. package/dist/core/shapes/Torus.vue.d.ts +22 -19
  74. package/dist/core/shapes/TorusKnot.vue.d.ts +22 -19
  75. package/dist/core/shapes/Tube.vue.d.ts +22 -20
  76. package/dist/core/shapes/index.d.ts +20 -18
  77. package/dist/core/staging/Backdrop.vue.d.ts +18 -14
  78. package/dist/core/staging/ContactShadows.vue.d.ts +168 -0
  79. package/dist/core/staging/Fit.vue.d.ts +64 -0
  80. package/dist/core/staging/Ocean.vue.d.ts +26 -23
  81. package/dist/core/staging/Precipitation.vue.d.ts +21 -18
  82. package/dist/core/staging/Sky.vue.d.ts +14 -13
  83. package/dist/core/staging/Smoke.vue.d.ts +18 -17
  84. package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
  85. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +7 -7
  86. package/dist/core/staging/Sparkles/component.vue.d.ts +33 -31
  87. package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
  88. package/dist/core/staging/Stars.vue.d.ts +16 -16
  89. package/dist/core/staging/index.d.ts +13 -10
  90. package/dist/core/staging/useEnvironment/component.vue.d.ts +64 -0
  91. package/dist/core/staging/useEnvironment/const.d.ts +28 -0
  92. package/dist/core/staging/useEnvironment/envSence.d.ts +9 -0
  93. package/dist/core/staging/useEnvironment/index.d.ts +5 -3
  94. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +56 -0
  95. package/dist/trescientos.js +7318 -6360
  96. package/dist/trescientos.umd.cjs +566 -428
  97. package/dist/utils/Gradient.d.ts +3 -2
  98. package/dist/utils/index.d.ts +1 -0
  99. package/dist/utils/types.d.ts +4 -0
  100. package/package.json +29 -29
  101. package/dist/core/directives/index.d.ts +0 -5
  102. package/dist/core/directives/vAlwaysLookAt.d.ts +0 -4
  103. package/dist/core/directives/vDistanceTo.d.ts +0 -4
  104. package/dist/core/directives/vLightHelper.d.ts +0 -5
  105. package/dist/core/directives/vLog.d.ts +0 -3
  106. package/dist/core/misc/useTweakPane/index.d.ts +0 -10
@@ -1,6 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { TubeGeometry } from 'three';
3
- import { QuadraticBezierCurve3, Vector3 } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { TubeGeometry, QuadraticBezierCurve3 } from 'three';
3
+
4
4
  export interface TubeProps {
5
5
  /**
6
6
  * The curve, segments, radius, radialSegments, closed.
@@ -19,30 +19,23 @@ export interface TubeProps {
19
19
  */
20
20
  color?: TresColor;
21
21
  }
22
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TubeProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TubeProps>, {
23
26
  args: () => (number | boolean | QuadraticBezierCurve3)[];
24
27
  color: string;
25
28
  }>, {
26
- value: import("vue").ShallowRef<any>;
27
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TubeProps>, {
29
+ instance: import('vue').ShallowRef<any>;
30
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TubeProps>, {
28
31
  args: () => (number | boolean | QuadraticBezierCurve3)[];
29
32
  color: string;
30
33
  }>>>, {
31
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
32
- args: [path?: import("three").Curve<Vector3> | undefined, tubularSegments?: number | undefined, radius?: number | undefined, radialSegments?: number | undefined, closed?: boolean | undefined];
33
- }, {}>, {
34
- default?(_: {}): any;
35
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof TubeGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
36
38
  export default _default;
37
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
38
- type __VLS_TypePropsToRuntimeProps<T> = {
39
- [K in keyof T]-?: {} extends Pick<T, K> ? {
40
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
41
- } : {
42
- type: import('vue').PropType<T[K]>;
43
- required: true;
44
- };
45
- };
46
39
  type __VLS_WithDefaults<P, D> = {
47
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
41
  default: D[K];
@@ -56,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
56
49
  $slots: S;
57
50
  };
58
51
  };
52
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
+ type __VLS_TypePropsToOption<T> = {
54
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
55
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
+ } : {
57
+ type: import('vue').PropType<T[K]>;
58
+ required: true;
59
+ };
60
+ };
@@ -1,18 +1,20 @@
1
- import Box from './Box.vue';
2
- import CatmullRomCurve3 from './CatmullRomCurve3.vue';
3
- import Circle from './Circle.vue';
4
- import Cone from './Cone.vue';
5
- import Dodecahedron from './Dodecahedron.vue';
6
- import Icosahedron from './Icosahedron.vue';
7
- import Line2 from './Line2.vue';
8
- import Octahedron from './Octahedron.vue';
9
- import Plane from './Plane.vue';
10
- import Ring from './Ring.vue';
11
- import RoundedBox from './RoundedBox.vue';
12
- import Sphere from './Sphere.vue';
13
- import Superformula from './Superformula.vue';
14
- import Tetrahedron from './Tetrahedron.vue';
15
- import Torus from './Torus.vue';
16
- import TorusKnot from './TorusKnot.vue';
17
- import Tube from './Tube.vue';
18
- export { Box, CatmullRomCurve3, Circle, Cone, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
1
+ import { default as Box } from './Box.vue';
2
+ import { default as CatmullRomCurve3 } from './CatmullRomCurve3.vue';
3
+ import { default as Circle } from './Circle.vue';
4
+ import { default as Cone } from './Cone.vue';
5
+ import { default as Cylinder } from './Cylinder.vue';
6
+ import { default as Dodecahedron } from './Dodecahedron.vue';
7
+ import { default as Icosahedron } from './Icosahedron.vue';
8
+ import { default as Line2 } from './Line2.vue';
9
+ import { default as Octahedron } from './Octahedron.vue';
10
+ import { default as Plane } from './Plane.vue';
11
+ import { default as Ring } from './Ring.vue';
12
+ import { default as RoundedBox } from './RoundedBox.vue';
13
+ import { default as Sphere } from './Sphere.vue';
14
+ import { default as Superformula } from './Superformula.vue';
15
+ import { default as Tetrahedron } from './Tetrahedron.vue';
16
+ import { default as Torus } from './Torus.vue';
17
+ import { default as TorusKnot } from './TorusKnot.vue';
18
+ import { default as Tube } from './Tube.vue';
19
+
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 const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
6
+ declare function __VLS_template(): {
7
+ default?(_: {}): any;
8
+ };
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BackdropProps>, {
7
10
  floor: number;
8
11
  segments: number;
9
12
  receiveShadow: boolean;
10
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
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_TypePropsToOption<BackdropProps>, {
11
16
  floor: number;
12
17
  segments: number;
13
18
  receiveShadow: boolean;
@@ -15,19 +20,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
15
20
  receiveShadow: boolean;
16
21
  floor: number;
17
22
  segments: number;
18
- }, {}>, {
19
- default?(_: {}): any;
20
- }>;
23
+ }, {}>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
21
25
  export default _default;
22
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
23
- type __VLS_TypePropsToRuntimeProps<T> = {
24
- [K in keyof T]-?: {} extends Pick<T, K> ? {
25
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
26
- } : {
27
- type: import('vue').PropType<T[K]>;
28
- required: true;
29
- };
30
- };
31
26
  type __VLS_WithDefaults<P, D> = {
32
27
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
33
28
  default: D[K];
@@ -41,3 +36,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
41
36
  $slots: S;
42
37
  };
43
38
  };
39
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
+ type __VLS_TypePropsToOption<T> = {
41
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
42
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
43
+ } : {
44
+ type: import('vue').PropType<T[K]>;
45
+ required: true;
46
+ };
47
+ };
@@ -0,0 +1,168 @@
1
+ import { TresColor } from '@tresjs/core';
2
+ import { Group } from 'three';
3
+
4
+ export interface ContactShadowsProps {
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 blur of the shadows.
16
+ *
17
+ * @default 1
18
+ * @type {number}
19
+ * @memberof ContactShadowsProps
20
+ *
21
+ */
22
+ blur?: number;
23
+ /**
24
+ * The color of the shadows.
25
+ *
26
+ * @default '#000000'
27
+ * @type {TresColor}
28
+ * @memberof ContactShadowsProps
29
+ *
30
+ */
31
+ color?: TresColor;
32
+ /**
33
+ * The tint at the "core" of the shadows.
34
+ *
35
+ * @default undefined
36
+ * @type {TresColor}
37
+ * @memberof ContactShadowsProps
38
+ *
39
+ */
40
+ tint?: TresColor;
41
+ /**
42
+ * The scale of the shadows.
43
+ */
44
+ scale?: number | [x: number, y: number];
45
+ /**
46
+ * The width of the shadow plane.
47
+ *
48
+ * @default 1
49
+ * @type {number}
50
+ * @memberof ContactShadowsProps
51
+ *
52
+ */
53
+ width?: number;
54
+ /**
55
+ * The height of the shadow plane.
56
+ *
57
+ * @default 1
58
+ * @type {number}
59
+ * @memberof ContactShadowsProps
60
+ *
61
+ */
62
+ height?: number;
63
+ /**
64
+ * How far the OrthographicCamera should be to capture the shadows.
65
+ *
66
+ * @default 10
67
+ * @type {number}
68
+ * @memberof ContactShadowsProps
69
+ *
70
+ */
71
+ far?: number;
72
+ /**
73
+ * Whether the shadows should be smooth or not.
74
+ *
75
+ * @default true
76
+ * @type {boolean}
77
+ * @memberof ContactShadowsProps
78
+ *
79
+ */
80
+ smooth?: boolean;
81
+ /**
82
+ * The resolution of the shadows.
83
+ *
84
+ * @default 512
85
+ * @type {number}
86
+ * @memberof ContactShadowsProps
87
+ *
88
+ */
89
+ resolution?: number;
90
+ /**
91
+ * The number of frames to render the shadows.
92
+ *
93
+ * @default Infinity
94
+ * @type {number}
95
+ * @memberof ContactShadowsProps
96
+ *
97
+ */
98
+ frames?: number;
99
+ /**
100
+ * Whether the shadows should write to the depth buffer or not.
101
+ *
102
+ * @default false
103
+ * @type {boolean}
104
+ * @memberof ContactShadowsProps
105
+ *
106
+ */
107
+ depthWrite?: boolean;
108
+ }
109
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ContactShadowsProps>, {
110
+ opacity: number;
111
+ blur: number;
112
+ color: string;
113
+ tint: undefined;
114
+ scale: number;
115
+ width: number;
116
+ height: number;
117
+ far: number;
118
+ smooth: boolean;
119
+ resolution: number;
120
+ frames: number;
121
+ depthWrite: boolean;
122
+ }>, {
123
+ instance: Group<import('three').Object3DEventMap>;
124
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ContactShadowsProps>, {
125
+ opacity: number;
126
+ blur: number;
127
+ color: string;
128
+ tint: undefined;
129
+ scale: number;
130
+ width: number;
131
+ height: number;
132
+ far: number;
133
+ smooth: boolean;
134
+ resolution: number;
135
+ frames: number;
136
+ depthWrite: boolean;
137
+ }>>>, {
138
+ height: number;
139
+ color: TresColor;
140
+ scale: number | [x: number, y: number];
141
+ width: number;
142
+ blur: number;
143
+ depthWrite: boolean;
144
+ opacity: number;
145
+ resolution: number;
146
+ far: number;
147
+ frames: number;
148
+ tint: TresColor;
149
+ smooth: boolean;
150
+ }, {}>;
151
+ export default _default;
152
+ type __VLS_WithDefaults<P, D> = {
153
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
154
+ default: D[K];
155
+ }> : P[K];
156
+ };
157
+ type __VLS_Prettify<T> = {
158
+ [K in keyof T]: T[K];
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
+ };
@@ -0,0 +1,64 @@
1
+ import { Object3D, Box3, Vector3 } from 'three';
2
+
3
+ export interface Props {
4
+ /**
5
+ * If `into` is:
6
+ * - omitted or explicitly `undefined`: position/scale children to fit into a 1 × 1 × 1 `Box3` at world origin.
7
+ * - `null`: turn off `<Fit />`; reset scale/position of children.
8
+ * - `number`: convert argument to `Vector3(number, number, number)`.
9
+ * - `[number, number, number]`: convert argument to `Vector3`.
10
+ * - `Vector3`: position/scale children to fit inside a `Box3` of size `Vector3` at target objects' cumulative center.
11
+ * - `Box3`: position/scale children to fit inside `Box3`.
12
+ * - `Object3D`: position/scale children to fit inside calculated `Box3`. [See `THREE.Box3.setFromObject`](https://threejs.org/docs/#api/en/math/Box3.setFromObject). `<Fit />` must not contain the `Object3D` and vice-versa.
13
+ */
14
+ into?: number | [number, number, number] | Vector3 | Box3 | Object3D | null;
15
+ /** [See `precise` argument in `THREE.Box3.setFromObject`](https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject) */
16
+ precise?: boolean;
17
+ }
18
+ declare const props: Readonly<{}> & {
19
+ readonly into: number | Box3 | Vector3 | Object3D<import('three').Object3DEventMap> | [number, number, number] | null;
20
+ readonly precise: boolean;
21
+ } & {
22
+ readonly precise: boolean;
23
+ };
24
+ declare function __VLS_template(): {
25
+ default?(_: {}): any;
26
+ };
27
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
28
+ into: () => Box3;
29
+ precise: boolean;
30
+ }>, {
31
+ instance: import('vue').ShallowRef<any>;
32
+ fit: (into?: typeof props.into, precise?: boolean) => void;
33
+ update: () => void;
34
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
35
+ into: () => Box3;
36
+ precise: boolean;
37
+ }>>>, {
38
+ into: number | [number, number, number] | Vector3 | Box3 | Object3D | null;
39
+ precise: boolean;
40
+ }, {}>;
41
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
42
+ export default _default;
43
+ type __VLS_WithDefaults<P, D> = {
44
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
45
+ default: D[K];
46
+ }> : P[K];
47
+ };
48
+ type __VLS_Prettify<T> = {
49
+ [K in keyof T]: T[K];
50
+ } & {};
51
+ type __VLS_WithTemplateSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
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,5 +1,6 @@
1
- import type { TresColor, TresVector3 } from '@tresjs/core';
1
+ import { TresColor, TresVector3 } from '@tresjs/core';
2
2
  import { Vector3 } from 'three';
3
+
3
4
  export interface OceanProps {
4
5
  /**
5
6
  * The textureWidth of the internal WebGLRenderTarget.
@@ -53,7 +54,7 @@ export interface OceanProps {
53
54
  */
54
55
  waterColor?: TresColor;
55
56
  /**
56
- * The distortion scale of the reflections.
57
+ * The distortion scale of the reflections.
57
58
  * @default 3.7
58
59
  * @type {number}
59
60
  * @memberof OceanProps
@@ -97,7 +98,10 @@ export interface OceanProps {
97
98
  */
98
99
  side?: TresVector3;
99
100
  }
100
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
101
+ declare function __VLS_template(): {
102
+ default?(_: {}): any;
103
+ };
104
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OceanProps>, {
101
105
  textureWidth: number;
102
106
  textureHeight: number;
103
107
  waterNormals: string;
@@ -110,8 +114,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
110
114
  alpha: number;
111
115
  side: 0;
112
116
  }>, {
113
- root: import("vue").ShallowRef<any>;
114
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
117
+ instance: import('vue').ShallowRef<any>;
118
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OceanProps>, {
115
119
  textureWidth: number;
116
120
  textureHeight: number;
117
121
  waterNormals: string;
@@ -124,30 +128,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
124
128
  alpha: number;
125
129
  side: 0;
126
130
  }>>>, {
127
- side: number | Vector3 | import("@tresjs/core").VectorCoordinates | [x: number, y: number, z: number];
131
+ size: number;
128
132
  textureWidth: number;
129
133
  textureHeight: number;
130
134
  clipBias: number;
131
- size: number;
135
+ side: TresVector3;
136
+ alpha: number;
132
137
  waterNormals: string;
133
- sunDirection: number | Vector3 | import("@tresjs/core").VectorCoordinates | [x: number, y: number, z: number];
134
- sunColor: import("three").ColorRepresentation | [r: number, g: number, b: number];
135
- waterColor: import("three").ColorRepresentation | [r: number, g: number, b: number];
138
+ sunDirection: TresVector3;
139
+ sunColor: TresColor;
140
+ waterColor: TresColor;
136
141
  distortionScale: number;
137
- alpha: number;
138
- }, {}>, {
139
- default?(_: {}): any;
140
- }>;
142
+ }, {}>;
143
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
141
144
  export default _default;
142
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
143
- type __VLS_TypePropsToRuntimeProps<T> = {
144
- [K in keyof T]-?: {} extends Pick<T, K> ? {
145
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
146
- } : {
147
- type: import('vue').PropType<T[K]>;
148
- required: true;
149
- };
150
- };
151
145
  type __VLS_WithDefaults<P, D> = {
152
146
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
153
147
  default: D[K];
@@ -161,3 +155,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
161
155
  $slots: S;
162
156
  };
163
157
  };
158
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
159
+ type __VLS_TypePropsToOption<T> = {
160
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
161
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
162
+ } : {
163
+ type: import('vue').PropType<T[K]>;
164
+ required: true;
165
+ };
166
+ };
@@ -1,4 +1,5 @@
1
- import type { TresColor } from '@tresjs/core';
1
+ import { TresColor } from '@tresjs/core';
2
+
2
3
  export interface PrecipitationProps {
3
4
  /**
4
5
  * The size of the drops.
@@ -108,7 +109,7 @@ export interface PrecipitationProps {
108
109
  */
109
110
  sizeAttenuation?: boolean;
110
111
  }
111
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
112
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PrecipitationProps>, {
112
113
  size: number;
113
114
  area: () => number[];
114
115
  color: number;
@@ -120,7 +121,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
120
121
  depthWrite: boolean;
121
122
  transparent: boolean;
122
123
  sizeAttenuation: boolean;
123
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
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_TypePropsToOption<PrecipitationProps>, {
124
127
  size: number;
125
128
  area: () => number[];
126
129
  color: number;
@@ -133,28 +136,19 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
133
136
  transparent: boolean;
134
137
  sizeAttenuation: boolean;
135
138
  }>>>, {
139
+ size: number;
140
+ color: TresColor;
141
+ area: [number, number, number];
136
142
  speed: number;
137
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
143
+ count: number;
138
144
  alphaTest: number;
139
145
  depthWrite: boolean;
140
- opacity: number;
146
+ sizeAttenuation: boolean;
141
147
  transparent: boolean;
142
- count: number;
143
- size: number;
144
- area: [number, number, number];
148
+ opacity: number;
145
149
  randomness: number;
146
- sizeAttenuation: boolean;
147
150
  }, {}>;
148
151
  export default _default;
149
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
150
- type __VLS_TypePropsToRuntimeProps<T> = {
151
- [K in keyof T]-?: {} extends Pick<T, K> ? {
152
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
153
- } : {
154
- type: import('vue').PropType<T[K]>;
155
- required: true;
156
- };
157
- };
158
152
  type __VLS_WithDefaults<P, D> = {
159
153
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
160
154
  default: D[K];
@@ -163,3 +157,12 @@ type __VLS_WithDefaults<P, D> = {
163
157
  type __VLS_Prettify<T> = {
164
158
  [K in keyof T]: T[K];
165
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
+ };
@@ -1,5 +1,6 @@
1
1
  import { Vector3 } from 'three';
2
- import { Sky as SkyImpl } from 'three/examples/jsm/objects/Sky';
2
+ import { Sky as SkyImpl } from 'three-stdlib';
3
+
3
4
  export interface SkyProps {
4
5
  /**
5
6
  * Haziness
@@ -31,7 +32,7 @@ export interface SkyProps {
31
32
  */
32
33
  distance?: number;
33
34
  }
34
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
35
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SkyProps>, {
35
36
  turbidity: number;
36
37
  rayleigh: number;
37
38
  mieCoefficient: number;
@@ -40,9 +41,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
40
41
  azimuth: number;
41
42
  distance: number;
42
43
  }>, {
43
- root: import("vue").ShallowRef<SkyImpl | undefined>;
44
+ instance: import('vue').ShallowRef<SkyImpl | undefined>;
44
45
  sunPosition: Vector3;
45
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
46
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SkyProps>, {
46
47
  turbidity: number;
47
48
  rayleigh: number;
48
49
  mieCoefficient: number;
@@ -60,15 +61,6 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
60
61
  azimuth: number;
61
62
  }, {}>;
62
63
  export default _default;
63
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
64
- type __VLS_TypePropsToRuntimeProps<T> = {
65
- [K in keyof T]-?: {} extends Pick<T, K> ? {
66
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
67
- } : {
68
- type: import('vue').PropType<T[K]>;
69
- required: true;
70
- };
71
- };
72
64
  type __VLS_WithDefaults<P, D> = {
73
65
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
74
66
  default: D[K];
@@ -77,3 +69,12 @@ type __VLS_WithDefaults<P, D> = {
77
69
  type __VLS_Prettify<T> = {
78
70
  [K in keyof T]: T[K];
79
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
+ };