@tresjs/cientos 3.8.0 → 3.9.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 (97) hide show
  1. package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
  2. package/dist/core/abstractions/Lensflare/RandUtils.d.ts +2 -2
  3. package/dist/core/abstractions/Lensflare/component.vue.d.ts +11 -10
  4. package/dist/core/abstractions/Lensflare/constants.d.ts +2 -1
  5. package/dist/core/abstractions/Lensflare/index.d.ts +5 -4
  6. package/dist/core/abstractions/Levioso.vue.d.ts +5 -5
  7. package/dist/core/abstractions/MouseParallax.vue.d.ts +16 -5
  8. package/dist/core/abstractions/PositionalAudio.vue.d.ts +69 -0
  9. package/dist/core/abstractions/Reflector.vue.d.ts +6 -5
  10. package/dist/core/abstractions/Text3D.vue.d.ts +3 -3
  11. package/dist/core/abstractions/index.d.ts +10 -8
  12. package/dist/core/abstractions/useAnimations.d.ts +4 -4
  13. package/dist/core/abstractions/useFBO/component.vue.d.ts +6 -5
  14. package/dist/core/abstractions/useFBO/index.d.ts +4 -4
  15. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +5 -4
  16. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +6 -6
  17. package/dist/core/controls/CameraControls.vue.d.ts +3214 -3049
  18. package/dist/core/controls/KeyboardControls.vue.d.ts +13 -13
  19. package/dist/core/controls/MapControls.vue.d.ts +4 -3
  20. package/dist/core/controls/OrbitControls.vue.d.ts +5158 -5016
  21. package/dist/core/controls/PointerLockControls.vue.d.ts +6 -5
  22. package/dist/core/controls/ScrollControls.vue.d.ts +8 -8
  23. package/dist/core/controls/TransformControls.vue.d.ts +6 -4
  24. package/dist/core/controls/index.d.ts +9 -8
  25. package/dist/core/directives/index.d.ts +1 -0
  26. package/dist/core/directives/vAlwaysLookAt.d.ts +2 -1
  27. package/dist/core/directives/vLightHelper.d.ts +3 -1
  28. package/dist/core/loaders/SVG/component.vue.d.ts +13 -12
  29. package/dist/core/loaders/index.d.ts +4 -3
  30. package/dist/core/loaders/useFBX/component.vue.d.ts +5 -5
  31. package/dist/core/loaders/useFBX/index.d.ts +2 -1
  32. package/dist/core/loaders/useGLTF/component.vue.d.ts +8 -8
  33. package/dist/core/loaders/useProgress.d.ts +2 -1
  34. package/dist/core/loaders/useVideoTexture.d.ts +1 -0
  35. package/dist/core/materials/blurPass.d.ts +2 -1
  36. package/dist/core/materials/convolutionMaterial.d.ts +1 -0
  37. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -3
  38. package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +41 -0
  39. package/dist/core/materials/holographicMaterial/index.vue.d.ts +86 -0
  40. package/dist/core/materials/holographicMaterial/material.d.ts +27 -0
  41. package/dist/core/materials/index.d.ts +7 -5
  42. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +3 -3
  43. package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
  44. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +4 -3
  45. package/dist/core/materials/meshReflectionMaterial/material.d.ts +2 -2
  46. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +2 -2
  47. package/dist/core/materials/meshWobbleMaterial/material.d.ts +2 -2
  48. package/dist/core/misc/BakeShadows.d.ts +1 -1
  49. package/dist/core/misc/Stats.d.ts +2 -2
  50. package/dist/core/misc/StatsGl.d.ts +1 -1
  51. package/dist/core/misc/html/HTML.vue.d.ts +7 -6
  52. package/dist/core/misc/html/utils.d.ts +3 -3
  53. package/dist/core/misc/index.d.ts +2 -1
  54. package/dist/core/misc/useGLTFExporter.d.ts +2 -1
  55. package/dist/core/misc/useTweakPane/index.d.ts +3 -2
  56. package/dist/core/shapes/Box.vue.d.ts +7 -6
  57. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +4 -3
  58. package/dist/core/shapes/Circle.vue.d.ts +7 -6
  59. package/dist/core/shapes/Cone.vue.d.ts +7 -6
  60. package/dist/core/shapes/Dodecahedron.vue.d.ts +7 -6
  61. package/dist/core/shapes/Icosahedron.vue.d.ts +7 -6
  62. package/dist/core/shapes/Line2.vue.d.ts +5 -4
  63. package/dist/core/shapes/Octahedron.vue.d.ts +7 -6
  64. package/dist/core/shapes/Plane.vue.d.ts +7 -6
  65. package/dist/core/shapes/Ring.vue.d.ts +7 -6
  66. package/dist/core/shapes/RoundedBox.vue.d.ts +59 -0
  67. package/dist/core/shapes/Sphere.vue.d.ts +7 -6
  68. package/dist/core/shapes/Superformula.vue.d.ts +21 -20
  69. package/dist/core/shapes/Tetrahedron.vue.d.ts +7 -6
  70. package/dist/core/shapes/Torus.vue.d.ts +7 -6
  71. package/dist/core/shapes/TorusKnot.vue.d.ts +7 -6
  72. package/dist/core/shapes/Tube.vue.d.ts +8 -8
  73. package/dist/core/shapes/index.d.ts +19 -17
  74. package/dist/core/staging/Backdrop.vue.d.ts +2 -2
  75. package/dist/core/staging/Fit.vue.d.ts +56 -0
  76. package/dist/core/staging/Ocean.vue.d.ts +164 -0
  77. package/dist/core/staging/Precipitation.vue.d.ts +6 -5
  78. package/dist/core/staging/Sky.vue.d.ts +8 -2
  79. package/dist/core/staging/Smoke.vue.d.ts +6 -5
  80. package/dist/core/staging/Sparkles/ShaderData.d.ts +4 -3
  81. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +4 -4
  82. package/dist/core/staging/Sparkles/component.vue.d.ts +17 -17
  83. package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +1 -0
  84. package/dist/core/staging/Stars.vue.d.ts +4 -4
  85. package/dist/core/staging/index.d.ts +13 -9
  86. package/dist/core/staging/useEnvironment/component.vue.d.ts +62 -0
  87. package/dist/core/staging/useEnvironment/const.d.ts +28 -0
  88. package/dist/core/staging/useEnvironment/envSence.d.ts +9 -0
  89. package/dist/core/staging/useEnvironment/index.d.ts +5 -3
  90. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +56 -0
  91. package/dist/trescientos.js +5946 -5098
  92. package/dist/trescientos.umd.cjs +301 -82
  93. package/dist/utils/Gradient.d.ts +3 -2
  94. package/dist/utils/index.d.ts +1 -0
  95. package/dist/utils/types.d.ts +4 -0
  96. package/package.json +29 -26
  97. package/dist/core/loaders/useGLTF/index.d.ts +0 -36
@@ -64,7 +64,7 @@ export interface StarsProps {
64
64
  */
65
65
  alphaMap?: null;
66
66
  }
67
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
67
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
68
68
  size: number;
69
69
  sizeAttenuation: boolean;
70
70
  transparent: boolean;
@@ -74,8 +74,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
74
74
  depth: number;
75
75
  radius: number;
76
76
  }>, {
77
- value: import("vue").ShallowRef<any>;
78
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<StarsProps>, {
77
+ value: import('vue').ShallowRef<any>;
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;
@@ -85,8 +85,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
85
85
  depth: number;
86
86
  radius: number;
87
87
  }>>>, {
88
- alphaTest: number;
89
88
  transparent: boolean;
89
+ alphaTest: number;
90
90
  count: number;
91
91
  radius: number;
92
92
  size: number;
@@ -1,9 +1,13 @@
1
- import Environment from './useEnvironment/component.vue';
2
- import Backdrop from './Backdrop.vue';
3
- import ContactShadows from './ContactShadows.vue';
4
- import Precipitation from './Precipitation.vue';
5
- import Sky from './Sky.vue';
6
- import Smoke from './Smoke.vue';
7
- import Sparkles from './Sparkles/component.vue';
8
- import Stars from './Stars.vue';
9
- export { Backdrop, ContactShadows, Environment, Precipitation, Sky, Smoke, Sparkles, Stars, };
1
+ import { default as Environment } from './useEnvironment/component.vue';
2
+ import { default as Lightformer } from './useEnvironment/lightformer/index.vue';
3
+ import { default as Backdrop } from './Backdrop.vue';
4
+ import { default as ContactShadows } from './ContactShadows.vue';
5
+ import { default as Fit } from './Fit.vue';
6
+ import { default as Precipitation } from './Precipitation.vue';
7
+ import { default as Sky } from './Sky.vue';
8
+ import { default as Smoke } from './Smoke.vue';
9
+ import { default as Sparkles } from './Sparkles/component.vue';
10
+ import { default as Stars } from './Stars.vue';
11
+ import { default as Ocean } from './Ocean.vue';
12
+
13
+ export { Backdrop, ContactShadows, Environment, Fit, Precipitation, Sky, Smoke, Sparkles, Stars, Ocean, Lightformer, };
@@ -0,0 +1,62 @@
1
+ import { Ref } from 'vue';
2
+ import { CubeTexture, Texture } from 'three';
3
+ import { EnvironmentOptions } from './const';
4
+
5
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvironmentOptions>, {
6
+ background: boolean;
7
+ blur: number;
8
+ files: never[];
9
+ path: string;
10
+ preset: undefined;
11
+ resolution: number;
12
+ near: number;
13
+ far: number;
14
+ frames: number;
15
+ }>, {
16
+ texture: Ref<Texture | CubeTexture | null>;
17
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<EnvironmentOptions>, {
18
+ background: boolean;
19
+ blur: number;
20
+ files: never[];
21
+ path: string;
22
+ preset: undefined;
23
+ resolution: number;
24
+ near: number;
25
+ far: number;
26
+ frames: number;
27
+ }>>>, {
28
+ path: string;
29
+ blur: number;
30
+ resolution: number;
31
+ far: number;
32
+ frames: number;
33
+ near: number;
34
+ preset: "sunset" | "studio" | "city" | "umbrellas" | "night" | "forest" | "snow" | "dawn" | "hangar" | "urban" | "modern" | "shangai";
35
+ files: string | string[];
36
+ background: string | boolean;
37
+ }, {}>, {
38
+ default?(_: {}): any;
39
+ }>;
40
+ export default _default;
41
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
42
+ type __VLS_TypePropsToRuntimeProps<T> = {
43
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
44
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
45
+ } : {
46
+ type: import('vue').PropType<T[K]>;
47
+ required: true;
48
+ };
49
+ };
50
+ type __VLS_WithDefaults<P, D> = {
51
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
52
+ default: D[K];
53
+ }> : P[K];
54
+ };
55
+ type __VLS_Prettify<T> = {
56
+ [K in keyof T]: T[K];
57
+ } & {};
58
+ type __VLS_WithTemplateSlots<T, S> = T & {
59
+ new (): {
60
+ $slots: S;
61
+ };
62
+ };
@@ -33,6 +33,34 @@ export interface EnvironmentOptions {
33
33
  * @type {EnvironmentPresetsType}
34
34
  */
35
35
  preset?: EnvironmentPresetsType;
36
+ /**
37
+ * The resolution of the WebGLCubeRenderTarget.
38
+ *
39
+ * @type {number}
40
+ * @default 256
41
+ */
42
+ resolution?: number;
43
+ /**
44
+ * The near of the CubeCamera.
45
+ *
46
+ * @type {number}
47
+ * @default 1
48
+ */
49
+ near?: number;
50
+ /**
51
+ * The far of the CubeCamera.
52
+ *
53
+ * @type {number}
54
+ * @default 1000
55
+ */
56
+ far?: number;
57
+ /**
58
+ * The frames of the cubeCamera.update.
59
+ *
60
+ * @type {number}
61
+ * @default Infinity
62
+ */
63
+ frames?: number;
36
64
  }
37
65
  export declare const environmentPresets: {
38
66
  sunset: string;
@@ -0,0 +1,9 @@
1
+ import { Object3D, Scene } from 'three';
2
+
3
+ declare class EnvSence extends Object3D {
4
+ virtualScene: Scene;
5
+ constructor();
6
+ add(...object: Object3D[]): this;
7
+ destructor(): void;
8
+ }
9
+ export default EnvSence;
@@ -1,3 +1,5 @@
1
- import type { CubeTexture, Texture } from 'three';
2
- import type { EnvironmentOptions } from './const';
3
- export declare function useEnvironment(options: Partial<EnvironmentOptions>): Promise<Texture | CubeTexture>;
1
+ import { CubeTexture, Texture, WebGLCubeRenderTarget } from 'three';
2
+ import { Ref } from 'vue';
3
+ import { EnvironmentOptions } from './const';
4
+
5
+ export declare function useEnvironment(options: Partial<EnvironmentOptions>, fbo: Ref<WebGLCubeRenderTarget | undefined>): Promise<Texture | CubeTexture>;
@@ -0,0 +1,56 @@
1
+ import { Texture, Color } from 'three';
2
+
3
+ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
4
+ args?: any[] | undefined;
5
+ from?: 'circle' | 'ring' | 'rect' | any;
6
+ toneMapped?: boolean | undefined;
7
+ map?: Texture | undefined;
8
+ intensity?: number | undefined;
9
+ color?: any;
10
+ }>, {
11
+ args: any;
12
+ from: string;
13
+ toneMapped: boolean;
14
+ map: any;
15
+ intensity: number;
16
+ color: Color;
17
+ }>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
+ args?: any[] | undefined;
19
+ from?: 'circle' | 'ring' | 'rect' | any;
20
+ toneMapped?: boolean | undefined;
21
+ map?: Texture | undefined;
22
+ intensity?: number | undefined;
23
+ color?: any;
24
+ }>, {
25
+ args: any;
26
+ from: string;
27
+ toneMapped: boolean;
28
+ map: any;
29
+ intensity: number;
30
+ color: Color;
31
+ }>>>, {
32
+ map: Texture;
33
+ color: any;
34
+ args: any[];
35
+ toneMapped: boolean;
36
+ from: 'circle' | 'ring' | 'rect' | any;
37
+ intensity: number;
38
+ }, {}>;
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
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};