@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,5 +1,4 @@
1
1
  import { Camera } from 'three';
2
- import { TresControl } from '@tresjs/core';
3
2
  export interface PointerLockControlsProps {
4
3
  /**
5
4
  * Whether to make this the default controls.
@@ -36,36 +35,15 @@ export interface PointerLockControlsProps {
36
35
  */
37
36
  selector?: string;
38
37
  }
39
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<PointerLockControlsProps>, {
40
- makeDefault: boolean;
41
- }>, {
42
- instance: import('vue').Ref<TresControl | null>;
43
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
38
+ declare const _default: import('vue').DefineComponent<PointerLockControlsProps, {
39
+ instance: import('vue').Ref<import('@tresjs/core').TresControl | null, import('@tresjs/core').TresControl | null>;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
41
  change: (...args: any[]) => void;
45
42
  isLock: (...args: any[]) => void;
46
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<PointerLockControlsProps>, {
47
- makeDefault: boolean;
48
- }>>> & {
43
+ }, string, import('vue').PublicProps, Readonly<PointerLockControlsProps> & Readonly<{
49
44
  onChange?: ((...args: any[]) => any) | undefined;
50
45
  onIsLock?: ((...args: any[]) => any) | undefined;
51
- }, {
46
+ }>, {
52
47
  makeDefault: boolean;
53
- }, {}>;
48
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
54
49
  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
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
64
- type __VLS_TypePropsToOption<T> = {
65
- [K in keyof T]-?: {} extends Pick<T, K> ? {
66
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
67
- } : {
68
- type: import('vue').PropType<T[K]>;
69
- required: true;
70
- };
71
- };
@@ -41,66 +41,51 @@ export interface ScrollControlsProps {
41
41
  htmlScroll?: boolean;
42
42
  }
43
43
  declare function __VLS_template(): {
44
- default?(_: {}): any;
44
+ slots: {
45
+ default?(_: {}): any;
46
+ };
47
+ refs: {
48
+ wrapperRef: 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, {
49
+ P: {};
50
+ B: {};
51
+ D: {};
52
+ C: {};
53
+ M: {};
54
+ Defaults: {};
55
+ }, 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;
56
+ };
57
+ attrs: Partial<{}>;
45
58
  };
46
- declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
59
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
60
+ declare const __VLS_component: import('vue').DefineComponent<{
47
61
  pages?: number;
48
62
  distance?: number;
49
63
  smoothScroll?: number;
50
64
  horizontal?: boolean;
51
65
  htmlScroll?: boolean;
52
- }>, {
53
- pages: number;
54
- distance: number;
55
- smoothScroll: number;
56
- horizontal: boolean;
57
- htmlScroll: boolean;
58
- }>, {
59
- instance: import('vue').ShallowRef<any>;
60
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
66
+ }, {
67
+ instance: import('vue').ShallowRef<any, any>;
68
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
69
  "update:modelValue": (...args: any[]) => void;
62
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
70
+ }, string, import('vue').PublicProps, Readonly<{
63
71
  pages?: number;
64
72
  distance?: number;
65
73
  smoothScroll?: number;
66
74
  horizontal?: boolean;
67
75
  htmlScroll?: boolean;
68
- }>, {
69
- pages: number;
70
- distance: number;
71
- smoothScroll: number;
72
- horizontal: boolean;
73
- htmlScroll: boolean;
74
- }>>> & {
76
+ }> & Readonly<{
75
77
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
76
- }, {
78
+ }>, {
77
79
  distance: number;
78
80
  pages: number;
79
81
  smoothScroll: number;
80
82
  horizontal: boolean;
81
83
  htmlScroll: boolean;
82
- }, {}>;
83
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
84
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
85
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
84
86
  export default _default;
85
- type __VLS_WithDefaults<P, D> = {
86
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
87
- default: D[K];
88
- }> : P[K];
89
- };
90
- type __VLS_Prettify<T> = {
91
- [K in keyof T]: T[K];
92
- } & {};
93
87
  type __VLS_WithTemplateSlots<T, S> = T & {
94
88
  new (): {
95
89
  $slots: S;
96
90
  };
97
91
  };
98
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
99
- type __VLS_TypePropsToOption<T> = {
100
- [K in keyof T]-?: {} extends Pick<T, K> ? {
101
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
102
- } : {
103
- type: import('vue').PropType<T[K]>;
104
- required: true;
105
- };
106
- };
@@ -1,5 +1,5 @@
1
- import { Camera, Object3D } from 'three';
2
1
  import { TransformControls } from 'three-stdlib';
2
+ import { Camera, Object3D } from 'three';
3
3
  export interface TransformControlsProps {
4
4
  object: Object3D;
5
5
  camera?: Camera;
@@ -15,63 +15,28 @@ export interface TransformControlsProps {
15
15
  showY?: boolean;
16
16
  showZ?: boolean;
17
17
  }
18
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<TransformControlsProps>, {
19
- mode: string;
20
- enabled: boolean;
21
- axis: string;
22
- space: string;
23
- size: number;
24
- showX: boolean;
25
- showY: boolean;
26
- showZ: boolean;
27
- }>, {
28
- instance: import('vue').ShallowRef<TransformControls<Camera> | null>;
29
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ declare const _default: import('vue').DefineComponent<TransformControlsProps, {
19
+ instance: import('vue').ShallowRef<TransformControls<Camera> | null, TransformControls<Camera> | null>;
20
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
30
21
  change: (...args: any[]) => void;
31
22
  dragging: (...args: any[]) => void;
32
23
  mouseDown: (...args: any[]) => void;
33
24
  mouseUp: (...args: any[]) => void;
34
25
  objectChange: (...args: any[]) => void;
35
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<TransformControlsProps>, {
36
- mode: string;
37
- enabled: boolean;
38
- axis: string;
39
- space: string;
40
- size: number;
41
- showX: boolean;
42
- showY: boolean;
43
- showZ: boolean;
44
- }>>> & {
26
+ }, string, import('vue').PublicProps, Readonly<TransformControlsProps> & Readonly<{
45
27
  onChange?: ((...args: any[]) => any) | undefined;
46
28
  onDragging?: ((...args: any[]) => any) | undefined;
47
29
  onMouseDown?: ((...args: any[]) => any) | undefined;
48
30
  onMouseUp?: ((...args: any[]) => any) | undefined;
49
31
  onObjectChange?: ((...args: any[]) => any) | undefined;
50
- }, {
51
- size: number;
32
+ }>, {
52
33
  enabled: boolean;
34
+ size: number;
53
35
  mode: string;
54
36
  axis: "X" | "Y" | "Z" | "XY" | "YZ" | "XZ" | "XYZ";
55
37
  space: "local" | "world";
56
38
  showX: boolean;
57
39
  showY: boolean;
58
40
  showZ: boolean;
59
- }, {}>;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
60
42
  export default _default;
61
- type __VLS_WithDefaults<P, D> = {
62
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
63
- default: D[K];
64
- }> : P[K];
65
- };
66
- type __VLS_Prettify<T> = {
67
- [K in keyof T]: T[K];
68
- } & {};
69
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
- type __VLS_TypePropsToOption<T> = {
71
- [K in keyof T]-?: {} extends Pick<T, K> ? {
72
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
- } : {
74
- type: import('vue').PropType<T[K]>;
75
- required: true;
76
- };
77
- };
@@ -1,8 +1,8 @@
1
- import { default as OrbitControls } from './OrbitControls.vue';
1
+ import { default as CameraControls, BaseCameraControls } from './CameraControls.vue';
2
2
  import { default as KeyboardControls } from './KeyboardControls.vue';
3
- import { default as TransformControls } from './TransformControls.vue';
4
- import { default as PointerLockControls } from './PointerLockControls.vue';
5
3
  import { default as MapControls } from './MapControls.vue';
4
+ import { default as OrbitControls } from './OrbitControls.vue';
5
+ import { default as PointerLockControls } from './PointerLockControls.vue';
6
6
  import { default as ScrollControls } from './ScrollControls.vue';
7
- import { default as CameraControls, BaseCameraControls } from './CameraControls.vue';
8
- export { OrbitControls, TransformControls, PointerLockControls, MapControls, KeyboardControls, ScrollControls, CameraControls, BaseCameraControls, };
7
+ import { default as TransformControls } from './TransformControls.vue';
8
+ export { BaseCameraControls, CameraControls, KeyboardControls, MapControls, OrbitControls, PointerLockControls, ScrollControls, TransformControls, };
@@ -1,7 +1,7 @@
1
1
  export * from './abstractions';
2
- export * from './loaders';
3
2
  export * from './controls';
3
+ export * from './loaders';
4
4
  export * from './materials';
5
+ export * from './misc';
5
6
  export * from './shapes';
6
7
  export * from './staging';
7
- export * from './misc';
@@ -90,36 +90,11 @@ interface SVGProps {
90
90
  */
91
91
  depth?: 'renderOrder' | 'flat' | 'offsetZ' | number;
92
92
  }
93
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<SVGProps>, {
94
- skipStrokes: boolean;
95
- skipFills: boolean;
96
- depth: string;
97
- }>, {
98
- instance: import('vue').ShallowRef<any>;
99
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<SVGProps>, {
100
- skipStrokes: boolean;
101
- skipFills: boolean;
102
- depth: string;
103
- }>>>, {
93
+ declare const _default: import('vue').DefineComponent<SVGProps, {
94
+ instance: import('vue').ShallowRef<any, any>;
95
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SVGProps> & Readonly<{}>, {
104
96
  depth: "renderOrder" | "flat" | "offsetZ" | number;
105
97
  skipStrokes: boolean;
106
98
  skipFills: boolean;
107
- }, {}>;
99
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
108
100
  export default _default;
109
- type __VLS_WithDefaults<P, D> = {
110
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
111
- default: D[K];
112
- }> : P[K];
113
- };
114
- type __VLS_Prettify<T> = {
115
- [K in keyof T]: T[K];
116
- } & {};
117
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
118
- type __VLS_TypePropsToOption<T> = {
119
- [K in keyof T]-?: {} extends Pick<T, K> ? {
120
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
121
- } : {
122
- type: import('vue').PropType<T[K]>;
123
- required: true;
124
- };
125
- };
@@ -1,8 +1,8 @@
1
- import { default as GLTFModel } from './useGLTF/component.vue';
2
- import { default as FBXModel } from './useFBX/component.vue';
3
1
  import { default as SVG } from './SVG/component.vue';
2
+ import { default as FBXModel } from './useFBX/component.vue';
3
+ import { default as GLTFModel } from './useGLTF/component.vue';
4
4
  import { useProgress } from './useProgress';
5
5
  import { useVideoTexture } from './useVideoTexture';
6
- export * from './useGLTF';
7
6
  export * from './useFBX';
7
+ export * from './useGLTF';
8
8
  export { FBXModel, GLTFModel, SVG, useProgress, useVideoTexture };
@@ -28,41 +28,18 @@ export interface FBXModelProps {
28
28
  */
29
29
  receiveShadow?: boolean;
30
30
  }
31
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
31
+ declare const _default: import('vue').DefineComponent<{
32
32
  path: string;
33
33
  castShadow?: boolean;
34
34
  receiveShadow?: boolean;
35
- }>, {
36
- castShadow: boolean;
37
- receiveShadow: boolean;
38
- }>, {
39
- instance: import('vue').Ref<any>;
40
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
35
+ }, {
36
+ instance: import('vue').Ref<any, any>;
37
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
41
38
  path: string;
42
39
  castShadow?: boolean;
43
40
  receiveShadow?: boolean;
44
- }>, {
45
- castShadow: boolean;
46
- receiveShadow: boolean;
47
- }>>>, {
41
+ }> & Readonly<{}>, {
48
42
  castShadow: boolean;
49
43
  receiveShadow: boolean;
50
- }, {}>;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
51
45
  export default _default;
52
- type __VLS_WithDefaults<P, D> = {
53
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
54
- default: D[K];
55
- }> : P[K];
56
- };
57
- type __VLS_Prettify<T> = {
58
- [K in keyof T]: T[K];
59
- } & {};
60
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
- type __VLS_TypePropsToOption<T> = {
62
- [K in keyof T]-?: {} extends Pick<T, K> ? {
63
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
64
- } : {
65
- type: import('vue').PropType<T[K]>;
66
- required: true;
67
- };
68
- };
@@ -1,9 +1,9 @@
1
- import { Object3D } from 'three';
1
+ import { Group } from 'three';
2
2
  /**
3
3
  * Loads an FBX file and returns a THREE.Object3D.
4
4
  *
5
5
  * @export
6
6
  * @param {(string | string[])} path
7
- * @return {*} {Promise<Object3D>}
7
+ * @return {*} {Promise<Group>}
8
8
  */
9
- export declare function useFBX(path: string | string[]): Promise<Object3D>;
9
+ export declare function useFBX<T extends string | string[]>(path: T): Promise<T extends string[] ? Group[] : Group>;
@@ -50,51 +50,24 @@ export interface GLTFModelProps {
50
50
  */
51
51
  decoderPath?: string;
52
52
  }
53
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
53
+ declare const _default: import('vue').DefineComponent<{
54
54
  path: string;
55
55
  draco?: boolean;
56
56
  decoderPath?: string;
57
57
  castShadow?: boolean;
58
58
  receiveShadow?: boolean;
59
- }>, {
60
- draco: boolean;
61
- castShadow: boolean;
62
- receiveShadow: boolean;
63
- decoderPath: string;
64
- }>, {
65
- instance: import('vue').Ref<any>;
66
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
59
+ }, {
60
+ instance: import('vue').Ref<any, any>;
61
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
67
62
  path: string;
68
63
  draco?: boolean;
69
64
  decoderPath?: string;
70
65
  castShadow?: boolean;
71
66
  receiveShadow?: boolean;
72
- }>, {
73
- draco: boolean;
74
- castShadow: boolean;
75
- receiveShadow: boolean;
76
- decoderPath: string;
77
- }>>>, {
67
+ }> & Readonly<{}>, {
78
68
  castShadow: boolean;
79
69
  receiveShadow: boolean;
80
70
  draco: boolean;
81
71
  decoderPath: string;
82
- }, {}>;
72
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
83
73
  export default _default;
84
- type __VLS_WithDefaults<P, D> = {
85
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
86
- default: D[K];
87
- }> : P[K];
88
- };
89
- type __VLS_Prettify<T> = {
90
- [K in keyof T]: T[K];
91
- } & {};
92
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
93
- type __VLS_TypePropsToOption<T> = {
94
- [K in keyof T]-?: {} extends Pick<T, K> ? {
95
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
96
- } : {
97
- type: import('vue').PropType<T[K]>;
98
- required: true;
99
- };
100
- };
@@ -1,6 +1,6 @@
1
1
  import { TresLoader, TresObject3D } from '@tresjs/core';
2
- import { AnimationClip, Material, Scene } from 'three';
3
2
  import { DRACOLoader, GLTF } from 'three-stdlib';
3
+ import { AnimationClip, Material, Scene } from 'three';
4
4
  export interface GLTFLoaderOptions {
5
5
  /**
6
6
  * Whether to use Draco compression.
@@ -23,18 +23,17 @@ export interface GLTFResult {
23
23
  materials: Record<string, Material>;
24
24
  scene: Scene;
25
25
  }
26
- export interface TresGLTFLoader extends TresLoader<GLTF> {
26
+ export interface TresGLTFLoaderType extends TresLoader<GLTF> {
27
27
  setDRACOLoader?: (dracoLoader: DRACOLoader) => void;
28
28
  }
29
29
  /**
30
30
  * Loads a GLTF file and returns a THREE.Object3D.
31
31
  *
32
32
  * @export
33
- * @param {(string | string[])} path
34
- * @param {GLTFLoaderOptions} [options]
35
- *
36
- *
37
- * @param {(loader: GLTFLoader) => void} [extendLoader]
38
- * @return {*} {Promise<GLTFResult>}
33
+ * @template T
34
+ * @param {T} path - Path or array of paths to the GLTF file(s)
35
+ * @param {GLTFLoaderOptions} [options] - Options for the loader
36
+ * @param {(loader: TresGLTFLoaderType) => void} [extendLoader] - Function to extend the loader
37
+ * @returns {Promise<T extends string[] ? GLTFResult[] : GLTFResult>} Promise that resolves with the loaded model(s)
39
38
  */
40
- export declare function useGLTF<T extends string | string[]>(path: T, options?: GLTFLoaderOptions, extendLoader?: (loader: TresGLTFLoader) => void): Promise<T extends string[] ? GLTFResult[] : GLTFResult>;
39
+ export declare function useGLTF<T extends string | string[]>(path: T, options?: GLTFLoaderOptions, extendLoader?: (loader: TresGLTFLoaderType) => void): Promise<T extends string[] ? GLTFResult[] : GLTFResult>;
@@ -8,16 +8,7 @@ interface CustomShaderMaterialProps {
8
8
  [uniform: string]: any;
9
9
  };
10
10
  }
11
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<CustomShaderMaterialProps>, {
12
- instance: import('vue').ShallowRef<null>;
13
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<CustomShaderMaterialProps>>>, {}, {}>;
11
+ declare const _default: import('vue').DefineComponent<CustomShaderMaterialProps, {
12
+ instance: import('vue').ShallowRef<null, null>;
13
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<CustomShaderMaterialProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
14
14
  export default _default;
15
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
16
- type __VLS_TypePropsToOption<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
@@ -1,7 +1,7 @@
1
1
  import { TresColor } from '@tresjs/core';
2
2
  import { Side } from 'three';
3
3
  import { default as HolographicMaterial } from './HolographicMaterialParameters';
4
- declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
4
+ declare const _default: import('vue').DefineComponent<{
5
5
  fresnelAmount?: number;
6
6
  fresnelOpacity?: number;
7
7
  blinkFresnelOnly?: boolean;
@@ -13,22 +13,10 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
13
13
  hologramOpacity?: number;
14
14
  hologramColor?: TresColor;
15
15
  side?: Side;
16
- }>, {
17
- fresnelAmount: number;
18
- fresnelOpacity: number;
19
- blinkFresnelOnly: boolean;
20
- enableBlinking: boolean;
21
- enableAdditive: boolean;
22
- hologramBrightness: number;
23
- scanlineSize: number;
24
- signalSpeed: number;
25
- hologramOpacity: number;
26
- hologramColor: string;
27
- side: 0;
28
- }>, {
29
- root: import('vue').ShallowRef<any>;
16
+ }, {
17
+ root: import('vue').ShallowRef<any, any>;
30
18
  constructor: typeof HolographicMaterial;
31
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
32
20
  fresnelAmount?: number;
33
21
  fresnelOpacity?: number;
34
22
  blinkFresnelOnly?: boolean;
@@ -40,19 +28,7 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
40
28
  hologramOpacity?: number;
41
29
  hologramColor?: TresColor;
42
30
  side?: Side;
43
- }>, {
44
- fresnelAmount: number;
45
- fresnelOpacity: number;
46
- blinkFresnelOnly: boolean;
47
- enableBlinking: boolean;
48
- enableAdditive: boolean;
49
- hologramBrightness: number;
50
- scanlineSize: number;
51
- signalSpeed: number;
52
- hologramOpacity: number;
53
- hologramColor: string;
54
- side: 0;
55
- }>>>, {
31
+ }> & Readonly<{}>, {
56
32
  side: Side;
57
33
  fresnelOpacity: number;
58
34
  fresnelAmount: number;
@@ -64,22 +40,5 @@ declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_T
64
40
  blinkFresnelOnly: boolean;
65
41
  hologramOpacity: number;
66
42
  enableAdditive: boolean;
67
- }, {}>;
43
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
68
44
  export default _default;
69
- type __VLS_WithDefaults<P, D> = {
70
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
71
- default: D[K];
72
- }> : P[K];
73
- };
74
- type __VLS_Prettify<T> = {
75
- [K in keyof T]: T[K];
76
- } & {};
77
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
78
- type __VLS_TypePropsToOption<T> = {
79
- [K in keyof T]-?: {} extends Pick<T, K> ? {
80
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
81
- } : {
82
- type: import('vue').PropType<T[K]>;
83
- required: true;
84
- };
85
- };
@@ -1,6 +1,7 @@
1
- import { default as MeshWobbleMaterial } from './meshWobbleMaterial/index.vue';
2
- import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
3
1
  import { default as CustomShaderMaterial } from './customShaderMaterial/index.vue';
4
- import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
5
2
  import { default as HolographicMaterial } from './holographicMaterial/index.vue';
6
- export { MeshWobbleMaterial, MeshGlassMaterial, CustomShaderMaterial, MeshReflectionMaterial, HolographicMaterial };
3
+ import { default as MeshDiscardMaterial } from './meshDiscardMaterial/index.vue';
4
+ import { default as MeshGlassMaterial } from './meshGlassMaterial/index.vue';
5
+ import { default as MeshReflectionMaterial } from './meshReflectionMaterial/index.vue';
6
+ import { default as MeshWobbleMaterial } from './meshWobbleMaterial/index.vue';
7
+ export { CustomShaderMaterial, HolographicMaterial, MeshDiscardMaterial, MeshGlassMaterial, MeshReflectionMaterial, MeshWobbleMaterial };
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {
2
+ instance: import('vue').ShallowRef<any, any>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { ShaderMaterial } from 'three';
2
+ export declare class MeshDiscardMaterial extends ShaderMaterial {
3
+ constructor();
4
+ }
@@ -1,4 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<{}, {
2
- instance: import('vue').ShallowRef<any>;
3
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{}>>, {}, {}>;
2
+ instance: import('vue').ShallowRef<any, any>;
3
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
4
  export default _default;
@@ -1,6 +1,4 @@
1
- import { MeshStandardMaterialParameters, MeshStandardMaterial } from 'three';
2
- import { Vector2 } from 'three/src/math/Vector2.js';
3
- import { Color } from 'three/src/math/Color.js';
1
+ import { MeshStandardMaterialParameters, Color, MeshStandardMaterial, Vector2 } from 'three';
4
2
  declare class MeshGlassMaterial extends MeshStandardMaterial {
5
3
  isMeshPhysicalMaterial: boolean;
6
4
  clearcoatMap: null;
@@ -1,4 +1,4 @@
1
- import { WebGLRenderer, Camera, Mesh, Scene, WebGLRenderTarget } from 'three';
1
+ import { Camera, Mesh, Scene, WebGLRenderTarget, WebGLRenderer } from 'three';
2
2
  import { ConvolutionMaterial } from './ConvolutionMaterial';
3
3
  export interface BlurPassProps {
4
4
  resolution: number;