@types/three 0.160.0 → 0.161.1
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 +1 -1
- three/build/three.d.cts +1 -1
- three/build/three.module.d.ts +1 -1
- three/build/three.module.min.d.ts +1 -1
- three/examples/jsm/Addons.d.ts +269 -265
- 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 +5 -5
- three/examples/jsm/animation/MMDPhysics.d.ts +1 -1
- three/examples/jsm/cameras/CinematicCamera.d.ts +4 -4
- three/examples/jsm/capabilities/WebGPU.d.ts +2 -0
- three/examples/jsm/controls/ArcballControls.d.ts +8 -8
- three/examples/jsm/controls/DragControls.d.ts +1 -1
- 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 +2 -2
- three/examples/jsm/controls/OrbitControls.d.ts +1 -1
- 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 +37 -37
- three/examples/jsm/csm/CSM.d.ts +3 -3
- three/examples/jsm/csm/CSMFrustum.d.ts +1 -1
- three/examples/jsm/csm/CSMHelper.d.ts +2 -2
- 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 +137 -11
- three/examples/jsm/curves/NURBSVolume.d.ts +23 -0
- three/examples/jsm/deprecated/Geometry.d.ts +10 -11
- 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 -1
- 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 +2 -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 +2 -2
- 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 +3 -3
- three/examples/jsm/helpers/LightProbeHelper.d.ts +1 -1
- three/examples/jsm/helpers/OctreeHelper.d.ts +3 -3
- 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 +2 -2
- 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/HTMLMesh.d.ts +1 -1
- three/examples/jsm/interactive/InteractiveGroup.d.ts +1 -1
- three/examples/jsm/interactive/SelectionBox.d.ts +1 -1
- three/examples/jsm/interactive/SelectionHelper.d.ts +1 -1
- three/examples/jsm/libs/fflate.module.d.ts +1 -1
- three/examples/jsm/libs/lil-gui.module.min.d.ts +26 -27
- three/examples/jsm/libs/meshopt_decoder.module.d.ts +1 -1
- three/examples/jsm/libs/stats.module.d.ts +1 -1
- three/examples/jsm/libs/tween.module.d.ts +7 -7
- three/examples/jsm/lights/IESSpotLight.d.ts +1 -1
- three/examples/jsm/lights/LightProbeGenerator.d.ts +1 -1
- three/examples/jsm/lines/Line2.d.ts +3 -3
- three/examples/jsm/lines/LineGeometry.d.ts +2 -2
- three/examples/jsm/lines/LineMaterial.d.ts +1 -1
- three/examples/jsm/lines/LineSegments2.d.ts +3 -3
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +1 -1
- three/examples/jsm/lines/Wireframe.d.ts +3 -3
- three/examples/jsm/lines/WireframeGeometry2.d.ts +2 -2
- 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 +1 -1
- three/examples/jsm/loaders/FBXLoader.d.ts +1 -1
- three/examples/jsm/loaders/FontLoader.d.ts +1 -1
- three/examples/jsm/loaders/GCodeLoader.d.ts +1 -1
- three/examples/jsm/loaders/GLTFLoader.d.ts +9 -8
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +2 -2
- three/examples/jsm/loaders/IESLoader.d.ts +1 -1
- three/examples/jsm/loaders/KMZLoader.d.ts +2 -2
- three/examples/jsm/loaders/KTX2Loader.d.ts +46 -6
- 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 +29 -2
- three/examples/jsm/loaders/LUTCubeLoader.d.ts +37 -2
- 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 +4 -4
- three/examples/jsm/loaders/MaterialXLoader.d.ts +2 -2
- three/examples/jsm/loaders/NRRDLoader.d.ts +2 -2
- three/examples/jsm/loaders/OBJLoader.d.ts +2 -2
- 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 +1 -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/TIFFLoader.d.ts +1 -1
- three/examples/jsm/loaders/TTFLoader.d.ts +1 -1
- three/examples/jsm/loaders/TiltLoader.d.ts +1 -1
- three/examples/jsm/loaders/USDZLoader.d.ts +1 -1
- 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 +2 -3
- three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +13 -0
- 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 +2 -2
- three/examples/jsm/misc/ConvexObjectBreaker.d.ts +1 -1
- three/examples/jsm/misc/GPUComputationRenderer.d.ts +9 -9
- 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 +2 -2
- three/examples/jsm/misc/RollerCoaster.d.ts +1 -1
- three/examples/jsm/misc/TubePainter.d.ts +1 -1
- three/examples/jsm/misc/Volume.d.ts +3 -3
- three/examples/jsm/misc/VolumeSlice.d.ts +2 -2
- three/examples/jsm/modifiers/CurveModifier.d.ts +4 -4
- 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 +261 -196
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +7 -7
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +19 -8
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +12 -6
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +9 -9
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +4 -4
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +4 -2
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +6 -6
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +15 -11
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +2 -2
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +8 -8
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +7 -7
- three/examples/jsm/nodes/accessors/TextureBicubicNode.d.ts +18 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +15 -7
- three/examples/jsm/nodes/accessors/UVNode.d.ts +2 -2
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +3 -3
- three/examples/jsm/nodes/accessors/VertexColorNode.d.ts +12 -0
- three/examples/jsm/nodes/code/CodeNode.d.ts +4 -4
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +3 -3
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +10 -4
- three/examples/jsm/nodes/code/FunctionNode.d.ts +8 -9
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +2 -2
- three/examples/jsm/nodes/core/AssignNode.d.ts +17 -0
- three/examples/jsm/nodes/core/AttributeNode.d.ts +4 -4
- three/examples/jsm/nodes/core/BypassNode.d.ts +8 -2
- three/examples/jsm/nodes/core/CacheNode.d.ts +11 -3
- three/examples/jsm/nodes/core/ConstNode.d.ts +3 -3
- three/examples/jsm/nodes/core/ContextNode.d.ts +11 -3
- three/examples/jsm/nodes/core/IndexNode.d.ts +18 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +4 -4
- three/examples/jsm/nodes/core/LightingModel.d.ts +36 -0
- three/examples/jsm/nodes/core/Node.d.ts +34 -10
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +34 -33
- three/examples/jsm/nodes/core/NodeCache.d.ts +2 -2
- three/examples/jsm/nodes/core/NodeFrame.d.ts +19 -7
- three/examples/jsm/nodes/core/NodeFunction.d.ts +1 -1
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +2 -2
- three/examples/jsm/nodes/core/NodeParser.d.ts +1 -1
- three/examples/jsm/nodes/core/NodeUniform.d.ts +1 -1
- three/examples/jsm/nodes/core/NodeUtils.d.ts +2 -2
- three/examples/jsm/nodes/core/NodeVarying.d.ts +1 -1
- three/examples/jsm/nodes/core/PropertyNode.d.ts +22 -5
- three/examples/jsm/nodes/core/StackNode.d.ts +1 -1
- three/examples/jsm/nodes/core/TempNode.d.ts +3 -3
- three/examples/jsm/nodes/core/UniformNode.d.ts +5 -5
- three/examples/jsm/nodes/core/VarNode.d.ts +11 -5
- three/examples/jsm/nodes/core/VaryingNode.d.ts +8 -2
- three/examples/jsm/nodes/core/constants.d.ts +57 -58
- three/examples/jsm/nodes/display/AfterImageNode.d.ts +25 -0
- three/examples/jsm/nodes/display/AnamorphicNode.d.ts +32 -0
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +21 -11
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +17 -6
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +21 -8
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +2 -2
- three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +28 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +11 -5
- three/examples/jsm/nodes/display/PassNode.d.ts +44 -0
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +8 -2
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +4 -4
- three/examples/jsm/nodes/display/ViewportDepthNode.d.ts +32 -0
- three/examples/jsm/nodes/display/ViewportNode.d.ts +8 -8
- three/examples/jsm/nodes/display/ViewportSharedTextureNode.d.ts +18 -0
- three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +33 -0
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +9 -3
- three/examples/jsm/nodes/fog/FogNode.d.ts +8 -2
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +9 -3
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +10 -3
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +4 -3
- three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts +7 -0
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +4 -3
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +4 -3
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +4 -3
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +2 -2
- three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +7 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +18 -9
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +1 -1
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +2 -2
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +4 -4
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +8 -2
- three/examples/jsm/nodes/lighting/AONode.d.ts +2 -2
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +3 -3
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +2 -2
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +4 -4
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +2 -2
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +22 -15
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +1 -1
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +6 -6
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +3 -3
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +3 -3
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +2 -2
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +2 -2
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +3 -3
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +3 -4
- three/examples/jsm/nodes/materials/Materials.d.ts +9 -17
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +4 -6
- three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +12 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +6 -10
- three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +17 -0
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +4 -5
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +39 -23
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +5 -11
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +4 -14
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +4 -4
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +3 -3
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +3 -3
- three/examples/jsm/nodes/math/CondNode.d.ts +8 -2
- three/examples/jsm/nodes/math/HashNode.d.ts +16 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +65 -59
- three/examples/jsm/nodes/math/MathUtils.d.ts +16 -0
- three/examples/jsm/nodes/math/OperatorNode.d.ts +27 -26
- three/examples/jsm/nodes/math/TriNoise3D.d.ts +12 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +8 -2
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +100 -50
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/DiscardNode.d.ts +16 -0
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/JoinNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +4 -4
- three/examples/jsm/nodes/utils/OscNode.d.ts +6 -6
- three/examples/jsm/nodes/utils/ReflectorNode.d.ts +30 -0
- three/examples/jsm/nodes/utils/RemapNode.d.ts +24 -5
- three/examples/jsm/nodes/utils/RotateNode.d.ts +21 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +9 -3
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +3 -3
- three/examples/jsm/nodes/utils/SplitNode.d.ts +2 -3
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +2 -2
- three/examples/jsm/nodes/utils/TimerNode.d.ts +6 -6
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +10 -4
- three/examples/jsm/objects/GroundedSkybox.d.ts +5 -0
- 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 -3
- three/examples/jsm/objects/Reflector.d.ts +4 -4
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +8 -8
- three/examples/jsm/objects/Refractor.d.ts +5 -5
- 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 -1
- three/examples/jsm/objects/Water2.d.ts +1 -1
- 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 +2 -2
- three/examples/jsm/postprocessing/BloomPass.d.ts +2 -2
- three/examples/jsm/postprocessing/BokehPass.d.ts +2 -2
- three/examples/jsm/postprocessing/ClearPass.d.ts +2 -2
- three/examples/jsm/postprocessing/CubeTexturePass.d.ts +2 -2
- three/examples/jsm/postprocessing/DotScreenPass.d.ts +2 -2
- three/examples/jsm/postprocessing/EffectComposer.d.ts +4 -4
- three/examples/jsm/postprocessing/FilmPass.d.ts +2 -2
- three/examples/jsm/postprocessing/GTAOPass.d.ts +5 -2
- three/examples/jsm/postprocessing/GlitchPass.d.ts +2 -2
- three/examples/jsm/postprocessing/HalftonePass.d.ts +2 -2
- three/examples/jsm/postprocessing/LUTPass.d.ts +2 -2
- three/examples/jsm/postprocessing/MaskPass.d.ts +2 -2
- three/examples/jsm/postprocessing/OutlinePass.d.ts +6 -6
- three/examples/jsm/postprocessing/OutputPass.d.ts +2 -2
- three/examples/jsm/postprocessing/Pass.d.ts +1 -1
- three/examples/jsm/postprocessing/RenderPass.d.ts +2 -2
- three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +4 -4
- three/examples/jsm/postprocessing/SAOPass.d.ts +5 -5
- three/examples/jsm/postprocessing/SMAAPass.d.ts +2 -2
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +2 -2
- three/examples/jsm/postprocessing/SSAOPass.d.ts +4 -4
- three/examples/jsm/postprocessing/SSRPass.d.ts +10 -10
- three/examples/jsm/postprocessing/SavePass.d.ts +2 -2
- three/examples/jsm/postprocessing/ShaderPass.d.ts +2 -2
- three/examples/jsm/postprocessing/TAARenderPass.d.ts +2 -2
- three/examples/jsm/postprocessing/TexturePass.d.ts +2 -2
- three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +2 -2
- 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 +8 -4
- three/examples/jsm/renderers/common/Color4.d.ts +9 -0
- three/examples/jsm/renderers/common/Info.d.ts +8 -2
- three/examples/jsm/renderers/common/PostProcessing.d.ts +11 -0
- three/examples/jsm/renderers/common/Renderer.d.ts +245 -6
- three/examples/jsm/renderers/common/StorageTexture.d.ts +5 -0
- three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +5 -3
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +2 -2
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +7 -7
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +1 -1
- three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts +1 -1
- three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +16 -7
- three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +7 -7
- 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 +2 -2
- 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 +5 -3
- 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/transpiler/GLSLDecoder.d.ts +1 -1
- three/examples/jsm/transpiler/ShaderToyDecoder.d.ts +1 -1
- three/examples/jsm/transpiler/TSLEncoder.d.ts +1 -1
- three/examples/jsm/utils/BufferGeometryUtils.d.ts +3 -13
- three/examples/jsm/utils/CameraUtils.d.ts +1 -1
- three/examples/jsm/utils/GPUStatsPanel.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/TextureUtils.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 +2 -2
- three/examples/jsm/webxr/OculusHandPointerModel.d.ts +3 -3
- three/examples/jsm/webxr/Text2D.d.ts +1 -1
- three/examples/jsm/webxr/VRButton.d.ts +1 -1
- three/examples/jsm/webxr/XRButton.d.ts +1 -1
- 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 +10 -2
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +5 -5
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +3 -3
- three/examples/jsm/webxr/XRPlanes.d.ts +1 -1
- three/index.d.ts +1 -1
- three/package.json +2 -2
- three/src/Three.d.ts +187 -187
- three/src/animation/AnimationAction.d.ts +4 -4
- three/src/animation/AnimationClip.d.ts +4 -4
- three/src/animation/AnimationMixer.d.ts +6 -6
- three/src/animation/AnimationUtils.d.ts +1 -1
- three/src/animation/KeyframeTrack.d.ts +5 -5
- three/src/animation/tracks/BooleanKeyframeTrack.d.ts +1 -1
- three/src/animation/tracks/ColorKeyframeTrack.d.ts +2 -2
- three/src/animation/tracks/NumberKeyframeTrack.d.ts +2 -2
- three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +2 -2
- three/src/animation/tracks/StringKeyframeTrack.d.ts +2 -2
- three/src/animation/tracks/VectorKeyframeTrack.d.ts +2 -2
- three/src/audio/Audio.d.ts +4 -4
- three/src/audio/AudioAnalyser.d.ts +1 -1
- three/src/audio/AudioListener.d.ts +3 -3
- three/src/audio/PositionalAudio.d.ts +2 -2
- three/src/cameras/ArrayCamera.d.ts +1 -1
- three/src/cameras/Camera.d.ts +6 -6
- three/src/cameras/CubeCamera.d.ts +5 -5
- three/src/cameras/OrthographicCamera.d.ts +2 -2
- three/src/cameras/PerspectiveCamera.d.ts +15 -2
- three/src/cameras/StereoCamera.d.ts +3 -3
- three/src/constants.d.ts +75 -76
- three/src/core/BufferAttribute.d.ts +3 -3
- three/src/core/BufferGeometry.d.ts +11 -11
- three/src/core/InstancedBufferAttribute.d.ts +1 -1
- three/src/core/InstancedBufferGeometry.d.ts +1 -2
- three/src/core/InstancedInterleavedBuffer.d.ts +2 -2
- three/src/core/InterleavedBuffer.d.ts +3 -3
- three/src/core/InterleavedBufferAttribute.d.ts +16 -6
- three/src/core/Object3D.d.ts +29 -29
- three/src/core/Raycaster.d.ts +6 -6
- three/src/core/RenderTarget.d.ts +10 -10
- three/src/core/UniformsGroup.d.ts +3 -3
- three/src/extras/ImageUtils.d.ts +5 -5
- three/src/extras/PMREMGenerator.d.ts +5 -5
- three/src/extras/core/Curve.d.ts +11 -11
- three/src/extras/core/CurvePath.d.ts +10 -9
- three/src/extras/core/Interpolations.d.ts +1 -1
- three/src/extras/core/Path.d.ts +3 -3
- three/src/extras/core/Shape.d.ts +3 -3
- three/src/extras/core/ShapePath.d.ts +5 -5
- three/src/extras/curves/ArcCurve.d.ts +2 -2
- three/src/extras/curves/CatmullRomCurve3.d.ts +4 -4
- three/src/extras/curves/CubicBezierCurve.d.ts +3 -3
- three/src/extras/curves/CubicBezierCurve3.d.ts +3 -3
- three/src/extras/curves/Curves.d.ts +10 -10
- three/src/extras/curves/EllipseCurve.d.ts +3 -3
- three/src/extras/curves/LineCurve.d.ts +3 -3
- three/src/extras/curves/LineCurve3.d.ts +3 -3
- three/src/extras/curves/QuadraticBezierCurve.d.ts +3 -3
- three/src/extras/curves/QuadraticBezierCurve3.d.ts +3 -3
- three/src/extras/curves/SplineCurve.d.ts +3 -3
- three/src/geometries/BoxGeometry.d.ts +2 -2
- three/src/geometries/CapsuleGeometry.d.ts +2 -2
- three/src/geometries/CircleGeometry.d.ts +2 -2
- three/src/geometries/ConeGeometry.d.ts +2 -2
- three/src/geometries/CylinderGeometry.d.ts +2 -2
- three/src/geometries/DodecahedronGeometry.d.ts +2 -2
- three/src/geometries/EdgesGeometry.d.ts +2 -2
- three/src/geometries/ExtrudeGeometry.d.ts +6 -6
- three/src/geometries/Geometries.d.ts +21 -21
- three/src/geometries/IcosahedronGeometry.d.ts +2 -2
- three/src/geometries/LatheGeometry.d.ts +3 -3
- three/src/geometries/OctahedronGeometry.d.ts +2 -2
- three/src/geometries/PlaneGeometry.d.ts +2 -2
- three/src/geometries/PolyhedronGeometry.d.ts +2 -2
- three/src/geometries/RingGeometry.d.ts +3 -3
- three/src/geometries/ShapeGeometry.d.ts +3 -3
- three/src/geometries/SphereGeometry.d.ts +2 -2
- three/src/geometries/TetrahedronGeometry.d.ts +2 -2
- three/src/geometries/TorusGeometry.d.ts +2 -2
- three/src/geometries/TorusKnotGeometry.d.ts +2 -2
- three/src/geometries/TubeGeometry.d.ts +4 -4
- three/src/geometries/WireframeGeometry.d.ts +2 -2
- three/src/helpers/ArrowHelper.d.ts +6 -6
- three/src/helpers/AxesHelper.d.ts +3 -3
- three/src/helpers/Box3Helper.d.ts +4 -4
- three/src/helpers/BoxHelper.d.ts +6 -6
- three/src/helpers/CameraHelper.d.ts +5 -5
- three/src/helpers/DirectionalLightHelper.d.ts +6 -6
- three/src/helpers/GridHelper.d.ts +5 -5
- three/src/helpers/HemisphereLightHelper.d.ts +6 -6
- three/src/helpers/PlaneHelper.d.ts +3 -3
- three/src/helpers/PointLightHelper.d.ts +5 -5
- three/src/helpers/PolarGridHelper.d.ts +3 -3
- three/src/helpers/SkeletonHelper.d.ts +6 -6
- three/src/helpers/SpotLightHelper.d.ts +6 -6
- three/src/lights/AmbientLight.d.ts +3 -3
- three/src/lights/DirectionalLight.d.ts +6 -6
- three/src/lights/DirectionalLightShadow.d.ts +2 -2
- three/src/lights/HemisphereLight.d.ts +4 -4
- three/src/lights/Light.d.ts +4 -4
- three/src/lights/LightProbe.d.ts +2 -2
- three/src/lights/LightShadow.d.ts +7 -7
- three/src/lights/PointLight.d.ts +3 -3
- three/src/lights/PointLightShadow.d.ts +3 -3
- three/src/lights/RectAreaLight.d.ts +3 -3
- three/src/lights/SpotLight.d.ts +7 -7
- three/src/lights/SpotLightShadow.d.ts +2 -2
- three/src/loaders/AnimationLoader.d.ts +3 -3
- three/src/loaders/AudioLoader.d.ts +2 -2
- three/src/loaders/BufferGeometryLoader.d.ts +4 -4
- three/src/loaders/CompressedTextureLoader.d.ts +3 -3
- three/src/loaders/CubeTextureLoader.d.ts +3 -3
- three/src/loaders/DataTextureLoader.d.ts +3 -3
- three/src/loaders/FileLoader.d.ts +2 -2
- three/src/loaders/ImageBitmapLoader.d.ts +2 -2
- three/src/loaders/ImageLoader.d.ts +2 -2
- three/src/loaders/Loader.d.ts +1 -1
- three/src/loaders/LoadingManager.d.ts +1 -1
- three/src/loaders/MaterialLoader.d.ts +4 -4
- three/src/loaders/ObjectLoader.d.ts +9 -9
- three/src/loaders/TextureLoader.d.ts +3 -3
- three/src/materials/LineBasicMaterial.d.ts +3 -3
- three/src/materials/LineDashedMaterial.d.ts +1 -1
- three/src/materials/Material.d.ts +13 -11
- three/src/materials/Materials.d.ts +18 -18
- three/src/materials/MeshBasicMaterial.d.ts +4 -4
- three/src/materials/MeshDepthMaterial.d.ts +3 -3
- three/src/materials/MeshDistanceMaterial.d.ts +3 -3
- three/src/materials/MeshLambertMaterial.d.ts +5 -5
- three/src/materials/MeshMatcapMaterial.d.ts +5 -5
- three/src/materials/MeshNormalMaterial.d.ts +4 -4
- three/src/materials/MeshPhongMaterial.d.ts +5 -5
- three/src/materials/MeshPhysicalMaterial.d.ts +4 -4
- three/src/materials/MeshStandardMaterial.d.ts +5 -5
- three/src/materials/MeshToonMaterial.d.ts +5 -5
- three/src/materials/PointsMaterial.d.ts +3 -3
- three/src/materials/RawShaderMaterial.d.ts +2 -2
- three/src/materials/ShaderMaterial.d.ts +18 -10
- three/src/materials/ShadowMaterial.d.ts +2 -2
- three/src/materials/SpriteMaterial.d.ts +3 -3
- three/src/math/Box2.d.ts +1 -1
- three/src/math/Box3.d.ts +7 -7
- three/src/math/Color.d.ts +7 -7
- three/src/math/ColorManagement.d.ts +2 -2
- three/src/math/Cylindrical.d.ts +1 -1
- three/src/math/Euler.d.ts +5 -5
- three/src/math/Frustum.d.ts +8 -8
- three/src/math/Line3.d.ts +2 -2
- three/src/math/MathUtils.d.ts +1 -1
- three/src/math/Matrix3.d.ts +3 -3
- three/src/math/Matrix4.d.ts +5 -5
- three/src/math/Plane.d.ts +6 -6
- three/src/math/Quaternion.d.ts +31 -34
- three/src/math/Ray.d.ts +5 -5
- three/src/math/Sphere.d.ts +4 -4
- three/src/math/Spherical.d.ts +1 -1
- three/src/math/SphericalHarmonics3.d.ts +1 -1
- three/src/math/Triangle.d.ts +7 -24
- three/src/math/Vector2.d.ts +26 -161
- three/src/math/Vector3.d.ts +54 -62
- three/src/math/Vector4.d.ts +27 -22
- three/src/math/interpolants/CubicInterpolant.d.ts +1 -1
- three/src/math/interpolants/DiscreteInterpolant.d.ts +1 -1
- three/src/math/interpolants/LinearInterpolant.d.ts +1 -1
- three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +1 -1
- three/src/objects/BatchedMesh.d.ts +9 -10
- three/src/objects/Bone.d.ts +3 -3
- three/src/objects/Group.d.ts +2 -2
- three/src/objects/InstancedMesh.d.ts +11 -10
- three/src/objects/LOD.d.ts +4 -4
- three/src/objects/Line.d.ts +6 -5
- three/src/objects/LineLoop.d.ts +7 -5
- three/src/objects/LineSegments.d.ts +7 -5
- three/src/objects/Mesh.d.ts +5 -6
- three/src/objects/Points.d.ts +9 -9
- three/src/objects/Skeleton.d.ts +3 -3
- three/src/objects/SkinnedMesh.d.ts +13 -16
- three/src/objects/Sprite.d.ts +6 -6
- three/src/renderers/WebGL1Renderer.d.ts +1 -1
- three/src/renderers/WebGL3DRenderTarget.d.ts +2 -2
- three/src/renderers/WebGLArrayRenderTarget.d.ts +2 -2
- three/src/renderers/WebGLCubeRenderTarget.d.ts +4 -4
- three/src/renderers/WebGLMultipleRenderTargets.d.ts +2 -2
- three/src/renderers/WebGLRenderTarget.d.ts +2 -2
- three/src/renderers/WebGLRenderer.d.ts +34 -34
- three/src/renderers/shaders/ShaderLib.d.ts +1 -1
- three/src/renderers/shaders/UniformsLib.d.ts +3 -3
- three/src/renderers/shaders/UniformsUtils.d.ts +3 -3
- three/src/renderers/webgl/WebGLAttributes.d.ts +10 -10
- three/src/renderers/webgl/WebGLBindingStates.d.ts +8 -8
- three/src/renderers/webgl/WebGLBufferRenderer.d.ts +3 -3
- three/src/renderers/webgl/WebGLClipping.d.ts +4 -4
- three/src/renderers/webgl/WebGLCubeMaps.d.ts +1 -1
- three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +1 -1
- three/src/renderers/webgl/WebGLExtensions.d.ts +1 -1
- three/src/renderers/webgl/WebGLGeometries.d.ts +5 -5
- three/src/renderers/webgl/WebGLInfo.d.ts +1 -1
- three/src/renderers/webgl/WebGLLights.d.ts +2 -2
- three/src/renderers/webgl/WebGLProgram.d.ts +2 -3
- three/src/renderers/webgl/WebGLPrograms.d.ts +18 -16
- three/src/renderers/webgl/WebGLRenderLists.d.ts +8 -8
- three/src/renderers/webgl/WebGLShadowMap.d.ts +7 -7
- three/src/renderers/webgl/WebGLState.d.ts +8 -8
- three/src/renderers/webgl/WebGLTextures.d.ts +6 -6
- three/src/renderers/webgl/WebGLUniforms.d.ts +2 -2
- three/src/renderers/webgl/WebGLUniformsGroups.d.ts +5 -5
- three/src/renderers/webgl/WebGLUtils.d.ts +1 -1
- three/src/renderers/webxr/WebXRController.d.ts +4 -4
- three/src/renderers/webxr/WebXRDepthSensing.d.ts +27 -0
- three/src/renderers/webxr/WebXRManager.d.ts +8 -7
- three/src/scenes/Fog.d.ts +1 -1
- three/src/scenes/FogExp2.d.ts +2 -2
- three/src/scenes/Scene.d.ts +7 -7
- three/src/textures/CanvasTexture.d.ts +5 -5
- three/src/textures/CompressedArrayTexture.d.ts +2 -2
- three/src/textures/CompressedCubeTexture.d.ts +2 -2
- three/src/textures/CompressedTexture.d.ts +6 -6
- three/src/textures/CubeTexture.d.ts +7 -7
- three/src/textures/Data3DTexture.d.ts +3 -3
- three/src/textures/DataArrayTexture.d.ts +4 -4
- three/src/textures/DataTexture.d.ts +7 -7
- three/src/textures/DepthTexture.d.ts +5 -5
- three/src/textures/FramebufferTexture.d.ts +2 -2
- three/src/textures/Source.d.ts +11 -1
- three/src/textures/Texture.d.ts +11 -11
- three/src/textures/VideoTexture.d.ts +5 -5
- three/build/three.d.ts +0 -2
- three/build/three.min.d.ts +0 -2
- three/examples/jsm/objects/GroundProjectedSkybox.d.ts +0 -13
three/src/math/Vector4.d.ts
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Vector } from './Vector2.js';
|
|
1
|
+
import { BufferAttribute } from "../core/BufferAttribute.js";
|
|
2
|
+
import { Matrix4 } from "./Matrix4.js";
|
|
3
|
+
import { QuaternionLike } from "./Quaternion.js";
|
|
5
4
|
|
|
6
5
|
export type Vector4Tuple = [number, number, number, number];
|
|
7
6
|
|
|
7
|
+
export interface Vector4Like {
|
|
8
|
+
readonly x: number;
|
|
9
|
+
readonly y: number;
|
|
10
|
+
readonly z: number;
|
|
11
|
+
readonly w: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
8
14
|
/**
|
|
9
15
|
* 4D vector.
|
|
10
|
-
*
|
|
11
|
-
* ( class Vector4 implements Vector<Vector4> )
|
|
12
16
|
*/
|
|
13
|
-
export class Vector4
|
|
17
|
+
export class Vector4 {
|
|
14
18
|
constructor(x?: number, y?: number, z?: number, w?: number);
|
|
15
19
|
|
|
16
20
|
/**
|
|
@@ -79,34 +83,34 @@ export class Vector4 implements Vector {
|
|
|
79
83
|
/**
|
|
80
84
|
* Copies value of v to this vector.
|
|
81
85
|
*/
|
|
82
|
-
copy(v:
|
|
86
|
+
copy(v: Vector4Like): this;
|
|
83
87
|
|
|
84
88
|
/**
|
|
85
89
|
* Adds v to this vector.
|
|
86
90
|
*/
|
|
87
|
-
add(v:
|
|
91
|
+
add(v: Vector4Like): this;
|
|
88
92
|
|
|
89
93
|
addScalar(scalar: number): this;
|
|
90
94
|
|
|
91
95
|
/**
|
|
92
96
|
* Sets this vector to a + b.
|
|
93
97
|
*/
|
|
94
|
-
addVectors(a:
|
|
98
|
+
addVectors(a: Vector4Like, b: Vector4Like): this;
|
|
95
99
|
|
|
96
|
-
addScaledVector(v:
|
|
100
|
+
addScaledVector(v: Vector4Like, s: number): this;
|
|
97
101
|
/**
|
|
98
102
|
* Subtracts v from this vector.
|
|
99
103
|
*/
|
|
100
|
-
sub(v:
|
|
104
|
+
sub(v: Vector4Like): this;
|
|
101
105
|
|
|
102
106
|
subScalar(s: number): this;
|
|
103
107
|
|
|
104
108
|
/**
|
|
105
109
|
* Sets this vector to a - b.
|
|
106
110
|
*/
|
|
107
|
-
subVectors(a:
|
|
111
|
+
subVectors(a: Vector4Like, b: Vector4Like): this;
|
|
108
112
|
|
|
109
|
-
multiply(v:
|
|
113
|
+
multiply(v: Vector4Like): this;
|
|
110
114
|
|
|
111
115
|
/**
|
|
112
116
|
* Multiplies this vector by scalar s.
|
|
@@ -125,7 +129,7 @@ export class Vector4 implements Vector {
|
|
|
125
129
|
* http://www.euclideanspace.com/maths/geometry/rotations/conversions/quaternionToAngle/index.htm
|
|
126
130
|
* @param q is assumed to be normalized
|
|
127
131
|
*/
|
|
128
|
-
setAxisAngleFromQuaternion(q:
|
|
132
|
+
setAxisAngleFromQuaternion(q: QuaternionLike): this;
|
|
129
133
|
|
|
130
134
|
/**
|
|
131
135
|
* http://www.euclideanspace.com/maths/geometry/rotations/conversions/matrixToAngle/index.htm
|
|
@@ -133,9 +137,9 @@ export class Vector4 implements Vector {
|
|
|
133
137
|
*/
|
|
134
138
|
setAxisAngleFromRotationMatrix(m: Matrix4): this;
|
|
135
139
|
|
|
136
|
-
min(v:
|
|
137
|
-
max(v:
|
|
138
|
-
clamp(min:
|
|
140
|
+
min(v: Vector4Like): this;
|
|
141
|
+
max(v: Vector4Like): this;
|
|
142
|
+
clamp(min: Vector4Like, max: Vector4Like): this;
|
|
139
143
|
clampScalar(min: number, max: number): this;
|
|
140
144
|
floor(): this;
|
|
141
145
|
ceil(): this;
|
|
@@ -150,7 +154,7 @@ export class Vector4 implements Vector {
|
|
|
150
154
|
/**
|
|
151
155
|
* Computes dot product of this vector and v.
|
|
152
156
|
*/
|
|
153
|
-
dot(v:
|
|
157
|
+
dot(v: Vector4Like): number;
|
|
154
158
|
|
|
155
159
|
/**
|
|
156
160
|
* Computes squared length of this vector.
|
|
@@ -173,6 +177,7 @@ export class Vector4 implements Vector {
|
|
|
173
177
|
* Normalizes this vector.
|
|
174
178
|
*/
|
|
175
179
|
normalize(): this;
|
|
180
|
+
|
|
176
181
|
/**
|
|
177
182
|
* Normalizes this vector and multiplies it by l.
|
|
178
183
|
*/
|
|
@@ -181,14 +186,14 @@ export class Vector4 implements Vector {
|
|
|
181
186
|
/**
|
|
182
187
|
* Linearly interpolate between this vector and v with alpha factor.
|
|
183
188
|
*/
|
|
184
|
-
lerp(v:
|
|
189
|
+
lerp(v: Vector4Like, alpha: number): this;
|
|
185
190
|
|
|
186
|
-
lerpVectors(v1:
|
|
191
|
+
lerpVectors(v1: Vector4Like, v2: Vector4Like, alpha: number): this;
|
|
187
192
|
|
|
188
193
|
/**
|
|
189
194
|
* Checks for strict equality of this vector and v.
|
|
190
195
|
*/
|
|
191
|
-
equals(v:
|
|
196
|
+
equals(v: Vector4Like): boolean;
|
|
192
197
|
|
|
193
198
|
/**
|
|
194
199
|
* Sets this vector's x, y, z and w value from the provided array or array-like.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BufferGeometry } from
|
|
3
|
-
import { Material } from
|
|
4
|
-
import { Box3 } from
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
1
|
+
import { Camera } from "../cameras/Camera.js";
|
|
2
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
3
|
+
import { Material } from "../materials/Material.js";
|
|
4
|
+
import { Box3 } from "../math/Box3.js";
|
|
5
|
+
import { Matrix4 } from "../math/Matrix4.js";
|
|
6
|
+
import { Sphere } from "../math/Sphere.js";
|
|
7
|
+
import { Mesh } from "./Mesh.js";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* A special version of {@link Mesh} with multi draw batch rendering support. Use {@link BatchedMesh} if you have to
|
|
@@ -75,7 +75,6 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
|
|
|
75
75
|
isBatchedMesh: true;
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
79
78
|
* @param maxGeometryCount the max number of individual geometries planned to be added.
|
|
80
79
|
* @param maxVertexCount the max number of vertices to be used by all geometries.
|
|
81
80
|
* @param maxIndexCount the max number of indices to be used by all geometries.
|
|
@@ -162,8 +161,8 @@ declare class BatchedMesh extends Mesh<BufferGeometry, Material> {
|
|
|
162
161
|
*/
|
|
163
162
|
deleteGeometry(index: number): this;
|
|
164
163
|
|
|
165
|
-
getBoundingBoxAt(index: number, target: Box3): Box3;
|
|
166
|
-
getBoundingSphereAt(index: number, target: Sphere): Sphere;
|
|
164
|
+
getBoundingBoxAt(index: number, target: Box3): Box3 | null;
|
|
165
|
+
getBoundingSphereAt(index: number, target: Sphere): Sphere | null;
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
export { BatchedMesh };
|
three/src/objects/Bone.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Object3D } from
|
|
1
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A {@link Bone} which is part of a {@link THREE.Skeleton | Skeleton}
|
|
@@ -15,7 +15,7 @@ import { Object3D } from '../core/Object3D.js';
|
|
|
15
15
|
* @see {@link https://threejs.org/docs/index.html#api/en/objects/Bone | Official Documentation}
|
|
16
16
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/objects/Bone.js | Source}
|
|
17
17
|
*/
|
|
18
|
-
export class Bone extends Object3D {
|
|
18
|
+
export class Bone<TEventMap extends Object3DEventMap = Object3DEventMap> extends Object3D<TEventMap> {
|
|
19
19
|
/**
|
|
20
20
|
* Creates a new {@link Bone}.
|
|
21
21
|
*/
|
|
@@ -32,5 +32,5 @@ export class Bone extends Object3D {
|
|
|
32
32
|
* @override
|
|
33
33
|
* @defaultValue `Bone`
|
|
34
34
|
*/
|
|
35
|
-
override readonly type: string |
|
|
35
|
+
override readonly type: string | "Bone";
|
|
36
36
|
}
|
three/src/objects/Group.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Object3D, Object3DEventMap } from
|
|
1
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Its purpose is to make working with groups of objects syntactically clearer.
|
|
@@ -39,5 +39,5 @@ export class Group<TEventMap extends Object3DEventMap = Object3DEventMap> extend
|
|
|
39
39
|
* @override
|
|
40
40
|
* @defaultValue `Group`
|
|
41
41
|
*/
|
|
42
|
-
override readonly type: string |
|
|
42
|
+
override readonly type: string | "Group";
|
|
43
43
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BufferGeometry } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { Color } from
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
2
|
+
import { InstancedBufferAttribute } from "../core/InstancedBufferAttribute.js";
|
|
3
|
+
import { Object3DEventMap } from "../core/Object3D.js";
|
|
4
|
+
import { Material } from "../materials/Material.js";
|
|
5
|
+
import { Box3 } from "../math/Box3.js";
|
|
6
|
+
import { Color } from "../math/Color.js";
|
|
7
|
+
import { Matrix4 } from "../math/Matrix4.js";
|
|
8
|
+
import { Sphere } from "../math/Sphere.js";
|
|
9
|
+
import { Mesh } from "./Mesh.js";
|
|
10
10
|
|
|
11
11
|
export interface InstancedMeshEventMap extends Object3DEventMap {
|
|
12
12
|
dispose: {};
|
|
@@ -28,7 +28,8 @@ export interface InstancedMeshEventMap extends Object3DEventMap {
|
|
|
28
28
|
export class InstancedMesh<
|
|
29
29
|
TGeometry extends BufferGeometry = BufferGeometry,
|
|
30
30
|
TMaterial extends Material | Material[] = Material | Material[],
|
|
31
|
-
|
|
31
|
+
TEventMap extends InstancedMeshEventMap = InstancedMeshEventMap,
|
|
32
|
+
> extends Mesh<TGeometry, TMaterial, TEventMap> {
|
|
32
33
|
/**
|
|
33
34
|
* Create a new instance of {@link InstancedMesh}
|
|
34
35
|
* @param geometry An instance of {@link THREE.BufferGeometry | BufferGeometry}.
|
three/src/objects/LOD.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Camera } from "../cameras/Camera.js";
|
|
2
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Every level is associated with an object, and rendering can be switched between them at the distances specified
|
|
@@ -20,7 +20,7 @@ import { Camera } from '../cameras/Camera.js';
|
|
|
20
20
|
* @see {@link https://threejs.org/docs/index.html#api/en/objects/LOD | Official Documentation}
|
|
21
21
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/objects/LOD.js | Source}
|
|
22
22
|
*/
|
|
23
|
-
export class LOD extends Object3D {
|
|
23
|
+
export class LOD<TEventMap extends Object3DEventMap = Object3DEventMap> extends Object3D<TEventMap> {
|
|
24
24
|
/**
|
|
25
25
|
* Creates a new {@link LOD}.
|
|
26
26
|
*/
|
|
@@ -37,7 +37,7 @@ export class LOD extends Object3D {
|
|
|
37
37
|
* @override
|
|
38
38
|
* @defaultValue `LOD`
|
|
39
39
|
*/
|
|
40
|
-
override readonly type: string |
|
|
40
|
+
override readonly type: string | "LOD";
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* An array of level objects
|
three/src/objects/Line.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Object3D } from
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
2
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
3
|
+
import { Material } from "../materials/Material.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* A continuous line.
|
|
@@ -27,7 +27,8 @@ import { BufferGeometry } from '../core/BufferGeometry.js';
|
|
|
27
27
|
export class Line<
|
|
28
28
|
TGeometry extends BufferGeometry = BufferGeometry,
|
|
29
29
|
TMaterial extends Material | Material[] = Material | Material[],
|
|
30
|
-
|
|
30
|
+
TEventMap extends Object3DEventMap = Object3DEventMap,
|
|
31
|
+
> extends Object3D<TEventMap> {
|
|
31
32
|
/**
|
|
32
33
|
* Create a new instance of {@link Line}
|
|
33
34
|
* @param geometry Vertices representing the {@link Line} segment(s). Default {@link THREE.BufferGeometry | `new THREE.BufferGeometry()`}.
|
|
@@ -46,7 +47,7 @@ export class Line<
|
|
|
46
47
|
* @override
|
|
47
48
|
* @defaultValue `Line`
|
|
48
49
|
*/
|
|
49
|
-
override readonly type: string |
|
|
50
|
+
override readonly type: string | "Line";
|
|
50
51
|
|
|
51
52
|
/**
|
|
52
53
|
* Vertices representing the {@link Line} segment(s).
|
three/src/objects/LineLoop.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
2
|
+
import { Object3DEventMap } from "../core/Object3D.js";
|
|
3
|
+
import { Material } from "../materials/Material.js";
|
|
4
|
+
import { Line } from "./Line.js";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* A continuous line that connects back to the start.
|
|
@@ -15,7 +16,8 @@ import { BufferGeometry } from '../core/BufferGeometry.js';
|
|
|
15
16
|
export class LineLoop<
|
|
16
17
|
TGeometry extends BufferGeometry = BufferGeometry,
|
|
17
18
|
TMaterial extends Material | Material[] = Material | Material[],
|
|
18
|
-
|
|
19
|
+
TEventMap extends Object3DEventMap = Object3DEventMap,
|
|
20
|
+
> extends Line<TGeometry, TMaterial, TEventMap> {
|
|
19
21
|
/**
|
|
20
22
|
* Create a new instance of {@link LineLoop}
|
|
21
23
|
* @param geometry List of vertices representing points on the line loop. Default {@link THREE.BufferGeometry | `new THREE.BufferGeometry()`}.
|
|
@@ -34,5 +36,5 @@ export class LineLoop<
|
|
|
34
36
|
* @override
|
|
35
37
|
* @defaultValue `LineLoop`
|
|
36
38
|
*/
|
|
37
|
-
override readonly type: string |
|
|
39
|
+
override readonly type: string | "LineLoop";
|
|
38
40
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
2
|
+
import { Object3DEventMap } from "../core/Object3D.js";
|
|
3
|
+
import { Material } from "../materials/Material.js";
|
|
4
|
+
import { Line } from "./Line.js";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* A series of lines drawn between pairs of vertices.
|
|
@@ -14,7 +15,8 @@ import { BufferGeometry } from '../core/BufferGeometry.js';
|
|
|
14
15
|
export class LineSegments<
|
|
15
16
|
TGeometry extends BufferGeometry = BufferGeometry,
|
|
16
17
|
TMaterial extends Material | Material[] = Material | Material[],
|
|
17
|
-
|
|
18
|
+
TEventMap extends Object3DEventMap = Object3DEventMap,
|
|
19
|
+
> extends Line<TGeometry, TMaterial, TEventMap> {
|
|
18
20
|
/**
|
|
19
21
|
* Create a new instance of {@link LineSegments}
|
|
20
22
|
* @param geometry Pair(s) of vertices representing each line segment(s). Default {@link THREE.BufferGeometry | `new THREE.BufferGeometry()`}.
|
|
@@ -35,5 +37,5 @@ export class LineSegments<
|
|
|
35
37
|
* @override
|
|
36
38
|
* @defaultValue `LineSegments`
|
|
37
39
|
*/
|
|
38
|
-
override readonly type: string |
|
|
40
|
+
override readonly type: string | "LineSegments";
|
|
39
41
|
}
|
three/src/objects/Mesh.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Object3D, Object3DEventMap } from
|
|
3
|
-
import {
|
|
4
|
-
import { Vector3 } from
|
|
1
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
2
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
3
|
+
import { Material } from "../materials/Material.js";
|
|
4
|
+
import { Vector3 } from "../math/Vector3.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Class representing triangular {@link https://en.wikipedia.org/wiki/Polygon_mesh | polygon mesh} based objects.
|
|
@@ -42,7 +42,7 @@ export class Mesh<
|
|
|
42
42
|
* @override
|
|
43
43
|
* @defaultValue `Mesh`
|
|
44
44
|
*/
|
|
45
|
-
override readonly type: string |
|
|
45
|
+
override readonly type: string | "Mesh";
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* An instance of {@link THREE.BufferGeometry | BufferGeometry} (or derived classes), defining the object's structure.
|
|
@@ -65,7 +65,6 @@ export class Mesh<
|
|
|
65
65
|
/**
|
|
66
66
|
* A dictionary of morphTargets based on the `morphTarget.name` property.
|
|
67
67
|
* @defaultValue `undefined`, _but rebuilt by {@link updateMorphTargets | .updateMorphTargets()}._
|
|
68
|
-
*
|
|
69
68
|
*/
|
|
70
69
|
morphTargetDictionary?: { [key: string]: number } | undefined;
|
|
71
70
|
|
three/src/objects/Points.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { BufferAttribute } from "../core/BufferAttribute.js";
|
|
2
|
+
import { BufferGeometry, NormalOrGLBufferAttributes } from "../core/BufferGeometry.js";
|
|
3
|
+
import { GLBufferAttribute } from "../core/GLBufferAttribute.js";
|
|
4
|
+
import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js";
|
|
5
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
6
|
+
import { Material } from "../materials/Material.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A class for displaying {@link Points}
|
|
@@ -15,7 +15,8 @@ import { GLBufferAttribute } from '../core/GLBufferAttribute.js';
|
|
|
15
15
|
export class Points<
|
|
16
16
|
TGeometry extends BufferGeometry<NormalOrGLBufferAttributes> = BufferGeometry,
|
|
17
17
|
TMaterial extends Material | Material[] = Material | Material[],
|
|
18
|
-
|
|
18
|
+
TEventMap extends Object3DEventMap = Object3DEventMap,
|
|
19
|
+
> extends Object3D<TEventMap> {
|
|
19
20
|
/**
|
|
20
21
|
* Create a new instance of {@link Points}
|
|
21
22
|
* @param geometry An instance of {@link THREE.BufferGeometry | BufferGeometry}. Default {@link THREE.BufferGeometry | `new THREE.BufferGeometry()`}.
|
|
@@ -34,7 +35,7 @@ export class Points<
|
|
|
34
35
|
* @override
|
|
35
36
|
* @defaultValue `Points`
|
|
36
37
|
*/
|
|
37
|
-
override readonly type: string |
|
|
38
|
+
override readonly type: string | "Points";
|
|
38
39
|
|
|
39
40
|
/**
|
|
40
41
|
* An array of weights typically from `0-1` that specify how much of the morph is applied.
|
|
@@ -45,7 +46,6 @@ export class Points<
|
|
|
45
46
|
/**
|
|
46
47
|
* A dictionary of morphTargets based on the `morphTarget.name` property.
|
|
47
48
|
* @defaultValue `undefined`, _but rebuilt by {@link updateMorphTargets | .updateMorphTargets()}._
|
|
48
|
-
*
|
|
49
49
|
*/
|
|
50
50
|
morphTargetDictionary?: { [key: string]: number } | undefined;
|
|
51
51
|
|
three/src/objects/Skeleton.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Matrix4 } from "../math/Matrix4.js";
|
|
2
|
+
import { DataTexture } from "../textures/DataTexture.js";
|
|
3
|
+
import { Bone } from "./Bone.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Use an array of {@link Bone | bones} to create a {@link Skeleton} that can be used by a {@link THREE.SkinnedMesh | SkinnedMesh}.
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
1
|
+
import { BindMode } from "../constants.js";
|
|
2
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
3
|
+
import { Object3DEventMap } from "../core/Object3D.js";
|
|
4
|
+
import { Material } from "../materials/Material.js";
|
|
5
|
+
import { Box3 } from "../math/Box3.js";
|
|
6
|
+
import { Matrix4 } from "../math/Matrix4.js";
|
|
7
|
+
import { Sphere } from "../math/Sphere.js";
|
|
8
|
+
import { Vector3 } from "../math/Vector3.js";
|
|
9
|
+
import { Mesh } from "./Mesh.js";
|
|
10
|
+
import { Skeleton } from "./Skeleton.js";
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* A mesh that has a {@link THREE.Skeleton | Skeleton} with {@link Bone | bones} that can then be used to animate the vertices of the geometry.
|
|
@@ -50,7 +51,8 @@ import { BindMode } from '../constants.js';
|
|
|
50
51
|
export class SkinnedMesh<
|
|
51
52
|
TGeometry extends BufferGeometry = BufferGeometry,
|
|
52
53
|
TMaterial extends Material | Material[] = Material | Material[],
|
|
53
|
-
|
|
54
|
+
TEventMap extends Object3DEventMap = Object3DEventMap,
|
|
55
|
+
> extends Mesh<TGeometry, TMaterial, TEventMap> {
|
|
54
56
|
/**
|
|
55
57
|
* Create a new instance of {@link SkinnedMesh}
|
|
56
58
|
* @param geometry An instance of {@link THREE.BufferGeometry | BufferGeometry}. Default {@link THREE.BufferGeometry | `new THREE.BufferGeometry()`}.
|
|
@@ -69,7 +71,7 @@ export class SkinnedMesh<
|
|
|
69
71
|
* @override
|
|
70
72
|
* @defaultValue `SkinnedMesh`
|
|
71
73
|
*/
|
|
72
|
-
override readonly type: string |
|
|
74
|
+
override readonly type: string | "SkinnedMesh";
|
|
73
75
|
|
|
74
76
|
/**
|
|
75
77
|
* Either {@link AttachedBindMode} or {@link DetachedBindMode}. {@link AttachedBindMode} means the skinned mesh
|
|
@@ -148,9 +150,4 @@ export class SkinnedMesh<
|
|
|
148
150
|
* @param vector
|
|
149
151
|
*/
|
|
150
152
|
applyBoneTransform(index: number, vector: Vector3): Vector3;
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* @deprecated {@link THREE.SkinnedMesh}: {@link boneTransform | .boneTransform()} was renamed to {@link applyBoneTransform | .applyBoneTransform()} in **r151**.
|
|
154
|
-
*/
|
|
155
|
-
boneTransform(index: number, target: Vector3): Vector3;
|
|
156
153
|
}
|
three/src/objects/Sprite.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Object3D } from
|
|
3
|
-
import { SpriteMaterial } from
|
|
4
|
-
import {
|
|
1
|
+
import { BufferGeometry } from "../core/BufferGeometry.js";
|
|
2
|
+
import { Object3D, Object3DEventMap } from "../core/Object3D.js";
|
|
3
|
+
import { SpriteMaterial } from "../materials/Materials.js";
|
|
4
|
+
import { Vector2 } from "../math/Vector2.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A {@link Sprite} is a plane that always faces towards the camera, generally with a partially transparent texture applied.
|
|
@@ -18,7 +18,7 @@ import { BufferGeometry } from '../core/BufferGeometry.js';
|
|
|
18
18
|
* @see {@link https://threejs.org/docs/index.html#api/en/objects/Sprite | Official Documentation}
|
|
19
19
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/objects/Sprite.js | Source}
|
|
20
20
|
*/
|
|
21
|
-
export class Sprite extends Object3D {
|
|
21
|
+
export class Sprite<TEventMap extends Object3DEventMap = Object3DEventMap> extends Object3D<TEventMap> {
|
|
22
22
|
/**
|
|
23
23
|
* Creates a new Sprite.
|
|
24
24
|
* @param material An instance of {@link THREE.SpriteMaterial | SpriteMaterial}. Default {@link THREE.SpriteMaterial | `new SpriteMaterial()`}, _with white color_.
|
|
@@ -36,7 +36,7 @@ export class Sprite extends Object3D {
|
|
|
36
36
|
* @override
|
|
37
37
|
* @defaultValue `Sprite`
|
|
38
38
|
*/
|
|
39
|
-
override readonly type: string |
|
|
39
|
+
override readonly type: string | "Sprite";
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* Whether the object gets rendered into shadow map.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Data3DTexture } from
|
|
2
|
-
import { WebGLRenderTarget, WebGLRenderTargetOptions } from
|
|
1
|
+
import { Data3DTexture } from "../textures/Data3DTexture.js";
|
|
2
|
+
import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Represents a three-dimensional render target.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DataArrayTexture } from
|
|
2
|
-
import { WebGLRenderTarget, WebGLRenderTargetOptions } from
|
|
1
|
+
import { DataArrayTexture } from "../textures/DataArrayTexture.js";
|
|
2
|
+
import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* This type of render target represents an array of textures.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { CubeTexture } from "../textures/CubeTexture.js";
|
|
2
|
+
import { Texture } from "../textures/Texture.js";
|
|
3
|
+
import { WebGLRenderer } from "./WebGLRenderer.js";
|
|
4
|
+
import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
|
|
5
5
|
|
|
6
6
|
export class WebGLCubeRenderTarget extends WebGLRenderTarget {
|
|
7
7
|
constructor(size?: number, options?: WebGLRenderTargetOptions);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Texture } from
|
|
2
|
-
import { WebGLRenderTarget, WebGLRenderTargetOptions } from
|
|
1
|
+
import { Texture } from "../textures/Texture.js";
|
|
2
|
+
import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js";
|
|
3
3
|
|
|
4
4
|
export class WebGLMultipleRenderTargets extends WebGLRenderTarget<Texture[]> {
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { RenderTarget, RenderTargetOptions } from "../core/RenderTarget.js";
|
|
2
|
+
import { Texture } from "../textures/Texture.js";
|
|
3
3
|
|
|
4
4
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
5
5
|
export interface WebGLRenderTargetOptions extends RenderTargetOptions {}
|