@tresjs/cientos 4.0.2 → 4.1.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 (105) hide show
  1. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +27 -56
  2. package/dist/core/abstractions/Billboard.vue.d.ts +61 -0
  3. package/dist/core/abstractions/CubeCamera/component.vue.d.ts +39 -0
  4. package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +23 -0
  5. package/dist/core/abstractions/Edges.vue.d.ts +36 -0
  6. package/dist/core/abstractions/GlobalAudio.d.ts +1 -1
  7. package/dist/core/abstractions/GradientTexture.vue.d.ts +47 -0
  8. package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +4 -0
  9. package/dist/core/abstractions/Image/ImageMaterialImpl.d.ts +8 -0
  10. package/dist/core/abstractions/Image/component.vue.d.ts +81 -0
  11. package/dist/core/abstractions/Lensflare/component.vue.d.ts +9 -44
  12. package/dist/core/abstractions/Lensflare/index.d.ts +1 -1
  13. package/dist/core/abstractions/Levioso.vue.d.ts +22 -35
  14. package/dist/core/abstractions/Mask/component.vue.d.ts +40 -0
  15. package/dist/core/abstractions/Mask/useMask.d.ts +9 -0
  16. package/dist/core/abstractions/MouseParallax.vue.d.ts +2 -29
  17. package/dist/core/abstractions/Outline/OutlineMaterialImpl.d.ts +4 -0
  18. package/dist/core/abstractions/Outline/component.vue.d.ts +34 -0
  19. package/dist/core/abstractions/PositionalAudio.vue.d.ts +7 -42
  20. package/dist/core/abstractions/Reflector.vue.d.ts +14 -38
  21. package/dist/core/abstractions/ScreenSizer.vue.d.ts +35 -0
  22. package/dist/core/abstractions/ScreenSpace.vue.d.ts +32 -0
  23. package/dist/core/abstractions/Text3D.vue.d.ts +20 -46
  24. package/dist/core/abstractions/index.d.ts +19 -9
  25. package/dist/core/abstractions/useAnimations.d.ts +1 -1
  26. package/dist/core/abstractions/useFBO/component.vue.d.ts +4 -29
  27. package/dist/core/abstractions/useFBO/index.d.ts +2 -2
  28. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +19 -14
  29. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +1059 -299
  30. package/dist/core/controls/CameraControls.vue.d.ts +18 -10095
  31. package/dist/core/controls/KeyboardControls.vue.d.ts +6 -29
  32. package/dist/core/controls/MapControls.vue.d.ts +15 -8925
  33. package/dist/core/controls/OrbitControls.vue.d.ts +20 -8940
  34. package/dist/core/controls/PointerLockControls.vue.d.ts +6 -28
  35. package/dist/core/controls/ScrollControls.vue.d.ts +24 -39
  36. package/dist/core/controls/TransformControls.vue.d.ts +8 -43
  37. package/dist/core/controls/index.d.ts +5 -5
  38. package/dist/core/index.d.ts +2 -2
  39. package/dist/core/loaders/SVG/component.vue.d.ts +4 -29
  40. package/dist/core/loaders/index.d.ts +3 -3
  41. package/dist/core/loaders/useFBX/component.vue.d.ts +6 -29
  42. package/dist/core/loaders/useFBX/index.d.ts +3 -3
  43. package/dist/core/loaders/useGLTF/component.vue.d.ts +6 -33
  44. package/dist/core/loaders/useGLTF/index.d.ts +8 -9
  45. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +3 -12
  46. package/dist/core/materials/holographicMaterial/index.vue.d.ts +6 -47
  47. package/dist/core/materials/index.d.ts +5 -4
  48. package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +4 -0
  49. package/dist/core/materials/meshDiscardMaterial/material.d.ts +4 -0
  50. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +2 -2
  51. package/dist/core/materials/meshGlassMaterial/material.d.ts +1 -3
  52. package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +1 -1
  53. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +16 -109
  54. package/dist/core/materials/meshReflectionMaterial/material.d.ts +1 -1
  55. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +6 -29
  56. package/dist/core/materials/meshWobbleMaterial/material.d.ts +1 -1
  57. package/dist/core/misc/BakeShadows.d.ts +1 -1
  58. package/dist/core/misc/Stats.d.ts +4 -4
  59. package/dist/core/misc/StatsGl.d.ts +1 -1
  60. package/dist/core/misc/html/HTML.vue.d.ts +30 -42
  61. package/dist/core/misc/html/utils.d.ts +1 -1
  62. package/dist/core/misc/index.d.ts +3 -3
  63. package/dist/core/shapes/Box.vue.d.ts +20 -29
  64. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +6 -33
  65. package/dist/core/shapes/Circle.vue.d.ts +20 -29
  66. package/dist/core/shapes/Cone.vue.d.ts +20 -29
  67. package/dist/core/shapes/Cylinder.vue.d.ts +20 -29
  68. package/dist/core/shapes/Dodecahedron.vue.d.ts +20 -29
  69. package/dist/core/shapes/Icosahedron.vue.d.ts +20 -29
  70. package/dist/core/shapes/Line2.vue.d.ts +6 -45
  71. package/dist/core/shapes/Octahedron.vue.d.ts +20 -29
  72. package/dist/core/shapes/Plane.vue.d.ts +20 -29
  73. package/dist/core/shapes/Ring.vue.d.ts +20 -29
  74. package/dist/core/shapes/RoundedBox.vue.d.ts +20 -29
  75. package/dist/core/shapes/Sphere.vue.d.ts +20 -29
  76. package/dist/core/shapes/Superformula.vue.d.ts +21 -39
  77. package/dist/core/shapes/Tetrahedron.vue.d.ts +20 -29
  78. package/dist/core/shapes/Torus.vue.d.ts +20 -29
  79. package/dist/core/shapes/TorusKnot.vue.d.ts +20 -29
  80. package/dist/core/shapes/Tube.vue.d.ts +21 -30
  81. package/dist/core/shapes/index.d.ts +1 -1
  82. package/dist/core/staging/Align.vue.d.ts +87 -0
  83. package/dist/core/staging/Backdrop.vue.d.ts +29 -31
  84. package/dist/core/staging/ContactShadows.vue.d.ts +7 -50
  85. package/dist/core/staging/Fit.vue.d.ts +37 -30
  86. package/dist/core/staging/Grid.vue.d.ts +52 -0
  87. package/dist/core/staging/Ocean.vue.d.ts +15 -50
  88. package/dist/core/staging/Precipitation.vue.d.ts +22 -62
  89. package/dist/core/staging/Sky.vue.d.ts +4 -37
  90. package/dist/core/staging/Smoke.vue.d.ts +6 -41
  91. package/dist/core/staging/SoftShadows.vue.d.ts +14 -0
  92. package/dist/core/staging/Sparkles/ShaderData.d.ts +1 -1
  93. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +1 -1
  94. package/dist/core/staging/Sparkles/component.vue.d.ts +9 -86
  95. package/dist/core/staging/Stars.vue.d.ts +5 -40
  96. package/dist/core/staging/index.d.ts +7 -4
  97. package/dist/core/staging/useEnvironment/{envSence.d.ts → EnvironmentScene.d.ts} +3 -3
  98. package/dist/core/staging/useEnvironment/component.vue.d.ts +15 -45
  99. package/dist/core/staging/useEnvironment/index.d.ts +14 -0
  100. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +10 -39
  101. package/dist/trescientos.js +15288 -14829
  102. package/dist/trescientos.umd.cjs +1064 -762
  103. package/dist/utils/calculateScaleFactor.d.ts +7 -0
  104. package/dist/utils/shaderMaterial.d.ts +6 -0
  105. package/package.json +28 -26
@@ -1,4 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
+ import { BufferGeometry } from 'three';
2
3
  export type Float3 = [number, number, number];
3
4
  export interface SuperFormulaProps {
4
5
  /**
@@ -32,27 +33,25 @@ export interface SuperFormulaProps {
32
33
  color?: TresColor;
33
34
  }
34
35
  declare function __VLS_template(): {
35
- default?(_: {}): any;
36
+ slots: {
37
+ default?(_: {}): any;
38
+ };
39
+ refs: {
40
+ superformulaRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
41
+ P: {};
42
+ B: {};
43
+ D: {};
44
+ C: {};
45
+ M: {};
46
+ Defaults: {};
47
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
48
+ };
49
+ attrs: Partial<{}>;
36
50
  };
37
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SuperFormulaProps>, {
38
- widthSegments: number;
39
- heightSegments: number;
40
- numArmsA: number;
41
- expA: () => number[];
42
- numArmsB: number;
43
- expB: () => number[];
44
- color: string;
45
- }>, {
46
- instance: import('vue').ShallowRef<any>;
47
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SuperFormulaProps>, {
48
- widthSegments: number;
49
- heightSegments: number;
50
- numArmsA: number;
51
- expA: () => number[];
52
- numArmsB: number;
53
- expB: () => number[];
54
- color: string;
55
- }>>>, {
51
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
52
+ declare const __VLS_component: import('vue').DefineComponent<SuperFormulaProps, {
53
+ instance: import('vue').ShallowRef<any, any>;
54
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SuperFormulaProps> & Readonly<{}>, {
56
55
  color: TresColor;
57
56
  widthSegments: number;
58
57
  heightSegments: number;
@@ -60,28 +59,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<
60
59
  expA: Float3;
61
60
  numArmsB: number;
62
61
  expB: Float3;
63
- }, {}>;
64
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
62
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
63
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
65
64
  export default _default;
66
- type __VLS_WithDefaults<P, D> = {
67
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
68
- default: D[K];
69
- }> : P[K];
70
- };
71
- type __VLS_Prettify<T> = {
72
- [K in keyof T]: T[K];
73
- } & {};
74
65
  type __VLS_WithTemplateSlots<T, S> = T & {
75
66
  new (): {
76
67
  $slots: S;
77
68
  };
78
69
  };
79
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
80
- type __VLS_TypePropsToOption<T> = {
81
- [K in keyof T]-?: {} extends Pick<T, K> ? {
82
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
83
- } : {
84
- type: import('vue').PropType<T[K]>;
85
- required: true;
86
- };
87
- };
@@ -19,41 +19,32 @@ export interface TetrahedronProps {
19
19
  color?: TresColor;
20
20
  }
21
21
  declare function __VLS_template(): {
22
- default?(_: {}): any;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ tetrahedronRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
34
+ };
35
+ attrs: Partial<{}>;
23
36
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TetrahedronProps>, {
25
- args: () => number[];
26
- color: string;
27
- }>, {
28
- 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<TetrahedronProps>, {
30
- args: () => number[];
31
- color: string;
32
- }>>>, {
37
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
+ declare const __VLS_component: import('vue').DefineComponent<TetrahedronProps, {
39
+ instance: import('vue').ShallowRef<any, any>;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TetrahedronProps> & Readonly<{}>, {
33
41
  color: TresColor;
34
42
  args: ConstructorParameters<typeof TetrahedronGeometry>;
35
- }, {}>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
45
  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
46
  type __VLS_WithTemplateSlots<T, S> = T & {
47
47
  new (): {
48
48
  $slots: S;
49
49
  };
50
50
  };
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
- };
@@ -19,41 +19,32 @@ export interface TorusProps {
19
19
  color?: TresColor;
20
20
  }
21
21
  declare function __VLS_template(): {
22
- default?(_: {}): any;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ torusRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
34
+ };
35
+ attrs: Partial<{}>;
23
36
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusProps>, {
25
- args: () => number[];
26
- color: string;
27
- }>, {
28
- 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<TorusProps>, {
30
- args: () => number[];
31
- color: string;
32
- }>>>, {
37
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
+ declare const __VLS_component: import('vue').DefineComponent<TorusProps, {
39
+ instance: import('vue').ShallowRef<any, any>;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TorusProps> & Readonly<{}>, {
33
41
  color: TresColor;
34
42
  args: ConstructorParameters<typeof TorusGeometry>;
35
- }, {}>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
45
  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
46
  type __VLS_WithTemplateSlots<T, S> = T & {
47
47
  new (): {
48
48
  $slots: S;
49
49
  };
50
50
  };
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
- };
@@ -19,41 +19,32 @@ export interface TorusKnotProps {
19
19
  color?: TresColor;
20
20
  }
21
21
  declare function __VLS_template(): {
22
- default?(_: {}): any;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ torusKnotRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
34
+ };
35
+ attrs: Partial<{}>;
23
36
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TorusKnotProps>, {
25
- args: () => number[];
26
- color: string;
27
- }>, {
28
- 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<TorusKnotProps>, {
30
- args: () => number[];
31
- color: string;
32
- }>>>, {
37
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
+ declare const __VLS_component: import('vue').DefineComponent<TorusKnotProps, {
39
+ instance: import('vue').ShallowRef<any, any>;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TorusKnotProps> & Readonly<{}>, {
33
41
  color: TresColor;
34
42
  args: ConstructorParameters<typeof TorusKnotGeometry>;
35
- }, {}>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
45
  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
46
  type __VLS_WithTemplateSlots<T, S> = T & {
47
47
  new (): {
48
48
  $slots: S;
49
49
  };
50
50
  };
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
- };
@@ -1,5 +1,5 @@
1
1
  import { TresColor } from '@tresjs/core';
2
- import { TubeGeometry, QuadraticBezierCurve3 } from 'three';
2
+ import { TubeGeometry } from 'three';
3
3
  export interface TubeProps {
4
4
  /**
5
5
  * The curve, segments, radius, radialSegments, closed.
@@ -19,41 +19,32 @@ export interface TubeProps {
19
19
  color?: TresColor;
20
20
  }
21
21
  declare function __VLS_template(): {
22
- default?(_: {}): any;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ };
25
+ refs: {
26
+ tubeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
27
+ P: {};
28
+ B: {};
29
+ D: {};
30
+ C: {};
31
+ M: {};
32
+ Defaults: {};
33
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Mesh<import('three').BufferGeometry<import('three').NormalBufferAttributes>, import('three').Material | import('three').Material[], import('three').Object3DEventMap>, typeof import('three').Mesh>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
34
+ };
35
+ attrs: Partial<{}>;
23
36
  };
24
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TubeProps>, {
25
- args: () => (number | boolean | QuadraticBezierCurve3)[];
26
- color: string;
27
- }>, {
28
- 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<TubeProps>, {
30
- args: () => (number | boolean | QuadraticBezierCurve3)[];
31
- color: string;
32
- }>>>, {
37
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
+ declare const __VLS_component: import('vue').DefineComponent<TubeProps, {
39
+ instance: import('vue').ShallowRef<any, any>;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TubeProps> & Readonly<{}>, {
33
41
  color: TresColor;
34
42
  args: ConstructorParameters<typeof TubeGeometry>;
35
- }, {}>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
45
  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
46
  type __VLS_WithTemplateSlots<T, S> = T & {
47
47
  new (): {
48
48
  $slots: S;
49
49
  };
50
50
  };
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
- };
@@ -16,4 +16,4 @@ import { default as Tetrahedron } from './Tetrahedron.vue';
16
16
  import { default as Torus } from './Torus.vue';
17
17
  import { default as TorusKnot } from './TorusKnot.vue';
18
18
  import { default as Tube } from './Tube.vue';
19
- export { Box, CatmullRomCurve3, Circle, Cylinder, Cone, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
19
+ export { Box, CatmullRomCurve3, Circle, Cone, Cylinder, Dodecahedron, Icosahedron, Line2, Octahedron, Plane, Ring, RoundedBox, Sphere, Superformula, Tetrahedron, Torus, TorusKnot, Tube, };
@@ -0,0 +1,87 @@
1
+ import { Group, Object3D, Box3, Sphere, Vector3 } from 'three';
2
+ import { MaybeRefOrGetter } from 'vue';
3
+ export interface OnAlignCallbackProps {
4
+ /** The next parent above <Align /> */
5
+ parent: Object3D;
6
+ /** The outmost container group of the <Align/> component */
7
+ container: Object3D;
8
+ width: number;
9
+ height: number;
10
+ depth: number;
11
+ boundingBox: Box3;
12
+ boundingSphere: Sphere;
13
+ center: Vector3;
14
+ verticalAlignment: number;
15
+ horizontalAlignment: number;
16
+ depthAlignment: number;
17
+ }
18
+ export interface AlignProps {
19
+ top?: boolean;
20
+ right?: boolean;
21
+ bottom?: boolean;
22
+ left?: boolean;
23
+ front?: boolean;
24
+ back?: boolean;
25
+ /** Disable all axes */
26
+ disable?: boolean;
27
+ /** Disable x-axis alignment */
28
+ disableX?: boolean;
29
+ /** Disable y-axis alignment */
30
+ disableY?: boolean;
31
+ /** Disable z-axis alignment */
32
+ disableZ?: boolean;
33
+ /** See https://threejs.org/docs/index.html?q=box3#api/en/math/Box3.setFromObject */
34
+ precise?: boolean;
35
+ /** Callback, fires when updating, after measurement */
36
+ onAlign?: (props: OnAlignCallbackProps) => void;
37
+ /** Optional cacheKey to keep the component from recalculating on every render */
38
+ cacheKey?: MaybeRefOrGetter<any>;
39
+ }
40
+ declare function update(): void;
41
+ declare function __VLS_template(): {
42
+ slots: {
43
+ default?(_: {}): any;
44
+ };
45
+ refs: {
46
+ ref: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
47
+ P: {};
48
+ B: {};
49
+ D: {};
50
+ C: {};
51
+ M: {};
52
+ Defaults: {};
53
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
54
+ outer: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
55
+ P: {};
56
+ B: {};
57
+ D: {};
58
+ C: {};
59
+ M: {};
60
+ Defaults: {};
61
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
62
+ inner: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
63
+ P: {};
64
+ B: {};
65
+ D: {};
66
+ C: {};
67
+ M: {};
68
+ Defaults: {};
69
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<Group<import('three').Object3DEventMap>, typeof Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
70
+ };
71
+ attrs: Partial<{}>;
72
+ };
73
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
74
+ declare const __VLS_component: import('vue').DefineComponent<AlignProps, {
75
+ instance: import('vue').ShallowRef<Group<import('three').Object3DEventMap> | undefined, Group<import('three').Object3DEventMap> | undefined>;
76
+ update: typeof update;
77
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlignProps> & Readonly<{}>, {
78
+ precise: boolean;
79
+ cacheKey: MaybeRefOrGetter<any>;
80
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
81
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
82
+ export default _default;
83
+ type __VLS_WithTemplateSlots<T, S> = T & {
84
+ new (): {
85
+ $slots: S;
86
+ };
87
+ };
@@ -1,47 +1,45 @@
1
+ import { PlaneGeometry } from 'three';
1
2
  export interface BackdropProps {
2
3
  floor?: number;
3
4
  segments?: number;
4
5
  receiveShadow?: boolean;
5
6
  }
6
7
  declare function __VLS_template(): {
7
- default?(_: {}): any;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {
12
+ backdropRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
13
+ P: {};
14
+ B: {};
15
+ D: {};
16
+ C: {};
17
+ M: {};
18
+ Defaults: {};
19
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<import('three').Group<import('three').Object3DEventMap>, import('@tresjs/core').WithMathProps<import('three').Group<import('three').Object3DEventMap>> & import('@tresjs/core').VueProps & Partial<import('@tresjs/core').EventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
20
+ planeRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<PlaneGeometry, import('@tresjs/core').WithMathProps<PlaneGeometry> & import('@tresjs/core').VueProps>>, Omit<import('@tresjs/core').InstanceProps<PlaneGeometry, typeof PlaneGeometry>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
21
+ P: {};
22
+ B: {};
23
+ D: {};
24
+ C: {};
25
+ M: {};
26
+ Defaults: {};
27
+ }, Readonly<import('@tresjs/core').Mutable<import('@tresjs/core').Overwrite<Partial<import('@tresjs/core').Overwrite<PlaneGeometry, import('@tresjs/core').WithMathProps<PlaneGeometry> & import('@tresjs/core').VueProps>>, Omit<import('@tresjs/core').InstanceProps<PlaneGeometry, typeof PlaneGeometry>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
28
+ };
29
+ attrs: Partial<{}>;
8
30
  };
9
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<BackdropProps>, {
10
- floor: number;
11
- segments: number;
31
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
+ declare const __VLS_component: import('vue').DefineComponent<BackdropProps, {
33
+ instance: import('vue').ShallowRef<any, any>;
34
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BackdropProps> & Readonly<{}>, {
12
35
  receiveShadow: boolean;
13
- }>, {
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_TypePropsToOption<BackdropProps>, {
16
- floor: number;
17
36
  segments: number;
18
- receiveShadow: boolean;
19
- }>>>, {
20
- receiveShadow: boolean;
21
37
  floor: number;
22
- segments: number;
23
- }, {}>;
24
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
39
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
40
  export default _default;
26
- type __VLS_WithDefaults<P, D> = {
27
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
28
- default: D[K];
29
- }> : P[K];
30
- };
31
- type __VLS_Prettify<T> = {
32
- [K in keyof T]: T[K];
33
- } & {};
34
41
  type __VLS_WithTemplateSlots<T, S> = T & {
35
42
  new (): {
36
43
  $slots: S;
37
44
  };
38
45
  };
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,5 +1,5 @@
1
- import { TresColor } from '@tresjs/core';
2
1
  import { Group } from 'three';
2
+ import { TresColor } from '@tresjs/core';
3
3
  export interface ContactShadowsProps {
4
4
  /**
5
5
  * The opacity of the shadows.
@@ -105,63 +105,20 @@ export interface ContactShadowsProps {
105
105
  */
106
106
  depthWrite?: boolean;
107
107
  }
108
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ContactShadowsProps>, {
109
- opacity: number;
110
- blur: number;
111
- color: string;
112
- tint: undefined;
113
- scale: number;
114
- width: number;
115
- height: number;
116
- far: number;
117
- smooth: boolean;
118
- resolution: number;
119
- frames: number;
120
- depthWrite: boolean;
121
- }>, {
108
+ declare const _default: import('vue').DefineComponent<ContactShadowsProps, {
122
109
  instance: Group<import('three').Object3DEventMap>;
123
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ContactShadowsProps>, {
124
- opacity: number;
125
- blur: number;
126
- color: string;
127
- tint: undefined;
128
- scale: number;
129
- width: number;
130
- height: number;
131
- far: number;
132
- smooth: boolean;
133
- resolution: number;
134
- frames: number;
110
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ContactShadowsProps> & Readonly<{}>, {
135
111
  depthWrite: boolean;
136
- }>>>, {
137
- height: number;
138
112
  color: TresColor;
139
113
  scale: number | [x: number, y: number];
114
+ far: number;
140
115
  width: number;
141
- blur: number;
142
- depthWrite: boolean;
116
+ height: number;
143
117
  opacity: number;
118
+ blur: number;
144
119
  resolution: number;
145
- far: number;
146
120
  frames: number;
147
121
  tint: TresColor;
148
122
  smooth: boolean;
149
- }, {}>;
123
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
150
124
  export default _default;
151
- type __VLS_WithDefaults<P, D> = {
152
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
153
- default: D[K];
154
- }> : P[K];
155
- };
156
- type __VLS_Prettify<T> = {
157
- [K in keyof T]: T[K];
158
- } & {};
159
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
160
- type __VLS_TypePropsToOption<T> = {
161
- [K in keyof T]-?: {} extends Pick<T, K> ? {
162
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
163
- } : {
164
- type: import('vue').PropType<T[K]>;
165
- required: true;
166
- };
167
- };