three-stdlib 2.35.7 → 2.35.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (507) hide show
  1. package/_polyfill/constants.d.cts +1 -0
  2. package/_polyfill/uv1.d.cts +5 -0
  3. package/animation/AnimationClipCreator.d.cts +12 -0
  4. package/animation/AnimationClipCreator.d.ts +1 -1
  5. package/animation/CCDIKSolver.d.cts +30 -0
  6. package/animation/CCDIKSolver.d.ts +1 -1
  7. package/animation/MMDAnimationHelper.d.cts +93 -0
  8. package/animation/MMDAnimationHelper.d.ts +3 -3
  9. package/animation/MMDPhysics.d.cts +119 -0
  10. package/animation/MMDPhysics.d.ts +1 -1
  11. package/cameras/CinematicCamera.d.cts +34 -0
  12. package/cameras/CinematicCamera.d.ts +2 -2
  13. package/controls/ArcballControls.d.cts +376 -0
  14. package/controls/ArcballControls.d.ts +4 -4
  15. package/controls/DeviceOrientationControls.d.cts +29 -0
  16. package/controls/DeviceOrientationControls.d.ts +4 -4
  17. package/controls/DragControls.d.cts +67 -0
  18. package/controls/DragControls.d.ts +3 -3
  19. package/controls/EventDispatcher.d.cts +41 -0
  20. package/controls/FirstPersonControls.d.cts +49 -0
  21. package/controls/FirstPersonControls.d.ts +2 -2
  22. package/controls/FlyControls.d.cts +39 -0
  23. package/controls/FlyControls.d.ts +3 -3
  24. package/controls/OrbitControls.d.cts +74 -0
  25. package/controls/OrbitControls.d.ts +4 -4
  26. package/controls/PointerLockControls.d.cts +39 -0
  27. package/controls/PointerLockControls.d.ts +3 -3
  28. package/controls/StandardControlsEventMap.d.cts +14 -0
  29. package/controls/TrackballControls.d.cts +97 -0
  30. package/controls/TrackballControls.d.ts +4 -4
  31. package/controls/TransformControls.d.cts +151 -0
  32. package/controls/TransformControls.d.ts +2 -2
  33. package/controls/experimental/CameraControls.d.cts +213 -0
  34. package/controls/experimental/CameraControls.d.ts +3 -3
  35. package/csm/CSM.d.cts +61 -0
  36. package/csm/CSM.d.ts +2 -2
  37. package/csm/CSMFrustum.d.cts +19 -0
  38. package/csm/CSMFrustum.d.ts +1 -1
  39. package/csm/CSMHelper.d.cts +26 -0
  40. package/csm/CSMHelper.d.ts +2 -2
  41. package/csm/CSMShader.d.cts +4 -0
  42. package/curves/CurveExtras.d.cts +68 -0
  43. package/curves/CurveExtras.d.ts +1 -1
  44. package/curves/NURBSCurve.d.cts +11 -0
  45. package/curves/NURBSCurve.d.ts +1 -1
  46. package/curves/NURBSSurface.d.cts +13 -0
  47. package/curves/NURBSSurface.d.ts +1 -1
  48. package/curves/NURBSUtils.d.cts +20 -0
  49. package/curves/NURBSUtils.d.ts +1 -1
  50. package/deprecated/Geometry.d.cts +341 -0
  51. package/deprecated/Geometry.d.ts +1 -1
  52. package/effects/AnaglyphEffect.d.cts +11 -0
  53. package/effects/AnaglyphEffect.d.ts +1 -1
  54. package/effects/AsciiEffect.d.cts +18 -0
  55. package/effects/AsciiEffect.d.ts +1 -1
  56. package/effects/OutlineEffect.d.cts +28 -0
  57. package/effects/OutlineEffect.d.ts +1 -1
  58. package/effects/ParallaxBarrierEffect.d.cts +8 -0
  59. package/effects/ParallaxBarrierEffect.d.ts +1 -1
  60. package/effects/PeppersGhostEffect.d.cts +10 -0
  61. package/effects/PeppersGhostEffect.d.ts +1 -1
  62. package/effects/StereoEffect.d.cts +9 -0
  63. package/effects/StereoEffect.d.ts +1 -1
  64. package/environments/RoomEnvironment.d.cts +6 -0
  65. package/environments/RoomEnvironment.d.ts +2 -2
  66. package/exporters/ColladaExporter.d.cts +50 -0
  67. package/exporters/ColladaExporter.d.ts +2 -2
  68. package/exporters/DRACOExporter.d.cts +36 -0
  69. package/exporters/DRACOExporter.d.ts +2 -2
  70. package/exporters/GLTFExporter.d.cts +114 -0
  71. package/exporters/GLTFExporter.d.ts +1 -1
  72. package/exporters/MMDExporter.d.cts +12 -0
  73. package/exporters/MMDExporter.d.ts +2 -2
  74. package/exporters/OBJExporter.d.cts +18 -0
  75. package/exporters/OBJExporter.d.ts +2 -2
  76. package/exporters/PLYExporter.d.cts +23 -0
  77. package/exporters/PLYExporter.d.ts +2 -2
  78. package/exporters/STLExporter.d.cts +28 -0
  79. package/exporters/STLExporter.d.ts +1 -1
  80. package/exporters/USDZExporter.d.cts +27 -0
  81. package/exporters/USDZExporter.d.ts +2 -2
  82. package/geometries/BoxLineGeometry.d.cts +12 -0
  83. package/geometries/BoxLineGeometry.d.ts +1 -1
  84. package/geometries/ConvexGeometry.d.cts +5 -0
  85. package/geometries/ConvexGeometry.d.ts +1 -1
  86. package/geometries/DecalGeometry.d.cts +10 -0
  87. package/geometries/DecalGeometry.d.ts +1 -1
  88. package/geometries/LightningStrike.d.cts +108 -0
  89. package/geometries/LightningStrike.d.ts +1 -1
  90. package/geometries/ParametricGeometries.d.cts +26 -0
  91. package/geometries/ParametricGeometries.d.ts +2 -2
  92. package/geometries/ParametricGeometry.d.cts +18 -0
  93. package/geometries/ParametricGeometry.d.ts +2 -2
  94. package/geometries/RoundedBoxGeometry.d.cts +5 -0
  95. package/geometries/RoundedBoxGeometry.d.ts +1 -1
  96. package/geometries/TeapotGeometry.d.cts +13 -0
  97. package/geometries/TeapotGeometry.d.ts +1 -1
  98. package/geometries/TextGeometry.d.cts +18 -0
  99. package/geometries/TextGeometry.d.ts +3 -3
  100. package/helpers/LightProbeHelper.d.cts +10 -0
  101. package/helpers/LightProbeHelper.d.ts +1 -1
  102. package/helpers/PositionalAudioHelper.d.cts +13 -0
  103. package/helpers/PositionalAudioHelper.d.ts +1 -1
  104. package/helpers/RaycasterHelper.d.cts +33 -0
  105. package/helpers/RaycasterHelper.d.ts +2 -2
  106. package/helpers/RectAreaLightHelper.d.cts +11 -0
  107. package/helpers/RectAreaLightHelper.d.ts +1 -1
  108. package/helpers/VertexNormalsHelper.d.cts +13 -0
  109. package/helpers/VertexNormalsHelper.d.ts +1 -1
  110. package/helpers/VertexTangentsHelper.d.cts +13 -0
  111. package/helpers/VertexTangentsHelper.d.ts +1 -1
  112. package/index.d.cts +262 -0
  113. package/index.d.ts +262 -262
  114. package/interactive/HTMLMesh.d.cts +6 -0
  115. package/interactive/HTMLMesh.d.ts +1 -1
  116. package/interactive/InteractiveGroup.d.cts +5 -0
  117. package/interactive/InteractiveGroup.d.ts +1 -1
  118. package/interactive/SelectionBox.d.cts +15 -0
  119. package/interactive/SelectionBox.d.ts +1 -1
  120. package/interactive/SelectionHelper.d.cts +17 -0
  121. package/interactive/SelectionHelper.d.ts +2 -2
  122. package/libs/MeshoptDecoder.d.cts +12 -0
  123. package/libs/MeshoptDecoder.d.ts +1 -1
  124. package/libs/MotionControllers.d.cts +176 -0
  125. package/libs/MotionControllers.d.ts +1 -1
  126. package/libs/zstddec.d.cts +8 -0
  127. package/lights/LightProbeGenerator.d.cts +6 -0
  128. package/lights/LightProbeGenerator.d.ts +1 -1
  129. package/lights/RectAreaLightUniformsLib.d.cts +3 -0
  130. package/lines/Line2.d.cts +11 -0
  131. package/lines/Line2.d.ts +3 -3
  132. package/lines/LineGeometry.d.cts +10 -0
  133. package/lines/LineGeometry.d.ts +2 -2
  134. package/lines/LineMaterial.d.cts +31 -0
  135. package/lines/LineMaterial.d.ts +1 -1
  136. package/lines/LineSegments2.d.cts +14 -0
  137. package/lines/LineSegments2.d.ts +3 -3
  138. package/lines/LineSegmentsGeometry.d.cts +16 -0
  139. package/lines/LineSegmentsGeometry.d.ts +1 -1
  140. package/lines/Wireframe.d.cts +11 -0
  141. package/lines/Wireframe.d.ts +3 -3
  142. package/lines/WireframeGeometry2.d.cts +8 -0
  143. package/lines/WireframeGeometry2.d.ts +2 -2
  144. package/loaders/3DMLoader.d.cts +17 -0
  145. package/loaders/3DMLoader.d.ts +1 -1
  146. package/loaders/3MFLoader.d.cts +16 -0
  147. package/loaders/3MFLoader.d.ts +1 -1
  148. package/loaders/AMFLoader.d.cts +14 -0
  149. package/loaders/AMFLoader.d.ts +1 -1
  150. package/loaders/AssimpLoader.d.cts +19 -0
  151. package/loaders/AssimpLoader.d.ts +1 -1
  152. package/loaders/BVHLoader.d.cts +21 -0
  153. package/loaders/BVHLoader.d.ts +1 -1
  154. package/loaders/BasisTextureLoader.d.cts +32 -0
  155. package/loaders/BasisTextureLoader.d.ts +1 -1
  156. package/loaders/ColladaLoader.d.cts +20 -0
  157. package/loaders/ColladaLoader.d.ts +1 -1
  158. package/loaders/DDSLoader.d.cts +16 -0
  159. package/loaders/DDSLoader.d.ts +1 -1
  160. package/loaders/DRACOLoader.d.cts +18 -0
  161. package/loaders/DRACOLoader.d.ts +1 -1
  162. package/loaders/EXRLoader.d.cts +18 -0
  163. package/loaders/EXRLoader.d.ts +1 -1
  164. package/loaders/FBXLoader.d.cts +14 -0
  165. package/loaders/FBXLoader.d.ts +1 -1
  166. package/loaders/FontLoader.d.cts +37 -0
  167. package/loaders/FontLoader.d.ts +1 -1
  168. package/loaders/GCodeLoader.d.cts +15 -0
  169. package/loaders/GCodeLoader.d.ts +1 -1
  170. package/loaders/GLTFLoader.d.cts +155 -0
  171. package/loaders/GLTFLoader.d.ts +3 -3
  172. package/loaders/HDRCubeTextureLoader.d.cts +18 -0
  173. package/loaders/HDRCubeTextureLoader.d.ts +2 -2
  174. package/loaders/KMZLoader.d.cts +16 -0
  175. package/loaders/KMZLoader.d.ts +2 -2
  176. package/loaders/KTX2Loader.d.cts +10 -0
  177. package/loaders/KTX2Loader.d.ts +1 -1
  178. package/loaders/KTXLoader.d.cts +16 -0
  179. package/loaders/KTXLoader.d.ts +1 -1
  180. package/loaders/LDrawLoader.d.cts +26 -0
  181. package/loaders/LDrawLoader.d.ts +1 -1
  182. package/loaders/LUT3dlLoader.d.cts +20 -0
  183. package/loaders/LUT3dlLoader.d.ts +1 -1
  184. package/loaders/LUTCubeLoader.d.cts +23 -0
  185. package/loaders/LUTCubeLoader.d.ts +1 -1
  186. package/loaders/LWOLoader.d.cts +26 -0
  187. package/loaders/LWOLoader.d.ts +1 -1
  188. package/loaders/LottieLoader.d.cts +15 -0
  189. package/loaders/LottieLoader.d.ts +1 -1
  190. package/loaders/MD2Loader.d.cts +14 -0
  191. package/loaders/MD2Loader.d.ts +1 -1
  192. package/loaders/MDDLoader.d.cts +19 -0
  193. package/loaders/MDDLoader.d.ts +1 -1
  194. package/loaders/MMDLoader.d.cts +63 -0
  195. package/loaders/MMDLoader.d.ts +1 -1
  196. package/loaders/MTLLoader.d.cts +100 -0
  197. package/loaders/MTLLoader.d.ts +1 -1
  198. package/loaders/NRRDLoader.d.cts +22 -0
  199. package/loaders/NRRDLoader.d.ts +2 -2
  200. package/loaders/OBJLoader.d.cts +17 -0
  201. package/loaders/OBJLoader.d.ts +2 -2
  202. package/loaders/PCDLoader.d.cts +15 -0
  203. package/loaders/PCDLoader.d.ts +1 -1
  204. package/loaders/PDBLoader.d.cts +22 -0
  205. package/loaders/PDBLoader.d.ts +1 -1
  206. package/loaders/PLYLoader.d.cts +16 -0
  207. package/loaders/PLYLoader.d.ts +1 -1
  208. package/loaders/PRWMLoader.d.cts +16 -0
  209. package/loaders/PRWMLoader.d.ts +1 -1
  210. package/loaders/PVRLoader.d.cts +16 -0
  211. package/loaders/PVRLoader.d.ts +1 -1
  212. package/loaders/RGBELoader.d.cts +20 -0
  213. package/loaders/RGBELoader.d.ts +1 -1
  214. package/loaders/RGBMLoader.d.cts +32 -0
  215. package/loaders/RGBMLoader.d.ts +1 -1
  216. package/loaders/STLLoader.d.cts +14 -0
  217. package/loaders/STLLoader.d.ts +1 -1
  218. package/loaders/SVGLoader.d.cts +63 -0
  219. package/loaders/SVGLoader.d.ts +1 -1
  220. package/loaders/TDSLoader.d.cts +42 -0
  221. package/loaders/TDSLoader.d.ts +1 -1
  222. package/loaders/TGALoader.d.cts +14 -0
  223. package/loaders/TGALoader.d.ts +1 -1
  224. package/loaders/TTFLoader.d.cts +15 -0
  225. package/loaders/TTFLoader.d.ts +1 -1
  226. package/loaders/TiltLoader.d.cts +14 -0
  227. package/loaders/TiltLoader.d.ts +1 -1
  228. package/loaders/VOXLoader.d.cts +29 -0
  229. package/loaders/VOXLoader.d.ts +1 -1
  230. package/loaders/VRMLLoader.d.cts +14 -0
  231. package/loaders/VRMLLoader.d.ts +1 -1
  232. package/loaders/VRMLoader.d.cts +19 -0
  233. package/loaders/VRMLoader.d.ts +3 -3
  234. package/loaders/VTKLoader.d.cts +14 -0
  235. package/loaders/VTKLoader.d.ts +1 -1
  236. package/loaders/XLoader.d.cts +19 -0
  237. package/loaders/XLoader.d.ts +1 -1
  238. package/loaders/XYZLoader.d.cts +14 -0
  239. package/loaders/XYZLoader.d.ts +1 -1
  240. package/math/Capsule.d.cts +27 -0
  241. package/math/Capsule.d.ts +1 -1
  242. package/math/ColorConverter.d.cts +21 -0
  243. package/math/ColorConverter.d.ts +1 -1
  244. package/math/ConvexHull.d.cts +89 -0
  245. package/math/ConvexHull.d.ts +1 -1
  246. package/math/ImprovedNoise.d.cts +4 -0
  247. package/math/Lut.d.cts +27 -0
  248. package/math/Lut.d.ts +1 -1
  249. package/math/MeshSurfaceSampler.d.cts +18 -0
  250. package/math/MeshSurfaceSampler.d.ts +1 -1
  251. package/math/OBB.d.cts +24 -0
  252. package/math/OBB.d.ts +1 -1
  253. package/math/Octree.d.cts +24 -0
  254. package/math/Octree.d.ts +2 -2
  255. package/math/SimplexNoise.d.cts +21 -0
  256. package/misc/ConvexObjectBreaker.d.cts +25 -0
  257. package/misc/ConvexObjectBreaker.d.ts +1 -1
  258. package/misc/GPUComputationRenderer.d.cts +53 -0
  259. package/misc/GPUComputationRenderer.d.ts +1 -1
  260. package/misc/Gyroscope.d.cts +5 -0
  261. package/misc/Gyroscope.d.ts +1 -1
  262. package/misc/MD2Character.d.cts +33 -0
  263. package/misc/MD2Character.d.ts +1 -1
  264. package/misc/MD2CharacterComplex.d.cts +47 -0
  265. package/misc/MD2CharacterComplex.d.ts +1 -1
  266. package/misc/MorphAnimMesh.d.cts +13 -0
  267. package/misc/MorphAnimMesh.d.ts +1 -1
  268. package/misc/MorphBlendMesh.d.cts +21 -0
  269. package/misc/MorphBlendMesh.d.ts +1 -1
  270. package/misc/ProgressiveLightmap.d.cts +60 -0
  271. package/misc/ProgressiveLightmap.d.ts +1 -1
  272. package/misc/RollerCoaster.d.cts +21 -0
  273. package/misc/RollerCoaster.d.ts +1 -1
  274. package/misc/Timer.d.cts +27 -0
  275. package/misc/Timer.d.ts +1 -1
  276. package/misc/TubePainter.d.cts +10 -0
  277. package/misc/TubePainter.d.ts +1 -1
  278. package/misc/Volume.d.cts +37 -0
  279. package/misc/Volume.d.ts +2 -2
  280. package/misc/VolumeSlice.d.cts +28 -0
  281. package/misc/VolumeSlice.d.ts +2 -2
  282. package/misc/WebGL.d.cts +5 -0
  283. package/modifiers/CurveModifier.d.cts +91 -0
  284. package/modifiers/CurveModifier.d.ts +1 -1
  285. package/modifiers/EdgeSplitModifier.d.cts +19 -0
  286. package/modifiers/EdgeSplitModifier.d.ts +2 -2
  287. package/modifiers/SimplifyModifier.d.cts +19 -0
  288. package/modifiers/SimplifyModifier.d.ts +2 -2
  289. package/modifiers/TessellateModifier.d.cts +11 -0
  290. package/modifiers/TessellateModifier.d.ts +2 -2
  291. package/objects/BatchedMesh.d.cts +48 -0
  292. package/objects/BatchedMesh.d.ts +2 -2
  293. package/objects/GroundProjectedEnv.d.cts +12 -0
  294. package/objects/GroundProjectedEnv.d.ts +1 -1
  295. package/objects/Lensflare.d.cts +17 -0
  296. package/objects/Lensflare.d.ts +1 -1
  297. package/objects/LightningStorm.d.cts +32 -0
  298. package/objects/LightningStorm.d.ts +2 -2
  299. package/objects/MarchingCubes.d.cts +76 -0
  300. package/objects/MarchingCubes.d.ts +1 -1
  301. package/objects/Reflector.d.cts +23 -0
  302. package/objects/Reflector.d.ts +2 -2
  303. package/objects/ReflectorForSSRPass.d.cts +48 -0
  304. package/objects/ReflectorForSSRPass.d.ts +1 -1
  305. package/objects/ReflectorRTT.d.cts +6 -0
  306. package/objects/ReflectorRTT.d.ts +3 -3
  307. package/objects/Refractor.d.cts +23 -0
  308. package/objects/Refractor.d.ts +2 -2
  309. package/objects/ShadowMesh.d.cts +10 -0
  310. package/objects/ShadowMesh.d.ts +1 -1
  311. package/objects/Sky.d.cts +18 -0
  312. package/objects/Sky.d.ts +2 -2
  313. package/objects/Water.d.cts +22 -0
  314. package/objects/Water.d.ts +1 -1
  315. package/objects/Water2.d.cts +23 -0
  316. package/objects/Water2.d.ts +2 -2
  317. package/package.json +11 -5
  318. package/physics/AmmoPhysics.d.cts +7 -0
  319. package/physics/AmmoPhysics.d.ts +1 -1
  320. package/postprocessing/AdaptiveToneMappingPass.d.cts +29 -0
  321. package/postprocessing/AdaptiveToneMappingPass.d.ts +2 -2
  322. package/postprocessing/AfterimagePass.d.cts +15 -0
  323. package/postprocessing/AfterimagePass.d.ts +3 -3
  324. package/postprocessing/BloomPass.d.cts +29 -0
  325. package/postprocessing/BloomPass.d.ts +4 -4
  326. package/postprocessing/BokehPass.d.cts +26 -0
  327. package/postprocessing/BokehPass.d.ts +3 -3
  328. package/postprocessing/ClearPass.d.cts +10 -0
  329. package/postprocessing/ClearPass.d.ts +3 -3
  330. package/postprocessing/CubeTexturePass.d.cts +14 -0
  331. package/postprocessing/CubeTexturePass.d.ts +2 -2
  332. package/postprocessing/DotScreenPass.d.cts +11 -0
  333. package/postprocessing/DotScreenPass.d.ts +4 -4
  334. package/postprocessing/EffectComposer.d.cts +28 -0
  335. package/postprocessing/EffectComposer.d.ts +3 -3
  336. package/postprocessing/FilmPass.d.cts +11 -0
  337. package/postprocessing/FilmPass.d.ts +4 -4
  338. package/postprocessing/GlitchPass.d.cts +16 -0
  339. package/postprocessing/GlitchPass.d.ts +4 -4
  340. package/postprocessing/HalftonePass.d.cts +26 -0
  341. package/postprocessing/HalftonePass.d.ts +3 -3
  342. package/postprocessing/LUTPass.d.cts +13 -0
  343. package/postprocessing/LUTPass.d.ts +2 -2
  344. package/postprocessing/MaskPass.d.cts +14 -0
  345. package/postprocessing/MaskPass.d.ts +3 -3
  346. package/postprocessing/OutlinePass.d.cts +53 -0
  347. package/postprocessing/OutlinePass.d.ts +3 -3
  348. package/postprocessing/Pass.d.cts +21 -0
  349. package/postprocessing/Pass.d.ts +2 -2
  350. package/postprocessing/RenderPass.d.cts +14 -0
  351. package/postprocessing/RenderPass.d.ts +3 -3
  352. package/postprocessing/RenderPixelatedPass.d.cts +34 -0
  353. package/postprocessing/RenderPixelatedPass.d.ts +2 -2
  354. package/postprocessing/SAOPass.d.cts +78 -0
  355. package/postprocessing/SAOPass.d.ts +2 -2
  356. package/postprocessing/SMAAPass.d.cts +21 -0
  357. package/postprocessing/SMAAPass.d.ts +2 -2
  358. package/postprocessing/SSAARenderPass.d.cts +17 -0
  359. package/postprocessing/SSAARenderPass.d.ts +2 -2
  360. package/postprocessing/SSAOPass.d.cts +70 -0
  361. package/postprocessing/SSAOPass.d.ts +2 -2
  362. package/postprocessing/SSRPass.d.cts +123 -0
  363. package/postprocessing/SSRPass.d.ts +3 -3
  364. package/postprocessing/SavePass.d.cts +12 -0
  365. package/postprocessing/SavePass.d.ts +2 -2
  366. package/postprocessing/ShaderPass.d.cts +13 -0
  367. package/postprocessing/ShaderPass.d.ts +4 -4
  368. package/postprocessing/TAARenderPass.d.cts +8 -0
  369. package/postprocessing/TAARenderPass.d.ts +2 -2
  370. package/postprocessing/TexturePass.d.cts +12 -0
  371. package/postprocessing/TexturePass.d.ts +2 -2
  372. package/postprocessing/UnrealBloomPass.d.cts +31 -0
  373. package/postprocessing/UnrealBloomPass.d.ts +2 -2
  374. package/postprocessing/WaterPass.d.cts +35 -0
  375. package/postprocessing/WaterPass.d.ts +3 -3
  376. package/renderers/CSS2DRenderer.d.cts +23 -0
  377. package/renderers/CSS2DRenderer.d.ts +1 -1
  378. package/renderers/CSS3DRenderer.d.cts +26 -0
  379. package/renderers/CSS3DRenderer.d.ts +1 -1
  380. package/renderers/Projector.d.cts +60 -0
  381. package/renderers/Projector.d.ts +1 -1
  382. package/renderers/SVGRenderer.d.cts +25 -0
  383. package/renderers/SVGRenderer.d.ts +1 -1
  384. package/shaders/ACESFilmicToneMappingShader.d.cts +16 -0
  385. package/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
  386. package/shaders/AfterimageShader.d.cts +15 -0
  387. package/shaders/AfterimageShader.d.ts +1 -1
  388. package/shaders/BasicShader.d.cts +8 -0
  389. package/shaders/BasicShader.d.ts +1 -1
  390. package/shaders/BleachBypassShader.d.cts +14 -0
  391. package/shaders/BleachBypassShader.d.ts +1 -1
  392. package/shaders/BlendShader.d.cts +21 -0
  393. package/shaders/BokehShader.d.cts +24 -0
  394. package/shaders/BokehShader.d.ts +1 -1
  395. package/shaders/BokehShader2.d.cts +50 -0
  396. package/shaders/BokehShader2.d.ts +1 -1
  397. package/shaders/BrightnessContrastShader.d.cts +21 -0
  398. package/shaders/ColorCorrectionShader.d.cts +22 -0
  399. package/shaders/ColorCorrectionShader.d.ts +1 -1
  400. package/shaders/ColorifyShader.d.cts +16 -0
  401. package/shaders/ColorifyShader.d.ts +1 -1
  402. package/shaders/ConvolutionShader.d.cts +21 -0
  403. package/shaders/ConvolutionShader.d.ts +2 -2
  404. package/shaders/CopyShader.d.cts +12 -0
  405. package/shaders/CopyShader.d.ts +1 -1
  406. package/shaders/DOFMipMapShader.d.cts +23 -0
  407. package/shaders/DepthLimitedBlurShader.d.cts +28 -0
  408. package/shaders/DepthLimitedBlurShader.d.ts +2 -2
  409. package/shaders/DigitalGlitch.d.cts +39 -0
  410. package/shaders/DotScreenShader.d.cts +27 -0
  411. package/shaders/DotScreenShader.d.ts +1 -1
  412. package/shaders/FXAAShader.d.cts +19 -0
  413. package/shaders/FXAAShader.d.ts +1 -1
  414. package/shaders/FilmShader.d.cts +43 -0
  415. package/shaders/FocusShader.d.cts +26 -0
  416. package/shaders/FreiChenShader.d.cts +19 -0
  417. package/shaders/FreiChenShader.d.ts +1 -1
  418. package/shaders/FresnelShader.d.cts +24 -0
  419. package/shaders/GammaCorrectionShader.d.cts +12 -0
  420. package/shaders/GammaCorrectionShader.d.ts +1 -1
  421. package/shaders/GodRaysShader.d.cts +97 -0
  422. package/shaders/GodRaysShader.d.ts +1 -1
  423. package/shaders/HalftoneShader.d.cts +51 -0
  424. package/shaders/HorizontalBlurShader.d.cts +18 -0
  425. package/shaders/HorizontalBlurShader.d.ts +1 -1
  426. package/shaders/HorizontalTiltShiftShader.d.cts +23 -0
  427. package/shaders/HueSaturationShader.d.cts +21 -0
  428. package/shaders/KaleidoShader.d.cts +24 -0
  429. package/shaders/LuminosityHighPassShader.d.cts +27 -0
  430. package/shaders/LuminosityHighPassShader.d.ts +1 -1
  431. package/shaders/LuminosityShader.d.cts +13 -0
  432. package/shaders/MirrorShader.d.cts +18 -0
  433. package/shaders/NormalMapShader.d.cts +23 -0
  434. package/shaders/NormalMapShader.d.ts +1 -1
  435. package/shaders/ParallaxShader.d.cts +28 -0
  436. package/shaders/PixelShader.d.cts +18 -0
  437. package/shaders/RGBShiftShader.d.cts +24 -0
  438. package/shaders/SAOShader.d.cts +25 -0
  439. package/shaders/SAOShader.d.ts +2 -2
  440. package/shaders/SMAAShader.d.cts +60 -0
  441. package/shaders/SMAAShader.d.ts +1 -1
  442. package/shaders/SSAOShader.d.cts +86 -0
  443. package/shaders/SSAOShader.d.ts +1 -1
  444. package/shaders/SSRShader.d.cts +94 -0
  445. package/shaders/SSRShader.d.ts +1 -1
  446. package/shaders/SepiaShader.d.cts +17 -0
  447. package/shaders/SobelOperatorShader.d.cts +19 -0
  448. package/shaders/SobelOperatorShader.d.ts +1 -1
  449. package/shaders/SubsurfaceScatteringShader.d.cts +5 -0
  450. package/shaders/TechnicolorShader.d.cts +15 -0
  451. package/shaders/ToneMapShader.d.cts +27 -0
  452. package/shaders/ToonShader.d.cts +108 -0
  453. package/shaders/ToonShader.d.ts +1 -1
  454. package/shaders/TriangleBlurShader.d.cts +22 -0
  455. package/shaders/TriangleBlurShader.d.ts +1 -1
  456. package/shaders/UnpackDepthRGBAShader.d.cts +16 -0
  457. package/shaders/VerticalBlurShader.d.cts +18 -0
  458. package/shaders/VerticalBlurShader.d.ts +1 -1
  459. package/shaders/VerticalTiltShiftShader.d.cts +23 -0
  460. package/shaders/VignetteShader.d.cts +20 -0
  461. package/shaders/VolumeShader.d.cts +30 -0
  462. package/shaders/VolumeShader.d.ts +1 -1
  463. package/shaders/WaterRefractionShader.d.cts +21 -0
  464. package/shaders/types.d.cts +13 -0
  465. package/textures/FlakesTexture.d.cts +4 -0
  466. package/textures/FlakesTexture.d.ts +1 -1
  467. package/types/helpers.d.cts +1 -0
  468. package/types/shared.d.cts +9 -0
  469. package/types/utils.d.cts +3 -0
  470. package/utils/BufferGeometryUtils.d.cts +63 -0
  471. package/utils/BufferGeometryUtils.d.ts +1 -1
  472. package/utils/GeometryCompressionUtils.d.cts +7 -0
  473. package/utils/GeometryCompressionUtils.d.ts +1 -1
  474. package/utils/GeometryUtils.d.cts +6 -0
  475. package/utils/GeometryUtils.d.ts +1 -1
  476. package/utils/LDrawUtils.d.cts +5 -0
  477. package/utils/LDrawUtils.d.ts +1 -1
  478. package/utils/RoughnessMipmapper.d.cts +8 -0
  479. package/utils/RoughnessMipmapper.d.ts +1 -1
  480. package/utils/SceneUtils.d.cts +9 -0
  481. package/utils/SceneUtils.d.ts +2 -2
  482. package/utils/ShadowMapViewer.d.cts +24 -0
  483. package/utils/ShadowMapViewer.d.ts +1 -1
  484. package/utils/SkeletonUtils.d.cts +14 -0
  485. package/utils/SkeletonUtils.d.ts +1 -1
  486. package/utils/UVsDebug.d.cts +3 -0
  487. package/utils/UVsDebug.d.ts +1 -1
  488. package/webxr/ARButton.d.cts +6 -0
  489. package/webxr/ARButton.d.ts +2 -2
  490. package/webxr/OculusHandModel.d.cts +23 -0
  491. package/webxr/OculusHandModel.d.ts +3 -3
  492. package/webxr/OculusHandPointerModel.d.cts +65 -0
  493. package/webxr/OculusHandPointerModel.d.ts +1 -1
  494. package/webxr/Text2D.d.cts +3 -0
  495. package/webxr/Text2D.d.ts +1 -1
  496. package/webxr/VRButton.d.cts +11 -0
  497. package/webxr/VRButton.d.ts +2 -2
  498. package/webxr/XRControllerModelFactory.d.cts +23 -0
  499. package/webxr/XRControllerModelFactory.d.ts +4 -4
  500. package/webxr/XREstimatedLight.d.cts +33 -0
  501. package/webxr/XREstimatedLight.d.ts +1 -1
  502. package/webxr/XRHandMeshModel.d.cts +9 -0
  503. package/webxr/XRHandMeshModel.d.ts +2 -2
  504. package/webxr/XRHandModelFactory.d.cts +25 -0
  505. package/webxr/XRHandModelFactory.d.ts +3 -3
  506. package/webxr/XRHandPrimitiveModel.d.cts +24 -0
  507. package/webxr/XRHandPrimitiveModel.d.ts +2 -2
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Unpack RGBA depth shader
3
+ * - show RGBA encoded depth as monochrome color
4
+ */
5
+ export declare const UnpackDepthRGBAShader: {
6
+ uniforms: {
7
+ tDiffuse: {
8
+ value: null;
9
+ };
10
+ opacity: {
11
+ value: number;
12
+ };
13
+ };
14
+ vertexShader: string;
15
+ fragmentShader: string;
16
+ };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Two pass Gaussian blur filter (horizontal and vertical blur shaders)
3
+ * - described in http://www.gamerendering.com/2008/10/11/gaussian-blur-filter-shader/
4
+ * and used in http://www.cake23.de/traveling-wavefronts-lit-up.html
5
+ *
6
+ * - 9 samples per pass
7
+ * - standard deviation 2.7
8
+ * - "h" and "v" parameters should be set to "1 / width" and "1 / height"
9
+ */
10
+ import type { IUniform, Texture } from 'three';
11
+ import type { IShader } from './types.d.cts';
12
+ export type VerticalBlurShaderUniforms = {
13
+ tDiffuse: IUniform<Texture | null>;
14
+ v: IUniform<number>;
15
+ };
16
+ export interface IVerticalBlurShader extends IShader<VerticalBlurShaderUniforms> {
17
+ }
18
+ export declare const VerticalBlurShader: IVerticalBlurShader;
@@ -8,7 +8,7 @@
8
8
  * - "h" and "v" parameters should be set to "1 / width" and "1 / height"
9
9
  */
10
10
  import type { IUniform, Texture } from 'three';
11
- import type { IShader } from './types';
11
+ import type { IShader } from './types.d.ts';
12
12
  export type VerticalBlurShaderUniforms = {
13
13
  tDiffuse: IUniform<Texture | null>;
14
14
  v: IUniform<number>;
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Simple fake tilt-shift effect, modulating two pass Gaussian blur (see above) by vertical position
3
+ *
4
+ * - 9 samples per pass
5
+ * - standard deviation 2.7
6
+ * - "h" and "v" parameters should be set to "1 / width" and "1 / height"
7
+ * - "r" parameter control where "focused" horizontal line lies
8
+ */
9
+ export declare const VerticalTiltShiftShader: {
10
+ uniforms: {
11
+ tDiffuse: {
12
+ value: null;
13
+ };
14
+ v: {
15
+ value: number;
16
+ };
17
+ r: {
18
+ value: number;
19
+ };
20
+ };
21
+ vertexShader: string;
22
+ fragmentShader: string;
23
+ };
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Vignette shader
3
+ * based on PaintEffect postprocess from ro.me
4
+ * http://code.google.com/p/3-dreams-of-black/source/browse/deploy/js/effects/PaintEffect.js
5
+ */
6
+ export declare const VignetteShader: {
7
+ uniforms: {
8
+ tDiffuse: {
9
+ value: null;
10
+ };
11
+ offset: {
12
+ value: number;
13
+ };
14
+ darkness: {
15
+ value: number;
16
+ };
17
+ };
18
+ vertexShader: string;
19
+ fragmentShader: string;
20
+ };
@@ -0,0 +1,30 @@
1
+ import type { Vector2, Vector3 } from 'three';
2
+ /**
3
+ * Shaders to render 3D volumes using raycasting.
4
+ * The applied techniques are based on similar implementations in the Visvis and Vispy projects.
5
+ * This is not the only approach, therefore it's marked 1.
6
+ */
7
+ export declare const VolumeRenderShader1: {
8
+ uniforms: {
9
+ u_size: {
10
+ value: Vector3;
11
+ };
12
+ u_renderstyle: {
13
+ value: number;
14
+ };
15
+ u_renderthreshold: {
16
+ value: number;
17
+ };
18
+ u_clim: {
19
+ value: Vector2;
20
+ };
21
+ u_data: {
22
+ value: null;
23
+ };
24
+ u_cmdata: {
25
+ value: null;
26
+ };
27
+ };
28
+ vertexShader: string;
29
+ fragmentShader: string;
30
+ };
@@ -1,4 +1,4 @@
1
- import { Vector2, Vector3 } from 'three';
1
+ import type { Vector2, Vector3 } from 'three';
2
2
  /**
3
3
  * Shaders to render 3D volumes using raycasting.
4
4
  * The applied techniques are based on similar implementations in the Visvis and Vispy projects.
@@ -0,0 +1,21 @@
1
+ export declare const WaterRefractionShader: {
2
+ uniforms: {
3
+ color: {
4
+ value: null;
5
+ };
6
+ time: {
7
+ value: number;
8
+ };
9
+ tDiffuse: {
10
+ value: null;
11
+ };
12
+ tDudv: {
13
+ value: null;
14
+ };
15
+ textureMatrix: {
16
+ value: null;
17
+ };
18
+ };
19
+ vertexShader: string;
20
+ fragmentShader: string;
21
+ };
@@ -0,0 +1,13 @@
1
+ import type { IUniform } from 'three';
2
+ export type Defines = {
3
+ [key: string]: boolean | number | string;
4
+ };
5
+ export type Uniforms = {
6
+ [key: string]: IUniform;
7
+ };
8
+ export interface IShader<U extends Uniforms, D extends Defines | undefined = undefined> {
9
+ defines?: D;
10
+ fragmentShader: string;
11
+ uniforms: U;
12
+ vertexShader: string;
13
+ }
@@ -0,0 +1,4 @@
1
+ declare class FlakesTexture {
2
+ constructor(width?: number, height?: number);
3
+ }
4
+ export { type FlakesTexture };
@@ -1,4 +1,4 @@
1
1
  declare class FlakesTexture {
2
2
  constructor(width?: number, height?: number);
3
3
  }
4
- export { FlakesTexture };
4
+ export { type FlakesTexture };
@@ -0,0 +1 @@
1
+ export declare const getWithKey: <T, K extends keyof T>(obj: T, key: K) => T[K];
@@ -0,0 +1,9 @@
1
+ export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;
2
+ export type TypedArrayConstructors = Int8Array['constructor'] | Uint8Array['constructor'] | Uint8ClampedArray['constructor'] | Int16Array['constructor'] | Uint16Array['constructor'] | Int32Array['constructor'] | Uint32Array['constructor'] | Float32Array['constructor'] | Float64Array['constructor'];
3
+ type LinearEncoding = 3000;
4
+ type sRGBEncoding = 3001;
5
+ /**
6
+ * Stub for `TextureEncoding` type since it was removed in r162.
7
+ */
8
+ export type TextureEncoding = LinearEncoding | sRGBEncoding;
9
+ export {};
@@ -0,0 +1,3 @@
1
+ export type Nullable<T> = {
2
+ [K in keyof T]: T[K] | null;
3
+ };
@@ -0,0 +1,63 @@
1
+ import type { BufferAttribute, BufferGeometry, Float32BufferAttribute, InterleavedBufferAttribute, Mesh, Line, Points } from 'three';
2
+ /**
3
+ * @param {Array<BufferGeometry>} geometries
4
+ * @param {Boolean} useGroups
5
+ * @return {BufferGeometry}
6
+ */
7
+ export declare const mergeBufferGeometries: (geometries: BufferGeometry[], useGroups?: boolean) => BufferGeometry | null;
8
+ /**
9
+ * @param {Array<BufferAttribute>} attributes
10
+ * @return {BufferAttribute}
11
+ */
12
+ export declare const mergeBufferAttributes: (attributes: BufferAttribute[]) => BufferAttribute | null | undefined;
13
+ /**
14
+ * @param {Array<BufferAttribute>} attributes
15
+ * @return {Array<InterleavedBufferAttribute>}
16
+ */
17
+ export declare const interleaveAttributes: (attributes: BufferAttribute[]) => InterleavedBufferAttribute[] | null;
18
+ /**
19
+ * @param {Array<BufferGeometry>} geometry
20
+ * @return {number}
21
+ */
22
+ export declare function estimateBytesUsed(geometry: BufferGeometry): number;
23
+ /**
24
+ * @param {BufferGeometry} geometry
25
+ * @param {number} tolerance
26
+ * @return {BufferGeometry>}
27
+ */
28
+ export declare function mergeVertices(geometry: BufferGeometry, tolerance?: number): BufferGeometry;
29
+ /**
30
+ * @param {BufferGeometry} geometry
31
+ * @param {number} drawMode
32
+ * @return {BufferGeometry}
33
+ */
34
+ export declare function toTrianglesDrawMode(geometry: BufferGeometry, drawMode: number): BufferGeometry;
35
+ /**
36
+ * Calculates the morphed attributes of a morphed/skinned BufferGeometry.
37
+ * Helpful for Raytracing or Decals.
38
+ * @param {Mesh | Line | Points} object An instance of Mesh, Line or Points.
39
+ * @return {Object} An Object with original position/normal attributes and morphed ones.
40
+ */
41
+ export type ComputedMorphedAttribute = {
42
+ positionAttribute: BufferAttribute | InterleavedBufferAttribute;
43
+ normalAttribute: BufferAttribute | InterleavedBufferAttribute;
44
+ morphedPositionAttribute: Float32BufferAttribute;
45
+ morphedNormalAttribute: Float32BufferAttribute;
46
+ };
47
+ export declare function computeMorphedAttributes(object: Mesh | Line | Points): ComputedMorphedAttribute | null;
48
+ /**
49
+ * Modifies the supplied geometry if it is non-indexed, otherwise creates a new,
50
+ * non-indexed geometry. Returns the geometry with smooth normals everywhere except
51
+ * faces that meet at an angle greater than the crease angle.
52
+ *
53
+ * Backwards compatible with code such as @react-three/drei's `<RoundedBox>`
54
+ * which uses this method to operate on the original geometry.
55
+ *
56
+ * As of this writing, BufferGeometry.toNonIndexed() warns if the geometry is
57
+ * non-indexed and returns `this`, i.e. the same geometry on which it was called:
58
+ * `BufferGeometry is already non-indexed.`
59
+ *
60
+ * @param geometry
61
+ * @param creaseAngle
62
+ */
63
+ export declare function toCreasedNormals(geometry: BufferGeometry, creaseAngle?: number): BufferGeometry;
@@ -1,4 +1,4 @@
1
- import { BufferAttribute, BufferGeometry, Float32BufferAttribute, InterleavedBufferAttribute, Mesh, Line, Points } from 'three';
1
+ import type { BufferAttribute, BufferGeometry, Float32BufferAttribute, InterleavedBufferAttribute, Mesh, Line, Points } from 'three';
2
2
  /**
3
3
  * @param {Array<BufferGeometry>} geometries
4
4
  * @param {Boolean} useGroups
@@ -0,0 +1,7 @@
1
+ import type { Mesh } from 'three'
2
+
3
+ export namespace GeometryCompressionUtils {
4
+ function compressNormals(mesh: Mesh, encodeMethod: string): void
5
+ function compressPositions(mesh: Mesh): void
6
+ function compressUvs(mesh: Mesh): void
7
+ }
@@ -1,4 +1,4 @@
1
- import { Mesh } from 'three'
1
+ import type { Mesh } from 'three'
2
2
 
3
3
  export namespace GeometryCompressionUtils {
4
4
  function compressNormals(mesh: Mesh, encodeMethod: string): void
@@ -0,0 +1,6 @@
1
+ import type { Vector3 } from 'three';
2
+ export declare const GeometryUtils: {
3
+ hilbert3D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number, v4?: number, v5?: number, v6?: number, v7?: number) => Vector3[];
4
+ gosper: (size?: number) => number[];
5
+ hilbert2D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number) => Vector3[];
6
+ };
@@ -1,4 +1,4 @@
1
- import { Vector3 } from 'three';
1
+ import type { Vector3 } from 'three';
2
2
  export declare const GeometryUtils: {
3
3
  hilbert3D: (center?: Vector3, size?: number, iterations?: number, v0?: number, v1?: number, v2?: number, v3?: number, v4?: number, v5?: number, v6?: number, v7?: number) => Vector3[];
4
4
  gosper: (size?: number) => number[];
@@ -0,0 +1,5 @@
1
+ import type { Group, Object3D } from 'three'
2
+
3
+ export namespace LDrawUtils {
4
+ function mergeObject(object: Object3D): Group
5
+ }
@@ -1,4 +1,4 @@
1
- import { Group, Object3D } from 'three'
1
+ import type { Group, Object3D } from 'three'
2
2
 
3
3
  export namespace LDrawUtils {
4
4
  function mergeObject(object: Object3D): Group
@@ -0,0 +1,8 @@
1
+ import type { Material, WebGLRenderer } from 'three'
2
+
3
+ export class RoughnessMipmapper {
4
+ constructor(renderer: WebGLRenderer)
5
+
6
+ generateMipmaps(material: Material): void
7
+ dispose(): void
8
+ }
@@ -1,4 +1,4 @@
1
- import { Material, WebGLRenderer } from 'three'
1
+ import type { Material, WebGLRenderer } from 'three'
2
2
 
3
3
  export class RoughnessMipmapper {
4
4
  constructor(renderer: WebGLRenderer)
@@ -0,0 +1,9 @@
1
+ import type { Group } from 'three';
2
+ import type { BufferGeometry, InstancedMesh, Material, Object3D, Scene } from 'three';
3
+ declare const SceneUtils: {
4
+ createMeshesFromInstancedMesh: (instancedMesh: InstancedMesh) => Group;
5
+ createMultiMaterialObject: (geometry: BufferGeometry, materials: Material[]) => Group;
6
+ detach: (child: Object3D, parent: Object3D, scene: Scene) => void;
7
+ attach: (child: Object3D, scene: Scene, parent: Object3D) => void;
8
+ };
9
+ export { type SceneUtils };
@@ -1,4 +1,4 @@
1
- import { Group } from 'three';
1
+ import type { Group } from 'three';
2
2
  import type { BufferGeometry, InstancedMesh, Material, Object3D, Scene } from 'three';
3
3
  declare const SceneUtils: {
4
4
  createMeshesFromInstancedMesh: (instancedMesh: InstancedMesh) => Group;
@@ -6,4 +6,4 @@ declare const SceneUtils: {
6
6
  detach: (child: Object3D, parent: Object3D, scene: Scene) => void;
7
7
  attach: (child: Object3D, scene: Scene, parent: Object3D) => void;
8
8
  };
9
- export { SceneUtils };
9
+ export { type SceneUtils };
@@ -0,0 +1,24 @@
1
+ import type { Light, WebGLRenderer } from 'three'
2
+
3
+ export interface Size {
4
+ width: number
5
+ height: number
6
+ set: (width: number, height: number) => void
7
+ }
8
+
9
+ export interface Position {
10
+ x: number
11
+ y: number
12
+ set: (x: number, y: number) => void
13
+ }
14
+
15
+ export class ShadowMapViewer {
16
+ constructor(light: Light)
17
+
18
+ enabled: boolean
19
+ size: Size
20
+ position: Position
21
+ render(renderer: WebGLRenderer): void
22
+ updateForWindowResize(): void
23
+ update(): void
24
+ }
@@ -1,4 +1,4 @@
1
- import { Light, WebGLRenderer } from 'three'
1
+ import type { Light, WebGLRenderer } from 'three'
2
2
 
3
3
  export interface Size {
4
4
  width: number
@@ -0,0 +1,14 @@
1
+ import type { AnimationClip, Object3D, Skeleton } from 'three'
2
+
3
+ export namespace SkeletonUtils {
4
+ export function clone(source: Object3D): Object3D
5
+
6
+ export function retarget(target: Object3D | Skeleton, source: Object3D | Skeleton, options: {}): void
7
+
8
+ export function retargetClip(
9
+ target: Skeleton | Object3D,
10
+ source: Skeleton | Object3D,
11
+ clip: AnimationClip,
12
+ options: {},
13
+ ): AnimationClip
14
+ }
@@ -1,4 +1,4 @@
1
- import { AnimationClip, Object3D, Skeleton } from 'three'
1
+ import type { AnimationClip, Object3D, Skeleton } from 'three'
2
2
 
3
3
  export namespace SkeletonUtils {
4
4
  export function clone(source: Object3D): Object3D
@@ -0,0 +1,3 @@
1
+ import type { BufferGeometry } from 'three'
2
+
3
+ export function UVsDebug(geometry: BufferGeometry, size: number): HTMLCanvasElement
@@ -1,3 +1,3 @@
1
- import { BufferGeometry } from 'three'
1
+ import type { BufferGeometry } from 'three'
2
2
 
3
3
  export function UVsDebug(geometry: BufferGeometry, size: number): HTMLCanvasElement
@@ -0,0 +1,6 @@
1
+ /// <reference types="webxr" />
2
+ import type { WebGLRenderer } from 'three';
3
+ declare const ARButton: {
4
+ createButton(renderer: WebGLRenderer, sessionInit?: XRSessionInit): HTMLButtonElement | HTMLAnchorElement;
5
+ };
6
+ export { type ARButton };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="webxr" />
2
- import { WebGLRenderer } from 'three';
2
+ import type { WebGLRenderer } from 'three';
3
3
  declare const ARButton: {
4
4
  createButton(renderer: WebGLRenderer, sessionInit?: XRSessionInit): HTMLButtonElement | HTMLAnchorElement;
5
5
  };
6
- export { ARButton };
6
+ export { type ARButton };
@@ -0,0 +1,23 @@
1
+ /// <reference types="webxr" />
2
+ import type { Object3D, Mesh, Texture, Vector3 } from 'three';
3
+ import type { XRHandMeshModel } from './XRHandMeshModel.d.cts';
4
+ export interface XRButton extends Object3D {
5
+ onPress(): void;
6
+ onClear(): void;
7
+ isPressed(): boolean;
8
+ whilePressed(): void;
9
+ }
10
+ declare class OculusHandModel extends Object3D {
11
+ controller: Object3D;
12
+ motionController: XRHandMeshModel | null;
13
+ envMap: Texture | null;
14
+ mesh: Mesh | null;
15
+ xrInputSource: XRInputSource | null;
16
+ constructor(controller: Object3D, leftModelPath?: string, rightModelPath?: string);
17
+ updateMatrixWorld(force?: boolean): void;
18
+ getPointerPosition(): Vector3 | null;
19
+ intersectBoxObject(boxObject: Object3D): boolean;
20
+ checkButton(button: XRButton): void;
21
+ dispose(): void;
22
+ }
23
+ export { type OculusHandModel };
@@ -1,6 +1,6 @@
1
1
  /// <reference types="webxr" />
2
- import { Object3D, Mesh, Texture, Vector3 } from 'three';
3
- import { XRHandMeshModel } from './XRHandMeshModel';
2
+ import type { Object3D, Mesh, Texture, Vector3 } from 'three';
3
+ import type { XRHandMeshModel } from './XRHandMeshModel.d.ts';
4
4
  export interface XRButton extends Object3D {
5
5
  onPress(): void;
6
6
  onClear(): void;
@@ -20,4 +20,4 @@ declare class OculusHandModel extends Object3D {
20
20
  checkButton(button: XRButton): void;
21
21
  dispose(): void;
22
22
  }
23
- export { OculusHandModel };
23
+ export { type OculusHandModel };
@@ -0,0 +1,65 @@
1
+ import type {
2
+ BufferGeometry,
3
+ Intersection,
4
+ Mesh,
5
+ MeshBasicMaterial,
6
+ Object3D,
7
+ Raycaster,
8
+ SphereGeometry,
9
+ Texture,
10
+ Vector3,
11
+ } from 'three'
12
+
13
+ export class OculusHandPointerModel extends Object3D {
14
+ hand: Object3D
15
+ controller: Object3D
16
+ motionController: Object3D | null
17
+
18
+ envMap: Texture | null
19
+
20
+ mesh: Mesh | null
21
+
22
+ pointerGeometry: BufferGeometry | null
23
+ pointerMesh: Mesh<BufferGeometry, MeshBasicMaterial> | null
24
+ pointerObject: Object3D | null
25
+
26
+ pinched: boolean
27
+ attached: boolean
28
+
29
+ cursorObject: Mesh<SphereGeometry, MeshBasicMaterial> | null
30
+
31
+ raycaster: Raycaster
32
+
33
+ visible: boolean
34
+ xrInputSource: unknown
35
+
36
+ constructor(hand: Object3D, controller: Object3D)
37
+
38
+ private _drawVerticesRing(vertices: number[], baseVector: Vector3, ringIndex: number): void
39
+
40
+ private _updatePointerVertices(rearRadius: number): void
41
+
42
+ public createPointer(): void
43
+
44
+ private _updateRaycaster(): void
45
+
46
+ private _updatePointer(): void
47
+
48
+ public updateMatrixWorld(force?: boolean): void
49
+
50
+ public isPinched(): boolean
51
+
52
+ public setAttached(attached: boolean): void
53
+
54
+ public isAttached(): boolean
55
+
56
+ public intersectObject(object: Object3D, recursive?: boolean): Intersection[] | void
57
+
58
+ public intersectObjects(objects: Object3D[], recursive?: boolean): Intersection[] | void
59
+
60
+ public checkIntersections(objects: Object3D[], recursive?: boolean): void
61
+
62
+ public setCursor(distance: number): void
63
+
64
+ public dispose(): void
65
+ }
@@ -1,4 +1,4 @@
1
- import {
1
+ import type {
2
2
  BufferGeometry,
3
3
  Intersection,
4
4
  Mesh,
@@ -0,0 +1,3 @@
1
+ import type { Mesh } from 'three'
2
+
3
+ export function createText(message: string, height: number): Mesh
package/webxr/Text2D.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Mesh } from 'three'
1
+ import type { Mesh } from 'three'
2
2
 
3
3
  export function createText(message: string, height: number): Mesh
@@ -0,0 +1,11 @@
1
+ import type { WebGLRenderer } from 'three'
2
+
3
+ declare class VRButton {
4
+ static createButton(renderer: WebGLRenderer, sessionInit?: XRSessionInit): HTMLButtonElement | HTMLAnchorElement
5
+
6
+ static xrSessionIsGranted: boolean
7
+
8
+ static registerSessionGrantedListener(): void
9
+ }
10
+
11
+ export { type VRButton }
@@ -1,4 +1,4 @@
1
- import { WebGLRenderer } from 'three'
1
+ import type { WebGLRenderer } from 'three'
2
2
 
3
3
  declare class VRButton {
4
4
  static createButton(renderer: WebGLRenderer, sessionInit?: XRSessionInit): HTMLButtonElement | HTMLAnchorElement
@@ -8,4 +8,4 @@ declare class VRButton {
8
8
  static registerSessionGrantedListener(): void
9
9
  }
10
10
 
11
- export { VRButton }
11
+ export { type VRButton }
@@ -0,0 +1,23 @@
1
+ import type { Object3D } from 'three';
2
+ import type { Texture, Group } from 'three';
3
+ import type { GLTFLoader } from '../loaders/GLTFLoader.d.cts';
4
+ import type { MotionController } from '../libs/MotionControllers.d.cts';
5
+ declare class XRControllerModel extends Object3D {
6
+ envMap: Texture | null;
7
+ motionController: MotionController | null;
8
+ constructor();
9
+ setEnvironmentMap(envMap: Texture): XRControllerModel;
10
+ /**
11
+ * Polls data from the XRInputSource and updates the model's components to match
12
+ * the real world data
13
+ */
14
+ updateMatrixWorld(force: boolean): void;
15
+ }
16
+ declare class XRControllerModelFactory {
17
+ gltfLoader: GLTFLoader;
18
+ path: string;
19
+ private _assetCache;
20
+ constructor(gltfLoader?: GLTFLoader);
21
+ createControllerModel(controller: Group): XRControllerModel;
22
+ }
23
+ export { type XRControllerModelFactory };
@@ -1,7 +1,7 @@
1
- import { Object3D } from 'three';
1
+ import type { Object3D } from 'three';
2
2
  import type { Texture, Group } from 'three';
3
- import { GLTFLoader } from '../loaders/GLTFLoader';
4
- import { MotionController } from '../libs/MotionControllers';
3
+ import type { GLTFLoader } from '../loaders/GLTFLoader.d.ts';
4
+ import type { MotionController } from '../libs/MotionControllers.d.ts';
5
5
  declare class XRControllerModel extends Object3D {
6
6
  envMap: Texture | null;
7
7
  motionController: MotionController | null;
@@ -20,4 +20,4 @@ declare class XRControllerModelFactory {
20
20
  constructor(gltfLoader?: GLTFLoader);
21
21
  createControllerModel(controller: Group): XRControllerModel;
22
22
  }
23
- export { XRControllerModelFactory };
23
+ export { type XRControllerModelFactory };