@types/three 0.161.2 → 0.163.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.
- three/README.md +2 -2
- three/build/three.d.cts +0 -1
- three/build/three.module.d.ts +0 -1
- three/build/three.module.min.d.ts +0 -1
- three/examples/jsm/animation/AnimationClipCreator.d.ts +1 -1
- three/examples/jsm/animation/CCDIKSolver.d.ts +1 -1
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +1 -11
- three/examples/jsm/animation/MMDPhysics.d.ts +1 -1
- three/examples/jsm/cameras/CinematicCamera.d.ts +1 -8
- three/examples/jsm/controls/ArcballControls.d.ts +1 -1
- three/examples/jsm/controls/DragControls.d.ts +80 -10
- three/examples/jsm/controls/FirstPersonControls.d.ts +1 -1
- three/examples/jsm/controls/FlyControls.d.ts +1 -1
- three/examples/jsm/controls/MapControls.d.ts +1 -1
- three/examples/jsm/controls/OrbitControls.d.ts +2 -2
- three/examples/jsm/controls/PointerLockControls.d.ts +1 -1
- three/examples/jsm/controls/TrackballControls.d.ts +1 -1
- three/examples/jsm/controls/TransformControls.d.ts +6 -1
- three/examples/jsm/csm/CSM.d.ts +1 -1
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/csm/CSMHelper.d.ts +1 -1
- three/examples/jsm/curves/CurveExtras.d.ts +1 -1
- three/examples/jsm/curves/NURBSCurve.d.ts +1 -1
- three/examples/jsm/curves/NURBSSurface.d.ts +1 -1
- three/examples/jsm/curves/NURBSUtils.d.ts +1 -1
- three/examples/jsm/curves/NURBSVolume.d.ts +1 -1
- three/examples/jsm/deprecated/Geometry.d.ts +1 -1
- three/examples/jsm/effects/AnaglyphEffect.d.ts +1 -1
- three/examples/jsm/effects/AsciiEffect.d.ts +1 -1
- three/examples/jsm/effects/OutlineEffect.d.ts +1 -9
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +1 -1
- three/examples/jsm/effects/PeppersGhostEffect.d.ts +1 -1
- three/examples/jsm/effects/StereoEffect.d.ts +1 -1
- three/examples/jsm/environments/DebugEnvironment.d.ts +1 -1
- three/examples/jsm/environments/RoomEnvironment.d.ts +1 -1
- three/examples/jsm/exporters/DRACOExporter.d.ts +1 -1
- three/examples/jsm/exporters/EXRExporter.d.ts +1 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +1 -1
- three/examples/jsm/exporters/KTX2Exporter.d.ts +1 -1
- three/examples/jsm/exporters/MMDExporter.d.ts +1 -1
- three/examples/jsm/exporters/OBJExporter.d.ts +1 -1
- three/examples/jsm/exporters/PLYExporter.d.ts +1 -1
- three/examples/jsm/exporters/STLExporter.d.ts +1 -1
- three/examples/jsm/exporters/USDZExporter.d.ts +1 -1
- three/examples/jsm/geometries/BoxLineGeometry.d.ts +1 -1
- three/examples/jsm/geometries/ConvexGeometry.d.ts +1 -1
- three/examples/jsm/geometries/DecalGeometry.d.ts +1 -1
- three/examples/jsm/geometries/ParametricGeometries.d.ts +1 -1
- three/examples/jsm/geometries/ParametricGeometry.d.ts +1 -1
- three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +1 -1
- three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +1 -1
- three/examples/jsm/geometries/TeapotGeometry.d.ts +1 -1
- three/examples/jsm/geometries/TextGeometry.d.ts +9 -1
- three/examples/jsm/helpers/LightProbeHelper.d.ts +1 -1
- three/examples/jsm/helpers/OctreeHelper.d.ts +1 -1
- three/examples/jsm/helpers/PositionalAudioHelper.d.ts +1 -1
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +1 -1
- three/examples/jsm/helpers/TextureHelper.d.ts +1 -1
- three/examples/jsm/helpers/VertexNormalsHelper.d.ts +1 -1
- three/examples/jsm/helpers/VertexTangentsHelper.d.ts +1 -1
- three/examples/jsm/helpers/ViewHelper.d.ts +1 -1
- three/examples/jsm/interactive/InteractiveGroup.d.ts +4 -2
- three/examples/jsm/interactive/SelectionBox.d.ts +1 -1
- three/examples/jsm/interactive/SelectionHelper.d.ts +1 -1
- three/examples/jsm/libs/tween.module.d.ts +2 -219
- three/examples/jsm/lights/LightProbeGenerator.d.ts +1 -1
- three/examples/jsm/lines/LineGeometry.d.ts +1 -1
- three/examples/jsm/lines/LineMaterial.d.ts +1 -1
- three/examples/jsm/lines/LineSegments2.d.ts +1 -1
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +1 -8
- three/examples/jsm/lines/Wireframe.d.ts +1 -1
- three/examples/jsm/lines/WireframeGeometry2.d.ts +1 -1
- three/examples/jsm/loaders/3DMLoader.d.ts +1 -1
- three/examples/jsm/loaders/3MFLoader.d.ts +1 -1
- three/examples/jsm/loaders/AMFLoader.d.ts +1 -1
- three/examples/jsm/loaders/BVHLoader.d.ts +1 -1
- three/examples/jsm/loaders/ColladaLoader.d.ts +1 -1
- three/examples/jsm/loaders/DDSLoader.d.ts +1 -1
- three/examples/jsm/loaders/DRACOLoader.d.ts +1 -1
- three/examples/jsm/loaders/EXRLoader.d.ts +2 -8
- three/examples/jsm/loaders/FBXLoader.d.ts +1 -1
- three/examples/jsm/loaders/FontLoader.d.ts +19 -5
- three/examples/jsm/loaders/GCodeLoader.d.ts +1 -1
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +1 -1
- three/examples/jsm/loaders/KMZLoader.d.ts +1 -1
- three/examples/jsm/loaders/KTX2Loader.d.ts +1 -1
- three/examples/jsm/loaders/KTXLoader.d.ts +1 -1
- three/examples/jsm/loaders/LDrawLoader.d.ts +1 -1
- three/examples/jsm/loaders/LUT3dlLoader.d.ts +1 -2
- three/examples/jsm/loaders/LUTCubeLoader.d.ts +1 -10
- three/examples/jsm/loaders/LWOLoader.d.ts +1 -1
- three/examples/jsm/loaders/LogLuvLoader.d.ts +1 -1
- three/examples/jsm/loaders/LottieLoader.d.ts +1 -1
- three/examples/jsm/loaders/MD2Loader.d.ts +1 -1
- three/examples/jsm/loaders/MDDLoader.d.ts +1 -1
- three/examples/jsm/loaders/MMDLoader.d.ts +1 -1
- three/examples/jsm/loaders/MTLLoader.d.ts +1 -11
- three/examples/jsm/loaders/MaterialXLoader.d.ts +1 -1
- three/examples/jsm/loaders/NRRDLoader.d.ts +1 -1
- three/examples/jsm/loaders/OBJLoader.d.ts +1 -1
- three/examples/jsm/loaders/PCDLoader.d.ts +1 -1
- three/examples/jsm/loaders/PDBLoader.d.ts +1 -1
- three/examples/jsm/loaders/PLYLoader.d.ts +1 -1
- three/examples/jsm/loaders/PVRLoader.d.ts +1 -1
- three/examples/jsm/loaders/RGBELoader.d.ts +1 -1
- three/examples/jsm/loaders/RGBMLoader.d.ts +6 -1
- three/examples/jsm/loaders/STLLoader.d.ts +1 -1
- three/examples/jsm/loaders/SVGLoader.d.ts +1 -1
- three/examples/jsm/loaders/TDSLoader.d.ts +1 -1
- three/examples/jsm/loaders/TGALoader.d.ts +1 -1
- three/examples/jsm/loaders/TTFLoader.d.ts +6 -4
- three/examples/jsm/loaders/TiltLoader.d.ts +1 -1
- three/examples/jsm/loaders/USDZLoader.d.ts +2 -2
- three/examples/jsm/loaders/VOXLoader.d.ts +1 -1
- three/examples/jsm/loaders/VRMLLoader.d.ts +1 -1
- three/examples/jsm/loaders/VTKLoader.d.ts +1 -1
- three/examples/jsm/loaders/XYZLoader.d.ts +1 -1
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +1 -1
- three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +1 -1
- three/examples/jsm/math/Capsule.d.ts +1 -1
- three/examples/jsm/math/ColorConverter.d.ts +1 -1
- three/examples/jsm/math/ConvexHull.d.ts +1 -1
- three/examples/jsm/math/Lut.d.ts +1 -1
- three/examples/jsm/math/MeshSurfaceSampler.d.ts +1 -1
- three/examples/jsm/math/OBB.d.ts +1 -1
- three/examples/jsm/math/Octree.d.ts +1 -1
- three/examples/jsm/misc/ConvexObjectBreaker.d.ts +1 -1
- three/examples/jsm/misc/GPUComputationRenderer.d.ts +1 -1
- three/examples/jsm/misc/Gyroscope.d.ts +1 -1
- three/examples/jsm/misc/MD2Character.d.ts +1 -1
- three/examples/jsm/misc/MD2CharacterComplex.d.ts +1 -1
- three/examples/jsm/misc/MorphAnimMesh.d.ts +1 -1
- three/examples/jsm/misc/MorphBlendMesh.d.ts +1 -1
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +1 -1
- three/examples/jsm/misc/RollerCoaster.d.ts +1 -1
- three/examples/jsm/misc/Timer.d.ts +28 -28
- three/examples/jsm/misc/TubePainter.d.ts +1 -1
- three/examples/jsm/misc/Volume.d.ts +1 -1
- three/examples/jsm/misc/VolumeSlice.d.ts +1 -1
- three/examples/jsm/modifiers/CurveModifier.d.ts +1 -10
- three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +1 -1
- three/examples/jsm/modifiers/SimplifyModifier.d.ts +1 -1
- three/examples/jsm/modifiers/TessellateModifier.d.ts +1 -1
- three/examples/jsm/nodes/Nodes.d.ts +25 -7
- three/examples/jsm/nodes/accessors/AccessorsUtils.d.ts +7 -0
- three/examples/jsm/nodes/accessors/BatchNode.d.ts +14 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +7 -3
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +1 -9
- three/examples/jsm/nodes/accessors/ClippingNode.d.ts +16 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -2
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +2 -2
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +10 -10
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +16 -4
- three/examples/jsm/nodes/accessors/RendererReferenceNode.d.ts +16 -0
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +7 -3
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +14 -1
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +9 -2
- three/examples/jsm/nodes/accessors/UniformsNode.d.ts +25 -0
- three/examples/jsm/nodes/core/AssignNode.d.ts +2 -1
- three/examples/jsm/nodes/core/Node.d.ts +9 -3
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +1 -10
- three/examples/jsm/nodes/core/NodeFrame.d.ts +1 -1
- three/examples/jsm/nodes/core/NodeUtils.d.ts +2 -2
- three/examples/jsm/nodes/core/TempNode.d.ts +1 -1
- three/examples/jsm/nodes/display/AnamorphicNode.d.ts +5 -6
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +1 -1
- three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +1 -1
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +1 -3
- three/examples/jsm/nodes/display/PassNode.d.ts +3 -1
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +13 -1
- three/examples/jsm/nodes/display/ViewportDepthTextureNode.d.ts +12 -0
- three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +1 -1
- three/examples/jsm/nodes/fog/FogNode.d.ts +10 -5
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +9 -5
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +1 -1
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +1 -1
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +1 -1
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +1 -1
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +13 -3
- three/examples/jsm/nodes/materials/Materials.d.ts +1 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +23 -3
- three/examples/jsm/nodes/materials/MeshNormalNodeMaterial.d.ts +23 -0
- three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +41 -5
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +58 -18
- three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +9 -9
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +40 -6
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +48 -15
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +14 -4
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +17 -6
- three/examples/jsm/nodes/math/MathNode.d.ts +11 -0
- three/examples/jsm/nodes/pmrem/PMREMNode.d.ts +20 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +1 -1
- three/examples/jsm/nodes/utils/ReflectorNode.d.ts +1 -1
- three/examples/jsm/nodes/utils/StoargeArrayElementNode.d.ts +25 -0
- three/examples/jsm/objects/GroundedSkybox.d.ts +1 -1
- three/examples/jsm/objects/Lensflare.d.ts +1 -1
- three/examples/jsm/objects/MarchingCubes.d.ts +1 -1
- three/examples/jsm/objects/QuadMesh.d.ts +5 -8
- three/examples/jsm/objects/Reflector.d.ts +7 -15
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +1 -1
- three/examples/jsm/objects/Refractor.d.ts +7 -16
- three/examples/jsm/objects/ShadowMesh.d.ts +1 -1
- three/examples/jsm/objects/Sky.d.ts +1 -1
- three/examples/jsm/objects/Water.d.ts +1 -9
- three/examples/jsm/objects/Water2.d.ts +13 -22
- three/examples/jsm/physics/AmmoPhysics.d.ts +1 -1
- three/examples/jsm/physics/RapierPhysics.d.ts +1 -1
- three/examples/jsm/postprocessing/AfterimagePass.d.ts +1 -1
- three/examples/jsm/postprocessing/BloomPass.d.ts +1 -1
- three/examples/jsm/postprocessing/BokehPass.d.ts +1 -1
- three/examples/jsm/postprocessing/ClearPass.d.ts +1 -1
- three/examples/jsm/postprocessing/CubeTexturePass.d.ts +1 -1
- three/examples/jsm/postprocessing/DotScreenPass.d.ts +1 -1
- three/examples/jsm/postprocessing/EffectComposer.d.ts +1 -1
- three/examples/jsm/postprocessing/FilmPass.d.ts +1 -1
- three/examples/jsm/postprocessing/GTAOPass.d.ts +1 -1
- three/examples/jsm/postprocessing/GlitchPass.d.ts +1 -1
- three/examples/jsm/postprocessing/HalftonePass.d.ts +1 -1
- three/examples/jsm/postprocessing/LUTPass.d.ts +1 -1
- three/examples/jsm/postprocessing/MaskPass.d.ts +1 -1
- three/examples/jsm/postprocessing/OutlinePass.d.ts +1 -1
- three/examples/jsm/postprocessing/OutputPass.d.ts +1 -1
- three/examples/jsm/postprocessing/Pass.d.ts +1 -1
- three/examples/jsm/postprocessing/RenderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SAOPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SMAAPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSAOPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SSRPass.d.ts +1 -1
- three/examples/jsm/postprocessing/SavePass.d.ts +1 -1
- three/examples/jsm/postprocessing/ShaderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/TAARenderPass.d.ts +1 -1
- three/examples/jsm/postprocessing/TexturePass.d.ts +1 -1
- three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +1 -1
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +1 -1
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +1 -1
- three/examples/jsm/renderers/Projector.d.ts +1 -1
- three/examples/jsm/renderers/SVGRenderer.d.ts +1 -1
- three/examples/jsm/renderers/common/Backend.d.ts +1 -1
- three/examples/jsm/renderers/common/Color4.d.ts +1 -1
- three/examples/jsm/renderers/common/Info.d.ts +4 -8
- three/examples/jsm/renderers/common/PostProcessing.d.ts +3 -1
- three/examples/jsm/renderers/common/Renderer.d.ts +30 -16
- three/examples/jsm/renderers/common/StorageTexture.d.ts +1 -1
- three/examples/jsm/renderers/common/extras/PMREMGenerator.d.ts +8 -0
- three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +5 -1
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +1 -1
- three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +1 -1
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +1 -1
- three/examples/jsm/shaders/AfterimageShader.d.ts +1 -1
- three/examples/jsm/shaders/BleachBypassShader.d.ts +1 -1
- three/examples/jsm/shaders/BlendShader.d.ts +1 -1
- three/examples/jsm/shaders/BokehShader.d.ts +1 -1
- three/examples/jsm/shaders/BokehShader2.d.ts +1 -1
- three/examples/jsm/shaders/BrightnessContrastShader.d.ts +1 -1
- three/examples/jsm/shaders/ColorCorrectionShader.d.ts +1 -1
- three/examples/jsm/shaders/ColorifyShader.d.ts +1 -1
- three/examples/jsm/shaders/ConvolutionShader.d.ts +1 -1
- three/examples/jsm/shaders/CopyShader.d.ts +1 -1
- three/examples/jsm/shaders/DOFMipMapShader.d.ts +1 -1
- three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/DigitalGlitch.d.ts +1 -1
- three/examples/jsm/shaders/DotScreenShader.d.ts +1 -1
- three/examples/jsm/shaders/ExposureShader.d.ts +1 -1
- three/examples/jsm/shaders/FXAAShader.d.ts +1 -1
- three/examples/jsm/shaders/FilmShader.d.ts +1 -1
- three/examples/jsm/shaders/FocusShader.d.ts +1 -1
- three/examples/jsm/shaders/FreiChenShader.d.ts +1 -1
- three/examples/jsm/shaders/GTAOShader.d.ts +1 -1
- three/examples/jsm/shaders/GammaCorrectionShader.d.ts +1 -1
- three/examples/jsm/shaders/GodRaysShader.d.ts +1 -1
- three/examples/jsm/shaders/HalftoneShader.d.ts +1 -1
- three/examples/jsm/shaders/HorizontalBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +1 -1
- three/examples/jsm/shaders/HueSaturationShader.d.ts +1 -1
- three/examples/jsm/shaders/KaleidoShader.d.ts +1 -1
- three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +1 -1
- three/examples/jsm/shaders/LuminosityShader.d.ts +1 -1
- three/examples/jsm/shaders/MMDToonShader.d.ts +1 -1
- three/examples/jsm/shaders/MirrorShader.d.ts +1 -1
- three/examples/jsm/shaders/NormalMapShader.d.ts +1 -1
- three/examples/jsm/shaders/OutputShader.d.ts +1 -1
- three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +1 -1
- three/examples/jsm/shaders/RGBShiftShader.d.ts +1 -1
- three/examples/jsm/shaders/SAOShader.d.ts +1 -1
- three/examples/jsm/shaders/SMAAShader.d.ts +1 -1
- three/examples/jsm/shaders/SSAOShader.d.ts +1 -1
- three/examples/jsm/shaders/SSRShader.d.ts +1 -1
- three/examples/jsm/shaders/SepiaShader.d.ts +1 -1
- three/examples/jsm/shaders/SobelOperatorShader.d.ts +1 -1
- three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +1 -1
- three/examples/jsm/shaders/TechnicolorShader.d.ts +1 -1
- three/examples/jsm/shaders/ToonShader.d.ts +1 -1
- three/examples/jsm/shaders/TriangleBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +1 -1
- three/examples/jsm/shaders/VelocityShader.d.ts +1 -1
- three/examples/jsm/shaders/VerticalBlurShader.d.ts +1 -1
- three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +1 -1
- three/examples/jsm/shaders/VignetteShader.d.ts +1 -1
- three/examples/jsm/shaders/VolumeShader.d.ts +1 -1
- three/examples/jsm/shaders/WaterRefractionShader.d.ts +1 -1
- three/examples/jsm/utils/BufferGeometryUtils.d.ts +1 -1
- three/examples/jsm/utils/CameraUtils.d.ts +1 -1
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +1 -1
- three/examples/jsm/utils/GeometryUtils.d.ts +1 -1
- three/examples/jsm/utils/LDrawUtils.d.ts +1 -1
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +1 -1
- three/examples/jsm/utils/SceneUtils.d.ts +1 -1
- three/examples/jsm/utils/ShadowMapViewer.d.ts +1 -1
- three/examples/jsm/utils/SkeletonUtils.d.ts +1 -1
- three/examples/jsm/utils/UVsDebug.d.ts +1 -1
- three/examples/jsm/webxr/ARButton.d.ts +1 -1
- three/examples/jsm/webxr/OculusHandModel.d.ts +1 -1
- three/examples/jsm/webxr/OculusHandPointerModel.d.ts +1 -1
- three/examples/jsm/webxr/Text2D.d.ts +1 -1
- three/examples/jsm/webxr/VRButton.d.ts +3 -3
- three/examples/jsm/webxr/XRButton.d.ts +1 -2
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +6 -5
- three/examples/jsm/webxr/XREstimatedLight.d.ts +1 -1
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +1 -1
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +6 -5
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +1 -1
- three/examples/jsm/webxr/XRPlanes.d.ts +2 -2
- three/index.d.ts +1 -3
- three/package.json +5 -4
- three/src/Three.Legacy.d.ts +20 -1
- three/src/Three.d.ts +0 -2
- three/src/cameras/Camera.d.ts +3 -0
- three/src/constants.d.ts +13 -55
- three/src/core/BufferAttribute.d.ts +0 -32
- three/src/core/BufferGeometry.d.ts +6 -4
- three/src/core/InstancedBufferAttribute.d.ts +7 -0
- three/src/core/Object3D.d.ts +17 -0
- three/src/core/Raycaster.d.ts +7 -0
- three/src/core/RenderTarget.d.ts +8 -7
- three/src/extras/PMREMGenerator.d.ts +5 -4
- three/src/helpers/SkeletonHelper.d.ts +1 -1
- three/src/lights/LightShadow.d.ts +2 -2
- three/src/materials/Material.d.ts +46 -23
- three/src/materials/MeshBasicMaterial.d.ts +8 -0
- three/src/materials/MeshLambertMaterial.d.ts +8 -1
- three/src/materials/MeshPhongMaterial.d.ts +7 -0
- three/src/materials/MeshStandardMaterial.d.ts +7 -0
- three/src/materials/ShaderMaterial.d.ts +2 -17
- three/src/objects/BatchedMesh.d.ts +0 -3
- three/src/objects/InstancedMesh.d.ts +29 -5
- three/src/objects/SkinnedMesh.d.ts +6 -11
- three/src/renderers/WebGL3DRenderTarget.d.ts +6 -7
- three/src/renderers/WebGLArrayRenderTarget.d.ts +6 -7
- three/src/renderers/WebGLCubeRenderTarget.d.ts +7 -3
- three/src/renderers/WebGLRenderTarget.d.ts +1 -4
- three/src/renderers/WebGLRenderer.d.ts +5 -20
- three/src/renderers/shaders/UniformsLib.d.ts +1 -0
- three/src/renderers/webgl/WebGLAttributes.d.ts +1 -2
- three/src/renderers/webgl/WebGLBindingStates.d.ts +1 -8
- three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -3
- three/src/renderers/webgl/WebGLCapabilities.d.ts +8 -6
- three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +2 -1
- three/src/renderers/webgl/WebGLExtensions.d.ts +1 -3
- three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +1 -1
- three/src/renderers/webgl/WebGLLights.d.ts +1 -2
- three/src/renderers/webgl/WebGLPrograms.d.ts +1 -9
- three/src/renderers/webgl/WebGLState.d.ts +1 -3
- three/src/renderers/webgl/WebGLUtils.d.ts +7 -3
- three/src/scenes/Scene.d.ts +20 -1
- three/src/textures/Data3DTexture.d.ts +0 -1
- three/src/textures/DataArrayTexture.d.ts +0 -1
- three/src/textures/DepthTexture.d.ts +0 -3
- three/src/textures/Texture.d.ts +13 -22
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -8
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -12
- three/src/renderers/WebGL1Renderer.d.ts +0 -6
- three/src/renderers/WebGLMultipleRenderTargets.d.ts +0 -15
three/README.md
CHANGED
|
@@ -8,8 +8,8 @@ This package contains type definitions for three (https://threejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/three.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
12
|
-
* Dependencies: [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
|
11
|
+
* Last updated: Fri, 29 Mar 2024 19:35:33 GMT
|
|
12
|
+
* Dependencies: [@tweenjs/tween.js](https://npmjs.com/package/@tweenjs/tween.js), [@types/stats.js](https://npmjs.com/package/@types/stats.js), [@types/webxr](https://npmjs.com/package/@types/webxr), [fflate](https://npmjs.com/package/fflate), [meshoptimizer](https://npmjs.com/package/meshoptimizer)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
15
15
|
These definitions were written by [Josh Ellis](https://github.com/joshuaellis), and [Nathan Bierema](https://github.com/Methuselah96).
|
three/build/three.d.cts
CHANGED
three/build/three.module.d.ts
CHANGED
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AnimationClip,
|
|
3
|
-
AnimationMixer,
|
|
4
|
-
Audio,
|
|
5
|
-
Bone,
|
|
6
|
-
Camera,
|
|
7
|
-
Mesh,
|
|
8
|
-
Object3D,
|
|
9
|
-
Quaternion,
|
|
10
|
-
SkinnedMesh,
|
|
11
|
-
} from "../../../src/Three.js";
|
|
1
|
+
import { AnimationClip, AnimationMixer, Audio, Bone, Camera, Mesh, Object3D, Quaternion, SkinnedMesh } from "three";
|
|
12
2
|
|
|
13
3
|
import { CCDIKSolver } from "./CCDIKSolver.js";
|
|
14
4
|
import { MMDPhysics } from "./MMDPhysics.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from "
|
|
1
|
+
import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export interface MMDPhysicsParameter {
|
|
4
4
|
unitStep?: number | undefined;
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OrthographicCamera,
|
|
3
|
-
PerspectiveCamera,
|
|
4
|
-
Scene,
|
|
5
|
-
ShaderMaterial,
|
|
6
|
-
WebGLRenderer,
|
|
7
|
-
WebGLRenderTarget,
|
|
8
|
-
} from "../../../src/Three.js";
|
|
1
|
+
import { OrthographicCamera, PerspectiveCamera, Scene, ShaderMaterial, WebGLRenderer, WebGLRenderTarget } from "three";
|
|
9
2
|
|
|
10
3
|
import { BokehShaderUniforms } from "../shaders/BokehShader2.js";
|
|
11
4
|
|
|
@@ -1,27 +1,97 @@
|
|
|
1
|
-
import { Camera, EventDispatcher, Object3D, Raycaster } from "
|
|
1
|
+
import { Camera, EventDispatcher, Object3D, Raycaster } from "three";
|
|
2
2
|
|
|
3
3
|
export interface DragControlsEventMap {
|
|
4
|
+
/**
|
|
5
|
+
* Fires when the pointer is moved onto a 3D object, or onto one of its children.
|
|
6
|
+
*/
|
|
4
7
|
hoveron: { object: Object3D };
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Fires when the pointer is moved out of a 3D object.
|
|
11
|
+
*/
|
|
5
12
|
hoveroff: { object: Object3D };
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Fires when the user starts to drag a 3D object.
|
|
16
|
+
*/
|
|
6
17
|
dragstart: { object: Object3D };
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Fires when the user drags a 3D object.
|
|
21
|
+
*/
|
|
7
22
|
drag: { object: Object3D };
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Fires when the user has finished dragging a 3D object.
|
|
26
|
+
*/
|
|
8
27
|
dragend: { object: Object3D };
|
|
9
28
|
}
|
|
10
29
|
|
|
30
|
+
export type DragControlsMode = "translate" | "rotate";
|
|
31
|
+
|
|
11
32
|
export class DragControls extends EventDispatcher<DragControlsEventMap> {
|
|
33
|
+
/**
|
|
34
|
+
* Creates a new instance of DragControls.
|
|
35
|
+
* @param objects An array of draggable 3D objects.
|
|
36
|
+
* @param camera The camera of the rendered scene.
|
|
37
|
+
* @param domElement The HTML element used for event listeners.
|
|
38
|
+
*/
|
|
12
39
|
constructor(objects: Object3D[], camera: Camera, domElement?: HTMLElement);
|
|
13
40
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not the controls are enabled.
|
|
43
|
+
*/
|
|
18
44
|
enabled: boolean;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Whether children of draggable objects can be dragged independently from their parent. Default is `true`.
|
|
48
|
+
*/
|
|
19
49
|
recursive: boolean;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* This option only works if the {@link .objects} array contains a single draggable group object. If set to `true`,
|
|
53
|
+
* {@link DragControls} does not transform individual objects but the entire group. Default is `false`.
|
|
54
|
+
*/
|
|
20
55
|
transformGroup: boolean;
|
|
21
56
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
57
|
+
/**
|
|
58
|
+
* The current transformation mode. Possible values are `translate`, and `rotate`. Default is `translate`.
|
|
59
|
+
*/
|
|
60
|
+
mode: DragControlsMode;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* The speed at which the object will rotate when dragged in `rotate` mode. The higher the number the faster the
|
|
64
|
+
* rotation. Default is `1`.
|
|
65
|
+
*/
|
|
66
|
+
rotateSpeed: number;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Adds the event listeners of the controls.
|
|
70
|
+
*/
|
|
71
|
+
activate: () => void;
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Removes the event listeners of the controls.
|
|
75
|
+
*/
|
|
76
|
+
deactivate: () => void;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Should be called if the controls is no longer required.
|
|
80
|
+
*/
|
|
81
|
+
dispose: () => void;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Returns the array of draggable objects.
|
|
85
|
+
*/
|
|
86
|
+
getObjects: () => Object3D[];
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Returns the internal {@link Raycaster} instance that is used for intersection tests.
|
|
90
|
+
*/
|
|
91
|
+
getRaycaster: () => Raycaster;
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Sets an array of draggable objects by overwriting the existing one.
|
|
95
|
+
*/
|
|
96
|
+
setObjects: (objects: readonly Object3D[]) => void;
|
|
27
97
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, EventDispatcher, MOUSE, TOUCH, Vector3 } from "
|
|
1
|
+
import { Camera, EventDispatcher, MOUSE, TOUCH, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export interface OrbitControlsEventMap {
|
|
4
4
|
change: {};
|
|
@@ -14,7 +14,7 @@ export interface OrbitControlsEventMap {
|
|
|
14
14
|
* event listeners.
|
|
15
15
|
*/
|
|
16
16
|
export class OrbitControls extends EventDispatcher<OrbitControlsEventMap> {
|
|
17
|
-
constructor(object: Camera, domElement
|
|
17
|
+
constructor(object: Camera, domElement: HTMLElement);
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* The camera being controlled.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, Mesh, MOUSE, Object3D, Object3DEventMap, Quaternion, Raycaster, Vector3 } from "
|
|
1
|
+
import { Camera, Mesh, MOUSE, Object3D, Object3DEventMap, Quaternion, Raycaster, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export interface TransformControlsEventMap extends Object3DEventMap {
|
|
4
4
|
change: {};
|
|
@@ -60,6 +60,11 @@ export class TransformControls extends Object3D<TransformControlsEventMap> {
|
|
|
60
60
|
RIGHT?: MOUSE | null | undefined;
|
|
61
61
|
};
|
|
62
62
|
|
|
63
|
+
pointerHover(pointer: PointerEvent | null): void;
|
|
64
|
+
pointerDown(pointer: PointerEvent | null): void;
|
|
65
|
+
pointerMove(pointer: PointerEvent | null): void;
|
|
66
|
+
pointerUp(pointer: PointerEvent | null): void;
|
|
67
|
+
|
|
63
68
|
attach(object: Object3D): this;
|
|
64
69
|
detach(): this;
|
|
65
70
|
getMode(): "translate" | "rotate" | "scale";
|
three/examples/jsm/csm/CSM.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, DirectionalLight, Material, Object3D, Vector2, Vector3 } from "
|
|
1
|
+
import { Camera, DirectionalLight, Material, Object3D, Vector2, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export type CSMMode = "uniform" | "logarithmic" | "practical" | "custom";
|
|
4
4
|
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Camera,
|
|
3
|
-
Scene,
|
|
4
|
-
Vector2,
|
|
5
|
-
Vector4,
|
|
6
|
-
WebGLRenderer,
|
|
7
|
-
WebGLRenderTarget,
|
|
8
|
-
WebGLShadowMap,
|
|
9
|
-
} from "../../../src/Three.js";
|
|
1
|
+
import { Camera, Scene, Vector2, Vector4, WebGLRenderer, WebGLRenderTarget, WebGLShadowMap } from "three";
|
|
10
2
|
|
|
11
3
|
export interface OutlineEffectParameters {
|
|
12
4
|
defaultThickness?: number | undefined;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* https://www.openexr.com/documentation/openexrfilelayout.pdf
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { DataTexture, TextureDataType, WebGLRenderer, WebGLRenderTarget } from "
|
|
8
|
+
import { DataTexture, TextureDataType, WebGLRenderer, WebGLRenderTarget } from "three";
|
|
9
9
|
|
|
10
10
|
export const NO_COMPRESSION: 0;
|
|
11
11
|
export const ZIPS_COMPRESSION: 2;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Data3DTexture, DataTexture, WebGLRenderer, WebGLRenderTarget } from "
|
|
1
|
+
import { Data3DTexture, DataTexture, WebGLRenderer, WebGLRenderTarget } from "three";
|
|
2
2
|
|
|
3
3
|
export class KTX2Exporter {
|
|
4
4
|
parse(arg1: Data3DTexture | DataTexture | WebGLRenderer, arg2?: WebGLRenderTarget): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BufferGeometry, Euler, Mesh, Vector3 } from "
|
|
1
|
+
import { BufferGeometry, Euler, Mesh, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export class DecalGeometry extends BufferGeometry {
|
|
4
4
|
constructor(mesh: Mesh, position: Vector3, orientation: Euler, size: Vector3);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BufferGeometry, Vector3 } from "
|
|
1
|
+
import { BufferGeometry, Vector3 } from "three";
|
|
2
2
|
|
|
3
3
|
export class ParametricGeometry extends BufferGeometry {
|
|
4
4
|
constructor(func?: (u: number, v: number, target: Vector3) => void, slices?: number, stacks?: number);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExtrudeGeometry, ExtrudeGeometryOptions, Shape } from "
|
|
1
|
+
import { ExtrudeGeometry, ExtrudeGeometryOptions, Shape } from "three";
|
|
2
2
|
|
|
3
3
|
import { Font } from "../loaders/FontLoader.js";
|
|
4
4
|
|
|
@@ -16,9 +16,17 @@ export interface TextGeometryParameters extends ExtrudeGeometryOptions {
|
|
|
16
16
|
* Thickness to extrude text.
|
|
17
17
|
* Expects a `Float`.
|
|
18
18
|
* @defaultValue `50`
|
|
19
|
+
* @deprecated THREE.TextGeometry: .height is now depreciated. Please use .depth instead
|
|
19
20
|
*/
|
|
20
21
|
height?: number | undefined;
|
|
21
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Thickness to extrude text.
|
|
25
|
+
* Expects a `Float`.
|
|
26
|
+
* @defaultValue `50`
|
|
27
|
+
*/
|
|
28
|
+
depth?: number | undefined;
|
|
29
|
+
|
|
22
30
|
/**
|
|
23
31
|
* @override
|
|
24
32
|
* @defaultValue `12`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Line, PositionalAudio } from "
|
|
1
|
+
import { Line, PositionalAudio } from "three";
|
|
2
2
|
|
|
3
3
|
export class PositionalAudioHelper extends Line {
|
|
4
4
|
constructor(audio: PositionalAudio, range?: number, divisionsInnerAngle?: number, divisionsOuterAngle?: number);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Camera, Group, Object3D, Object3DEventMap, Vector2, WebGLRenderer } from "
|
|
1
|
+
import { Camera, Group, Object3D, Object3DEventMap, Vector2, WebGLRenderer, XRTargetRaySpace } from "three";
|
|
2
2
|
|
|
3
3
|
export interface InteractiveObject3DEventMap extends Object3DEventMap {
|
|
4
4
|
hoveron: { data: Vector2 };
|
|
@@ -14,5 +14,7 @@ export interface InteractiveObject3DEventMap extends Object3DEventMap {
|
|
|
14
14
|
export class InteractiveObject3D extends Object3D<InteractiveObject3DEventMap> {}
|
|
15
15
|
|
|
16
16
|
export class InteractiveGroup extends Group {
|
|
17
|
-
|
|
17
|
+
listenToPointerEvents(renderer: WebGLRenderer, camera: Camera): void;
|
|
18
|
+
|
|
19
|
+
listenToXRControllerEvents(controller: XRTargetRaySpace): void;
|
|
18
20
|
}
|