@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,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { OctahedronGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { OctahedronGeometry } from 'three';
3
+
3
4
  export interface OctahedronProps {
4
5
  /**
5
6
  * The radius and detail of the octahedron.
@@ -18,30 +19,23 @@ export interface OctahedronProps {
18
19
  */
19
20
  color?: TresColor;
20
21
  }
21
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<OctahedronProps>, {
22
26
  args: () => number[];
23
27
  color: string;
24
28
  }>, {
25
- value: import("vue").ShallowRef<any>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<OctahedronProps>, {
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<OctahedronProps>, {
27
31
  args: () => number[];
28
32
  color: string;
29
33
  }>>>, {
30
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
31
- args: [radius?: number | undefined, detail?: number | undefined];
32
- }, {}>, {
33
- default?(_: {}): any;
34
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof OctahedronGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
38
  export default _default;
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToRuntimeProps<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
39
  type __VLS_WithDefaults<P, D> = {
46
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
41
  default: D[K];
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
55
49
  $slots: S;
56
50
  };
57
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,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { PlaneGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { PlaneGeometry } from 'three';
3
+
3
4
  export interface PlaneProps {
4
5
  /**
5
6
  * The width and height, widthSegments, heightSegments of the plane.
@@ -18,30 +19,23 @@ export interface PlaneProps {
18
19
  */
19
20
  color?: TresColor;
20
21
  }
21
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PlaneProps>, {
22
26
  args: () => number[];
23
27
  color: string;
24
28
  }>, {
25
- value: import("vue").ShallowRef<any>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PlaneProps>, {
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<PlaneProps>, {
27
31
  args: () => number[];
28
32
  color: string;
29
33
  }>>>, {
30
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
31
- args: [width?: number | undefined, height?: number | undefined, widthSegments?: number | undefined, heightSegments?: number | undefined];
32
- }, {}>, {
33
- default?(_: {}): any;
34
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof PlaneGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
38
  export default _default;
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToRuntimeProps<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
39
  type __VLS_WithDefaults<P, D> = {
46
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
41
  default: D[K];
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
55
49
  $slots: S;
56
50
  };
57
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,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { RingGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { RingGeometry } from 'three';
3
+
3
4
  export interface RingProps {
4
5
  /**
5
6
  * The innerRadius, outerRadius, thetaSegments, phiSegments, tethaStart, thetaLength of the ring.
@@ -18,30 +19,23 @@ export interface RingProps {
18
19
  */
19
20
  color?: TresColor;
20
21
  }
21
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<RingProps>, {
22
26
  args: () => number[];
23
27
  color: string;
24
28
  }>, {
25
- value: import("vue").ShallowRef<any>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<RingProps>, {
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<RingProps>, {
27
31
  args: () => number[];
28
32
  color: string;
29
33
  }>>>, {
30
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
31
- args: [innerRadius?: number | undefined, outerRadius?: number | undefined, thetaSegments?: number | undefined, phiSegments?: number | undefined, thetaStart?: number | undefined, thetaLength?: number | undefined];
32
- }, {}>, {
33
- default?(_: {}): any;
34
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof RingGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
38
  export default _default;
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToRuntimeProps<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
39
  type __VLS_WithDefaults<P, D> = {
46
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
41
  default: D[K];
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
55
49
  $slots: S;
56
50
  };
57
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,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { BoxGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { BoxGeometry } from 'three';
3
+
3
4
  export interface BoxProps {
4
5
  /**
5
6
  * The width, height, depth, segments and radius.
@@ -19,30 +20,23 @@ export interface BoxProps {
19
20
  */
20
21
  color?: TresColor;
21
22
  }
22
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<BoxProps>, {
23
+ declare function __VLS_template(): {
24
+ default?(_: {}): any;
25
+ };
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BoxProps>, {
23
27
  args: () => number[];
24
28
  color: string;
25
29
  }>, {
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<BoxProps>, {
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_TypePropsToOption<BoxProps>, {
28
32
  args: () => number[];
29
33
  color: string;
30
34
  }>>>, {
31
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
32
- args: [width?: number | undefined, height?: number | undefined, depth?: number | undefined, widthSegments?: number | undefined, heightSegments?: number | undefined, depthSegments?: number | undefined];
33
- }, {}>, {
34
- default?(_: {}): any;
35
- }>;
35
+ color: TresColor;
36
+ args: ConstructorParameters<typeof BoxGeometry>;
37
+ }, {}>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
36
39
  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
40
  type __VLS_WithDefaults<P, D> = {
47
41
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
42
  default: D[K];
@@ -56,3 +50,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
56
50
  $slots: S;
57
51
  };
58
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
+ };
@@ -1,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { SphereGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { SphereGeometry } from 'three';
3
+
3
4
  export interface SphereProps {
4
5
  /**
5
6
  * The radius, widthSegments, heightSegments, phiStart phiLength,
@@ -19,30 +20,23 @@ export interface SphereProps {
19
20
  */
20
21
  color?: TresColor;
21
22
  }
22
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SphereProps>, {
23
+ declare function __VLS_template(): {
24
+ default?(_: {}): any;
25
+ };
26
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SphereProps>, {
23
27
  args: () => number[];
24
28
  color: string;
25
29
  }>, {
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<SphereProps>, {
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_TypePropsToOption<SphereProps>, {
28
32
  args: () => number[];
29
33
  color: string;
30
34
  }>>>, {
31
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
32
- args: [radius?: number | undefined, widthSegments?: number | undefined, heightSegments?: number | undefined, phiStart?: number | undefined, phiLength?: number | undefined, thetaStart?: number | undefined, thetaLength?: number | undefined];
33
- }, {}>, {
34
- default?(_: {}): any;
35
- }>;
35
+ color: TresColor;
36
+ args: ConstructorParameters<typeof SphereGeometry>;
37
+ }, {}>;
38
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
36
39
  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
40
  type __VLS_WithDefaults<P, D> = {
47
41
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
48
42
  default: D[K];
@@ -56,3 +50,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
56
50
  $slots: S;
57
51
  };
58
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
+ };
@@ -1,37 +1,41 @@
1
- import type { TresColor } from '@tresjs/core';
1
+ import { TresColor } from '@tresjs/core';
2
+
2
3
  export type Float3 = [number, number, number];
3
4
  export interface SuperFormulaProps {
4
5
  /**
5
- * Number of horizontal mesh segments
6
- */
6
+ * Number of horizontal mesh segments
7
+ */
7
8
  widthSegments?: number;
8
9
  /**
9
- * Number of vertical mesh segments
10
- */
10
+ * Number of vertical mesh segments
11
+ */
11
12
  heightSegments?: number;
12
13
  /**
13
- * The 3D Superformula is the spherical product of 2 2D superformula curves: here called curves "A" and "B".
14
- * Number of radial arms/ripples of A, corresponding to "m" [in this article.](https://en.wikipedia.org/wiki/Superformula)
15
- */
14
+ * The 3D Superformula is the spherical product of 2 2D superformula curves: here called curves "A" and "B".
15
+ * Number of radial arms/ripples of A, corresponding to "m" [in this article.](https://en.wikipedia.org/wiki/Superformula)
16
+ */
16
17
  numArmsA?: number;
17
18
  /**
18
- * A's 3 exponents
19
- */
19
+ * A's 3 exponents
20
+ */
20
21
  expA?: Float3;
21
22
  /**
22
- * For B, number of radial arms/ripples
23
- */
23
+ * For B, number of radial arms/ripples
24
+ */
24
25
  numArmsB?: number;
25
26
  /**
26
- * B's 3 exponents
27
- */
27
+ * B's 3 exponents
28
+ */
28
29
  expB?: Float3;
29
30
  /**
30
- * If no material is provided, a color for the default material
31
- */
31
+ * If no material is provided, a color for the default material
32
+ */
32
33
  color?: TresColor;
33
34
  }
34
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
35
+ declare function __VLS_template(): {
36
+ default?(_: {}): any;
37
+ };
38
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SuperFormulaProps>, {
35
39
  widthSegments: number;
36
40
  heightSegments: number;
37
41
  numArmsA: number;
@@ -40,8 +44,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
44
  expB: () => number[];
41
45
  color: string;
42
46
  }>, {
43
- value: import("vue").ShallowRef<any>;
44
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<SuperFormulaProps>, {
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_TypePropsToOption<SuperFormulaProps>, {
45
49
  widthSegments: number;
46
50
  heightSegments: number;
47
51
  numArmsA: number;
@@ -50,26 +54,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
50
54
  expB: () => number[];
51
55
  color: string;
52
56
  }>>>, {
53
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
57
+ color: TresColor;
54
58
  widthSegments: number;
55
59
  heightSegments: number;
56
60
  numArmsA: number;
57
61
  expA: Float3;
58
62
  numArmsB: number;
59
63
  expB: Float3;
60
- }, {}>, {
61
- default?(_: {}): any;
62
- }>;
64
+ }, {}>;
65
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
63
66
  export default _default;
64
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
65
- type __VLS_TypePropsToRuntimeProps<T> = {
66
- [K in keyof T]-?: {} extends Pick<T, K> ? {
67
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
68
- } : {
69
- type: import('vue').PropType<T[K]>;
70
- required: true;
71
- };
72
- };
73
67
  type __VLS_WithDefaults<P, D> = {
74
68
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
75
69
  default: D[K];
@@ -83,3 +77,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
83
77
  $slots: S;
84
78
  };
85
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
+ };
@@ -1,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { TetrahedronGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { TetrahedronGeometry } from 'three';
3
+
3
4
  export interface TetrahedronProps {
4
5
  /**
5
6
  * The radius and detail of the tetrahedron.
@@ -18,30 +19,23 @@ export interface TetrahedronProps {
18
19
  */
19
20
  color?: TresColor;
20
21
  }
21
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TetrahedronProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TetrahedronProps>, {
22
26
  args: () => number[];
23
27
  color: string;
24
28
  }>, {
25
- value: import("vue").ShallowRef<any>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TetrahedronProps>, {
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<TetrahedronProps>, {
27
31
  args: () => number[];
28
32
  color: string;
29
33
  }>>>, {
30
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
31
- args: [radius?: number | undefined, detail?: number | undefined];
32
- }, {}>, {
33
- default?(_: {}): any;
34
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof TetrahedronGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
38
  export default _default;
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToRuntimeProps<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
39
  type __VLS_WithDefaults<P, D> = {
46
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
41
  default: D[K];
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
55
49
  $slots: S;
56
50
  };
57
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,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { TorusGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { TorusGeometry } from 'three';
3
+
3
4
  export interface TorusProps {
4
5
  /**
5
6
  * The radius, tube, radialSegments, tubularSegments, arc of the torus.
@@ -18,30 +19,23 @@ export interface TorusProps {
18
19
  */
19
20
  color?: TresColor;
20
21
  }
21
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusProps>, {
22
26
  args: () => number[];
23
27
  color: string;
24
28
  }>, {
25
- value: import("vue").ShallowRef<any>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusProps>, {
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<TorusProps>, {
27
31
  args: () => number[];
28
32
  color: string;
29
33
  }>>>, {
30
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
31
- args: [radius?: number | undefined, tube?: number | undefined, radialSegments?: number | undefined, tubularSegments?: number | undefined, arc?: number | undefined];
32
- }, {}>, {
33
- default?(_: {}): any;
34
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof TorusGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
38
  export default _default;
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToRuntimeProps<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
39
  type __VLS_WithDefaults<P, D> = {
46
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
41
  default: D[K];
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
55
49
  $slots: S;
56
50
  };
57
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,5 +1,6 @@
1
- import type { TresColor } from '@tresjs/core';
2
- import type { TorusKnotGeometry } from 'three';
1
+ import { TresColor } from '@tresjs/core';
2
+ import { TorusKnotGeometry } from 'three';
3
+
3
4
  export interface TorusKnotProps {
4
5
  /**
5
6
  * The radius, tube, radialSegments, tubularSegments and p, q of the torus knot.
@@ -18,30 +19,23 @@ export interface TorusKnotProps {
18
19
  */
19
20
  color?: TresColor;
20
21
  }
21
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusKnotProps>, {
22
+ declare function __VLS_template(): {
23
+ default?(_: {}): any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusKnotProps>, {
22
26
  args: () => number[];
23
27
  color: string;
24
28
  }>, {
25
- value: import("vue").ShallowRef<any>;
26
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TorusKnotProps>, {
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<TorusKnotProps>, {
27
31
  args: () => number[];
28
32
  color: string;
29
33
  }>>>, {
30
- color: import("three").ColorRepresentation | [r: number, g: number, b: number];
31
- args: [radius?: number | undefined, tube?: number | undefined, tubularSegments?: number | undefined, radialSegments?: number | undefined, p?: number | undefined, q?: number | undefined];
32
- }, {}>, {
33
- default?(_: {}): any;
34
- }>;
34
+ color: TresColor;
35
+ args: ConstructorParameters<typeof TorusKnotGeometry>;
36
+ }, {}>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
35
38
  export default _default;
36
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
37
- type __VLS_TypePropsToRuntimeProps<T> = {
38
- [K in keyof T]-?: {} extends Pick<T, K> ? {
39
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
40
- } : {
41
- type: import('vue').PropType<T[K]>;
42
- required: true;
43
- };
44
- };
45
39
  type __VLS_WithDefaults<P, D> = {
46
40
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
47
41
  default: D[K];
@@ -55,3 +49,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
55
49
  $slots: S;
56
50
  };
57
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
+ };