@tresjs/cientos 5.1.0 → 5.1.2

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 (151) hide show
  1. package/dist/trescientos.d.ts +11587 -0
  2. package/dist/trescientos.js +11796 -60020
  3. package/package.json +11 -17
  4. package/dist/core/abstractions/AnimatedSprite/Atlas.d.ts +0 -37
  5. package/dist/core/abstractions/AnimatedSprite/AtlasAnimationDefinitionParser.d.ts +0 -10
  6. package/dist/core/abstractions/AnimatedSprite/StringOps.d.ts +0 -2
  7. package/dist/core/abstractions/AnimatedSprite/component.vue.d.ts +0 -107
  8. package/dist/core/abstractions/Billboard.vue.d.ts +0 -79
  9. package/dist/core/abstractions/CubeCamera/component.vue.d.ts +0 -49
  10. package/dist/core/abstractions/CubeCamera/useCubeCamera.d.ts +0 -24
  11. package/dist/core/abstractions/Edges.vue.d.ts +0 -46
  12. package/dist/core/abstractions/GlobalAudio.d.ts +0 -50
  13. package/dist/core/abstractions/GradientTexture.vue.d.ts +0 -60
  14. package/dist/core/abstractions/Image/ImageMaterial.vue.d.ts +0 -6
  15. package/dist/core/abstractions/Image/ImageMaterialImpl.d.ts +0 -8
  16. package/dist/core/abstractions/Image/component.vue.d.ts +0 -75
  17. package/dist/core/abstractions/Lensflare/LensflareImpl.d.ts +0 -23
  18. package/dist/core/abstractions/Lensflare/RandUtils.d.ts +0 -68
  19. package/dist/core/abstractions/Lensflare/component.vue.d.ts +0 -60
  20. package/dist/core/abstractions/Lensflare/constants.d.ts +0 -20
  21. package/dist/core/abstractions/Lensflare/index.d.ts +0 -36
  22. package/dist/core/abstractions/Levioso.vue.d.ts +0 -48
  23. package/dist/core/abstractions/MarchingCubes/MarchingCube.vue.d.ts +0 -22
  24. package/dist/core/abstractions/MarchingCubes/MarchingCubes.vue.d.ts +0 -35
  25. package/dist/core/abstractions/MarchingCubes/MarchingPlane.vue.d.ts +0 -20
  26. package/dist/core/abstractions/MarchingCubes/const.d.ts +0 -2
  27. package/dist/core/abstractions/Mask/component.vue.d.ts +0 -50
  28. package/dist/core/abstractions/Mask/useMask.d.ts +0 -9
  29. package/dist/core/abstractions/MouseParallax.vue.d.ts +0 -51
  30. package/dist/core/abstractions/Outline/OutlineMaterialImpl.d.ts +0 -4
  31. package/dist/core/abstractions/Outline/component.vue.d.ts +0 -44
  32. package/dist/core/abstractions/PositionalAudio.vue.d.ts +0 -42
  33. package/dist/core/abstractions/Reflector.vue.d.ts +0 -88
  34. package/dist/core/abstractions/ScreenSizer.vue.d.ts +0 -53
  35. package/dist/core/abstractions/ScreenSpace.vue.d.ts +0 -42
  36. package/dist/core/abstractions/Text3D.vue.d.ts +0 -164
  37. package/dist/core/abstractions/index.d.ts +0 -28
  38. package/dist/core/abstractions/useAnimations.d.ts +0 -19
  39. package/dist/core/abstractions/useFBO/component.vue.d.ts +0 -9
  40. package/dist/core/abstractions/useFBO/index.d.ts +0 -17
  41. package/dist/core/abstractions/useSurfaceSampler/component.vue.d.ts +0 -38
  42. package/dist/core/abstractions/useSurfaceSampler/index.d.ts +0 -1412
  43. package/dist/core/controls/CameraControls.vue.d.ts +0 -306
  44. package/dist/core/controls/Helper/component.vue.d.ts +0 -16
  45. package/dist/core/controls/Helper/useHelper.d.ts +0 -10
  46. package/dist/core/controls/KeyboardControls.vue.d.ts +0 -58
  47. package/dist/core/controls/MapControls.vue.d.ts +0 -260
  48. package/dist/core/controls/OrbitControls.vue.d.ts +0 -285
  49. package/dist/core/controls/PointerLockControls.vue.d.ts +0 -51
  50. package/dist/core/controls/ScrollControls.vue.d.ts +0 -96
  51. package/dist/core/controls/TransformControls.vue.d.ts +0 -44
  52. package/dist/core/controls/index.d.ts +0 -9
  53. package/dist/core/index.d.ts +0 -7
  54. package/dist/core/loaders/index.d.ts +0 -12
  55. package/dist/core/loaders/useFBX/component.vue.d.ts +0 -38
  56. package/dist/core/loaders/useFBX/index.d.ts +0 -32
  57. package/dist/core/loaders/useGLTF/component.vue.d.ts +0 -61
  58. package/dist/core/loaders/useGLTF/index.d.ts +0 -43
  59. package/dist/core/loaders/useProgress.d.ts +0 -6
  60. package/dist/core/loaders/useSVG/component.vue.d.ts +0 -101
  61. package/dist/core/loaders/useSVG/index.d.ts +0 -65
  62. package/dist/core/loaders/useTexture/component.vue.d.ts +0 -5134
  63. package/dist/core/loaders/useTexture/index.d.ts +0 -3
  64. package/dist/core/loaders/useTextures/index.d.ts +0 -13
  65. package/dist/core/loaders/useVideoTexture.d.ts +0 -28
  66. package/dist/core/materials/customShaderMaterial/index.vue.d.ts +0 -16
  67. package/dist/core/materials/holographicMaterial/HolographicMaterialParameters.d.ts +0 -41
  68. package/dist/core/materials/holographicMaterial/index.vue.d.ts +0 -35
  69. package/dist/core/materials/holographicMaterial/material.d.ts +0 -27
  70. package/dist/core/materials/index.d.ts +0 -8
  71. package/dist/core/materials/meshDiscardMaterial/index.vue.d.ts +0 -6
  72. package/dist/core/materials/meshDiscardMaterial/material.d.ts +0 -4
  73. package/dist/core/materials/meshGlassMaterial/index.vue.d.ts +0 -6
  74. package/dist/core/materials/meshGlassMaterial/material.d.ts +0 -37
  75. package/dist/core/materials/meshReflectionMaterial/BlurPass.d.ts +0 -23
  76. package/dist/core/materials/meshReflectionMaterial/ConvolutionMaterial.d.ts +0 -7
  77. package/dist/core/materials/meshReflectionMaterial/index.vue.d.ts +0 -113
  78. package/dist/core/materials/meshReflectionMaterial/material.d.ts +0 -47
  79. package/dist/core/materials/meshWobbleMaterial/index.vue.d.ts +0 -13
  80. package/dist/core/materials/meshWobbleMaterial/material.d.ts +0 -21
  81. package/dist/core/materials/pointMaterial/component.vue.d.ts +0 -8
  82. package/dist/core/materials/pointMaterial/material.d.ts +0 -4
  83. package/dist/core/misc/BakeShadows.d.ts +0 -1
  84. package/dist/core/misc/LOD.vue.d.ts +0 -52
  85. package/dist/core/misc/Stats.d.ts +0 -13
  86. package/dist/core/misc/StatsGl.d.ts +0 -10
  87. package/dist/core/misc/html/HTML.vue.d.ts +0 -82
  88. package/dist/core/misc/html/utils.d.ts +0 -17
  89. package/dist/core/misc/index.d.ts +0 -8
  90. package/dist/core/misc/useGLTFExporter.d.ts +0 -12
  91. package/dist/core/misc/useIntersect.d.ts +0 -9
  92. package/dist/core/shapes/Box.vue.d.ts +0 -61
  93. package/dist/core/shapes/CatmullRomCurve3.vue.d.ts +0 -30
  94. package/dist/core/shapes/Circle.vue.d.ts +0 -60
  95. package/dist/core/shapes/Cone.vue.d.ts +0 -60
  96. package/dist/core/shapes/CubicBezierLine.vue.d.ts +0 -49
  97. package/dist/core/shapes/Cylinder.vue.d.ts +0 -60
  98. package/dist/core/shapes/Dodecahedron.vue.d.ts +0 -60
  99. package/dist/core/shapes/Icosahedron.vue.d.ts +0 -60
  100. package/dist/core/shapes/Line2.vue.d.ts +0 -32
  101. package/dist/core/shapes/Octahedron.vue.d.ts +0 -60
  102. package/dist/core/shapes/Plane.vue.d.ts +0 -60
  103. package/dist/core/shapes/QuadraticBezierLine.vue.d.ts +0 -48
  104. package/dist/core/shapes/Ring.vue.d.ts +0 -60
  105. package/dist/core/shapes/RoundedBox.vue.d.ts +0 -61
  106. package/dist/core/shapes/ScreenQuad.vue.d.ts +0 -38
  107. package/dist/core/shapes/Sphere.vue.d.ts +0 -61
  108. package/dist/core/shapes/Superformula.vue.d.ts +0 -79
  109. package/dist/core/shapes/Tetrahedron.vue.d.ts +0 -60
  110. package/dist/core/shapes/Torus.vue.d.ts +0 -60
  111. package/dist/core/shapes/TorusKnot.vue.d.ts +0 -60
  112. package/dist/core/shapes/Tube.vue.d.ts +0 -60
  113. package/dist/core/shapes/index.d.ts +0 -22
  114. package/dist/core/staging/AccumulativeShadows/ProgressiveLightMap.d.ts +0 -35
  115. package/dist/core/staging/AccumulativeShadows/SoftShadowMaterial.d.ts +0 -10
  116. package/dist/core/staging/AccumulativeShadows/component.vue.d.ts +0 -115
  117. package/dist/core/staging/Align.vue.d.ts +0 -117
  118. package/dist/core/staging/Backdrop.vue.d.ts +0 -63
  119. package/dist/core/staging/Bounds/Bounds.d.ts +0 -73
  120. package/dist/core/staging/Bounds/component.vue.d.ts +0 -60
  121. package/dist/core/staging/CircleShadow.vue.d.ts +0 -27
  122. package/dist/core/staging/ContactShadows.vue.d.ts +0 -124
  123. package/dist/core/staging/Fit.vue.d.ts +0 -96
  124. package/dist/core/staging/Grid.vue.d.ts +0 -61
  125. package/dist/core/staging/Ocean.vue.d.ts +0 -133
  126. package/dist/core/staging/Precipitation.vue.d.ts +0 -144
  127. package/dist/core/staging/RandomizedLights/RandomizedLights.d.ts +0 -29
  128. package/dist/core/staging/RandomizedLights/component.vue.d.ts +0 -43
  129. package/dist/core/staging/Sky.vue.d.ts +0 -46
  130. package/dist/core/staging/Smoke.vue.d.ts +0 -97
  131. package/dist/core/staging/SoftShadows.vue.d.ts +0 -14
  132. package/dist/core/staging/Sparkles/ShaderData.d.ts +0 -37
  133. package/dist/core/staging/Sparkles/ShaderDataBuilder.d.ts +0 -42
  134. package/dist/core/staging/Sparkles/component.vue.d.ts +0 -168
  135. package/dist/core/staging/Sparkles/useEmptyDataTexture.d.ts +0 -2
  136. package/dist/core/staging/Stage.vue.d.ts +0 -677
  137. package/dist/core/staging/Stars.vue.d.ts +0 -88
  138. package/dist/core/staging/index.d.ts +0 -20
  139. package/dist/core/staging/useEnvironment/EnvironmentScene.d.ts +0 -8
  140. package/dist/core/staging/useEnvironment/component.vue.d.ts +0 -38
  141. package/dist/core/staging/useEnvironment/const.d.ts +0 -116
  142. package/dist/core/staging/useEnvironment/index.d.ts +0 -23
  143. package/dist/core/staging/useEnvironment/lightformer/index.vue.d.ts +0 -37
  144. package/dist/index.d.ts +0 -2
  145. package/dist/utils/Gradient.d.ts +0 -10
  146. package/dist/utils/calculateScaleFactor.d.ts +0 -7
  147. package/dist/utils/constants.d.ts +0 -1
  148. package/dist/utils/easing.d.ts +0 -5
  149. package/dist/utils/index.d.ts +0 -22
  150. package/dist/utils/shaderMaterial.d.ts +0 -6
  151. package/dist/utils/types.d.ts +0 -3
@@ -1,285 +0,0 @@
1
- import { OrbitControls } from 'three-stdlib';
2
- import { TresVector3 } from '@tresjs/core';
3
- import { Camera } from 'three';
4
- export interface OrbitControlsProps {
5
- /**
6
- * Whether to make this the default controls.
7
- *
8
- * @default false
9
- * @type {boolean}
10
- * @memberof OrbitControlsProps
11
- */
12
- makeDefault?: boolean;
13
- /**
14
- * The camera to control.
15
- *
16
- * @type {Camera}
17
- * @memberof OrbitControlsProps
18
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.camera
19
- */
20
- camera?: Camera;
21
- /**
22
- * The dom element to listen to.
23
- *
24
- * @type {HTMLElement}
25
- * @memberof OrbitControlsProps
26
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.domElement
27
- */
28
- domElement?: HTMLElement;
29
- /**
30
- * The target to orbit around.
31
- *
32
- * @type {TresVector3}
33
- * @memberof OrbitControlsProps
34
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.target
35
- */
36
- target?: TresVector3;
37
- /**
38
- * Whether to enable damping (inertia)
39
- *
40
- * @default false
41
- * @type {boolean}
42
- * @memberof OrbitControlsProps
43
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enableDamping
44
- */
45
- enableDamping?: boolean;
46
- /**
47
- * The damping inertia used if `.enableDamping` is set to true
48
- *
49
- * @default 0.05
50
- * @type {number}
51
- * @memberof OrbitControlsProps
52
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.dampingFactor
53
- */
54
- dampingFactor?: number;
55
- /**
56
- * Set to true to automatically rotate around the target.
57
- *
58
- * @default false
59
- * @type {boolean}
60
- * @memberof OrbitControlsProps
61
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.autoRotate
62
- */
63
- autoRotate?: boolean;
64
- /**
65
- * How fast to rotate around the target if `.autoRotate` is true.
66
- *
67
- * @default 2
68
- * @type {number}
69
- * @memberof OrbitControlsProps
70
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.autoRotateSpeed
71
- */
72
- autoRotateSpeed?: number;
73
- /**
74
- * Whether to enable panning.
75
- *
76
- * @default true
77
- * @type {boolean}
78
- * @memberof OrbitControlsProps
79
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enablePan
80
- */
81
- enablePan?: boolean;
82
- /**
83
- * How fast to pan the camera when the keyboard is used. Default is 7.0 pixels per keypress.
84
- *
85
- * @default 7.0
86
- * @type {number}
87
- * @memberof OrbitControlsProps
88
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.keyPanSpeed
89
- */
90
- keyPanSpeed?: number;
91
- /**
92
- * This object contains references to the keycodes for controlling camera panning.
93
- * Default is the 4 arrow keys.
94
- *
95
- * @default `{ LEFT: 'ArrowLeft', UP: 'ArrowUp', RIGHT: 'ArrowRight', BOTTOM: 'ArrowDown' }`
96
- * @type Record<string, string>
97
- * @memberof OrbitControlsProps
98
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.keys
99
- */
100
- keys?: Record<string, string>;
101
- /**
102
- * How far you can orbit horizontally, upper limit.
103
- * If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ],
104
- * with ( max - min < 2 PI ). Default is Infinity.
105
- *
106
- * @default Infinity
107
- * @type {number}
108
- * @memberof OrbitControlsProps
109
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxAzimuthAngle
110
- */
111
- maxAzimuthAngle?: number;
112
- /**
113
- * How far you can orbit horizontally, lower limit.
114
- * If set, the interval [ min, max ] must be a sub-interval of [ - 2 PI, 2 PI ],
115
- * with ( max - min < 2 PI ).
116
- * Default is - Infinity.
117
- *
118
- * @default -Infinity
119
- * @type {number}
120
- * @memberof OrbitControlsProps
121
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minAzimuthAngle
122
- */
123
- minAzimuthAngle?: number;
124
- /**
125
- * How far you can orbit vertically, upper limit.
126
- * Range is 0 to Math.PI radians, and default is Math.PI.
127
- *
128
- * @default Math.PI
129
- * @type {number}
130
- * @memberof OrbitControlsProps
131
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxPolarAngle
132
- */
133
- maxPolarAngle?: number;
134
- /**
135
- * How far you can orbit vertically, lower limit.
136
- * Range is 0 to Math.PI radians, and default is 0.
137
- *
138
- * @default 0
139
- * @type {number}
140
- * @memberof OrbitControlsProps
141
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minPolarAngle
142
- */
143
- minPolarAngle?: number;
144
- /**
145
- * The minimum distance of the camera to the target.
146
- * Default is 0.
147
- *
148
- * @default 0
149
- * @type {number}
150
- * @memberof OrbitControlsProps
151
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minDistance
152
- */
153
- minDistance?: number;
154
- /**
155
- * The maximum distance of the camera to the target.
156
- * Default is Infinity.
157
- *
158
- * @default Infinity
159
- * @type {number}
160
- * @memberof OrbitControlsProps
161
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxDistance
162
- */
163
- maxDistance?: number;
164
- /**
165
- * The minimum field of view angle, in radians.
166
- * Default is 0.
167
- *
168
- * @default 0
169
- * @type {number}
170
- * @memberof OrbitControlsProps
171
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.minZoom
172
- */
173
- minZoom?: number;
174
- /**
175
- * The maximum field of view angle, in radians.
176
- * ( OrthographicCamera only ).
177
- * Default is Infinity.
178
- *
179
- * @default Infinity
180
- * @type {number}
181
- * @memberof OrbitControlsProps
182
- * @see https://threejs.org/docs/index.html?q=orbi#examples/en/controls/OrbitControls.maxZoom
183
- */
184
- maxZoom?: number;
185
- touches?: {
186
- ONE?: number | undefined;
187
- TWO?: number | undefined;
188
- };
189
- /**
190
- * Whether to enable zooming.
191
- *
192
- * @default true
193
- * @type {boolean}
194
- * @memberof OrbitControlsProps
195
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enableZoom
196
- */
197
- enableZoom?: boolean;
198
- /**
199
- * How fast to zoom in and out. Default is 1.
200
- *
201
- * @default 1
202
- * @type {number}
203
- * @memberof OrbitControlsProps
204
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.zoomSpeed
205
- */
206
- zoomSpeed?: number;
207
- /**
208
- * Whether to enable rotating.
209
- *
210
- * @default true
211
- * @type {boolean}
212
- * @memberof OrbitControlsProps
213
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.enableRotate
214
- */
215
- enableRotate?: boolean;
216
- /**
217
- * How fast to rotate around the target. Default is 1.
218
- *
219
- * @default 1
220
- * @type {number}
221
- * @memberof OrbitControlsProps
222
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.rotateSpeed
223
- */
224
- rotateSpeed?: number;
225
- /**
226
- * This object contains references to the mouse actions used by the controls.
227
- * LEFT: Rotate around the target
228
- * MIDDLE: Zoom the camera
229
- * RIGHT: Pan the camera
230
- *
231
- * @default { LEFT: MOUSE.ROTATE, MIDDLE: MOUSE.DOLLY, RIGHT: MOUSE.PAN }
232
- * @type {{ LEFT?: number, MIDDLE?: number, RIGHT?: number }}
233
- * @memberof OrbitControlsProps
234
- * @see https://threejs.org/docs/#examples/en/controls/OrbitControls.mouseButtons
235
- */
236
- mouseButtons?: {
237
- LEFT?: number;
238
- MIDDLE?: number;
239
- RIGHT?: number;
240
- };
241
- }
242
- declare const _default: import('vue').DefineComponent<OrbitControlsProps, {
243
- instance: import('vue').ShallowRef<OrbitControls | null, OrbitControls | null>;
244
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
245
- end: (...args: any[]) => void;
246
- start: (...args: any[]) => void;
247
- change: (...args: any[]) => void;
248
- }, string, import('vue').PublicProps, Readonly<OrbitControlsProps> & Readonly<{
249
- onEnd?: ((...args: any[]) => any) | undefined;
250
- onStart?: ((...args: any[]) => any) | undefined;
251
- onChange?: ((...args: any[]) => any) | undefined;
252
- }>, {
253
- target: TresVector3;
254
- maxDistance: number;
255
- mouseButtons: {
256
- LEFT?: number;
257
- MIDDLE?: number;
258
- RIGHT?: number;
259
- };
260
- touches: {
261
- ONE?: number | undefined;
262
- TWO?: number | undefined;
263
- };
264
- makeDefault: boolean;
265
- minPolarAngle: number;
266
- maxPolarAngle: number;
267
- minAzimuthAngle: number;
268
- maxAzimuthAngle: number;
269
- minDistance: number;
270
- minZoom: number;
271
- maxZoom: number;
272
- enableDamping: boolean;
273
- dampingFactor: number;
274
- autoRotate: boolean;
275
- autoRotateSpeed: number;
276
- enablePan: boolean;
277
- keyPanSpeed: number;
278
- enableZoom: boolean;
279
- zoomSpeed: number;
280
- enableRotate: boolean;
281
- rotateSpeed: number;
282
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
283
- controlsRef: unknown;
284
- }, any>;
285
- export default _default;
@@ -1,51 +0,0 @@
1
- import { Camera } from 'three';
2
- export interface PointerLockControlsProps {
3
- /**
4
- * Whether to make this the default controls.
5
- *
6
- * @default false
7
- * @type {boolean}
8
- * @memberof PointerLockControlsProps
9
- * @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
10
- */
11
- makeDefault?: boolean;
12
- /**
13
- * The camera to control.
14
- *
15
- * @default false
16
- * @type {boolean}
17
- * @memberof PointerLockControlsProps
18
- * @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
19
- */
20
- camera?: Camera;
21
- /**
22
- * The dom element to listen to.
23
- *
24
- * @type {HTMLElement}
25
- * @memberof PointerLockControlsProps
26
- * @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
27
- */
28
- domElement?: HTMLElement;
29
- /**
30
- * The trigger id.
31
- *
32
- * @type {string}
33
- * @memberof PointerLockControlsProps
34
- * @see https://threejs.org/docs/index.html?q=pointe#examples/en/controls/PointerLockControls
35
- */
36
- selector?: string;
37
- }
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, {
41
- change: (...args: any[]) => void;
42
- isLock: (...args: any[]) => void;
43
- }, string, import('vue').PublicProps, Readonly<PointerLockControlsProps> & Readonly<{
44
- onChange?: ((...args: any[]) => any) | undefined;
45
- onIsLock?: ((...args: any[]) => any) | undefined;
46
- }>, {
47
- makeDefault: boolean;
48
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
49
- controlsRef: unknown;
50
- }, any>;
51
- export default _default;
@@ -1,96 +0,0 @@
1
- export interface ScrollControlsProps {
2
- /**
3
- * The scroll size.
4
- *
5
- * @type {number}
6
- * @default 4
7
- * @memberof ScrollControlsProps
8
- */
9
- pages?: number;
10
- /**
11
- * The distance to move the camera.
12
- *
13
- * @type {number}
14
- * @default 4
15
- * @memberof ScrollControlsProps
16
- */
17
- distance?: number;
18
- /**
19
- * The smooth factor of the scrolling.
20
- *
21
- * @type {number}
22
- * @default 0.1
23
- * @memberof ScrollControlsProps
24
- */
25
- smoothScroll?: number;
26
- /**
27
- * Whether the scroll is horizontal or vertical.
28
- *
29
- * @type {boolean}
30
- * @default false
31
- * @memberof ScrollControlsProps
32
- */
33
- horizontal?: boolean;
34
- /**
35
- * Whether to use the HTML scroll.
36
- *
37
- * @type {boolean}
38
- * @default false
39
- * @memberof ScrollControlsProps
40
- */
41
- htmlScroll?: boolean;
42
- }
43
- type __VLS_Props = {
44
- pages?: number;
45
- distance?: number;
46
- smoothScroll?: number;
47
- horizontal?: boolean;
48
- htmlScroll?: boolean;
49
- };
50
- declare function __VLS_template(): {
51
- attrs: Partial<{}>;
52
- slots: {
53
- default?(_: {}): any;
54
- };
55
- refs: {
56
- 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
57
- P: {};
58
- B: {};
59
- D: {};
60
- C: {};
61
- M: {};
62
- Defaults: {};
63
- }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
64
- };
65
- rootEl: any;
66
- };
67
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
68
- declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
69
- instance: import('vue').ShallowRef<any, any>;
70
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
71
- "update:modelValue": (...args: any[]) => void;
72
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
73
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
74
- }>, {
75
- distance: number;
76
- pages: number;
77
- smoothScroll: number;
78
- horizontal: boolean;
79
- htmlScroll: boolean;
80
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
81
- 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, 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, {
82
- P: {};
83
- B: {};
84
- D: {};
85
- C: {};
86
- M: {};
87
- Defaults: {};
88
- }, 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/dist/src/utils/pointerEvents.js').PointerEventHandlers>>>, Omit<import('@tresjs/core').InstanceProps<import('three').Group<import('three').Object3DEventMap>, typeof import('three').Group>, "object">>>>, {}, {}, import('vue').ComputedOptions, import('vue').MethodOptions, {}> | null;
89
- }, any>;
90
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
91
- export default _default;
92
- type __VLS_WithTemplateSlots<T, S> = T & {
93
- new (): {
94
- $slots: S;
95
- };
96
- };
@@ -1,44 +0,0 @@
1
- import { TransformControls } from 'three-stdlib';
2
- import { Camera, Object3D } from 'three';
3
- export interface TransformControlsProps {
4
- object: Object3D;
5
- camera?: Camera;
6
- mode?: string;
7
- enabled?: boolean;
8
- axis?: 'X' | 'Y' | 'Z' | 'XY' | 'YZ' | 'XZ' | 'XYZ';
9
- translationSnap?: number;
10
- rotationSnap?: number;
11
- scaleSnap?: number;
12
- space?: 'local' | 'world';
13
- size?: number;
14
- showX?: boolean;
15
- showY?: boolean;
16
- showZ?: boolean;
17
- }
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, {
21
- change: (...args: any[]) => void;
22
- dragging: (...args: any[]) => void;
23
- mouseDown: (...args: any[]) => void;
24
- mouseUp: (...args: any[]) => void;
25
- objectChange: (...args: any[]) => void;
26
- }, string, import('vue').PublicProps, Readonly<TransformControlsProps> & Readonly<{
27
- onChange?: ((...args: any[]) => any) | undefined;
28
- onDragging?: ((...args: any[]) => any) | undefined;
29
- onMouseDown?: ((...args: any[]) => any) | undefined;
30
- onMouseUp?: ((...args: any[]) => any) | undefined;
31
- onObjectChange?: ((...args: any[]) => any) | undefined;
32
- }>, {
33
- enabled: boolean;
34
- size: number;
35
- mode: string;
36
- axis: "X" | "Y" | "Z" | "XY" | "YZ" | "XZ" | "XYZ";
37
- space: "local" | "world";
38
- showX: boolean;
39
- showY: boolean;
40
- showZ: boolean;
41
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
42
- controlsRef: unknown;
43
- }, any>;
44
- export default _default;
@@ -1,9 +0,0 @@
1
- import { default as CameraControls, BaseCameraControls } from './CameraControls.vue';
2
- import { default as Helper } from './Helper/component.vue';
3
- import { default as KeyboardControls } from './KeyboardControls.vue';
4
- import { default as MapControls } from './MapControls.vue';
5
- import { default as OrbitControls } from './OrbitControls.vue';
6
- import { default as PointerLockControls } from './PointerLockControls.vue';
7
- import { default as ScrollControls } from './ScrollControls.vue';
8
- import { default as TransformControls } from './TransformControls.vue';
9
- export { BaseCameraControls, CameraControls, Helper, KeyboardControls, MapControls, OrbitControls, PointerLockControls, ScrollControls, TransformControls, };
@@ -1,7 +0,0 @@
1
- export * from './abstractions';
2
- export * from './controls';
3
- export * from './loaders';
4
- export * from './materials';
5
- export * from './misc';
6
- export * from './shapes';
7
- export * from './staging';
@@ -1,12 +0,0 @@
1
- import { default as UseSVG } from './useSVG/component.vue';
2
- import { default as FBXModel } from './useFBX/component.vue';
3
- import { default as GLTFModel } from './useGLTF/component.vue';
4
- import { default as UseTexture } from './useTexture/component.vue';
5
- import { useProgress } from './useProgress';
6
- import { useVideoTexture } from './useVideoTexture';
7
- export * from './useFBX';
8
- export * from './useGLTF';
9
- export * from './useSVG';
10
- export * from './useTexture';
11
- export * from './useTextures';
12
- export { FBXModel, GLTFModel, useProgress, UseSVG, UseTexture, useVideoTexture };
@@ -1,38 +0,0 @@
1
- import { Group } from 'three';
2
- export interface FBXModelProps {
3
- /**
4
- * Path to the FBX file.
5
- *
6
- * @type {string}
7
- * @memberof FBXModelProps
8
- * @required
9
- */
10
- path: string;
11
- /**
12
- *
13
- * Whether to use cast-shadow to the model.
14
- *
15
- * @type {boolean}
16
- * @default false
17
- * @memberof FBXModelProps
18
- *
19
- */
20
- castShadow?: boolean;
21
- /**
22
- *
23
- * Whether to use receive-shadow to the model.
24
- *
25
- * @type {boolean}
26
- * @default false
27
- * @memberof FBXModelProps
28
- *
29
- */
30
- receiveShadow?: boolean;
31
- }
32
- declare const _default: import('vue').DefineComponent<FBXModelProps, {
33
- instance: import('vue').Ref<Group<import('three').Object3DEventMap> | null, Group<import('three').Object3DEventMap> | null>;
34
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FBXModelProps> & Readonly<{}>, {
35
- castShadow: boolean;
36
- receiveShadow: boolean;
37
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
38
- export default _default;
@@ -1,32 +0,0 @@
1
- import { TresObject } from '@tresjs/core';
2
- import { ComputedRef, MaybeRef, Ref } from 'vue';
3
- import { Group } from 'three';
4
- export interface UseFBXOptions {
5
- /**
6
- * A traverse function applied to the scene upon loading the model.
7
- * @type {Function}
8
- */
9
- traverse?: (child: TresObject) => void;
10
- }
11
- /**
12
- * Vue composable for loading FBX models in TresJS
13
- *
14
- * @remarks
15
- * This composable uses Three.js FBXLoader under the hood to load FBX 3D models.
16
- * The loaded model is automatically parsed and made available as a reactive state.
17
- *
18
- * @example
19
- * ```ts
20
- * const { state: model } = useFBX('/path/to/model.fbx')
21
- * ```
22
- *
23
- * @param {MaybeRef<string>} path - Path to the FBX model file
24
- * @returns {{ state: Group, isLoading: boolean, execute: () => Promise<void>, nodes: object, materials: object }} Object containing the model state, loading state, reload function, and parsed nodes/materials
25
- */
26
- export declare function useFBX(path: MaybeRef<string>, options?: UseFBXOptions): {
27
- state: Ref<Group | null>;
28
- isLoading: Ref<boolean>;
29
- execute: (delay?: number, ...args: any[]) => Promise<Group>;
30
- nodes: ComputedRef<Record<string, any>>;
31
- materials: ComputedRef<Record<string, any>>;
32
- };
@@ -1,61 +0,0 @@
1
- export interface GLTFModelProps {
2
- /**
3
- *
4
- * The path to the GLTF file.
5
- *
6
- * @type {string}
7
- * @required
8
- * @memberof GLTFModelProps
9
- *
10
- */
11
- path: string;
12
- /**
13
- *
14
- * Whether to use Draco compression.
15
- *
16
- * @type {boolean}
17
- * @default false
18
- * @memberof GLTFModelProps
19
- *
20
- */
21
- draco?: boolean;
22
- /**
23
- *
24
- * Whether to use cast-shadow to the model.
25
- *
26
- * @type {boolean}
27
- * @default false
28
- * @memberof GLTFModelProps
29
- *
30
- */
31
- castShadow?: boolean;
32
- /**
33
- *
34
- * Whether to use receive-shadow to the model.
35
- *
36
- * @type {boolean}
37
- * @default false
38
- * @memberof GLTFModelProps
39
- *
40
- */
41
- receiveShadow?: boolean;
42
- /**
43
- *
44
- * The path to the Draco decoder.
45
- *
46
- * @type {string}
47
- * @default 'https://www.gstatic.com/draco/versioned/decoders/1.4.1/'
48
- * @memberof GLTFModelProps
49
- *
50
- */
51
- decoderPath?: string;
52
- }
53
- declare const _default: import('vue').DefineComponent<GLTFModelProps, {
54
- instance: import('vue').Ref<import('three-stdlib').GLTF | null, import('three-stdlib').GLTF | null>;
55
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<GLTFModelProps> & Readonly<{}>, {
56
- castShadow: boolean;
57
- receiveShadow: boolean;
58
- draco: boolean;
59
- decoderPath: string;
60
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
61
- export default _default;