@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/core/Object3D.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Matrix3 } from
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { EventDispatcher } from
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
1
|
+
import { AnimationClip } from "../animation/AnimationClip.js";
|
|
2
|
+
import { Camera } from "../cameras/Camera.js";
|
|
3
|
+
import { Material } from "../materials/Material.js";
|
|
4
|
+
import { Euler } from "../math/Euler.js";
|
|
5
|
+
import { Matrix3 } from "../math/Matrix3.js";
|
|
6
|
+
import { Matrix4 } from "../math/Matrix4.js";
|
|
7
|
+
import { Quaternion } from "../math/Quaternion.js";
|
|
8
|
+
import { Vector3 } from "../math/Vector3.js";
|
|
9
|
+
import { Group } from "../objects/Group.js";
|
|
10
|
+
import { WebGLRenderer } from "../renderers/WebGLRenderer.js";
|
|
11
|
+
import { Scene } from "../scenes/Scene.js";
|
|
12
|
+
import { BufferGeometry } from "./BufferGeometry.js";
|
|
13
|
+
import { EventDispatcher } from "./EventDispatcher.js";
|
|
14
|
+
import { Layers } from "./Layers.js";
|
|
15
|
+
import { Intersection, Raycaster } from "./Raycaster.js";
|
|
16
16
|
|
|
17
17
|
export interface Object3DEventMap {
|
|
18
18
|
added: {};
|
|
@@ -42,7 +42,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
42
42
|
/**
|
|
43
43
|
* Unique number for this {@link Object3D} instance.
|
|
44
44
|
* @remarks Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
|
|
45
|
-
*
|
|
45
|
+
* Expects a `Integer`
|
|
46
46
|
*/
|
|
47
47
|
readonly id: number;
|
|
48
48
|
|
|
@@ -62,10 +62,10 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
62
62
|
/**
|
|
63
63
|
* A Read-only _string_ to check `this` object type.
|
|
64
64
|
* @remarks This can be used to find a specific type of Object3D in a scene.
|
|
65
|
-
*
|
|
65
|
+
* Sub-classes will update this value.
|
|
66
66
|
* @defaultValue `Object3D`
|
|
67
67
|
*/
|
|
68
|
-
readonly type: string |
|
|
68
|
+
readonly type: string | "Object3D";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* Object's parent in the {@link https://en.wikipedia.org/wiki/Scene_graph | scene graph}.
|
|
@@ -158,7 +158,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
158
158
|
/**
|
|
159
159
|
* The layer membership of the object.
|
|
160
160
|
* @remarks The object is only visible if it has at least one layer in common with the {@link THREE.Object3DCamera | Camera} in use.
|
|
161
|
-
*
|
|
161
|
+
* This property can also be used to filter out unwanted objects in ray-intersection tests when using {@link THREE.Raycaster | Raycaster}.
|
|
162
162
|
* @defaultValue `new THREE.Layers()`
|
|
163
163
|
*/
|
|
164
164
|
layers: Layers;
|
|
@@ -192,7 +192,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
192
192
|
* This value allows the default rendering order of {@link https://en.wikipedia.org/wiki/Scene_graph | scene graph}
|
|
193
193
|
* objects to be overridden although opaque and transparent objects remain sorted independently.
|
|
194
194
|
* @remarks When this property is set for an instance of {@link Group | Group}, all descendants objects will be sorted and rendered together.
|
|
195
|
-
*
|
|
195
|
+
* Sorting is from lowest to highest renderOrder.
|
|
196
196
|
* @defaultValue `0`
|
|
197
197
|
*/
|
|
198
198
|
renderOrder: number;
|
|
@@ -213,7 +213,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
213
213
|
/**
|
|
214
214
|
* Custom depth material to be used when rendering to the depth map.
|
|
215
215
|
* @remarks Can only be used in context of meshes.
|
|
216
|
-
*
|
|
216
|
+
* When shadow-casting with a {@link THREE.DirectionalLight | DirectionalLight} or {@link THREE.SpotLight | SpotLight},
|
|
217
217
|
* if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.
|
|
218
218
|
* @defaultValue `undefined`
|
|
219
219
|
*/
|
|
@@ -229,7 +229,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
229
229
|
* An optional callback that is executed immediately before a 3D object is rendered to a shadow map.
|
|
230
230
|
* @remarks This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
|
|
231
231
|
* depthMaterial, group.
|
|
232
|
-
*
|
|
232
|
+
* Please notice that this callback is only executed for `renderable` 3D objects. Meaning 3D objects which
|
|
233
233
|
* define their visual appearance with geometries and materials like instances of {@link Mesh}, {@link Line},
|
|
234
234
|
* {@link Points} or {@link Sprite}. Instances of {@link Object3D}, {@link Group} or {@link Bone} are not renderable
|
|
235
235
|
* and thus this callback is not executed for such objects.
|
|
@@ -247,7 +247,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
247
247
|
* An optional callback that is executed immediately after a 3D object is rendered to a shadow map.
|
|
248
248
|
* @remarks This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
|
|
249
249
|
* depthMaterial, group.
|
|
250
|
-
*
|
|
250
|
+
* Please notice that this callback is only executed for `renderable` 3D objects. Meaning 3D objects which
|
|
251
251
|
* define their visual appearance with geometries and materials like instances of {@link Mesh}, {@link Line},
|
|
252
252
|
* {@link Points} or {@link Sprite}. Instances of {@link Object3D}, {@link Group} or {@link Bone} are not renderable
|
|
253
253
|
* and thus this callback is not executed for such objects.
|
|
@@ -264,7 +264,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
264
264
|
/**
|
|
265
265
|
* An optional callback that is executed immediately before a 3D object is rendered.
|
|
266
266
|
* @remarks This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
|
|
267
|
-
*
|
|
267
|
+
* Please notice that this callback is only executed for `renderable` 3D objects. Meaning 3D objects which
|
|
268
268
|
* define their visual appearance with geometries and materials like instances of {@link Mesh}, {@link Line},
|
|
269
269
|
* {@link Points} or {@link Sprite}. Instances of {@link Object3D}, {@link Group} or {@link Bone} are not renderable
|
|
270
270
|
* and thus this callback is not executed for such objects.
|
|
@@ -281,7 +281,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
281
281
|
/**
|
|
282
282
|
* An optional callback that is executed immediately after a 3D object is rendered.
|
|
283
283
|
* @remarks This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
|
|
284
|
-
*
|
|
284
|
+
* Please notice that this callback is only executed for `renderable` 3D objects. Meaning 3D objects which
|
|
285
285
|
* define their visual appearance with geometries and materials like instances of {@link Mesh}, {@link Line},
|
|
286
286
|
* {@link Points} or {@link Sprite}. Instances of {@link Object3D}, {@link Group} or {@link Bone} are not renderable
|
|
287
287
|
* and thus this callback is not executed for such objects.
|
|
@@ -363,7 +363,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
363
363
|
/**
|
|
364
364
|
* Rotate an object along an axis in world space.
|
|
365
365
|
* @remarks The axis is assumed to be normalized
|
|
366
|
-
*
|
|
366
|
+
* Method Assumes no rotated parent.
|
|
367
367
|
* @param axis A normalized vector in world space.
|
|
368
368
|
* @param angle The angle in radians. Expects a `Float`
|
|
369
369
|
*/
|
|
@@ -443,7 +443,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
443
443
|
/**
|
|
444
444
|
* Adds another {@link Object3D} as child of this {@link Object3D}.
|
|
445
445
|
* @remarks An arbitrary number of objects may be added
|
|
446
|
-
*
|
|
446
|
+
* Any current parent on an {@link object} passed in here will be removed, since an {@link Object3D} can have at most one parent.
|
|
447
447
|
* @see {@link attach}
|
|
448
448
|
* @see {@link THREE.Group | Group} for info on manually grouping objects.
|
|
449
449
|
* @param object
|
|
@@ -487,7 +487,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
487
487
|
/**
|
|
488
488
|
* Searches through an object and its children, starting with the object itself, and returns the first with a matching name.
|
|
489
489
|
* @remarks Note that for most objects the name is an empty string by default
|
|
490
|
-
*
|
|
490
|
+
* You will have to set it manually to make use of this method.
|
|
491
491
|
* @param name String to match to the children's Object3D.name property.
|
|
492
492
|
*/
|
|
493
493
|
getObjectByName(name: string): Object3D | undefined;
|
|
@@ -555,7 +555,7 @@ export class Object3D<TEventMap extends Object3DEventMap = Object3DEventMap> ext
|
|
|
555
555
|
/**
|
|
556
556
|
* Like traverse, but the callback will only be executed for visible objects
|
|
557
557
|
* @remarks Descendants of invisible objects are not traversed.
|
|
558
|
-
*
|
|
558
|
+
* Note: Modifying the scene graph inside the callback is discouraged.
|
|
559
559
|
* @param callback A function with as first argument an {@link Object3D} object.
|
|
560
560
|
*/
|
|
561
561
|
traverseVisible(callback: (object: Object3D) => any): void;
|
three/src/core/Raycaster.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Vector2 } from
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
1
|
+
import { Camera } from "../cameras/Camera.js";
|
|
2
|
+
import { Ray } from "../math/Ray.js";
|
|
3
|
+
import { Vector2 } from "../math/Vector2.js";
|
|
4
|
+
import { Vector3 } from "../math/Vector3.js";
|
|
5
|
+
import { Layers } from "./Layers.js";
|
|
6
|
+
import { Object3D } from "./Object3D.js";
|
|
7
7
|
|
|
8
8
|
export interface Face {
|
|
9
9
|
a: number;
|
three/src/core/RenderTarget.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { Vector4 } from '../math/Vector4.js';
|
|
2
|
-
import { Texture } from '../textures/Texture.js';
|
|
3
|
-
import { DepthTexture } from '../textures/DepthTexture.js';
|
|
4
|
-
import { EventDispatcher } from './EventDispatcher.js';
|
|
5
1
|
import {
|
|
6
|
-
Wrapping,
|
|
7
|
-
TextureDataType,
|
|
8
|
-
TextureEncoding,
|
|
9
|
-
MinificationTextureFilter,
|
|
10
|
-
MagnificationTextureFilter,
|
|
11
2
|
ColorSpace,
|
|
3
|
+
MagnificationTextureFilter,
|
|
4
|
+
MinificationTextureFilter,
|
|
12
5
|
PixelFormatGPU,
|
|
13
|
-
|
|
6
|
+
TextureDataType,
|
|
7
|
+
TextureEncoding,
|
|
8
|
+
Wrapping,
|
|
9
|
+
} from "../constants.js";
|
|
10
|
+
import { Vector4 } from "../math/Vector4.js";
|
|
11
|
+
import { DepthTexture } from "../textures/DepthTexture.js";
|
|
12
|
+
import { Texture } from "../textures/Texture.js";
|
|
13
|
+
import { EventDispatcher } from "./EventDispatcher.js";
|
|
14
14
|
|
|
15
15
|
export interface RenderTargetOptions {
|
|
16
16
|
wrapS?: Wrapping | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Usage } from "../constants.js";
|
|
2
|
+
import { EventDispatcher } from "./EventDispatcher.js";
|
|
3
|
+
import { Uniform } from "./Uniform.js";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @see Example: {@link https://threejs.org/examples/#webgl2_ubo | WebGL2 / UBO}
|
three/src/extras/ImageUtils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Mapping } from
|
|
2
|
-
import { Texture } from
|
|
1
|
+
import { Mapping } from "../constants.js";
|
|
2
|
+
import { Texture } from "../textures/Texture.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A class containing utility functions for images.
|
|
@@ -26,8 +26,8 @@ export namespace ImageUtils {
|
|
|
26
26
|
* @param image
|
|
27
27
|
*/
|
|
28
28
|
function sRGBToLinear(image: ImageData): {
|
|
29
|
-
data: ImageData[
|
|
30
|
-
width: ImageData[
|
|
31
|
-
height: ImageData[
|
|
29
|
+
data: ImageData["data"];
|
|
30
|
+
width: ImageData["width"];
|
|
31
|
+
height: ImageData["height"];
|
|
32
32
|
};
|
|
33
33
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { WebGLRenderer } from
|
|
2
|
-
import { WebGLRenderTarget } from
|
|
3
|
-
import {
|
|
4
|
-
import { CubeTexture } from
|
|
5
|
-
import {
|
|
1
|
+
import { WebGLRenderer } from "../renderers/WebGLRenderer.js";
|
|
2
|
+
import { WebGLRenderTarget } from "../renderers/WebGLRenderTarget.js";
|
|
3
|
+
import { Scene } from "../scenes/Scene.js";
|
|
4
|
+
import { CubeTexture } from "../textures/CubeTexture.js";
|
|
5
|
+
import { Texture } from "../textures/Texture.js";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* This class generates a Prefiltered, Mipmapped Radiance Environment Map (PMREM) from a cubeMap environment texture.
|
three/src/extras/core/Curve.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Vector3 } from
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* An abstract base class for creating a {@link Curve} object that contains methods for interpolation
|
|
@@ -25,7 +25,7 @@ import { Vector3 } from '../../math/Vector3.js';
|
|
|
25
25
|
* @see {@link https://threejs.org/docs/index.html#api/en/extras/core/Curve | Official Documentation}
|
|
26
26
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/extras/core/Curve.js | Source}
|
|
27
27
|
*/
|
|
28
|
-
export abstract class Curve<
|
|
28
|
+
export abstract class Curve<TVector extends Vector2 | Vector3> {
|
|
29
29
|
protected constructor();
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -33,7 +33,7 @@ export abstract class Curve<T extends Vector> {
|
|
|
33
33
|
* @remarks Sub-classes will update this value.
|
|
34
34
|
* @defaultValue `Curve`
|
|
35
35
|
*/
|
|
36
|
-
readonly type: string |
|
|
36
|
+
readonly type: string | "Curve";
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* This value determines the amount of divisions when calculating the cumulative segment lengths of a {@link Curve}
|
|
@@ -49,26 +49,26 @@ export abstract class Curve<T extends Vector> {
|
|
|
49
49
|
* @param t A position on the curve. Must be in the range `[ 0, 1 ]`. Expects a `Float`
|
|
50
50
|
* @param optionalTarget If specified, the result will be copied into this Vector, otherwise a new Vector will be created. Default `new T`.
|
|
51
51
|
*/
|
|
52
|
-
getPoint(t: number, optionalTarget?:
|
|
52
|
+
getPoint(t: number, optionalTarget?: TVector): TVector;
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* Returns a vector for a given position on the {@link Curve} according to the arc length.
|
|
56
56
|
* @param u A position on the {@link Curve} according to the arc length. Must be in the range `[ 0, 1 ]`. Expects a `Float`
|
|
57
57
|
* @param optionalTarget If specified, the result will be copied into this Vector, otherwise a new Vector will be created. Default `new T`.
|
|
58
58
|
*/
|
|
59
|
-
getPointAt(u: number, optionalTarget?:
|
|
59
|
+
getPointAt(u: number, optionalTarget?: TVector): TVector;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* Returns a set of divisions `+1` points using {@link .getPoint | getPoint(t)}.
|
|
63
63
|
* @param divisions Number of pieces to divide the {@link Curve} into. Expects a `Integer`. Default `5`
|
|
64
64
|
*/
|
|
65
|
-
getPoints(divisions?: number):
|
|
65
|
+
getPoints(divisions?: number): TVector[];
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
68
|
* Returns a set of divisions `+1` equi-spaced points using {@link .getPointAt | getPointAt(u)}.
|
|
69
69
|
* @param divisions Number of pieces to divide the {@link Curve} into. Expects a `Integer`. Default `5`
|
|
70
70
|
*/
|
|
71
|
-
getSpacedPoints(divisions?: number):
|
|
71
|
+
getSpacedPoints(divisions?: number): TVector[];
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* Get total {@link Curve} arc length.
|
|
@@ -107,14 +107,14 @@ export abstract class Curve<T extends Vector> {
|
|
|
107
107
|
* @param t A position on the curve. Must be in the range `[ 0, 1 ]`. Expects a `Float`
|
|
108
108
|
* @param optionalTarget If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
|
|
109
109
|
*/
|
|
110
|
-
getTangent(t: number, optionalTarget?:
|
|
110
|
+
getTangent(t: number, optionalTarget?: TVector): TVector;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
113
|
* Returns tangent at a point which is equidistant to the ends of the {@link Curve} from the point given in {@link .getTangent}.
|
|
114
114
|
* @param u A position on the {@link Curve} according to the arc length. Must be in the range `[ 0, 1 ]`. Expects a `Float`
|
|
115
115
|
* @param optionalTarget If specified, the result will be copied into this Vector, otherwise a new Vector will be created.
|
|
116
116
|
*/
|
|
117
|
-
getTangentAt(u: number, optionalTarget?:
|
|
117
|
+
getTangentAt(u: number, optionalTarget?: TVector): TVector;
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
120
|
* Generates the Frenet Frames
|
|
@@ -141,7 +141,7 @@ export abstract class Curve<T extends Vector> {
|
|
|
141
141
|
* Copies another {@link Curve} object to this instance.
|
|
142
142
|
* @param source
|
|
143
143
|
*/
|
|
144
|
-
copy(source: Curve<
|
|
144
|
+
copy(source: Curve<TVector>): this;
|
|
145
145
|
|
|
146
146
|
/**
|
|
147
147
|
* Returns a JSON object representation of this instance.
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
3
|
+
import { Curve } from "./Curve.js";
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* Curved Path - a curve path is simply a array of connected curves, but retains the api of a curve.
|
|
@@ -8,7 +9,7 @@ import { Vector } from '../../math/Vector2.js';
|
|
|
8
9
|
* @see {@link https://threejs.org/docs/index.html#api/en/extras/core/CurvePath | Official Documentation}
|
|
9
10
|
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/extras/core/CurvePath.js | Source}
|
|
10
11
|
*/
|
|
11
|
-
export class CurvePath<
|
|
12
|
+
export class CurvePath<TVector extends Vector2 | Vector3> extends Curve<TVector> {
|
|
12
13
|
/**
|
|
13
14
|
* The constructor take no parameters.
|
|
14
15
|
*/
|
|
@@ -19,13 +20,13 @@ export class CurvePath<T extends Vector> extends Curve<T> {
|
|
|
19
20
|
* @remarks Sub-classes will update this value.
|
|
20
21
|
* @defaultValue `CurvePath`
|
|
21
22
|
*/
|
|
22
|
-
override readonly type: string |
|
|
23
|
+
override readonly type: string | "CurvePath";
|
|
23
24
|
|
|
24
25
|
/**
|
|
25
26
|
* The array of {@link Curve | Curves}.
|
|
26
27
|
* @defaultValue `[]`
|
|
27
28
|
*/
|
|
28
|
-
curves: Array<Curve<
|
|
29
|
+
curves: Array<Curve<TVector>>;
|
|
29
30
|
|
|
30
31
|
/**
|
|
31
32
|
* Whether or not to automatically close the path.
|
|
@@ -37,13 +38,13 @@ export class CurvePath<T extends Vector> extends Curve<T> {
|
|
|
37
38
|
* Add a curve to the {@link .curves} array.
|
|
38
39
|
* @param curve
|
|
39
40
|
*/
|
|
40
|
-
add(curve: Curve<
|
|
41
|
+
add(curve: Curve<TVector>): void;
|
|
41
42
|
/**
|
|
42
43
|
* Adds a {@link LineCurve | lineCurve} to close the path.
|
|
43
44
|
*/
|
|
44
45
|
closePath(): this;
|
|
45
46
|
|
|
46
|
-
getPoint(t: number, optionalTarget?:
|
|
47
|
+
getPoint(t: number, optionalTarget?: TVector): TVector;
|
|
47
48
|
|
|
48
49
|
/**
|
|
49
50
|
* Get list of cumulative curve lengths of the curves in the {@link .curves} array.
|
|
@@ -58,11 +59,11 @@ export class CurvePath<T extends Vector> extends Curve<T> {
|
|
|
58
59
|
* For example, for a {@link THREE.LineCurve | LineCurve}, the returned number of points is always just 2.
|
|
59
60
|
* @param divisions Number of pieces to divide the curve into. Expects a `Integer`. Default `12`
|
|
60
61
|
*/
|
|
61
|
-
override getPoints(divisions?: number):
|
|
62
|
+
override getPoints(divisions?: number): TVector[];
|
|
62
63
|
|
|
63
64
|
/**
|
|
64
65
|
* Returns a set of divisions `+1` equi-spaced points using {@link .getPointAt | getPointAt(u)}.
|
|
65
66
|
* @param divisions Number of pieces to divide the curve into. Expects a `Integer`. Default `40`
|
|
66
67
|
*/
|
|
67
|
-
override getSpacedPoints(divisions?: number):
|
|
68
|
+
override getSpacedPoints(divisions?: number): TVector[];
|
|
68
69
|
}
|
|
@@ -33,4 +33,4 @@ declare function QuadraticBezier(t: number, p0: number, p1: number, p2: number):
|
|
|
33
33
|
*/
|
|
34
34
|
declare function CubicBezier(t: number, p0: number, p1: number, p2: number, p3: number): number;
|
|
35
35
|
|
|
36
|
-
export { CatmullRom,
|
|
36
|
+
export { CatmullRom, CubicBezier, QuadraticBezier };
|
three/src/extras/core/Path.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2 } from
|
|
2
|
-
import { CurvePath } from
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { CurvePath } from "./CurvePath.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A 2D {@link Path} representation.
|
|
@@ -37,7 +37,7 @@ export class Path extends CurvePath<Vector2> {
|
|
|
37
37
|
* @remarks Sub-classes will update this value.
|
|
38
38
|
* @defaultValue `Path`
|
|
39
39
|
*/
|
|
40
|
-
override readonly type: string |
|
|
40
|
+
override readonly type: string | "Path";
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* The current offset of the path. Any new {@link THREE.Curve | Curve} added will start here.
|
three/src/extras/core/Shape.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2 } from
|
|
2
|
-
import { Path } from
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Path } from "./Path.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Defines an arbitrary 2d {@link Shape} plane using paths with optional holes
|
|
@@ -47,7 +47,7 @@ export class Shape extends Path {
|
|
|
47
47
|
* @remarks Sub-classes will update this value.
|
|
48
48
|
* @defaultValue `Shape`
|
|
49
49
|
*/
|
|
50
|
-
override readonly type: string |
|
|
50
|
+
override readonly type: string | "Shape";
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* {@link http://en.wikipedia.org/wiki/Universally_unique_identifier | UUID} of this object instance.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { Color } from "../../math/Color.js";
|
|
2
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
3
|
+
import { Path } from "./Path.js";
|
|
4
|
+
import { Shape } from "./Shape.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* This class is used to convert a series of shapes to an array of {@link THREE.Path | Path's},
|
|
@@ -22,7 +22,7 @@ export class ShapePath {
|
|
|
22
22
|
* @remarks Sub-classes will update this value.
|
|
23
23
|
* @defaultValue `ShapePath`
|
|
24
24
|
*/
|
|
25
|
-
readonly type:
|
|
25
|
+
readonly type: "ShapePath";
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Array of {@link THREE.Path | Path's}s.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EllipseCurve } from
|
|
1
|
+
import { EllipseCurve } from "./EllipseCurve.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Alias for {@link THREE.EllipseCurve | EllipseCurve}.
|
|
@@ -37,5 +37,5 @@ export class ArcCurve extends EllipseCurve {
|
|
|
37
37
|
* @remarks Sub-classes will update this value.
|
|
38
38
|
* @defaultValue `ArcCurve`
|
|
39
39
|
*/
|
|
40
|
-
override readonly type: string |
|
|
40
|
+
override readonly type: string | "ArcCurve";
|
|
41
41
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Vector3 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
|
-
export type CurveType =
|
|
4
|
+
export type CurveType = "centripetal" | "chordal" | "catmullrom";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Create a smooth **3D** spline curve from a series of points using the {@link https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline | Catmull-Rom} algorithm.
|
|
@@ -48,7 +48,7 @@ export class CatmullRomCurve3 extends Curve<Vector3> {
|
|
|
48
48
|
* @remarks Sub-classes will update this value.
|
|
49
49
|
* @defaultValue `CatmullRomCurve3`
|
|
50
50
|
*/
|
|
51
|
-
override readonly type: string |
|
|
51
|
+
override readonly type: string | "CatmullRomCurve3";
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* The curve will loop back onto itself when this is true.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a smooth **2D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg | cubic bezier curve},
|
|
@@ -44,7 +44,7 @@ export class CubicBezierCurve extends Curve<Vector2> {
|
|
|
44
44
|
* @remarks Sub-classes will update this value.
|
|
45
45
|
* @defaultValue `CubicBezierCurve`
|
|
46
46
|
*/
|
|
47
|
-
override readonly type: string |
|
|
47
|
+
override readonly type: string | "CubicBezierCurve";
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* The starting point.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector3 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a smooth **3D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg | cubic bezier curve},
|
|
@@ -44,7 +44,7 @@ export class CubicBezierCurve3 extends Curve<Vector3> {
|
|
|
44
44
|
* @remarks Sub-classes will update this value.
|
|
45
45
|
* @defaultValue `CubicBezierCurve3`
|
|
46
46
|
*/
|
|
47
|
-
override readonly type: string |
|
|
47
|
+
override readonly type: string | "CubicBezierCurve3";
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* The starting point.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
10
|
-
export * from
|
|
1
|
+
export * from "./ArcCurve.js";
|
|
2
|
+
export * from "./CatmullRomCurve3.js";
|
|
3
|
+
export * from "./CubicBezierCurve.js";
|
|
4
|
+
export * from "./CubicBezierCurve3.js";
|
|
5
|
+
export * from "./EllipseCurve.js";
|
|
6
|
+
export * from "./LineCurve.js";
|
|
7
|
+
export * from "./LineCurve3.js";
|
|
8
|
+
export * from "./QuadraticBezierCurve.js";
|
|
9
|
+
export * from "./QuadraticBezierCurve3.js";
|
|
10
|
+
export * from "./SplineCurve.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Creates a 2d curve in the shape of an ellipse
|
|
@@ -58,7 +58,7 @@ export class EllipseCurve extends Curve<Vector2> {
|
|
|
58
58
|
* @remarks Sub-classes will update this value.
|
|
59
59
|
* @defaultValue `EllipseCurve`
|
|
60
60
|
*/
|
|
61
|
-
override readonly type: string |
|
|
61
|
+
override readonly type: string | "EllipseCurve";
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* The X center of the ellipse.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A curve representing a **2D** line segment.
|
|
@@ -26,7 +26,7 @@ export class LineCurve extends Curve<Vector2> {
|
|
|
26
26
|
* @remarks Sub-classes will update this value.
|
|
27
27
|
* @defaultValue `LineCurve`
|
|
28
28
|
*/
|
|
29
|
-
override readonly type: string |
|
|
29
|
+
override readonly type: string | "LineCurve";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* The start point.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector3 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A curve representing a **3D** line segment.
|
|
@@ -26,7 +26,7 @@ export class LineCurve3 extends Curve<Vector3> {
|
|
|
26
26
|
* @remarks Sub-classes will update this value.
|
|
27
27
|
* @defaultValue `LineCurve3`
|
|
28
28
|
*/
|
|
29
|
-
override readonly type: string |
|
|
29
|
+
override readonly type: string | "LineCurve3";
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* The start point.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector2 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector2 } from "../../math/Vector2.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a smooth **2D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:B%C3%A9zier_2_big.gif | quadratic bezier curve},
|
|
@@ -42,7 +42,7 @@ export class QuadraticBezierCurve extends Curve<Vector2> {
|
|
|
42
42
|
* @remarks Sub-classes will update this value.
|
|
43
43
|
* @defaultValue `QuadraticBezierCurve`
|
|
44
44
|
*/
|
|
45
|
-
override readonly type: string |
|
|
45
|
+
override readonly type: string | "QuadraticBezierCurve";
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* The start point.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Vector3 } from
|
|
2
|
-
import { Curve } from
|
|
1
|
+
import { Vector3 } from "../../math/Vector3.js";
|
|
2
|
+
import { Curve } from "../core/Curve.js";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Create a smooth **3D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:B%C3%A9zier_2_big.gif | quadratic bezier curve},
|
|
@@ -42,7 +42,7 @@ export class QuadraticBezierCurve3 extends Curve<Vector3> {
|
|
|
42
42
|
* @remarks Sub-classes will update this value.
|
|
43
43
|
* @defaultValue `QuadraticBezierCurve3`
|
|
44
44
|
*/
|
|
45
|
-
override readonly type: string |
|
|
45
|
+
override readonly type: string | "QuadraticBezierCurve3";
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* The start point.
|