@tresjs/cientos 3.6.0 → 3.8.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 (62) hide show
  1. package/README.md +7 -6
  2. package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
  3. package/dist/core/abstractions/Lensflare/component.vue.d.ts +52 -14
  4. package/dist/core/abstractions/Levioso.vue.d.ts +1 -1
  5. package/dist/core/abstractions/MouseParallax.vue.d.ts +1 -1
  6. package/dist/core/abstractions/Reflector.vue.d.ts +107 -0
  7. package/dist/core/abstractions/Text3D.vue.d.ts +2 -2
  8. package/dist/core/abstractions/index.d.ts +4 -1
  9. package/dist/core/abstractions/useFBO/component.vue.d.ts +1 -1
  10. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +21 -0
  11. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +620 -0
  12. package/dist/core/controls/CameraControls.vue.d.ts +959 -1034
  13. package/dist/core/controls/KeyboardControls.vue.d.ts +1 -1
  14. package/dist/core/controls/MapControls.vue.d.ts +1 -1
  15. package/dist/core/controls/OrbitControls.vue.d.ts +893 -963
  16. package/dist/core/controls/PointerLockControls.vue.d.ts +3 -1
  17. package/dist/core/controls/ScrollControls.vue.d.ts +1 -1
  18. package/dist/core/controls/TransformControls.vue.d.ts +1 -1
  19. package/dist/core/loaders/SVG/component.vue.d.ts +1 -1
  20. package/dist/core/loaders/useFBX/component.vue.d.ts +44 -3
  21. package/dist/core/loaders/useGLTF/component.vue.d.ts +31 -1
  22. package/dist/core/loaders/useGLTF/index.d.ts +1 -1
  23. package/dist/core/materials/blurPass.d.ts +22 -0
  24. package/dist/core/materials/convolutionMaterial.d.ts +7 -0
  25. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +1 -1
  26. package/dist/core/materials/index.d.ts +2 -1
  27. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
  28. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +74 -0
  29. package/dist/core/materials/meshReflectionMaterial/material.d.ts +51 -0
  30. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +1 -1
  31. package/dist/core/misc/BakeShadows.d.ts +1 -0
  32. package/dist/core/misc/Stats.d.ts +1 -1
  33. package/dist/core/misc/StatsGl.d.ts +1 -1
  34. package/dist/core/misc/html/HTML.vue.d.ts +3 -3
  35. package/dist/core/misc/index.d.ts +3 -1
  36. package/dist/core/misc/useGLTFExporter.d.ts +12 -0
  37. package/dist/core/shapes/Box.vue.d.ts +1 -1
  38. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +1 -1
  39. package/dist/core/shapes/Circle.vue.d.ts +1 -1
  40. package/dist/core/shapes/Cone.vue.d.ts +1 -1
  41. package/dist/core/shapes/Dodecahedron.vue.d.ts +1 -1
  42. package/dist/core/shapes/Icosahedron.vue.d.ts +1 -1
  43. package/dist/core/shapes/Line2.vue.d.ts +1 -1
  44. package/dist/core/shapes/Octahedron.vue.d.ts +1 -1
  45. package/dist/core/shapes/Plane.vue.d.ts +1 -1
  46. package/dist/core/shapes/Ring.vue.d.ts +1 -1
  47. package/dist/core/shapes/Sphere.vue.d.ts +1 -1
  48. package/dist/core/shapes/Superformula.vue.d.ts +1 -1
  49. package/dist/core/shapes/Tetrahedron.vue.d.ts +1 -1
  50. package/dist/core/shapes/Torus.vue.d.ts +1 -1
  51. package/dist/core/shapes/TorusKnot.vue.d.ts +1 -1
  52. package/dist/core/shapes/Tube.vue.d.ts +1 -1
  53. package/dist/core/staging/Backdrop.vue.d.ts +1 -1
  54. package/dist/core/staging/Precipitation.vue.d.ts +2 -2
  55. package/dist/core/staging/Sky.vue.d.ts +23 -1
  56. package/dist/core/staging/Smoke.vue.d.ts +1 -1
  57. package/dist/core/staging/Sparkles/component.vue.d.ts +3 -3
  58. package/dist/core/staging/Stars.vue.d.ts +3 -3
  59. package/dist/trescientos.js +7769 -5714
  60. package/dist/trescientos.umd.cjs +302 -114
  61. package/dist/utils/constants.d.ts +1 -0
  62. package/package.json +26 -26
@@ -120,7 +120,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
120
120
  depthWrite: boolean;
121
121
  transparent: boolean;
122
122
  sizeAttenuation: boolean;
123
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
123
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PrecipitationProps>, {
124
124
  size: number;
125
125
  area: () => number[];
126
126
  color: number;
@@ -139,9 +139,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
139
139
  depthWrite: boolean;
140
140
  opacity: number;
141
141
  transparent: boolean;
142
+ count: number;
142
143
  size: number;
143
144
  area: [number, number, number];
144
- count: number;
145
145
  randomness: number;
146
146
  sizeAttenuation: boolean;
147
147
  }, {}>;
@@ -1,10 +1,32 @@
1
1
  export interface SkyProps {
2
+ /**
3
+ * Haziness
4
+ * @param {number} turbidity
5
+ */
2
6
  turbidity?: number;
7
+ /**
8
+ * [Rayleigh scattering](https://en.wikipedia.org/wiki/Rayleigh_scattering)
9
+ */
3
10
  rayleigh?: number;
11
+ /**
12
+ * [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) amount
13
+ */
4
14
  mieCoefficient?: number;
15
+ /**
16
+ * [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) direction
17
+ */
5
18
  mieDirectionalG?: number;
19
+ /**
20
+ * Sun's elevation from the horizon, in degrees
21
+ */
6
22
  elevation?: number;
23
+ /**
24
+ * Sun's [azimuth angle](https://en.wikipedia.org/wiki/Solar_azimuth_angle), in degrees – its horizontal coordinate on the horizon
25
+ */
7
26
  azimuth?: number;
27
+ /**
28
+ * Sky box scale
29
+ */
8
30
  distance?: number;
9
31
  }
10
32
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
@@ -15,7 +37,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
15
37
  elevation: number;
16
38
  azimuth: number;
17
39
  distance: number;
18
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
40
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SkyProps>, {
19
41
  turbidity: number;
20
42
  rayleigh: number;
21
43
  mieCoefficient: number;
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
76
76
  depthTest: boolean;
77
77
  }>, {
78
78
  value: import("vue").ShallowRef<any>;
79
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SmokeProps>, {
79
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SmokeProps>, {
80
80
  opacity: number;
81
81
  speed: number;
82
82
  width: number;
@@ -164,7 +164,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
164
164
  blending: 2;
165
165
  transparent: boolean;
166
166
  depthWrite: boolean;
167
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SparkleProps>, {
167
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SparkleProps>, {
168
168
  map: string;
169
169
  geometry: undefined;
170
170
  directionalLight: undefined;
@@ -214,8 +214,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
214
214
  surfaceDistance: number;
215
215
  sequenceColor: Gradient<import("three").ColorRepresentation | [r: number, g: number, b: number]>;
216
216
  sequenceAlpha: Gradient<number>;
217
- sequenceOffset: Gradient<VectorFlexibleParams>;
218
- sequenceNoise: Gradient<VectorFlexibleParams>;
217
+ sequenceOffset: any;
218
+ sequenceNoise: any;
219
219
  sequenceSize: Gradient<number>;
220
220
  sequenceSurfaceDistance: Gradient<number>;
221
221
  mixColor: number;
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
75
75
  radius: number;
76
76
  }>, {
77
77
  value: import("vue").ShallowRef<any>;
78
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
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;
81
81
  transparent: boolean;
@@ -87,11 +87,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
87
87
  }>>>, {
88
88
  alphaTest: number;
89
89
  transparent: boolean;
90
+ count: number;
91
+ radius: number;
90
92
  size: number;
91
93
  depth: number;
92
94
  alphaMap: null;
93
- count: number;
94
- radius: number;
95
95
  sizeAttenuation: boolean;
96
96
  }, {}>;
97
97
  export default _default;