@tresjs/cientos 4.0.2 → 4.0.3

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 (80) hide show
  1. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +11 -53
  2. package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
  3. package/dist/core/abstractions/Lensflare/component.vue.d.ts +7 -42
  4. package/dist/core/abstractions/Lensflare/index.d.ts +1 -1
  5. package/dist/core/abstractions/Levioso.vue.d.ts +5 -32
  6. package/dist/core/abstractions/MouseParallax.vue.d.ts +2 -29
  7. package/dist/core/abstractions/PositionalAudio.vue.d.ts +6 -41
  8. package/dist/core/abstractions/Reflector.vue.d.ts +4 -35
  9. package/dist/core/abstractions/Text3D.vue.d.ts +4 -44
  10. package/dist/core/abstractions/index.d.ts +9 -9
  11. package/dist/core/abstractions/useAnimations.d.ts +1 -1
  12. package/dist/core/abstractions/useFBO/component.vue.d.ts +4 -29
  13. package/dist/core/abstractions/useFBO/index.d.ts +2 -2
  14. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +3 -12
  15. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +606 -0
  16. package/dist/core/controls/KeyboardControls.vue.d.ts +6 -29
  17. package/dist/core/controls/PointerLockControls.vue.d.ts +7 -28
  18. package/dist/core/controls/ScrollControls.vue.d.ts +7 -36
  19. package/dist/core/controls/TransformControls.vue.d.ts +7 -42
  20. package/dist/core/controls/index.d.ts +5 -5
  21. package/dist/core/index.d.ts +2 -2
  22. package/dist/core/loaders/SVG/component.vue.d.ts +3 -28
  23. package/dist/core/loaders/index.d.ts +3 -3
  24. package/dist/core/loaders/useFBX/component.vue.d.ts +6 -29
  25. package/dist/core/loaders/useGLTF/component.vue.d.ts +6 -33
  26. package/dist/core/loaders/useGLTF/index.d.ts +1 -1
  27. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +2 -11
  28. package/dist/core/materials/holographicMaterial/index.vue.d.ts +5 -46
  29. package/dist/core/materials/index.d.ts +4 -4
  30. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +1 -1
  31. package/dist/core/materials/meshGlassMaterial/material.d.ts +2 -2
  32. package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +1 -1
  33. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +16 -109
  34. package/dist/core/materials/meshReflectionMaterial/material.d.ts +1 -1
  35. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +5 -28
  36. package/dist/core/materials/meshWobbleMaterial/material.d.ts +1 -1
  37. package/dist/core/misc/BakeShadows.d.ts +1 -1
  38. package/dist/core/misc/Stats.d.ts +4 -4
  39. package/dist/core/misc/StatsGl.d.ts +1 -1
  40. package/dist/core/misc/html/HTML.vue.d.ts +6 -40
  41. package/dist/core/misc/html/utils.d.ts +1 -1
  42. package/dist/core/misc/index.d.ts +3 -3
  43. package/dist/core/shapes/Box.vue.d.ts +3 -26
  44. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +5 -32
  45. package/dist/core/shapes/Circle.vue.d.ts +3 -26
  46. package/dist/core/shapes/Cone.vue.d.ts +3 -26
  47. package/dist/core/shapes/Cylinder.vue.d.ts +3 -26
  48. package/dist/core/shapes/Dodecahedron.vue.d.ts +3 -26
  49. package/dist/core/shapes/Icosahedron.vue.d.ts +3 -26
  50. package/dist/core/shapes/Line2.vue.d.ts +5 -44
  51. package/dist/core/shapes/Octahedron.vue.d.ts +3 -26
  52. package/dist/core/shapes/Plane.vue.d.ts +3 -26
  53. package/dist/core/shapes/Ring.vue.d.ts +3 -26
  54. package/dist/core/shapes/RoundedBox.vue.d.ts +3 -26
  55. package/dist/core/shapes/Sphere.vue.d.ts +3 -26
  56. package/dist/core/shapes/Superformula.vue.d.ts +3 -36
  57. package/dist/core/shapes/Tetrahedron.vue.d.ts +3 -26
  58. package/dist/core/shapes/Torus.vue.d.ts +3 -26
  59. package/dist/core/shapes/TorusKnot.vue.d.ts +3 -26
  60. package/dist/core/shapes/Tube.vue.d.ts +4 -27
  61. package/dist/core/shapes/index.d.ts +1 -1
  62. package/dist/core/staging/Backdrop.vue.d.ts +4 -29
  63. package/dist/core/staging/ContactShadows.vue.d.ts +6 -49
  64. package/dist/core/staging/Fit.vue.d.ts +4 -27
  65. package/dist/core/staging/Ocean.vue.d.ts +5 -47
  66. package/dist/core/staging/Precipitation.vue.d.ts +7 -48
  67. package/dist/core/staging/Sky.vue.d.ts +3 -36
  68. package/dist/core/staging/Smoke.vue.d.ts +5 -40
  69. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +1 -1
  70. package/dist/core/staging/Sparkles/component.vue.d.ts +9 -86
  71. package/dist/core/staging/Stars.vue.d.ts +5 -40
  72. package/dist/core/staging/index.d.ts +4 -4
  73. package/dist/core/staging/useEnvironment/component.vue.d.ts +5 -42
  74. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +6 -37
  75. package/dist/trescientos.js +16018 -16019
  76. package/dist/trescientos.umd.cjs +357 -357
  77. package/package.json +17 -15
  78. package/dist/core/controls/CameraControls.vue.d.ts +0 -10381
  79. package/dist/core/controls/MapControls.vue.d.ts +0 -9168
  80. package/dist/core/controls/OrbitControls.vue.d.ts +0 -9182
@@ -1,4 +1,4 @@
1
- import { Texture, Color, Euler, Vector2 } from 'three';
1
+ import { Euler, Vector2, Texture } from 'three';
2
2
  import { TresColor } from '@tresjs/core';
3
3
  export interface MeshReflectionMaterialProps {
4
4
  /** Length in pixels of one side of the square reflective textures. */
@@ -67,85 +67,9 @@ export interface MeshReflectionMaterialProps {
67
67
  flatShading?: boolean;
68
68
  fog?: boolean;
69
69
  }
70
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<MeshReflectionMaterialProps>, {
71
- resolution: number;
72
- mix: number;
73
- sharpMix: number;
74
- sharpDepthEdgeMin: number;
75
- sharpDepthEdgeMax: number;
76
- sharpDepthScale: number;
77
- sharpDepthBias: number;
78
- blurMixSmooth: number;
79
- blurMixRough: number;
80
- blurDepthEdgeMin: number;
81
- blurDepthEdgeMax: number;
82
- blurDepthScale: number;
83
- blurDepthBias: number;
84
- blurSize: () => number[];
85
- distortion: number;
86
- reflectorOffset: number;
87
- color: () => Color;
88
- roughness: number;
89
- roughnessMap: null;
90
- metalness: number;
91
- lightMapIntensity: number;
92
- aoMapIntensity: number;
93
- emissive: () => Color;
94
- emissiveIntensity: number;
95
- bumpScale: number;
96
- normalMapType: 0;
97
- normalScale: () => Vector2;
98
- displacementScale: number;
99
- displacementBias: number;
100
- envMapRotation: () => Euler;
101
- envMapIntensity: number;
102
- wireframe: boolean;
103
- wireframeLinewidth: number;
104
- wireframeLinecap: string;
105
- wireframeLinejoin: string;
106
- flatShading: boolean;
107
- fog: boolean;
108
- }>, {
70
+ declare const _default: import('vue').DefineComponent<MeshReflectionMaterialProps, {
109
71
  instance: import('vue').ShallowRef<any>;
110
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MeshReflectionMaterialProps>, {
111
- resolution: number;
112
- mix: number;
113
- sharpMix: number;
114
- sharpDepthEdgeMin: number;
115
- sharpDepthEdgeMax: number;
116
- sharpDepthScale: number;
117
- sharpDepthBias: number;
118
- blurMixSmooth: number;
119
- blurMixRough: number;
120
- blurDepthEdgeMin: number;
121
- blurDepthEdgeMax: number;
122
- blurDepthScale: number;
123
- blurDepthBias: number;
124
- blurSize: () => number[];
125
- distortion: number;
126
- reflectorOffset: number;
127
- color: () => Color;
128
- roughness: number;
129
- roughnessMap: null;
130
- metalness: number;
131
- lightMapIntensity: number;
132
- aoMapIntensity: number;
133
- emissive: () => Color;
134
- emissiveIntensity: number;
135
- bumpScale: number;
136
- normalMapType: 0;
137
- normalScale: () => Vector2;
138
- displacementScale: number;
139
- displacementBias: number;
140
- envMapRotation: () => Euler;
141
- envMapIntensity: number;
142
- wireframe: boolean;
143
- wireframeLinewidth: number;
144
- wireframeLinecap: string;
145
- wireframeLinejoin: string;
146
- flatShading: boolean;
147
- fog: boolean;
148
- }>>>, {
72
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MeshReflectionMaterialProps> & Readonly<{}>, {
149
73
  color: TresColor;
150
74
  fog: boolean;
151
75
  lightMapIntensity: number;
@@ -155,6 +79,18 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
155
79
  wireframeLinewidth: number;
156
80
  wireframeLinecap: string;
157
81
  wireframeLinejoin: string;
82
+ displacementScale: number;
83
+ displacementBias: number;
84
+ bumpScale: number;
85
+ emissive: TresColor;
86
+ emissiveIntensity: number;
87
+ flatShading: boolean;
88
+ normalMapType: number;
89
+ normalScale: Vector2;
90
+ roughness: number;
91
+ metalness: number;
92
+ roughnessMap: Texture | null;
93
+ envMapIntensity: number;
158
94
  resolution: number;
159
95
  mix: number;
160
96
  sharpMix: number;
@@ -171,34 +107,5 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
171
107
  blurSize: [number, number] | number;
172
108
  distortion: number;
173
109
  reflectorOffset: number;
174
- roughness: number;
175
- metalness: number;
176
- emissive: TresColor;
177
- emissiveIntensity: number;
178
- bumpScale: number;
179
- normalMapType: number;
180
- normalScale: Vector2;
181
- displacementScale: number;
182
- displacementBias: number;
183
- roughnessMap: Texture | null;
184
- envMapIntensity: number;
185
- flatShading: boolean;
186
- }, {}>;
110
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
187
111
  export default _default;
188
- type __VLS_WithDefaults<P, D> = {
189
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
190
- default: D[K];
191
- }> : P[K];
192
- };
193
- type __VLS_Prettify<T> = {
194
- [K in keyof T]: T[K];
195
- } & {};
196
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
197
- type __VLS_TypePropsToOption<T> = {
198
- [K in keyof T]-?: {} extends Pick<T, K> ? {
199
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
200
- } : {
201
- type: import('vue').PropType<T[K]>;
202
- required: true;
203
- };
204
- };
@@ -1,4 +1,4 @@
1
- import { Matrix4, Texture, MeshStandardMaterial } from 'three';
1
+ import { MeshStandardMaterial, Matrix4, Texture } from 'three';
2
2
  export declare class MeshReflectionMaterial extends MeshStandardMaterial {
3
3
  private _tDepth;
4
4
  private _distortionMap;
@@ -1,36 +1,13 @@
1
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
1
+ declare const _default: import('vue').DefineComponent<{
2
2
  speed?: number;
3
3
  factor?: number;
4
- }>, {
5
- speed: number;
6
- factor: number;
7
- }>, {
4
+ }, {
8
5
  instance: import('vue').ShallowRef<any>;
9
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
6
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
10
7
  speed?: number;
11
8
  factor?: number;
12
- }>, {
13
- speed: number;
14
- factor: number;
15
- }>>>, {
9
+ }> & Readonly<{}>, {
16
10
  speed: number;
17
11
  factor: number;
18
- }, {}>;
12
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
13
  export default _default;
20
- type __VLS_WithDefaults<P, D> = {
21
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
22
- default: D[K];
23
- }> : P[K];
24
- };
25
- type __VLS_Prettify<T> = {
26
- [K in keyof T]: T[K];
27
- } & {};
28
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
29
- type __VLS_TypePropsToOption<T> = {
30
- [K in keyof T]-?: {} extends Pick<T, K> ? {
31
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
32
- } : {
33
- type: import('vue').PropType<T[K]>;
34
- required: true;
35
- };
36
- };
@@ -1,4 +1,4 @@
1
- import { MeshStandardMaterialParameters, MeshStandardMaterial } from 'three';
1
+ import { MeshStandardMaterial, MeshStandardMaterialParameters } from 'three';
2
2
  interface Uniform<T> {
3
3
  value: T;
4
4
  }
@@ -1 +1 @@
1
- export declare const BakeShadows: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
1
+ export declare const BakeShadows: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -1,13 +1,13 @@
1
- export declare const Stats: import('vue').DefineComponent<{
1
+ export declare const Stats: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  showPanel: {
3
3
  type: NumberConstructor;
4
4
  default: number;
5
5
  };
6
- }, void, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
6
+ }>, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
7
7
  showPanel: {
8
8
  type: NumberConstructor;
9
9
  default: number;
10
10
  };
11
- }>>, {
11
+ }>> & Readonly<{}>, {
12
12
  showPanel: number;
13
- }, {}>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -7,4 +7,4 @@ export interface StatsGlProps {
7
7
  minimal?: boolean;
8
8
  mode?: number;
9
9
  }
10
- export declare const StatsGl: import('vue').DefineComponent<StatsGlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsGlProps>, {}, {}>;
10
+ export declare const StatsGl: import('vue').DefineComponent<StatsGlProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<StatsGlProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -1,4 +1,3 @@
1
- import { PlaneGeometry } from 'three';
2
1
  import { TresObject3D } from '@tresjs/core';
3
2
  import { Mutable } from '@vueuse/core';
4
3
  export interface HTMLProps {
@@ -19,29 +18,13 @@ export interface HTMLProps {
19
18
  }
20
19
  type PointerEventsProperties = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit';
21
20
  declare function __VLS_template(): Readonly<Record<string, any>> & Record<string, any>;
22
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<HTMLProps>, {
23
- geometry: PlaneGeometry;
24
- zIndexRange: () => number[];
25
- as: string;
26
- transform: boolean;
27
- eps: number;
28
- pointerEvents: string;
29
- sprite: boolean;
30
- }>, {
31
- instance: import('vue').Ref<TresObject3D | undefined>;
32
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
+ declare const __VLS_component: import('vue').DefineComponent<HTMLProps, {
22
+ instance: import('vue').Ref<TresObject3D | undefined, TresObject3D | undefined>;
23
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
24
  onOcclude: (...args: any[]) => void;
34
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<HTMLProps>, {
35
- geometry: PlaneGeometry;
36
- zIndexRange: () => number[];
37
- as: string;
38
- transform: boolean;
39
- eps: number;
40
- pointerEvents: string;
41
- sprite: boolean;
42
- }>>> & {
25
+ }, string, import('vue').PublicProps, Readonly<HTMLProps> & Readonly<{
43
26
  onOnOcclude?: ((...args: any[]) => any) | undefined;
44
- }, {
27
+ }>, {
45
28
  sprite: boolean;
46
29
  geometry: any;
47
30
  transform: boolean;
@@ -49,28 +32,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
49
32
  eps: number;
50
33
  pointerEvents: PointerEventsProperties;
51
34
  zIndexRange: Array<number>;
52
- }, {}>;
35
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
36
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
54
37
  export default _default;
55
- type __VLS_WithDefaults<P, D> = {
56
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
57
- default: D[K];
58
- }> : P[K];
59
- };
60
- type __VLS_Prettify<T> = {
61
- [K in keyof T]: T[K];
62
- } & {};
63
38
  type __VLS_WithTemplateSlots<T, S> = T & {
64
39
  new (): {
65
40
  $slots: S;
66
41
  };
67
42
  };
68
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
- type __VLS_TypePropsToOption<T> = {
70
- [K in keyof T]-?: {} extends Pick<T, K> ? {
71
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
- } : {
73
- type: import('vue').PropType<T[K]>;
74
- required: true;
75
- };
76
- };
@@ -1,5 +1,5 @@
1
+ import { Vector3, Matrix4, Raycaster } from 'three';
1
2
  import { TresCamera, TresObject3D } from '@tresjs/core';
2
- import { Matrix4, Raycaster, Vector3 } from 'three';
3
3
  export declare const v1: Vector3;
4
4
  export declare const v2: Vector3;
5
5
  export declare const v3: Vector3;
@@ -1,6 +1,6 @@
1
- import { Stats } from './Stats';
2
- import { StatsGl } from './StatsGl';
3
1
  import { BakeShadows } from './BakeShadows';
4
2
  import { default as Html } from './html/HTML.vue';
3
+ import { Stats } from './Stats';
4
+ import { StatsGl } from './StatsGl';
5
5
  import { useGLTFExporter } from './useGLTFExporter';
6
- export { Html, Stats, StatsGl, BakeShadows, useGLTFExporter };
6
+ export { BakeShadows, Html, Stats, StatsGl, useGLTFExporter };
@@ -22,39 +22,16 @@ export interface BoxProps {
22
22
  declare function __VLS_template(): {
23
23
  default?(_: {}): any;
24
24
  };
25
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BoxProps>, {
26
- args: () => number[];
27
- color: string;
28
- }>, {
25
+ declare const __VLS_component: import('vue').DefineComponent<BoxProps, {
29
26
  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<BoxProps>, {
31
- args: () => number[];
32
- color: string;
33
- }>>>, {
27
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BoxProps> & Readonly<{}>, {
34
28
  color: TresColor;
35
29
  args: ConstructorParameters<typeof BoxGeometry>;
36
- }, {}>;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
31
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
32
  export default _default;
39
- type __VLS_WithDefaults<P, D> = {
40
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
- default: D[K];
42
- }> : P[K];
43
- };
44
- type __VLS_Prettify<T> = {
45
- [K in keyof T]: T[K];
46
- } & {};
47
33
  type __VLS_WithTemplateSlots<T, S> = T & {
48
34
  new (): {
49
35
  $slots: S;
50
36
  };
51
37
  };
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,5 +1,5 @@
1
- import { TresColor } from '@tresjs/core';
2
1
  import { Vector3 } from 'three';
2
+ import { TresColor } from '@tresjs/core';
3
3
  type CurveType = 'centripetal' | 'chordal' | 'catmullrom';
4
4
  type Points = Array<Vector3 | [number, number, number]>;
5
5
  interface CatmullRomCurve3Props {
@@ -19,39 +19,12 @@ interface CatmullRomCurve3Props {
19
19
  gapSize?: number;
20
20
  worldUnits?: boolean;
21
21
  }
22
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CatmullRomCurve3Props>, {
23
- segments: number;
24
- closed: boolean;
25
- curveType: string;
26
- tension: number;
27
- }>, {
22
+ declare const _default: import('vue').DefineComponent<CatmullRomCurve3Props, {
28
23
  instance: import('vue').ShallowRef<any>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CatmullRomCurve3Props>, {
30
- segments: number;
31
- closed: boolean;
32
- curveType: string;
33
- tension: number;
34
- }>>>, {
35
- segments: number;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CatmullRomCurve3Props> & Readonly<{}>, {
36
25
  closed: boolean;
37
26
  curveType: CurveType;
38
27
  tension: number;
39
- }, {}>;
28
+ segments: number;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
40
30
  export default _default;
41
- type __VLS_WithDefaults<P, D> = {
42
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
43
- default: D[K];
44
- }> : P[K];
45
- };
46
- type __VLS_Prettify<T> = {
47
- [K in keyof T]: T[K];
48
- } & {};
49
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
50
- type __VLS_TypePropsToOption<T> = {
51
- [K in keyof T]-?: {} extends Pick<T, K> ? {
52
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
53
- } : {
54
- type: import('vue').PropType<T[K]>;
55
- required: true;
56
- };
57
- };
@@ -21,39 +21,16 @@ export interface CircleProps {
21
21
  declare function __VLS_template(): {
22
22
  default?(_: {}): any;
23
23
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CircleProps>, {
25
- args: () => number[];
26
- color: string;
27
- }>, {
24
+ declare const __VLS_component: import('vue').DefineComponent<CircleProps, {
28
25
  instance: import('vue').ShallowRef<any>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CircleProps>, {
30
- args: () => number[];
31
- color: string;
32
- }>>>, {
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CircleProps> & Readonly<{}>, {
33
27
  color: TresColor;
34
28
  args: ConstructorParameters<typeof CircleGeometry>;
35
- }, {}>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
31
  export default _default;
38
- type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- type __VLS_Prettify<T> = {
44
- [K in keyof T]: T[K];
45
- } & {};
46
32
  type __VLS_WithTemplateSlots<T, S> = T & {
47
33
  new (): {
48
34
  $slots: S;
49
35
  };
50
36
  };
51
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
- type __VLS_TypePropsToOption<T> = {
53
- [K in keyof T]-?: {} extends Pick<T, K> ? {
54
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
55
- } : {
56
- type: import('vue').PropType<T[K]>;
57
- required: true;
58
- };
59
- };
@@ -21,39 +21,16 @@ export interface ConeProps {
21
21
  declare function __VLS_template(): {
22
22
  default?(_: {}): any;
23
23
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ConeProps>, {
25
- args: () => (number | boolean)[];
26
- color: string;
27
- }>, {
24
+ declare const __VLS_component: import('vue').DefineComponent<ConeProps, {
28
25
  instance: import('vue').ShallowRef<any>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ConeProps>, {
30
- args: () => (number | boolean)[];
31
- color: string;
32
- }>>>, {
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ConeProps> & Readonly<{}>, {
33
27
  color: TresColor;
34
28
  args: ConstructorParameters<typeof ConeGeometry>;
35
- }, {}>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
31
  export default _default;
38
- type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- type __VLS_Prettify<T> = {
44
- [K in keyof T]: T[K];
45
- } & {};
46
32
  type __VLS_WithTemplateSlots<T, S> = T & {
47
33
  new (): {
48
34
  $slots: S;
49
35
  };
50
36
  };
51
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
- type __VLS_TypePropsToOption<T> = {
53
- [K in keyof T]-?: {} extends Pick<T, K> ? {
54
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
55
- } : {
56
- type: import('vue').PropType<T[K]>;
57
- required: true;
58
- };
59
- };
@@ -21,39 +21,16 @@ export interface CylinderProps {
21
21
  declare function __VLS_template(): {
22
22
  default?(_: {}): any;
23
23
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<CylinderProps>, {
25
- args: () => (number | boolean)[];
26
- color: string;
27
- }>, {
24
+ declare const __VLS_component: import('vue').DefineComponent<CylinderProps, {
28
25
  instance: import('vue').ShallowRef<any>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<CylinderProps>, {
30
- args: () => (number | boolean)[];
31
- color: string;
32
- }>>>, {
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CylinderProps> & Readonly<{}>, {
33
27
  color: TresColor;
34
28
  args: ConstructorParameters<typeof CylinderGeometry>;
35
- }, {}>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
31
  export default _default;
38
- type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- type __VLS_Prettify<T> = {
44
- [K in keyof T]: T[K];
45
- } & {};
46
32
  type __VLS_WithTemplateSlots<T, S> = T & {
47
33
  new (): {
48
34
  $slots: S;
49
35
  };
50
36
  };
51
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
- type __VLS_TypePropsToOption<T> = {
53
- [K in keyof T]-?: {} extends Pick<T, K> ? {
54
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
55
- } : {
56
- type: import('vue').PropType<T[K]>;
57
- required: true;
58
- };
59
- };
@@ -21,39 +21,16 @@ export interface DodecahedronProps {
21
21
  declare function __VLS_template(): {
22
22
  default?(_: {}): any;
23
23
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<DodecahedronProps>, {
25
- args: () => number[];
26
- color: string;
27
- }>, {
24
+ declare const __VLS_component: import('vue').DefineComponent<DodecahedronProps, {
28
25
  instance: import('vue').ShallowRef<any>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<DodecahedronProps>, {
30
- args: () => number[];
31
- color: string;
32
- }>>>, {
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DodecahedronProps> & Readonly<{}>, {
33
27
  color: TresColor;
34
28
  args: ConstructorParameters<typeof DodecahedronGeometry>;
35
- }, {}>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
31
  export default _default;
38
- type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- type __VLS_Prettify<T> = {
44
- [K in keyof T]: T[K];
45
- } & {};
46
32
  type __VLS_WithTemplateSlots<T, S> = T & {
47
33
  new (): {
48
34
  $slots: S;
49
35
  };
50
36
  };
51
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
- type __VLS_TypePropsToOption<T> = {
53
- [K in keyof T]-?: {} extends Pick<T, K> ? {
54
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
55
- } : {
56
- type: import('vue').PropType<T[K]>;
57
- required: true;
58
- };
59
- };
@@ -21,39 +21,16 @@ export interface IcosahedronProps {
21
21
  declare function __VLS_template(): {
22
22
  default?(_: {}): any;
23
23
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<IcosahedronProps>, {
25
- args: () => number[];
26
- color: string;
27
- }>, {
24
+ declare const __VLS_component: import('vue').DefineComponent<IcosahedronProps, {
28
25
  instance: import('vue').ShallowRef<any>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<IcosahedronProps>, {
30
- args: () => number[];
31
- color: string;
32
- }>>>, {
26
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IcosahedronProps> & Readonly<{}>, {
33
27
  color: TresColor;
34
28
  args: ConstructorParameters<typeof IcosahedronGeometry>;
35
- }, {}>;
29
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
36
30
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
37
31
  export default _default;
38
- type __VLS_WithDefaults<P, D> = {
39
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
40
- default: D[K];
41
- }> : P[K];
42
- };
43
- type __VLS_Prettify<T> = {
44
- [K in keyof T]: T[K];
45
- } & {};
46
32
  type __VLS_WithTemplateSlots<T, S> = T & {
47
33
  new (): {
48
34
  $slots: S;
49
35
  };
50
36
  };
51
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
52
- type __VLS_TypePropsToOption<T> = {
53
- [K in keyof T]-?: {} extends Pick<T, K> ? {
54
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
55
- } : {
56
- type: import('vue').PropType<T[K]>;
57
- required: true;
58
- };
59
- };