@tresjs/cientos 4.0.0-next.1 → 4.0.0-rc.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.
Files changed (60) hide show
  1. package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +1 -1
  2. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +15 -15
  3. package/dist/core/abstractions/Lensflare/component.vue.d.ts +12 -12
  4. package/dist/core/abstractions/Levioso.vue.d.ts +11 -11
  5. package/dist/core/abstractions/MouseParallax.vue.d.ts +11 -11
  6. package/dist/core/abstractions/PositionalAudio.vue.d.ts +13 -13
  7. package/dist/core/abstractions/Reflector.vue.d.ts +11 -11
  8. package/dist/core/abstractions/Text3D.vue.d.ts +132 -11
  9. package/dist/core/abstractions/useFBO/component.vue.d.ts +14 -11
  10. package/dist/core/abstractions/useFBO/index.d.ts +8 -0
  11. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +8 -8
  12. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +3 -3
  13. package/dist/core/controls/CameraControls.vue.d.ts +22 -22
  14. package/dist/core/controls/KeyboardControls.vue.d.ts +11 -11
  15. package/dist/core/controls/MapControls.vue.d.ts +21 -21
  16. package/dist/core/controls/OrbitControls.vue.d.ts +25 -25
  17. package/dist/core/controls/PointerLockControls.vue.d.ts +11 -11
  18. package/dist/core/controls/ScrollControls.vue.d.ts +11 -11
  19. package/dist/core/controls/TransformControls.vue.d.ts +11 -11
  20. package/dist/core/loaders/SVG/component.vue.d.ts +11 -11
  21. package/dist/core/loaders/useFBX/component.vue.d.ts +11 -11
  22. package/dist/core/loaders/useGLTF/component.vue.d.ts +11 -11
  23. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -3
  24. package/dist/core/materials/holographicMaterial/index.vue.d.ts +11 -11
  25. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +11 -11
  26. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +11 -11
  27. package/dist/core/misc/html/HTML.vue.d.ts +11 -11
  28. package/dist/core/shapes/Box.vue.d.ts +11 -11
  29. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +11 -11
  30. package/dist/core/shapes/Circle.vue.d.ts +11 -11
  31. package/dist/core/shapes/Cone.vue.d.ts +11 -11
  32. package/dist/core/shapes/Cylinder.vue.d.ts +11 -11
  33. package/dist/core/shapes/Dodecahedron.vue.d.ts +11 -11
  34. package/dist/core/shapes/Icosahedron.vue.d.ts +11 -11
  35. package/dist/core/shapes/Line2.vue.d.ts +11 -11
  36. package/dist/core/shapes/Octahedron.vue.d.ts +11 -11
  37. package/dist/core/shapes/Plane.vue.d.ts +11 -11
  38. package/dist/core/shapes/Ring.vue.d.ts +11 -11
  39. package/dist/core/shapes/RoundedBox.vue.d.ts +11 -11
  40. package/dist/core/shapes/Sphere.vue.d.ts +11 -11
  41. package/dist/core/shapes/Superformula.vue.d.ts +11 -11
  42. package/dist/core/shapes/Tetrahedron.vue.d.ts +11 -11
  43. package/dist/core/shapes/Torus.vue.d.ts +11 -11
  44. package/dist/core/shapes/TorusKnot.vue.d.ts +11 -11
  45. package/dist/core/shapes/Tube.vue.d.ts +11 -11
  46. package/dist/core/staging/Backdrop.vue.d.ts +11 -11
  47. package/dist/core/staging/ContactShadows.vue.d.ts +57 -62
  48. package/dist/core/staging/Fit.vue.d.ts +17 -12
  49. package/dist/core/staging/Ocean.vue.d.ts +14 -14
  50. package/dist/core/staging/Precipitation.vue.d.ts +18 -18
  51. package/dist/core/staging/Sky.vue.d.ts +11 -11
  52. package/dist/core/staging/Smoke.vue.d.ts +13 -13
  53. package/dist/core/staging/Sparkles/component.vue.d.ts +17 -17
  54. package/dist/core/staging/Stars.vue.d.ts +15 -15
  55. package/dist/core/staging/useEnvironment/component.vue.d.ts +15 -15
  56. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +11 -11
  57. package/dist/trescientos.js +4816 -4744
  58. package/dist/trescientos.umd.cjs +64 -64
  59. package/package.json +10 -10
  60. package/dist/composables/useOnDemandInvalidation.d.ts +0 -3
@@ -23,12 +23,12 @@ export interface BoxProps {
23
23
  declare function __VLS_template(): {
24
24
  default?(_: {}): any;
25
25
  };
26
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BoxProps>, {
27
27
  args: () => number[];
28
28
  color: string;
29
29
  }>, {
30
30
  instance: import('vue').ShallowRef<any>;
31
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
31
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BoxProps>, {
32
32
  args: () => number[];
33
33
  color: string;
34
34
  }>>>, {
@@ -37,15 +37,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
37
37
  }, {}>;
38
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
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];
@@ -59,3 +50,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
59
50
  $slots: S;
60
51
  };
61
52
  };
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToOption<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: import('vue').PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
@@ -23,12 +23,12 @@ export interface SphereProps {
23
23
  declare function __VLS_template(): {
24
24
  default?(_: {}): any;
25
25
  };
26
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SphereProps>, {
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SphereProps>, {
27
27
  args: () => number[];
28
28
  color: string;
29
29
  }>, {
30
30
  instance: import('vue').ShallowRef<any>;
31
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SphereProps>, {
31
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SphereProps>, {
32
32
  args: () => number[];
33
33
  color: string;
34
34
  }>>>, {
@@ -37,15 +37,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
37
37
  }, {}>;
38
38
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
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];
@@ -59,3 +50,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
59
50
  $slots: S;
60
51
  };
61
52
  };
53
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
54
+ type __VLS_TypePropsToOption<T> = {
55
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
56
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
57
+ } : {
58
+ type: import('vue').PropType<T[K]>;
59
+ required: true;
60
+ };
61
+ };
@@ -35,7 +35,7 @@ export interface SuperFormulaProps {
35
35
  declare function __VLS_template(): {
36
36
  default?(_: {}): any;
37
37
  };
38
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
38
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SuperFormulaProps>, {
39
39
  widthSegments: number;
40
40
  heightSegments: number;
41
41
  numArmsA: number;
@@ -45,7 +45,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
45
45
  color: string;
46
46
  }>, {
47
47
  instance: import('vue').ShallowRef<any>;
48
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
48
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SuperFormulaProps>, {
49
49
  widthSegments: number;
50
50
  heightSegments: number;
51
51
  numArmsA: number;
@@ -64,15 +64,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
64
64
  }, {}>;
65
65
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
66
66
  export default _default;
67
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
68
- type __VLS_TypePropsToRuntimeProps<T> = {
69
- [K in keyof T]-?: {} extends Pick<T, K> ? {
70
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
71
- } : {
72
- type: import('vue').PropType<T[K]>;
73
- required: true;
74
- };
75
- };
76
67
  type __VLS_WithDefaults<P, D> = {
77
68
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
78
69
  default: D[K];
@@ -86,3 +77,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
86
77
  $slots: S;
87
78
  };
88
79
  };
80
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
81
+ type __VLS_TypePropsToOption<T> = {
82
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
83
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
84
+ } : {
85
+ type: import('vue').PropType<T[K]>;
86
+ required: true;
87
+ };
88
+ };
@@ -22,12 +22,12 @@ export interface TetrahedronProps {
22
22
  declare function __VLS_template(): {
23
23
  default?(_: {}): any;
24
24
  };
25
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TetrahedronProps>, {
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TetrahedronProps>, {
26
26
  args: () => number[];
27
27
  color: string;
28
28
  }>, {
29
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_TypePropsToRuntimeProps<TetrahedronProps>, {
30
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TetrahedronProps>, {
31
31
  args: () => number[];
32
32
  color: string;
33
33
  }>>>, {
@@ -36,15 +36,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
36
36
  }, {}>;
37
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
38
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<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
- };
48
39
  type __VLS_WithDefaults<P, D> = {
49
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
41
  default: D[K];
@@ -58,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
58
49
  $slots: S;
59
50
  };
60
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
+ };
@@ -22,12 +22,12 @@ export interface TorusProps {
22
22
  declare function __VLS_template(): {
23
23
  default?(_: {}): any;
24
24
  };
25
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusProps>, {
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusProps>, {
26
26
  args: () => number[];
27
27
  color: string;
28
28
  }>, {
29
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_TypePropsToRuntimeProps<TorusProps>, {
30
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusProps>, {
31
31
  args: () => number[];
32
32
  color: string;
33
33
  }>>>, {
@@ -36,15 +36,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
36
36
  }, {}>;
37
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
38
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<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
- };
48
39
  type __VLS_WithDefaults<P, D> = {
49
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
41
  default: D[K];
@@ -58,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
58
49
  $slots: S;
59
50
  };
60
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
+ };
@@ -22,12 +22,12 @@ export interface TorusKnotProps {
22
22
  declare function __VLS_template(): {
23
23
  default?(_: {}): any;
24
24
  };
25
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusKnotProps>, {
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusKnotProps>, {
26
26
  args: () => number[];
27
27
  color: string;
28
28
  }>, {
29
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_TypePropsToRuntimeProps<TorusKnotProps>, {
30
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusKnotProps>, {
31
31
  args: () => number[];
32
32
  color: string;
33
33
  }>>>, {
@@ -36,15 +36,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
36
36
  }, {}>;
37
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
38
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<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
- };
48
39
  type __VLS_WithDefaults<P, D> = {
49
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
41
  default: D[K];
@@ -58,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
58
49
  $slots: S;
59
50
  };
60
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
+ };
@@ -22,12 +22,12 @@ export interface TubeProps {
22
22
  declare function __VLS_template(): {
23
23
  default?(_: {}): any;
24
24
  };
25
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TubeProps>, {
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TubeProps>, {
26
26
  args: () => (number | boolean | QuadraticBezierCurve3)[];
27
27
  color: string;
28
28
  }>, {
29
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_TypePropsToRuntimeProps<TubeProps>, {
30
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TubeProps>, {
31
31
  args: () => (number | boolean | QuadraticBezierCurve3)[];
32
32
  color: string;
33
33
  }>>>, {
@@ -36,15 +36,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
36
36
  }, {}>;
37
37
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
38
  export default _default;
39
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
40
- type __VLS_TypePropsToRuntimeProps<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
- };
48
39
  type __VLS_WithDefaults<P, D> = {
49
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
50
41
  default: D[K];
@@ -58,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
58
49
  $slots: S;
59
50
  };
60
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
+ };
@@ -6,13 +6,13 @@ export interface BackdropProps {
6
6
  declare function __VLS_template(): {
7
7
  default?(_: {}): any;
8
8
  };
9
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BackdropProps>, {
9
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BackdropProps>, {
10
10
  floor: number;
11
11
  segments: number;
12
12
  receiveShadow: boolean;
13
13
  }>, {
14
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>, {
15
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<BackdropProps>, {
16
16
  floor: number;
17
17
  segments: number;
18
18
  receiveShadow: boolean;
@@ -23,15 +23,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
23
23
  }, {}>;
24
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
25
25
  export default _default;
26
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
27
- type __VLS_TypePropsToRuntimeProps<T> = {
28
- [K in keyof T]-?: {} extends Pick<T, K> ? {
29
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
30
- } : {
31
- type: import('vue').PropType<T[K]>;
32
- required: true;
33
- };
34
- };
35
26
  type __VLS_WithDefaults<P, D> = {
36
27
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
37
28
  default: D[K];
@@ -45,3 +36,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
45
36
  $slots: S;
46
37
  };
47
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
+ };
@@ -1,8 +1,8 @@
1
1
  import { TresColor } from '@tresjs/core';
2
+ import { Group } from 'three';
2
3
 
3
4
  export interface ContactShadowsProps {
4
5
  /**
5
- *
6
6
  * The opacity of the shadows.
7
7
  *
8
8
  * @default 1
@@ -12,32 +12,54 @@ export interface ContactShadowsProps {
12
12
  */
13
13
  opacity?: number;
14
14
  /**
15
- * The width of the shadows.
15
+ * The blur of the shadows.
16
16
  *
17
17
  * @default 1
18
18
  * @type {number}
19
19
  * @memberof ContactShadowsProps
20
20
  *
21
21
  */
22
- width?: number;
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];
23
45
  /**
24
- * The height of the shadows.
46
+ * The width of the shadow plane.
25
47
  *
26
48
  * @default 1
27
49
  * @type {number}
28
50
  * @memberof ContactShadowsProps
29
51
  *
30
52
  */
31
- height?: number;
53
+ width?: number;
32
54
  /**
33
- * The blur of the shadows.
55
+ * The height of the shadow plane.
34
56
  *
35
57
  * @default 1
36
58
  * @type {number}
37
59
  * @memberof ContactShadowsProps
38
60
  *
39
61
  */
40
- blur?: number;
62
+ height?: number;
41
63
  /**
42
64
  * How far the OrthographicCamera should be to capture the shadows.
43
65
  *
@@ -74,24 +96,6 @@ export interface ContactShadowsProps {
74
96
  *
75
97
  */
76
98
  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
99
  /**
96
100
  * Whether the shadows should write to the depth buffer or not.
97
101
  *
@@ -101,68 +105,50 @@ export interface ContactShadowsProps {
101
105
  *
102
106
  */
103
107
  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
108
  }
114
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ContactShadowsProps>, {
115
- scale: number;
116
- frames: number;
109
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ContactShadowsProps>, {
117
110
  opacity: number;
111
+ blur: number;
112
+ color: string;
113
+ tint: undefined;
114
+ scale: number;
118
115
  width: number;
119
116
  height: number;
120
- blur: number;
121
117
  far: number;
122
- resolution: number;
123
118
  smooth: boolean;
124
- color: string;
119
+ resolution: number;
120
+ frames: number;
125
121
  depthWrite: boolean;
126
- helper: boolean;
127
122
  }>, {
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;
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>, {
132
125
  opacity: number;
126
+ blur: number;
127
+ color: string;
128
+ tint: undefined;
129
+ scale: number;
133
130
  width: number;
134
131
  height: number;
135
- blur: number;
136
132
  far: number;
137
- resolution: number;
138
133
  smooth: boolean;
139
- color: string;
134
+ resolution: number;
135
+ frames: number;
140
136
  depthWrite: boolean;
141
- helper: boolean;
142
137
  }>>>, {
138
+ height: number;
143
139
  color: TresColor;
144
140
  scale: number | [x: number, y: number];
145
141
  width: number;
146
- height: number;
147
- helper: boolean;
142
+ blur: number;
148
143
  depthWrite: boolean;
149
144
  opacity: number;
150
- blur: number;
151
145
  resolution: number;
152
146
  far: number;
153
- smooth: boolean;
154
147
  frames: number;
148
+ tint: TresColor;
149
+ smooth: boolean;
155
150
  }, {}>;
156
151
  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
152
  type __VLS_WithDefaults<P, D> = {
167
153
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
168
154
  default: D[K];
@@ -171,3 +157,12 @@ type __VLS_WithDefaults<P, D> = {
171
157
  type __VLS_Prettify<T> = {
172
158
  [K in keyof T]: T[K];
173
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
+ };
@@ -15,18 +15,23 @@ 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 props: Props;
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
+ };
19
24
  declare function __VLS_template(): {
20
25
  default?(_: {}): any;
21
26
  };
22
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
23
28
  into: () => Box3;
24
29
  precise: boolean;
25
30
  }>, {
26
31
  instance: import('vue').ShallowRef<any>;
27
32
  fit: (into?: typeof props.into, precise?: boolean) => void;
28
33
  update: () => void;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
34
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
30
35
  into: () => Box3;
31
36
  precise: boolean;
32
37
  }>>>, {
@@ -35,15 +40,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
35
40
  }, {}>;
36
41
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
42
  export default _default;
38
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
39
- type __VLS_TypePropsToRuntimeProps<T> = {
40
- [K in keyof T]-?: {} extends Pick<T, K> ? {
41
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
42
- } : {
43
- type: import('vue').PropType<T[K]>;
44
- required: true;
45
- };
46
- };
47
43
  type __VLS_WithDefaults<P, D> = {
48
44
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
45
  default: D[K];
@@ -57,3 +53,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
57
53
  $slots: S;
58
54
  };
59
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
+ };
@@ -101,7 +101,7 @@ export interface OceanProps {
101
101
  declare function __VLS_template(): {
102
102
  default?(_: {}): any;
103
103
  };
104
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OceanProps>, {
104
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OceanProps>, {
105
105
  textureWidth: number;
106
106
  textureHeight: number;
107
107
  waterNormals: string;
@@ -115,7 +115,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
115
115
  side: 0;
116
116
  }>, {
117
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_TypePropsToRuntimeProps<OceanProps>, {
118
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<OceanProps>, {
119
119
  textureWidth: number;
120
120
  textureHeight: number;
121
121
  waterNormals: string;
@@ -128,29 +128,20 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
128
128
  alpha: number;
129
129
  side: 0;
130
130
  }>>>, {
131
- side: TresVector3;
131
+ size: number;
132
132
  textureWidth: number;
133
133
  textureHeight: number;
134
134
  clipBias: number;
135
- size: number;
135
+ side: TresVector3;
136
+ alpha: number;
136
137
  waterNormals: string;
137
138
  sunDirection: TresVector3;
138
139
  sunColor: TresColor;
139
140
  waterColor: TresColor;
140
141
  distortionScale: number;
141
- alpha: number;
142
142
  }, {}>;
143
143
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
144
144
  export default _default;
145
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
146
- type __VLS_TypePropsToRuntimeProps<T> = {
147
- [K in keyof T]-?: {} extends Pick<T, K> ? {
148
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
149
- } : {
150
- type: import('vue').PropType<T[K]>;
151
- required: true;
152
- };
153
- };
154
145
  type __VLS_WithDefaults<P, D> = {
155
146
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
156
147
  default: D[K];
@@ -164,3 +155,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
164
155
  $slots: S;
165
156
  };
166
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
+ };