From fe0979f7248df4bc6639a844b5a18210a083be74 Mon Sep 17 00:00:00 2001 From: fand Date: Mon, 6 Jan 2025 19:39:21 +0000 Subject: [PATCH] deploy: ce6ecb9eff71eb4e8fc47d3963d933f421e16fd1 --- .../{docs-Vp-jV-V4.css => docs-DnDp3ZPO.css} | 2 +- .../{index-DXU20IJL.js => index-BxNZGJ7n.js} | 4 +- docs/assets/hierarchy.js | 2 +- docs/assets/highlight.css | 22 +- docs/assets/navigation.js | 2 +- docs/classes/AnimationClip.html | 26 -- docs/classes/ArrayCamera.html | 436 ----------------- docs/classes/Bone.html | 332 ------------- docs/classes/Box2.html | 36 -- docs/classes/Box3.html | 48 -- docs/classes/BufferAttribute.html | 163 ------- docs/classes/BufferGeometry.html | 186 -------- docs/classes/Camera.html | 342 -------------- docs/classes/Color.html | 110 ----- docs/classes/ColorBuffer.html | 6 - docs/classes/CubeTexture.html | 274 ----------- docs/classes/CubicInterpolant.html | 8 - docs/classes/Cylindrical.html | 19 - docs/classes/Data3DTexture.html | 239 ---------- docs/classes/DataArrayTexture.html | 246 ---------- docs/classes/DepthBuffer.html | 10 - docs/classes/DepthTexture.html | 241 ---------- docs/classes/DiscreteInterpolant.html | 8 - docs/classes/Euler.html | 33 -- docs/classes/EventDispatcher.html | 27 -- docs/classes/Fog.html | 37 -- docs/classes/FogExp2.html | 33 -- docs/classes/Frustum.html | 14 - docs/classes/GLBufferAttribute.html | 73 --- docs/classes/Group.html | 334 ------------- .../IndirectStorageBufferAttribute.html | 150 ------ docs/classes/InterleavedBuffer.html | 89 ---- docs/classes/InterleavedBufferAttribute.html | 97 ---- docs/classes/Interpolant.html | 7 - docs/classes/KeyframeTrack.html | 26 -- docs/classes/Layers.html | 39 -- docs/classes/Light.html | 339 -------------- docs/classes/LightShadow.html | 85 ---- docs/classes/Line3.html | 22 - docs/classes/LinearInterpolant.html | 8 - docs/classes/Loader.html | 32 -- docs/classes/LoadingManager.html | 36 -- docs/classes/Material.html | 310 ------------ docs/classes/Matrix3.html | 71 --- docs/classes/Matrix4.html | 92 ---- docs/classes/Mesh.html | 352 -------------- docs/classes/Object3D.html | 328 ------------- docs/classes/PerspectiveCamera.html | 440 ------------------ docs/classes/Plane.html | 32 -- docs/classes/Quaternion.html | 93 ---- docs/classes/Ray.html | 36 -- docs/classes/Raycaster.html | 81 ---- docs/classes/RenderTarget.html | 70 --- docs/classes/Scene.html | 368 --------------- docs/classes/Source.html | 38 -- docs/classes/SourceJSON.html | 4 - docs/classes/Sphere.html | 32 -- docs/classes/Spherical.html | 20 - docs/classes/Sprite.html | 338 -------------- docs/classes/SpriteMaterial.html | 336 ------------- docs/classes/StencilBuffer.html | 9 - docs/classes/Texture.html | 267 ----------- docs/classes/TextureLoader.html | 33 -- docs/classes/Triangle.html | 36 -- docs/classes/VFX.html | 18 +- docs/classes/Vector2.html | 150 ------ docs/classes/Vector3.html | 143 ------ docs/classes/Vector4.html | 118 ----- docs/classes/WebGLCapabilities.html | 20 - docs/classes/WebGLExtensions.html | 5 - docs/classes/WebGLInfo.html | 21 - docs/classes/WebGLObjects.html | 4 - docs/classes/WebGLProgram.html | 19 - docs/classes/WebGLProperties.html | 7 - docs/classes/WebGLRenderList.html | 19 - docs/classes/WebGLRenderLists.html | 4 - docs/classes/WebGLRenderTarget.html | 71 --- docs/classes/WebGLRenderer.html | 230 --------- docs/classes/WebGLShadowMap.html | 21 - docs/classes/WebGLState.html | 24 - docs/classes/WebGLTextures.html | 13 - docs/classes/WebGLUniforms.html | 6 - docs/classes/WebGLUtils.html | 3 - docs/classes/WebXRController.html | 9 - docs/classes/WebXRManager.html | 60 --- docs/classes/XRAnchor.html | 4 - docs/classes/XRBoundedReferenceSpace.html | 30 -- docs/classes/XRCompositionLayer.html | 36 -- docs/classes/XRCubeLayer.html | 37 -- docs/classes/XRCylinderLayer.html | 40 -- docs/classes/XREquirectLayer.html | 41 -- docs/classes/XRFrame.html | 30 -- docs/classes/XRGripSpace.html | 338 -------------- docs/classes/XRHand.html | 50 -- docs/classes/XRHandSpace.html | 336 ------------- docs/classes/XRHitTestResult.html | 4 - docs/classes/XRHitTestSource.html | 3 - docs/classes/XRInputSource.html | 9 - docs/classes/XRInputSourceArray.html | 8 - docs/classes/XRInputSourceEvent.html | 64 --- docs/classes/XRJointPose.html | 7 - docs/classes/XRJointSpace-1.html | 335 ------------- docs/classes/XRJointSpace.html | 18 - docs/classes/XRLayer.html | 17 - docs/classes/XRMesh.html | 7 - docs/classes/XRPlane.html | 7 - docs/classes/XRPose.html | 6 - docs/classes/XRProjectionLayer.html | 41 -- docs/classes/XRQuadLayer.html | 39 -- docs/classes/XRRay.html | 5 - docs/classes/XRReferenceSpace.html | 29 -- docs/classes/XRReferenceSpaceEvent.html | 58 --- docs/classes/XRRenderState.html | 7 - docs/classes/XRRigidTransform.html | 9 - docs/classes/XRSession.html | 83 ---- docs/classes/XRSessionEvent.html | 63 --- docs/classes/XRSpace.html | 17 - docs/classes/XRSubImage.html | 3 - docs/classes/XRTargetRaySpace.html | 338 -------------- .../XRTransientInputHitTestResult.html | 5 - .../XRTransientInputHitTestSource.html | 3 - docs/classes/XRView.html | 7 - docs/classes/XRViewerPose.html | 7 - docs/classes/XRViewport.html | 6 - docs/classes/XRWebGLBinding.html | 11 - docs/classes/XRWebGLLayer.html | 28 -- docs/classes/XRWebGLSubImage.html | 8 - docs/classes/default.html | 149 ------ docs/hierarchy.html | 1 - docs/index.html | 4 +- docs/interfaces/AddEventListenerOptions.html | 5 - docs/interfaces/AnimationClipJSON.html | 6 - docs/interfaces/ArrayBufferView.html | 7 - docs/interfaces/ArrayLike.html | 2 - docs/interfaces/BaseEvent.html | 3 - docs/interfaces/BufferAttributeJSON.html | 7 - docs/interfaces/BufferGeometryJSON.html | 7 - docs/interfaces/CompressedTextureMipmap.html | 4 - docs/interfaces/CurveJSON.html | 4 - docs/interfaces/CurvePathJSON.html | 6 - docs/interfaces/DOMMatrix2DInit.html | 13 - docs/interfaces/DOMMatrixInit.html | 24 - docs/interfaces/DOMPoint.html | 13 - docs/interfaces/DOMPointInit.html | 5 - docs/interfaces/DOMPointReadOnly.html | 13 - docs/interfaces/DOMRectInit.html | 5 - docs/interfaces/DOMRectReadOnly.html | 19 - docs/interfaces/Event.html | 4 - docs/interfaces/EventInit.html | 4 - docs/interfaces/EventListener.html | 1 - docs/interfaces/EventListenerObject.html | 2 - docs/interfaces/EventListenerOptions.html | 2 - docs/interfaces/Face.html | 6 - docs/interfaces/FogExp2JSON.html | 5 - docs/interfaces/FogJSON.html | 6 - docs/interfaces/Generator.html | 5 - docs/interfaces/GeometryGroup.html | 10 - docs/interfaces/HSL.html | 4 - docs/interfaces/IUniform.html | 2 - docs/interfaces/ImageBitmap.html | 11 - docs/interfaces/ImageData.html | 14 - docs/interfaces/ImageDataSettings.html | 2 - docs/interfaces/Intersection.html | 21 - docs/interfaces/IterableIterator.html | 6 - docs/interfaces/Iterator.html | 4 - docs/interfaces/IteratorReturnResult.html | 3 - docs/interfaces/IteratorYieldResult.html | 3 - docs/interfaces/JSONMeta.html | 9 - docs/interfaces/KeyframeTrackJSON.html | 6 - docs/interfaces/LightJSON.html | 12 - docs/interfaces/LightShadowJSON.html | 7 - docs/interfaces/MapIterator.html | 5 - docs/interfaces/MaterialJSON.html | 119 ----- docs/interfaces/MaterialParameters.html | 46 -- docs/interfaces/MeshJSON.html | 3 - docs/interfaces/MeshJSONObject.html | 18 - docs/interfaces/MorphTarget.html | 3 - docs/interfaces/Object3DEventMap.html | 9 - docs/interfaces/Object3DJSON.html | 3 - docs/interfaces/Object3DJSONObject.html | 17 - docs/interfaces/OffscreenCanvas.html | 17 - docs/interfaces/PathJSON.html | 7 - docs/interfaces/PerspectiveCameraJSON.html | 3 - .../PerspectiveCameraJSONObject.html | 26 -- docs/interfaces/PlaneLayout.html | 3 - docs/interfaces/ProgressEvent.html | 63 --- docs/interfaces/ProgressEventInit.html | 7 - docs/interfaces/QuaternionLike.html | 5 - docs/interfaces/RGB.html | 4 - docs/interfaces/RaycasterParameters.html | 7 - docs/interfaces/RenderItem.html | 10 - docs/interfaces/RenderTargetOptions.html | 22 - docs/interfaces/Renderer.html | 4 - docs/interfaces/SceneJSON.html | 3 - docs/interfaces/SceneJSONObject.html | 23 - docs/interfaces/ShapeJSON.html | 9 - docs/interfaces/SkeletonJSON.html | 5 - docs/interfaces/SpriteMaterialParameters.html | 52 --- docs/interfaces/Texture3DImageData.html | 5 - docs/interfaces/TextureImageData.html | 4 - docs/interfaces/TextureJSON.html | 24 - docs/interfaces/Vector2Like.html | 3 - docs/interfaces/Vector3Like.html | 4 - docs/interfaces/Vector4Like.html | 5 - docs/interfaces/VideoColorSpace.html | 12 - docs/interfaces/VideoColorSpaceInit.html | 5 - docs/interfaces/VideoFrame.html | 30 -- docs/interfaces/VideoFrameBufferInit.html | 11 - docs/interfaces/VideoFrameCopyToOptions.html | 5 - docs/interfaces/VideoFrameInit.html | 7 - docs/interfaces/WebGLBuffer.html | 3 - .../WebGLCapabilitiesParameters.html | 7 - docs/interfaces/WebGLDebug.html | 8 - docs/interfaces/WebGLFramebuffer.html | 3 - docs/interfaces/WebGLProgramParameters.html | 132 ------ .../WebGLProgramParametersWithUniforms.html | 133 ------ docs/interfaces/WebGLRendererParameters.html | 29 -- docs/interfaces/WebGLShader.html | 3 - docs/interfaces/WebGLTexture.html | 3 - docs/interfaces/WebXRManagerEventMap.html | 7 - docs/interfaces/WebXRSpaceEventMap.html | 20 - docs/interfaces/XRCPUDepthInformation.html | 7 - .../XRCompositionLayerEventMap.html | 2 - docs/interfaces/XRCubeLayerInit.html | 10 - docs/interfaces/XRCylinderLayerInit.html | 14 - docs/interfaces/XRDOMOverlayState.html | 2 - docs/interfaces/XRDepthInformation.html | 5 - docs/interfaces/XREquirectLayerInit.html | 15 - docs/interfaces/XRHandInputState.html | 2 - docs/interfaces/XRHitResult.html | 2 - docs/interfaces/XRHitTestOptionsInit.html | 4 - .../interfaces/XRInputSourceEventHandler.html | 1 - docs/interfaces/XRInputSourceEventInit.html | 6 - .../interfaces/XRInputSourcesChangeEvent.html | 61 --- .../XRInputSourcesChangeEventHandler.html | 1 - docs/interfaces/XRLayerEvent.html | 56 --- docs/interfaces/XRLayerInit.html | 9 - docs/interfaces/XRProjectionLayerInit.html | 5 - docs/interfaces/XRQuadLayerInit.html | 13 - .../XRReferenceSpaceEventHandler.html | 1 - .../interfaces/XRReferenceSpaceEventInit.html | 6 - docs/interfaces/XRReferenceSpaceEventMap.html | 2 - docs/interfaces/XRRenderStateInit.html | 6 - docs/interfaces/XRSessionEventHandler.html | 1 - docs/interfaces/XRSessionEventInit.html | 5 - docs/interfaces/XRSessionEventMap.html | 11 - .../XRTransientInputHitTestOptionsInit.html | 4 - docs/interfaces/XRWebGLDepthInformation.html | 8 - docs/interfaces/XRWebGLLayerInit.html | 7 - docs/modules.html | 4 +- docs/types/AllowSharedBufferSource.html | 1 - docs/types/AlphaOption.html | 1 - docs/types/AnimationBlendMode.html | 1 - docs/types/AnyMapping.html | 6 - docs/types/AnyPixelFormat.html | 8 - docs/types/ArrayBufferLike.html | 1 - docs/types/AttributeGPUType.html | 1 - docs/types/Blending.html | 1 - docs/types/BlendingDstFactor.html | 1 - docs/types/BlendingEquation.html | 1 - docs/types/BlendingSrcFactor.html | 1 - docs/types/BufferSource.html | 1 - docs/types/BuiltinIteratorReturn.html | 3 - docs/types/CanvasImageSource.html | 1 - docs/types/ColorRepresentation.html | 1 - docs/types/Combine.html | 1 - docs/types/CompressedPixelFormat.html | 3 - docs/types/CoordinateSystem.html | 1 - docs/types/CubeTextureMapping.html | 4 - docs/types/CullFace.html | 1 - docs/types/DOMHighResTimeStamp.html | 1 - docs/types/DepthModes.html | 1 - docs/types/DepthPackingStrategies.html | 1 - docs/types/DepthTexturePixelFormat.html | 6 - docs/types/EulerOrder.html | 1 - docs/types/EulerTuple.html | 1 - docs/types/EventListener-1.html | 1 - .../EventListenerOrEventListenerObject.html | 1 - docs/types/Exclude.html | 2 - docs/types/GLSLVersion.html | 1 - docs/types/HTMLOrSVGImageElement.html | 1 - docs/types/InterpolationModes.html | 1 - docs/types/IteratorResult.html | 1 - docs/types/MagnificationTextureFilter.html | 8 - docs/types/Mapping.html | 4 - docs/types/Matrix3Tuple.html | 1 - docs/types/Matrix4Tuple.html | 1 - docs/types/MinificationTextureFilter.html | 8 - docs/types/NormalBufferAttributes.html | 1 - docs/types/NormalMapTypes.html | 1 - docs/types/NormalOrGLBufferAttributes.html | 1 - docs/types/Omit.html | 2 - docs/types/Partial.html | 2 - docs/types/Pick.html | 2 - docs/types/PixelFormat.html | 7 - docs/types/PixelFormatGPU.html | 63 --- docs/types/PredefinedColorSpace.html | 1 - docs/types/QuaternionTuple.html | 1 - docs/types/Record.html | 2 - docs/types/RectOpts.html | 4 +- docs/types/SerializedImage.html | 1 - docs/types/ShaderPreset.html | 2 +- docs/types/ShadowMapType.html | 1 - docs/types/Side.html | 3 - docs/types/StencilFunc.html | 1 - docs/types/StencilOp.html | 1 - docs/types/TexImageSource.html | 1 - docs/types/TextureComparisonFunction.html | 1 - docs/types/TextureDataType.html | 7 - docs/types/ToneMapping.html | 1 - docs/types/TypedArray.html | 1 - docs/types/Usage.html | 1 - docs/types/VFXElementIntersection.html | 2 +- docs/types/VFXOpts.html | 4 +- docs/types/VFXProps.html | 6 +- docs/types/VFXUniformValue.html | 4 +- docs/types/VFXUniforms.html | 2 +- docs/types/VFXWrap.html | 4 +- docs/types/Vector2Tuple.html | 1 - docs/types/Vector3Tuple.html | 1 - docs/types/Vector4Tuple.html | 1 - docs/types/VideoColorPrimaries.html | 1 - docs/types/VideoMatrixCoefficients.html | 1 - docs/types/VideoPixelFormat.html | 1 - docs/types/VideoTransferCharacteristics.html | 1 - docs/types/WebGLPowerPreference.html | 1 - docs/types/WebXRArrayCamera.html | 1 - docs/types/WebXRCamera.html | 1 - docs/types/Wrapping.html | 4 - docs/types/XRAnchorSet.html | 1 - docs/types/XRControllerEventType.html | 1 - docs/types/XRDOMOverlayType.html | 1 - docs/types/XRDepthDataFormat.html | 1 - docs/types/XRDepthUsage.html | 3 - docs/types/XREnvironmentBlendMode.html | 1 - docs/types/XREye.html | 2 - docs/types/XRFrameRequestCallback.html | 1 - docs/types/XRHandJoint.html | 4 - docs/types/XRHandJoints.html | 1 - docs/types/XRHandedness.html | 2 - docs/types/XRHitTestTrackableType.html | 1 - docs/types/XRInputSourceEventType.html | 2 - docs/types/XRLayerLayout.html | 1 - docs/types/XRLayerQuality.html | 1 - docs/types/XRMeshSet.html | 1 - docs/types/XRPlaneOrientation.html | 1 - docs/types/XRPlaneSet.html | 1 - docs/types/XRReferenceSpaceType.html | 2 - docs/types/XRSessionEventType.html | 1 - docs/types/XRTargetRayMode.html | 2 - docs/types/XRTextureType.html | 1 - docs/types/XRVisibilityState.html | 2 - docs/variables/ACESFilmicToneMapping.html | 1 - docs/variables/AddEquation.html | 1 - docs/variables/AddOperation.html | 1 - .../variables/AdditiveAnimationBlendMode.html | 1 - docs/variables/AdditiveBlending.html | 1 - docs/variables/AgXToneMapping.html | 1 - docs/variables/AlphaFormat.html | 2 - docs/variables/AlwaysCompare.html | 1 - docs/variables/AlwaysDepth.html | 1 - docs/variables/AlwaysStencilFunc.html | 1 - docs/variables/BackSide.html | 1 - docs/variables/BasicDepthPacking.html | 1 - docs/variables/BasicShadowMap.html | 1 - docs/variables/ByteType.html | 1 - docs/variables/CineonToneMapping.html | 1 - docs/variables/ClampToEdgeWrapping.html | 3 - docs/variables/ConstantAlphaFactor.html | 1 - docs/variables/ConstantColorFactor.html | 1 - docs/variables/CubeReflectionMapping.html | 2 - docs/variables/CubeRefractionMapping.html | 1 - docs/variables/CubeUVReflectionMapping.html | 1 - docs/variables/CullFaceBack.html | 1 - docs/variables/CullFaceFront.html | 1 - docs/variables/CullFaceFrontBack.html | 1 - docs/variables/CullFaceNone.html | 1 - docs/variables/CustomBlending.html | 1 - docs/variables/CustomToneMapping.html | 1 - docs/variables/DOMPoint-1.html | 2 - docs/variables/DOMPointReadOnly-1.html | 2 - docs/variables/DOMRectReadOnly-1.html | 2 - docs/variables/DecrementStencilOp.html | 1 - docs/variables/DecrementWrapStencilOp.html | 1 - docs/variables/DepthFormat.html | 3 - docs/variables/DepthStencilFormat.html | 4 - docs/variables/DoubleSide.html | 1 - docs/variables/DstAlphaFactor.html | 1 - docs/variables/DstColorFactor.html | 1 - docs/variables/DynamicCopyUsage.html | 1 - docs/variables/DynamicDrawUsage.html | 1 - docs/variables/DynamicReadUsage.html | 1 - docs/variables/EqualCompare.html | 1 - docs/variables/EqualDepth.html | 1 - docs/variables/EqualStencilFunc.html | 1 - .../EquirectangularReflectionMapping.html | 1 - .../EquirectangularRefractionMapping.html | 1 - docs/variables/FloatType.html | 1 - docs/variables/FrontSide.html | 1 - docs/variables/GLSL1.html | 1 - docs/variables/GLSL3.html | 1 - docs/variables/GreaterCompare.html | 1 - docs/variables/GreaterDepth.html | 1 - docs/variables/GreaterEqualCompare.html | 1 - docs/variables/GreaterEqualDepth.html | 1 - docs/variables/GreaterEqualStencilFunc.html | 1 - docs/variables/GreaterStencilFunc.html | 1 - docs/variables/HalfFloatType.html | 1 - docs/variables/ImageBitmap-1.html | 1 - docs/variables/ImageData-1.html | 1 - docs/variables/IncrementStencilOp.html | 1 - docs/variables/IncrementWrapStencilOp.html | 1 - docs/variables/IntType.html | 1 - docs/variables/InterpolateDiscrete.html | 1 - docs/variables/InterpolateLinear.html | 1 - docs/variables/InterpolateSmooth.html | 1 - docs/variables/InvertStencilOp.html | 1 - docs/variables/KeepStencilOp.html | 1 - docs/variables/LessCompare.html | 1 - docs/variables/LessDepth.html | 1 - docs/variables/LessEqualCompare.html | 1 - docs/variables/LessEqualDepth.html | 1 - docs/variables/LessEqualStencilFunc.html | 1 - docs/variables/LessStencilFunc.html | 1 - docs/variables/LinearFilter.html | 4 - .../variables/LinearMipMapLinearFilter-1.html | 4 - .../LinearMipMapNearestFilter-1.html | 3 - docs/variables/LinearMipmapLinearFilter.html | 4 - docs/variables/LinearMipmapNearestFilter.html | 3 - docs/variables/LinearToneMapping.html | 1 - docs/variables/LuminanceAlphaFormat.html | 3 - docs/variables/LuminanceFormat.html | 4 - docs/variables/MaxEquation.html | 1 - docs/variables/MinEquation.html | 1 - docs/variables/MirroredRepeatWrapping.html | 2 - docs/variables/MixOperation.html | 1 - docs/variables/MultiplyBlending.html | 1 - docs/variables/MultiplyOperation.html | 1 - docs/variables/NearestFilter.html | 2 - .../NearestMipMapLinearFilter-1.html | 4 - .../NearestMipMapNearestFilter-1.html | 3 - docs/variables/NearestMipmapLinearFilter.html | 4 - .../variables/NearestMipmapNearestFilter.html | 3 - docs/variables/NeutralToneMapping.html | 1 - docs/variables/NeverCompare.html | 1 - docs/variables/NeverDepth.html | 1 - docs/variables/NeverStencilFunc.html | 1 - docs/variables/NoBlending.html | 1 - docs/variables/NoToneMapping.html | 1 - docs/variables/NormalAnimationBlendMode.html | 1 - docs/variables/NormalBlending.html | 1 - docs/variables/NotEqualCompare.html | 1 - docs/variables/NotEqualDepth.html | 1 - docs/variables/NotEqualStencilFunc.html | 1 - docs/variables/ObjectSpaceNormalMap.html | 1 - docs/variables/OneFactor.html | 1 - .../OneMinusConstantAlphaFactor.html | 1 - .../OneMinusConstantColorFactor.html | 1 - docs/variables/OneMinusDstAlphaFactor.html | 1 - docs/variables/OneMinusDstColorFactor.html | 1 - docs/variables/OneMinusSrcAlphaFactor.html | 1 - docs/variables/OneMinusSrcColorFactor.html | 1 - docs/variables/PCFShadowMap.html | 1 - docs/variables/PCFSoftShadowMap.html | 1 - docs/variables/ProgressEvent-1.html | 1 - docs/variables/RED_GREEN_RGTC2_Format.html | 1 - docs/variables/RED_RGTC1_Format.html | 1 - docs/variables/RGBADepthPacking.html | 1 - docs/variables/RGBAFormat.html | 2 - docs/variables/RGBAIntegerFormat.html | 3 - docs/variables/RGBA_ASTC_10x10_Format.html | 2 - docs/variables/RGBA_ASTC_10x5_Format.html | 2 - docs/variables/RGBA_ASTC_10x6_Format.html | 2 - docs/variables/RGBA_ASTC_10x8_Format.html | 2 - docs/variables/RGBA_ASTC_12x10_Format.html | 2 - docs/variables/RGBA_ASTC_12x12_Format.html | 2 - docs/variables/RGBA_ASTC_4x4_Format.html | 2 - docs/variables/RGBA_ASTC_5x4_Format.html | 2 - docs/variables/RGBA_ASTC_5x5_Format.html | 2 - docs/variables/RGBA_ASTC_6x5_Format.html | 2 - docs/variables/RGBA_ASTC_6x6_Format.html | 2 - docs/variables/RGBA_ASTC_8x5_Format.html | 2 - docs/variables/RGBA_ASTC_8x6_Format.html | 2 - docs/variables/RGBA_ASTC_8x8_Format.html | 2 - docs/variables/RGBA_BPTC_Format.html | 2 - docs/variables/RGBA_ETC2_EAC_Format.html | 2 - docs/variables/RGBA_PVRTC_2BPPV1_Format.html | 3 - docs/variables/RGBA_PVRTC_4BPPV1_Format.html | 3 - docs/variables/RGBA_S3TC_DXT1_Format.html | 3 - docs/variables/RGBA_S3TC_DXT3_Format.html | 3 - docs/variables/RGBA_S3TC_DXT5_Format.html | 3 - docs/variables/RGBDepthPacking.html | 1 - docs/variables/RGBFormat.html | 1 - docs/variables/RGBIntegerFormat.html | 2 - docs/variables/RGB_BPTC_SIGNED_Format.html | 1 - docs/variables/RGB_BPTC_UNSIGNED_Format.html | 1 - docs/variables/RGB_ETC1_Format.html | 2 - docs/variables/RGB_ETC2_Format.html | 2 - docs/variables/RGB_PVRTC_2BPPV1_Format.html | 3 - docs/variables/RGB_PVRTC_4BPPV1_Format.html | 3 - docs/variables/RGB_S3TC_DXT1_Format.html | 3 - docs/variables/RGDepthPacking.html | 1 - docs/variables/RGFormat.html | 2 - docs/variables/RGIntegerFormat.html | 3 - docs/variables/RedFormat.html | 2 - docs/variables/RedIntegerFormat.html | 3 - docs/variables/ReinhardToneMapping.html | 1 - docs/variables/RepeatWrapping.html | 2 - docs/variables/ReplaceStencilOp.html | 1 - docs/variables/ReverseSubtractEquation.html | 1 - .../SIGNED_RED_GREEN_RGTC2_Format.html | 1 - docs/variables/SIGNED_RED_RGTC1_Format.html | 1 - docs/variables/ShortType.html | 1 - docs/variables/SrcAlphaFactor.html | 1 - docs/variables/SrcAlphaSaturateFactor.html | 1 - docs/variables/SrcColorFactor.html | 1 - docs/variables/StaticCopyUsage.html | 1 - docs/variables/StaticDrawUsage.html | 1 - docs/variables/StaticReadUsage.html | 1 - docs/variables/StreamCopyUsage.html | 1 - docs/variables/StreamDrawUsage.html | 1 - docs/variables/StreamReadUsage.html | 1 - docs/variables/SubtractEquation.html | 1 - docs/variables/SubtractiveBlending.html | 1 - docs/variables/TangentSpaceNormalMap.html | 1 - docs/variables/UVMapping.html | 3 - docs/variables/UnsignedByteType.html | 1 - docs/variables/UnsignedInt248Type.html | 1 - docs/variables/UnsignedInt5999Type.html | 1 - docs/variables/UnsignedIntType.html | 1 - docs/variables/UnsignedShort4444Type.html | 1 - docs/variables/UnsignedShort5551Type.html | 1 - docs/variables/UnsignedShortType.html | 1 - docs/variables/VSMShadowMap.html | 1 - docs/variables/VideoColorSpace-1.html | 1 - docs/variables/VideoFrame-1.html | 1 - docs/variables/WebGLBuffer-1.html | 1 - docs/variables/WebGLCoordinateSystem.html | 1 - docs/variables/WebGLFramebuffer-1.html | 1 - docs/variables/WebGLShader-1.html | 1 - docs/variables/WebGLTexture-1.html | 1 - docs/variables/WebGPUCoordinateSystem.html | 1 - docs/variables/ZeroFactor.html | 1 - docs/variables/ZeroStencilOp.html | 1 - docs/variables/shaders.html | 4 +- index.html | 2 +- 546 files changed, 39 insertions(+), 12966 deletions(-) rename assets/{docs-Vp-jV-V4.css => docs-DnDp3ZPO.css} (85%) rename assets/{index-DXU20IJL.js => index-BxNZGJ7n.js} (96%) delete mode 100644 docs/classes/AnimationClip.html delete mode 100644 docs/classes/ArrayCamera.html delete mode 100644 docs/classes/Bone.html delete mode 100644 docs/classes/Box2.html delete mode 100644 docs/classes/Box3.html delete mode 100644 docs/classes/BufferAttribute.html delete mode 100644 docs/classes/BufferGeometry.html delete mode 100644 docs/classes/Camera.html delete mode 100644 docs/classes/Color.html delete mode 100644 docs/classes/ColorBuffer.html delete mode 100644 docs/classes/CubeTexture.html delete mode 100644 docs/classes/CubicInterpolant.html delete mode 100644 docs/classes/Cylindrical.html delete mode 100644 docs/classes/Data3DTexture.html delete mode 100644 docs/classes/DataArrayTexture.html delete mode 100644 docs/classes/DepthBuffer.html delete mode 100644 docs/classes/DepthTexture.html delete mode 100644 docs/classes/DiscreteInterpolant.html delete mode 100644 docs/classes/Euler.html delete mode 100644 docs/classes/EventDispatcher.html delete mode 100644 docs/classes/Fog.html delete mode 100644 docs/classes/FogExp2.html delete mode 100644 docs/classes/Frustum.html delete mode 100644 docs/classes/GLBufferAttribute.html delete mode 100644 docs/classes/Group.html delete mode 100644 docs/classes/IndirectStorageBufferAttribute.html delete mode 100644 docs/classes/InterleavedBuffer.html delete mode 100644 docs/classes/InterleavedBufferAttribute.html delete mode 100644 docs/classes/Interpolant.html delete mode 100644 docs/classes/KeyframeTrack.html delete mode 100644 docs/classes/Layers.html delete mode 100644 docs/classes/Light.html delete mode 100644 docs/classes/LightShadow.html delete mode 100644 docs/classes/Line3.html delete mode 100644 docs/classes/LinearInterpolant.html delete mode 100644 docs/classes/Loader.html delete mode 100644 docs/classes/LoadingManager.html delete mode 100644 docs/classes/Material.html delete mode 100644 docs/classes/Matrix3.html delete mode 100644 docs/classes/Matrix4.html delete mode 100644 docs/classes/Mesh.html delete mode 100644 docs/classes/Object3D.html delete mode 100644 docs/classes/PerspectiveCamera.html delete mode 100644 docs/classes/Plane.html delete mode 100644 docs/classes/Quaternion.html delete mode 100644 docs/classes/Ray.html delete mode 100644 docs/classes/Raycaster.html delete mode 100644 docs/classes/RenderTarget.html delete mode 100644 docs/classes/Scene.html delete mode 100644 docs/classes/Source.html delete mode 100644 docs/classes/SourceJSON.html delete mode 100644 docs/classes/Sphere.html delete mode 100644 docs/classes/Spherical.html delete mode 100644 docs/classes/Sprite.html delete mode 100644 docs/classes/SpriteMaterial.html delete mode 100644 docs/classes/StencilBuffer.html delete mode 100644 docs/classes/Texture.html delete mode 100644 docs/classes/TextureLoader.html delete mode 100644 docs/classes/Triangle.html delete mode 100644 docs/classes/Vector2.html delete mode 100644 docs/classes/Vector3.html delete mode 100644 docs/classes/Vector4.html delete mode 100644 docs/classes/WebGLCapabilities.html delete mode 100644 docs/classes/WebGLExtensions.html delete mode 100644 docs/classes/WebGLInfo.html delete mode 100644 docs/classes/WebGLObjects.html delete mode 100644 docs/classes/WebGLProgram.html delete mode 100644 docs/classes/WebGLProperties.html delete mode 100644 docs/classes/WebGLRenderList.html delete mode 100644 docs/classes/WebGLRenderLists.html delete mode 100644 docs/classes/WebGLRenderTarget.html delete mode 100644 docs/classes/WebGLRenderer.html delete mode 100644 docs/classes/WebGLShadowMap.html delete mode 100644 docs/classes/WebGLState.html delete mode 100644 docs/classes/WebGLTextures.html delete mode 100644 docs/classes/WebGLUniforms.html delete mode 100644 docs/classes/WebGLUtils.html delete mode 100644 docs/classes/WebXRController.html delete mode 100644 docs/classes/WebXRManager.html delete mode 100644 docs/classes/XRAnchor.html delete mode 100644 docs/classes/XRBoundedReferenceSpace.html delete mode 100644 docs/classes/XRCompositionLayer.html delete mode 100644 docs/classes/XRCubeLayer.html delete mode 100644 docs/classes/XRCylinderLayer.html delete mode 100644 docs/classes/XREquirectLayer.html delete mode 100644 docs/classes/XRFrame.html delete mode 100644 docs/classes/XRGripSpace.html delete mode 100644 docs/classes/XRHand.html delete mode 100644 docs/classes/XRHandSpace.html delete mode 100644 docs/classes/XRHitTestResult.html delete mode 100644 docs/classes/XRHitTestSource.html delete mode 100644 docs/classes/XRInputSource.html delete mode 100644 docs/classes/XRInputSourceArray.html delete mode 100644 docs/classes/XRInputSourceEvent.html delete mode 100644 docs/classes/XRJointPose.html delete mode 100644 docs/classes/XRJointSpace-1.html delete mode 100644 docs/classes/XRJointSpace.html delete mode 100644 docs/classes/XRLayer.html delete mode 100644 docs/classes/XRMesh.html delete mode 100644 docs/classes/XRPlane.html delete mode 100644 docs/classes/XRPose.html delete mode 100644 docs/classes/XRProjectionLayer.html delete mode 100644 docs/classes/XRQuadLayer.html delete mode 100644 docs/classes/XRRay.html delete mode 100644 docs/classes/XRReferenceSpace.html delete mode 100644 docs/classes/XRReferenceSpaceEvent.html delete mode 100644 docs/classes/XRRenderState.html delete mode 100644 docs/classes/XRRigidTransform.html delete mode 100644 docs/classes/XRSession.html delete mode 100644 docs/classes/XRSessionEvent.html delete mode 100644 docs/classes/XRSpace.html delete mode 100644 docs/classes/XRSubImage.html delete mode 100644 docs/classes/XRTargetRaySpace.html delete mode 100644 docs/classes/XRTransientInputHitTestResult.html delete mode 100644 docs/classes/XRTransientInputHitTestSource.html delete mode 100644 docs/classes/XRView.html delete mode 100644 docs/classes/XRViewerPose.html delete mode 100644 docs/classes/XRViewport.html delete mode 100644 docs/classes/XRWebGLBinding.html delete mode 100644 docs/classes/XRWebGLLayer.html delete mode 100644 docs/classes/XRWebGLSubImage.html delete mode 100644 docs/classes/default.html delete mode 100644 docs/hierarchy.html delete mode 100644 docs/interfaces/AddEventListenerOptions.html delete mode 100644 docs/interfaces/AnimationClipJSON.html delete mode 100644 docs/interfaces/ArrayBufferView.html delete mode 100644 docs/interfaces/ArrayLike.html delete mode 100644 docs/interfaces/BaseEvent.html delete mode 100644 docs/interfaces/BufferAttributeJSON.html delete mode 100644 docs/interfaces/BufferGeometryJSON.html delete mode 100644 docs/interfaces/CompressedTextureMipmap.html delete mode 100644 docs/interfaces/CurveJSON.html delete mode 100644 docs/interfaces/CurvePathJSON.html delete mode 100644 docs/interfaces/DOMMatrix2DInit.html delete mode 100644 docs/interfaces/DOMMatrixInit.html delete mode 100644 docs/interfaces/DOMPoint.html delete mode 100644 docs/interfaces/DOMPointInit.html delete mode 100644 docs/interfaces/DOMPointReadOnly.html delete mode 100644 docs/interfaces/DOMRectInit.html delete mode 100644 docs/interfaces/DOMRectReadOnly.html delete mode 100644 docs/interfaces/Event.html delete mode 100644 docs/interfaces/EventInit.html delete mode 100644 docs/interfaces/EventListener.html delete mode 100644 docs/interfaces/EventListenerObject.html delete mode 100644 docs/interfaces/EventListenerOptions.html delete mode 100644 docs/interfaces/Face.html delete mode 100644 docs/interfaces/FogExp2JSON.html delete mode 100644 docs/interfaces/FogJSON.html delete mode 100644 docs/interfaces/Generator.html delete mode 100644 docs/interfaces/GeometryGroup.html delete mode 100644 docs/interfaces/HSL.html delete mode 100644 docs/interfaces/IUniform.html delete mode 100644 docs/interfaces/ImageBitmap.html delete mode 100644 docs/interfaces/ImageData.html delete mode 100644 docs/interfaces/ImageDataSettings.html delete mode 100644 docs/interfaces/Intersection.html delete mode 100644 docs/interfaces/IterableIterator.html delete mode 100644 docs/interfaces/Iterator.html delete mode 100644 docs/interfaces/IteratorReturnResult.html delete mode 100644 docs/interfaces/IteratorYieldResult.html delete mode 100644 docs/interfaces/JSONMeta.html delete mode 100644 docs/interfaces/KeyframeTrackJSON.html delete mode 100644 docs/interfaces/LightJSON.html delete mode 100644 docs/interfaces/LightShadowJSON.html delete mode 100644 docs/interfaces/MapIterator.html delete mode 100644 docs/interfaces/MaterialJSON.html delete mode 100644 docs/interfaces/MaterialParameters.html delete mode 100644 docs/interfaces/MeshJSON.html delete mode 100644 docs/interfaces/MeshJSONObject.html delete mode 100644 docs/interfaces/MorphTarget.html delete mode 100644 docs/interfaces/Object3DEventMap.html delete mode 100644 docs/interfaces/Object3DJSON.html delete mode 100644 docs/interfaces/Object3DJSONObject.html delete mode 100644 docs/interfaces/OffscreenCanvas.html delete mode 100644 docs/interfaces/PathJSON.html delete mode 100644 docs/interfaces/PerspectiveCameraJSON.html delete mode 100644 docs/interfaces/PerspectiveCameraJSONObject.html delete mode 100644 docs/interfaces/PlaneLayout.html delete mode 100644 docs/interfaces/ProgressEvent.html delete mode 100644 docs/interfaces/ProgressEventInit.html delete mode 100644 docs/interfaces/QuaternionLike.html delete mode 100644 docs/interfaces/RGB.html delete mode 100644 docs/interfaces/RaycasterParameters.html delete mode 100644 docs/interfaces/RenderItem.html delete mode 100644 docs/interfaces/RenderTargetOptions.html delete mode 100644 docs/interfaces/Renderer.html delete mode 100644 docs/interfaces/SceneJSON.html delete mode 100644 docs/interfaces/SceneJSONObject.html delete mode 100644 docs/interfaces/ShapeJSON.html delete mode 100644 docs/interfaces/SkeletonJSON.html delete mode 100644 docs/interfaces/SpriteMaterialParameters.html delete mode 100644 docs/interfaces/Texture3DImageData.html delete mode 100644 docs/interfaces/TextureImageData.html delete mode 100644 docs/interfaces/TextureJSON.html delete mode 100644 docs/interfaces/Vector2Like.html delete mode 100644 docs/interfaces/Vector3Like.html delete mode 100644 docs/interfaces/Vector4Like.html delete mode 100644 docs/interfaces/VideoColorSpace.html delete mode 100644 docs/interfaces/VideoColorSpaceInit.html delete mode 100644 docs/interfaces/VideoFrame.html delete mode 100644 docs/interfaces/VideoFrameBufferInit.html delete mode 100644 docs/interfaces/VideoFrameCopyToOptions.html delete mode 100644 docs/interfaces/VideoFrameInit.html delete mode 100644 docs/interfaces/WebGLBuffer.html delete mode 100644 docs/interfaces/WebGLCapabilitiesParameters.html delete mode 100644 docs/interfaces/WebGLDebug.html delete mode 100644 docs/interfaces/WebGLFramebuffer.html delete mode 100644 docs/interfaces/WebGLProgramParameters.html delete mode 100644 docs/interfaces/WebGLProgramParametersWithUniforms.html delete mode 100644 docs/interfaces/WebGLRendererParameters.html delete mode 100644 docs/interfaces/WebGLShader.html delete mode 100644 docs/interfaces/WebGLTexture.html delete mode 100644 docs/interfaces/WebXRManagerEventMap.html delete mode 100644 docs/interfaces/WebXRSpaceEventMap.html delete mode 100644 docs/interfaces/XRCPUDepthInformation.html delete mode 100644 docs/interfaces/XRCompositionLayerEventMap.html delete mode 100644 docs/interfaces/XRCubeLayerInit.html delete mode 100644 docs/interfaces/XRCylinderLayerInit.html delete mode 100644 docs/interfaces/XRDOMOverlayState.html delete mode 100644 docs/interfaces/XRDepthInformation.html delete mode 100644 docs/interfaces/XREquirectLayerInit.html delete mode 100644 docs/interfaces/XRHandInputState.html delete mode 100644 docs/interfaces/XRHitResult.html delete mode 100644 docs/interfaces/XRHitTestOptionsInit.html delete mode 100644 docs/interfaces/XRInputSourceEventHandler.html delete mode 100644 docs/interfaces/XRInputSourceEventInit.html delete mode 100644 docs/interfaces/XRInputSourcesChangeEvent.html delete mode 100644 docs/interfaces/XRInputSourcesChangeEventHandler.html delete mode 100644 docs/interfaces/XRLayerEvent.html delete mode 100644 docs/interfaces/XRLayerInit.html delete mode 100644 docs/interfaces/XRProjectionLayerInit.html delete mode 100644 docs/interfaces/XRQuadLayerInit.html delete mode 100644 docs/interfaces/XRReferenceSpaceEventHandler.html delete mode 100644 docs/interfaces/XRReferenceSpaceEventInit.html delete mode 100644 docs/interfaces/XRReferenceSpaceEventMap.html delete mode 100644 docs/interfaces/XRRenderStateInit.html delete mode 100644 docs/interfaces/XRSessionEventHandler.html delete mode 100644 docs/interfaces/XRSessionEventInit.html delete mode 100644 docs/interfaces/XRSessionEventMap.html delete mode 100644 docs/interfaces/XRTransientInputHitTestOptionsInit.html delete mode 100644 docs/interfaces/XRWebGLDepthInformation.html delete mode 100644 docs/interfaces/XRWebGLLayerInit.html delete mode 100644 docs/types/AllowSharedBufferSource.html delete mode 100644 docs/types/AlphaOption.html delete mode 100644 docs/types/AnimationBlendMode.html delete mode 100644 docs/types/AnyMapping.html delete mode 100644 docs/types/AnyPixelFormat.html delete mode 100644 docs/types/ArrayBufferLike.html delete mode 100644 docs/types/AttributeGPUType.html delete mode 100644 docs/types/Blending.html delete mode 100644 docs/types/BlendingDstFactor.html delete mode 100644 docs/types/BlendingEquation.html delete mode 100644 docs/types/BlendingSrcFactor.html delete mode 100644 docs/types/BufferSource.html delete mode 100644 docs/types/BuiltinIteratorReturn.html delete mode 100644 docs/types/CanvasImageSource.html delete mode 100644 docs/types/ColorRepresentation.html delete mode 100644 docs/types/Combine.html delete mode 100644 docs/types/CompressedPixelFormat.html delete mode 100644 docs/types/CoordinateSystem.html delete mode 100644 docs/types/CubeTextureMapping.html delete mode 100644 docs/types/CullFace.html delete mode 100644 docs/types/DOMHighResTimeStamp.html delete mode 100644 docs/types/DepthModes.html delete mode 100644 docs/types/DepthPackingStrategies.html delete mode 100644 docs/types/DepthTexturePixelFormat.html delete mode 100644 docs/types/EulerOrder.html delete mode 100644 docs/types/EulerTuple.html delete mode 100644 docs/types/EventListener-1.html delete mode 100644 docs/types/EventListenerOrEventListenerObject.html delete mode 100644 docs/types/Exclude.html delete mode 100644 docs/types/GLSLVersion.html delete mode 100644 docs/types/HTMLOrSVGImageElement.html delete mode 100644 docs/types/InterpolationModes.html delete mode 100644 docs/types/IteratorResult.html delete mode 100644 docs/types/MagnificationTextureFilter.html delete mode 100644 docs/types/Mapping.html delete mode 100644 docs/types/Matrix3Tuple.html delete mode 100644 docs/types/Matrix4Tuple.html delete mode 100644 docs/types/MinificationTextureFilter.html delete mode 100644 docs/types/NormalBufferAttributes.html delete mode 100644 docs/types/NormalMapTypes.html delete mode 100644 docs/types/NormalOrGLBufferAttributes.html delete mode 100644 docs/types/Omit.html delete mode 100644 docs/types/Partial.html delete mode 100644 docs/types/Pick.html delete mode 100644 docs/types/PixelFormat.html delete mode 100644 docs/types/PixelFormatGPU.html delete mode 100644 docs/types/PredefinedColorSpace.html delete mode 100644 docs/types/QuaternionTuple.html delete mode 100644 docs/types/Record.html delete mode 100644 docs/types/SerializedImage.html delete mode 100644 docs/types/ShadowMapType.html delete mode 100644 docs/types/Side.html delete mode 100644 docs/types/StencilFunc.html delete mode 100644 docs/types/StencilOp.html delete mode 100644 docs/types/TexImageSource.html delete mode 100644 docs/types/TextureComparisonFunction.html delete mode 100644 docs/types/TextureDataType.html delete mode 100644 docs/types/ToneMapping.html delete mode 100644 docs/types/TypedArray.html delete mode 100644 docs/types/Usage.html delete mode 100644 docs/types/Vector2Tuple.html delete mode 100644 docs/types/Vector3Tuple.html delete mode 100644 docs/types/Vector4Tuple.html delete mode 100644 docs/types/VideoColorPrimaries.html delete mode 100644 docs/types/VideoMatrixCoefficients.html delete mode 100644 docs/types/VideoPixelFormat.html delete mode 100644 docs/types/VideoTransferCharacteristics.html delete mode 100644 docs/types/WebGLPowerPreference.html delete mode 100644 docs/types/WebXRArrayCamera.html delete mode 100644 docs/types/WebXRCamera.html delete mode 100644 docs/types/Wrapping.html delete mode 100644 docs/types/XRAnchorSet.html delete mode 100644 docs/types/XRControllerEventType.html delete mode 100644 docs/types/XRDOMOverlayType.html delete mode 100644 docs/types/XRDepthDataFormat.html delete mode 100644 docs/types/XRDepthUsage.html delete mode 100644 docs/types/XREnvironmentBlendMode.html delete mode 100644 docs/types/XREye.html delete mode 100644 docs/types/XRFrameRequestCallback.html delete mode 100644 docs/types/XRHandJoint.html delete mode 100644 docs/types/XRHandJoints.html delete mode 100644 docs/types/XRHandedness.html delete mode 100644 docs/types/XRHitTestTrackableType.html delete mode 100644 docs/types/XRInputSourceEventType.html delete mode 100644 docs/types/XRLayerLayout.html delete mode 100644 docs/types/XRLayerQuality.html delete mode 100644 docs/types/XRMeshSet.html delete mode 100644 docs/types/XRPlaneOrientation.html delete mode 100644 docs/types/XRPlaneSet.html delete mode 100644 docs/types/XRReferenceSpaceType.html delete mode 100644 docs/types/XRSessionEventType.html delete mode 100644 docs/types/XRTargetRayMode.html delete mode 100644 docs/types/XRTextureType.html delete mode 100644 docs/types/XRVisibilityState.html delete mode 100644 docs/variables/ACESFilmicToneMapping.html delete mode 100644 docs/variables/AddEquation.html delete mode 100644 docs/variables/AddOperation.html delete mode 100644 docs/variables/AdditiveAnimationBlendMode.html delete mode 100644 docs/variables/AdditiveBlending.html delete mode 100644 docs/variables/AgXToneMapping.html delete mode 100644 docs/variables/AlphaFormat.html delete mode 100644 docs/variables/AlwaysCompare.html delete mode 100644 docs/variables/AlwaysDepth.html delete mode 100644 docs/variables/AlwaysStencilFunc.html delete mode 100644 docs/variables/BackSide.html delete mode 100644 docs/variables/BasicDepthPacking.html delete mode 100644 docs/variables/BasicShadowMap.html delete mode 100644 docs/variables/ByteType.html delete mode 100644 docs/variables/CineonToneMapping.html delete mode 100644 docs/variables/ClampToEdgeWrapping.html delete mode 100644 docs/variables/ConstantAlphaFactor.html delete mode 100644 docs/variables/ConstantColorFactor.html delete mode 100644 docs/variables/CubeReflectionMapping.html delete mode 100644 docs/variables/CubeRefractionMapping.html delete mode 100644 docs/variables/CubeUVReflectionMapping.html delete mode 100644 docs/variables/CullFaceBack.html delete mode 100644 docs/variables/CullFaceFront.html delete mode 100644 docs/variables/CullFaceFrontBack.html delete mode 100644 docs/variables/CullFaceNone.html delete mode 100644 docs/variables/CustomBlending.html delete mode 100644 docs/variables/CustomToneMapping.html delete mode 100644 docs/variables/DOMPoint-1.html delete mode 100644 docs/variables/DOMPointReadOnly-1.html delete mode 100644 docs/variables/DOMRectReadOnly-1.html delete mode 100644 docs/variables/DecrementStencilOp.html delete mode 100644 docs/variables/DecrementWrapStencilOp.html delete mode 100644 docs/variables/DepthFormat.html delete mode 100644 docs/variables/DepthStencilFormat.html delete mode 100644 docs/variables/DoubleSide.html delete mode 100644 docs/variables/DstAlphaFactor.html delete mode 100644 docs/variables/DstColorFactor.html delete mode 100644 docs/variables/DynamicCopyUsage.html delete mode 100644 docs/variables/DynamicDrawUsage.html delete mode 100644 docs/variables/DynamicReadUsage.html delete mode 100644 docs/variables/EqualCompare.html delete mode 100644 docs/variables/EqualDepth.html delete mode 100644 docs/variables/EqualStencilFunc.html delete mode 100644 docs/variables/EquirectangularReflectionMapping.html delete mode 100644 docs/variables/EquirectangularRefractionMapping.html delete mode 100644 docs/variables/FloatType.html delete mode 100644 docs/variables/FrontSide.html delete mode 100644 docs/variables/GLSL1.html delete mode 100644 docs/variables/GLSL3.html delete mode 100644 docs/variables/GreaterCompare.html delete mode 100644 docs/variables/GreaterDepth.html delete mode 100644 docs/variables/GreaterEqualCompare.html delete mode 100644 docs/variables/GreaterEqualDepth.html delete mode 100644 docs/variables/GreaterEqualStencilFunc.html delete mode 100644 docs/variables/GreaterStencilFunc.html delete mode 100644 docs/variables/HalfFloatType.html delete mode 100644 docs/variables/ImageBitmap-1.html delete mode 100644 docs/variables/ImageData-1.html delete mode 100644 docs/variables/IncrementStencilOp.html delete mode 100644 docs/variables/IncrementWrapStencilOp.html delete mode 100644 docs/variables/IntType.html delete mode 100644 docs/variables/InterpolateDiscrete.html delete mode 100644 docs/variables/InterpolateLinear.html delete mode 100644 docs/variables/InterpolateSmooth.html delete mode 100644 docs/variables/InvertStencilOp.html delete mode 100644 docs/variables/KeepStencilOp.html delete mode 100644 docs/variables/LessCompare.html delete mode 100644 docs/variables/LessDepth.html delete mode 100644 docs/variables/LessEqualCompare.html delete mode 100644 docs/variables/LessEqualDepth.html delete mode 100644 docs/variables/LessEqualStencilFunc.html delete mode 100644 docs/variables/LessStencilFunc.html delete mode 100644 docs/variables/LinearFilter.html delete mode 100644 docs/variables/LinearMipMapLinearFilter-1.html delete mode 100644 docs/variables/LinearMipMapNearestFilter-1.html delete mode 100644 docs/variables/LinearMipmapLinearFilter.html delete mode 100644 docs/variables/LinearMipmapNearestFilter.html delete mode 100644 docs/variables/LinearToneMapping.html delete mode 100644 docs/variables/LuminanceAlphaFormat.html delete mode 100644 docs/variables/LuminanceFormat.html delete mode 100644 docs/variables/MaxEquation.html delete mode 100644 docs/variables/MinEquation.html delete mode 100644 docs/variables/MirroredRepeatWrapping.html delete mode 100644 docs/variables/MixOperation.html delete mode 100644 docs/variables/MultiplyBlending.html delete mode 100644 docs/variables/MultiplyOperation.html delete mode 100644 docs/variables/NearestFilter.html delete mode 100644 docs/variables/NearestMipMapLinearFilter-1.html delete mode 100644 docs/variables/NearestMipMapNearestFilter-1.html delete mode 100644 docs/variables/NearestMipmapLinearFilter.html delete mode 100644 docs/variables/NearestMipmapNearestFilter.html delete mode 100644 docs/variables/NeutralToneMapping.html delete mode 100644 docs/variables/NeverCompare.html delete mode 100644 docs/variables/NeverDepth.html delete mode 100644 docs/variables/NeverStencilFunc.html delete mode 100644 docs/variables/NoBlending.html delete mode 100644 docs/variables/NoToneMapping.html delete mode 100644 docs/variables/NormalAnimationBlendMode.html delete mode 100644 docs/variables/NormalBlending.html delete mode 100644 docs/variables/NotEqualCompare.html delete mode 100644 docs/variables/NotEqualDepth.html delete mode 100644 docs/variables/NotEqualStencilFunc.html delete mode 100644 docs/variables/ObjectSpaceNormalMap.html delete mode 100644 docs/variables/OneFactor.html delete mode 100644 docs/variables/OneMinusConstantAlphaFactor.html delete mode 100644 docs/variables/OneMinusConstantColorFactor.html delete mode 100644 docs/variables/OneMinusDstAlphaFactor.html delete mode 100644 docs/variables/OneMinusDstColorFactor.html delete mode 100644 docs/variables/OneMinusSrcAlphaFactor.html delete mode 100644 docs/variables/OneMinusSrcColorFactor.html delete mode 100644 docs/variables/PCFShadowMap.html delete mode 100644 docs/variables/PCFSoftShadowMap.html delete mode 100644 docs/variables/ProgressEvent-1.html delete mode 100644 docs/variables/RED_GREEN_RGTC2_Format.html delete mode 100644 docs/variables/RED_RGTC1_Format.html delete mode 100644 docs/variables/RGBADepthPacking.html delete mode 100644 docs/variables/RGBAFormat.html delete mode 100644 docs/variables/RGBAIntegerFormat.html delete mode 100644 docs/variables/RGBA_ASTC_10x10_Format.html delete mode 100644 docs/variables/RGBA_ASTC_10x5_Format.html delete mode 100644 docs/variables/RGBA_ASTC_10x6_Format.html delete mode 100644 docs/variables/RGBA_ASTC_10x8_Format.html delete mode 100644 docs/variables/RGBA_ASTC_12x10_Format.html delete mode 100644 docs/variables/RGBA_ASTC_12x12_Format.html delete mode 100644 docs/variables/RGBA_ASTC_4x4_Format.html delete mode 100644 docs/variables/RGBA_ASTC_5x4_Format.html delete mode 100644 docs/variables/RGBA_ASTC_5x5_Format.html delete mode 100644 docs/variables/RGBA_ASTC_6x5_Format.html delete mode 100644 docs/variables/RGBA_ASTC_6x6_Format.html delete mode 100644 docs/variables/RGBA_ASTC_8x5_Format.html delete mode 100644 docs/variables/RGBA_ASTC_8x6_Format.html delete mode 100644 docs/variables/RGBA_ASTC_8x8_Format.html delete mode 100644 docs/variables/RGBA_BPTC_Format.html delete mode 100644 docs/variables/RGBA_ETC2_EAC_Format.html delete mode 100644 docs/variables/RGBA_PVRTC_2BPPV1_Format.html delete mode 100644 docs/variables/RGBA_PVRTC_4BPPV1_Format.html delete mode 100644 docs/variables/RGBA_S3TC_DXT1_Format.html delete mode 100644 docs/variables/RGBA_S3TC_DXT3_Format.html delete mode 100644 docs/variables/RGBA_S3TC_DXT5_Format.html delete mode 100644 docs/variables/RGBDepthPacking.html delete mode 100644 docs/variables/RGBFormat.html delete mode 100644 docs/variables/RGBIntegerFormat.html delete mode 100644 docs/variables/RGB_BPTC_SIGNED_Format.html delete mode 100644 docs/variables/RGB_BPTC_UNSIGNED_Format.html delete mode 100644 docs/variables/RGB_ETC1_Format.html delete mode 100644 docs/variables/RGB_ETC2_Format.html delete mode 100644 docs/variables/RGB_PVRTC_2BPPV1_Format.html delete mode 100644 docs/variables/RGB_PVRTC_4BPPV1_Format.html delete mode 100644 docs/variables/RGB_S3TC_DXT1_Format.html delete mode 100644 docs/variables/RGDepthPacking.html delete mode 100644 docs/variables/RGFormat.html delete mode 100644 docs/variables/RGIntegerFormat.html delete mode 100644 docs/variables/RedFormat.html delete mode 100644 docs/variables/RedIntegerFormat.html delete mode 100644 docs/variables/ReinhardToneMapping.html delete mode 100644 docs/variables/RepeatWrapping.html delete mode 100644 docs/variables/ReplaceStencilOp.html delete mode 100644 docs/variables/ReverseSubtractEquation.html delete mode 100644 docs/variables/SIGNED_RED_GREEN_RGTC2_Format.html delete mode 100644 docs/variables/SIGNED_RED_RGTC1_Format.html delete mode 100644 docs/variables/ShortType.html delete mode 100644 docs/variables/SrcAlphaFactor.html delete mode 100644 docs/variables/SrcAlphaSaturateFactor.html delete mode 100644 docs/variables/SrcColorFactor.html delete mode 100644 docs/variables/StaticCopyUsage.html delete mode 100644 docs/variables/StaticDrawUsage.html delete mode 100644 docs/variables/StaticReadUsage.html delete mode 100644 docs/variables/StreamCopyUsage.html delete mode 100644 docs/variables/StreamDrawUsage.html delete mode 100644 docs/variables/StreamReadUsage.html delete mode 100644 docs/variables/SubtractEquation.html delete mode 100644 docs/variables/SubtractiveBlending.html delete mode 100644 docs/variables/TangentSpaceNormalMap.html delete mode 100644 docs/variables/UVMapping.html delete mode 100644 docs/variables/UnsignedByteType.html delete mode 100644 docs/variables/UnsignedInt248Type.html delete mode 100644 docs/variables/UnsignedInt5999Type.html delete mode 100644 docs/variables/UnsignedIntType.html delete mode 100644 docs/variables/UnsignedShort4444Type.html delete mode 100644 docs/variables/UnsignedShort5551Type.html delete mode 100644 docs/variables/UnsignedShortType.html delete mode 100644 docs/variables/VSMShadowMap.html delete mode 100644 docs/variables/VideoColorSpace-1.html delete mode 100644 docs/variables/VideoFrame-1.html delete mode 100644 docs/variables/WebGLBuffer-1.html delete mode 100644 docs/variables/WebGLCoordinateSystem.html delete mode 100644 docs/variables/WebGLFramebuffer-1.html delete mode 100644 docs/variables/WebGLShader-1.html delete mode 100644 docs/variables/WebGLTexture-1.html delete mode 100644 docs/variables/WebGPUCoordinateSystem.html delete mode 100644 docs/variables/ZeroFactor.html delete mode 100644 docs/variables/ZeroStencilOp.html diff --git a/assets/docs-Vp-jV-V4.css b/assets/docs-DnDp3ZPO.css similarity index 85% rename from assets/docs-Vp-jV-V4.css rename to assets/docs-DnDp3ZPO.css index 2edbde5..197e847 100644 --- a/assets/docs-Vp-jV-V4.css +++ b/assets/docs-DnDp3ZPO.css @@ -1 +1 @@ -@layer typedoc{:root{--light-color-background: #f2f4f8;--light-color-background-secondary: #eff0f1;--light-color-warning-text: #222;--light-color-background-warning: #e6e600;--light-color-accent: #c5c7c9;--light-color-active-menu-item: var(--light-color-accent);--light-color-text: #222;--light-color-text-aside: #6e6e6e;--light-color-icon-background: var(--light-color-background);--light-color-icon-text: var(--light-color-text);--light-color-comment-tag-text: var(--light-color-text);--light-color-comment-tag: var(--light-color-background);--light-color-link: #1f70c2;--light-color-focus-outline: #3584e4;--light-color-ts-keyword: #056bd6;--light-color-ts-project: #b111c9;--light-color-ts-module: var(--light-color-ts-project);--light-color-ts-namespace: var(--light-color-ts-project);--light-color-ts-enum: #7e6f15;--light-color-ts-enum-member: var(--light-color-ts-enum);--light-color-ts-variable: #4760ec;--light-color-ts-function: #572be7;--light-color-ts-class: #1f70c2;--light-color-ts-interface: #108024;--light-color-ts-constructor: var(--light-color-ts-class);--light-color-ts-property: #9f5f30;--light-color-ts-method: #be3989;--light-color-ts-reference: #ff4d82;--light-color-ts-call-signature: var(--light-color-ts-method);--light-color-ts-index-signature: var(--light-color-ts-property);--light-color-ts-constructor-signature: var( --light-color-ts-constructor );--light-color-ts-parameter: var(--light-color-ts-variable);--light-color-ts-type-parameter: #a55c0e;--light-color-ts-accessor: #c73c3c;--light-color-ts-get-signature: var(--light-color-ts-accessor);--light-color-ts-set-signature: var(--light-color-ts-accessor);--light-color-ts-type-alias: #d51270;--light-color-document: #000000;--light-color-alert-note: #0969d9;--light-color-alert-tip: #1a7f37;--light-color-alert-important: #8250df;--light-color-alert-warning: #9a6700;--light-color-alert-caution: #cf222e;--light-external-icon: url("data:image/svg+xml;utf8,");--light-color-scheme: light;--dark-color-background: #2b2e33;--dark-color-background-secondary: #1e2024;--dark-color-background-warning: #bebe00;--dark-color-warning-text: #222;--dark-color-accent: #9096a2;--dark-color-active-menu-item: #5d5d6a;--dark-color-text: #f5f5f5;--dark-color-text-aside: #dddddd;--dark-color-icon-background: var(--dark-color-background-secondary);--dark-color-icon-text: var(--dark-color-text);--dark-color-comment-tag-text: var(--dark-color-text);--dark-color-comment-tag: var(--dark-color-background);--dark-color-link: #00aff4;--dark-color-focus-outline: #4c97f2;--dark-color-ts-keyword: #3399ff;--dark-color-ts-project: #e358ff;--dark-color-ts-module: var(--dark-color-ts-project);--dark-color-ts-namespace: var(--dark-color-ts-project);--dark-color-ts-enum: #f4d93e;--dark-color-ts-enum-member: var(--dark-color-ts-enum);--dark-color-ts-variable: #798dff;--dark-color-ts-function: #a280ff;--dark-color-ts-class: #8ac4ff;--dark-color-ts-interface: #6cff87;--dark-color-ts-constructor: var(--dark-color-ts-class);--dark-color-ts-property: #ff984d;--dark-color-ts-method: #ff4db8;--dark-color-ts-reference: #ff4d82;--dark-color-ts-call-signature: var(--dark-color-ts-method);--dark-color-ts-index-signature: var(--dark-color-ts-property);--dark-color-ts-constructor-signature: var(--dark-color-ts-constructor);--dark-color-ts-parameter: var(--dark-color-ts-variable);--dark-color-ts-type-parameter: #e07d13;--dark-color-ts-accessor: #ff6060;--dark-color-ts-get-signature: var(--dark-color-ts-accessor);--dark-color-ts-set-signature: var(--dark-color-ts-accessor);--dark-color-ts-type-alias: #ff6492;--dark-color-document: #ffffff;--dark-color-alert-note: #0969d9;--dark-color-alert-tip: #1a7f37;--dark-color-alert-important: #8250df;--dark-color-alert-warning: #9a6700;--dark-color-alert-caution: #cf222e;--dark-external-icon: url("data:image/svg+xml;utf8,");--dark-color-scheme: dark}@media (prefers-color-scheme: light){:root{--color-background: var(--light-color-background);--color-background-secondary: var( --light-color-background-secondary );--color-background-warning: var(--light-color-background-warning);--color-warning-text: var(--light-color-warning-text);--color-accent: var(--light-color-accent);--color-active-menu-item: var(--light-color-active-menu-item);--color-text: var(--light-color-text);--color-text-aside: var(--light-color-text-aside);--color-icon-background: var(--light-color-icon-background);--color-icon-text: var(--light-color-icon-text);--color-comment-tag-text: var(--light-color-text);--color-comment-tag: var(--light-color-background);--color-link: var(--light-color-link);--color-focus-outline: var(--light-color-focus-outline);--color-ts-keyword: var(--light-color-ts-keyword);--color-ts-project: var(--light-color-ts-project);--color-ts-module: var(--light-color-ts-module);--color-ts-namespace: var(--light-color-ts-namespace);--color-ts-enum: var(--light-color-ts-enum);--color-ts-enum-member: var(--light-color-ts-enum-member);--color-ts-variable: var(--light-color-ts-variable);--color-ts-function: var(--light-color-ts-function);--color-ts-class: var(--light-color-ts-class);--color-ts-interface: var(--light-color-ts-interface);--color-ts-constructor: var(--light-color-ts-constructor);--color-ts-property: var(--light-color-ts-property);--color-ts-method: var(--light-color-ts-method);--color-ts-reference: var(--light-color-ts-reference);--color-ts-call-signature: var(--light-color-ts-call-signature);--color-ts-index-signature: var(--light-color-ts-index-signature);--color-ts-constructor-signature: var( --light-color-ts-constructor-signature );--color-ts-parameter: var(--light-color-ts-parameter);--color-ts-type-parameter: var(--light-color-ts-type-parameter);--color-ts-accessor: var(--light-color-ts-accessor);--color-ts-get-signature: var(--light-color-ts-get-signature);--color-ts-set-signature: var(--light-color-ts-set-signature);--color-ts-type-alias: var(--light-color-ts-type-alias);--color-document: var(--light-color-document);--color-alert-note: var(--light-color-alert-note);--color-alert-tip: var(--light-color-alert-tip);--color-alert-important: var(--light-color-alert-important);--color-alert-warning: var(--light-color-alert-warning);--color-alert-caution: var(--light-color-alert-caution);--external-icon: var(--light-external-icon);--color-scheme: var(--light-color-scheme)}}@media (prefers-color-scheme: dark){:root{--color-background: var(--dark-color-background);--color-background-secondary: var( --dark-color-background-secondary );--color-background-warning: var(--dark-color-background-warning);--color-warning-text: var(--dark-color-warning-text);--color-accent: var(--dark-color-accent);--color-active-menu-item: var(--dark-color-active-menu-item);--color-text: var(--dark-color-text);--color-text-aside: var(--dark-color-text-aside);--color-icon-background: var(--dark-color-icon-background);--color-icon-text: var(--dark-color-icon-text);--color-comment-tag-text: var(--dark-color-text);--color-comment-tag: var(--dark-color-background);--color-link: var(--dark-color-link);--color-focus-outline: var(--dark-color-focus-outline);--color-ts-keyword: var(--dark-color-ts-keyword);--color-ts-project: var(--dark-color-ts-project);--color-ts-module: var(--dark-color-ts-module);--color-ts-namespace: var(--dark-color-ts-namespace);--color-ts-enum: var(--dark-color-ts-enum);--color-ts-enum-member: var(--dark-color-ts-enum-member);--color-ts-variable: var(--dark-color-ts-variable);--color-ts-function: var(--dark-color-ts-function);--color-ts-class: var(--dark-color-ts-class);--color-ts-interface: var(--dark-color-ts-interface);--color-ts-constructor: var(--dark-color-ts-constructor);--color-ts-property: var(--dark-color-ts-property);--color-ts-method: var(--dark-color-ts-method);--color-ts-reference: var(--dark-color-ts-reference);--color-ts-call-signature: var(--dark-color-ts-call-signature);--color-ts-index-signature: var(--dark-color-ts-index-signature);--color-ts-constructor-signature: var( --dark-color-ts-constructor-signature );--color-ts-parameter: var(--dark-color-ts-parameter);--color-ts-type-parameter: var(--dark-color-ts-type-parameter);--color-ts-accessor: var(--dark-color-ts-accessor);--color-ts-get-signature: var(--dark-color-ts-get-signature);--color-ts-set-signature: var(--dark-color-ts-set-signature);--color-ts-type-alias: var(--dark-color-ts-type-alias);--color-document: var(--dark-color-document);--color-alert-note: var(--dark-color-alert-note);--color-alert-tip: var(--dark-color-alert-tip);--color-alert-important: var(--dark-color-alert-important);--color-alert-warning: var(--dark-color-alert-warning);--color-alert-caution: var(--dark-color-alert-caution);--external-icon: var(--dark-external-icon);--color-scheme: var(--dark-color-scheme)}}html{color-scheme:var(--color-scheme)}body{margin:0}:root[data-theme=light]{--color-background: var(--light-color-background);--color-background-secondary: var(--light-color-background-secondary);--color-background-warning: var(--light-color-background-warning);--color-warning-text: var(--light-color-warning-text);--color-icon-background: var(--light-color-icon-background);--color-accent: var(--light-color-accent);--color-active-menu-item: var(--light-color-active-menu-item);--color-text: var(--light-color-text);--color-text-aside: var(--light-color-text-aside);--color-icon-text: var(--light-color-icon-text);--color-comment-tag-text: var(--light-color-text);--color-comment-tag: var(--light-color-background);--color-link: var(--light-color-link);--color-focus-outline: var(--light-color-focus-outline);--color-ts-keyword: var(--light-color-ts-keyword);--color-ts-project: var(--light-color-ts-project);--color-ts-module: var(--light-color-ts-module);--color-ts-namespace: var(--light-color-ts-namespace);--color-ts-enum: var(--light-color-ts-enum);--color-ts-enum-member: var(--light-color-ts-enum-member);--color-ts-variable: var(--light-color-ts-variable);--color-ts-function: var(--light-color-ts-function);--color-ts-class: var(--light-color-ts-class);--color-ts-interface: var(--light-color-ts-interface);--color-ts-constructor: var(--light-color-ts-constructor);--color-ts-property: var(--light-color-ts-property);--color-ts-method: var(--light-color-ts-method);--color-ts-reference: var(--light-color-ts-reference);--color-ts-call-signature: var(--light-color-ts-call-signature);--color-ts-index-signature: var(--light-color-ts-index-signature);--color-ts-constructor-signature: var( --light-color-ts-constructor-signature );--color-ts-parameter: var(--light-color-ts-parameter);--color-ts-type-parameter: var(--light-color-ts-type-parameter);--color-ts-accessor: var(--light-color-ts-accessor);--color-ts-get-signature: var(--light-color-ts-get-signature);--color-ts-set-signature: var(--light-color-ts-set-signature);--color-ts-type-alias: var(--light-color-ts-type-alias);--color-document: var(--light-color-document);--color-note: var(--light-color-note);--color-tip: var(--light-color-tip);--color-important: var(--light-color-important);--color-warning: var(--light-color-warning);--color-caution: var(--light-color-caution);--external-icon: var(--light-external-icon);--color-scheme: var(--light-color-scheme)}:root[data-theme=dark]{--color-background: var(--dark-color-background);--color-background-secondary: var(--dark-color-background-secondary);--color-background-warning: var(--dark-color-background-warning);--color-warning-text: var(--dark-color-warning-text);--color-icon-background: var(--dark-color-icon-background);--color-accent: var(--dark-color-accent);--color-active-menu-item: var(--dark-color-active-menu-item);--color-text: var(--dark-color-text);--color-text-aside: var(--dark-color-text-aside);--color-icon-text: var(--dark-color-icon-text);--color-comment-tag-text: var(--dark-color-text);--color-comment-tag: var(--dark-color-background);--color-link: var(--dark-color-link);--color-focus-outline: var(--dark-color-focus-outline);--color-ts-keyword: var(--dark-color-ts-keyword);--color-ts-project: var(--dark-color-ts-project);--color-ts-module: var(--dark-color-ts-module);--color-ts-namespace: var(--dark-color-ts-namespace);--color-ts-enum: var(--dark-color-ts-enum);--color-ts-enum-member: var(--dark-color-ts-enum-member);--color-ts-variable: var(--dark-color-ts-variable);--color-ts-function: var(--dark-color-ts-function);--color-ts-class: var(--dark-color-ts-class);--color-ts-interface: var(--dark-color-ts-interface);--color-ts-constructor: var(--dark-color-ts-constructor);--color-ts-property: var(--dark-color-ts-property);--color-ts-method: var(--dark-color-ts-method);--color-ts-reference: var(--dark-color-ts-reference);--color-ts-call-signature: var(--dark-color-ts-call-signature);--color-ts-index-signature: var(--dark-color-ts-index-signature);--color-ts-constructor-signature: var( --dark-color-ts-constructor-signature );--color-ts-parameter: var(--dark-color-ts-parameter);--color-ts-type-parameter: var(--dark-color-ts-type-parameter);--color-ts-accessor: var(--dark-color-ts-accessor);--color-ts-get-signature: var(--dark-color-ts-get-signature);--color-ts-set-signature: var(--dark-color-ts-set-signature);--color-ts-type-alias: var(--dark-color-ts-type-alias);--color-document: var(--dark-color-document);--color-note: var(--dark-color-note);--color-tip: var(--dark-color-tip);--color-important: var(--dark-color-important);--color-warning: var(--dark-color-warning);--color-caution: var(--dark-color-caution);--external-icon: var(--dark-external-icon);--color-scheme: var(--dark-color-scheme)}*:focus-visible,.tsd-accordion-summary:focus-visible svg{outline:2px solid var(--color-focus-outline)}.always-visible,.always-visible .tsd-signatures{display:inherit!important}h1,h2,h3,h4,h5,h6{line-height:1.2}h1{font-size:1.875rem;margin:.67rem 0}h2{font-size:1.5rem;margin:.83rem 0}h3{font-size:1.25rem;margin:1rem 0}h4{font-size:1.05rem;margin:1.33rem 0}h5{font-size:1rem;margin:1.5rem 0}h6{font-size:.875rem;margin:2.33rem 0}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 34px}.container{max-width:1700px;padding:0 2rem}footer{border-top:1px solid var(--color-accent);padding-top:1rem;padding-bottom:1rem;max-height:3.5rem}footer>p{margin:0 1em}.container-main{margin:0 auto;min-height:calc(100vh - 97px - 4rem)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1;visibility:visible}to{opacity:0}}@keyframes fade-in-delayed{0%{opacity:0}33%{opacity:0}to{opacity:1}}@keyframes fade-out-delayed{0%{opacity:1;visibility:visible}66%{opacity:0}to{opacity:0}}@keyframes pop-in-from-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes pop-out-to-right{0%{transform:translate(0);visibility:visible}to{transform:translate(100%)}}body{background:var(--color-background);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;color:var(--color-text)}a{color:var(--color-link);text-decoration:none}a:hover{text-decoration:underline}a.external[target=_blank]{background-image:var(--external-icon);background-position:top 3px right;background-repeat:no-repeat;padding-right:13px}a.tsd-anchor-link{color:var(--color-text)}code,pre{font-family:Menlo,Monaco,Consolas,Courier New,monospace;padding:.2em;margin:0;font-size:.875rem;border-radius:.8em}pre{position:relative;white-space:pre-wrap;word-wrap:break-word;padding:10px;border:1px solid var(--color-accent);margin-bottom:8px}pre code{padding:0;font-size:100%}pre>button{position:absolute;top:10px;right:10px;opacity:0;transition:opacity .1s;box-sizing:border-box}pre:hover>button,pre>button.visible{opacity:1}blockquote{margin:1em 0;padding-left:1em;border-left:4px solid gray}.tsd-typography{line-height:1.333em}.tsd-typography ul{list-style:square;padding:0 0 0 20px;margin:0}.tsd-typography .tsd-index-panel h3,.tsd-index-panel .tsd-typography h3,.tsd-typography h4,.tsd-typography h5,.tsd-typography h6{font-size:1em}.tsd-typography h5,.tsd-typography h6{font-weight:400}.tsd-typography p,.tsd-typography ul,.tsd-typography ol{margin:1em 0}.tsd-typography table{border-collapse:collapse;border:none}.tsd-typography td,.tsd-typography th{padding:6px 13px;border:1px solid var(--color-accent)}.tsd-typography thead,.tsd-typography tr:nth-child(2n){background-color:var(--color-background-secondary)}.tsd-alert{padding:8px 16px;margin-bottom:16px;border-left:.25em solid var(--alert-color)}.tsd-alert blockquote>:last-child,.tsd-alert>:last-child{margin-bottom:0}.tsd-alert-title{color:var(--alert-color);display:inline-flex;align-items:center}.tsd-alert-title span{margin-left:4px}.tsd-alert-note{--alert-color: var(--color-alert-note)}.tsd-alert-tip{--alert-color: var(--color-alert-tip)}.tsd-alert-important{--alert-color: var(--color-alert-important)}.tsd-alert-warning{--alert-color: var(--color-alert-warning)}.tsd-alert-caution{--alert-color: var(--color-alert-caution)}.tsd-breadcrumb{margin:0;padding:0;color:var(--color-text-aside)}.tsd-breadcrumb a{color:var(--color-text-aside);text-decoration:none}.tsd-breadcrumb a:hover{text-decoration:underline}.tsd-breadcrumb li{display:inline}.tsd-breadcrumb li:after{content:" / "}.tsd-comment-tags{display:flex;flex-direction:column}dl.tsd-comment-tag-group{display:flex;align-items:center;overflow:hidden;margin:.5em 0}dl.tsd-comment-tag-group dt{display:flex;margin-right:.5em;font-size:.875em;font-weight:400}dl.tsd-comment-tag-group dd{margin:0}code.tsd-tag{padding:.25em .4em;border:.1em solid var(--color-accent);margin-right:.25em;font-size:70%}h1 code.tsd-tag:first-of-type{margin-left:.25em}dl.tsd-comment-tag-group dd:before,dl.tsd-comment-tag-group dd:after{content:" "}dl.tsd-comment-tag-group dd pre,dl.tsd-comment-tag-group dd:after{clear:both}dl.tsd-comment-tag-group p{margin:0}.tsd-panel.tsd-comment .lead{font-size:1.1em;line-height:1.333em;margin-bottom:2em}.tsd-panel.tsd-comment .lead:last-child{margin-bottom:0}.tsd-filter-visibility h4{font-size:1rem;padding-top:.75rem;padding-bottom:.5rem;margin:0}.tsd-filter-item:not(:last-child){margin-bottom:.5rem}.tsd-filter-input{display:flex;width:-moz-fit-content;width:fit-content;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tsd-filter-input input[type=checkbox]{cursor:pointer;position:absolute;width:1.5em;height:1.5em;opacity:0}.tsd-filter-input input[type=checkbox]:disabled{pointer-events:none}.tsd-filter-input svg{cursor:pointer;width:1.5em;height:1.5em;margin-right:.5em;border-radius:.33em;opacity:.99}.tsd-filter-input input[type=checkbox]:focus-visible+svg{outline:2px solid var(--color-focus-outline)}.tsd-checkbox-background{fill:var(--color-accent)}input[type=checkbox]:checked~svg .tsd-checkbox-checkmark{stroke:var(--color-text)}.tsd-filter-input input:disabled~svg>.tsd-checkbox-background{fill:var(--color-background);stroke:var(--color-accent);stroke-width:.25rem}.tsd-filter-input input:disabled~svg>.tsd-checkbox-checkmark{stroke:var(--color-accent)}.settings-label{font-weight:700;text-transform:uppercase;display:inline-block}.tsd-filter-visibility .settings-label{margin:.75rem 0 .5rem}.tsd-theme-toggle .settings-label{margin:.75rem .75rem 0 0}.tsd-hierarchy h4 label:hover span{text-decoration:underline}.tsd-hierarchy{list-style:square;margin:0}.tsd-hierarchy-target{font-weight:700}.tsd-hierarchy-toggle{color:var(--color-link);cursor:pointer}.tsd-full-hierarchy:not(:last-child){margin-bottom:1em;padding-bottom:1em;border-bottom:1px solid var(--color-accent)}.tsd-full-hierarchy,.tsd-full-hierarchy ul{list-style:none;margin:0;padding:0}.tsd-full-hierarchy ul{padding-left:1.5rem}.tsd-full-hierarchy a{padding:.25rem 0!important;font-size:1rem;display:inline-flex;align-items:center;color:var(--color-text)}.tsd-full-hierarchy svg[data-dropdown]{cursor:pointer}.tsd-full-hierarchy svg[data-dropdown=false]{transform:rotate(-90deg)}.tsd-full-hierarchy svg[data-dropdown=false]~ul{display:none}.tsd-panel-group.tsd-index-group{margin-bottom:0}.tsd-index-panel .tsd-index-list{list-style:none;line-height:1.333em;margin:0;padding:.25rem 0 0;overflow:hidden;display:grid;grid-template-columns:repeat(3,1fr);column-gap:1rem;grid-template-rows:auto}@media (max-width: 1024px){.tsd-index-panel .tsd-index-list{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.tsd-index-panel .tsd-index-list{grid-template-columns:repeat(1,1fr)}}.tsd-index-panel .tsd-index-list li{-webkit-page-break-inside:avoid;-moz-page-break-inside:avoid;-ms-page-break-inside:avoid;-o-page-break-inside:avoid;page-break-inside:avoid}.tsd-flag{display:inline-block;padding:.25em .4em;border-radius:4px;color:var(--color-comment-tag-text);background-color:var(--color-comment-tag);text-indent:0;font-size:75%;line-height:1;font-weight:400}.tsd-anchor{position:relative;top:-100px}.tsd-member{position:relative}.tsd-member .tsd-anchor+h3{display:flex;align-items:center;margin-top:0;margin-bottom:0;border-bottom:none}.tsd-navigation.settings{margin:1rem 0}.tsd-navigation>a,.tsd-navigation .tsd-accordion-summary{width:calc(100% - .25rem);display:flex;align-items:center}.tsd-navigation a,.tsd-navigation summary>span,.tsd-page-navigation a{display:flex;width:calc(100% - .25rem);align-items:center;padding:.25rem;color:var(--color-text);text-decoration:none;box-sizing:border-box}.tsd-navigation a.current,.tsd-page-navigation a.current{background:var(--color-active-menu-item)}.tsd-navigation a:hover,.tsd-page-navigation a:hover{text-decoration:underline}.tsd-navigation ul,.tsd-page-navigation ul{margin-top:0;margin-bottom:0;padding:0;list-style:none}.tsd-navigation li,.tsd-page-navigation li{padding:0;max-width:100%}.tsd-navigation .tsd-nav-link{display:none}.tsd-nested-navigation{margin-left:3rem}.tsd-nested-navigation>li>details{margin-left:-1.5rem}.tsd-small-nested-navigation{margin-left:1.5rem}.tsd-small-nested-navigation>li>details{margin-left:-1.5rem}.tsd-page-navigation-section{margin-left:10px}.tsd-page-navigation-section>summary{padding:.25rem}.tsd-page-navigation-section>div{margin-left:20px}.tsd-page-navigation ul{padding-left:1.75rem}#tsd-sidebar-links a{margin-top:0;margin-bottom:.5rem;line-height:1.25rem}#tsd-sidebar-links a:last-of-type{margin-bottom:0}a.tsd-index-link{padding:.25rem 0!important;font-size:1rem;line-height:1.25rem;display:inline-flex;align-items:center;color:var(--color-text)}.tsd-accordion-summary{list-style-type:none;outline:none}.tsd-accordion-summary::-webkit-details-marker{display:none}.tsd-accordion-summary,.tsd-accordion-summary a{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tsd-accordion-summary a{width:calc(100% - 1.5rem)}.tsd-accordion-summary>*{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}.tsd-accordion .tsd-accordion-summary>svg{margin-left:.25rem;vertical-align:text-top}.tsd-accordion:not([open])>.tsd-accordion-summary>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h1>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h2>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h3>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h4>svg:first-child{transform:rotate(-90deg)}.tsd-index-content>:not(:first-child){margin-top:.75rem}.tsd-index-heading{margin-top:1.5rem;margin-bottom:.75rem}.tsd-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tsd-kind-icon{margin-right:.5rem;width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem}.tsd-signature>.tsd-kind-icon{margin-right:.8rem}.tsd-panel{margin-bottom:2.5rem}.tsd-panel.tsd-member{margin-bottom:4rem}.tsd-panel:empty{display:none}.tsd-panel>h1,.tsd-panel>h2,.tsd-panel>h3{margin:1.5rem -1.5rem .75rem;padding:0 1.5rem .75rem}.tsd-panel>h1.tsd-before-signature,.tsd-panel>h2.tsd-before-signature,.tsd-panel>h3.tsd-before-signature{margin-bottom:0;border-bottom:none}.tsd-panel-group,.tsd-panel-group.tsd-index-group{margin:2rem 0}.tsd-panel-group.tsd-index-group details{margin:2rem 0}.tsd-panel-group>.tsd-accordion-summary{margin-bottom:1rem}#tsd-search{transition:background-color .2s}#tsd-search .title{position:relative;z-index:2}#tsd-search .field{position:absolute;left:0;top:0;right:2.5rem;height:100%}#tsd-search .field input{box-sizing:border-box;position:relative;top:-50px;z-index:1;width:100%;padding:0 10px;opacity:0;outline:0;border:0;background:transparent;color:var(--color-text)}#tsd-search .field label{position:absolute;overflow:hidden;right:-40px}#tsd-search .field input,#tsd-search .title,#tsd-toolbar-links a{transition:opacity .2s}#tsd-search .results{position:absolute;visibility:hidden;top:40px;width:100%;margin:0;padding:0;list-style:none;box-shadow:0 0 4px #00000040}#tsd-search .results li{background-color:var(--color-background);line-height:initial;padding:4px}#tsd-search .results li:nth-child(2n){background-color:var(--color-background-secondary)}#tsd-search .results li.state{display:none}#tsd-search .results li.current:not(.no-results),#tsd-search .results li:hover:not(.no-results){background-color:var(--color-accent)}#tsd-search .results a{display:flex;align-items:center;padding:.25rem;box-sizing:border-box}#tsd-search .results a:before{top:10px}#tsd-search .results span.parent{color:var(--color-text-aside);font-weight:400}#tsd-search.has-focus{background-color:var(--color-accent)}#tsd-search.has-focus .field input{top:0;opacity:1}#tsd-search.has-focus .title,#tsd-search.has-focus #tsd-toolbar-links a{z-index:0;opacity:0}#tsd-search.has-focus .results{visibility:visible}#tsd-search.loading .results li.state.loading,#tsd-search.failure .results li.state.failure{display:block}#tsd-toolbar-links{position:absolute;top:0;right:2rem;height:100%;display:flex;align-items:center;justify-content:flex-end}#tsd-toolbar-links a{margin-left:1.5rem}#tsd-toolbar-links a:hover{text-decoration:underline}.tsd-signature{margin:0 0 1rem;padding:1rem .5rem;border:1px solid var(--color-accent);font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;overflow-x:auto}.tsd-signature-keyword{color:var(--color-ts-keyword);font-weight:400}.tsd-signature-symbol{color:var(--color-text-aside);font-weight:400}.tsd-signature-type{font-style:italic;font-weight:400}.tsd-signatures{padding:0;margin:0 0 1em;list-style-type:none}.tsd-signatures .tsd-signature{margin:0;border-color:var(--color-accent);border-width:1px 0;transition:background-color .1s}.tsd-signatures .tsd-index-signature:not(:last-child){margin-bottom:1em}.tsd-signatures .tsd-index-signature .tsd-signature,.tsd-description .tsd-signatures .tsd-signature{border-width:1px}ul.tsd-parameter-list,ul.tsd-type-parameter-list{list-style:square;margin:0;padding-left:20px}ul.tsd-parameter-list>li.tsd-parameter-signature,ul.tsd-type-parameter-list>li.tsd-parameter-signature{list-style:none;margin-left:-20px}ul.tsd-parameter-list h5,ul.tsd-type-parameter-list h5{font-size:16px;margin:1em 0 .5em}.tsd-sources{margin-top:1rem;font-size:.875em}.tsd-sources a{color:var(--color-text-aside);text-decoration:underline}.tsd-sources ul{list-style:none;padding:0}.tsd-page-toolbar{position:sticky;z-index:1;top:0;left:0;width:100%;color:var(--color-text);background:var(--color-background-secondary);border-bottom:1px var(--color-accent) solid;transition:transform .3s ease-in-out}.tsd-page-toolbar a{color:var(--color-text);text-decoration:none}.tsd-page-toolbar a.title{font-weight:700}.tsd-page-toolbar a.title:hover{text-decoration:underline}.tsd-page-toolbar .tsd-toolbar-contents{display:flex;justify-content:space-between;height:2.5rem;margin:0 auto}.tsd-page-toolbar .table-cell{position:relative;white-space:nowrap;line-height:40px}.tsd-page-toolbar .table-cell:first-child{width:100%}.tsd-page-toolbar .tsd-toolbar-icon{box-sizing:border-box;line-height:0;padding:12px 0}.tsd-widget{display:inline-block;overflow:hidden;opacity:.8;height:40px;transition:opacity .1s,background-color .2s;vertical-align:bottom;cursor:pointer}.tsd-widget:hover{opacity:.9}.tsd-widget.active{opacity:1;background-color:var(--color-accent)}.tsd-widget.no-caption{width:40px}.tsd-widget.no-caption:before{margin:0}.tsd-widget.options,.tsd-widget.menu{display:none}input[type=checkbox]+.tsd-widget:before{background-position:-120px 0}input[type=checkbox]:checked+.tsd-widget:before{background-position:-160px 0}img{max-width:100%}.tsd-member-summary-name{display:inline-flex;align-items:center;padding:.25rem;text-decoration:none}.tsd-anchor-icon{display:inline-flex;align-items:center;margin-left:.5rem;color:var(--color-text)}.tsd-anchor-icon svg{width:1em;height:1em;visibility:hidden}.tsd-member-summary-name:hover>.tsd-anchor-icon svg,.tsd-anchor-link:hover>.tsd-anchor-icon svg{visibility:visible}.deprecated{text-decoration:line-through!important}.warning{padding:1rem;color:var(--color-warning-text);background:var(--color-background-warning)}.tsd-kind-project{color:var(--color-ts-project)}.tsd-kind-module{color:var(--color-ts-module)}.tsd-kind-namespace{color:var(--color-ts-namespace)}.tsd-kind-enum{color:var(--color-ts-enum)}.tsd-kind-enum-member{color:var(--color-ts-enum-member)}.tsd-kind-variable{color:var(--color-ts-variable)}.tsd-kind-function{color:var(--color-ts-function)}.tsd-kind-class{color:var(--color-ts-class)}.tsd-kind-interface{color:var(--color-ts-interface)}.tsd-kind-constructor{color:var(--color-ts-constructor)}.tsd-kind-property{color:var(--color-ts-property)}.tsd-kind-method{color:var(--color-ts-method)}.tsd-kind-reference{color:var(--color-ts-reference)}.tsd-kind-call-signature{color:var(--color-ts-call-signature)}.tsd-kind-index-signature{color:var(--color-ts-index-signature)}.tsd-kind-constructor-signature{color:var(--color-ts-constructor-signature)}.tsd-kind-parameter{color:var(--color-ts-parameter)}.tsd-kind-type-parameter{color:var(--color-ts-type-parameter)}.tsd-kind-accessor{color:var(--color-ts-accessor)}.tsd-kind-get-signature{color:var(--color-ts-get-signature)}.tsd-kind-set-signature{color:var(--color-ts-set-signature)}.tsd-kind-type-alias{color:var(--color-ts-type-alias)}.tsd-kind-icon~span{color:var(--color-text)}*{scrollbar-width:thin;scrollbar-color:var(--color-accent) var(--color-icon-background)}*::-webkit-scrollbar{width:.75rem}*::-webkit-scrollbar-track{background:var(--color-icon-background)}*::-webkit-scrollbar-thumb{background-color:var(--color-accent);border-radius:999rem;border:.25rem solid var(--color-icon-background)}@media (max-width: 769px){.tsd-widget.options,.tsd-widget.menu{display:inline-block}.container-main{display:flex}html .col-content{float:none;max-width:100%;width:100%}html .col-sidebar{position:fixed!important;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:1024;top:0!important;bottom:0!important;left:auto!important;right:0!important;padding:1.5rem 1.5rem 0 0;width:75vw;visibility:hidden;background-color:var(--color-background);transform:translate(100%)}html .col-sidebar>*:last-child{padding-bottom:20px}html .overlay{content:"";display:block;position:fixed;z-index:1023;top:0;left:0;right:0;bottom:0;background-color:#000000bf;visibility:hidden}.to-has-menu .overlay{animation:fade-in .4s}.to-has-menu .col-sidebar{animation:pop-in-from-right .4s}.from-has-menu .overlay{animation:fade-out .4s}.from-has-menu .col-sidebar{animation:pop-out-to-right .4s}.has-menu body{overflow:hidden}.has-menu .overlay{visibility:visible}.has-menu .col-sidebar{visibility:visible;transform:translate(0);display:flex;flex-direction:column;gap:1.5rem;max-height:100vh;padding:1rem 2rem}.has-menu .tsd-navigation{max-height:100%}#tsd-toolbar-links{display:none}.tsd-navigation .tsd-nav-link{display:flex}}@media (min-width: 770px){.container-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-areas:"sidebar content";margin:2rem auto}.col-sidebar{grid-area:sidebar}.col-content{grid-area:content;padding:0 1rem}}@media (min-width: 770px) and (max-width: 1399px){.col-sidebar{max-height:calc(100vh - 2rem - 42px);overflow:auto;position:sticky;top:42px;padding-top:1rem}.site-menu{margin-top:1rem}}@media (min-width: 1200px){.container-main{grid-template-columns:minmax(0,1fr) minmax(0,2.5fr) minmax(0,20rem);grid-template-areas:"sidebar content toc"}.col-sidebar{display:contents}.page-menu{grid-area:toc;padding-left:1rem}.site-menu{grid-area:sidebar}.site-menu{margin-top:1rem}.page-menu,.site-menu{max-height:calc(100vh - 2rem - 42px);overflow:auto;position:sticky;top:42px}}}:root{--light-hl-0: #001080;--dark-hl-0: #9CDCFE;--light-hl-1: #000000;--dark-hl-1: #D4D4D4;--light-hl-2: #AF00DB;--dark-hl-2: #C586C0;--light-hl-3: #A31515;--dark-hl-3: #CE9178;--light-hl-4: #0000FF;--dark-hl-4: #569CD6;--light-hl-5: #0070C1;--dark-hl-5: #4FC1FF;--light-hl-6: #795E26;--dark-hl-6: #DCDCAA;--light-hl-7: #000000;--dark-hl-7: #C8C8C8;--light-hl-8: #098658;--dark-hl-8: #B5CEA8;--light-hl-9: #008000;--dark-hl-9: #6A9955;--light-hl-10: #267F99;--dark-hl-10: #4EC9B0;--light-code-background: #FFFFFF;--dark-code-background: #1E1E1E}@media (prefers-color-scheme: light){:root{--hl-0: var(--light-hl-0);--hl-1: var(--light-hl-1);--hl-2: var(--light-hl-2);--hl-3: var(--light-hl-3);--hl-4: var(--light-hl-4);--hl-5: var(--light-hl-5);--hl-6: var(--light-hl-6);--hl-7: var(--light-hl-7);--hl-8: var(--light-hl-8);--hl-9: var(--light-hl-9);--hl-10: var(--light-hl-10);--code-background: var(--light-code-background)}}@media (prefers-color-scheme: dark){:root{--hl-0: var(--dark-hl-0);--hl-1: var(--dark-hl-1);--hl-2: var(--dark-hl-2);--hl-3: var(--dark-hl-3);--hl-4: var(--dark-hl-4);--hl-5: var(--dark-hl-5);--hl-6: var(--dark-hl-6);--hl-7: var(--dark-hl-7);--hl-8: var(--dark-hl-8);--hl-9: var(--dark-hl-9);--hl-10: var(--dark-hl-10);--code-background: var(--dark-code-background)}}:root[data-theme=light]{--hl-0: var(--light-hl-0);--hl-1: var(--light-hl-1);--hl-2: var(--light-hl-2);--hl-3: var(--light-hl-3);--hl-4: var(--light-hl-4);--hl-5: var(--light-hl-5);--hl-6: var(--light-hl-6);--hl-7: var(--light-hl-7);--hl-8: var(--light-hl-8);--hl-9: var(--light-hl-9);--hl-10: var(--light-hl-10);--code-background: var(--light-code-background)}:root[data-theme=dark]{--hl-0: var(--dark-hl-0);--hl-1: var(--dark-hl-1);--hl-2: var(--dark-hl-2);--hl-3: var(--dark-hl-3);--hl-4: var(--dark-hl-4);--hl-5: var(--dark-hl-5);--hl-6: var(--dark-hl-6);--hl-7: var(--dark-hl-7);--hl-8: var(--dark-hl-8);--hl-9: var(--dark-hl-9);--hl-10: var(--dark-hl-10);--code-background: var(--dark-code-background)}.hl-0{color:var(--hl-0)}.hl-1{color:var(--hl-1)}.hl-2{color:var(--hl-2)}.hl-3{color:var(--hl-3)}.hl-4{color:var(--hl-4)}.hl-5{color:var(--hl-5)}.hl-6{color:var(--hl-6)}.hl-7{color:var(--hl-7)}.hl-8{color:var(--hl-8)}.hl-9{color:var(--hl-9)}.hl-10{color:var(--hl-10)}pre,code{background:var(--code-background)}html,body{overflow-x:hidden}:root{--hl-0: var(--dark-hl-0) !important;--hl-1: var(--dark-hl-1) !important;--hl-2: var(--dark-hl-2) !important;--hl-3: var(--dark-hl-3) !important;--hl-4: var(--dark-hl-4) !important;--hl-5: var(--dark-hl-5) !important;--code-background: var(--dark-code-background) !important}:root{--color-background: var(--dark-color-background) !important;--color-background-secondary: var( --dark-color-background-secondary ) !important;--color-background-warning: var(--dark-color-background-warning) !important;--color-warning-text: var(--dark-color-warning-text) !important;--color-icon-background: var(--dark-color-icon-background) !important;--color-accent: var(--dark-color-accent) !important;--color-active-menu-item: var(--dark-color-active-menu-item) !important;--color-text: var(--dark-color-text) !important;--color-text-aside: var(--dark-color-text-aside) !important;--color-link: var(--dark-color-link) !important;--color-focus-outline: var(--dark-color-focus-outline) !important;--color-ts-keyword: var(--dark-color-ts-keyword) !important;--color-ts-module: var(--dark-color-ts-module) !important;--color-ts-namespace: var(--dark-color-ts-namespace) !important;--color-ts-enum: var(--dark-color-ts-enum) !important;--color-ts-enum-member: var(--dark-color-ts-enum-member) !important;--color-ts-variable: var(--dark-color-ts-variable) !important;--color-ts-function: var(--dark-color-ts-function) !important;--color-ts-class: var(--dark-color-ts-class) !important;--color-ts-interface: var(--dark-color-ts-interface) !important;--color-ts-constructor: var(--dark-color-ts-constructor) !important;--color-ts-property: var(--dark-color-ts-property) !important;--color-ts-method: var(--dark-color-ts-method) !important;--color-ts-call-signature: var(--dark-color-ts-call-signature) !important;--color-ts-index-signature: var(--dark-color-ts-index-signature) !important;--color-ts-constructor-signature: var( --dark-color-ts-constructor-signature ) !important;--color-ts-parameter: var(--dark-color-ts-parameter) !important;--color-ts-type-parameter: var(--dark-color-ts-type-parameter) !important;--color-ts-accessor: var(--dark-color-ts-accessor) !important;--color-ts-get-signature: var(--dark-color-ts-get-signature) !important;--color-ts-set-signature: var(--dark-color-ts-set-signature) !important;--color-ts-type-alias: var(--dark-color-ts-type-alias) !important;--color-document: var(--dark-color-document) !important;--external-icon: var(--dark-external-icon) !important;--color-scheme: var(--dark-color-scheme) !important}.tsd-typography,.tsd-signature{line-height:1.5!important}.container-main{grid-template-columns:minmax(0,1fr) minmax(0,3fr);grid-template-areas:"sidebar content"}.page-menu{display:none!important}.container{padding:0 1rem!important}.tsd-page-toolbar{background:transparent;border:none;padding-top:1rem;padding-bottom:1rem}@media (min-width: 770px){.tsd-page-toolbar{padding-bottom:0}}#tsd-toolbar-links{right:1rem}#tsd-toolbar-links a{margin-left:1rem!important}.title{color:transparent!important}.title:after{display:block;position:absolute;left:0;top:0;content:"VFX-JS API docs";color:var(--color-text);line-height:1}.tsd-page-title>h2{margin-top:0}h1:not(.tsd-page-title h1){margin-top:0}li.tsd-parameter{margin-bottom:3rem}li.tsd-parameter>h5{margin-bottom:1rem 0}.tsd-type-declaration>h4{margin:2rem 0} +@layer typedoc{:root{--light-color-background: #f2f4f8;--light-color-background-secondary: #eff0f1;--light-color-warning-text: #222;--light-color-background-warning: #e6e600;--light-color-accent: #c5c7c9;--light-color-active-menu-item: var(--light-color-accent);--light-color-text: #222;--light-color-text-aside: #6e6e6e;--light-color-icon-background: var(--light-color-background);--light-color-icon-text: var(--light-color-text);--light-color-comment-tag-text: var(--light-color-text);--light-color-comment-tag: var(--light-color-background);--light-color-link: #1f70c2;--light-color-focus-outline: #3584e4;--light-color-ts-keyword: #056bd6;--light-color-ts-project: #b111c9;--light-color-ts-module: var(--light-color-ts-project);--light-color-ts-namespace: var(--light-color-ts-project);--light-color-ts-enum: #7e6f15;--light-color-ts-enum-member: var(--light-color-ts-enum);--light-color-ts-variable: #4760ec;--light-color-ts-function: #572be7;--light-color-ts-class: #1f70c2;--light-color-ts-interface: #108024;--light-color-ts-constructor: var(--light-color-ts-class);--light-color-ts-property: #9f5f30;--light-color-ts-method: #be3989;--light-color-ts-reference: #ff4d82;--light-color-ts-call-signature: var(--light-color-ts-method);--light-color-ts-index-signature: var(--light-color-ts-property);--light-color-ts-constructor-signature: var( --light-color-ts-constructor );--light-color-ts-parameter: var(--light-color-ts-variable);--light-color-ts-type-parameter: #a55c0e;--light-color-ts-accessor: #c73c3c;--light-color-ts-get-signature: var(--light-color-ts-accessor);--light-color-ts-set-signature: var(--light-color-ts-accessor);--light-color-ts-type-alias: #d51270;--light-color-document: #000000;--light-color-alert-note: #0969d9;--light-color-alert-tip: #1a7f37;--light-color-alert-important: #8250df;--light-color-alert-warning: #9a6700;--light-color-alert-caution: #cf222e;--light-external-icon: url("data:image/svg+xml;utf8,");--light-color-scheme: light;--dark-color-background: #2b2e33;--dark-color-background-secondary: #1e2024;--dark-color-background-warning: #bebe00;--dark-color-warning-text: #222;--dark-color-accent: #9096a2;--dark-color-active-menu-item: #5d5d6a;--dark-color-text: #f5f5f5;--dark-color-text-aside: #dddddd;--dark-color-icon-background: var(--dark-color-background-secondary);--dark-color-icon-text: var(--dark-color-text);--dark-color-comment-tag-text: var(--dark-color-text);--dark-color-comment-tag: var(--dark-color-background);--dark-color-link: #00aff4;--dark-color-focus-outline: #4c97f2;--dark-color-ts-keyword: #3399ff;--dark-color-ts-project: #e358ff;--dark-color-ts-module: var(--dark-color-ts-project);--dark-color-ts-namespace: var(--dark-color-ts-project);--dark-color-ts-enum: #f4d93e;--dark-color-ts-enum-member: var(--dark-color-ts-enum);--dark-color-ts-variable: #798dff;--dark-color-ts-function: #a280ff;--dark-color-ts-class: #8ac4ff;--dark-color-ts-interface: #6cff87;--dark-color-ts-constructor: var(--dark-color-ts-class);--dark-color-ts-property: #ff984d;--dark-color-ts-method: #ff4db8;--dark-color-ts-reference: #ff4d82;--dark-color-ts-call-signature: var(--dark-color-ts-method);--dark-color-ts-index-signature: var(--dark-color-ts-property);--dark-color-ts-constructor-signature: var(--dark-color-ts-constructor);--dark-color-ts-parameter: var(--dark-color-ts-variable);--dark-color-ts-type-parameter: #e07d13;--dark-color-ts-accessor: #ff6060;--dark-color-ts-get-signature: var(--dark-color-ts-accessor);--dark-color-ts-set-signature: var(--dark-color-ts-accessor);--dark-color-ts-type-alias: #ff6492;--dark-color-document: #ffffff;--dark-color-alert-note: #0969d9;--dark-color-alert-tip: #1a7f37;--dark-color-alert-important: #8250df;--dark-color-alert-warning: #9a6700;--dark-color-alert-caution: #cf222e;--dark-external-icon: url("data:image/svg+xml;utf8,");--dark-color-scheme: dark}@media (prefers-color-scheme: light){:root{--color-background: var(--light-color-background);--color-background-secondary: var( --light-color-background-secondary );--color-background-warning: var(--light-color-background-warning);--color-warning-text: var(--light-color-warning-text);--color-accent: var(--light-color-accent);--color-active-menu-item: var(--light-color-active-menu-item);--color-text: var(--light-color-text);--color-text-aside: var(--light-color-text-aside);--color-icon-background: var(--light-color-icon-background);--color-icon-text: var(--light-color-icon-text);--color-comment-tag-text: var(--light-color-text);--color-comment-tag: var(--light-color-background);--color-link: var(--light-color-link);--color-focus-outline: var(--light-color-focus-outline);--color-ts-keyword: var(--light-color-ts-keyword);--color-ts-project: var(--light-color-ts-project);--color-ts-module: var(--light-color-ts-module);--color-ts-namespace: var(--light-color-ts-namespace);--color-ts-enum: var(--light-color-ts-enum);--color-ts-enum-member: var(--light-color-ts-enum-member);--color-ts-variable: var(--light-color-ts-variable);--color-ts-function: var(--light-color-ts-function);--color-ts-class: var(--light-color-ts-class);--color-ts-interface: var(--light-color-ts-interface);--color-ts-constructor: var(--light-color-ts-constructor);--color-ts-property: var(--light-color-ts-property);--color-ts-method: var(--light-color-ts-method);--color-ts-reference: var(--light-color-ts-reference);--color-ts-call-signature: var(--light-color-ts-call-signature);--color-ts-index-signature: var(--light-color-ts-index-signature);--color-ts-constructor-signature: var( --light-color-ts-constructor-signature );--color-ts-parameter: var(--light-color-ts-parameter);--color-ts-type-parameter: var(--light-color-ts-type-parameter);--color-ts-accessor: var(--light-color-ts-accessor);--color-ts-get-signature: var(--light-color-ts-get-signature);--color-ts-set-signature: var(--light-color-ts-set-signature);--color-ts-type-alias: var(--light-color-ts-type-alias);--color-document: var(--light-color-document);--color-alert-note: var(--light-color-alert-note);--color-alert-tip: var(--light-color-alert-tip);--color-alert-important: var(--light-color-alert-important);--color-alert-warning: var(--light-color-alert-warning);--color-alert-caution: var(--light-color-alert-caution);--external-icon: var(--light-external-icon);--color-scheme: var(--light-color-scheme)}}@media (prefers-color-scheme: dark){:root{--color-background: var(--dark-color-background);--color-background-secondary: var( --dark-color-background-secondary );--color-background-warning: var(--dark-color-background-warning);--color-warning-text: var(--dark-color-warning-text);--color-accent: var(--dark-color-accent);--color-active-menu-item: var(--dark-color-active-menu-item);--color-text: var(--dark-color-text);--color-text-aside: var(--dark-color-text-aside);--color-icon-background: var(--dark-color-icon-background);--color-icon-text: var(--dark-color-icon-text);--color-comment-tag-text: var(--dark-color-text);--color-comment-tag: var(--dark-color-background);--color-link: var(--dark-color-link);--color-focus-outline: var(--dark-color-focus-outline);--color-ts-keyword: var(--dark-color-ts-keyword);--color-ts-project: var(--dark-color-ts-project);--color-ts-module: var(--dark-color-ts-module);--color-ts-namespace: var(--dark-color-ts-namespace);--color-ts-enum: var(--dark-color-ts-enum);--color-ts-enum-member: var(--dark-color-ts-enum-member);--color-ts-variable: var(--dark-color-ts-variable);--color-ts-function: var(--dark-color-ts-function);--color-ts-class: var(--dark-color-ts-class);--color-ts-interface: var(--dark-color-ts-interface);--color-ts-constructor: var(--dark-color-ts-constructor);--color-ts-property: var(--dark-color-ts-property);--color-ts-method: var(--dark-color-ts-method);--color-ts-reference: var(--dark-color-ts-reference);--color-ts-call-signature: var(--dark-color-ts-call-signature);--color-ts-index-signature: var(--dark-color-ts-index-signature);--color-ts-constructor-signature: var( --dark-color-ts-constructor-signature );--color-ts-parameter: var(--dark-color-ts-parameter);--color-ts-type-parameter: var(--dark-color-ts-type-parameter);--color-ts-accessor: var(--dark-color-ts-accessor);--color-ts-get-signature: var(--dark-color-ts-get-signature);--color-ts-set-signature: var(--dark-color-ts-set-signature);--color-ts-type-alias: var(--dark-color-ts-type-alias);--color-document: var(--dark-color-document);--color-alert-note: var(--dark-color-alert-note);--color-alert-tip: var(--dark-color-alert-tip);--color-alert-important: var(--dark-color-alert-important);--color-alert-warning: var(--dark-color-alert-warning);--color-alert-caution: var(--dark-color-alert-caution);--external-icon: var(--dark-external-icon);--color-scheme: var(--dark-color-scheme)}}html{color-scheme:var(--color-scheme)}body{margin:0}:root[data-theme=light]{--color-background: var(--light-color-background);--color-background-secondary: var(--light-color-background-secondary);--color-background-warning: var(--light-color-background-warning);--color-warning-text: var(--light-color-warning-text);--color-icon-background: var(--light-color-icon-background);--color-accent: var(--light-color-accent);--color-active-menu-item: var(--light-color-active-menu-item);--color-text: var(--light-color-text);--color-text-aside: var(--light-color-text-aside);--color-icon-text: var(--light-color-icon-text);--color-comment-tag-text: var(--light-color-text);--color-comment-tag: var(--light-color-background);--color-link: var(--light-color-link);--color-focus-outline: var(--light-color-focus-outline);--color-ts-keyword: var(--light-color-ts-keyword);--color-ts-project: var(--light-color-ts-project);--color-ts-module: var(--light-color-ts-module);--color-ts-namespace: var(--light-color-ts-namespace);--color-ts-enum: var(--light-color-ts-enum);--color-ts-enum-member: var(--light-color-ts-enum-member);--color-ts-variable: var(--light-color-ts-variable);--color-ts-function: var(--light-color-ts-function);--color-ts-class: var(--light-color-ts-class);--color-ts-interface: var(--light-color-ts-interface);--color-ts-constructor: var(--light-color-ts-constructor);--color-ts-property: var(--light-color-ts-property);--color-ts-method: var(--light-color-ts-method);--color-ts-reference: var(--light-color-ts-reference);--color-ts-call-signature: var(--light-color-ts-call-signature);--color-ts-index-signature: var(--light-color-ts-index-signature);--color-ts-constructor-signature: var( --light-color-ts-constructor-signature );--color-ts-parameter: var(--light-color-ts-parameter);--color-ts-type-parameter: var(--light-color-ts-type-parameter);--color-ts-accessor: var(--light-color-ts-accessor);--color-ts-get-signature: var(--light-color-ts-get-signature);--color-ts-set-signature: var(--light-color-ts-set-signature);--color-ts-type-alias: var(--light-color-ts-type-alias);--color-document: var(--light-color-document);--color-note: var(--light-color-note);--color-tip: var(--light-color-tip);--color-important: var(--light-color-important);--color-warning: var(--light-color-warning);--color-caution: var(--light-color-caution);--external-icon: var(--light-external-icon);--color-scheme: var(--light-color-scheme)}:root[data-theme=dark]{--color-background: var(--dark-color-background);--color-background-secondary: var(--dark-color-background-secondary);--color-background-warning: var(--dark-color-background-warning);--color-warning-text: var(--dark-color-warning-text);--color-icon-background: var(--dark-color-icon-background);--color-accent: var(--dark-color-accent);--color-active-menu-item: var(--dark-color-active-menu-item);--color-text: var(--dark-color-text);--color-text-aside: var(--dark-color-text-aside);--color-icon-text: var(--dark-color-icon-text);--color-comment-tag-text: var(--dark-color-text);--color-comment-tag: var(--dark-color-background);--color-link: var(--dark-color-link);--color-focus-outline: var(--dark-color-focus-outline);--color-ts-keyword: var(--dark-color-ts-keyword);--color-ts-project: var(--dark-color-ts-project);--color-ts-module: var(--dark-color-ts-module);--color-ts-namespace: var(--dark-color-ts-namespace);--color-ts-enum: var(--dark-color-ts-enum);--color-ts-enum-member: var(--dark-color-ts-enum-member);--color-ts-variable: var(--dark-color-ts-variable);--color-ts-function: var(--dark-color-ts-function);--color-ts-class: var(--dark-color-ts-class);--color-ts-interface: var(--dark-color-ts-interface);--color-ts-constructor: var(--dark-color-ts-constructor);--color-ts-property: var(--dark-color-ts-property);--color-ts-method: var(--dark-color-ts-method);--color-ts-reference: var(--dark-color-ts-reference);--color-ts-call-signature: var(--dark-color-ts-call-signature);--color-ts-index-signature: var(--dark-color-ts-index-signature);--color-ts-constructor-signature: var( --dark-color-ts-constructor-signature );--color-ts-parameter: var(--dark-color-ts-parameter);--color-ts-type-parameter: var(--dark-color-ts-type-parameter);--color-ts-accessor: var(--dark-color-ts-accessor);--color-ts-get-signature: var(--dark-color-ts-get-signature);--color-ts-set-signature: var(--dark-color-ts-set-signature);--color-ts-type-alias: var(--dark-color-ts-type-alias);--color-document: var(--dark-color-document);--color-note: var(--dark-color-note);--color-tip: var(--dark-color-tip);--color-important: var(--dark-color-important);--color-warning: var(--dark-color-warning);--color-caution: var(--dark-color-caution);--external-icon: var(--dark-external-icon);--color-scheme: var(--dark-color-scheme)}*:focus-visible,.tsd-accordion-summary:focus-visible svg{outline:2px solid var(--color-focus-outline)}.always-visible,.always-visible .tsd-signatures{display:inherit!important}h1,h2,h3,h4,h5,h6{line-height:1.2}h1{font-size:1.875rem;margin:.67rem 0}h2{font-size:1.5rem;margin:.83rem 0}h3{font-size:1.25rem;margin:1rem 0}h4{font-size:1.05rem;margin:1.33rem 0}h5{font-size:1rem;margin:1.5rem 0}h6{font-size:.875rem;margin:2.33rem 0}dl,menu,ol,ul{margin:1em 0}dd{margin:0 0 0 34px}.container{max-width:1700px;padding:0 2rem}footer{border-top:1px solid var(--color-accent);padding-top:1rem;padding-bottom:1rem;max-height:3.5rem}footer>p{margin:0 1em}.container-main{margin:0 auto;min-height:calc(100vh - 97px - 4rem)}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@keyframes fade-out{0%{opacity:1;visibility:visible}to{opacity:0}}@keyframes fade-in-delayed{0%{opacity:0}33%{opacity:0}to{opacity:1}}@keyframes fade-out-delayed{0%{opacity:1;visibility:visible}66%{opacity:0}to{opacity:0}}@keyframes pop-in-from-right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes pop-out-to-right{0%{transform:translate(0);visibility:visible}to{transform:translate(100%)}}body{background:var(--color-background);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;color:var(--color-text)}a{color:var(--color-link);text-decoration:none}a:hover{text-decoration:underline}a.external[target=_blank]{background-image:var(--external-icon);background-position:top 3px right;background-repeat:no-repeat;padding-right:13px}a.tsd-anchor-link{color:var(--color-text)}code,pre{font-family:Menlo,Monaco,Consolas,Courier New,monospace;padding:.2em;margin:0;font-size:.875rem;border-radius:.8em}pre{position:relative;white-space:pre-wrap;word-wrap:break-word;padding:10px;border:1px solid var(--color-accent);margin-bottom:8px}pre code{padding:0;font-size:100%}pre>button{position:absolute;top:10px;right:10px;opacity:0;transition:opacity .1s;box-sizing:border-box}pre:hover>button,pre>button.visible{opacity:1}blockquote{margin:1em 0;padding-left:1em;border-left:4px solid gray}.tsd-typography{line-height:1.333em}.tsd-typography ul{list-style:square;padding:0 0 0 20px;margin:0}.tsd-typography .tsd-index-panel h3,.tsd-index-panel .tsd-typography h3,.tsd-typography h4,.tsd-typography h5,.tsd-typography h6{font-size:1em}.tsd-typography h5,.tsd-typography h6{font-weight:400}.tsd-typography p,.tsd-typography ul,.tsd-typography ol{margin:1em 0}.tsd-typography table{border-collapse:collapse;border:none}.tsd-typography td,.tsd-typography th{padding:6px 13px;border:1px solid var(--color-accent)}.tsd-typography thead,.tsd-typography tr:nth-child(2n){background-color:var(--color-background-secondary)}.tsd-alert{padding:8px 16px;margin-bottom:16px;border-left:.25em solid var(--alert-color)}.tsd-alert blockquote>:last-child,.tsd-alert>:last-child{margin-bottom:0}.tsd-alert-title{color:var(--alert-color);display:inline-flex;align-items:center}.tsd-alert-title span{margin-left:4px}.tsd-alert-note{--alert-color: var(--color-alert-note)}.tsd-alert-tip{--alert-color: var(--color-alert-tip)}.tsd-alert-important{--alert-color: var(--color-alert-important)}.tsd-alert-warning{--alert-color: var(--color-alert-warning)}.tsd-alert-caution{--alert-color: var(--color-alert-caution)}.tsd-breadcrumb{margin:0;padding:0;color:var(--color-text-aside)}.tsd-breadcrumb a{color:var(--color-text-aside);text-decoration:none}.tsd-breadcrumb a:hover{text-decoration:underline}.tsd-breadcrumb li{display:inline}.tsd-breadcrumb li:after{content:" / "}.tsd-comment-tags{display:flex;flex-direction:column}dl.tsd-comment-tag-group{display:flex;align-items:center;overflow:hidden;margin:.5em 0}dl.tsd-comment-tag-group dt{display:flex;margin-right:.5em;font-size:.875em;font-weight:400}dl.tsd-comment-tag-group dd{margin:0}code.tsd-tag{padding:.25em .4em;border:.1em solid var(--color-accent);margin-right:.25em;font-size:70%}h1 code.tsd-tag:first-of-type{margin-left:.25em}dl.tsd-comment-tag-group dd:before,dl.tsd-comment-tag-group dd:after{content:" "}dl.tsd-comment-tag-group dd pre,dl.tsd-comment-tag-group dd:after{clear:both}dl.tsd-comment-tag-group p{margin:0}.tsd-panel.tsd-comment .lead{font-size:1.1em;line-height:1.333em;margin-bottom:2em}.tsd-panel.tsd-comment .lead:last-child{margin-bottom:0}.tsd-filter-visibility h4{font-size:1rem;padding-top:.75rem;padding-bottom:.5rem;margin:0}.tsd-filter-item:not(:last-child){margin-bottom:.5rem}.tsd-filter-input{display:flex;width:-moz-fit-content;width:fit-content;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tsd-filter-input input[type=checkbox]{cursor:pointer;position:absolute;width:1.5em;height:1.5em;opacity:0}.tsd-filter-input input[type=checkbox]:disabled{pointer-events:none}.tsd-filter-input svg{cursor:pointer;width:1.5em;height:1.5em;margin-right:.5em;border-radius:.33em;opacity:.99}.tsd-filter-input input[type=checkbox]:focus-visible+svg{outline:2px solid var(--color-focus-outline)}.tsd-checkbox-background{fill:var(--color-accent)}input[type=checkbox]:checked~svg .tsd-checkbox-checkmark{stroke:var(--color-text)}.tsd-filter-input input:disabled~svg>.tsd-checkbox-background{fill:var(--color-background);stroke:var(--color-accent);stroke-width:.25rem}.tsd-filter-input input:disabled~svg>.tsd-checkbox-checkmark{stroke:var(--color-accent)}.settings-label{font-weight:700;text-transform:uppercase;display:inline-block}.tsd-filter-visibility .settings-label{margin:.75rem 0 .5rem}.tsd-theme-toggle .settings-label{margin:.75rem .75rem 0 0}.tsd-hierarchy h4 label:hover span{text-decoration:underline}.tsd-hierarchy{list-style:square;margin:0}.tsd-hierarchy-target{font-weight:700}.tsd-hierarchy-toggle{color:var(--color-link);cursor:pointer}.tsd-full-hierarchy:not(:last-child){margin-bottom:1em;padding-bottom:1em;border-bottom:1px solid var(--color-accent)}.tsd-full-hierarchy,.tsd-full-hierarchy ul{list-style:none;margin:0;padding:0}.tsd-full-hierarchy ul{padding-left:1.5rem}.tsd-full-hierarchy a{padding:.25rem 0!important;font-size:1rem;display:inline-flex;align-items:center;color:var(--color-text)}.tsd-full-hierarchy svg[data-dropdown]{cursor:pointer}.tsd-full-hierarchy svg[data-dropdown=false]{transform:rotate(-90deg)}.tsd-full-hierarchy svg[data-dropdown=false]~ul{display:none}.tsd-panel-group.tsd-index-group{margin-bottom:0}.tsd-index-panel .tsd-index-list{list-style:none;line-height:1.333em;margin:0;padding:.25rem 0 0;overflow:hidden;display:grid;grid-template-columns:repeat(3,1fr);column-gap:1rem;grid-template-rows:auto}@media (max-width: 1024px){.tsd-index-panel .tsd-index-list{grid-template-columns:repeat(2,1fr)}}@media (max-width: 768px){.tsd-index-panel .tsd-index-list{grid-template-columns:repeat(1,1fr)}}.tsd-index-panel .tsd-index-list li{-webkit-page-break-inside:avoid;-moz-page-break-inside:avoid;-ms-page-break-inside:avoid;-o-page-break-inside:avoid;page-break-inside:avoid}.tsd-flag{display:inline-block;padding:.25em .4em;border-radius:4px;color:var(--color-comment-tag-text);background-color:var(--color-comment-tag);text-indent:0;font-size:75%;line-height:1;font-weight:400}.tsd-anchor{position:relative;top:-100px}.tsd-member{position:relative}.tsd-member .tsd-anchor+h3{display:flex;align-items:center;margin-top:0;margin-bottom:0;border-bottom:none}.tsd-navigation.settings{margin:1rem 0}.tsd-navigation>a,.tsd-navigation .tsd-accordion-summary{width:calc(100% - .25rem);display:flex;align-items:center}.tsd-navigation a,.tsd-navigation summary>span,.tsd-page-navigation a{display:flex;width:calc(100% - .25rem);align-items:center;padding:.25rem;color:var(--color-text);text-decoration:none;box-sizing:border-box}.tsd-navigation a.current,.tsd-page-navigation a.current{background:var(--color-active-menu-item)}.tsd-navigation a:hover,.tsd-page-navigation a:hover{text-decoration:underline}.tsd-navigation ul,.tsd-page-navigation ul{margin-top:0;margin-bottom:0;padding:0;list-style:none}.tsd-navigation li,.tsd-page-navigation li{padding:0;max-width:100%}.tsd-navigation .tsd-nav-link{display:none}.tsd-nested-navigation{margin-left:3rem}.tsd-nested-navigation>li>details{margin-left:-1.5rem}.tsd-small-nested-navigation{margin-left:1.5rem}.tsd-small-nested-navigation>li>details{margin-left:-1.5rem}.tsd-page-navigation-section{margin-left:10px}.tsd-page-navigation-section>summary{padding:.25rem}.tsd-page-navigation-section>div{margin-left:20px}.tsd-page-navigation ul{padding-left:1.75rem}#tsd-sidebar-links a{margin-top:0;margin-bottom:.5rem;line-height:1.25rem}#tsd-sidebar-links a:last-of-type{margin-bottom:0}a.tsd-index-link{padding:.25rem 0!important;font-size:1rem;line-height:1.25rem;display:inline-flex;align-items:center;color:var(--color-text)}.tsd-accordion-summary{list-style-type:none;outline:none}.tsd-accordion-summary::-webkit-details-marker{display:none}.tsd-accordion-summary,.tsd-accordion-summary a{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.tsd-accordion-summary a{width:calc(100% - 1.5rem)}.tsd-accordion-summary>*{margin-top:0;margin-bottom:0;padding-top:0;padding-bottom:0}.tsd-accordion .tsd-accordion-summary>svg{margin-left:.25rem;vertical-align:text-top}.tsd-accordion:not([open])>.tsd-accordion-summary>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h1>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h2>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h3>svg:first-child,.tsd-accordion:not([open])>.tsd-accordion-summary>h4>svg:first-child{transform:rotate(-90deg)}.tsd-index-content>:not(:first-child){margin-top:.75rem}.tsd-index-heading{margin-top:1.5rem;margin-bottom:.75rem}.tsd-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.tsd-kind-icon{margin-right:.5rem;width:1.25rem;height:1.25rem;min-width:1.25rem;min-height:1.25rem}.tsd-signature>.tsd-kind-icon{margin-right:.8rem}.tsd-panel{margin-bottom:2.5rem}.tsd-panel.tsd-member{margin-bottom:4rem}.tsd-panel:empty{display:none}.tsd-panel>h1,.tsd-panel>h2,.tsd-panel>h3{margin:1.5rem -1.5rem .75rem;padding:0 1.5rem .75rem}.tsd-panel>h1.tsd-before-signature,.tsd-panel>h2.tsd-before-signature,.tsd-panel>h3.tsd-before-signature{margin-bottom:0;border-bottom:none}.tsd-panel-group,.tsd-panel-group.tsd-index-group{margin:2rem 0}.tsd-panel-group.tsd-index-group details{margin:2rem 0}.tsd-panel-group>.tsd-accordion-summary{margin-bottom:1rem}#tsd-search{transition:background-color .2s}#tsd-search .title{position:relative;z-index:2}#tsd-search .field{position:absolute;left:0;top:0;right:2.5rem;height:100%}#tsd-search .field input{box-sizing:border-box;position:relative;top:-50px;z-index:1;width:100%;padding:0 10px;opacity:0;outline:0;border:0;background:transparent;color:var(--color-text)}#tsd-search .field label{position:absolute;overflow:hidden;right:-40px}#tsd-search .field input,#tsd-search .title,#tsd-toolbar-links a{transition:opacity .2s}#tsd-search .results{position:absolute;visibility:hidden;top:40px;width:100%;margin:0;padding:0;list-style:none;box-shadow:0 0 4px #00000040}#tsd-search .results li{background-color:var(--color-background);line-height:initial;padding:4px}#tsd-search .results li:nth-child(2n){background-color:var(--color-background-secondary)}#tsd-search .results li.state{display:none}#tsd-search .results li.current:not(.no-results),#tsd-search .results li:hover:not(.no-results){background-color:var(--color-accent)}#tsd-search .results a{display:flex;align-items:center;padding:.25rem;box-sizing:border-box}#tsd-search .results a:before{top:10px}#tsd-search .results span.parent{color:var(--color-text-aside);font-weight:400}#tsd-search.has-focus{background-color:var(--color-accent)}#tsd-search.has-focus .field input{top:0;opacity:1}#tsd-search.has-focus .title,#tsd-search.has-focus #tsd-toolbar-links a{z-index:0;opacity:0}#tsd-search.has-focus .results{visibility:visible}#tsd-search.loading .results li.state.loading,#tsd-search.failure .results li.state.failure{display:block}#tsd-toolbar-links{position:absolute;top:0;right:2rem;height:100%;display:flex;align-items:center;justify-content:flex-end}#tsd-toolbar-links a{margin-left:1.5rem}#tsd-toolbar-links a:hover{text-decoration:underline}.tsd-signature{margin:0 0 1rem;padding:1rem .5rem;border:1px solid var(--color-accent);font-family:Menlo,Monaco,Consolas,Courier New,monospace;font-size:14px;overflow-x:auto}.tsd-signature-keyword{color:var(--color-ts-keyword);font-weight:400}.tsd-signature-symbol{color:var(--color-text-aside);font-weight:400}.tsd-signature-type{font-style:italic;font-weight:400}.tsd-signatures{padding:0;margin:0 0 1em;list-style-type:none}.tsd-signatures .tsd-signature{margin:0;border-color:var(--color-accent);border-width:1px 0;transition:background-color .1s}.tsd-signatures .tsd-index-signature:not(:last-child){margin-bottom:1em}.tsd-signatures .tsd-index-signature .tsd-signature,.tsd-description .tsd-signatures .tsd-signature{border-width:1px}ul.tsd-parameter-list,ul.tsd-type-parameter-list{list-style:square;margin:0;padding-left:20px}ul.tsd-parameter-list>li.tsd-parameter-signature,ul.tsd-type-parameter-list>li.tsd-parameter-signature{list-style:none;margin-left:-20px}ul.tsd-parameter-list h5,ul.tsd-type-parameter-list h5{font-size:16px;margin:1em 0 .5em}.tsd-sources{margin-top:1rem;font-size:.875em}.tsd-sources a{color:var(--color-text-aside);text-decoration:underline}.tsd-sources ul{list-style:none;padding:0}.tsd-page-toolbar{position:sticky;z-index:1;top:0;left:0;width:100%;color:var(--color-text);background:var(--color-background-secondary);border-bottom:1px var(--color-accent) solid;transition:transform .3s ease-in-out}.tsd-page-toolbar a{color:var(--color-text);text-decoration:none}.tsd-page-toolbar a.title{font-weight:700}.tsd-page-toolbar a.title:hover{text-decoration:underline}.tsd-page-toolbar .tsd-toolbar-contents{display:flex;justify-content:space-between;height:2.5rem;margin:0 auto}.tsd-page-toolbar .table-cell{position:relative;white-space:nowrap;line-height:40px}.tsd-page-toolbar .table-cell:first-child{width:100%}.tsd-page-toolbar .tsd-toolbar-icon{box-sizing:border-box;line-height:0;padding:12px 0}.tsd-widget{display:inline-block;overflow:hidden;opacity:.8;height:40px;transition:opacity .1s,background-color .2s;vertical-align:bottom;cursor:pointer}.tsd-widget:hover{opacity:.9}.tsd-widget.active{opacity:1;background-color:var(--color-accent)}.tsd-widget.no-caption{width:40px}.tsd-widget.no-caption:before{margin:0}.tsd-widget.options,.tsd-widget.menu{display:none}input[type=checkbox]+.tsd-widget:before{background-position:-120px 0}input[type=checkbox]:checked+.tsd-widget:before{background-position:-160px 0}img{max-width:100%}.tsd-member-summary-name{display:inline-flex;align-items:center;padding:.25rem;text-decoration:none}.tsd-anchor-icon{display:inline-flex;align-items:center;margin-left:.5rem;color:var(--color-text)}.tsd-anchor-icon svg{width:1em;height:1em;visibility:hidden}.tsd-member-summary-name:hover>.tsd-anchor-icon svg,.tsd-anchor-link:hover>.tsd-anchor-icon svg{visibility:visible}.deprecated{text-decoration:line-through!important}.warning{padding:1rem;color:var(--color-warning-text);background:var(--color-background-warning)}.tsd-kind-project{color:var(--color-ts-project)}.tsd-kind-module{color:var(--color-ts-module)}.tsd-kind-namespace{color:var(--color-ts-namespace)}.tsd-kind-enum{color:var(--color-ts-enum)}.tsd-kind-enum-member{color:var(--color-ts-enum-member)}.tsd-kind-variable{color:var(--color-ts-variable)}.tsd-kind-function{color:var(--color-ts-function)}.tsd-kind-class{color:var(--color-ts-class)}.tsd-kind-interface{color:var(--color-ts-interface)}.tsd-kind-constructor{color:var(--color-ts-constructor)}.tsd-kind-property{color:var(--color-ts-property)}.tsd-kind-method{color:var(--color-ts-method)}.tsd-kind-reference{color:var(--color-ts-reference)}.tsd-kind-call-signature{color:var(--color-ts-call-signature)}.tsd-kind-index-signature{color:var(--color-ts-index-signature)}.tsd-kind-constructor-signature{color:var(--color-ts-constructor-signature)}.tsd-kind-parameter{color:var(--color-ts-parameter)}.tsd-kind-type-parameter{color:var(--color-ts-type-parameter)}.tsd-kind-accessor{color:var(--color-ts-accessor)}.tsd-kind-get-signature{color:var(--color-ts-get-signature)}.tsd-kind-set-signature{color:var(--color-ts-set-signature)}.tsd-kind-type-alias{color:var(--color-ts-type-alias)}.tsd-kind-icon~span{color:var(--color-text)}*{scrollbar-width:thin;scrollbar-color:var(--color-accent) var(--color-icon-background)}*::-webkit-scrollbar{width:.75rem}*::-webkit-scrollbar-track{background:var(--color-icon-background)}*::-webkit-scrollbar-thumb{background-color:var(--color-accent);border-radius:999rem;border:.25rem solid var(--color-icon-background)}@media (max-width: 769px){.tsd-widget.options,.tsd-widget.menu{display:inline-block}.container-main{display:flex}html .col-content{float:none;max-width:100%;width:100%}html .col-sidebar{position:fixed!important;overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:1024;top:0!important;bottom:0!important;left:auto!important;right:0!important;padding:1.5rem 1.5rem 0 0;width:75vw;visibility:hidden;background-color:var(--color-background);transform:translate(100%)}html .col-sidebar>*:last-child{padding-bottom:20px}html .overlay{content:"";display:block;position:fixed;z-index:1023;top:0;left:0;right:0;bottom:0;background-color:#000000bf;visibility:hidden}.to-has-menu .overlay{animation:fade-in .4s}.to-has-menu .col-sidebar{animation:pop-in-from-right .4s}.from-has-menu .overlay{animation:fade-out .4s}.from-has-menu .col-sidebar{animation:pop-out-to-right .4s}.has-menu body{overflow:hidden}.has-menu .overlay{visibility:visible}.has-menu .col-sidebar{visibility:visible;transform:translate(0);display:flex;flex-direction:column;gap:1.5rem;max-height:100vh;padding:1rem 2rem}.has-menu .tsd-navigation{max-height:100%}#tsd-toolbar-links{display:none}.tsd-navigation .tsd-nav-link{display:flex}}@media (min-width: 770px){.container-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);grid-template-areas:"sidebar content";margin:2rem auto}.col-sidebar{grid-area:sidebar}.col-content{grid-area:content;padding:0 1rem}}@media (min-width: 770px) and (max-width: 1399px){.col-sidebar{max-height:calc(100vh - 2rem - 42px);overflow:auto;position:sticky;top:42px;padding-top:1rem}.site-menu{margin-top:1rem}}@media (min-width: 1200px){.container-main{grid-template-columns:minmax(0,1fr) minmax(0,2.5fr) minmax(0,20rem);grid-template-areas:"sidebar content toc"}.col-sidebar{display:contents}.page-menu{grid-area:toc;padding-left:1rem}.site-menu{grid-area:sidebar}.site-menu{margin-top:1rem}.page-menu,.site-menu{max-height:calc(100vh - 2rem - 42px);overflow:auto;position:sticky;top:42px}}}:root{--light-hl-0: #001080;--dark-hl-0: #9CDCFE;--light-hl-1: #000000;--dark-hl-1: #D4D4D4;--light-hl-2: #AF00DB;--dark-hl-2: #C586C0;--light-hl-3: #A31515;--dark-hl-3: #CE9178;--light-hl-4: #0000FF;--dark-hl-4: #569CD6;--light-hl-5: #0070C1;--dark-hl-5: #4FC1FF;--light-hl-6: #795E26;--dark-hl-6: #DCDCAA;--light-hl-7: #098658;--dark-hl-7: #B5CEA8;--light-hl-8: #008000;--dark-hl-8: #6A9955;--light-code-background: #FFFFFF;--dark-code-background: #1E1E1E}@media (prefers-color-scheme: light){:root{--hl-0: var(--light-hl-0);--hl-1: var(--light-hl-1);--hl-2: var(--light-hl-2);--hl-3: var(--light-hl-3);--hl-4: var(--light-hl-4);--hl-5: var(--light-hl-5);--hl-6: var(--light-hl-6);--hl-7: var(--light-hl-7);--hl-8: var(--light-hl-8);--code-background: var(--light-code-background)}}@media (prefers-color-scheme: dark){:root{--hl-0: var(--dark-hl-0);--hl-1: var(--dark-hl-1);--hl-2: var(--dark-hl-2);--hl-3: var(--dark-hl-3);--hl-4: var(--dark-hl-4);--hl-5: var(--dark-hl-5);--hl-6: var(--dark-hl-6);--hl-7: var(--dark-hl-7);--hl-8: var(--dark-hl-8);--code-background: var(--dark-code-background)}}:root[data-theme=light]{--hl-0: var(--light-hl-0);--hl-1: var(--light-hl-1);--hl-2: var(--light-hl-2);--hl-3: var(--light-hl-3);--hl-4: var(--light-hl-4);--hl-5: var(--light-hl-5);--hl-6: var(--light-hl-6);--hl-7: var(--light-hl-7);--hl-8: var(--light-hl-8);--code-background: var(--light-code-background)}:root[data-theme=dark]{--hl-0: var(--dark-hl-0);--hl-1: var(--dark-hl-1);--hl-2: var(--dark-hl-2);--hl-3: var(--dark-hl-3);--hl-4: var(--dark-hl-4);--hl-5: var(--dark-hl-5);--hl-6: var(--dark-hl-6);--hl-7: var(--dark-hl-7);--hl-8: var(--dark-hl-8);--code-background: var(--dark-code-background)}.hl-0{color:var(--hl-0)}.hl-1{color:var(--hl-1)}.hl-2{color:var(--hl-2)}.hl-3{color:var(--hl-3)}.hl-4{color:var(--hl-4)}.hl-5{color:var(--hl-5)}.hl-6{color:var(--hl-6)}.hl-7{color:var(--hl-7)}.hl-8{color:var(--hl-8)}pre,code{background:var(--code-background)}html,body{overflow-x:hidden}:root{--hl-0: var(--dark-hl-0) !important;--hl-1: var(--dark-hl-1) !important;--hl-2: var(--dark-hl-2) !important;--hl-3: var(--dark-hl-3) !important;--hl-4: var(--dark-hl-4) !important;--hl-5: var(--dark-hl-5) !important;--code-background: var(--dark-code-background) !important}:root{--color-background: var(--dark-color-background) !important;--color-background-secondary: var( --dark-color-background-secondary ) !important;--color-background-warning: var(--dark-color-background-warning) !important;--color-warning-text: var(--dark-color-warning-text) !important;--color-icon-background: var(--dark-color-icon-background) !important;--color-accent: var(--dark-color-accent) !important;--color-active-menu-item: var(--dark-color-active-menu-item) !important;--color-text: var(--dark-color-text) !important;--color-text-aside: var(--dark-color-text-aside) !important;--color-link: var(--dark-color-link) !important;--color-focus-outline: var(--dark-color-focus-outline) !important;--color-ts-keyword: var(--dark-color-ts-keyword) !important;--color-ts-module: var(--dark-color-ts-module) !important;--color-ts-namespace: var(--dark-color-ts-namespace) !important;--color-ts-enum: var(--dark-color-ts-enum) !important;--color-ts-enum-member: var(--dark-color-ts-enum-member) !important;--color-ts-variable: var(--dark-color-ts-variable) !important;--color-ts-function: var(--dark-color-ts-function) !important;--color-ts-class: var(--dark-color-ts-class) !important;--color-ts-interface: var(--dark-color-ts-interface) !important;--color-ts-constructor: var(--dark-color-ts-constructor) !important;--color-ts-property: var(--dark-color-ts-property) !important;--color-ts-method: var(--dark-color-ts-method) !important;--color-ts-call-signature: var(--dark-color-ts-call-signature) !important;--color-ts-index-signature: var(--dark-color-ts-index-signature) !important;--color-ts-constructor-signature: var( --dark-color-ts-constructor-signature ) !important;--color-ts-parameter: var(--dark-color-ts-parameter) !important;--color-ts-type-parameter: var(--dark-color-ts-type-parameter) !important;--color-ts-accessor: var(--dark-color-ts-accessor) !important;--color-ts-get-signature: var(--dark-color-ts-get-signature) !important;--color-ts-set-signature: var(--dark-color-ts-set-signature) !important;--color-ts-type-alias: var(--dark-color-ts-type-alias) !important;--color-document: var(--dark-color-document) !important;--external-icon: var(--dark-external-icon) !important;--color-scheme: var(--dark-color-scheme) !important}.tsd-typography,.tsd-signature{line-height:1.5!important}.container-main{grid-template-columns:minmax(0,1fr) minmax(0,3fr);grid-template-areas:"sidebar content"}.page-menu{display:none!important}.container{padding:0 1rem!important}.tsd-page-toolbar{background:transparent;border:none;padding-top:1rem;padding-bottom:1rem}@media (min-width: 770px){.tsd-page-toolbar{padding-bottom:0}}#tsd-toolbar-links{right:1rem}#tsd-toolbar-links a{margin-left:1rem!important}.title{color:transparent!important}.title:after{display:block;position:absolute;left:0;top:0;content:"VFX-JS API docs";color:var(--color-text);line-height:1}.tsd-page-title>h2{margin-top:0}h1:not(.tsd-page-title h1){margin-top:0}li.tsd-parameter{margin-bottom:3rem}li.tsd-parameter>h5{margin-bottom:1rem 0}.tsd-type-declaration>h4{margin:2rem 0} diff --git a/assets/index-DXU20IJL.js b/assets/index-BxNZGJ7n.js similarity index 96% rename from assets/index-DXU20IJL.js rename to assets/index-BxNZGJ7n.js index da25719..3a95cc4 100644 --- a/assets/index-DXU20IJL.js +++ b/assets/index-BxNZGJ7n.js @@ -3824,7 +3824,7 @@ void main() { } -}`;class Up{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const r=new ht,s=e.properties.get(r);s.__webglTexture=t.texture,(t.depthNear!==n.depthNear||t.depthFar!==n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new hn({vertexShader:Dp,fragmentShader:Lp,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new jt(new Bi(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Ip extends xi{constructor(e,t){super();const n=this;let r=null,s=1,o=null,a="local-floor",l=1,c=null,u=null,d=null,h=null,m=null,x=null;const T=new Up,p=t.getContextAttributes();let f=null,M=null;const _=[],v=[],R=new qe;let w=null;const b=new Wt;b.viewport=new st;const P=new Wt;P.viewport=new st;const E=[b,P],y=new eu;let C=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(k){let ee=_[k];return ee===void 0&&(ee=new us,_[k]=ee),ee.getTargetRaySpace()},this.getControllerGrip=function(k){let ee=_[k];return ee===void 0&&(ee=new us,_[k]=ee),ee.getGripSpace()},this.getHand=function(k){let ee=_[k];return ee===void 0&&(ee=new us,_[k]=ee),ee.getHandSpace()};function z(k){const ee=v.indexOf(k.inputSource);if(ee===-1)return;const fe=_[ee];fe!==void 0&&(fe.update(k.inputSource,k.frame,c||o),fe.dispatchEvent({type:k.type,data:k.inputSource}))}function W(){r.removeEventListener("select",z),r.removeEventListener("selectstart",z),r.removeEventListener("selectend",z),r.removeEventListener("squeeze",z),r.removeEventListener("squeezestart",z),r.removeEventListener("squeezeend",z),r.removeEventListener("end",W),r.removeEventListener("inputsourceschange",q);for(let k=0;k<_.length;k++){const ee=v[k];ee!==null&&(v[k]=null,_[k].disconnect(ee))}C=null,H=null,T.reset(),e.setRenderTarget(f),m=null,h=null,d=null,r=null,M=null,Ye.stop(),n.isPresenting=!1,e.setPixelRatio(w),e.setSize(R.width,R.height,!1),n.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(k){s=k,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(k){a=k,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return c||o},this.setReferenceSpace=function(k){c=k},this.getBaseLayer=function(){return h!==null?h:m},this.getBinding=function(){return d},this.getFrame=function(){return x},this.getSession=function(){return r},this.setSession=async function(k){if(r=k,r!==null){if(f=e.getRenderTarget(),r.addEventListener("select",z),r.addEventListener("selectstart",z),r.addEventListener("selectend",z),r.addEventListener("squeeze",z),r.addEventListener("squeezestart",z),r.addEventListener("squeezeend",z),r.addEventListener("end",W),r.addEventListener("inputsourceschange",q),p.xrCompatible!==!0&&await t.makeXRCompatible(),w=e.getPixelRatio(),e.getSize(R),r.enabledFeatures!==void 0&&r.enabledFeatures.includes("layers")){let fe=null,ne=null,Se=null;p.depth&&(Se=p.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,fe=p.stencil?gi:ui,ne=p.stencil?mi:Vn);const Ae={colorFormat:t.RGBA8,depthFormat:Se,scaleFactor:s};d=new XRWebGLBinding(r,t),h=d.createProjectionLayer(Ae),r.updateRenderState({layers:[h]}),e.setPixelRatio(1),e.setSize(h.textureWidth,h.textureHeight,!1),M=new Hn(h.textureWidth,h.textureHeight,{format:Nt,type:fn,depthTexture:new nl(h.textureWidth,h.textureHeight,ne,void 0,void 0,void 0,void 0,void 0,void 0,fe),stencilBuffer:p.stencil,colorSpace:e.outputColorSpace,samples:p.antialias?4:0,resolveDepthBuffer:h.ignoreDepthValues===!1})}else{const fe={antialias:p.antialias,alpha:!0,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:s};m=new XRWebGLLayer(r,t,fe),r.updateRenderState({baseLayer:m}),e.setPixelRatio(1),e.setSize(m.framebufferWidth,m.framebufferHeight,!1),M=new Hn(m.framebufferWidth,m.framebufferHeight,{format:Nt,type:fn,colorSpace:e.outputColorSpace,stencilBuffer:p.stencil})}M.isXRRenderTarget=!0,this.setFoveation(l),c=null,o=await r.requestReferenceSpace(a),Ye.setContext(r),Ye.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode},this.getDepthTexture=function(){return T.getDepthTexture()};function q(k){for(let ee=0;ee=0&&(v[ne]=null,_[ne].disconnect(fe))}for(let ee=0;ee=v.length){v.push(fe),ne=Ae;break}else if(v[Ae]===null){v[Ae]=fe,ne=Ae;break}if(ne===-1)break}const Se=_[ne];Se&&Se.connect(fe)}}const X=new V,Z=new V;function N(k,ee,fe){X.setFromMatrixPosition(ee.matrixWorld),Z.setFromMatrixPosition(fe.matrixWorld);const ne=X.distanceTo(Z),Se=ee.projectionMatrix.elements,Ae=fe.projectionMatrix.elements,Pe=Se[14]/(Se[10]-1),Ke=Se[14]/(Se[10]+1),Fe=(Se[9]+1)/Se[5],Qe=(Se[9]-1)/Se[5],D=(Se[8]-1)/Se[0],Ct=(Ae[8]+1)/Ae[0],Oe=Pe*D,Be=Pe*Ct,Me=ne/(-D+Ct),et=Me*-D;if(ee.matrixWorld.decompose(k.position,k.quaternion,k.scale),k.translateX(et),k.translateZ(Me),k.matrixWorld.compose(k.position,k.quaternion,k.scale),k.matrixWorldInverse.copy(k.matrixWorld).invert(),Se[10]===-1)k.projectionMatrix.copy(ee.projectionMatrix),k.projectionMatrixInverse.copy(ee.projectionMatrixInverse);else{const xe=Pe+Me,A=Ke+Me,g=Oe-et,F=Be+(ne-et),$=Fe*Ke/A*xe,j=Qe*Ke/A*xe;k.projectionMatrix.makePerspective(g,F,$,j,xe,A),k.projectionMatrixInverse.copy(k.projectionMatrix).invert()}}function te(k,ee){ee===null?k.matrixWorld.copy(k.matrix):k.matrixWorld.multiplyMatrices(ee.matrixWorld,k.matrix),k.matrixWorldInverse.copy(k.matrixWorld).invert()}this.updateCamera=function(k){if(r===null)return;let ee=k.near,fe=k.far;T.texture!==null&&(T.depthNear>0&&(ee=T.depthNear),T.depthFar>0&&(fe=T.depthFar)),y.near=P.near=b.near=ee,y.far=P.far=b.far=fe,(C!==y.near||H!==y.far)&&(r.updateRenderState({depthNear:y.near,depthFar:y.far}),C=y.near,H=y.far),b.layers.mask=k.layers.mask|2,P.layers.mask=k.layers.mask|4,y.layers.mask=b.layers.mask|P.layers.mask;const ne=k.parent,Se=y.cameras;te(y,ne);for(let Ae=0;Ae0&&(p.alphaTest.value=f.alphaTest);const M=e.get(f),_=M.envMap,v=M.envMapRotation;_&&(p.envMap.value=_,Un.copy(v),Un.x*=-1,Un.y*=-1,Un.z*=-1,_.isCubeTexture&&_.isRenderTargetTexture===!1&&(Un.y*=-1,Un.z*=-1),p.envMapRotation.value.setFromMatrix4(Fp.makeRotationFromEuler(Un)),p.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=f.reflectivity,p.ior.value=f.ior,p.refractionRatio.value=f.refractionRatio),f.lightMap&&(p.lightMap.value=f.lightMap,p.lightMapIntensity.value=f.lightMapIntensity,t(f.lightMap,p.lightMapTransform)),f.aoMap&&(p.aoMap.value=f.aoMap,p.aoMapIntensity.value=f.aoMapIntensity,t(f.aoMap,p.aoMapTransform))}function o(p,f){p.diffuse.value.copy(f.color),p.opacity.value=f.opacity,f.map&&(p.map.value=f.map,t(f.map,p.mapTransform))}function a(p,f){p.dashSize.value=f.dashSize,p.totalSize.value=f.dashSize+f.gapSize,p.scale.value=f.scale}function l(p,f,M,_){p.diffuse.value.copy(f.color),p.opacity.value=f.opacity,p.size.value=f.size*M,p.scale.value=_*.5,f.map&&(p.map.value=f.map,t(f.map,p.uvTransform)),f.alphaMap&&(p.alphaMap.value=f.alphaMap,t(f.alphaMap,p.alphaMapTransform)),f.alphaTest>0&&(p.alphaTest.value=f.alphaTest)}function c(p,f){p.diffuse.value.copy(f.color),p.opacity.value=f.opacity,p.rotation.value=f.rotation,f.map&&(p.map.value=f.map,t(f.map,p.mapTransform)),f.alphaMap&&(p.alphaMap.value=f.alphaMap,t(f.alphaMap,p.alphaMapTransform)),f.alphaTest>0&&(p.alphaTest.value=f.alphaTest)}function u(p,f){p.specular.value.copy(f.specular),p.shininess.value=Math.max(f.shininess,1e-4)}function d(p,f){f.gradientMap&&(p.gradientMap.value=f.gradientMap)}function h(p,f){p.metalness.value=f.metalness,f.metalnessMap&&(p.metalnessMap.value=f.metalnessMap,t(f.metalnessMap,p.metalnessMapTransform)),p.roughness.value=f.roughness,f.roughnessMap&&(p.roughnessMap.value=f.roughnessMap,t(f.roughnessMap,p.roughnessMapTransform)),f.envMap&&(p.envMapIntensity.value=f.envMapIntensity)}function m(p,f,M){p.ior.value=f.ior,f.sheen>0&&(p.sheenColor.value.copy(f.sheenColor).multiplyScalar(f.sheen),p.sheenRoughness.value=f.sheenRoughness,f.sheenColorMap&&(p.sheenColorMap.value=f.sheenColorMap,t(f.sheenColorMap,p.sheenColorMapTransform)),f.sheenRoughnessMap&&(p.sheenRoughnessMap.value=f.sheenRoughnessMap,t(f.sheenRoughnessMap,p.sheenRoughnessMapTransform))),f.clearcoat>0&&(p.clearcoat.value=f.clearcoat,p.clearcoatRoughness.value=f.clearcoatRoughness,f.clearcoatMap&&(p.clearcoatMap.value=f.clearcoatMap,t(f.clearcoatMap,p.clearcoatMapTransform)),f.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=f.clearcoatRoughnessMap,t(f.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),f.clearcoatNormalMap&&(p.clearcoatNormalMap.value=f.clearcoatNormalMap,t(f.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(f.clearcoatNormalScale),f.side===Tt&&p.clearcoatNormalScale.value.negate())),f.dispersion>0&&(p.dispersion.value=f.dispersion),f.iridescence>0&&(p.iridescence.value=f.iridescence,p.iridescenceIOR.value=f.iridescenceIOR,p.iridescenceThicknessMinimum.value=f.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=f.iridescenceThicknessRange[1],f.iridescenceMap&&(p.iridescenceMap.value=f.iridescenceMap,t(f.iridescenceMap,p.iridescenceMapTransform)),f.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=f.iridescenceThicknessMap,t(f.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),f.transmission>0&&(p.transmission.value=f.transmission,p.transmissionSamplerMap.value=M.texture,p.transmissionSamplerSize.value.set(M.width,M.height),f.transmissionMap&&(p.transmissionMap.value=f.transmissionMap,t(f.transmissionMap,p.transmissionMapTransform)),p.thickness.value=f.thickness,f.thicknessMap&&(p.thicknessMap.value=f.thicknessMap,t(f.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=f.attenuationDistance,p.attenuationColor.value.copy(f.attenuationColor)),f.anisotropy>0&&(p.anisotropyVector.value.set(f.anisotropy*Math.cos(f.anisotropyRotation),f.anisotropy*Math.sin(f.anisotropyRotation)),f.anisotropyMap&&(p.anisotropyMap.value=f.anisotropyMap,t(f.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=f.specularIntensity,p.specularColor.value.copy(f.specularColor),f.specularColorMap&&(p.specularColorMap.value=f.specularColorMap,t(f.specularColorMap,p.specularColorMapTransform)),f.specularIntensityMap&&(p.specularIntensityMap.value=f.specularIntensityMap,t(f.specularIntensityMap,p.specularIntensityMapTransform))}function x(p,f){f.matcap&&(p.matcap.value=f.matcap)}function T(p,f){const M=e.get(f).light;p.referencePosition.value.setFromMatrixPosition(M.matrixWorld),p.nearDistance.value=M.shadow.camera.near,p.farDistance.value=M.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function Op(i,e,t,n){let r={},s={},o=[];const a=i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS);function l(M,_){const v=_.program;n.uniformBlockBinding(M,v)}function c(M,_){let v=r[M.id];v===void 0&&(x(M),v=u(M),r[M.id]=v,M.addEventListener("dispose",p));const R=_.program;n.updateUBOMapping(M,R);const w=e.render.frame;s[M.id]!==w&&(h(M),s[M.id]=w)}function u(M){const _=d();M.__bindingPointIndex=_;const v=i.createBuffer(),R=M.__size,w=M.usage;return i.bindBuffer(i.UNIFORM_BUFFER,v),i.bufferData(i.UNIFORM_BUFFER,R,w),i.bindBuffer(i.UNIFORM_BUFFER,null),i.bindBufferBase(i.UNIFORM_BUFFER,_,v),v}function d(){for(let M=0;M0&&(v+=R-w),M.__size=v,M.__cache={},this}function T(M){const _={boundary:0,storage:0};return typeof M=="number"||typeof M=="boolean"?(_.boundary=4,_.storage=4):M.isVector2?(_.boundary=8,_.storage=8):M.isVector3||M.isColor?(_.boundary=16,_.storage=12):M.isVector4?(_.boundary=16,_.storage=16):M.isMatrix3?(_.boundary=48,_.storage=48):M.isMatrix4?(_.boundary=64,_.storage=64):M.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",M),_}function p(M){const _=M.target;_.removeEventListener("dispose",p);const v=o.indexOf(_.__bindingPointIndex);o.splice(v,1),i.deleteBuffer(r[_.id]),delete r[_.id],delete s[_.id]}function f(){for(const M in r)i.deleteBuffer(r[M]);o=[],r={},s={}}return{bind:l,update:c,dispose:f}}class Bp{constructor(e={}){const{canvas:t=_c(),context:n=null,depth:r=!0,stencil:s=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:d=!1,reverseDepthBuffer:h=!1}=e;this.isWebGLRenderer=!0;let m;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");m=n.getContextAttributes().alpha}else m=o;const x=new Uint32Array(4),T=new Int32Array(4);let p=null,f=null;const M=[],_=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=It,this.toneMapping=En,this.toneMappingExposure=1;const v=this;let R=!1,w=0,b=0,P=null,E=-1,y=null;const C=new st,H=new st;let z=null;const W=new je(0);let q=0,X=t.width,Z=t.height,N=1,te=null,ae=null;const _e=new st(0,0,X,Z),Te=new st(0,0,X,Z);let Ye=!1;const k=new tl;let ee=!1,fe=!1;this.transmissionResolutionScale=1;const ne=new lt,Se=new lt,Ae=new V,Pe=new st,Ke={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Fe=!1;function Qe(){return P===null?N:1}let D=n;function Ct(S,U){return t.getContext(S,U)}try{const S={alpha:!0,depth:r,stencil:s,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:d};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${ta}`),t.addEventListener("webglcontextlost",K,!1),t.addEventListener("webglcontextrestored",ce,!1),t.addEventListener("webglcontextcreationerror",le,!1),D===null){const U="webgl2";if(D=Ct(U,S),D===null)throw Ct(U)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(S){throw console.error("THREE.WebGLRenderer: "+S.message),S}let Oe,Be,Me,et,xe,A,g,F,$,j,Y,ve,oe,de,Ve,Q,pe,be,we,me,ze,Ue,Je,L;function re(){Oe=new Yd(D),Oe.init(),Ue=new Cp(D,Oe),Be=new Hd(D,Oe,e,Ue),Me=new wp(D,Oe),Be.reverseDepthBuffer&&h&&Me.buffers.depth.setReversed(!0),et=new Zd(D),xe=new pp,A=new Rp(D,Oe,Me,xe,Be,Ue,et),g=new kd(v),F=new qd(v),$=new nu(D),Je=new zd(D,$),j=new $d(D,$,et,Je),Y=new Jd(D,j,$,et),we=new jd(D,Be,A),Q=new Gd(xe),ve=new hp(v,g,F,Oe,Be,Je,Q),oe=new Np(v,xe),de=new gp,Ve=new yp(Oe),be=new Bd(v,g,F,Me,Y,m,l),pe=new bp(v,Y,Be),L=new Op(D,et,Be,Me),me=new Vd(D,Oe,et),ze=new Kd(D,Oe,et),et.programs=ve.programs,v.capabilities=Be,v.extensions=Oe,v.properties=xe,v.renderLists=de,v.shadowMap=pe,v.state=Me,v.info=et}re();const G=new Ip(v,D);this.xr=G,this.getContext=function(){return D},this.getContextAttributes=function(){return D.getContextAttributes()},this.forceContextLoss=function(){const S=Oe.get("WEBGL_lose_context");S&&S.loseContext()},this.forceContextRestore=function(){const S=Oe.get("WEBGL_lose_context");S&&S.restoreContext()},this.getPixelRatio=function(){return N},this.setPixelRatio=function(S){S!==void 0&&(N=S,this.setSize(X,Z,!1))},this.getSize=function(S){return S.set(X,Z)},this.setSize=function(S,U,O=!0){if(G.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}X=S,Z=U,t.width=Math.floor(S*N),t.height=Math.floor(U*N),O===!0&&(t.style.width=S+"px",t.style.height=U+"px"),this.setViewport(0,0,S,U)},this.getDrawingBufferSize=function(S){return S.set(X*N,Z*N).floor()},this.setDrawingBufferSize=function(S,U,O){X=S,Z=U,N=O,t.width=Math.floor(S*O),t.height=Math.floor(U*O),this.setViewport(0,0,S,U)},this.getCurrentViewport=function(S){return S.copy(C)},this.getViewport=function(S){return S.copy(_e)},this.setViewport=function(S,U,O,B){S.isVector4?_e.set(S.x,S.y,S.z,S.w):_e.set(S,U,O,B),Me.viewport(C.copy(_e).multiplyScalar(N).round())},this.getScissor=function(S){return S.copy(Te)},this.setScissor=function(S,U,O,B){S.isVector4?Te.set(S.x,S.y,S.z,S.w):Te.set(S,U,O,B),Me.scissor(H.copy(Te).multiplyScalar(N).round())},this.getScissorTest=function(){return Ye},this.setScissorTest=function(S){Me.setScissorTest(Ye=S)},this.setOpaqueSort=function(S){te=S},this.setTransparentSort=function(S){ae=S},this.getClearColor=function(S){return S.copy(be.getClearColor())},this.setClearColor=function(){be.setClearColor.apply(be,arguments)},this.getClearAlpha=function(){return be.getClearAlpha()},this.setClearAlpha=function(){be.setClearAlpha.apply(be,arguments)},this.clear=function(S=!0,U=!0,O=!0){let B=0;if(S){let I=!1;if(P!==null){const J=P.texture.format;I=J===oa||J===aa||J===sa}if(I){const J=P.texture.type,se=J===fn||J===Vn||J===Di||J===mi||J===ia||J===ra,ue=be.getClearColor(),ge=be.getClearAlpha(),Re=ue.r,Ce=ue.g,ye=ue.b;se?(x[0]=Re,x[1]=Ce,x[2]=ye,x[3]=ge,D.clearBufferuiv(D.COLOR,0,x)):(T[0]=Re,T[1]=Ce,T[2]=ye,T[3]=ge,D.clearBufferiv(D.COLOR,0,T))}else B|=D.COLOR_BUFFER_BIT}U&&(B|=D.DEPTH_BUFFER_BIT),O&&(B|=D.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),D.clear(B)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",K,!1),t.removeEventListener("webglcontextrestored",ce,!1),t.removeEventListener("webglcontextcreationerror",le,!1),be.dispose(),de.dispose(),Ve.dispose(),xe.dispose(),g.dispose(),F.dispose(),Y.dispose(),Je.dispose(),L.dispose(),ve.dispose(),G.dispose(),G.removeEventListener("sessionstart",pa),G.removeEventListener("sessionend",ma),An.stop()};function K(S){S.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),R=!0}function ce(){console.log("THREE.WebGLRenderer: Context Restored."),R=!1;const S=et.autoReset,U=pe.enabled,O=pe.autoUpdate,B=pe.needsUpdate,I=pe.type;re(),et.autoReset=S,pe.enabled=U,pe.autoUpdate=O,pe.needsUpdate=B,pe.type=I}function le(S){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",S.statusMessage)}function De(S){const U=S.target;U.removeEventListener("dispose",De),it(U)}function it(S){mt(S),xe.remove(S)}function mt(S){const U=xe.get(S).programs;U!==void 0&&(U.forEach(function(O){ve.releaseProgram(O)}),S.isShaderMaterial&&ve.releaseShaderCache(S))}this.renderBufferDirect=function(S,U,O,B,I,J){U===null&&(U=Ke);const se=I.isMesh&&I.matrixWorld.determinant()<0,ue=Ml(S,U,O,B,I);Me.setMaterial(B,se);let ge=O.index,Re=1;if(B.wireframe===!0){if(ge=j.getWireframeAttribute(O),ge===void 0)return;Re=2}const Ce=O.drawRange,ye=O.attributes.position;let He=Ce.start*Re,We=(Ce.start+Ce.count)*Re;J!==null&&(He=Math.max(He,J.start*Re),We=Math.min(We,(J.start+J.count)*Re)),ge!==null?(He=Math.max(He,0),We=Math.min(We,ge.count)):ye!=null&&(He=Math.max(He,0),We=Math.min(We,ye.count));const at=We-He;if(at<0||at===1/0)return;Je.setup(I,B,ue,O,ge);let rt,Ge=me;if(ge!==null&&(rt=$.get(ge),Ge=ze,Ge.setIndex(rt)),I.isMesh)B.wireframe===!0?(Me.setLineWidth(B.wireframeLinewidth*Qe()),Ge.setMode(D.LINES)):Ge.setMode(D.TRIANGLES);else if(I.isLine){let Ee=B.linewidth;Ee===void 0&&(Ee=1),Me.setLineWidth(Ee*Qe()),I.isLineSegments?Ge.setMode(D.LINES):I.isLineLoop?Ge.setMode(D.LINE_LOOP):Ge.setMode(D.LINE_STRIP)}else I.isPoints?Ge.setMode(D.POINTS):I.isSprite&&Ge.setMode(D.TRIANGLES);if(I.isBatchedMesh)if(I._multiDrawInstances!==null)Ge.renderMultiDrawInstances(I._multiDrawStarts,I._multiDrawCounts,I._multiDrawCount,I._multiDrawInstances);else if(Oe.get("WEBGL_multi_draw"))Ge.renderMultiDraw(I._multiDrawStarts,I._multiDrawCounts,I._multiDrawCount);else{const Ee=I._multiDrawStarts,pt=I._multiDrawCounts,Xe=I._multiDrawCount,Bt=ge?$.get(ge).bytesPerElement:1,kn=xe.get(B).currentProgram.getUniforms();for(let bt=0;bt{function J(){if(B.forEach(function(se){xe.get(se).currentProgram.isReady()&&B.delete(se)}),B.size===0){I(S);return}setTimeout(J,10)}Oe.get("KHR_parallel_shader_compile")!==null?J():setTimeout(J,10)})};let Ot=null;function Qt(S){Ot&&Ot(S)}function pa(){An.stop()}function ma(){An.start()}const An=new rl;An.setAnimationLoop(Qt),typeof self<"u"&&An.setContext(self),this.setAnimationLoop=function(S){Ot=S,G.setAnimationLoop(S),S===null?An.stop():An.start()},G.addEventListener("sessionstart",pa),G.addEventListener("sessionend",ma),this.render=function(S,U){if(U!==void 0&&U.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(R===!0)return;if(S.matrixWorldAutoUpdate===!0&&S.updateMatrixWorld(),U.parent===null&&U.matrixWorldAutoUpdate===!0&&U.updateMatrixWorld(),G.enabled===!0&&G.isPresenting===!0&&(G.cameraAutoUpdate===!0&&G.updateCamera(U),U=G.getCamera()),S.isScene===!0&&S.onBeforeRender(v,S,U,P),f=Ve.get(S,_.length),f.init(U),_.push(f),Se.multiplyMatrices(U.projectionMatrix,U.matrixWorldInverse),k.setFromProjectionMatrix(Se),fe=this.localClippingEnabled,ee=Q.init(this.clippingPlanes,fe),p=de.get(S,M.length),p.init(),M.push(p),G.enabled===!0&&G.isPresenting===!0){const J=v.xr.getDepthSensingMesh();J!==null&&Ur(J,U,-1/0,v.sortObjects)}Ur(S,U,0,v.sortObjects),p.finish(),v.sortObjects===!0&&p.sort(te,ae),Fe=G.enabled===!1||G.isPresenting===!1||G.hasDepthSensing()===!1,Fe&&be.addToRenderList(p,S),this.info.render.frame++,ee===!0&&Q.beginShadows();const O=f.state.shadowsArray;pe.render(O,S,U),ee===!0&&Q.endShadows(),this.info.autoReset===!0&&this.info.reset();const B=p.opaque,I=p.transmissive;if(f.setupLights(),U.isArrayCamera){const J=U.cameras;if(I.length>0)for(let se=0,ue=J.length;se0&&_a(B,I,S,U),Fe&&be.render(S),ga(p,S,U);P!==null&&b===0&&(A.updateMultisampleRenderTarget(P),A.updateRenderTargetMipmap(P)),S.isScene===!0&&S.onAfterRender(v,S,U),Je.resetDefaultState(),E=-1,y=null,_.pop(),_.length>0?(f=_[_.length-1],ee===!0&&Q.setGlobalState(v.clippingPlanes,f.state.camera)):f=null,M.pop(),M.length>0?p=M[M.length-1]:p=null};function Ur(S,U,O,B){if(S.visible===!1)return;if(S.layers.test(U.layers)){if(S.isGroup)O=S.renderOrder;else if(S.isLOD)S.autoUpdate===!0&&S.update(U);else if(S.isLight)f.pushLight(S),S.castShadow&&f.pushShadow(S);else if(S.isSprite){if(!S.frustumCulled||k.intersectsSprite(S)){B&&Pe.setFromMatrixPosition(S.matrixWorld).applyMatrix4(Se);const se=Y.update(S),ue=S.material;ue.visible&&p.push(S,se,ue,O,Pe.z,null)}}else if((S.isMesh||S.isLine||S.isPoints)&&(!S.frustumCulled||k.intersectsObject(S))){const se=Y.update(S),ue=S.material;if(B&&(S.boundingSphere!==void 0?(S.boundingSphere===null&&S.computeBoundingSphere(),Pe.copy(S.boundingSphere.center)):(se.boundingSphere===null&&se.computeBoundingSphere(),Pe.copy(se.boundingSphere.center)),Pe.applyMatrix4(S.matrixWorld).applyMatrix4(Se)),Array.isArray(ue)){const ge=se.groups;for(let Re=0,Ce=ge.length;Re0&&Vi(I,U,O),J.length>0&&Vi(J,U,O),se.length>0&&Vi(se,U,O),Me.buffers.depth.setTest(!0),Me.buffers.depth.setMask(!0),Me.buffers.color.setMask(!0),Me.setPolygonOffset(!1)}function _a(S,U,O,B){if((O.isScene===!0?O.overrideMaterial:null)!==null)return;f.state.transmissionRenderTarget[B.id]===void 0&&(f.state.transmissionRenderTarget[B.id]=new Hn(1,1,{generateMipmaps:!0,type:Oe.has("EXT_color_buffer_half_float")||Oe.has("EXT_color_buffer_float")?Ui:fn,minFilter:Bn,samples:4,stencilBuffer:s,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ke.workingColorSpace}));const J=f.state.transmissionRenderTarget[B.id],se=B.viewport||C;J.setSize(se.z*v.transmissionResolutionScale,se.w*v.transmissionResolutionScale);const ue=v.getRenderTarget();v.setRenderTarget(J),v.getClearColor(W),q=v.getClearAlpha(),q<1&&v.setClearColor(16777215,.5),v.clear(),Fe&&be.render(O);const ge=v.toneMapping;v.toneMapping=En;const Re=B.viewport;if(B.viewport!==void 0&&(B.viewport=void 0),f.setupLightsView(B),ee===!0&&Q.setGlobalState(v.clippingPlanes,B),Vi(S,O,B),A.updateMultisampleRenderTarget(J),A.updateRenderTargetMipmap(J),Oe.has("WEBGL_multisampled_render_to_texture")===!1){let Ce=!1;for(let ye=0,He=U.length;ye0),ye=!!O.morphAttributes.position,He=!!O.morphAttributes.normal,We=!!O.morphAttributes.color;let at=En;B.toneMapped&&(P===null||P.isXRRenderTarget===!0)&&(at=v.toneMapping);const rt=O.morphAttributes.position||O.morphAttributes.normal||O.morphAttributes.color,Ge=rt!==void 0?rt.length:0,Ee=xe.get(B),pt=f.state.lights;if(ee===!0&&(fe===!0||S!==y)){const xt=S===y&&B.id===E;Q.setState(B,S,xt)}let Xe=!1;B.version===Ee.__version?(Ee.needsLights&&Ee.lightsStateVersion!==pt.state.version||Ee.outputColorSpace!==ue||I.isBatchedMesh&&Ee.batching===!1||!I.isBatchedMesh&&Ee.batching===!0||I.isBatchedMesh&&Ee.batchingColor===!0&&I.colorTexture===null||I.isBatchedMesh&&Ee.batchingColor===!1&&I.colorTexture!==null||I.isInstancedMesh&&Ee.instancing===!1||!I.isInstancedMesh&&Ee.instancing===!0||I.isSkinnedMesh&&Ee.skinning===!1||!I.isSkinnedMesh&&Ee.skinning===!0||I.isInstancedMesh&&Ee.instancingColor===!0&&I.instanceColor===null||I.isInstancedMesh&&Ee.instancingColor===!1&&I.instanceColor!==null||I.isInstancedMesh&&Ee.instancingMorph===!0&&I.morphTexture===null||I.isInstancedMesh&&Ee.instancingMorph===!1&&I.morphTexture!==null||Ee.envMap!==ge||B.fog===!0&&Ee.fog!==J||Ee.numClippingPlanes!==void 0&&(Ee.numClippingPlanes!==Q.numPlanes||Ee.numIntersection!==Q.numIntersection)||Ee.vertexAlphas!==Re||Ee.vertexTangents!==Ce||Ee.morphTargets!==ye||Ee.morphNormals!==He||Ee.morphColors!==We||Ee.toneMapping!==at||Ee.morphTargetsCount!==Ge)&&(Xe=!0):(Xe=!0,Ee.__version=B.version);let Bt=Ee.currentProgram;Xe===!0&&(Bt=Hi(B,U,I));let kn=!1,bt=!1,Si=!1;const tt=Bt.getUniforms(),Pt=Ee.uniforms;if(Me.useProgram(Bt.program)&&(kn=!0,bt=!0,Si=!0),B.id!==E&&(E=B.id,bt=!0),kn||y!==S){Me.buffers.depth.getReversed()?(ne.copy(S.projectionMatrix),xc(ne),Mc(ne),tt.setValue(D,"projectionMatrix",ne)):tt.setValue(D,"projectionMatrix",S.projectionMatrix),tt.setValue(D,"viewMatrix",S.matrixWorldInverse);const St=tt.map.cameraPosition;St!==void 0&&St.setValue(D,Ae.setFromMatrixPosition(S.matrixWorld)),Be.logarithmicDepthBuffer&&tt.setValue(D,"logDepthBufFC",2/(Math.log(S.far+1)/Math.LN2)),(B.isMeshPhongMaterial||B.isMeshToonMaterial||B.isMeshLambertMaterial||B.isMeshBasicMaterial||B.isMeshStandardMaterial||B.isShaderMaterial)&&tt.setValue(D,"isOrthographic",S.isOrthographicCamera===!0),y!==S&&(y=S,bt=!0,Si=!0)}if(I.isSkinnedMesh){tt.setOptional(D,I,"bindMatrix"),tt.setOptional(D,I,"bindMatrixInverse");const xt=I.skeleton;xt&&(xt.boneTexture===null&&xt.computeBoneTexture(),tt.setValue(D,"boneTexture",xt.boneTexture,A))}I.isBatchedMesh&&(tt.setOptional(D,I,"batchingTexture"),tt.setValue(D,"batchingTexture",I._matricesTexture,A),tt.setOptional(D,I,"batchingIdTexture"),tt.setValue(D,"batchingIdTexture",I._indirectTexture,A),tt.setOptional(D,I,"batchingColorTexture"),I._colorsTexture!==null&&tt.setValue(D,"batchingColorTexture",I._colorsTexture,A));const Dt=O.morphAttributes;if((Dt.position!==void 0||Dt.normal!==void 0||Dt.color!==void 0)&&we.update(I,O,Bt),(bt||Ee.receiveShadow!==I.receiveShadow)&&(Ee.receiveShadow=I.receiveShadow,tt.setValue(D,"receiveShadow",I.receiveShadow)),B.isMeshGouraudMaterial&&B.envMap!==null&&(Pt.envMap.value=ge,Pt.flipEnvMap.value=ge.isCubeTexture&&ge.isRenderTargetTexture===!1?-1:1),B.isMeshStandardMaterial&&B.envMap===null&&U.environment!==null&&(Pt.envMapIntensity.value=U.environmentIntensity),bt&&(tt.setValue(D,"toneMappingExposure",v.toneMappingExposure),Ee.needsLights&&Sl(Pt,Si),J&&B.fog===!0&&oe.refreshFogUniforms(Pt,J),oe.refreshMaterialUniforms(Pt,B,N,Z,f.state.transmissionRenderTarget[S.id]),vr.upload(D,xa(Ee),Pt,A)),B.isShaderMaterial&&B.uniformsNeedUpdate===!0&&(vr.upload(D,xa(Ee),Pt,A),B.uniformsNeedUpdate=!1),B.isSpriteMaterial&&tt.setValue(D,"center",I.center),tt.setValue(D,"modelViewMatrix",I.modelViewMatrix),tt.setValue(D,"normalMatrix",I.normalMatrix),tt.setValue(D,"modelMatrix",I.matrixWorld),B.isShaderMaterial||B.isRawShaderMaterial){const xt=B.uniformsGroups;for(let St=0,Ir=xt.length;St0&&A.useMultisampledRTT(S)===!1?I=xe.get(S).__webglMultisampledFramebuffer:Array.isArray(Ce)?I=Ce[O]:I=Ce,C.copy(S.viewport),H.copy(S.scissor),z=S.scissorTest}else C.copy(_e).multiplyScalar(N).floor(),H.copy(Te).multiplyScalar(N).floor(),z=Ye;if(O!==0&&(I=El),Me.bindFramebuffer(D.FRAMEBUFFER,I)&&B&&Me.drawBuffers(S,I),Me.viewport(C),Me.scissor(H),Me.setScissorTest(z),J){const ge=xe.get(S.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+U,ge.__webglTexture,O)}else if(se){const ge=xe.get(S.texture),Re=U;D.framebufferTextureLayer(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,ge.__webglTexture,O,Re)}else if(S!==null&&O!==0){const ge=xe.get(S.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_2D,ge.__webglTexture,O)}E=-1},this.readRenderTargetPixels=function(S,U,O,B,I,J,se){if(!(S&&S.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ue=xe.get(S).__webglFramebuffer;if(S.isWebGLCubeRenderTarget&&se!==void 0&&(ue=ue[se]),ue){Me.bindFramebuffer(D.FRAMEBUFFER,ue);try{const ge=S.texture,Re=ge.format,Ce=ge.type;if(!Be.textureFormatReadable(Re)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Be.textureTypeReadable(Ce)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}U>=0&&U<=S.width-B&&O>=0&&O<=S.height-I&&D.readPixels(U,O,B,I,Ue.convert(Re),Ue.convert(Ce),J)}finally{const ge=P!==null?xe.get(P).__webglFramebuffer:null;Me.bindFramebuffer(D.FRAMEBUFFER,ge)}}},this.readRenderTargetPixelsAsync=async function(S,U,O,B,I,J,se){if(!(S&&S.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let ue=xe.get(S).__webglFramebuffer;if(S.isWebGLCubeRenderTarget&&se!==void 0&&(ue=ue[se]),ue){const ge=S.texture,Re=ge.format,Ce=ge.type;if(!Be.textureFormatReadable(Re))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Be.textureTypeReadable(Ce))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(U>=0&&U<=S.width-B&&O>=0&&O<=S.height-I){Me.bindFramebuffer(D.FRAMEBUFFER,ue);const ye=D.createBuffer();D.bindBuffer(D.PIXEL_PACK_BUFFER,ye),D.bufferData(D.PIXEL_PACK_BUFFER,J.byteLength,D.STREAM_READ),D.readPixels(U,O,B,I,Ue.convert(Re),Ue.convert(Ce),0);const He=P!==null?xe.get(P).__webglFramebuffer:null;Me.bindFramebuffer(D.FRAMEBUFFER,He);const We=D.fenceSync(D.SYNC_GPU_COMMANDS_COMPLETE,0);return D.flush(),await vc(D,We,4),D.bindBuffer(D.PIXEL_PACK_BUFFER,ye),D.getBufferSubData(D.PIXEL_PACK_BUFFER,0,J),D.deleteBuffer(ye),D.deleteSync(We),J}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(S,U=null,O=0){S.isTexture!==!0&&(si("WebGLRenderer: copyFramebufferToTexture function signature has changed."),U=arguments[0]||null,S=arguments[1]);const B=Math.pow(2,-O),I=Math.floor(S.image.width*B),J=Math.floor(S.image.height*B),se=U!==null?U.x:0,ue=U!==null?U.y:0;A.setTexture2D(S,0),D.copyTexSubImage2D(D.TEXTURE_2D,O,0,0,se,ue,I,J),Me.unbindTexture()};const Tl=D.createFramebuffer(),bl=D.createFramebuffer();this.copyTextureToTexture=function(S,U,O=null,B=null,I=0,J=null){S.isTexture!==!0&&(si("WebGLRenderer: copyTextureToTexture function signature has changed."),B=arguments[0]||null,S=arguments[1],U=arguments[2],J=arguments[3]||0,O=null),J===null&&(I!==0?(si("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),J=I,I=0):J=0);let se,ue,ge,Re,Ce,ye,He,We,at;const rt=S.isCompressedTexture?S.mipmaps[J]:S.image;if(O!==null)se=O.max.x-O.min.x,ue=O.max.y-O.min.y,ge=O.isBox3?O.max.z-O.min.z:1,Re=O.min.x,Ce=O.min.y,ye=O.isBox3?O.min.z:0;else{const Dt=Math.pow(2,-I);se=Math.floor(rt.width*Dt),ue=Math.floor(rt.height*Dt),S.isDataArrayTexture?ge=rt.depth:S.isData3DTexture?ge=Math.floor(rt.depth*Dt):ge=1,Re=0,Ce=0,ye=0}B!==null?(He=B.x,We=B.y,at=B.z):(He=0,We=0,at=0);const Ge=Ue.convert(U.format),Ee=Ue.convert(U.type);let pt;U.isData3DTexture?(A.setTexture3D(U,0),pt=D.TEXTURE_3D):U.isDataArrayTexture||U.isCompressedArrayTexture?(A.setTexture2DArray(U,0),pt=D.TEXTURE_2D_ARRAY):(A.setTexture2D(U,0),pt=D.TEXTURE_2D),D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,U.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,U.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,U.unpackAlignment);const Xe=D.getParameter(D.UNPACK_ROW_LENGTH),Bt=D.getParameter(D.UNPACK_IMAGE_HEIGHT),kn=D.getParameter(D.UNPACK_SKIP_PIXELS),bt=D.getParameter(D.UNPACK_SKIP_ROWS),Si=D.getParameter(D.UNPACK_SKIP_IMAGES);D.pixelStorei(D.UNPACK_ROW_LENGTH,rt.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,rt.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,Re),D.pixelStorei(D.UNPACK_SKIP_ROWS,Ce),D.pixelStorei(D.UNPACK_SKIP_IMAGES,ye);const tt=S.isDataArrayTexture||S.isData3DTexture,Pt=U.isDataArrayTexture||U.isData3DTexture;if(S.isDepthTexture){const Dt=xe.get(S),xt=xe.get(U),St=xe.get(Dt.__renderTarget),Ir=xe.get(xt.__renderTarget);Me.bindFramebuffer(D.READ_FRAMEBUFFER,St.__webglFramebuffer),Me.bindFramebuffer(D.DRAW_FRAMEBUFFER,Ir.__webglFramebuffer);for(let wn=0;wn{const e=document.implementation.createHTMLDocument("test"),t=e.createRange();t.selectNodeContents(e.documentElement),t.deleteContents();const n=document.createElement("head");return e.documentElement.appendChild(n),e.documentElement.appendChild(t.createContextualFragment(i)),e.documentElement.setAttribute("xmlns",e.documentElement.namespaceURI),new XMLSerializer().serializeToString(e).replace(//,"")};function Vp(i){return i.cloneNode(!0)}function cl(i,e,t){return fa(this,void 0,void 0,function*(){const n=i.getBoundingClientRect(),r=window.devicePixelRatio,s=n.width*r,o=n.height*r,a=t&&t.width===s&&t.height===o?t:new OffscreenCanvas(s,o),l=Vp(i);yield ul(i,l),l.style.setProperty("opacity",e.toString()),l.style.setProperty("margin","0px");const c=l.outerHTML,u=zp(c),d=`${u}`;return new Promise((h,m)=>{const x=new Image;x.onload=()=>{const T=a.getContext("2d");if(T===null)return m();T.clearRect(0,0,s,o),T.scale(r,r),T.drawImage(x,0,0,s,o),T.setTransform(1,0,0,1,0,0),h(a)},x.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`})})}function ul(i,e){return fa(this,void 0,void 0,function*(){const t=window.getComputedStyle(i);Array.from(t).forEach(n=>{e.style.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n))}),e.tagName==="INPUT"?e.setAttribute("value",e.value):e.tagName==="TEXTAREA"?e.innerHTML=e.value:e.tagName==="IMG"&&(e.src=yield Hp(i.src));for(let n=0;nt.blob());return new Promise(t=>{const n=new FileReader;n.onload=function(){t(this.result)},n.readAsDataURL(e)})})}const Gp=` +}`;class Up{constructor(){this.texture=null,this.mesh=null,this.depthNear=0,this.depthFar=0}init(e,t,n){if(this.texture===null){const r=new ht,s=e.properties.get(r);s.__webglTexture=t.texture,(t.depthNear!==n.depthNear||t.depthFar!==n.depthFar)&&(this.depthNear=t.depthNear,this.depthFar=t.depthFar),this.texture=r}}getMesh(e){if(this.texture!==null&&this.mesh===null){const t=e.cameras[0].viewport,n=new hn({vertexShader:Dp,fragmentShader:Lp,uniforms:{depthColor:{value:this.texture},depthWidth:{value:t.z},depthHeight:{value:t.w}}});this.mesh=new jt(new Bi(20,20),n)}return this.mesh}reset(){this.texture=null,this.mesh=null}getDepthTexture(){return this.texture}}class Ip extends xi{constructor(e,t){super();const n=this;let r=null,s=1,o=null,a="local-floor",l=1,c=null,u=null,d=null,h=null,m=null,x=null;const T=new Up,p=t.getContextAttributes();let f=null,M=null;const _=[],v=[],R=new qe;let w=null;const b=new Wt;b.viewport=new st;const P=new Wt;P.viewport=new st;const E=[b,P],y=new eu;let C=null,H=null;this.cameraAutoUpdate=!0,this.enabled=!1,this.isPresenting=!1,this.getController=function(k){let ee=_[k];return ee===void 0&&(ee=new us,_[k]=ee),ee.getTargetRaySpace()},this.getControllerGrip=function(k){let ee=_[k];return ee===void 0&&(ee=new us,_[k]=ee),ee.getGripSpace()},this.getHand=function(k){let ee=_[k];return ee===void 0&&(ee=new us,_[k]=ee),ee.getHandSpace()};function z(k){const ee=v.indexOf(k.inputSource);if(ee===-1)return;const fe=_[ee];fe!==void 0&&(fe.update(k.inputSource,k.frame,c||o),fe.dispatchEvent({type:k.type,data:k.inputSource}))}function W(){r.removeEventListener("select",z),r.removeEventListener("selectstart",z),r.removeEventListener("selectend",z),r.removeEventListener("squeeze",z),r.removeEventListener("squeezestart",z),r.removeEventListener("squeezeend",z),r.removeEventListener("end",W),r.removeEventListener("inputsourceschange",q);for(let k=0;k<_.length;k++){const ee=v[k];ee!==null&&(v[k]=null,_[k].disconnect(ee))}C=null,H=null,T.reset(),e.setRenderTarget(f),m=null,h=null,d=null,r=null,M=null,Ye.stop(),n.isPresenting=!1,e.setPixelRatio(w),e.setSize(R.width,R.height,!1),n.dispatchEvent({type:"sessionend"})}this.setFramebufferScaleFactor=function(k){s=k,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change framebuffer scale while presenting.")},this.setReferenceSpaceType=function(k){a=k,n.isPresenting===!0&&console.warn("THREE.WebXRManager: Cannot change reference space type while presenting.")},this.getReferenceSpace=function(){return c||o},this.setReferenceSpace=function(k){c=k},this.getBaseLayer=function(){return h!==null?h:m},this.getBinding=function(){return d},this.getFrame=function(){return x},this.getSession=function(){return r},this.setSession=async function(k){if(r=k,r!==null){if(f=e.getRenderTarget(),r.addEventListener("select",z),r.addEventListener("selectstart",z),r.addEventListener("selectend",z),r.addEventListener("squeeze",z),r.addEventListener("squeezestart",z),r.addEventListener("squeezeend",z),r.addEventListener("end",W),r.addEventListener("inputsourceschange",q),p.xrCompatible!==!0&&await t.makeXRCompatible(),w=e.getPixelRatio(),e.getSize(R),r.enabledFeatures!==void 0&&r.enabledFeatures.includes("layers")){let fe=null,ne=null,Se=null;p.depth&&(Se=p.stencil?t.DEPTH24_STENCIL8:t.DEPTH_COMPONENT24,fe=p.stencil?gi:ui,ne=p.stencil?mi:Vn);const Ae={colorFormat:t.RGBA8,depthFormat:Se,scaleFactor:s};d=new XRWebGLBinding(r,t),h=d.createProjectionLayer(Ae),r.updateRenderState({layers:[h]}),e.setPixelRatio(1),e.setSize(h.textureWidth,h.textureHeight,!1),M=new Hn(h.textureWidth,h.textureHeight,{format:Nt,type:fn,depthTexture:new nl(h.textureWidth,h.textureHeight,ne,void 0,void 0,void 0,void 0,void 0,void 0,fe),stencilBuffer:p.stencil,colorSpace:e.outputColorSpace,samples:p.antialias?4:0,resolveDepthBuffer:h.ignoreDepthValues===!1})}else{const fe={antialias:p.antialias,alpha:!0,depth:p.depth,stencil:p.stencil,framebufferScaleFactor:s};m=new XRWebGLLayer(r,t,fe),r.updateRenderState({baseLayer:m}),e.setPixelRatio(1),e.setSize(m.framebufferWidth,m.framebufferHeight,!1),M=new Hn(m.framebufferWidth,m.framebufferHeight,{format:Nt,type:fn,colorSpace:e.outputColorSpace,stencilBuffer:p.stencil})}M.isXRRenderTarget=!0,this.setFoveation(l),c=null,o=await r.requestReferenceSpace(a),Ye.setContext(r),Ye.start(),n.isPresenting=!0,n.dispatchEvent({type:"sessionstart"})}},this.getEnvironmentBlendMode=function(){if(r!==null)return r.environmentBlendMode},this.getDepthTexture=function(){return T.getDepthTexture()};function q(k){for(let ee=0;ee=0&&(v[ne]=null,_[ne].disconnect(fe))}for(let ee=0;ee=v.length){v.push(fe),ne=Ae;break}else if(v[Ae]===null){v[Ae]=fe,ne=Ae;break}if(ne===-1)break}const Se=_[ne];Se&&Se.connect(fe)}}const X=new V,Z=new V;function N(k,ee,fe){X.setFromMatrixPosition(ee.matrixWorld),Z.setFromMatrixPosition(fe.matrixWorld);const ne=X.distanceTo(Z),Se=ee.projectionMatrix.elements,Ae=fe.projectionMatrix.elements,Pe=Se[14]/(Se[10]-1),Ke=Se[14]/(Se[10]+1),Fe=(Se[9]+1)/Se[5],Qe=(Se[9]-1)/Se[5],D=(Se[8]-1)/Se[0],Ct=(Ae[8]+1)/Ae[0],Oe=Pe*D,Be=Pe*Ct,Me=ne/(-D+Ct),et=Me*-D;if(ee.matrixWorld.decompose(k.position,k.quaternion,k.scale),k.translateX(et),k.translateZ(Me),k.matrixWorld.compose(k.position,k.quaternion,k.scale),k.matrixWorldInverse.copy(k.matrixWorld).invert(),Se[10]===-1)k.projectionMatrix.copy(ee.projectionMatrix),k.projectionMatrixInverse.copy(ee.projectionMatrixInverse);else{const xe=Pe+Me,A=Ke+Me,g=Oe-et,F=Be+(ne-et),$=Fe*Ke/A*xe,j=Qe*Ke/A*xe;k.projectionMatrix.makePerspective(g,F,$,j,xe,A),k.projectionMatrixInverse.copy(k.projectionMatrix).invert()}}function te(k,ee){ee===null?k.matrixWorld.copy(k.matrix):k.matrixWorld.multiplyMatrices(ee.matrixWorld,k.matrix),k.matrixWorldInverse.copy(k.matrixWorld).invert()}this.updateCamera=function(k){if(r===null)return;let ee=k.near,fe=k.far;T.texture!==null&&(T.depthNear>0&&(ee=T.depthNear),T.depthFar>0&&(fe=T.depthFar)),y.near=P.near=b.near=ee,y.far=P.far=b.far=fe,(C!==y.near||H!==y.far)&&(r.updateRenderState({depthNear:y.near,depthFar:y.far}),C=y.near,H=y.far),b.layers.mask=k.layers.mask|2,P.layers.mask=k.layers.mask|4,y.layers.mask=b.layers.mask|P.layers.mask;const ne=k.parent,Se=y.cameras;te(y,ne);for(let Ae=0;Ae0&&(p.alphaTest.value=f.alphaTest);const M=e.get(f),_=M.envMap,v=M.envMapRotation;_&&(p.envMap.value=_,Un.copy(v),Un.x*=-1,Un.y*=-1,Un.z*=-1,_.isCubeTexture&&_.isRenderTargetTexture===!1&&(Un.y*=-1,Un.z*=-1),p.envMapRotation.value.setFromMatrix4(Fp.makeRotationFromEuler(Un)),p.flipEnvMap.value=_.isCubeTexture&&_.isRenderTargetTexture===!1?-1:1,p.reflectivity.value=f.reflectivity,p.ior.value=f.ior,p.refractionRatio.value=f.refractionRatio),f.lightMap&&(p.lightMap.value=f.lightMap,p.lightMapIntensity.value=f.lightMapIntensity,t(f.lightMap,p.lightMapTransform)),f.aoMap&&(p.aoMap.value=f.aoMap,p.aoMapIntensity.value=f.aoMapIntensity,t(f.aoMap,p.aoMapTransform))}function o(p,f){p.diffuse.value.copy(f.color),p.opacity.value=f.opacity,f.map&&(p.map.value=f.map,t(f.map,p.mapTransform))}function a(p,f){p.dashSize.value=f.dashSize,p.totalSize.value=f.dashSize+f.gapSize,p.scale.value=f.scale}function l(p,f,M,_){p.diffuse.value.copy(f.color),p.opacity.value=f.opacity,p.size.value=f.size*M,p.scale.value=_*.5,f.map&&(p.map.value=f.map,t(f.map,p.uvTransform)),f.alphaMap&&(p.alphaMap.value=f.alphaMap,t(f.alphaMap,p.alphaMapTransform)),f.alphaTest>0&&(p.alphaTest.value=f.alphaTest)}function c(p,f){p.diffuse.value.copy(f.color),p.opacity.value=f.opacity,p.rotation.value=f.rotation,f.map&&(p.map.value=f.map,t(f.map,p.mapTransform)),f.alphaMap&&(p.alphaMap.value=f.alphaMap,t(f.alphaMap,p.alphaMapTransform)),f.alphaTest>0&&(p.alphaTest.value=f.alphaTest)}function u(p,f){p.specular.value.copy(f.specular),p.shininess.value=Math.max(f.shininess,1e-4)}function d(p,f){f.gradientMap&&(p.gradientMap.value=f.gradientMap)}function h(p,f){p.metalness.value=f.metalness,f.metalnessMap&&(p.metalnessMap.value=f.metalnessMap,t(f.metalnessMap,p.metalnessMapTransform)),p.roughness.value=f.roughness,f.roughnessMap&&(p.roughnessMap.value=f.roughnessMap,t(f.roughnessMap,p.roughnessMapTransform)),f.envMap&&(p.envMapIntensity.value=f.envMapIntensity)}function m(p,f,M){p.ior.value=f.ior,f.sheen>0&&(p.sheenColor.value.copy(f.sheenColor).multiplyScalar(f.sheen),p.sheenRoughness.value=f.sheenRoughness,f.sheenColorMap&&(p.sheenColorMap.value=f.sheenColorMap,t(f.sheenColorMap,p.sheenColorMapTransform)),f.sheenRoughnessMap&&(p.sheenRoughnessMap.value=f.sheenRoughnessMap,t(f.sheenRoughnessMap,p.sheenRoughnessMapTransform))),f.clearcoat>0&&(p.clearcoat.value=f.clearcoat,p.clearcoatRoughness.value=f.clearcoatRoughness,f.clearcoatMap&&(p.clearcoatMap.value=f.clearcoatMap,t(f.clearcoatMap,p.clearcoatMapTransform)),f.clearcoatRoughnessMap&&(p.clearcoatRoughnessMap.value=f.clearcoatRoughnessMap,t(f.clearcoatRoughnessMap,p.clearcoatRoughnessMapTransform)),f.clearcoatNormalMap&&(p.clearcoatNormalMap.value=f.clearcoatNormalMap,t(f.clearcoatNormalMap,p.clearcoatNormalMapTransform),p.clearcoatNormalScale.value.copy(f.clearcoatNormalScale),f.side===Tt&&p.clearcoatNormalScale.value.negate())),f.dispersion>0&&(p.dispersion.value=f.dispersion),f.iridescence>0&&(p.iridescence.value=f.iridescence,p.iridescenceIOR.value=f.iridescenceIOR,p.iridescenceThicknessMinimum.value=f.iridescenceThicknessRange[0],p.iridescenceThicknessMaximum.value=f.iridescenceThicknessRange[1],f.iridescenceMap&&(p.iridescenceMap.value=f.iridescenceMap,t(f.iridescenceMap,p.iridescenceMapTransform)),f.iridescenceThicknessMap&&(p.iridescenceThicknessMap.value=f.iridescenceThicknessMap,t(f.iridescenceThicknessMap,p.iridescenceThicknessMapTransform))),f.transmission>0&&(p.transmission.value=f.transmission,p.transmissionSamplerMap.value=M.texture,p.transmissionSamplerSize.value.set(M.width,M.height),f.transmissionMap&&(p.transmissionMap.value=f.transmissionMap,t(f.transmissionMap,p.transmissionMapTransform)),p.thickness.value=f.thickness,f.thicknessMap&&(p.thicknessMap.value=f.thicknessMap,t(f.thicknessMap,p.thicknessMapTransform)),p.attenuationDistance.value=f.attenuationDistance,p.attenuationColor.value.copy(f.attenuationColor)),f.anisotropy>0&&(p.anisotropyVector.value.set(f.anisotropy*Math.cos(f.anisotropyRotation),f.anisotropy*Math.sin(f.anisotropyRotation)),f.anisotropyMap&&(p.anisotropyMap.value=f.anisotropyMap,t(f.anisotropyMap,p.anisotropyMapTransform))),p.specularIntensity.value=f.specularIntensity,p.specularColor.value.copy(f.specularColor),f.specularColorMap&&(p.specularColorMap.value=f.specularColorMap,t(f.specularColorMap,p.specularColorMapTransform)),f.specularIntensityMap&&(p.specularIntensityMap.value=f.specularIntensityMap,t(f.specularIntensityMap,p.specularIntensityMapTransform))}function x(p,f){f.matcap&&(p.matcap.value=f.matcap)}function T(p,f){const M=e.get(f).light;p.referencePosition.value.setFromMatrixPosition(M.matrixWorld),p.nearDistance.value=M.shadow.camera.near,p.farDistance.value=M.shadow.camera.far}return{refreshFogUniforms:n,refreshMaterialUniforms:r}}function Op(i,e,t,n){let r={},s={},o=[];const a=i.getParameter(i.MAX_UNIFORM_BUFFER_BINDINGS);function l(M,_){const v=_.program;n.uniformBlockBinding(M,v)}function c(M,_){let v=r[M.id];v===void 0&&(x(M),v=u(M),r[M.id]=v,M.addEventListener("dispose",p));const R=_.program;n.updateUBOMapping(M,R);const w=e.render.frame;s[M.id]!==w&&(h(M),s[M.id]=w)}function u(M){const _=d();M.__bindingPointIndex=_;const v=i.createBuffer(),R=M.__size,w=M.usage;return i.bindBuffer(i.UNIFORM_BUFFER,v),i.bufferData(i.UNIFORM_BUFFER,R,w),i.bindBuffer(i.UNIFORM_BUFFER,null),i.bindBufferBase(i.UNIFORM_BUFFER,_,v),v}function d(){for(let M=0;M0&&(v+=R-w),M.__size=v,M.__cache={},this}function T(M){const _={boundary:0,storage:0};return typeof M=="number"||typeof M=="boolean"?(_.boundary=4,_.storage=4):M.isVector2?(_.boundary=8,_.storage=8):M.isVector3||M.isColor?(_.boundary=16,_.storage=12):M.isVector4?(_.boundary=16,_.storage=16):M.isMatrix3?(_.boundary=48,_.storage=48):M.isMatrix4?(_.boundary=64,_.storage=64):M.isTexture?console.warn("THREE.WebGLRenderer: Texture samplers can not be part of an uniforms group."):console.warn("THREE.WebGLRenderer: Unsupported uniform value type.",M),_}function p(M){const _=M.target;_.removeEventListener("dispose",p);const v=o.indexOf(_.__bindingPointIndex);o.splice(v,1),i.deleteBuffer(r[_.id]),delete r[_.id],delete s[_.id]}function f(){for(const M in r)i.deleteBuffer(r[M]);o=[],r={},s={}}return{bind:l,update:c,dispose:f}}class Bp{constructor(e={}){const{canvas:t=_c(),context:n=null,depth:r=!0,stencil:s=!1,alpha:o=!1,antialias:a=!1,premultipliedAlpha:l=!0,preserveDrawingBuffer:c=!1,powerPreference:u="default",failIfMajorPerformanceCaveat:d=!1,reverseDepthBuffer:h=!1}=e;this.isWebGLRenderer=!0;let m;if(n!==null){if(typeof WebGLRenderingContext<"u"&&n instanceof WebGLRenderingContext)throw new Error("THREE.WebGLRenderer: WebGL 1 is not supported since r163.");m=n.getContextAttributes().alpha}else m=o;const x=new Uint32Array(4),T=new Int32Array(4);let p=null,f=null;const M=[],_=[];this.domElement=t,this.debug={checkShaderErrors:!0,onShaderError:null},this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this._outputColorSpace=It,this.toneMapping=En,this.toneMappingExposure=1;const v=this;let R=!1,w=0,b=0,P=null,E=-1,y=null;const C=new st,H=new st;let z=null;const W=new je(0);let q=0,X=t.width,Z=t.height,N=1,te=null,ae=null;const _e=new st(0,0,X,Z),Te=new st(0,0,X,Z);let Ye=!1;const k=new tl;let ee=!1,fe=!1;this.transmissionResolutionScale=1;const ne=new lt,Se=new lt,Ae=new V,Pe=new st,Ke={background:null,fog:null,environment:null,overrideMaterial:null,isScene:!0};let Fe=!1;function Qe(){return P===null?N:1}let D=n;function Ct(S,U){return t.getContext(S,U)}try{const S={alpha:!0,depth:r,stencil:s,antialias:a,premultipliedAlpha:l,preserveDrawingBuffer:c,powerPreference:u,failIfMajorPerformanceCaveat:d};if("setAttribute"in t&&t.setAttribute("data-engine",`three.js r${ta}`),t.addEventListener("webglcontextlost",K,!1),t.addEventListener("webglcontextrestored",ce,!1),t.addEventListener("webglcontextcreationerror",le,!1),D===null){const U="webgl2";if(D=Ct(U,S),D===null)throw Ct(U)?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.")}}catch(S){throw console.error("THREE.WebGLRenderer: "+S.message),S}let Oe,Be,Me,et,xe,A,g,F,$,j,Y,ve,oe,de,Ve,Q,pe,be,we,me,ze,Ue,Je,L;function re(){Oe=new Yd(D),Oe.init(),Ue=new Cp(D,Oe),Be=new Hd(D,Oe,e,Ue),Me=new wp(D,Oe),Be.reverseDepthBuffer&&h&&Me.buffers.depth.setReversed(!0),et=new Zd(D),xe=new pp,A=new Rp(D,Oe,Me,xe,Be,Ue,et),g=new kd(v),F=new qd(v),$=new nu(D),Je=new zd(D,$),j=new $d(D,$,et,Je),Y=new Jd(D,j,$,et),we=new jd(D,Be,A),Q=new Gd(xe),ve=new hp(v,g,F,Oe,Be,Je,Q),oe=new Np(v,xe),de=new gp,Ve=new yp(Oe),be=new Bd(v,g,F,Me,Y,m,l),pe=new bp(v,Y,Be),L=new Op(D,et,Be,Me),me=new Vd(D,Oe,et),ze=new Kd(D,Oe,et),et.programs=ve.programs,v.capabilities=Be,v.extensions=Oe,v.properties=xe,v.renderLists=de,v.shadowMap=pe,v.state=Me,v.info=et}re();const G=new Ip(v,D);this.xr=G,this.getContext=function(){return D},this.getContextAttributes=function(){return D.getContextAttributes()},this.forceContextLoss=function(){const S=Oe.get("WEBGL_lose_context");S&&S.loseContext()},this.forceContextRestore=function(){const S=Oe.get("WEBGL_lose_context");S&&S.restoreContext()},this.getPixelRatio=function(){return N},this.setPixelRatio=function(S){S!==void 0&&(N=S,this.setSize(X,Z,!1))},this.getSize=function(S){return S.set(X,Z)},this.setSize=function(S,U,O=!0){if(G.isPresenting){console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");return}X=S,Z=U,t.width=Math.floor(S*N),t.height=Math.floor(U*N),O===!0&&(t.style.width=S+"px",t.style.height=U+"px"),this.setViewport(0,0,S,U)},this.getDrawingBufferSize=function(S){return S.set(X*N,Z*N).floor()},this.setDrawingBufferSize=function(S,U,O){X=S,Z=U,N=O,t.width=Math.floor(S*O),t.height=Math.floor(U*O),this.setViewport(0,0,S,U)},this.getCurrentViewport=function(S){return S.copy(C)},this.getViewport=function(S){return S.copy(_e)},this.setViewport=function(S,U,O,B){S.isVector4?_e.set(S.x,S.y,S.z,S.w):_e.set(S,U,O,B),Me.viewport(C.copy(_e).multiplyScalar(N).round())},this.getScissor=function(S){return S.copy(Te)},this.setScissor=function(S,U,O,B){S.isVector4?Te.set(S.x,S.y,S.z,S.w):Te.set(S,U,O,B),Me.scissor(H.copy(Te).multiplyScalar(N).round())},this.getScissorTest=function(){return Ye},this.setScissorTest=function(S){Me.setScissorTest(Ye=S)},this.setOpaqueSort=function(S){te=S},this.setTransparentSort=function(S){ae=S},this.getClearColor=function(S){return S.copy(be.getClearColor())},this.setClearColor=function(){be.setClearColor.apply(be,arguments)},this.getClearAlpha=function(){return be.getClearAlpha()},this.setClearAlpha=function(){be.setClearAlpha.apply(be,arguments)},this.clear=function(S=!0,U=!0,O=!0){let B=0;if(S){let I=!1;if(P!==null){const J=P.texture.format;I=J===oa||J===aa||J===sa}if(I){const J=P.texture.type,se=J===fn||J===Vn||J===Di||J===mi||J===ia||J===ra,ue=be.getClearColor(),ge=be.getClearAlpha(),Re=ue.r,Ce=ue.g,ye=ue.b;se?(x[0]=Re,x[1]=Ce,x[2]=ye,x[3]=ge,D.clearBufferuiv(D.COLOR,0,x)):(T[0]=Re,T[1]=Ce,T[2]=ye,T[3]=ge,D.clearBufferiv(D.COLOR,0,T))}else B|=D.COLOR_BUFFER_BIT}U&&(B|=D.DEPTH_BUFFER_BIT),O&&(B|=D.STENCIL_BUFFER_BIT,this.state.buffers.stencil.setMask(4294967295)),D.clear(B)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.dispose=function(){t.removeEventListener("webglcontextlost",K,!1),t.removeEventListener("webglcontextrestored",ce,!1),t.removeEventListener("webglcontextcreationerror",le,!1),be.dispose(),de.dispose(),Ve.dispose(),xe.dispose(),g.dispose(),F.dispose(),Y.dispose(),Je.dispose(),L.dispose(),ve.dispose(),G.dispose(),G.removeEventListener("sessionstart",pa),G.removeEventListener("sessionend",ma),An.stop()};function K(S){S.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),R=!0}function ce(){console.log("THREE.WebGLRenderer: Context Restored."),R=!1;const S=et.autoReset,U=pe.enabled,O=pe.autoUpdate,B=pe.needsUpdate,I=pe.type;re(),et.autoReset=S,pe.enabled=U,pe.autoUpdate=O,pe.needsUpdate=B,pe.type=I}function le(S){console.error("THREE.WebGLRenderer: A WebGL context could not be created. Reason: ",S.statusMessage)}function De(S){const U=S.target;U.removeEventListener("dispose",De),it(U)}function it(S){mt(S),xe.remove(S)}function mt(S){const U=xe.get(S).programs;U!==void 0&&(U.forEach(function(O){ve.releaseProgram(O)}),S.isShaderMaterial&&ve.releaseShaderCache(S))}this.renderBufferDirect=function(S,U,O,B,I,J){U===null&&(U=Ke);const se=I.isMesh&&I.matrixWorld.determinant()<0,ue=Ml(S,U,O,B,I);Me.setMaterial(B,se);let ge=O.index,Re=1;if(B.wireframe===!0){if(ge=j.getWireframeAttribute(O),ge===void 0)return;Re=2}const Ce=O.drawRange,ye=O.attributes.position;let He=Ce.start*Re,We=(Ce.start+Ce.count)*Re;J!==null&&(He=Math.max(He,J.start*Re),We=Math.min(We,(J.start+J.count)*Re)),ge!==null?(He=Math.max(He,0),We=Math.min(We,ge.count)):ye!=null&&(He=Math.max(He,0),We=Math.min(We,ye.count));const at=We-He;if(at<0||at===1/0)return;Je.setup(I,B,ue,O,ge);let rt,Ge=me;if(ge!==null&&(rt=$.get(ge),Ge=ze,Ge.setIndex(rt)),I.isMesh)B.wireframe===!0?(Me.setLineWidth(B.wireframeLinewidth*Qe()),Ge.setMode(D.LINES)):Ge.setMode(D.TRIANGLES);else if(I.isLine){let Ee=B.linewidth;Ee===void 0&&(Ee=1),Me.setLineWidth(Ee*Qe()),I.isLineSegments?Ge.setMode(D.LINES):I.isLineLoop?Ge.setMode(D.LINE_LOOP):Ge.setMode(D.LINE_STRIP)}else I.isPoints?Ge.setMode(D.POINTS):I.isSprite&&Ge.setMode(D.TRIANGLES);if(I.isBatchedMesh)if(I._multiDrawInstances!==null)Ge.renderMultiDrawInstances(I._multiDrawStarts,I._multiDrawCounts,I._multiDrawCount,I._multiDrawInstances);else if(Oe.get("WEBGL_multi_draw"))Ge.renderMultiDraw(I._multiDrawStarts,I._multiDrawCounts,I._multiDrawCount);else{const Ee=I._multiDrawStarts,pt=I._multiDrawCounts,Xe=I._multiDrawCount,Bt=ge?$.get(ge).bytesPerElement:1,kn=xe.get(B).currentProgram.getUniforms();for(let bt=0;bt{function J(){if(B.forEach(function(se){xe.get(se).currentProgram.isReady()&&B.delete(se)}),B.size===0){I(S);return}setTimeout(J,10)}Oe.get("KHR_parallel_shader_compile")!==null?J():setTimeout(J,10)})};let Ot=null;function Qt(S){Ot&&Ot(S)}function pa(){An.stop()}function ma(){An.start()}const An=new rl;An.setAnimationLoop(Qt),typeof self<"u"&&An.setContext(self),this.setAnimationLoop=function(S){Ot=S,G.setAnimationLoop(S),S===null?An.stop():An.start()},G.addEventListener("sessionstart",pa),G.addEventListener("sessionend",ma),this.render=function(S,U){if(U!==void 0&&U.isCamera!==!0){console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");return}if(R===!0)return;if(S.matrixWorldAutoUpdate===!0&&S.updateMatrixWorld(),U.parent===null&&U.matrixWorldAutoUpdate===!0&&U.updateMatrixWorld(),G.enabled===!0&&G.isPresenting===!0&&(G.cameraAutoUpdate===!0&&G.updateCamera(U),U=G.getCamera()),S.isScene===!0&&S.onBeforeRender(v,S,U,P),f=Ve.get(S,_.length),f.init(U),_.push(f),Se.multiplyMatrices(U.projectionMatrix,U.matrixWorldInverse),k.setFromProjectionMatrix(Se),fe=this.localClippingEnabled,ee=Q.init(this.clippingPlanes,fe),p=de.get(S,M.length),p.init(),M.push(p),G.enabled===!0&&G.isPresenting===!0){const J=v.xr.getDepthSensingMesh();J!==null&&Ur(J,U,-1/0,v.sortObjects)}Ur(S,U,0,v.sortObjects),p.finish(),v.sortObjects===!0&&p.sort(te,ae),Fe=G.enabled===!1||G.isPresenting===!1||G.hasDepthSensing()===!1,Fe&&be.addToRenderList(p,S),this.info.render.frame++,ee===!0&&Q.beginShadows();const O=f.state.shadowsArray;pe.render(O,S,U),ee===!0&&Q.endShadows(),this.info.autoReset===!0&&this.info.reset();const B=p.opaque,I=p.transmissive;if(f.setupLights(),U.isArrayCamera){const J=U.cameras;if(I.length>0)for(let se=0,ue=J.length;se0&&_a(B,I,S,U),Fe&&be.render(S),ga(p,S,U);P!==null&&b===0&&(A.updateMultisampleRenderTarget(P),A.updateRenderTargetMipmap(P)),S.isScene===!0&&S.onAfterRender(v,S,U),Je.resetDefaultState(),E=-1,y=null,_.pop(),_.length>0?(f=_[_.length-1],ee===!0&&Q.setGlobalState(v.clippingPlanes,f.state.camera)):f=null,M.pop(),M.length>0?p=M[M.length-1]:p=null};function Ur(S,U,O,B){if(S.visible===!1)return;if(S.layers.test(U.layers)){if(S.isGroup)O=S.renderOrder;else if(S.isLOD)S.autoUpdate===!0&&S.update(U);else if(S.isLight)f.pushLight(S),S.castShadow&&f.pushShadow(S);else if(S.isSprite){if(!S.frustumCulled||k.intersectsSprite(S)){B&&Pe.setFromMatrixPosition(S.matrixWorld).applyMatrix4(Se);const se=Y.update(S),ue=S.material;ue.visible&&p.push(S,se,ue,O,Pe.z,null)}}else if((S.isMesh||S.isLine||S.isPoints)&&(!S.frustumCulled||k.intersectsObject(S))){const se=Y.update(S),ue=S.material;if(B&&(S.boundingSphere!==void 0?(S.boundingSphere===null&&S.computeBoundingSphere(),Pe.copy(S.boundingSphere.center)):(se.boundingSphere===null&&se.computeBoundingSphere(),Pe.copy(se.boundingSphere.center)),Pe.applyMatrix4(S.matrixWorld).applyMatrix4(Se)),Array.isArray(ue)){const ge=se.groups;for(let Re=0,Ce=ge.length;Re0&&Vi(I,U,O),J.length>0&&Vi(J,U,O),se.length>0&&Vi(se,U,O),Me.buffers.depth.setTest(!0),Me.buffers.depth.setMask(!0),Me.buffers.color.setMask(!0),Me.setPolygonOffset(!1)}function _a(S,U,O,B){if((O.isScene===!0?O.overrideMaterial:null)!==null)return;f.state.transmissionRenderTarget[B.id]===void 0&&(f.state.transmissionRenderTarget[B.id]=new Hn(1,1,{generateMipmaps:!0,type:Oe.has("EXT_color_buffer_half_float")||Oe.has("EXT_color_buffer_float")?Ui:fn,minFilter:Bn,samples:4,stencilBuffer:s,resolveDepthBuffer:!1,resolveStencilBuffer:!1,colorSpace:ke.workingColorSpace}));const J=f.state.transmissionRenderTarget[B.id],se=B.viewport||C;J.setSize(se.z*v.transmissionResolutionScale,se.w*v.transmissionResolutionScale);const ue=v.getRenderTarget();v.setRenderTarget(J),v.getClearColor(W),q=v.getClearAlpha(),q<1&&v.setClearColor(16777215,.5),v.clear(),Fe&&be.render(O);const ge=v.toneMapping;v.toneMapping=En;const Re=B.viewport;if(B.viewport!==void 0&&(B.viewport=void 0),f.setupLightsView(B),ee===!0&&Q.setGlobalState(v.clippingPlanes,B),Vi(S,O,B),A.updateMultisampleRenderTarget(J),A.updateRenderTargetMipmap(J),Oe.has("WEBGL_multisampled_render_to_texture")===!1){let Ce=!1;for(let ye=0,He=U.length;ye0),ye=!!O.morphAttributes.position,He=!!O.morphAttributes.normal,We=!!O.morphAttributes.color;let at=En;B.toneMapped&&(P===null||P.isXRRenderTarget===!0)&&(at=v.toneMapping);const rt=O.morphAttributes.position||O.morphAttributes.normal||O.morphAttributes.color,Ge=rt!==void 0?rt.length:0,Ee=xe.get(B),pt=f.state.lights;if(ee===!0&&(fe===!0||S!==y)){const xt=S===y&&B.id===E;Q.setState(B,S,xt)}let Xe=!1;B.version===Ee.__version?(Ee.needsLights&&Ee.lightsStateVersion!==pt.state.version||Ee.outputColorSpace!==ue||I.isBatchedMesh&&Ee.batching===!1||!I.isBatchedMesh&&Ee.batching===!0||I.isBatchedMesh&&Ee.batchingColor===!0&&I.colorTexture===null||I.isBatchedMesh&&Ee.batchingColor===!1&&I.colorTexture!==null||I.isInstancedMesh&&Ee.instancing===!1||!I.isInstancedMesh&&Ee.instancing===!0||I.isSkinnedMesh&&Ee.skinning===!1||!I.isSkinnedMesh&&Ee.skinning===!0||I.isInstancedMesh&&Ee.instancingColor===!0&&I.instanceColor===null||I.isInstancedMesh&&Ee.instancingColor===!1&&I.instanceColor!==null||I.isInstancedMesh&&Ee.instancingMorph===!0&&I.morphTexture===null||I.isInstancedMesh&&Ee.instancingMorph===!1&&I.morphTexture!==null||Ee.envMap!==ge||B.fog===!0&&Ee.fog!==J||Ee.numClippingPlanes!==void 0&&(Ee.numClippingPlanes!==Q.numPlanes||Ee.numIntersection!==Q.numIntersection)||Ee.vertexAlphas!==Re||Ee.vertexTangents!==Ce||Ee.morphTargets!==ye||Ee.morphNormals!==He||Ee.morphColors!==We||Ee.toneMapping!==at||Ee.morphTargetsCount!==Ge)&&(Xe=!0):(Xe=!0,Ee.__version=B.version);let Bt=Ee.currentProgram;Xe===!0&&(Bt=Hi(B,U,I));let kn=!1,bt=!1,Si=!1;const tt=Bt.getUniforms(),Pt=Ee.uniforms;if(Me.useProgram(Bt.program)&&(kn=!0,bt=!0,Si=!0),B.id!==E&&(E=B.id,bt=!0),kn||y!==S){Me.buffers.depth.getReversed()?(ne.copy(S.projectionMatrix),xc(ne),Mc(ne),tt.setValue(D,"projectionMatrix",ne)):tt.setValue(D,"projectionMatrix",S.projectionMatrix),tt.setValue(D,"viewMatrix",S.matrixWorldInverse);const St=tt.map.cameraPosition;St!==void 0&&St.setValue(D,Ae.setFromMatrixPosition(S.matrixWorld)),Be.logarithmicDepthBuffer&&tt.setValue(D,"logDepthBufFC",2/(Math.log(S.far+1)/Math.LN2)),(B.isMeshPhongMaterial||B.isMeshToonMaterial||B.isMeshLambertMaterial||B.isMeshBasicMaterial||B.isMeshStandardMaterial||B.isShaderMaterial)&&tt.setValue(D,"isOrthographic",S.isOrthographicCamera===!0),y!==S&&(y=S,bt=!0,Si=!0)}if(I.isSkinnedMesh){tt.setOptional(D,I,"bindMatrix"),tt.setOptional(D,I,"bindMatrixInverse");const xt=I.skeleton;xt&&(xt.boneTexture===null&&xt.computeBoneTexture(),tt.setValue(D,"boneTexture",xt.boneTexture,A))}I.isBatchedMesh&&(tt.setOptional(D,I,"batchingTexture"),tt.setValue(D,"batchingTexture",I._matricesTexture,A),tt.setOptional(D,I,"batchingIdTexture"),tt.setValue(D,"batchingIdTexture",I._indirectTexture,A),tt.setOptional(D,I,"batchingColorTexture"),I._colorsTexture!==null&&tt.setValue(D,"batchingColorTexture",I._colorsTexture,A));const Dt=O.morphAttributes;if((Dt.position!==void 0||Dt.normal!==void 0||Dt.color!==void 0)&&we.update(I,O,Bt),(bt||Ee.receiveShadow!==I.receiveShadow)&&(Ee.receiveShadow=I.receiveShadow,tt.setValue(D,"receiveShadow",I.receiveShadow)),B.isMeshGouraudMaterial&&B.envMap!==null&&(Pt.envMap.value=ge,Pt.flipEnvMap.value=ge.isCubeTexture&&ge.isRenderTargetTexture===!1?-1:1),B.isMeshStandardMaterial&&B.envMap===null&&U.environment!==null&&(Pt.envMapIntensity.value=U.environmentIntensity),bt&&(tt.setValue(D,"toneMappingExposure",v.toneMappingExposure),Ee.needsLights&&Sl(Pt,Si),J&&B.fog===!0&&oe.refreshFogUniforms(Pt,J),oe.refreshMaterialUniforms(Pt,B,N,Z,f.state.transmissionRenderTarget[S.id]),vr.upload(D,xa(Ee),Pt,A)),B.isShaderMaterial&&B.uniformsNeedUpdate===!0&&(vr.upload(D,xa(Ee),Pt,A),B.uniformsNeedUpdate=!1),B.isSpriteMaterial&&tt.setValue(D,"center",I.center),tt.setValue(D,"modelViewMatrix",I.modelViewMatrix),tt.setValue(D,"normalMatrix",I.normalMatrix),tt.setValue(D,"modelMatrix",I.matrixWorld),B.isShaderMaterial||B.isRawShaderMaterial){const xt=B.uniformsGroups;for(let St=0,Ir=xt.length;St0&&A.useMultisampledRTT(S)===!1?I=xe.get(S).__webglMultisampledFramebuffer:Array.isArray(Ce)?I=Ce[O]:I=Ce,C.copy(S.viewport),H.copy(S.scissor),z=S.scissorTest}else C.copy(_e).multiplyScalar(N).floor(),H.copy(Te).multiplyScalar(N).floor(),z=Ye;if(O!==0&&(I=El),Me.bindFramebuffer(D.FRAMEBUFFER,I)&&B&&Me.drawBuffers(S,I),Me.viewport(C),Me.scissor(H),Me.setScissorTest(z),J){const ge=xe.get(S.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_CUBE_MAP_POSITIVE_X+U,ge.__webglTexture,O)}else if(se){const ge=xe.get(S.texture),Re=U;D.framebufferTextureLayer(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,ge.__webglTexture,O,Re)}else if(S!==null&&O!==0){const ge=xe.get(S.texture);D.framebufferTexture2D(D.FRAMEBUFFER,D.COLOR_ATTACHMENT0,D.TEXTURE_2D,ge.__webglTexture,O)}E=-1},this.readRenderTargetPixels=function(S,U,O,B,I,J,se){if(!(S&&S.isWebGLRenderTarget)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");return}let ue=xe.get(S).__webglFramebuffer;if(S.isWebGLCubeRenderTarget&&se!==void 0&&(ue=ue[se]),ue){Me.bindFramebuffer(D.FRAMEBUFFER,ue);try{const ge=S.texture,Re=ge.format,Ce=ge.type;if(!Be.textureFormatReadable(Re)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");return}if(!Be.textureTypeReadable(Ce)){console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");return}U>=0&&U<=S.width-B&&O>=0&&O<=S.height-I&&D.readPixels(U,O,B,I,Ue.convert(Re),Ue.convert(Ce),J)}finally{const ge=P!==null?xe.get(P).__webglFramebuffer:null;Me.bindFramebuffer(D.FRAMEBUFFER,ge)}}},this.readRenderTargetPixelsAsync=async function(S,U,O,B,I,J,se){if(!(S&&S.isWebGLRenderTarget))throw new Error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");let ue=xe.get(S).__webglFramebuffer;if(S.isWebGLCubeRenderTarget&&se!==void 0&&(ue=ue[se]),ue){const ge=S.texture,Re=ge.format,Ce=ge.type;if(!Be.textureFormatReadable(Re))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in RGBA or implementation defined format.");if(!Be.textureTypeReadable(Ce))throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: renderTarget is not in UnsignedByteType or implementation defined type.");if(U>=0&&U<=S.width-B&&O>=0&&O<=S.height-I){Me.bindFramebuffer(D.FRAMEBUFFER,ue);const ye=D.createBuffer();D.bindBuffer(D.PIXEL_PACK_BUFFER,ye),D.bufferData(D.PIXEL_PACK_BUFFER,J.byteLength,D.STREAM_READ),D.readPixels(U,O,B,I,Ue.convert(Re),Ue.convert(Ce),0);const He=P!==null?xe.get(P).__webglFramebuffer:null;Me.bindFramebuffer(D.FRAMEBUFFER,He);const We=D.fenceSync(D.SYNC_GPU_COMMANDS_COMPLETE,0);return D.flush(),await vc(D,We,4),D.bindBuffer(D.PIXEL_PACK_BUFFER,ye),D.getBufferSubData(D.PIXEL_PACK_BUFFER,0,J),D.deleteBuffer(ye),D.deleteSync(We),J}else throw new Error("THREE.WebGLRenderer.readRenderTargetPixelsAsync: requested read bounds are out of range.")}},this.copyFramebufferToTexture=function(S,U=null,O=0){S.isTexture!==!0&&(si("WebGLRenderer: copyFramebufferToTexture function signature has changed."),U=arguments[0]||null,S=arguments[1]);const B=Math.pow(2,-O),I=Math.floor(S.image.width*B),J=Math.floor(S.image.height*B),se=U!==null?U.x:0,ue=U!==null?U.y:0;A.setTexture2D(S,0),D.copyTexSubImage2D(D.TEXTURE_2D,O,0,0,se,ue,I,J),Me.unbindTexture()};const Tl=D.createFramebuffer(),bl=D.createFramebuffer();this.copyTextureToTexture=function(S,U,O=null,B=null,I=0,J=null){S.isTexture!==!0&&(si("WebGLRenderer: copyTextureToTexture function signature has changed."),B=arguments[0]||null,S=arguments[1],U=arguments[2],J=arguments[3]||0,O=null),J===null&&(I!==0?(si("WebGLRenderer: copyTextureToTexture function signature has changed to support src and dst mipmap levels."),J=I,I=0):J=0);let se,ue,ge,Re,Ce,ye,He,We,at;const rt=S.isCompressedTexture?S.mipmaps[J]:S.image;if(O!==null)se=O.max.x-O.min.x,ue=O.max.y-O.min.y,ge=O.isBox3?O.max.z-O.min.z:1,Re=O.min.x,Ce=O.min.y,ye=O.isBox3?O.min.z:0;else{const Dt=Math.pow(2,-I);se=Math.floor(rt.width*Dt),ue=Math.floor(rt.height*Dt),S.isDataArrayTexture?ge=rt.depth:S.isData3DTexture?ge=Math.floor(rt.depth*Dt):ge=1,Re=0,Ce=0,ye=0}B!==null?(He=B.x,We=B.y,at=B.z):(He=0,We=0,at=0);const Ge=Ue.convert(U.format),Ee=Ue.convert(U.type);let pt;U.isData3DTexture?(A.setTexture3D(U,0),pt=D.TEXTURE_3D):U.isDataArrayTexture||U.isCompressedArrayTexture?(A.setTexture2DArray(U,0),pt=D.TEXTURE_2D_ARRAY):(A.setTexture2D(U,0),pt=D.TEXTURE_2D),D.pixelStorei(D.UNPACK_FLIP_Y_WEBGL,U.flipY),D.pixelStorei(D.UNPACK_PREMULTIPLY_ALPHA_WEBGL,U.premultiplyAlpha),D.pixelStorei(D.UNPACK_ALIGNMENT,U.unpackAlignment);const Xe=D.getParameter(D.UNPACK_ROW_LENGTH),Bt=D.getParameter(D.UNPACK_IMAGE_HEIGHT),kn=D.getParameter(D.UNPACK_SKIP_PIXELS),bt=D.getParameter(D.UNPACK_SKIP_ROWS),Si=D.getParameter(D.UNPACK_SKIP_IMAGES);D.pixelStorei(D.UNPACK_ROW_LENGTH,rt.width),D.pixelStorei(D.UNPACK_IMAGE_HEIGHT,rt.height),D.pixelStorei(D.UNPACK_SKIP_PIXELS,Re),D.pixelStorei(D.UNPACK_SKIP_ROWS,Ce),D.pixelStorei(D.UNPACK_SKIP_IMAGES,ye);const tt=S.isDataArrayTexture||S.isData3DTexture,Pt=U.isDataArrayTexture||U.isData3DTexture;if(S.isDepthTexture){const Dt=xe.get(S),xt=xe.get(U),St=xe.get(Dt.__renderTarget),Ir=xe.get(xt.__renderTarget);Me.bindFramebuffer(D.READ_FRAMEBUFFER,St.__webglFramebuffer),Me.bindFramebuffer(D.DRAW_FRAMEBUFFER,Ir.__webglFramebuffer);for(let wn=0;wn=0;t--)i.push(!!(e&1<=this.raw.frames.length)return null;var t=this.raw.frames[i];if(t.image){var n=t.image.descriptor.width*t.image.descriptor.height,r=o(t.image.data.minCodeSize,t.image.data.blocks,n);t.image.descriptor.lct.interlaced&&(r=a(r,t.image.descriptor.width));var s={pixels:r,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return t.image.descriptor.lct&&t.image.descriptor.lct.exists?s.colorTable=t.image.lct:s.colorTable=this.raw.gct,t.gce&&(s.delay=(t.gce.delay||10)*10,s.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(s.transparentIndex=t.gce.transparentColorIndex)),e&&(s.patch=l(s)),s}return null;function o(c,u,d){var h=4096,m=-1,x=d,T,p,f,M,_,v,R,w,b,P,E,y,C,H,z,W,q=new Array(d),X=new Array(h),Z=new Array(h),N=new Array(h+1);for(y=c,p=1<>=M,w-=M,b>T||b==_)break;if(b==p){M=y+1,f=(1<p;)N[H++]=Z[b],b=X[b];C=Z[b]&255,N[H++]=C,Ta.arrayBuffer()).then(a=>new da(a)),r=n.decompressFrames(!0,void 0,void 0),s=n.raw.lsd.width,o=n.raw.lsd.height;return new ha(r,s,o,t)})}constructor(e,t,n,r){this.frames=[],this.index=0,this.playTime=0,this.frames=e,this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.pixelRatio=r,this.canvas.width=t,this.canvas.height=n,this.startTime=Date.now()}getCanvas(){return this.canvas}update(){const t=Date.now()-this.startTime;for(;this.playTimeJs(this,void 0,void 0,function*(){if(typeof window<"u"){for(const n of he(this,Ut,"f"))if(n.type==="text"&&n.isInViewport){const r=n.element.getBoundingClientRect();(r.width!==n.width||r.height!==n.height)&&(yield he(this,$t,"m",yr).call(this,n),n.width=r.width,n.height=r.height)}for(const n of he(this,Ut,"f"))if(n.type==="text"&&!n.isInViewport){const r=n.element.getBoundingClientRect();(r.width!==n.width||r.height!==n.height)&&(yield he(this,$t,"m",yr).call(this,n),n.width=r.width,n.height=r.height)}}})),Sr.set(this,n=>{typeof window<"u"&&(Yt(this,xr,n.clientX,"f"),Yt(this,Mr,window.innerHeight-n.clientY,"f"))}),Er.set(this,()=>{var n;const r=Date.now()/1e3;he(this,kt,"f").clear(),he(this,$t,"m",dl).call(this);for(const s of he(this,Ut,"f")){const o=s.element.getBoundingClientRect(),a=ur(o,s.overflow),l=s.isFullScreen||ea(he(this,Ft,"f"),a),c=ur(he(this,Ft,"f"),s.intersection.rootMargin),u=So(c,o),d=s.isFullScreen||bo(c,o,u,s.intersection.threshold);if(!s.isInLogicalViewport&&d&&(s.enterTime=r,s.leaveTime=1/0),s.isInLogicalViewport&&!d&&(s.leaveTime=r),s.isInViewport=l,s.isInLogicalViewport=d,!(!l||r-s.leaveTime>s.release)){s.uniforms.time.value=r-s.startTime,s.uniforms.enterTime.value=r-s.enterTime,s.uniforms.leaveTime.value=r-s.leaveTime,s.uniforms.resolution.value.x=o.width*he(this,Gt,"f"),s.uniforms.resolution.value.y=o.height*he(this,Gt,"f"),s.uniforms.offset.value.x=o.left*he(this,Gt,"f"),s.uniforms.offset.value.y=(window.innerHeight-o.top-o.height)*he(this,Gt,"f"),s.uniforms.mouse.value.x=he(this,xr,"f")*he(this,Gt,"f"),s.uniforms.mouse.value.y=he(this,Mr,"f")*he(this,Gt,"f"),s.uniforms.intersection.value=u;for(const[h,m]of Object.entries(s.uniformGenerators))s.uniforms[h].value=m();(n=To.get(s.element))===null||n===void 0||n.update(),(s.type==="video"||s.isGif)&&(s.uniforms.src.value.needsUpdate=!0),s.isFullScreen?he(this,kt,"f").setViewport(0,0,window.innerWidth,window.innerHeight):he(this,kt,"f").setViewport(o.left-s.overflow.left,window.innerHeight-(o.top+o.height)-s.overflow.bottom,o.width+(s.overflow.left+s.overflow.right),o.height+(s.overflow.top+s.overflow.bottom)),he(this,ai,"f").lookAt(s.scene.position);try{he(this,kt,"f").render(s.scene,he(this,ai,"f"))}catch(h){console.error(h)}}}this.isPlaying()&&Yt(this,Mn,requestAnimationFrame(he(this,Er,"f")),"f")}),Yt(this,Pi,e,"f"),Yt(this,kt,new Bp({canvas:e,alpha:!0}),"f"),he(this,kt,"f").autoClear=!1,he(this,kt,"f").setClearAlpha(0),typeof window<"u"&&(Yt(this,Gt,t||window.devicePixelRatio,"f"),window.addEventListener("resize",he(this,Ci,"f")),window.addEventListener("mousemove",he(this,Sr,"f"))),he(this,Ci,"f").call(this),Yt(this,ai,new il(-1,1,1,-1,.1,10),"f"),he(this,ai,"f").position.set(0,0,1)}destroy(){this.stop(),typeof window<"u"&&(window.removeEventListener("resize",he(this,Ci,"f")),window.removeEventListener("mousemove",he(this,Sr,"f")))}addElement(e){return Js(this,arguments,void 0,function*(t,n={}){var r,s;const o=he(this,$t,"m",hl).call(this,n.shader||"uvGradient"),a=he(this,$t,"m",pl).call(this,n.glslVersion,o),l=t.getBoundingClientRect(),[c,u]=em(n.overflow),d=ur(l,u),h=tm(n.intersection),m=c||ea(he(this,Ft,"f"),d),x=ur(he(this,Ft,"f"),h.rootMargin),T=So(he(this,Ft,"f"),l),p=c||bo(x,l,T,h.threshold),f=t.style.opacity===""?1:parseFloat(t.style.opacity);let M,_,v=!1;if(t instanceof HTMLImageElement)if(_="img",v=!!t.src.match(/\.gif/i),v){const W=yield ha.create(t.src,he(this,Gt,"f"));To.set(t,W),M=new ht(W.getCanvas())}else M=he(this,Qs,"f").load(t.src);else if(t instanceof HTMLVideoElement)M=new Yc(t),_="video";else if(t instanceof HTMLCanvasElement)M=new _r(t),_="canvas";else{const W=yield cl(t,f);M=new _r(W),_="text"}const[R,w]=nm(n.wrap);if(M.wrapS=R,M.wrapT=w,M.minFilter=Et,M.magFilter=Et,M.format=Nt,M.needsUpdate=!0,n.overlay!==!0)if(typeof n.overlay=="number")t.style.setProperty("opacity",n.overlay.toString());else{const W=_==="video"?"0.0001":"0";t.style.setProperty("opacity",W.toString())}const b={src:{value:M},resolution:{value:new qe},offset:{value:new qe},time:{value:0},enterTime:{value:-1},leaveTime:{value:-1},mouse:{value:new qe},intersection:{value:T}},P={};if(n.uniforms!==void 0){const W=Object.keys(n.uniforms);for(const q of W){const X=n.uniforms[q];typeof X=="function"?(b[q]={value:X()},P[q]=X):b[q]={value:X}}}const E=new Wc,y=new Bi(2,2),C=new hn({vertexShader:Gp,fragmentShader:o,transparent:!0,uniforms:b,glslVersion:a});E.add(new jt(y,C));const H=Date.now()/1e3,z={type:_,element:t,isInViewport:m,isInLogicalViewport:p,width:l.width,height:l.height,scene:E,uniforms:b,uniformGenerators:P,startTime:H,enterTime:p?H:-1/0,leaveTime:p?1/0:-1/0,release:(r=n.release)!==null&&r!==void 0?r:1/0,isGif:v,isFullScreen:c,overflow:u,intersection:h,originalOpacity:f,zIndex:(s=n.zIndex)!==null&&s!==void 0?s:0};he(this,Ut,"f").push(z),he(this,Ut,"f").sort((W,q)=>W.zIndex-q.zIndex)})}removeElement(e){const t=he(this,Ut,"f").findIndex(n=>n.element===e);if(t!==-1){const n=he(this,Ut,"f").splice(t,1)[0];e.style.setProperty("opacity",n.originalOpacity.toString())}}updateTextElement(e){const t=he(this,Ut,"f").findIndex(n=>n.element===e);return t!==-1?he(this,$t,"m",yr).call(this,he(this,Ut,"f")[t]):Promise.resolve()}updateCanvasElement(e){const t=he(this,Ut,"f").find(n=>n.element===e);if(t){const n=t.uniforms.src.value,r=new _r(e);r.wrapS=n.wrapS,r.wrapT=n.wrapT,t.uniforms.src.value=r,n.dispose()}}isPlaying(){return he(this,Mn,"f")!==void 0}play(){this.isPlaying()||Yt(this,Mn,requestAnimationFrame(he(this,Er,"f")),"f")}stop(){he(this,Mn,"f")!==void 0&&(cancelAnimationFrame(he(this,Mn,"f")),Yt(this,Mn,void 0,"f"))}}Pi=new WeakMap,kt=new WeakMap,ai=new WeakMap,Mn=new WeakMap,Gt=new WeakMap,Ut=new WeakMap,Qs=new WeakMap,Ft=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Ri=new WeakMap,Ci=new WeakMap,Sr=new WeakMap,Er=new WeakMap,$t=new WeakSet,dl=function(){if(typeof window<"u"){const e=window.innerWidth,t=window.innerHeight;(e!==he(this,$t,"m",yo).call(this)||t!==he(this,$t,"m",Eo).call(this))&&(he(this,Pi,"f").width=e,he(this,Pi,"f").height=t,he(this,kt,"f").setSize(e,t),he(this,kt,"f").setPixelRatio(he(this,Gt,"f")),Yt(this,Ft,{top:0,left:0,right:e,bottom:t},"f"))}},yo=function(){return he(this,Ft,"f").right-he(this,Ft,"f").left},Eo=function(){return he(this,Ft,"f").bottom-he(this,Ft,"f").top},yr=function(e){return Js(this,void 0,void 0,function*(){if(!he(this,Ri,"f").get(e.element)){he(this,Ri,"f").set(e.element,!0);try{const t=e.uniforms.src.value,n=t.image,r=yield cl(e.element,e.originalOpacity,n);if(r.width===0||r.width===0)throw"omg";const s=new _r(r);s.wrapS=t.wrapS,s.wrapT=t.wrapT,e.uniforms.src.value=s,t.dispose()}catch(t){console.error(t)}he(this,Ri,"f").set(e.element,!1)}})},hl=function(e){return e in xo?xo[e]:e},pl=function(e,t){if(e)return e;if(t.includes("out vec4"))return"300 es";if(t.includes("gl_FragColor"))return"100";throw`VFX-JS error: Cannot detect GLSL version of the shader. + `};var fa=function(i,e,t,n){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};const Vp=i=>{const e=document.implementation.createHTMLDocument("test"),t=e.createRange();t.selectNodeContents(e.documentElement),t.deleteContents();const n=document.createElement("head");return e.documentElement.appendChild(n),e.documentElement.appendChild(t.createContextualFragment(i)),e.documentElement.setAttribute("xmlns",e.documentElement.namespaceURI),new XMLSerializer().serializeToString(e).replace(//,"")};function Hp(i){return i.cloneNode(!0)}function cl(i,e,t){return fa(this,void 0,void 0,function*(){const n=i.getBoundingClientRect(),r=window.devicePixelRatio,s=n.width*r,o=n.height*r,a=t&&t.width===s&&t.height===o?t:new OffscreenCanvas(s,o),l=Hp(i);yield ul(i,l),l.style.setProperty("opacity",e.toString()),l.style.setProperty("margin","0px");const c=l.outerHTML,u=Vp(c),d=`${u}`;return new Promise((h,m)=>{const x=new Image;x.onload=()=>{const T=a.getContext("2d");if(T===null)return m();T.clearRect(0,0,s,o),T.scale(r,r),T.drawImage(x,0,0,s,o),T.setTransform(1,0,0,1,0,0),h(a)},x.src=`data:image/svg+xml;charset=utf-8,${encodeURIComponent(d)}`})})}function ul(i,e){return fa(this,void 0,void 0,function*(){const t=window.getComputedStyle(i);for(const n of Array.from(t))e.style.setProperty(n,t.getPropertyValue(n),t.getPropertyPriority(n));e.tagName==="INPUT"?e.setAttribute("value",e.value):e.tagName==="TEXTAREA"?e.innerHTML=e.value:e.tagName==="IMG"&&(e.src=yield Gp(i.src));for(let n=0;nt.blob());return new Promise(t=>{const n=new FileReader;n.onload=function(){t(this.result)},n.readAsDataURL(e)})})}function bn(i){this.data=i,this.pos=0}bn.prototype.readByte=function(){return this.data[this.pos++]};bn.prototype.peekByte=function(){return this.data[this.pos]};bn.prototype.readBytes=function(i){return this.data.subarray(this.pos,this.pos+=i)};bn.prototype.peekBytes=function(i){return this.data.subarray(this.pos,this.pos+i)};bn.prototype.readString=function(i){for(var e="",t=0;t=0;t--)i.push(!!(e&1<=this.raw.frames.length)return null;var t=this.raw.frames[i];if(t.image){var n=t.image.descriptor.width*t.image.descriptor.height,r=o(t.image.data.minCodeSize,t.image.data.blocks,n);t.image.descriptor.lct.interlaced&&(r=a(r,t.image.descriptor.width));var s={pixels:r,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}};return t.image.descriptor.lct&&t.image.descriptor.lct.exists?s.colorTable=t.image.lct:s.colorTable=this.raw.gct,t.gce&&(s.delay=(t.gce.delay||10)*10,s.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven&&(s.transparentIndex=t.gce.transparentColorIndex)),e&&(s.patch=l(s)),s}return null;function o(c,u,d){var h=4096,m=-1,x=d,T,p,f,M,_,v,R,w,b,P,E,y,C,H,z,W,q=new Array(d),X=new Array(h),Z=new Array(h),N=new Array(h+1);for(y=c,p=1<>=M,w-=M,b>T||b==_)break;if(b==p){M=y+1,f=(1<p;)N[H++]=Z[b],b=X[b];C=Z[b]&255,N[H++]=C,Ta.arrayBuffer()).then(a=>new da(a)),r=n.decompressFrames(!0,void 0,void 0),{width:s,height:o}=n.raw.lsd;return new ha(r,s,o,t)})}constructor(e,t,n,r){this.frames=[],this.index=0,this.playTime=0,this.frames=e,this.canvas=document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.pixelRatio=r,this.canvas.width=t,this.canvas.height=n,this.startTime=Date.now()}getCanvas(){return this.canvas}update(){const t=Date.now()-this.startTime;for(;this.playTimeJs(this,void 0,void 0,function*(){if(typeof window<"u"){for(const n of he(this,Ut,"f"))if(n.type==="text"&&n.isInViewport){const r=n.element.getBoundingClientRect();(r.width!==n.width||r.height!==n.height)&&(yield he(this,$t,"m",yr).call(this,n),n.width=r.width,n.height=r.height)}for(const n of he(this,Ut,"f"))if(n.type==="text"&&!n.isInViewport){const r=n.element.getBoundingClientRect();(r.width!==n.width||r.height!==n.height)&&(yield he(this,$t,"m",yr).call(this,n),n.width=r.width,n.height=r.height)}}})),Sr.set(this,n=>{typeof window<"u"&&(Yt(this,xr,n.clientX,"f"),Yt(this,Mr,window.innerHeight-n.clientY,"f"))}),Er.set(this,()=>{var n;const r=Date.now()/1e3;he(this,kt,"f").clear(),he(this,$t,"m",dl).call(this);for(const s of he(this,Ut,"f")){const o=s.element.getBoundingClientRect(),a=ur(o,s.overflow),l=s.isFullScreen||ea(he(this,Ft,"f"),a),c=ur(he(this,Ft,"f"),s.intersection.rootMargin),u=So(c,o),d=s.isFullScreen||bo(c,o,u,s.intersection.threshold);if(!s.isInLogicalViewport&&d&&(s.enterTime=r,s.leaveTime=Number.POSITIVE_INFINITY),s.isInLogicalViewport&&!d&&(s.leaveTime=r),s.isInViewport=l,s.isInLogicalViewport=d,!(!l||r-s.leaveTime>s.release)){s.uniforms.time.value=r-s.startTime,s.uniforms.enterTime.value=r-s.enterTime,s.uniforms.leaveTime.value=r-s.leaveTime,s.uniforms.resolution.value.x=o.width*he(this,Gt,"f"),s.uniforms.resolution.value.y=o.height*he(this,Gt,"f"),s.uniforms.offset.value.x=o.left*he(this,Gt,"f"),s.uniforms.offset.value.y=(window.innerHeight-o.top-o.height)*he(this,Gt,"f"),s.uniforms.mouse.value.x=he(this,xr,"f")*he(this,Gt,"f"),s.uniforms.mouse.value.y=he(this,Mr,"f")*he(this,Gt,"f"),s.uniforms.intersection.value=u;for(const[h,m]of Object.entries(s.uniformGenerators))s.uniforms[h].value=m();(n=To.get(s.element))===null||n===void 0||n.update(),(s.type==="video"||s.isGif)&&(s.uniforms.src.value.needsUpdate=!0),s.isFullScreen?he(this,kt,"f").setViewport(0,0,window.innerWidth,window.innerHeight):he(this,kt,"f").setViewport(o.left-s.overflow.left,window.innerHeight-(o.top+o.height)-s.overflow.bottom,o.width+(s.overflow.left+s.overflow.right),o.height+(s.overflow.top+s.overflow.bottom)),he(this,ai,"f").lookAt(s.scene.position);try{he(this,kt,"f").render(s.scene,he(this,ai,"f"))}catch(h){console.error(h)}}}this.isPlaying()&&Yt(this,Mn,requestAnimationFrame(he(this,Er,"f")),"f")}),Yt(this,Pi,e,"f"),Yt(this,kt,new Bp({canvas:e,alpha:!0}),"f"),he(this,kt,"f").autoClear=!1,he(this,kt,"f").setClearAlpha(0),typeof window<"u"&&(Yt(this,Gt,t||window.devicePixelRatio,"f"),window.addEventListener("resize",he(this,Ci,"f")),window.addEventListener("mousemove",he(this,Sr,"f"))),he(this,Ci,"f").call(this),Yt(this,ai,new il(-1,1,1,-1,.1,10),"f"),he(this,ai,"f").position.set(0,0,1)}destroy(){this.stop(),typeof window<"u"&&(window.removeEventListener("resize",he(this,Ci,"f")),window.removeEventListener("mousemove",he(this,Sr,"f")))}addElement(e){return Js(this,arguments,void 0,function*(t,n={}){var r,s;const o=he(this,$t,"m",hl).call(this,n.shader||"uvGradient"),a=he(this,$t,"m",pl).call(this,n.glslVersion,o),l=t.getBoundingClientRect(),[c,u]=em(n.overflow),d=ur(l,u),h=tm(n.intersection),m=c||ea(he(this,Ft,"f"),d),x=ur(he(this,Ft,"f"),h.rootMargin),T=So(he(this,Ft,"f"),l),p=c||bo(x,l,T,h.threshold),f=t.style.opacity===""?1:Number.parseFloat(t.style.opacity);let M,_,v=!1;if(t instanceof HTMLImageElement)if(_="img",v=!!t.src.match(/\.gif/i),v){const W=yield ha.create(t.src,he(this,Gt,"f"));To.set(t,W),M=new ht(W.getCanvas())}else M=he(this,Qs,"f").load(t.src);else if(t instanceof HTMLVideoElement)M=new Yc(t),_="video";else if(t instanceof HTMLCanvasElement)M=new _r(t),_="canvas";else{const W=yield cl(t,f);M=new _r(W),_="text"}const[R,w]=nm(n.wrap);if(M.wrapS=R,M.wrapT=w,M.minFilter=Et,M.magFilter=Et,M.format=Nt,M.needsUpdate=!0,n.overlay!==!0)if(typeof n.overlay=="number")t.style.setProperty("opacity",n.overlay.toString());else{const W=_==="video"?"0.0001":"0";t.style.setProperty("opacity",W.toString())}const b={src:{value:M},resolution:{value:new qe},offset:{value:new qe},time:{value:0},enterTime:{value:-1},leaveTime:{value:-1},mouse:{value:new qe},intersection:{value:T}},P={};if(n.uniforms!==void 0){const W=Object.keys(n.uniforms);for(const q of W){const X=n.uniforms[q];typeof X=="function"?(b[q]={value:X()},P[q]=X):b[q]={value:X}}}const E=new Wc,y=new Bi(2,2),C=new hn({vertexShader:zp,fragmentShader:o,transparent:!0,uniforms:b,glslVersion:a});E.add(new jt(y,C));const H=Date.now()/1e3,z={type:_,element:t,isInViewport:m,isInLogicalViewport:p,width:l.width,height:l.height,scene:E,uniforms:b,uniformGenerators:P,startTime:H,enterTime:p?H:Number.NEGATIVE_INFINITY,leaveTime:p?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY,release:(r=n.release)!==null&&r!==void 0?r:Number.POSITIVE_INFINITY,isGif:v,isFullScreen:c,overflow:u,intersection:h,originalOpacity:f,zIndex:(s=n.zIndex)!==null&&s!==void 0?s:0};he(this,Ut,"f").push(z),he(this,Ut,"f").sort((W,q)=>W.zIndex-q.zIndex)})}removeElement(e){const t=he(this,Ut,"f").findIndex(n=>n.element===e);if(t!==-1){const n=he(this,Ut,"f").splice(t,1)[0];e.style.setProperty("opacity",n.originalOpacity.toString())}}updateTextElement(e){const t=he(this,Ut,"f").findIndex(n=>n.element===e);return t!==-1?he(this,$t,"m",yr).call(this,he(this,Ut,"f")[t]):Promise.resolve()}updateCanvasElement(e){const t=he(this,Ut,"f").find(n=>n.element===e);if(t){const n=t.uniforms.src.value,r=new _r(e);r.wrapS=n.wrapS,r.wrapT=n.wrapT,t.uniforms.src.value=r,n.dispose()}}isPlaying(){return he(this,Mn,"f")!==void 0}play(){this.isPlaying()||Yt(this,Mn,requestAnimationFrame(he(this,Er,"f")),"f")}stop(){he(this,Mn,"f")!==void 0&&(cancelAnimationFrame(he(this,Mn,"f")),Yt(this,Mn,void 0,"f"))}}Pi=new WeakMap,kt=new WeakMap,ai=new WeakMap,Mn=new WeakMap,Gt=new WeakMap,Ut=new WeakMap,Qs=new WeakMap,Ft=new WeakMap,xr=new WeakMap,Mr=new WeakMap,Ri=new WeakMap,Ci=new WeakMap,Sr=new WeakMap,Er=new WeakMap,$t=new WeakSet,dl=function(){if(typeof window<"u"){const e=window.innerWidth,t=window.innerHeight;(e!==he(this,$t,"m",yo).call(this)||t!==he(this,$t,"m",Eo).call(this))&&(he(this,Pi,"f").width=e,he(this,Pi,"f").height=t,he(this,kt,"f").setSize(e,t),he(this,kt,"f").setPixelRatio(he(this,Gt,"f")),Yt(this,Ft,{top:0,left:0,right:e,bottom:t},"f"))}},yo=function(){return he(this,Ft,"f").right-he(this,Ft,"f").left},Eo=function(){return he(this,Ft,"f").bottom-he(this,Ft,"f").top},yr=function(e){return Js(this,void 0,void 0,function*(){if(!he(this,Ri,"f").get(e.element)){he(this,Ri,"f").set(e.element,!0);try{const t=e.uniforms.src.value,n=t.image,r=yield cl(e.element,e.originalOpacity,n);if(r.width===0||r.width===0)throw"omg";const s=new _r(r);s.wrapS=t.wrapS,s.wrapT=t.wrapT,e.uniforms.src.value=s,t.dispose()}catch(t){console.error(t)}he(this,Ri,"f").set(e.element,!1)}})},hl=function(e){return e in xo?xo[e]:e},pl=function(e,t){if(e)return e;if(t.includes("out vec4"))return"300 es";if(t.includes("gl_FragColor"))return"100";throw`VFX-JS error: Cannot detect GLSL version of the shader. Original shader: ${t}`};function ea(i,e){return e.left<=i.right&&e.right>=i.left&&e.top<=i.bottom&&e.bottom>=i.top}function bo(i,e,t,n){return n===0?ea(i,e):t>=n}function em(i){return i===!0?[!0,Mo]:i===void 0?[!1,Mo]:[!1,fl(i)]}function tm(i){var e,t;const n=(e=i==null?void 0:i.threshold)!==null&&e!==void 0?e:0,r=fl((t=i==null?void 0:i.rootMargin)!==null&&t!==void 0?t:0);return{threshold:n,rootMargin:r}}function fs(i){return i==="repeat"?br:i==="mirror"?Ar:Zt}function nm(i){if(!i)return[Zt,Zt];if(Array.isArray(i))return[fs(i[0]),fs(i[1])];{const e=fs(i);return[e,e]}}var im=function(i,e,t,n){function r(s){return s instanceof t?s:new t(function(o){o(s)})}return new(t||(t=Promise))(function(s,o){function a(u){try{c(n.next(u))}catch(d){o(d)}}function l(u){try{c(n.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):r(u.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Ao=function(i,e,t,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?i!==e||!r:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(i,t):r?r.value=t:e.set(i,t),t},dt=function(i,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?i!==e||!n:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(i):n?n.value:e.get(i)},oi,vt,Tr,ml,gl,_l,vl;const rm={position:"fixed",top:0,left:0,width:"100vw",height:"100vh","z-index":9999,"pointer-events":"none"};class sm{constructor(e={}){oi.add(this),vt.set(this,void 0),Tr.set(this,void 0);const t=document.createElement("canvas");for(const[n,r]of Object.entries(rm))t.style.setProperty(n,r.toString());e.zIndex!==void 0&&t.style.setProperty("z-index",e.zIndex.toString()),document.body.appendChild(t),Ao(this,Tr,t,"f"),Ao(this,vt,new Qp(t,e.pixelRatio),"f"),dt(this,vt,"f").play()}add(e,t){e instanceof HTMLImageElement?dt(this,oi,"m",ml).call(this,e,t):e instanceof HTMLVideoElement?dt(this,oi,"m",gl).call(this,e,t):e instanceof HTMLCanvasElement?dt(this,oi,"m",_l).call(this,e,t):dt(this,oi,"m",vl).call(this,e,t)}remove(e){dt(this,vt,"f").removeElement(e)}update(e){return im(this,void 0,void 0,function*(){if(e instanceof HTMLCanvasElement){dt(this,vt,"f").updateCanvasElement(e);return}else return dt(this,vt,"f").updateTextElement(e)})}play(){dt(this,vt,"f").play()}stop(){dt(this,vt,"f").stop()}destroy(){dt(this,vt,"f").destroy(),dt(this,Tr,"f").remove()}}vt=new WeakMap,Tr=new WeakMap,oi=new WeakSet,ml=function(e,t){e.complete?dt(this,vt,"f").addElement(e,t):e.addEventListener("load",()=>{dt(this,vt,"f").addElement(e,t)},{once:!0})},gl=function(e,t){e.readyState>=3?dt(this,vt,"f").addElement(e,t):e.addEventListener("canplay",()=>{dt(this,vt,"f").addElement(e,t)},{once:!0})},_l=function(e,t){dt(this,vt,"f").addElement(e,t)},vl=function(e,t){dt(this,vt,"f").addElement(e,t)};var wo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function am(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var ds={exports:{}},Ro;function om(){return Ro||(Ro=1,function(i){var e=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};/** diff --git a/docs/assets/hierarchy.js b/docs/assets/hierarchy.js index a837d93..fb85f0a 100644 --- a/docs/assets/hierarchy.js +++ b/docs/assets/hierarchy.js @@ -1 +1 @@ -window.hierarchyData = "eJydWk1v2zgQ/S86s1tSFL9ya+MimyLZZJ0WDbDogbGZWLu27KXoYoMi/31ByU5JSZaGubSG/UZvOBzOvKHyM7Pbrauzs784EwwRTGSOCGGUIIIpVohh3HytMJJF3nwsFOICY1TkkiNRKI6KnAn/D0aSKowEoYhgLCQqikIiJbm348w/k1P/GxfqO8qseVybhSu3VZ2d/cwIFf6/Sm9MdpZ9Mw8XV3NTLY01NkPZP2W1zM5ILlG2t+vsLFusdV2b+n0E/G3lNusMtT9mZ5mrl++85bv2ixeUURmynOuNsXrs8S1i4rkoW6zK9dKaykcSE/b9BWWc0YDpi/nP7a252url+Hoi4PR6BAlZegHLGT8SlJUz9lEvTP1+Mlyv2HhphAq/MpEXp3bqVlu9Mc7YesKFE1YAj15QRjBTsQf382td6afJVHnFTUeWCIWHl/lF2yfjgEnZggF0kod0dwtTmTGKBjD92JxgEjz24/7x0dgLs90YZ5/Hnh8jAUQ5C4mutTO21OsxiiMm5XQRQpXySZhTIQO+m4e/zcLR2RjfEZPCR6VAfmsQVYyhguc54pRQJJTAiPiC2TjDCe8fdsAxT3KFCIFoLjHiijIksGi4/dcB90w7TWcADyIgoHDmEndoPlirn4FMIRZAphgLyC7sdr8bY2gAKbFkmFLEcq4QY02Ho6wpbb6LDWTV57ubPyYKWghNraui7a+KIuVbqWK8ODgjBpz59MNU7lrvgA4d4alOSSZx64UMc3u6g4FaV9wyGW2YikJ2K+653umHcl260tRpzWXYMnlr8nYreJ6HQSifVqMNoAFM57mXV8Fjm62alfVOu8VqPMgdaFIJxUwh3xeQr9nIF1LkCxjismiUiz8cgVf387aHzfXz3a4N0Em3ulhACHKuIrILW+4APK8wAAWLonw//11XSwDFK2yawou+gOLW2Hrnte0PMy0xe+CUzVQ5bwqXb0ph+zX1arT1mnoFWBUTrCcePjhny4e9Gw1eB5q0IkGaauCHjID80hmr3XZK2h5hydIW87bo+kPQU9TTii9B7MW8QjVV1rf0sL2anVtBWmuAAwwLONJM5/sHA+AIYJB5RPVkLKB7vuJgA4AgKiwal9WytGbh7tzW6ieTkKfjloDlUtabWm/t9snqza+e8610q69V+bi1G1DnGn0AMECF4gNqHNxB+wbJB4qwVlIJVZC+Nqazy41+Ml4aTrjSNwCGQIkwEz9ux+cp//v0fkvKwxN0t9I7UHofcTDX/TXKCRXafk7Qou3n1N1TnElEsFAcESwp9xspCxJqoCZLTV03SuSyKqec6uGBsSjyMBYflsvmAVdl7Uxl7M2uvUAa5z5hBfagJ9LS6N/IHcvxIsftLijaVaKADHzFAdfMZOfy437eSCHg8NE3APKK6H7ufv7nXi+v9LOxgAzroIGMsoj15/nzuvS9HM7aswAyKxLL7E//7ptmBGfuWUCZRWfN+weTsN4QDWNUuOARY9PoGvVyWfm+pv2hmGQetAJ6QHIZr/n2azL/gA2QPR7le5IfcIIHbaDsPGRv7mKm55IANt0Y/Z1FZ/4ArOkIAy6DMzmkLUE9sYMGMsbX60vzqPfr0TngAEkZAbyY9ZXdvyiZ1JJv0o/Jlx6H27DmLU5fuyUqtxTdFruhCnJwQ4b1albWC2ucufRmu+1aV6NbMgAHXMdjglXUZyujLZCxBwbx5SqezcoFkK6LBbEV8QAFIoJzdGZrLBVqIoqadbabSkQ4F9xqB6kYR1iyfKJcHmhlHsXZ/oAo+Fdc+sWCUscFR6oeqptT9HJHMRL/Mpf616+EiuazOASBRsk9u7m+3ZaVmxu9vKnWzxMedeHpo2GuDgc7Hp/v55/9cwFXc79w7wgk3XnnRhMudlKEThx+IQXy6hJ5oYe85mrXzKMXZffzZBXyBgkSD3e44MjroYM/UeduLtAe1iblvi2AQ1/g8o4CvTN1XW6rJtnHtz5EplUhQQ47IEhMflnt9u5uu7cLU5+vdPVkYj9ObcQJO2gMRHRHM6jvQNJmxBLqiqR8QL2B2GMwlFAp1a3CwA4QYdOrMRFt6fGNIBSTO1uOXxW2CECxITnjcXG91s6W/wHKTYQFhtIX04FaDqzhUBLK41coc/NorKkW5teQDyqnJ+zAboj8ZNkA8XcN4MTyVMmAkw8ZgR2IDkybjJA/soiRkPRllAylbz5LSeAW/QZlwHh7PFmkDOJVgMehU2aQoL+8/A+rYbOD" \ No newline at end of file +window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzytWsqqurQUAmx4Kpg==" \ No newline at end of file diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index dcf7fb6..a387162 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -13,14 +13,10 @@ --dark-hl-5: #4FC1FF; --light-hl-6: #795E26; --dark-hl-6: #DCDCAA; - --light-hl-7: #000000; - --dark-hl-7: #C8C8C8; - --light-hl-8: #098658; - --dark-hl-8: #B5CEA8; - --light-hl-9: #008000; - --dark-hl-9: #6A9955; - --light-hl-10: #267F99; - --dark-hl-10: #4EC9B0; + --light-hl-7: #098658; + --dark-hl-7: #B5CEA8; + --light-hl-8: #008000; + --dark-hl-8: #6A9955; --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -35,8 +31,6 @@ --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); --hl-8: var(--light-hl-8); - --hl-9: var(--light-hl-9); - --hl-10: var(--light-hl-10); --code-background: var(--light-code-background); } } @@ -50,8 +44,6 @@ --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); --hl-8: var(--dark-hl-8); - --hl-9: var(--dark-hl-9); - --hl-10: var(--dark-hl-10); --code-background: var(--dark-code-background); } } @@ -65,8 +57,6 @@ --hl-6: var(--light-hl-6); --hl-7: var(--light-hl-7); --hl-8: var(--light-hl-8); - --hl-9: var(--light-hl-9); - --hl-10: var(--light-hl-10); --code-background: var(--light-code-background); } @@ -80,8 +70,6 @@ --hl-6: var(--dark-hl-6); --hl-7: var(--dark-hl-7); --hl-8: var(--dark-hl-8); - --hl-9: var(--dark-hl-9); - --hl-10: var(--dark-hl-10); --code-background: var(--dark-code-background); } @@ -94,6 +82,4 @@ .hl-6 { color: var(--hl-6); } .hl-7 { color: var(--hl-7); } .hl-8 { color: var(--hl-8); } -.hl-9 { color: var(--hl-9); } -.hl-10 { color: var(--hl-10); } pre, code { background: var(--code-background); } diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index 20014c3..8794ad4 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "eJy1Xdty4ziS/Rc/d890+VJb3W+WbKs8Y5fVkuyumYmNCliCJWxRpBoEXdZuzL9PgFcATAB0JvfNwXOchwBxSSQS0L/+70TxN3Xy28nTzdeTn04OTO1OfjtZJyzPef7Xp5uvf9mpfXLy08l3kW5Ofvtw+unfP7X/8wd/nt0teLrhksv+f1twz85PFe/ktxOVb34W+c/8TXGZsuTEUJiyPZesb7p6jrO54m+qkPwuYxvorS0YpzBPWMr7lsvHOItlVV6/KZ7mIktzT113BILKbfqSeexriGB5uWOb7Mc9O3jMtzhBY8oO7FkkQgnuqyWTQlCay+zAZUCnIxBUqu5zJ3LlkzEYlG+jmAKabIehbX9d3LOUbT0DRIvi7D/xtcrkKTByVQDF6rnP6jlyLMuSDKiE8jG5hayY3HIVbCIVBae0XHNoRCsf4yxOipcXLmc823Mlj33TNo7TuGeKS8GSvvUGwdl9eP4fvlZnV327DUKambxzErKmszegg+inaHtnoL0zSm8DTNYAzuoVU+zsylujFoxXuJSSHYMiJgOnc8eOXAKjf/Uc3TOkeANGuBrAWb0uEmiYLx/jLP5e6I6aiiztm+0wSh0A7a4GcFYvU7FnSmTpNBGAo2PBOIWZzArAcvkYZ3HBjmuWK+jbtRCy7XqcbIp3rf9XpFuvV2HjNA9vK9ne795pFDmfHnYcGjGq58h6ESkHWnP5mFAL1ZTm8z5rFPvG2x3gs5SPR/GZoy4zwZOrHBSPP1eByHmFH9TOZ90AkS1P8XQtEp99C0bOAq88VVciPzC13oHzgU3AqXxdVP7sgh2XB7YG+pLLwOrMpDh4JVoQa/0zSzde6y2Itb7gL1zydM29EjYDq1N2q9IhgTQ6FGt/LjM9zogs9Yo4FFJJJiLVU4i3LDWO1biRbA9+jBLAWl3yPAcdpRZCRrO4zA+6Zl+5LxzXoyA9Mp7vAHeM5zvKGvNSKSmeCyi84RBwKrep4jLh7JVvooJ+LtJzCy7+6ev+crrxr28MFGf/JgM62U2G7Fk32fb67QAsdmsAOdsXz9xbBQaIbT0bIflaLVUm2ZYPaEEhPtInyAoJzQ7Vc2QsQwqWbhMomFEjBM9ZrKGgTgshv/MxEenGY9sAsVETKICmn+Ls/Z0fX/RssZJs/b1v2ILRq0JwPUhpY39bPnzxtTONEbz+x1S8ZHLvW6g0MGGlUu1PeNYrFYj2b+AdoxpAewQ+p4/mU4qt2KwkS3NdoaBPaTGwOl5Pj+TfPQkOfMLqOcXmIZPADNxhWNvTbH/IchF0fV0OVuv3gm28Ii2ILkk5hHLpL4ZJwKpc/1mU86NXxSKgy1I8c385GpC0BlkWz7d7tgX7r0VAjzlZDg85WY62qVs7lz7LHYq1f5mud9AmWoOgV+FCrXiufI6QQyCqLHheJOBgYRHQcRE98Aqeqtv0UKhoyQL0Ud/AX+oAHfsGf8tEqrzTX4eS7PuaeQtirZf1UH2CcvsIEnE5+AiRHnI92/8WjFWYZEW64Zt4KAokossFVxvafy0r2Rf/MMCRYggDQgfI3aO76BKzR8EpbfgLA3t8DSAjEiJfS654WR2HLGEpoACQ8HsqTAa1ehR0lEGsg0Iug9DSfBJk66VjUsdDfCuxBkbGeGSRqwJYdtTACGNuZLglZEJNs1TJLAF3yR3C//fM9/OHcfYUys2c+MZCSUOvYwOuMNULhmPO1XNiJN5bNSY+Qnv16rgcSnRFicQbWtEYNponBTQFVc8pe2q+7TTKe/rzyWycEss3hwahh+MXtm5D+e6wcHrx8b3b4lzOmQ4MKiunyFDycAnCV/y52Pq1Shhnvpyv8mrXDxQwCTgJHZW854qB5hsQZ7pJFrSDooZ5k0CTKLu/lXkNyDQknNSE5e5IZGi0KPJD1+Fb+CPXIM50mcfD89z/7haD0A/MxPMhnRDmIxvCy4t2iXk6Zekrg0UdDqGkOhjuGcgMnCBQbpQ/OyslV8Ug4aTKZV21FrLDxoaSw0GXqU2ED3ZViIiTrBPk78R3DioZOKHyvOZbFDkeKC6ZyuCP34CUijmPVMw5/t27vFWvhk3ByXxe3oG2Py/vcAYXswnsmswmOIMznga+Yosi39bIfXg4KPvUVM+xsng4wfIshHcqb1FsVVXnIJzcX6u6DAZyBreOXHiL0qcRBvI6i7ab3v4QatffynWH9uC/4V6ncd4jM3OfRpPzVrNJwEnobUHtt/BNHXK5F4e9Z2LxcHHCtQlv0QycMkafRcboM/zgWb/h2VUZW9DnOEIFMWjIxpDJw87N4jLbQocjJ2Pz2IH3u/RYyKG3OTMQ6UoADyd4Y0W7DIWb3gbC4NF8xw6B0bxBkca/84SrLPXbNwj0tWX1d3SFWf2Nk/MvngiLJmvddZuKAaszzUL2kM2mtKBPBWjPI+QzeLiEqhuiOp5kmbDkbXwtSnG8bhWHF+sdTFgqdSHl4ELJouHkqqBhFUi190gNMZeElQJC5tpw4lnkhv5hxFfwVbGPjJXuTgl4+7pLwkqVBvxjlknASrg5WZGq9NGx8s5piECNAkysaJsiFpCzOOjKNTPFAmI9HlbQShoLCPZ46BI2OWSh0pkcUq8rE/n17R6y8v9Cnc/loks4fxwoCzDxw1ubzhKoWIeFFTO3+cLjOMDEihp7fvl0x9LtkHkk/E8jvMr73mEMcbNK/cOuw0L7CFXOWu2UBVpWn4iVBJPm4i8Q+zdCDbgJfm7BoYy+4QJXD/cPr1wm7BjywxwWct3hnmbzusogExkC4PnOHwuqQUpcr83migT2LB5yPZ5tvSI1hjasz3GFjDc4MYgbWDM7nDGDn+8IeCL3TXScaiKULwxo4AQBb7yMGCZ7EhueOYdnzahfC5OCfoNCfsSSWMezvM25x0KOZ0z5h5YGRIaYC/nqH1BalBAZ8c5lxHiPFU2Jx1vGiO34hxSAR4jsVEfRwvGdjoMTunq4n+tcwgVnm4c0OYJKLokm5W0JJoEUEQj4TcR1lpn46h/kwYPE73CRhi2nxllLlZvszwmP78QbpJEXNe9bzYzoDAa6coBPcwwDmjaFllHxD8GTTcCVB3g0wQVXhUwHKJpEQi90z1e4nRA6XPFu72fJlRLpFnboeiyqN+Qdt2wKVaaqmQFiHRE94i/4Ojq3mBxC2coLm5yMebdYHYdaidPscFxloX0eDxc5fOnz43fsmBWe4arDCR5g0MO0GOgGUV3KF/IBOgbNzwj6GCPuqwQDkCB7jFhYQNWljRX3C0hCVNKYEWogDT7KWBEeBm0esdGfXsWbfcXBpiIdgl6cgSOjKtbpiEi4w0dGfrWbrw8H8/ZCdTxUF9vrx47NX379rw8Xp/Z/61u8oX8vn8f+v8pznkuem4k9lQ0TG/Ae/Zy49lU8eW89K7r9Q5XRPB/wFn9IM3DUvoF+PEA9kxtAO5Mb8H+Hft+6+E8sKbi/dko49o6rLOX37HCw7n6rLBkQ/m3LYWHBdaYdT5WzSKt0AAper75RbsH/LHiupixJnq3bgipJmIVXXR0PfOMcXK8rsUXw1ttfCdDGoE7VgoTvVCSJnVRWf5z6OaUFZHIjUqb48phbOTLN57dxvJInwFXJWKB7FPSd/e864fty6obOYrXdEGDFemMV+M5+lKNk7RC5liEOvjRz8caTmzIw4goZEKFnVAEevfaDWq8D43UmCXcusKwEmud0y9d/FuDw5eJ0paVc37C15ZvYUi2BrnWVq7BWS6CMybZ3DzUEiENRvE5fhcxS3QHLktxnG0ATYuFVyww88NaMtudaOGEMqo4qrYpD0ncADIyqcB5QOCcqfNEjS/Ige3dv9Lw1P5OqPkx5PNUyEK0bWU+pQwh+QnWT9U2RrnteQgeR7T/0/OEWINgW/f6pnxHq+uH+s9juFjxfiT1fKrbvvTdAwet5vGiyB73ib2X41L2po51ADZQwdkn49ZvnlHrZpuJFrMvJsZ7vb0Si+i6an0lQF0PFfUS89mV69DSKDiFZDzhvNjqKfzibPwZcxNn8kTrbnAVmmzPibFON4XAfMjFKOy9/RwYsg4kR1jf6V2Ue5AZY3LQI0Tr49h2Ct96d7wUlHJj6FeCWZGKUflcfGfP6lX3GSGvaBxlMrwAWuuB/EMreHf23TyLWBbdhiv9e7tIs+zHEDiGMaUwq606bejCrHlPeWmfwlhdO9fw7E6MolFkZ7u5WI2GAZI3fC5YI1Ytn2ShphXaEFmRHUquprkQFm00LUezrtAPQeg1QbD+JXJR3n7jpvo2GQ6BolauNx9y6YKyR6TCygg7rwO5Jj4DXetiLnnn9jLiODyzhqat3sOKJNd6uTmfzRyi+4uJ4pS45xc5fqXRslLhSrv3wgJvroZHjlfpwGpMiz1K9ZIbCfl4iJQbf/rKGZ93QZ+DVZnfLuycuc6BsBkSJ+++fRdrfUKgeE1vGnK2/60CokkzxrfDEU3osaryo3mbxxIkalFRn9Z0UgTYPkgj9ubkBVTdeMDbVZxDiPOUet/hfvnHut6xDPjZM9iAfpPBtO/YZVM+Pb1Keezy/ChvFtwy4lhT79bgCB+cNkFSG6vRVmd2vs2RhMYhF8kXaI1Kwno1TYiX9nWb9jLD6e1snRX+BWT8mvKnkG/4iUr6BUgHrNwc4hJGtvGAvEMjsEQi+UJJkP5Y7Jpt7w2FFD40QxdJ5UIGB28VJvbX5oUd4Y8uCKTrd9cxlIAHuQACJomlm5cGCLoOi5ibkwYoQC6/6eXV/9yCXT7OyvdeJAq4oSKL0isOOVZm1/Z7QQsTWX4XYphl/eRFrPbH2s7dgGlG3HKLmUuyZBJxBgELUq37qicvpjkm21ol7uRJrWNjDpcSyRaJEap8S6Ae1ARJeMy9z94wCvjIp9OSc/7WGbNtnp9Z0A14425mwCG5yztngVXv/GtZOwoCRAl8yMFmuk7AIKInqlxUiMj0SSmrBRbpjchMRA2goualIeZZGxHoklNTl9Hp5I5K9WEfkQCKudEWusn2sdC4JV7rt11ixLAauqfNCSZbE2nuPhe+44PXGTu81OMguPGG5WLcZk5CQzUCJzKc3QQkTRwtkLyoqYnJQQk/L+6CIiSP7TZVd+sX6qVCzy3Q4SWBiJQH3BSa99N93CtzIDJ7aLAJdIlaQloTviv6EXac/hjN33yE5fxyq2WfiBlHt8LqLNGME7WDc3Dqb+I23INb0ZdD2JcH4XbEXKUvX3K/gUGgykc8A8VCCZTDYr2PAePNNhl1YxWIh/bZN4Ps3INa0DvVuuQwqWBxkIw41YZLheAFmY7z/ZIDOZBShyyFKl3SpxzQX25RvJkflhGU7JZeD88ECAiTDy10mlc9yC5IqJyjRI6Gkbt0IVCdwC4Wd3lmCgHmHgpK5STLmFWhBlOnPLHkJmrcI9M98fn5+PuhTN0S65MXFxYdBkg2R2hROzz8NaA01iyp28euvvw5Qa2jIGE3/IJAZoIGPAw02Xp4GCAqYDJxrutkIfZVKSMbl4IbL4lnpeGREC6Ch5O6LRIlDcgxpuRxCLCYkYzOwX6l/Hsz6QPBxsHd+m5CGy0G6fK/6cOIQPQ8V1xhEGpIyYJx59hY038G4ryPX5YpkyVShM0vcA3TGNwKZKNF/cpn5hToUZfwhDRSiBbGVVe68BCvJYGDf/16kRR4Xg5mkZhD//OOULCIGM3EL2lxFxGwGqWRxMZiJLVmkgdgMaskGtsYRRKdZmiuWxhQBGqmMA2UDdFJpIy0HoI1S2oENdiz5L3rqLeNH8DZMgyJjoT/YMfdaN2BcsI/nfuMtiDatJ/IkaL9joETCAkTjM8n1uaewRo9EkYqp4AW+ZCpcDouA7wfgKWenN3iPO7+jZUV0HAq+bUV0XA6tpwwo1CiCdWuKyPVZpJYXaxl9GrnTDivgKLLVQBwR7JHQaw3gsL+93PAc+h8o8XfOD0EJi4Bc2x4StuZBFZeDDNmuZZmcF5Tqs5CbTUPE+ixayfQ1AMNKZzFpJYyKwkxkSV+5jH1Ai4KLj+vtefuuCyM+3oDI3Jb1d5/lBsN9j6x4TrjPdIfi4sNPgQSjFsTOruUvU7F0WyRMLvhLUt3CFVCM/c9IL1IGVN/5Ivb/4Bo59FsYRgPvYGR+FfBDEo55DSKNQ7+FYeQitSjS/IIfOFP9e1CsycJg4NatCdsfVtn1ZstDSgANGWeVMpN8Ey8bzER66UzyXLnXrJguukEg5Mn6FUycUobqJ6GHFghgE8Xv3yXusrF5zmZpYjXtJdNLPlzaISPLXZkY+Mm9ZJr0kA/uJY9Q7mEda6SvbRZksPA437raqA1d5eJu6sYudXnn9u4waT8b58l5f8LG8OccDuU0Ru/nX5wE0hpHSuhbMMT6SrIfzoUKxgaMTcFV2jFl+4iOy0GWR3K2j5THohCqTX/eSLW1FEq1BXVcDqHaIuWxKIRq079PEam2lkKptqCOyyFUW6Q8FgUfsq0uyYAHVwNHhzYD9g0YH6IN2DdxWmg2UgiyUB2LDMjYDFIoNvTFbQo5BBsvEFmuiqoGhCwCMmvpmQ+KUIBEimQ8FgES0ZKPT4PLCVDxzoj7K1iOLzKhnCvTF+Z8AFugBtAmz3wmz0gpeA8HfSbYlxzlkpCBh7ewioFj/eiggIkjw6m5WJu3CMFxVYeEzvKPKbkcrNAAnRFk4ipkkZX+lcNUldeStNcvQVogEZcFUt6eGVeEeNj1GvyrcNZyzaRQQqvQVTBOfLWjYIOss8m35dlq+u3q6+rDt+CZlh4P3beGKvaJdMmzoZJno0leDJW8IEp+mz8tVtNv55P5/Cn2MQEqUfZ0uOzpGLKX7yguyKUKDykwyEVX9PVqGqtgg0KROY3LnJKrsTRyfTmNVaHDwwteLnUbeDuPCTo8ouDFQMGL8QSjQ47DIwp+HCj4cTzBjwMFP44j+GlgCT+NVcJPA0v4abwSfhoo+GkcwQ+/DKxTg0iXHFarBpEuOaxeDSJd8sMvQzVbJlX0dLDo6aiikZkKYOJFJ/NVdLIyOOgJuLSxvJ19ub6KzMN9Jk308ctwWYeLE76++raYRdwah4MLr1evOkTPQ0WXb7a4vv5Smgq2VZBJLesw7eA/INP3miuK+ZXI15IrcBEL0Khy1WZ0RKwiUaWW+yyDU+t7JNL2cGhb+F3r/v/+D8RmQZw=" \ No newline at end of file +window.navigationData = "eJyNkUELgkAQhf/LnCXTiMp7QqekyITosOmE0rouu1MU4X8PLUljQ6/vzfd4M3N4AuGdwIPQj8ACySgFD2LOtEZth340SinnYMElEwl4jjsvrTazlqS/HD3km6rkLumOFzNn6nbpQBXShNd6H79NWYIqUKiRfjPa3oAeO5GdC5WbqjRWX8oGYzIdo9EHtNgrJg0NKnn4DiHjV/y/R20PSFtyzFHQShAqjTFlhTCEGqb6snX9mdaZbkxl7MRR2x+rmzBxy+MLOITdbg==" \ No newline at end of file diff --git a/docs/classes/AnimationClip.html b/docs/classes/AnimationClip.html deleted file mode 100644 index 72a5008..0000000 --- a/docs/classes/AnimationClip.html +++ /dev/null @@ -1,26 +0,0 @@ -AnimationClip | VFX-JS

Class AnimationClip

Constructors

Properties

name: string
tracks: KeyframeTrack[]
THREE.NormalAnimationBlendMode
-
- -
duration: number
-1
-
- -
uuid: string
results: any[]

Methods

  • Parameters

    • name: string
    • morphTargetSequence: MorphTarget[]
    • fps: number
    • noLoop: boolean

    Returns AnimationClip

  • Parameters

    Returns AnimationClip[]

  • Returns boolean

  • Returns this

  • Parameters

    Returns any

diff --git a/docs/classes/ArrayCamera.html b/docs/classes/ArrayCamera.html deleted file mode 100644 index b5c98be..0000000 --- a/docs/classes/ArrayCamera.html +++ /dev/null @@ -1,436 +0,0 @@ -ArrayCamera | VFX-JS

Class ArrayCamera

ArrayCamera can be used in order to efficiently render a scene with a predefined set of cameras

-

This is an important performance aspect for rendering VR scenes.
-An instance of ArrayCamera always has an array of sub cameras
-It's mandatory to define for each sub camera the viewport property which determines the part of the viewport that is rendered with this camera.

-

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isArrayCamera: true

Read-only flag to check if a given object is of type ArrayCamera.

-

This is a constant value

-

true

-

An array of cameras.

-

[]

-
isPerspectiveCamera: true

Read-only flag to check if a given object is of type Camera.

-

This is a constant value

-

true

-
type: string

PerspectiveCamera

-
zoom: number

Gets or sets the zoom factor of the camera.

-

1

-
fov: number

Camera frustum vertical field of view, from bottom to top of view, in degrees.

-

Expects a Float

-

50

-
aspect: number

Camera frustum aspect ratio, usually the canvas width / canvas height.

-

Expects a Float

-

1, (square canvas).

-
near: number

Camera frustum near plane.

-

The valid range is greater than 0 and less than the current value of the .far plane.

-

0.1

-
far: number

Camera frustum far plane.

-

Must be greater than the current value of .near plane.

-

2000

-
focus: number

Object distance used for stereoscopy and depth-of-field effects.

-

This parameter does not influence the projection matrix unless a THREE.StereoCamera | StereoCamera is being used.

-

10

-
view:
    | null
    | {
        enabled: boolean;
        fullWidth: number;
        fullHeight: number;
        offsetX: number;
        offsetY: number;
        width: number;
        height: number;
    }

Frustum window specification or null.
-This is set using the .setViewOffset method and cleared using .clearViewOffset.

-

null

-
filmGauge: number

Film size used for the larger axis.
-This parameter does not influence the projection matrix unless .filmOffset is set to a nonzero value.

-

Expects a Float

-

35, millimeters.

-
filmOffset: number

Horizontal off-center offset in the same unit as .filmGauge.

-

Expects a Float

-

0

-
isCamera: true

Read-only flag to check if a given object is of type Camera.

-

This is a constant value

-

true

-
layers: Layers

The THREE.Layers | layers that the Camera is a member of.

-

Objects must share at least one layer with the Camera to be n when the camera's viewpoint is rendered.

-

new THREE.Layers()

-
matrixWorldInverse: Matrix4

This is the inverse of matrixWorld.

-

MatrixWorld contains the Matrix which has the world transform of the Camera .

-

THREE.Matrix4 | new THREE.Matrix4()

-
projectionMatrix: Matrix4

This is the matrix which contains the projection.

-

THREE.Matrix4 | new THREE.Matrix4()

-
projectionMatrixInverse: Matrix4

This is the inverse of projectionMatrix.

-

THREE.Matrix4 | new THREE.Matrix4()

-
coordinateSystem: CoordinateSystem
viewport?: Vector4
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • Returns the focal length of the current .fov | fov in respect to .filmGauge.

    -

    Returns number

  • Sets the FOV by focal length in respect to the current .filmGauge.

    -

    Parameters

    • focalLength: number

      Expects a Float

      -

    Returns void

    By default, the focal length is specified for a 35mm (full frame) camera.

    -
  • Returns the current vertical field of view angle in degrees considering .zoom.

    -

    Returns number

  • Returns the width of the image on the film

    -

    Returns number

    If .aspect. is greater than or equal to one (landscape format), the result equals .filmGauge.

    -
  • Returns the height of the image on the film

    -

    Returns number

    If .aspect. is less than or equal to one (portrait format), the result equals .filmGauge.

    -
  • Computes the 2D bounds of the camera's viewable rectangle at a given distance along the viewing direction.
    -Sets minTarget and maxTarget to the coordinates of the lower-left and upper-right corners of the view rectangle.

    -

    Parameters

    Returns void

  • Computes the width and height of the camera's viewable rectangle at a given distance along the viewing direction.
    -Copies the result into the target Vector2, where x is width and y is height.

    -

    Parameters

    Returns Vector2

  • Sets an offset in a larger frustum.

    -

    Parameters

    • fullWidth: number

      Full width of multiview setup Expects a Float.

      -
    • fullHeight: number

      Full height of multiview setup Expects a Float.

      -
    • x: number

      Horizontal offset of subcamera Expects a Float.

      -
    • y: number

      Vertical offset of subcamera Expects a Float.

      -
    • width: number

      Width of subcamera Expects a Float.

      -
    • height: number

      Height of subcamera Expects a Float.

      -

    Returns void

    This is useful for multi-window or multi-monitor/multi-machine setups.

    -

    For example, if you have 3x2 monitors and each monitor is 1920x1080 and
    -the monitors are in grid like this

    -
    ┌───┬───┬───┐
    ABC
    ├───┼───┼───┤
    DEF
    └───┴───┴───┘ -
    - -

    then for each monitor you would call it like this

    -
      const w = 1920;
    const h = 1080;
    const fullWidth = w * 3;
    const fullHeight = h * 2;

    // Monitor - A
    camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
    // Monitor - B
    camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
    // Monitor - C
    camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
    // Monitor - D
    camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
    // Monitor - E
    camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
    // Monitor - F
    camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h ); -
    - -

    Note there is no reason monitors have to be the same size or in a grid.

    -
  • Updates the camera projection matrix

    -

    Returns void

    Must be called after any change of parameters.

    -
  • Parameters

    • focalLength: number
    • OptionalframeHeight: number

    Returns void

    Use .setFocalLength() and .filmGauge instead.

    -
  • Returns a THREE.Vector3 | Vector3 representing the world space direction in which the Camera is looking.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

    Note: A Camera looks down its local, negative z-axis.

    -
  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/Bone.html b/docs/classes/Bone.html deleted file mode 100644 index 3902ba2..0000000 --- a/docs/classes/Bone.html +++ /dev/null @@ -1,332 +0,0 @@ -Bone | VFX-JS

Class Bone<TEventMap>

A Bone which is part of a THREE.Skeleton | Skeleton

-

The skeleton in turn is used by the THREE.SkinnedMesh | SkinnedMesh
-Bones are almost identical to a blank THREE.Object3D | Object3D.

-
const root = new THREE.Bone();
const child = new THREE.Bone();
root.add(child);
child.position.y = 5; -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isBone: true

Read-only flag to check if a given object is of type Bone.

-

This is a constant value

-

true

-
type: string

Bone

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
  • Fire an event type.

    -

    Type Parameters

    • T extends string

    Parameters

    Returns void

diff --git a/docs/classes/Box2.html b/docs/classes/Box2.html deleted file mode 100644 index 544f80c..0000000 --- a/docs/classes/Box2.html +++ /dev/null @@ -1,36 +0,0 @@ -Box2 | VFX-JS

Class Box2

Constructors

Properties

min: Vector2
new THREE.Vector2( + Infinity, + Infinity )
-
- -
max: Vector2
new THREE.Vector2( - Infinity, - Infinity )
-
- -

Methods

  • Parameters

    Returns Box2

  • Returns this

  • Parameters

    Returns this

  • Returns Box2

  • Returns boolean

  • Parameters

    Returns Box2

  • Parameters

    Returns Box2

  • Parameters

    • scalar: number

    Returns Box2

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • Parameters

    Returns Box2

  • Parameters

    Returns Box2

  • Parameters

    Returns Box2

  • Parameters

    Returns boolean

  • Returns any

    Use .isEmpty() instead.

    -
  • Parameters

    • b: any

    Returns any

    Use .intersectsBox() instead.

    -
diff --git a/docs/classes/Box3.html b/docs/classes/Box3.html deleted file mode 100644 index 5a1cd0d..0000000 --- a/docs/classes/Box3.html +++ /dev/null @@ -1,48 +0,0 @@ -Box3 | VFX-JS

Class Box3

Constructors

Properties

min: Vector3
new THREE.Vector3( + Infinity, + Infinity, + Infinity )
-
- -
max: Vector3
new THREE.Vector3( - Infinity, - Infinity, - Infinity )
-
- -
isBox3: true

Methods

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • object: Object3D
    • Optionalprecise: boolean

    Returns this

  • Returns this

  • Parameters

    Returns this

  • Returns this

  • Returns boolean

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • scalar: number

    Returns this

  • Parameters

    • object: Object3D
    • Optionalprecise: boolean

    Returns this

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • Parameters

    Returns Sphere

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns boolean

  • Returns any

    Use .isEmpty() instead.

    -
  • Parameters

    • b: any

    Returns any

    Use .intersectsBox() instead.

    -
  • Parameters

    • s: any

    Returns any

    Use .intersectsSphere() instead.

    -
diff --git a/docs/classes/BufferAttribute.html b/docs/classes/BufferAttribute.html deleted file mode 100644 index a1d6517..0000000 --- a/docs/classes/BufferAttribute.html +++ /dev/null @@ -1,163 +0,0 @@ -BufferAttribute | VFX-JS

Class BufferAttribute

This class stores data for an attribute (such as vertex positions, face indices, normals, colors, UVs, and any custom attributes )
-associated with a THREE.BufferGeometry | BufferGeometry, which allows for more efficient passing of data to the GPU

-

When working with vector-like data, the .fromBufferAttribute( attribute, index ) helper methods on
-THREE.Vector2.fromBufferAttribute | Vector2,
-THREE.Vector3.fromBufferAttribute | Vector3,
-THREE.Vector4.fromBufferAttribute | Vector4, and
-THREE.Color.fromBufferAttribute | Color classes may be helpful.

-
-

Hierarchy (View Summary)

Constructors

  • This creates a new THREE.GLBufferAttribute | GLBufferAttribute object.

    -

    Parameters

    • array: TypedArray

      Must be a TypedArray. Used to instantiate the buffer.
      -This array should have itemSize * numVertices elements, where numVertices is the number of vertices in the associated THREE.BufferGeometry | BufferGeometry.

      -
    • itemSize: number

      the number of values of the array that should be associated with a particular vertex.
      -For instance, if this attribute is storing a 3-component vector (such as a position, normal, or color),
      -then itemSize should be 3.

      -
    • Optionalnormalized: boolean

      Applies to integer data only.
      -Indicates how the underlying data in the buffer maps to the values in the GLSL code.
      -For instance, if array is an instance of UInt16Array, and normalized is true,
      -the values 0 - +65535 in the array data will be mapped to 0.0f - +1.0f in the GLSL attribute.
      -An Int16Array (signed) would map from -32768 - +32767 to -1.0f - +1.0f.
      -If normalized is false, the values will be converted to floats unmodified,
      -i.e. 32767 becomes 32767.0f.
      -Default false.

      -

    Returns BufferAttribute

    TypeError When the array is not a TypedArray;

    -

Properties

name: string

Optional name for this attribute instance.

-
''
-
- -
array: TypedArray

The TypedArray holding data stored in the buffer.

-

TypedArray

-
itemSize: number

The length of vectors that are being stored in the array.

-

Expects a Integer

-
usage: Usage

Defines the intended usage pattern of the data store for optimization purposes.
-Corresponds to the usage parameter of
-WebGLRenderingContext.bufferData.

-

After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

-
-

THREE.StaticDrawUsage | THREE.StaticDrawUsage.

-

Configures the bound GPU type for use in shaders. Either FloatType or IntType, default is FloatType.

-

Note: this only has an effect for integer arrays and is not configurable for float arrays. For lower precision
-float types, see https://threejs.org/docs/#api/en/core/bufferAttributeTypes/BufferAttributeTypes.

-
updateRanges: { start: number; count: number }[]

This can be used to only update some components of stored vectors (for example, just the component related to
-color). Use the .addUpdateRange function to add ranges to this array.

-

Type declaration

  • start: number

    Position at which to start update.

    -
  • count: number

    The number of components to update.

    -
version: number

A version number, incremented every time the needsUpdate property is set to true.

-

Expects a Integer

-

0

-
normalized: boolean

Indicates how the underlying data in the buffer maps to the values in the GLSL shader code.

-

constructor above for details.

-

false

-
count: number

Represents the number of items this buffer attribute stores. It is internally computed by dividing the
-array's length by the itemSize. Read-only
-property.

-
isBufferAttribute: true

Read-only flag to check if a given object is of type BufferAttribute.

-

This is a constant value

-

true

-
onUploadCallback: () => void

A callback function that is executed after the Renderer has transferred the attribute array data to the GPU.

-

Accessors

  • set needsUpdate(value: boolean): void
  • Flag to indicate that this attribute has changed and should be re-sent to the GPU.
    -Set this to true when you modify the value of the array.

    -

    Parameters

    • value: boolean

    Returns void

    Setting this to true also increments the version.

    -

Methods

  • Sets the value of the onUploadCallback property.

    -

    Parameters

    • callback: () => void

      function that is executed after the Renderer has transferred the attribute array data to the GPU.

      -

    Returns this

    -
  • Set usage

    -

    Parameters

    Returns this

    After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

    -
    -
  • Adds a range of data in the data array to be updated on the GPU. Adds an object describing the range to the
    -.updateRanges array.

    -

    Parameters

    • start: number
    • count: number

    Returns void

  • Clears the .updateRanges array.

    -

    Returns void

  • Copy a vector from bufferAttribute[index2] to array[index1].

    -

    Parameters

    Returns this

  • Copy the array given here (which can be a normal array or TypedArray) into array.

    -

    Parameters

    Returns this

    TypedArray.set for notes on requirements if copying a TypedArray.

    -
  • Applies matrix m to every Vector3 element of this BufferAttribute.

    -

    Parameters

    Returns this

  • Applies matrix m to every Vector3 element of this BufferAttribute.

    -

    Parameters

    Returns this

  • Applies normal matrix m to every Vector3 element of this BufferAttribute.

    -

    Parameters

    Returns this

  • Applies matrix m to every Vector3 element of this BufferAttribute, interpreting the elements as a direction vectors.

    -

    Parameters

    Returns this

  • Returns the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number

    Returns number

  • Sets the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number
    • value: number

    Returns void

  • Returns the x component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the x component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

    Returns this

  • Returns the y component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the y component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • y: number

    Returns this

  • Returns the z component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the z component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Returns the w component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the w component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Sets the x and y components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number

    Returns this

  • Sets the x, y and z components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number
    • z: number

    Returns this

  • Sets the x, y, z and w components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number
    • z: number
    • w: number

    Returns this

diff --git a/docs/classes/BufferGeometry.html b/docs/classes/BufferGeometry.html deleted file mode 100644 index 1c5cbc8..0000000 --- a/docs/classes/BufferGeometry.html +++ /dev/null @@ -1,186 +0,0 @@ -BufferGeometry | VFX-JS

Class BufferGeometry<Attributes>

A representation of mesh, line, or point geometry
-Includes vertex positions, face indices, normals, colors, UVs, and custom attributes within buffers, reducing the cost of passing all this data to the GPU.

-

To read and edit data in BufferGeometry attributes, see THREE.BufferAttribute | BufferAttribute documentation.

-
const geometry = new THREE.BufferGeometry();

// create a simple square shape. We duplicate the top left and bottom right
// vertices because each vertex needs to appear once per triangle.
const vertices = new Float32Array( [
-1.0, -1.0, 1.0, // v0
1.0, -1.0, 1.0, // v1
1.0, 1.0, 1.0, // v2

1.0, 1.0, 1.0, // v3
-1.0, 1.0, 1.0, // v4
-1.0, -1.0, 1.0 // v5
] );

// itemSize = 3 because there are 3 values (components) per vertex
geometry.setAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );
const material = new THREE.MeshBasicMaterial( { color: 0xff0000 } );
const mesh = new THREE.Mesh( geometry, material ); -
- -
const geometry = new THREE.BufferGeometry();

const vertices = new Float32Array( [
-1.0, -1.0, 1.0, // v0
1.0, -1.0, 1.0, // v1
1.0, 1.0, 1.0, // v2
-1.0, 1.0, 1.0, // v3
] );
geometry.setAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );

const indices = [
0, 1, 2,
2, 3, 0,
];

geometry.setIndex( indices );
geometry.setAttribute( 'position', new THREE.BufferAttribute( vertices, 3 ) );

const material = new THREE.MeshBasicMaterial( { color: 0xff0000 } );
const mesh = new THREE.Mesh( geometry, material ); -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

id: number

Unique number for this THREE.BufferGeometry | BufferGeometry instance.

-

Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name for this THREE.BufferGeometry | BufferGeometry instance.

-

''

-
type: string

A Read-only string to check if this object type.

-

Sub-classes will update this value.

-

BufferGeometry

-
index: null | BufferAttribute

Allows for vertices to be re-used across multiple triangles; this is called using "indexed triangles".
-Each triangle is associated with the indices of three vertices. This attribute therefore stores the index of each vertex for each triangular face.
-If this attribute is not set, the THREE.WebGLRenderer | renderer assumes that each three contiguous positions represent a single triangle.

-

null

-
attributes: Attributes

This hashmap has as id the name of the attribute to be set and as value the THREE.BufferAttribute | buffer to set it to. Rather than accessing this property directly,
-use .setAttribute and .getAttribute to access attributes of this geometry.

-

{}

-
morphAttributes: {
    [name: string]: (BufferAttribute | InterleavedBufferAttribute)[];
}

Hashmap of THREE.BufferAttribute | BufferAttributes holding details of the geometry's morph targets.

-

Once the geometry has been rendered, the morph attribute data cannot be changed.
-You will have to call .dispose(), and create a new instance of THREE.BufferGeometry | BufferGeometry.

-

{}

-
morphTargetsRelative: boolean

Used to control the morph target behavior; when set to true, the morph target data is treated as relative offsets, rather than as absolute positions/normals.

-

false

-
groups: GeometryGroup[]

Split the geometry into groups, each of which will be rendered in a separate WebGL draw call. This allows an array of materials to be used with the geometry.

-

Every vertex and index must belong to exactly one group — groups must not share vertices or indices, and must not leave vertices or indices unused.

-

[]

-
boundingBox: null | Box3

Bounding box for the THREE.BufferGeometry | BufferGeometry, which can be calculated with .computeBoundingBox().

-

Bounding boxes aren't computed by default. They need to be explicitly computed, otherwise they are null.

-

null

-
boundingSphere: null | Sphere

Bounding sphere for the THREE.BufferGeometry | BufferGeometry, which can be calculated with .computeBoundingSphere().

-

bounding spheres aren't computed by default. They need to be explicitly computed, otherwise they are null.

-

null

-
drawRange: { start: number; count: number }

Determines the part of the geometry to render. This should not be set directly, instead use .setDrawRange(...).

-

For non-indexed THREE.BufferGeometry | BufferGeometry, count is the number of vertices to render.

-

{ start: 0, count: Infinity }

-
userData: Record<string, any>

An object that can be used to store custom data about the BufferGeometry. It should not hold references to functions as these will not be cloned.

-

{}

-
isBufferGeometry: true

Read-only flag to check if a given object is of type BufferGeometry.

-

This is a constant value

-

true

-

Methods

  • Set the THREE.BufferGeometry.index | .index buffer.

    -

    Parameters

    Returns this

  • Sets an attribute to this geometry with the specified name.

    -

    Type Parameters

    • K extends string | number | symbol

    Parameters

    Returns this

    Use this rather than the attributes property, because an internal hashmap of .attributes is maintained to speed up iterating over attributes.

    -
  • Returns the attribute with the specified name.

    -

    Type Parameters

    • K extends string | number | symbol

    Parameters

    • name: K

    Returns Attributes[K]

  • Deletes the attribute with the specified name.

    -

    Parameters

    Returns this

  • Returns true if the attribute with the specified name exists.

    -

    Parameters

    Returns boolean

  • Adds a group to this geometry

    -

    Parameters

    • start: number
    • count: number
    • OptionalmaterialIndex: number

    Returns void

    the groups property for details.

    -
  • Clears all groups.

    -

    Returns void

  • Set the .drawRange property

    -

    Parameters

    • start: number
    • count: number

      is the number of vertices or indices to render. Expects a Integer

      -

    Returns void

    For non-indexed BufferGeometry, count is the number of vertices to render

    -
  • Applies the matrix transform to the geometry.

    -

    Parameters

    Returns this

  • Applies the rotation represented by the quaternion to the geometry.

    -

    Parameters

    Returns this

  • Rotate the geometry about the X axis. This is typically done as a one time operation, and not during a loop.

    -

    Parameters

    • angle: number

      radians. Expects a Float

      -

    Returns this

    Use THREE.Object3D.rotation | Object3D.rotation for typical real-time mesh rotation.

    -
  • Rotate the geometry about the Y axis.

    -

    Parameters

    • angle: number

      radians. Expects a Float

      -

    Returns this

    This is typically done as a one time operation, and not during a loop.

    -
  • Rotate the geometry about the Z axis.

    -

    Parameters

    • angle: number

      radians. Expects a Float

      -

    Returns this

    This is typically done as a one time operation, and not during a loop.

    -
  • Translate the geometry.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns this

    This is typically done as a one time operation, and not during a loop.

    -
  • Scale the geometry data.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns this

    This is typically done as a one time operation, and not during a loop.

    -
  • Rotates the geometry to face a point in space.

    -

    Parameters

    • vector: Vector3

      A world vector to look at.

      -

    Returns this

    This is typically done as a one time operation, and not during a loop.

    -
  • Center the geometry based on the bounding box.

    -

    Returns this

  • Defines a geometry by creating a position attribute based on the given array of points. The array can hold
    -instances of Vector2 or Vector3. When using two-dimensional data, the z coordinate for all
    -vertices is set to 0.

    -

    If the method is used with an existing position attribute, the vertex data are overwritten with the data from
    -the array. The length of the array must match the vertex count.

    -

    Parameters

    Returns this

  • Computes the bounding box of the geometry, and updates the .boundingBox attribute. The bounding box is
    -not computed by the engine; it must be computed by your app. You may need to recompute the bounding box if the
    -geometry vertices are modified.

    -

    Returns void

  • Computes the bounding sphere of the geometry, and updates the .boundingSphere attribute. The engine
    -automatically computes the bounding sphere when it is needed, e.g., for ray casting or view frustum culling. You
    -may need to recompute the bounding sphere if the geometry vertices are modified.

    -

    Returns void

  • Calculates and adds a tangent attribute to this geometry.
    -The computation is only supported for indexed geometries and if position, normal, and uv attributes are defined

    -

    Returns void

    When using a tangent space normal map, prefer the MikkTSpace algorithm provided by
    -BufferGeometryUtils.computeMikkTSpaceTangents instead.

    -
  • Computes vertex normals for the given vertex data. For indexed geometries, the method sets each vertex normal to
    -be the average of the face normals of the faces that share that vertex. For non-indexed geometries, vertices are
    -not shared, and the method sets each vertex normal to be the same as the face normal.

    -

    Returns void

  • Every normal vector in a geometry will have a magnitude of 1

    -

    Returns void

    This will correct lighting on the geometry surfaces.

    -
  • Return a non-index version of an indexed BufferGeometry.

    -

    Returns BufferGeometry

  • Creates a clone of this BufferGeometry

    -

    Returns this

  • Copies another BufferGeometry to this BufferGeometry.

    -

    Parameters

    Returns this

  • Frees the GPU-related resources allocated by this instance.

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/Camera.html b/docs/classes/Camera.html deleted file mode 100644 index f7a381e..0000000 --- a/docs/classes/Camera.html +++ /dev/null @@ -1,342 +0,0 @@ -Camera | VFX-JS

Class Camera

Abstract base class for cameras

-

This class should always be inherited when you build a new camera.

-

Hierarchy (View Summary)

Constructors

  • Returns Camera

    Note that this class is not intended to be called directly; you probably want a
    -THREE.PerspectiveCamera | PerspectiveCamera or
    -THREE.OrthographicCamera | OrthographicCamera instead.

    -

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isCamera: true

Read-only flag to check if a given object is of type Camera.

-

This is a constant value

-

true

-
type: string

Camera

-
layers: Layers

The THREE.Layers | layers that the Camera is a member of.

-

Objects must share at least one layer with the Camera to be n when the camera's viewpoint is rendered.

-

new THREE.Layers()

-
matrixWorldInverse: Matrix4

This is the inverse of matrixWorld.

-

MatrixWorld contains the Matrix which has the world transform of the Camera .

-

THREE.Matrix4 | new THREE.Matrix4()

-
projectionMatrix: Matrix4

This is the matrix which contains the projection.

-

THREE.Matrix4 | new THREE.Matrix4()

-
projectionMatrixInverse: Matrix4

This is the inverse of projectionMatrix.

-

THREE.Matrix4 | new THREE.Matrix4()

-
coordinateSystem: CoordinateSystem
viewport?: Vector4
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • Returns a THREE.Vector3 | Vector3 representing the world space direction in which the Camera is looking.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

    Note: A Camera looks down its local, negative z-axis.

    -
  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/Color.html b/docs/classes/Color.html deleted file mode 100644 index 42fa604..0000000 --- a/docs/classes/Color.html +++ /dev/null @@ -1,110 +0,0 @@ -Color | VFX-JS

Class Color

Class representing a color.

-

A Color instance is represented by RGB components in the linear working color space, which defaults to
-LinearSRGBColorSpace. Inputs conventionally using SRGBColorSpace (such as hexadecimals and CSS strings) are
-converted to the working color space automatically.

-
// converted automatically from SRGBColorSpace to LinearSRGBColorSpace
const color = new THREE.Color().setHex( 0x112233 ); -
- -

Source color spaces may be specified explicitly, to ensure correct conversions.

-
// assumed already LinearSRGBColorSpace; no conversion
const color = new THREE.Color().setRGB( 0.5, 0.5, 0.5 );

// converted explicitly from SRGBColorSpace to LinearSRGBColorSpace
const color = new THREE.Color().setRGB( 0.5, 0.5, 0.5, SRGBColorSpace ); -
- -

If THREE.ColorManagement is disabled, no conversions occur. For details, see Color management.

-

Iterating through a Color instance will yield its components (r, g, b) in the corresponding order.

-

Constructors

  • Parameters

    Returns Color

  • Parameters

    • r: number
    • g: number
    • b: number

    Returns Color

Properties

NAMES: {
    aliceblue: 15792383;
    antiquewhite: 16444375;
    aqua: 65535;
    aquamarine: 8388564;
    azure: 15794175;
    beige: 16119260;
    bisque: 16770244;
    black: 0;
    blanchedalmond: 16772045;
    blue: 255;
    blueviolet: 9055202;
    brown: 10824234;
    burlywood: 14596231;
    cadetblue: 6266528;
    chartreuse: 8388352;
    chocolate: 13789470;
    coral: 16744272;
    cornflowerblue: 6591981;
    cornsilk: 16775388;
    crimson: 14423100;
    cyan: 65535;
    darkblue: 139;
    darkcyan: 35723;
    darkgoldenrod: 12092939;
    darkgray: 11119017;
    darkgreen: 25600;
    darkgrey: 11119017;
    darkkhaki: 12433259;
    darkmagenta: 9109643;
    darkolivegreen: 5597999;
    darkorange: 16747520;
    darkorchid: 10040012;
    darkred: 9109504;
    darksalmon: 15308410;
    darkseagreen: 9419919;
    darkslateblue: 4734347;
    darkslategray: 3100495;
    darkslategrey: 3100495;
    darkturquoise: 52945;
    darkviolet: 9699539;
    deeppink: 16716947;
    deepskyblue: 49151;
    dimgray: 6908265;
    dimgrey: 6908265;
    dodgerblue: 2003199;
    firebrick: 11674146;
    floralwhite: 16775920;
    forestgreen: 2263842;
    fuchsia: 16711935;
    gainsboro: 14474460;
    ghostwhite: 16316671;
    gold: 16766720;
    goldenrod: 14329120;
    gray: 8421504;
    green: 32768;
    greenyellow: 11403055;
    grey: 8421504;
    honeydew: 15794160;
    hotpink: 16738740;
    indianred: 13458524;
    indigo: 4915330;
    ivory: 16777200;
    khaki: 15787660;
    lavender: 15132410;
    lavenderblush: 16773365;
    lawngreen: 8190976;
    lemonchiffon: 16775885;
    lightblue: 11393254;
    lightcoral: 15761536;
    lightcyan: 14745599;
    lightgoldenrodyellow: 16448210;
    lightgray: 13882323;
    lightgreen: 9498256;
    lightgrey: 13882323;
    lightpink: 16758465;
    lightsalmon: 16752762;
    lightseagreen: 2142890;
    lightskyblue: 8900346;
    lightslategray: 7833753;
    lightslategrey: 7833753;
    lightsteelblue: 11584734;
    lightyellow: 16777184;
    lime: 65280;
    limegreen: 3329330;
    linen: 16445670;
    magenta: 16711935;
    maroon: 8388608;
    mediumaquamarine: 6737322;
    mediumblue: 205;
    mediumorchid: 12211667;
    mediumpurple: 9662683;
    mediumseagreen: 3978097;
    mediumslateblue: 8087790;
    mediumspringgreen: 64154;
    mediumturquoise: 4772300;
    mediumvioletred: 13047173;
    midnightblue: 1644912;
    mintcream: 16121850;
    mistyrose: 16770273;
    moccasin: 16770229;
    navajowhite: 16768685;
    navy: 128;
    oldlace: 16643558;
    olive: 8421376;
    olivedrab: 7048739;
    orange: 16753920;
    orangered: 16729344;
    orchid: 14315734;
    palegoldenrod: 15657130;
    palegreen: 10025880;
    paleturquoise: 11529966;
    palevioletred: 14381203;
    papayawhip: 16773077;
    peachpuff: 16767673;
    peru: 13468991;
    pink: 16761035;
    plum: 14524637;
    powderblue: 11591910;
    purple: 8388736;
    rebeccapurple: 6697881;
    red: 16711680;
    rosybrown: 12357519;
    royalblue: 4286945;
    saddlebrown: 9127187;
    salmon: 16416882;
    sandybrown: 16032864;
    seagreen: 3050327;
    seashell: 16774638;
    sienna: 10506797;
    silver: 12632256;
    skyblue: 8900331;
    slateblue: 6970061;
    slategray: 7372944;
    slategrey: 7372944;
    snow: 16775930;
    springgreen: 65407;
    steelblue: 4620980;
    tan: 13808780;
    teal: 32896;
    thistle: 14204888;
    tomato: 16737095;
    turquoise: 4251856;
    violet: 15631086;
    wheat: 16113331;
    white: 16777215;
    whitesmoke: 16119285;
    yellow: 16776960;
    yellowgreen: 10145074;
}

List of X11 color names.

-
isColor: true
r: number

Red channel value between 0.0 and 1.0. Default is 1.

-
1
-
- -
g: number

Green channel value between 0.0 and 1.0. Default is 1.

-
1
-
- -
b: number

Blue channel value between 0.0 and 1.0. Default is 1.

-
1
-
- -

Methods

  • Parameters

    Returns this

  • Sets this color's r, g and b components from the x, y, and z components of the specified
    -vector.

    -

    Parameters

    Returns this

  • Parameters

    • scalar: number

    Returns Color

  • Parameters

    • hex: number
    • OptionalcolorSpace: string

    Returns Color

  • Sets this color from RGB values.

    -

    Parameters

    • r: number

      Red channel value between 0 and 1.

      -
    • g: number

      Green channel value between 0 and 1.

      -
    • b: number

      Blue channel value between 0 and 1.

      -
    • OptionalcolorSpace: string

    Returns Color

  • Sets this color from HSL values.
    -Based on MochiKit implementation by Bob Ippolito.

    -

    Parameters

    • h: number

      Hue channel value between 0 and 1.

      -
    • s: number

      Saturation value channel between 0 and 1.

      -
    • l: number

      Value channel value between 0 and 1.

      -
    • OptionalcolorSpace: string

    Returns Color

  • Sets this color from a CSS context style string.

    -

    Parameters

    • style: string
    • OptionalcolorSpace: string

    Returns Color

  • Sets this color from a color name.
    -Faster than .setStyle() method if you don't need the other CSS-style formats.

    -

    Parameters

    • style: string

      Color name in X11 format.

      -
    • OptionalcolorSpace: string

    Returns Color

  • Clones this color.

    -

    Returns this

  • Copies given color.

    -

    Parameters

    • color: Color

      Color to copy.

      -

    Returns this

  • Copies given color making conversion from SRGBColorSpace to LinearSRGBColorSpace.

    -

    Parameters

    • color: Color

      Color to copy.

      -

    Returns Color

  • Copies given color making conversion from LinearSRGBColorSpace to SRGBColorSpace.

    -

    Parameters

    • color: Color

      Color to copy.

      -

    Returns Color

  • Converts this color from SRGBColorSpace to LinearSRGBColorSpace.

    -

    Returns Color

  • Converts this color from LinearSRGBColorSpace to SRGBColorSpace.

    -

    Returns Color

  • Returns the hexadecimal value of this color.

    -

    Parameters

    • OptionalcolorSpace: string

    Returns number

  • Returns the string formated hexadecimal value of this color.

    -

    Parameters

    • OptionalcolorSpace: string

    Returns string

  • Parameters

    • target: HSL
    • OptionalcolorSpace: string

    Returns HSL

  • Parameters

    • target: RGB
    • OptionalcolorSpace: string

    Returns RGB

  • Returns the value of this color in CSS context style.
    -Example: rgb(r, g, b)

    -

    Parameters

    • OptionalcolorSpace: string

    Returns string

  • Parameters

    • h: number
    • s: number
    • l: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • s: number

    Returns this

  • Applies the transform m to this color's RGB components.

    -

    Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • s: number

    Returns this

  • Parameters

    • color: Color
    • alpha: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    • color: Color
    • alpha: number

    Returns this

  • Parameters

    Returns boolean

  • Sets this color's red, green and blue value from the provided array or array-like.

    -

    Parameters

    • array: number[] | ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array-like. Default is 0.

      -

    Returns this

  • Returns an array [red, green, blue], or copies red, green and blue into the provided array.

    -

    Parameters

    • Optionalarray: number[]

      (optional) array to store the color to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns number[]

    The created or provided array.

    -
  • Copies red, green and blue into the provided array-like.

    -

    Parameters

    • xyz: ArrayLike<number>
    • Optionaloffset: number

      (optional) optional offset into the array-like.

      -

    Returns ArrayLike<number>

    The provided array-like.

    -
  • This method defines the serialization result of Color.

    -

    Returns number

    The color as a hexadecimal value.

    -
  • Returns Generator<number, void>

diff --git a/docs/classes/ColorBuffer.html b/docs/classes/ColorBuffer.html deleted file mode 100644 index ba4cb63..0000000 --- a/docs/classes/ColorBuffer.html +++ /dev/null @@ -1,6 +0,0 @@ -ColorBuffer | VFX-JS

Class ColorBuffer

Constructors

Methods

Constructors

Methods

  • Parameters

    • colorMask: boolean

    Returns void

  • Parameters

    • lock: boolean

    Returns void

  • Parameters

    • r: number
    • g: number
    • b: number
    • a: number
    • premultipliedAlpha: boolean

    Returns void

  • Returns void

diff --git a/docs/classes/CubeTexture.html b/docs/classes/CubeTexture.html deleted file mode 100644 index 279fbe5..0000000 --- a/docs/classes/CubeTexture.html +++ /dev/null @@ -1,274 +0,0 @@ -CubeTexture | VFX-JS

Class CubeTexture

Creates a cube texture made up of six images.

-

CubeTexture is almost equivalent in functionality and usage to Texture.
-The only differences are that the images are an array of 6 images as opposed to a single image,
-and the mapping options are THREE.CubeReflectionMapping (default) or THREE.CubeRefractionMapping

-
const loader = new THREE.CubeTextureLoader();
loader.setPath('textures/cube/pisa/');
const textureCube = loader.load(['px.png', 'nx.png', 'py.png', 'ny.png', 'pz.png', 'nz.png']);
const material = new THREE.MeshBasicMaterial({
color: 0xffffff,
envMap: textureCube
}); -
- -

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_ANISOTROPY: number

The Global default value for .anisotropy.

-

1.

-
DEFAULT_IMAGE: any

The Global default value for .image.

-

null.

-
DEFAULT_MAPPING: Mapping

The Global default value for .mapping.

-

THREE.UVMapping

-
isCubeTexture: true

Read-only flag to check if a given object is of type CubeTexture.

-

This is a constant value

-

true

-

How the image is applied to the object.

-

All Texture types except THREE.CubeTexture expect the values be THREE.Mapping

-

value of THREE.Texture.DEFAULT_MAPPING

-
flipY: boolean

If set to true, the texture is flipped along the vertical axis when uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

true

-
isTexture: true

Read-only flag to check if a given object is of type Texture.

-

This is a constant value

-

true

-
id: number

Unique number for this Texture instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
source: Source

The data definition of a texture. A reference to the data source can be shared across textures.
-This is often useful in context of spritesheets where multiple textures render the same data
-but with different Texture transformations.

-
mipmaps:
    | undefined
    | CompressedTextureMipmap[]
    | CubeTexture[]
    | HTMLCanvasElement[]

Array of user-specified mipmaps

-

[]

-
channel: number

Lets you select the uv attribute to map the texture to. 0 for uv, 1 for uv1, 2 for uv2 and 3 for
-uv3.

-
wrapS: Wrapping

This defines how the Texture is wrapped horizontally and corresponds to U in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
wrapT: Wrapping

This defines how the Texture is wrapped vertically and corresponds to V in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-

How the Texture is sampled when a texel covers more than one pixel.

-
-

THREE.LinearFilter

-

How the Texture is sampled when a texel covers less than one pixel.

-
-

THREE.LinearMipmapLinearFilter

-
anisotropy: number

The number of samples taken along the axis through the pixel that has the highest density of texels.

-

A higher value gives a less blurry result than a basic mipmap, at the cost of more Texture samples being used.

-

value of THREE.Texture.DEFAULT_ANISOTROPY. That is normally 1.

-

These define how elements of a 2D texture, or texels, are read by shaders.

-

All Texture types except THREE.DepthTexture and THREE.CompressedPixelFormat expect the values be THREE.PixelFormat

-
-

THREE.RGBAFormat.

-

This must correspond to the .format.

-

THREE.UnsignedByteType, is the type most used by Texture formats.

-
-

THREE.UnsignedByteType

-
internalFormat: null | PixelFormatGPU

The GPU Pixel Format allows the developer to specify how the data is going to be stored on the GPU.

-

The default value is obtained using a combination of .format and .type.

-
matrix: Matrix3

The uv-transform matrix for the texture.

-

When .matrixAutoUpdate property is true.
-Will be updated by the renderer from the properties:

- -

new THREE.Matrix3()

-
matrixAutoUpdate: boolean

Whether is to update the texture's uv-transform .matrix.

-

Set this to false if you are specifying the uv-transform matrix directly.

-

.matrix

-

true

-
offset: Vector2

How much a single repetition of the texture is offset from the beginning, in each direction U and V.

-

Typical range is 0.0 to 1.0.

-

new THREE.Vector2(0, 0)

-
repeat: Vector2

How many times the texture is repeated across the surface, in each direction U and V.

-

If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should
-also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect.

-
-

new THREE.Vector2( 1, 1 )

-
center: Vector2

The point around which rotation occurs.

-

A value of (0.5, 0.5) corresponds to the center of the texture.

-

new THREE.Vector2( 0, 0 ), lower left.

-
rotation: number

How much the texture is rotated around the center point, in radians.

-

Positive values are counter-clockwise.

-

0

-
generateMipmaps: boolean

Whether to generate mipmaps, (if possible) for a texture.

-

Set this to false if you are creating mipmaps manually.

-
true
-
- -
premultiplyAlpha: boolean

If set to true, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

false

-
unpackAlignment: number

Specifies the alignment requirements for the start of each pixel row in memory.

-

The allowable values are:

-
    -
  • 1 (byte-alignment)
  • -
  • 2 (rows aligned to even-numbered bytes)
  • -
  • 4 (word-alignment)
  • -
  • 8 (rows start on double-word boundaries).
  • -
-

glPixelStorei for more information.

-

4

-
colorSpace: string

The Textures | {@link Texture constants} page for details of other color spaces.

-

Textures containing color data should be annotated with SRGBColorSpace THREE.SRGBColorSpace or
-LinearSRGBColorSpace THREE.LinearSRGBColorSpace.

-
-

THREE.NoColorSpace

-
isRenderTargetTexture: boolean

Indicates whether a texture belongs to a render target or not

-

false

-
userData: Record<string, any>

An object that can be used to store custom data about the texture.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-

Expects a Integer

-

0

-
pmremVersion: number

Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target
-textures)

-
onUpdate: () => void

A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).

-

Accessors

  • get image(): any
  • An image object, typically created using the THREE.CubeTextureLoader.load | CubeTextureLoader.load() method.

    -

    Returns any

  • set image(data: any): void
  • An image object, typically created using the THREE.TextureLoader.load | TextureLoader.load() method.

    -

    Parameters

    • data: any

    Returns void

    This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    -
  • get images(): any
  • An image object, typically created using the THREE.CubeTextureLoader.load | CubeTextureLoader.load() method.

    -

    Returns any

  • set images(data: any): void
  • Parameters

    • data: any

    Returns void

  • set needsUpdate(value: boolean): void
  • Set this to true to trigger an update next time the texture is used. Particularly important for setting the wrap mode.

    -

    Parameters

    • value: boolean

    Returns void

  • set needsPMREMUpdate(value: boolean): void
  • Indicates whether this texture should be processed by THREE.PMREMGenerator or not.

    -

    Parameters

    • value: boolean

    Returns void

    Only relevant for render target textures.

    -

    false

    -

Methods

  • Make copy of the texture

    -

    Returns this

    Note this is not a "deep copy", the image is shared

    -
  • Parameters

    Returns this

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, CubeTexture>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, CubeTexture>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of the listener that gets removed.

      -
    • listener: EventListener<{ dispose: {} }[T], T, CubeTexture>

      The listener function that gets removed.

      -

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/CubicInterpolant.html b/docs/classes/CubicInterpolant.html deleted file mode 100644 index 4cb615e..0000000 --- a/docs/classes/CubicInterpolant.html +++ /dev/null @@ -1,8 +0,0 @@ -CubicInterpolant | VFX-JS

Class CubicInterpolant

Hierarchy (View Summary)

Constructors

  • Parameters

    • parameterPositions: any
    • samplesValues: any
    • sampleSize: number
    • OptionalresultBuffer: any

    Returns CubicInterpolant

Properties

parameterPositions: any
sampleValues: any
valueSize: number
resultBuffer: any

Methods

  • Parameters

    • i1: number
    • t0: number
    • t: number
    • t1: number

    Returns any

  • Parameters

    • time: number

    Returns any

diff --git a/docs/classes/Cylindrical.html b/docs/classes/Cylindrical.html deleted file mode 100644 index c537f92..0000000 --- a/docs/classes/Cylindrical.html +++ /dev/null @@ -1,19 +0,0 @@ -Cylindrical | VFX-JS

Class Cylindrical

Constructors

  • Parameters

    • Optionalradius: number
    • Optionaltheta: number
    • Optionaly: number

    Returns Cylindrical

Properties

radius: number
1
-
- -
theta: number
0
-
- -
y: number
0
-
- -

Methods

  • Returns this

  • Parameters

    Returns this

  • Parameters

    • radius: number
    • theta: number
    • y: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    • x: number
    • y: number
    • z: number

    Returns this

diff --git a/docs/classes/Data3DTexture.html b/docs/classes/Data3DTexture.html deleted file mode 100644 index 8d1dabe..0000000 --- a/docs/classes/Data3DTexture.html +++ /dev/null @@ -1,239 +0,0 @@ -Data3DTexture | VFX-JS

Class Data3DTexture

Creates a three-dimensional texture from raw data, with parameters to divide it into width, height, and depth

-
This creates a[name] with repeating data, 0 to 255
// create a buffer with some data
const sizeX = 64;
const sizeY = 64;
const sizeZ = 64;
const data = new Uint8Array(sizeX * sizeY * sizeZ);
let i = 0;
for (let z = 0; z & lt; sizeZ; z++) {
for (let y = 0; y & lt; sizeY; y++) {
for (let x = 0; x & lt; sizeX; x++) {
data[i] = i % 256;
i++;
}
}
}
// use the buffer to create the texture
const texture = new THREE.Data3DTexture(data, sizeX, sizeY, sizeZ);
texture.needsUpdate = true; -
- -

Hierarchy (View Summary)

Constructors

  • Create a new instance of Data3DTexture

    -

    Parameters

    • Optionaldata: null | BufferSource

      ArrayBufferView of the texture. Default null.

      -
    • Optionalwidth: number

      Width of the texture. Default 1.

      -
    • Optionalheight: number

      Height of the texture. Default 1.

      -
    • Optionaldepth: number

      Depth of the texture. Default 1.

      -

    Returns Data3DTexture

Properties

DEFAULT_ANISOTROPY: number

The Global default value for .anisotropy.

-

1.

-
DEFAULT_IMAGE: any

The Global default value for .image.

-

null.

-
DEFAULT_MAPPING: Mapping

The Global default value for .mapping.

-

THREE.UVMapping

-
isData3DTexture: true

Read-only flag to check if a given object is of type Data3DTexture.

-

This is a constant value

-

true

-

THREE.NearestFilter

-

THREE.NearestFilter

-
wrapR: Wrapping

THREE.ClampToEdgeWrapping

-
flipY: boolean

false

-
generateMipmaps: boolean

false

-
unpackAlignment: number

1

-
isTexture: true

Read-only flag to check if a given object is of type Texture.

-

This is a constant value

-

true

-
id: number

Unique number for this Texture instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
source: Source

The data definition of a texture. A reference to the data source can be shared across textures.
-This is often useful in context of spritesheets where multiple textures render the same data
-but with different Texture transformations.

-
mipmaps:
    | undefined
    | CompressedTextureMipmap[]
    | CubeTexture[]
    | HTMLCanvasElement[]

Array of user-specified mipmaps

-

[]

-
mapping: AnyMapping

How the image is applied to the object.

-

All Texture types except THREE.CubeTexture expect the values be THREE.Mapping

-

value of THREE.Texture.DEFAULT_MAPPING

-
channel: number

Lets you select the uv attribute to map the texture to. 0 for uv, 1 for uv1, 2 for uv2 and 3 for
-uv3.

-
wrapS: Wrapping

This defines how the Texture is wrapped horizontally and corresponds to U in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
wrapT: Wrapping

This defines how the Texture is wrapped vertically and corresponds to V in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
anisotropy: number

The number of samples taken along the axis through the pixel that has the highest density of texels.

-

A higher value gives a less blurry result than a basic mipmap, at the cost of more Texture samples being used.

-

value of THREE.Texture.DEFAULT_ANISOTROPY. That is normally 1.

-

These define how elements of a 2D texture, or texels, are read by shaders.

-

All Texture types except THREE.DepthTexture and THREE.CompressedPixelFormat expect the values be THREE.PixelFormat

-
-

THREE.RGBAFormat.

-

This must correspond to the .format.

-

THREE.UnsignedByteType, is the type most used by Texture formats.

-
-

THREE.UnsignedByteType

-
internalFormat: null | PixelFormatGPU

The GPU Pixel Format allows the developer to specify how the data is going to be stored on the GPU.

-

The default value is obtained using a combination of .format and .type.

-
matrix: Matrix3

The uv-transform matrix for the texture.

-

When .matrixAutoUpdate property is true.
-Will be updated by the renderer from the properties:

- -

new THREE.Matrix3()

-
matrixAutoUpdate: boolean

Whether is to update the texture's uv-transform .matrix.

-

Set this to false if you are specifying the uv-transform matrix directly.

-

.matrix

-

true

-
offset: Vector2

How much a single repetition of the texture is offset from the beginning, in each direction U and V.

-

Typical range is 0.0 to 1.0.

-

new THREE.Vector2(0, 0)

-
repeat: Vector2

How many times the texture is repeated across the surface, in each direction U and V.

-

If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should
-also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect.

-
-

new THREE.Vector2( 1, 1 )

-
center: Vector2

The point around which rotation occurs.

-

A value of (0.5, 0.5) corresponds to the center of the texture.

-

new THREE.Vector2( 0, 0 ), lower left.

-
rotation: number

How much the texture is rotated around the center point, in radians.

-

Positive values are counter-clockwise.

-

0

-
premultiplyAlpha: boolean

If set to true, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

false

-
colorSpace: string

The Textures | {@link Texture constants} page for details of other color spaces.

-

Textures containing color data should be annotated with SRGBColorSpace THREE.SRGBColorSpace or
-LinearSRGBColorSpace THREE.LinearSRGBColorSpace.

-
-

THREE.NoColorSpace

-
isRenderTargetTexture: boolean

Indicates whether a texture belongs to a render target or not

-

false

-
userData: Record<string, any>

An object that can be used to store custom data about the texture.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-

Expects a Integer

-

0

-
pmremVersion: number

Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target
-textures)

-
onUpdate: () => void

A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).

-

Accessors

  • get image(): Texture3DImageData
  • Overridden with a record type holding data, width and height and depth.

    -

    Returns Texture3DImageData

  • set image(data: Texture3DImageData): void
  • An image object, typically created using the THREE.TextureLoader.load | TextureLoader.load() method.

    -

    Parameters

    Returns void

    This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    -
  • set needsUpdate(value: boolean): void
  • Set this to true to trigger an update next time the texture is used. Particularly important for setting the wrap mode.

    -

    Parameters

    • value: boolean

    Returns void

  • set needsPMREMUpdate(value: boolean): void
  • Indicates whether this texture should be processed by THREE.PMREMGenerator or not.

    -

    Parameters

    • value: boolean

    Returns void

    Only relevant for render target textures.

    -

    false

    -

Methods

  • Make copy of the texture

    -

    Returns this

    Note this is not a "deep copy", the image is shared

    -
  • Parameters

    Returns this

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Data3DTexture>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Data3DTexture>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of the listener that gets removed.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Data3DTexture>

      The listener function that gets removed.

      -

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/DataArrayTexture.html b/docs/classes/DataArrayTexture.html deleted file mode 100644 index a2227b4..0000000 --- a/docs/classes/DataArrayTexture.html +++ /dev/null @@ -1,246 +0,0 @@ -DataArrayTexture | VFX-JS

Class DataArrayTexture

Creates an array of textures directly from raw data, width and height and depth

-
This creates a[name] where each texture has a different color.
// create a buffer with color data
const width = 512;
const height = 512;
const depth = 100;
const size = width * height;
const data = new Uint8Array(4 * size * depth);
for (let i = 0; i & lt; depth; i++) {
const color = new THREE.Color(Math.random(), Math.random(), Math.random());
const r = Math.floor(color.r * 255);
const g = Math.floor(color.g * 255);
const b = Math.floor(color.b * 255);
for (let j = 0; j & lt; size; j++) {
const stride = (i * size + j) * 4;
data[stride] = r;
data[stride + 1] = g;
data[stride + 2] = b;
data[stride + 3] = 255;
}
}
// used the buffer to create a [name]
const texture = new THREE.DataArrayTexture(data, width, height, depth);
texture.needsUpdate = true; -
- -

Hierarchy (View Summary)

Constructors

  • This creates a new THREE.DataArrayTexture | DataArrayTexture object.

    -

    Parameters

    • Optionaldata: null | BufferSource

      ArrayBufferView of the texture. Default null.

      -
    • Optionalwidth: number

      Width of the texture. Default 1.

      -
    • Optionalheight: number

      Height of the texture. Default 1.

      -
    • Optionaldepth: number

      Depth of the texture. Default 1.

      -

    Returns DataArrayTexture

    The interpretation of the data depends on format and type.

    -

Properties

DEFAULT_ANISOTROPY: number

The Global default value for .anisotropy.

-

1.

-
DEFAULT_IMAGE: any

The Global default value for .image.

-

null.

-
DEFAULT_MAPPING: Mapping

The Global default value for .mapping.

-

THREE.UVMapping

-
isDataArrayTexture: true

Read-only flag to check if a given object is of type DataArrayTexture.

-

This is a constant value

-

true

-

THREE.NearestFilter

-

THREE.NearestFilter

-
wrapR: boolean

THREE.ClampToEdgeWrapping

-
generateMipmaps: boolean

false

-
flipY: boolean

false

-
unpackAlignment: number

1

-
layerUpdates: Set<number>

A set of all layers which need to be updated in the texture. See DataArrayTexture.addLayerUpdate.

-
isTexture: true

Read-only flag to check if a given object is of type Texture.

-

This is a constant value

-

true

-
id: number

Unique number for this Texture instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
source: Source

The data definition of a texture. A reference to the data source can be shared across textures.
-This is often useful in context of spritesheets where multiple textures render the same data
-but with different Texture transformations.

-
mipmaps:
    | undefined
    | CompressedTextureMipmap[]
    | CubeTexture[]
    | HTMLCanvasElement[]

Array of user-specified mipmaps

-

[]

-
mapping: AnyMapping

How the image is applied to the object.

-

All Texture types except THREE.CubeTexture expect the values be THREE.Mapping

-

value of THREE.Texture.DEFAULT_MAPPING

-
channel: number

Lets you select the uv attribute to map the texture to. 0 for uv, 1 for uv1, 2 for uv2 and 3 for
-uv3.

-
wrapS: Wrapping

This defines how the Texture is wrapped horizontally and corresponds to U in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
wrapT: Wrapping

This defines how the Texture is wrapped vertically and corresponds to V in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
anisotropy: number

The number of samples taken along the axis through the pixel that has the highest density of texels.

-

A higher value gives a less blurry result than a basic mipmap, at the cost of more Texture samples being used.

-

value of THREE.Texture.DEFAULT_ANISOTROPY. That is normally 1.

-

These define how elements of a 2D texture, or texels, are read by shaders.

-

All Texture types except THREE.DepthTexture and THREE.CompressedPixelFormat expect the values be THREE.PixelFormat

-
-

THREE.RGBAFormat.

-

This must correspond to the .format.

-

THREE.UnsignedByteType, is the type most used by Texture formats.

-
-

THREE.UnsignedByteType

-
internalFormat: null | PixelFormatGPU

The GPU Pixel Format allows the developer to specify how the data is going to be stored on the GPU.

-

The default value is obtained using a combination of .format and .type.

-
matrix: Matrix3

The uv-transform matrix for the texture.

-

When .matrixAutoUpdate property is true.
-Will be updated by the renderer from the properties:

- -

new THREE.Matrix3()

-
matrixAutoUpdate: boolean

Whether is to update the texture's uv-transform .matrix.

-

Set this to false if you are specifying the uv-transform matrix directly.

-

.matrix

-

true

-
offset: Vector2

How much a single repetition of the texture is offset from the beginning, in each direction U and V.

-

Typical range is 0.0 to 1.0.

-

new THREE.Vector2(0, 0)

-
repeat: Vector2

How many times the texture is repeated across the surface, in each direction U and V.

-

If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should
-also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect.

-
-

new THREE.Vector2( 1, 1 )

-
center: Vector2

The point around which rotation occurs.

-

A value of (0.5, 0.5) corresponds to the center of the texture.

-

new THREE.Vector2( 0, 0 ), lower left.

-
rotation: number

How much the texture is rotated around the center point, in radians.

-

Positive values are counter-clockwise.

-

0

-
premultiplyAlpha: boolean

If set to true, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

false

-
colorSpace: string

The Textures | {@link Texture constants} page for details of other color spaces.

-

Textures containing color data should be annotated with SRGBColorSpace THREE.SRGBColorSpace or
-LinearSRGBColorSpace THREE.LinearSRGBColorSpace.

-
-

THREE.NoColorSpace

-
isRenderTargetTexture: boolean

Indicates whether a texture belongs to a render target or not

-

false

-
userData: Record<string, any>

An object that can be used to store custom data about the texture.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-

Expects a Integer

-

0

-
pmremVersion: number

Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target
-textures)

-
onUpdate: () => void

A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).

-

Accessors

  • get image(): Texture3DImageData
  • Overridden with a record type holding data, width and height and depth.

    -

    Returns Texture3DImageData

  • set image(data: Texture3DImageData): void
  • An image object, typically created using the THREE.TextureLoader.load | TextureLoader.load() method.

    -

    Parameters

    Returns void

    This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    -
  • set needsUpdate(value: boolean): void
  • Set this to true to trigger an update next time the texture is used. Particularly important for setting the wrap mode.

    -

    Parameters

    • value: boolean

    Returns void

  • set needsPMREMUpdate(value: boolean): void
  • Indicates whether this texture should be processed by THREE.PMREMGenerator or not.

    -

    Parameters

    • value: boolean

    Returns void

    Only relevant for render target textures.

    -

    false

    -

Methods

  • Describes that a specific layer of the texture needs to be updated. Normally when Texture.needsUpdate is
    -set to true, the entire compressed texture array is sent to the GPU. Marking specific layers will only transmit
    -subsets of all mipmaps associated with a specific depth in the array which is often much more performant.

    -

    Parameters

    • layerIndex: number

    Returns void

  • Resets the layer updates registry. See DataArrayTexture.addLayerUpdate.

    -

    Returns void

  • Make copy of the texture

    -

    Returns this

    Note this is not a "deep copy", the image is shared

    -
  • Parameters

    Returns this

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, DataArrayTexture>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, DataArrayTexture>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/DepthBuffer.html b/docs/classes/DepthBuffer.html deleted file mode 100644 index 87ef13a..0000000 --- a/docs/classes/DepthBuffer.html +++ /dev/null @@ -1,10 +0,0 @@ -DepthBuffer | VFX-JS

Class DepthBuffer

Constructors

  • Returns DepthBuffer

Methods

  • Parameters

    • value: boolean

    Returns void

  • Returns boolean

  • Parameters

    • depthTest: boolean

    Returns void

  • Parameters

    • depthMask: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    • lock: boolean

    Returns void

  • Parameters

    • depth: number

    Returns void

  • Returns void

diff --git a/docs/classes/DepthTexture.html b/docs/classes/DepthTexture.html deleted file mode 100644 index 70e4ab7..0000000 --- a/docs/classes/DepthTexture.html +++ /dev/null @@ -1,241 +0,0 @@ -DepthTexture | VFX-JS

Class DepthTexture

This class can be used to automatically save the depth information of a rendering into a texture

-

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_ANISOTROPY: number

The Global default value for .anisotropy.

-

1.

-
DEFAULT_IMAGE: any

The Global default value for .image.

-

null.

-
DEFAULT_MAPPING: Mapping

The Global default value for .mapping.

-

THREE.UVMapping

-
isDepthTexture: true

Read-only flag to check if a given object is of type DepthTexture.

-

This is a constant value

-

true

-
flipY: boolean

false

-

THREE.NearestFilter

-

THREE.NearestFilter

-
generateMipmaps: boolean

Depth textures do not use mipmaps.

-

false

-

THREE.DepthFormat.

-

THREE.UnsignedByteType when .format === THREE.DepthFormat

-

THREE.UnsignedInt248Type when .format === THREE.DepthStencilFormat

-
compareFunction: null | TextureComparisonFunction

This is used to define the comparison function used when comparing texels in the depth texture to the value in
-the depth buffer. Default is null which means comparison is disabled.

-

See THREE.TextureComparisonFunction for functions.

-
isTexture: true

Read-only flag to check if a given object is of type Texture.

-

This is a constant value

-

true

-
id: number

Unique number for this Texture instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
source: Source

The data definition of a texture. A reference to the data source can be shared across textures.
-This is often useful in context of spritesheets where multiple textures render the same data
-but with different Texture transformations.

-
mipmaps:
    | undefined
    | CompressedTextureMipmap[]
    | CubeTexture[]
    | HTMLCanvasElement[]

Array of user-specified mipmaps

-

[]

-
mapping: AnyMapping

How the image is applied to the object.

-

All Texture types except THREE.CubeTexture expect the values be THREE.Mapping

-

value of THREE.Texture.DEFAULT_MAPPING

-
channel: number

Lets you select the uv attribute to map the texture to. 0 for uv, 1 for uv1, 2 for uv2 and 3 for
-uv3.

-
wrapS: Wrapping

This defines how the Texture is wrapped horizontally and corresponds to U in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
wrapT: Wrapping

This defines how the Texture is wrapped vertically and corresponds to V in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
anisotropy: number

The number of samples taken along the axis through the pixel that has the highest density of texels.

-

A higher value gives a less blurry result than a basic mipmap, at the cost of more Texture samples being used.

-

value of THREE.Texture.DEFAULT_ANISOTROPY. That is normally 1.

-
internalFormat: null | PixelFormatGPU

The GPU Pixel Format allows the developer to specify how the data is going to be stored on the GPU.

-

The default value is obtained using a combination of .format and .type.

-
matrix: Matrix3

The uv-transform matrix for the texture.

-

When .matrixAutoUpdate property is true.
-Will be updated by the renderer from the properties:

- -

new THREE.Matrix3()

-
matrixAutoUpdate: boolean

Whether is to update the texture's uv-transform .matrix.

-

Set this to false if you are specifying the uv-transform matrix directly.

-

.matrix

-

true

-
offset: Vector2

How much a single repetition of the texture is offset from the beginning, in each direction U and V.

-

Typical range is 0.0 to 1.0.

-

new THREE.Vector2(0, 0)

-
repeat: Vector2

How many times the texture is repeated across the surface, in each direction U and V.

-

If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should
-also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect.

-
-

new THREE.Vector2( 1, 1 )

-
center: Vector2

The point around which rotation occurs.

-

A value of (0.5, 0.5) corresponds to the center of the texture.

-

new THREE.Vector2( 0, 0 ), lower left.

-
rotation: number

How much the texture is rotated around the center point, in radians.

-

Positive values are counter-clockwise.

-

0

-
premultiplyAlpha: boolean

If set to true, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

false

-
unpackAlignment: number

Specifies the alignment requirements for the start of each pixel row in memory.

-

The allowable values are:

-
    -
  • 1 (byte-alignment)
  • -
  • 2 (rows aligned to even-numbered bytes)
  • -
  • 4 (word-alignment)
  • -
  • 8 (rows start on double-word boundaries).
  • -
-

glPixelStorei for more information.

-

4

-
colorSpace: string

The Textures | {@link Texture constants} page for details of other color spaces.

-

Textures containing color data should be annotated with SRGBColorSpace THREE.SRGBColorSpace or
-LinearSRGBColorSpace THREE.LinearSRGBColorSpace.

-
-

THREE.NoColorSpace

-
isRenderTargetTexture: boolean

Indicates whether a texture belongs to a render target or not

-

false

-
userData: Record<string, any>

An object that can be used to store custom data about the texture.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-

Expects a Integer

-

0

-
pmremVersion: number

Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target
-textures)

-
onUpdate: () => void

A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).

-

Accessors

  • get image(): { width: number; height: number }
  • Overridden with a record type holding width and height.

    -

    Returns { width: number; height: number }

  • set image(value: { width: number; height: number }): void
  • An image object, typically created using the THREE.TextureLoader.load | TextureLoader.load() method.

    -

    Parameters

    • value: { width: number; height: number }

    Returns void

    This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    -
  • set needsUpdate(value: boolean): void
  • Set this to true to trigger an update next time the texture is used. Particularly important for setting the wrap mode.

    -

    Parameters

    • value: boolean

    Returns void

  • set needsPMREMUpdate(value: boolean): void
  • Indicates whether this texture should be processed by THREE.PMREMGenerator or not.

    -

    Parameters

    • value: boolean

    Returns void

    Only relevant for render target textures.

    -

    false

    -

Methods

  • Make copy of the texture

    -

    Returns this

    Note this is not a "deep copy", the image is shared

    -
  • Parameters

    Returns this

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, DepthTexture>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, DepthTexture>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of the listener that gets removed.

      -
    • listener: EventListener<{ dispose: {} }[T], T, DepthTexture>

      The listener function that gets removed.

      -

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/DiscreteInterpolant.html b/docs/classes/DiscreteInterpolant.html deleted file mode 100644 index f2dfccb..0000000 --- a/docs/classes/DiscreteInterpolant.html +++ /dev/null @@ -1,8 +0,0 @@ -DiscreteInterpolant | VFX-JS

Class DiscreteInterpolant

Hierarchy (View Summary)

Constructors

  • Parameters

    • parameterPositions: any
    • samplesValues: any
    • sampleSize: number
    • OptionalresultBuffer: any

    Returns DiscreteInterpolant

Properties

parameterPositions: any
sampleValues: any
valueSize: number
resultBuffer: any

Methods

  • Parameters

    • i1: number
    • t0: number
    • t: number
    • t1: number

    Returns any

  • Parameters

    • time: number

    Returns any

diff --git a/docs/classes/Euler.html b/docs/classes/Euler.html deleted file mode 100644 index 40ce580..0000000 --- a/docs/classes/Euler.html +++ /dev/null @@ -1,33 +0,0 @@ -Euler | VFX-JS

Class Euler

Constructors

  • Parameters

    • Optionalx: number
    • Optionaly: number
    • Optionalz: number
    • Optionalorder: EulerOrder

    Returns Euler

Properties

DEFAULT_ORDER: "XYZ"
x: number
0
-
- -
y: number
0
-
- -
z: number
0
-
- -
order: EulerOrder
THREE.Euler.DEFAULT_ORDER
-
- -
isEuler: true
_onChangeCallback: () => void

Methods

  • Parameters

    • x: number
    • y: number
    • z: number
    • Optionalorder: EulerOrder

    Returns Euler

  • Returns this

  • Parameters

    Returns this

  • Parameters

    Returns boolean

  • Parameters

    • Optionalarray: [x: number, y: number, z: number, order?: EulerOrder]
    • Optionaloffset: number

    Returns EulerTuple

  • Parameters

    • callback: () => void

    Returns this

  • Returns Generator<string | number, void>

diff --git a/docs/classes/EventDispatcher.html b/docs/classes/EventDispatcher.html deleted file mode 100644 index 6a0ad3f..0000000 --- a/docs/classes/EventDispatcher.html +++ /dev/null @@ -1,27 +0,0 @@ -EventDispatcher | VFX-JS

Class EventDispatcher<TEventMap>

JavaScript events for custom objects

-
// Adding events to a custom object
class Car extends EventDispatcher {
start() {
this.dispatchEvent( { type: 'start', message: 'vroom vroom!' } );
}
};
// Using events with the custom object
const car = new Car();
car.addEventListener( 'start', ( event ) => {
alert( event.message );
} );
car.start(); -
- -

Type Parameters

  • TEventMap extends {} = {}

Hierarchy (View Summary)

Constructors

Methods

  • Fire an event type.

    -

    Type Parameters

    • T extends string

    Parameters

    Returns void

diff --git a/docs/classes/Fog.html b/docs/classes/Fog.html deleted file mode 100644 index a9d14d6..0000000 --- a/docs/classes/Fog.html +++ /dev/null @@ -1,37 +0,0 @@ -Fog | VFX-JS

Class Fog

This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.

-
const scene = new THREE.Scene();
scene.fog = new THREE.Fog(0xcccccc, 10, 15); -
- -

Constructors

Properties

Methods

Constructors

  • The color parameter is passed to the THREE.Color | Color constructor to set the color property

    -

    Parameters

    • color: ColorRepresentation
    • Optionalnear: number

      Expects a Float

      -
    • Optionalfar: number

      Expects a Float

      -

    Returns Fog

    Color can be a hexadecimal integer or a CSS-style string.

    -

Properties

isFog: true

Read-only flag to check if a given object is of type Fog.

-

This is a constant value

-

true

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
color: Color

Fog color.

-

If set to black, far away objects will be rendered black.

-
near: number

The minimum distance to start applying fog.

-

Objects that are less than near units from the active camera won't be affected by fog.

-

1

-
far: number

The maximum distance at which fog stops being calculated and applied.

-

Objects that are more than far units away from the active camera won't be affected by fog.

-

1000

-

Methods

  • Returns a new Fog instance with the same parameters as this one.

    -

    Returns Fog

  • Return Fog data in JSON format.

    -

    Returns FogJSON

diff --git a/docs/classes/FogExp2.html b/docs/classes/FogExp2.html deleted file mode 100644 index e3537e5..0000000 --- a/docs/classes/FogExp2.html +++ /dev/null @@ -1,33 +0,0 @@ -FogExp2 | VFX-JS

Class FogExp2

This class contains the parameters that define exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.

-
const scene = new THREE.Scene();
scene.fog = new THREE.FogExp2(0xcccccc, 0.002); -
- -

Constructors

Properties

Methods

Constructors

  • The color parameter is passed to the THREE.Color | Color constructor to set the color property

    -

    Parameters

    Returns FogExp2

    Color can be a hexadecimal integer or a CSS-style string.

    -

Properties

isFogExp2: true

Read-only flag to check if a given object is of type FogExp2.

-

This is a constant value

-

true

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
color: Color

Fog color.

-

If set to black, far away objects will be rendered black.

-
density: number

Defines how fast the fog will grow dense.

-

0.00025

-

Expects a Float

-

Methods

  • Returns a new FogExp2 instance with the same parameters as this one.

    -

    Returns FogExp2

diff --git a/docs/classes/Frustum.html b/docs/classes/Frustum.html deleted file mode 100644 index fb63ec4..0000000 --- a/docs/classes/Frustum.html +++ /dev/null @@ -1,14 +0,0 @@ -Frustum | VFX-JS

Class Frustum

Frustums are used to determine what is inside the camera's field of view. They help speed up the rendering process.

-

Constructors

Properties

planes: Plane[]

Array of 6 vectors.

-

Methods

  • Returns this

  • Parameters

    Returns this

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

diff --git a/docs/classes/GLBufferAttribute.html b/docs/classes/GLBufferAttribute.html deleted file mode 100644 index 5e81674..0000000 --- a/docs/classes/GLBufferAttribute.html +++ /dev/null @@ -1,73 +0,0 @@ -GLBufferAttribute | VFX-JS

Class GLBufferAttribute

This buffer attribute class does not construct a VBO.
-Instead, it uses whatever VBO is passed in constructor and can later be altered via the .buffer property.

-

It is required to pass additional params alongside the VBO
-Those are: the GL context, the GL data type, the number of components per vertex, the number of bytes per component, and the number of vertices.

-

Constructors

  • This creates a new GLBufferAttribute object.

    -

    Parameters

    Returns GLBufferAttribute

Properties

isGLBufferAttribute: true

Read-only flag to check if a given object is of type GLBufferAttribute.

-

This is a constant value

-

true

-
name: string

Optional name for this attribute instance.

-

""

-
buffer: WebGLBuffer

The current WebGLBuffer instance.

-
type: number

A WebGL Data Type describing the underlying VBO contents.

-
    -
  • gl.BYTE: 0x1400
  • -
  • gl.UNSIGNED_BYTE: 0x1401
  • -
  • gl.SHORT: 0x1402
  • -
  • gl.UNSIGNED_SHORT: 0x1403
  • -
  • gl.INT: 0x1404
  • -
  • gl.UNSIGNED_INT: 0x1405
  • -
  • gl.FLOAT: 0x1406
  • -
-

Set this property together with .elementSize. The recommended way is using the .setType() method.

-
itemSize: number

How many values make up each item (vertex).

-

The number of values of the array that should be associated with a particular vertex.
-For instance, if this attribute is storing a 3-component vector (such as a position, normal, or color), then itemSize should be 3.

-
elementSize: 1 | 2 | 4

Stores the corresponding size in bytes for the current .type property value.

-

The corresponding size (in bytes) for the given "type" param.

-
    -
  • gl.BYTE: 1
  • -
  • gl.UNSIGNED_BYTE: 1
  • -
  • gl.SHORT: 2
  • -
  • gl.UNSIGNED_SHORT: 2
  • -
  • gl.INT: 4
  • -
  • gl.UNSIGNED_INT: 4
  • -
  • gl.FLOAT: 4
  • -
-

Set this property together with .type. The recommended way is using the .setType method.

-

constructor`` for a list of known type sizes. @remarks Expects a 1, 2or4`

-
count: number

The expected number of vertices in VBO.

-

Expects a Integer

-
version: number

A version number, incremented every time the needsUpdate property is set to true.

-

Expects a Integer

-

Accessors

  • set needsUpdate(value: boolean): void
  • Setting this to true increments .version.

    -

    Parameters

    • value: boolean

    Returns void

    set-only property.

    -

Methods

  • Sets the .buffer property.

    -

    Parameters

    Returns this

  • Sets the both type and elementSize properties.

    -

    Parameters

    • type: number
    • elementSize: 1 | 2 | 4

    Returns this

  • Sets the itemSize property.

    -

    Parameters

    • itemSize: number

    Returns this

  • Sets the count property.

    -

    Parameters

    • count: number

    Returns this

diff --git a/docs/classes/Group.html b/docs/classes/Group.html deleted file mode 100644 index 97f4744..0000000 --- a/docs/classes/Group.html +++ /dev/null @@ -1,334 +0,0 @@ -Group | VFX-JS

Class Group<TEventMap>

Its purpose is to make working with groups of objects syntactically clearer.

-

This is almost identical to an Object3D

-
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({
color: 0x00ff00
});
const cubeA = new THREE.Mesh(geometry, material);
cubeA.position.set(100, 100, 0);
const cubeB = new THREE.Mesh(geometry, material);
cubeB.position.set(-100, -100, 0);
//create a {@link Group} and add the two cubes
//These cubes can now be rotated / scaled etc as a {@link Group} * const {@link Group} = new THREE.Group();
group.add(cubeA);
group.add(cubeB);
scene.add(group); -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isGroup: true

Read-only flag to check if a given object is of type Group.

-

This is a constant value

-

true

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
type: string

A Read-only string to check this object type.

-

This can be used to find a specific type of Object3D in a scene.
-Sub-classes will update this value.

-

Object3D

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
  • Fire an event type.

    -

    Type Parameters

    • T extends string

    Parameters

    Returns void

diff --git a/docs/classes/IndirectStorageBufferAttribute.html b/docs/classes/IndirectStorageBufferAttribute.html deleted file mode 100644 index 9cd4fd9..0000000 --- a/docs/classes/IndirectStorageBufferAttribute.html +++ /dev/null @@ -1,150 +0,0 @@ -IndirectStorageBufferAttribute | VFX-JS

Class IndirectStorageBufferAttribute

This class stores data for an attribute (such as vertex positions, face indices, normals, colors, UVs, and any custom attributes )
-associated with a THREE.BufferGeometry | BufferGeometry, which allows for more efficient passing of data to the GPU

-

When working with vector-like data, the .fromBufferAttribute( attribute, index ) helper methods on
-THREE.Vector2.fromBufferAttribute | Vector2,
-THREE.Vector3.fromBufferAttribute | Vector3,
-THREE.Vector4.fromBufferAttribute | Vector4, and
-THREE.Color.fromBufferAttribute | Color classes may be helpful.

-
-

Hierarchy (View Summary)

  • default
    • IndirectStorageBufferAttribute

Constructors

Properties

isIndirectStorageBufferAttribute: true
isStorageBufferAttribute: true
name: string

Optional name for this attribute instance.

-
''
-
- -
array: TypedArray

The TypedArray holding data stored in the buffer.

-

TypedArray

-
itemSize: number

The length of vectors that are being stored in the array.

-

Expects a Integer

-
usage: Usage

Defines the intended usage pattern of the data store for optimization purposes.
-Corresponds to the usage parameter of
-WebGLRenderingContext.bufferData.

-

After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

-
-

THREE.StaticDrawUsage | THREE.StaticDrawUsage.

-

Configures the bound GPU type for use in shaders. Either FloatType or IntType, default is FloatType.

-

Note: this only has an effect for integer arrays and is not configurable for float arrays. For lower precision
-float types, see https://threejs.org/docs/#api/en/core/bufferAttributeTypes/BufferAttributeTypes.

-
updateRanges: { start: number; count: number }[]

This can be used to only update some components of stored vectors (for example, just the component related to
-color). Use the .addUpdateRange function to add ranges to this array.

-

Type declaration

  • start: number

    Position at which to start update.

    -
  • count: number

    The number of components to update.

    -
version: number

A version number, incremented every time the needsUpdate property is set to true.

-

Expects a Integer

-

0

-
normalized: boolean

Indicates how the underlying data in the buffer maps to the values in the GLSL shader code.

-

constructor above for details.

-

false

-
count: number

Represents the number of items this buffer attribute stores. It is internally computed by dividing the
-array's length by the itemSize. Read-only
-property.

-
isBufferAttribute: true

Read-only flag to check if a given object is of type BufferAttribute.

-

This is a constant value

-

true

-
onUploadCallback: () => void

A callback function that is executed after the Renderer has transferred the attribute array data to the GPU.

-

Accessors

  • set needsUpdate(value: boolean): void
  • Flag to indicate that this attribute has changed and should be re-sent to the GPU.
    -Set this to true when you modify the value of the array.

    -

    Parameters

    • value: boolean

    Returns void

    Setting this to true also increments the version.

    -

Methods

  • Sets the value of the onUploadCallback property.

    -

    Parameters

    • callback: () => void

      function that is executed after the Renderer has transferred the attribute array data to the GPU.

      -

    Returns this

    -
  • Set usage

    -

    Parameters

    Returns this

    After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

    -
    -
  • Adds a range of data in the data array to be updated on the GPU. Adds an object describing the range to the
    -.updateRanges array.

    -

    Parameters

    • start: number
    • count: number

    Returns void

  • Clears the .updateRanges array.

    -

    Returns void

  • Copy a vector from bufferAttribute[index2] to array[index1].

    -

    Parameters

    Returns this

  • Copy the array given here (which can be a normal array or TypedArray) into array.

    -

    Parameters

    Returns this

    TypedArray.set for notes on requirements if copying a TypedArray.

    -
  • Applies matrix m to every Vector3 element of this BufferAttribute, interpreting the elements as a direction vectors.

    -

    Parameters

    Returns this

  • Returns the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number

    Returns number

  • Sets the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number
    • value: number

    Returns void

  • Returns the x component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the x component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

    Returns this

  • Returns the y component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the y component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • y: number

    Returns this

  • Returns the z component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the z component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Returns the w component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the w component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Sets the x and y components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number

    Returns this

  • Sets the x, y and z components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number
    • z: number

    Returns this

  • Sets the x, y, z and w components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number
    • z: number
    • w: number

    Returns this

diff --git a/docs/classes/InterleavedBuffer.html b/docs/classes/InterleavedBuffer.html deleted file mode 100644 index 9a6be0d..0000000 --- a/docs/classes/InterleavedBuffer.html +++ /dev/null @@ -1,89 +0,0 @@ -InterleavedBuffer | VFX-JS

Class InterleavedBuffer

"Interleaved" means that multiple attributes, possibly of different types, (e.g., position, normal, uv, color) are packed into a single array buffer.
-An introduction into interleaved arrays can be found here: Interleaved array basics

-

Constructors

Properties

isInterleavedBuffer: true
array: TypedArray

A TypedArray with a shared buffer. Stores the geometry data.

-
stride: number

The number of TypedArray elements per vertex.

-

Expects a Integer

-
usage: Usage

Defines the intended usage pattern of the data store for optimization purposes.
-Corresponds to the usage parameter of
-WebGLRenderingContext.bufferData.

-

After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

-
-

THREE.StaticDrawUsage | THREE.StaticDrawUsage.

-
updateRanges: { start: number; count: number }[]

This can be used to only update some components of stored data. Use the .addUpdateRange function to add
-ranges to this array.

-

Type declaration

  • start: number

    Position at which to start update.

    -
  • count: number

    The number of components to update.

    -
version: number

A version number, incremented every time the needsUpdate property is set to true.

-

Expects a Integer

-

0

-
count: number

Gives the total number of elements in the array.

-

Expects a Integer

-
0
-
- -
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
onUploadCallback: () => void

A callback function that is executed after the Renderer has transferred the geometry data to the GPU.

-

Accessors

  • set needsUpdate(value: boolean): void
  • Flag to indicate that this attribute has changed and should be re-sent to the GPU.
    -Set this to true when you modify the value of the array.

    -

    Parameters

    • value: boolean

    Returns void

    Setting this to true also increments the version.

    -

Methods

  • Sets the value of the onUploadCallback property.

    -

    Parameters

    • callback: () => void

      function that is executed after the Renderer has transferred the geometry data to the GPU.

      -

    Returns this

  • Calls TypedArray.set( value, offset )
    -on the array.

    -

    Parameters

    • value: ArrayLike<number>

      The source TypedArray.

      -
    • offset: number

      index of the array at which to start copying. Expects a Integer. Default 0.

      -

    Returns this

    RangeError When offset is negative or is too large.

    -
  • Set usage

    -

    Parameters

    Returns this

    After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

    -
    -
  • Adds a range of data in the data array to be updated on the GPU. Adds an object describing the range to the
    -.updateRanges array.

    -

    Parameters

    • start: number
    • count: number

    Returns void

  • Clears the .updateRanges array.

    -

    Returns void

  • Creates a clone of this InterleavedBuffer.

    -

    Parameters

    • data: {}

      This object holds shared array buffers required for properly cloning geometries with interleaved attributes.

      -

    Returns InterleavedBuffer

  • Serializes this InterleavedBuffer.
    -Converting to JSON Geometry format v4,

    -

    Parameters

    • data: {}

      This object holds shared array buffers required for properly serializing geometries with interleaved attributes.

      -

    Returns { uuid: string; buffer: string; type: string; stride: number }

diff --git a/docs/classes/InterleavedBufferAttribute.html b/docs/classes/InterleavedBufferAttribute.html deleted file mode 100644 index 7f51c0d..0000000 --- a/docs/classes/InterleavedBufferAttribute.html +++ /dev/null @@ -1,97 +0,0 @@ -InterleavedBufferAttribute | VFX-JS

Class InterleavedBufferAttribute

Constructors

  • Create a new instance of THREE.InterleavedBufferAttribute | InterleavedBufferAttribute.

    -

    Parameters

    • interleavedBuffer: InterleavedBuffer
    • itemSize: number
    • offset: number
    • Optionalnormalized: boolean

      Default false.

      -

    Returns InterleavedBufferAttribute

Properties

name: string

Optional name for this attribute instance.

-

''

-

The InterleavedBuffer instance passed in the constructor.

-
itemSize: number

How many values make up each item.

-

Expects a Integer

-
offset: number

The offset in the underlying array buffer where an item starts.

-

Expects a Integer

-
normalized: boolean

false

-
isInterleavedBufferAttribute: true

Read-only flag to check if a given object is of type InterleavedBufferAttribute.

-

This is a constant value

-

true

-

Accessors

  • get count(): number
  • The value of .data.count.
    -If the buffer is storing a 3-component item (such as a position, normal, or color), then this will count the number of such items stored.

    -

    Returns number

    get-only property.

    -
  • get array(): TypedArray
  • The value of data.array.

    -

    Returns TypedArray

    get-only property.

    -
  • set needsUpdate(value: boolean): void
  • Flag to indicate that the .data (InterleavedBuffer) attribute has changed and should be re-sent to the GPU.

    -

    Parameters

    • value: boolean

    Returns void

    Setting this to have the same result of setting true also increments the InterleavedBuffer.needsUpdate of .data.

    -

Methods

  • Applies matrix m to every Vector3 element of this InterleavedBufferAttribute.

    -

    Parameters

    Returns this

  • Applies normal matrix m to every Vector3 element of this InterleavedBufferAttribute.

    -

    Parameters

    Returns this

  • Applies matrix m to every Vector3 element of this InterleavedBufferAttribute, interpreting the elements as a direction vectors.

    -

    Parameters

    Returns this

  • Returns the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number

    Returns number

  • Sets the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number
    • value: number

    Returns this

  • Returns the x component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the x component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

      Expects a Float

      -

    Returns this

  • Returns the y component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the y component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • y: number

      Expects a Float

      -

    Returns this

  • Returns the z component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the z component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

      Expects a Float

      -

    Returns this

  • Returns the w component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the w component of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Sets the x and y components of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -

    Returns this

  • Sets the x, y and z components of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns this

  • Sets the x, y, z and w components of the item at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -
    • w: number

      Expects a Float

      -

    Returns this

  • Creates a clone of this InterleavedBufferAttribute.

    -

    Parameters

    • Optionaldata: {}

      This object holds shared array buffers required for properly cloning geometries with interleaved attributes.

      -

    Returns BufferAttribute

  • Serializes this InterleavedBufferAttribute.
    -Converting to JSON Geometry format v4,

    -

    Parameters

    • Optionaldata: {}

      This object holds shared array buffers required for properly serializing geometries with interleaved attributes.

      -

    Returns {
        isInterleavedBufferAttribute: true;
        itemSize: number;
        data: string;
        offset: number;
        normalized: boolean;
    }

diff --git a/docs/classes/Interpolant.html b/docs/classes/Interpolant.html deleted file mode 100644 index a1b6ff7..0000000 --- a/docs/classes/Interpolant.html +++ /dev/null @@ -1,7 +0,0 @@ -Interpolant | VFX-JS

Class InterpolantAbstract

Hierarchy (View Summary)

Constructors

  • Parameters

    • parameterPositions: any
    • sampleValues: any
    • sampleSize: number
    • OptionalresultBuffer: any

    Returns Interpolant

Properties

parameterPositions: any
sampleValues: any
valueSize: number
resultBuffer: any

Methods

  • Parameters

    • time: number

    Returns any

diff --git a/docs/classes/KeyframeTrack.html b/docs/classes/KeyframeTrack.html deleted file mode 100644 index c8b59e7..0000000 --- a/docs/classes/KeyframeTrack.html +++ /dev/null @@ -1,26 +0,0 @@ -KeyframeTrack | VFX-JS

Class KeyframeTrack

Constructors

Properties

name: string
times: Float32Array
values: Float32Array
ValueTypeName: string
TimeBufferType: Float32Array
ValueBufferType: Float32Array
DefaultInterpolation: InterpolationModes
THREE.InterpolateLinear
-
- -

Methods

  • Parameters

    • result: any

    Returns LinearInterpolant

  • Parameters

    • result: any

    Returns CubicInterpolant

  • Returns Interpolant

  • Returns number

  • Parameters

    • timeOffset: number

    Returns KeyframeTrack

  • Parameters

    • timeScale: number

    Returns KeyframeTrack

  • Parameters

    • startTime: number
    • endTime: number

    Returns KeyframeTrack

  • Returns boolean

  • Returns this

diff --git a/docs/classes/Layers.html b/docs/classes/Layers.html deleted file mode 100644 index 19cd081..0000000 --- a/docs/classes/Layers.html +++ /dev/null @@ -1,39 +0,0 @@ -Layers | VFX-JS

Class Layers

A THREE.Layers | Layers object assigns an THREE.Object3D | Object3D to 1 or more of 32 layers numbered 0 to 31 - internally the
-layers are stored as a bit mask, and
-by default all Object3Ds are a member of layer 0.

-

This can be used to control visibility - an object must share a layer with a camera to be visible when that camera's view is rendered.

-

Constructors

Properties

Methods

Constructors

  • Create a new Layers object, with membership initially set to layer 0.

    -

    Returns Layers

Properties

mask: number

A bit mask storing which of the 32 layers this layers object is currently a member of.

-

1 | 0

-

Expects a Integer

-

Methods

  • Set membership to layer, and remove membership all other layers.

    -

    Parameters

    • layer: number

      An integer from 0 to 31.

      -

    Returns void

  • Add membership of this layer.

    -

    Parameters

    • layer: number

      An integer from 0 to 31.

      -

    Returns void

  • Add membership to all layers.

    -

    Returns void

  • Toggle membership of layer.

    -

    Parameters

    • layer: number

      An integer from 0 to 31.

      -

    Returns void

  • Remove membership of this layer.

    -

    Parameters

    • layer: number

      An integer from 0 to 31.

      -

    Returns void

  • Remove membership from all layers.

    -

    Returns void

  • Returns true if this and the passed layers object have at least one layer in common.

    -

    Parameters

    • layers: Layers

      A Layers object

      -

    Returns boolean

  • Returns true if the given layer is enabled.

    -

    Parameters

    • layer: number

      An integer from 0 to 31.

      -

    Returns boolean

diff --git a/docs/classes/Light.html b/docs/classes/Light.html deleted file mode 100644 index d72aac2..0000000 --- a/docs/classes/Light.html +++ /dev/null @@ -1,339 +0,0 @@ -Light | VFX-JS

Class Light<TShadowSupport>Abstract

Abstract base class for lights.

-

All other light types inherit the properties and methods described here.

-

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isLight: true

Read-only flag to check if a given object is of type HemisphereLight.

-

This is a constant value

-

true

-
type: string

A Read-only string to check if this object type.

-

Sub-classes will update this value.

-

Light

-
color: Color

Color of the light. \

-

new THREE.Color(0xffffff) (white).

-
intensity: number

The light's intensity, or strength.
-The units of intensity depend on the type of light.

-

1

-

A THREE.LightShadow | LightShadow used to calculate shadows for this light.

-

Available only on Light's that support shadows.

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • Copies value of all the properties from the source to this instance.

    -

    Parameters

    • source: this
    • Optionalrecursive: boolean

    Returns this

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

diff --git a/docs/classes/LightShadow.html b/docs/classes/LightShadow.html deleted file mode 100644 index 56e4137..0000000 --- a/docs/classes/LightShadow.html +++ /dev/null @@ -1,85 +0,0 @@ -LightShadow | VFX-JS

Class LightShadow<TCamera>

Serves as a base class for the other shadow classes.

-

Type Parameters

Constructors

Properties

camera: TCamera

The light's view of the world.

-

This is used to generate a depth map of the scene; objects behind other objects from the light's perspective will be in shadow.

-
intensity: number

The intensity of the shadow. The default is 1. Valid values are in the range [0, 1].

-
bias: number

Shadow map bias, how much to add or subtract from the normalized depth when deciding whether a surface is in shadow.

-

The Very tiny adjustments here (in the order of 0.0001) may help reduce artifacts in shadows.

-

Expects a Float

-

0

-
normalBias: number

Defines how much the position used to query the shadow map is offset along the object normal.

-

The Increasing this value can be used to reduce shadow acne especially in large scenes where light shines onto geometry at a shallow angle.

-

The cost is that shadows may appear distorted.

-

Expects a Float

-

0

-
radius: number

Setting this to values greater than 1 will blur the edges of the shadow.toi

-

High values will cause unwanted banding effects in the shadows - a greater mapSize will allow for a higher value to be used here before these effects become visible. @remark If {@link THREE.WebGLRenderer.shadowMap.type | WebGLRenderer.shadowMap.type is set to PCFSoftShadowMap,
-radius has no effect and it is recommended to increase softness by decreasing mapSize instead.

-

Note that this has no effect if the THREE.WebGLRenderer.shadowMap | WebGLRenderer.shadowMap.THREE.WebGLShadowMap.type | type
-is set to THREE.BasicShadowMap | BasicShadowMap.

-

Expects a Float

-

1

-
blurSamples: number

The amount of samples to use when blurring a VSM shadow map.

-

Expects a Integer

-

8

-
mapSize: Vector2

A THREE.Vector2 | Vector2 defining the width and height of the shadow map.

-

Higher values give better quality shadows at the cost of computation time.

-

new THREE.Vector2(512, 512)

-
map: null | WebGLRenderTarget

The depth map generated using the internal camera; a location beyond a pixel's depth is in shadow. Computed internally during rendering.

-
null
-
- -
mapPass: null | WebGLRenderTarget

The distribution map generated using the internal camera; an occlusion is calculated based on the distribution of depths. Computed internally during rendering.

-
null
-
- -
matrix: Matrix4

Model to shadow camera space, to compute location and depth in shadow map.
-Stored in a Matrix4.

-

This is computed internally during rendering.

-
new THREE.Matrix4()
-
- -
autoUpdate: boolean

Enables automatic updates of the light's shadow. If you do not require dynamic lighting / shadows, you may set this to false.

-

true

-
needsUpdate: boolean

When set to true, shadow maps will be updated in the next render call.
-If you have set autoUpdate to false, you will need to set this property to true and then make a render call to update the light's shadow.

-

false

-

Methods

  • Used internally by the renderer to get the number of viewports that need to be rendered for this shadow.

    -

    Returns number

  • Copies value of all the properties from the {@link LightShadow | source} to this Light.

    -

    Parameters

    Returns this

  • Creates a new LightShadow with the same properties as this one.

    -

    Parameters

    • Optionalrecursive: boolean

    Returns this

  • Gets the shadow cameras frustum

    -

    Returns Frustum

    Used internally by the renderer to cull objects.

    -
  • Update the matrices for the camera and shadow, used internally by the renderer.

    -

    Parameters

    • light: Light

      The light for which the shadow is being rendered.

      -

    Returns void

  • Parameters

    • viewportIndex: number

    Returns Vector4

  • Used internally by the renderer to extend the shadow map to contain all viewports

    -

    Returns Vector2

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
diff --git a/docs/classes/Line3.html b/docs/classes/Line3.html deleted file mode 100644 index 72f62ba..0000000 --- a/docs/classes/Line3.html +++ /dev/null @@ -1,22 +0,0 @@ -Line3 | VFX-JS

Class Line3

Constructors

Properties

start: Vector3
new THREE.Vector3()
-
- -
end: Vector3
new THREE.Vector3()
-
- -

Methods

  • Returns this

  • Parameters

    Returns this

  • Returns number

  • Returns number

  • Parameters

    Returns Vector3

  • Parameters

    • point: Vector3
    • OptionalclampToLine: boolean

    Returns number

  • Parameters

    Returns Vector3

  • Parameters

    Returns Line3

  • Parameters

    Returns boolean

diff --git a/docs/classes/LinearInterpolant.html b/docs/classes/LinearInterpolant.html deleted file mode 100644 index a88803c..0000000 --- a/docs/classes/LinearInterpolant.html +++ /dev/null @@ -1,8 +0,0 @@ -LinearInterpolant | VFX-JS

Class LinearInterpolant

Hierarchy (View Summary)

Constructors

  • Parameters

    • parameterPositions: any
    • samplesValues: any
    • sampleSize: number
    • OptionalresultBuffer: any

    Returns LinearInterpolant

Properties

parameterPositions: any
sampleValues: any
valueSize: number
resultBuffer: any

Methods

  • Parameters

    • i1: number
    • t0: number
    • t: number
    • t1: number

    Returns any

  • Parameters

    • time: number

    Returns any

diff --git a/docs/classes/Loader.html b/docs/classes/Loader.html deleted file mode 100644 index 201dfc8..0000000 --- a/docs/classes/Loader.html +++ /dev/null @@ -1,32 +0,0 @@ -Loader | VFX-JS

Class Loader<TData, TUrl>

Base class for implementing loaders.

-

Type Parameters

  • TData = unknown
  • TUrl = string

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_MATERIAL_NAME: string
crossOrigin: string
'anonymous'
-
- -
withCredentials: boolean
false
-
- -
path: string
''
-
- -
resourcePath: string
''
-
- -
requestHeader: { [header: string]: string }
{}
-
- -

Methods

  • Parameters

    • url: TUrl
    • onLoad: (data: TData) => void
    • OptionalonProgress: (event: ProgressEvent) => void
    • OptionalonError: (err: unknown) => void

    Returns void

  • Parameters

    Returns Promise<TData>

  • Parameters

    • crossOrigin: string

    Returns this

  • Parameters

    • value: boolean

    Returns this

  • Parameters

    • path: string

    Returns this

  • Parameters

    • resourcePath: string

    Returns this

  • Parameters

    • requestHeader: { [header: string]: string }

    Returns this

diff --git a/docs/classes/LoadingManager.html b/docs/classes/LoadingManager.html deleted file mode 100644 index e363d27..0000000 --- a/docs/classes/LoadingManager.html +++ /dev/null @@ -1,36 +0,0 @@ -LoadingManager | VFX-JS

Class LoadingManager

Handles and keeps track of loaded and pending data.

-

Constructors

  • Parameters

    • OptionalonLoad: () => void
    • OptionalonProgress: (url: string, loaded: number, total: number) => void
    • OptionalonError: (url: string) => void

    Returns LoadingManager

Properties

onStart?: (url: string, loaded: number, total: number) => void

Will be called when loading of an item starts.

-

Type declaration

    • (url: string, loaded: number, total: number): void
    • Parameters

      • url: string

        The url of the item that started loading.

        -
      • loaded: number

        The number of items already loaded so far.

        -
      • total: number

        The total amount of items to be loaded.

        -

      Returns void

onLoad: () => void

Will be called when all items finish loading.
-The default is a function with empty body.

-
onProgress: (url: string, loaded: number, total: number) => void

Will be called for each loaded item.
-The default is a function with empty body.

-

Type declaration

    • (url: string, loaded: number, total: number): void
    • Parameters

      • url: string

        The url of the item just loaded.

        -
      • loaded: number

        The number of items already loaded so far.

        -
      • total: number

        The total amount of items to be loaded.

        -

      Returns void

onError: (url: string) => void

Will be called when item loading fails.
-The default is a function with empty body.

-

Type declaration

    • (url: string): void
    • Parameters

      • url: string

        The url of the item that errored.

        -

      Returns void

Methods

  • If provided, the callback will be passed each resource URL before a request is sent.
    -The callback may return the original URL, or a new URL to override loading behavior.
    -This behavior can be used to load assets from .ZIP files, drag-and-drop APIs, and Data URIs.

    -

    Parameters

    • Optionalcallback: (url: string) => string

      URL modifier callback. Called with url argument, and must return resolvedURL.

      -

    Returns this

  • Given a URL, uses the URL modifier callback (if any) and returns a resolved URL.
    -If no URL modifier is set, returns the original URL.

    -

    Parameters

    • url: string

      the url to load

      -

    Returns string

  • Parameters

    • url: string

    Returns void

  • Parameters

    • url: string

    Returns void

  • Parameters

    • url: string

    Returns void

  • Parameters

    Returns this

  • Parameters

    • regex: RegExp

    Returns this

  • Parameters

    • file: string

    Returns null | Loader

diff --git a/docs/classes/Material.html b/docs/classes/Material.html deleted file mode 100644 index 8851129..0000000 --- a/docs/classes/Material.html +++ /dev/null @@ -1,310 +0,0 @@ -Material | VFX-JS

Class Material

Materials describe the appearance of objects. They are defined in a (mostly) renderer-independent way, so you don't have to rewrite materials if you decide to use a different renderer.

-

Hierarchy (View Summary)

Constructors

Properties

isMaterial: true

Read-only flag to check if a given object is of type Material.

-

This is a constant value

-

true

-
type: string

Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a
-scene.

-
alphaHash: boolean

Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material
-will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise,
-but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the
-resulting noise.

-
alphaToCoverage: boolean

Enables alpha to coverage. Can only be used with MSAA-enabled rendering contexts (meaning when the renderer was
-created with antialias parameter set to true). Enabling this will smooth aliasing on clip plane edges and
-alphaTest-clipped edges.

-
false
-
- -
blendAlpha: number

Represents the alpha value of the constant blend color. This property has only an effect when using custom
-blending with ConstantAlphaFactor or OneMinusConstantAlphaFactor.

-
0
-
- -
blendColor: Color

Represent the RGB values of the constant blend color. This property has only an effect when using custom
-blending with ConstantColorFactor or OneMinusConstantColorFactor.

-
0x000000
-
- -

Blending destination. It's one of the blending mode constants defined in Three.js. Default is OneMinusSrcAlphaFactor.

-
THREE.OneMinusSrcAlphaFactor
-
- -
blendDstAlpha: null | number

The tranparency of the .blendDst. Default is null.

-
null
-
- -
blendEquation: BlendingEquation

Blending equation to use when applying blending. It's one of the constants defined in Three.js. Default is AddEquation.

-
THREE.AddEquation
-
- -
blendEquationAlpha: null | number

The tranparency of the .blendEquation. Default is null.

-
null
-
- -
blending: Blending

Which blending to use when displaying objects with this material. Default is NormalBlending.

-
THREE.NormalBlending
-
- -
blendSrc:
    | 200
    | 201
    | 202
    | 203
    | 204
    | 205
    | 206
    | 207
    | 208
    | 209
    | 210
    | 211
    | 212
    | 213
    | 214

Blending source. It's one of the blending mode constants defined in Three.js. Default is SrcAlphaFactor.

-
THREE.SrcAlphaFactor
-
- -
blendSrcAlpha: null | number

The tranparency of the .blendSrc. Default is null.

-
null
-
- -
clipIntersection: boolean

Changes the behavior of clipping planes so that only their intersection is clipped, rather than their union. Default is false.

-
false
-
- -
clippingPlanes: null | Plane[]

User-defined clipping planes specified as THREE.Plane objects in world space.
-These planes apply to the objects this material is attached to.
-Points in space whose signed distance to the plane is negative are clipped (not rendered).
-See the WebGL / clipping /intersection example. Default is null.

-
null
-
- -
clipShadows: boolean

Defines whether to clip shadows according to the clipping planes specified on this material. Default is false.

-
false
-
- -
colorWrite: boolean

Whether to render the material's color. This can be used in conjunction with a mesh's .renderOrder property to create invisible objects that occlude other objects. Default is true.

-
true
-
- -
defines: undefined | { [key: string]: any }

Custom defines to be injected into the shader. These are passed in form of an object literal, with key/value pairs. { MY_CUSTOM_DEFINE: '' , PI2: Math.PI * 2 }.
-The pairs are defined in both vertex and fragment shaders. Default is undefined.

-
undefined
-
- -
depthFunc: DepthModes

Which depth function to use. Default is LessEqualDepth. See the depth mode constants for all possible values.

-
THREE.LessEqualDepth
-
- -
depthTest: boolean

Whether to have depth test enabled when rendering this material. When the depth test is disabled, the depth write
-will also be implicitly disabled.

-
true
-
- -
depthWrite: boolean

Whether rendering this material has any effect on the depth buffer. Default is true.
-When drawing 2D overlays it can be useful to disable the depth writing in order to layer several things together without creating z-index artifacts.

-
true
-
- -
id: number

Unique number of this material instance.

-
stencilWrite: boolean

Whether rendering this material has any effect on the stencil buffer. Default is false.

-
false
-
- -
stencilFunc: StencilFunc

The stencil comparison function to use. Default is AlwaysStencilFunc. See stencil operation constants for all possible values.

-
THREE.AlwaysStencilFunc
-
- -
stencilRef: number

The value to use when performing stencil comparisons or stencil operations. Default is 0.

-
0
-
- -
stencilWriteMask: number

The bit mask to use when writing to the stencil buffer. Default is 0xFF.

-
0xff
-
- -
stencilFuncMask: number

The bit mask to use when comparing against the stencil buffer. Default is 0xFF.

-
0xff
-
- -
stencilFail: StencilOp

Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

-
THREE.KeepStencilOp
-
- -
stencilZFail: StencilOp

Which stencil operation to perform when the comparison function returns true but the depth test fails.
-Default is KeepStencilOp.
-See the stencil operation constants for all possible values.

-
THREE.KeepStencilOp
-
- -
stencilZPass: StencilOp

Which stencil operation to perform when the comparison function returns true and the depth test passes.
-Default is KeepStencilOp.
-See the stencil operation constants for all possible values.

-
THREE.KeepStencilOp
-
- -
name: string

Material name. Default is an empty string.

-
''
-
- -
opacity: number

Opacity. Default is 1.

-
1
-
- -
polygonOffset: boolean

Whether to use polygon offset. Default is false. This corresponds to the POLYGON_OFFSET_FILL WebGL feature.

-
false
-
- -
polygonOffsetFactor: number

Sets the polygon offset factor. Default is 0.

-
0
-
- -
polygonOffsetUnits: number

Sets the polygon offset units. Default is 0.

-
0
-
- -
precision: null | "highp" | "mediump" | "lowp"

Override the renderer's default precision for this material. Can be "highp", "mediump" or "lowp". Defaults is null.

-
null
-
- -
premultipliedAlpha: boolean

Whether to premultiply the alpha (transparency) value. See WebGL / Materials / Transparency for an example of the difference. Default is false.

-
false
-
- -
forceSinglePass: boolean
false
-
- -
dithering: boolean

Whether to apply dithering to the color to remove the appearance of banding. Default is false.

-
false
-
- -
side: Side

Defines which of the face sides will be rendered - front, back or both.
-Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.

-

THREE.FrontSide

-
shadowSide: null | Side

Defines which of the face sides will cast shadows. Default is null.
-If null, the value is opposite that of side, above.

-
null
-
- -
toneMapped: boolean

Defines whether this material is tone mapped according to the renderer's
-toneMapping setting. It is ignored when rendering to a render target or using
-post processing.

-
true
-
- -
transparent: boolean

Defines whether this material is transparent. This has an effect on rendering as transparent objects need special treatment and are rendered after non-transparent objects.
-When set to true, the extent to which the material is transparent is controlled by setting it's .opacity property.

-
false
-
- -
uuid: string

UUID of this material instance. This gets automatically assigned, so this shouldn't be edited.

-
vertexColors: boolean

Defines whether vertex coloring is used. Default is false.

-
false
-
- -
visible: boolean

Defines whether this material is visible. Default is true.

-
true
-
- -
userData: Record<string, any>

An object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned.

-
{}
-
- -
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-
0
-
- -

Accessors

  • get alphaTest(): number
  • Gets the alpha value to be used when running an alpha test. Default is 0.

    -

    Returns number

    0
    -
    - -
  • set alphaTest(value: number): void
  • Sets the alpha value to be used when running an alpha test. Default is 0.

    -

    Parameters

    • value: number

    Returns void

    0
    -
    - -
  • set needsUpdate(value: boolean): void
  • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL.
    -This property is automatically set to true when instancing a new material.

    -

    Parameters

    • value: boolean

    Returns void

    false
    -
    - -

Methods

  • An optional callback that is executed immediately before the material is used to render a 3D object.
    -Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
    -This callback is only supported in WebGLRenderer (not WebGPURenderer).

    -

    Parameters

    Returns void

  • An optional callback that is executed immediately before the shader program is compiled.
    -This function is called with the shader source code as a parameter.
    -Useful for the modification of built-in materials.
    -Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
    -This callback is only supported in WebGLRenderer (not WebGPURenderer).

    -

    Parameters

    Returns void

  • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

    -

    Returns string

  • Sets the properties based on the values.

    -

    Parameters

    Returns void

  • Convert the material to three.js JSON format.

    -

    Parameters

    • Optionalmeta: JSONMeta

      Object containing metadata such as textures or images for the material.

      -

    Returns MaterialJSON

  • Return a new material with the same parameters as this material.

    -

    Returns this

  • Copy the parameters from the passed material into this material.

    -

    Parameters

    Returns this

  • Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer
    -used in your app.

    -

    Material textures must be disposed of by the dispose() method of Texture.

    -

    Returns void

  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Material>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Material>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of the listener that gets removed.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Material>

      The listener function that gets removed.

      -

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/Matrix3.html b/docs/classes/Matrix3.html deleted file mode 100644 index 7998c3f..0000000 --- a/docs/classes/Matrix3.html +++ /dev/null @@ -1,71 +0,0 @@ -Matrix3 | VFX-JS

Class Matrix3

Constructors

  • Creates an identity matrix.

    -

    Returns Matrix3

  • Creates a 3x3 matrix with the given arguments in row-major order.

    -

    Parameters

    • n11: number
    • n12: number
    • n13: number
    • n21: number
    • n22: number
    • n23: number
    • n31: number
    • n32: number
    • n33: number

    Returns Matrix3

Properties

isMatrix3: true
elements: Matrix3Tuple

Array with matrix values.

-
[1, 0, 0, 0, 1, 0, 0, 0, 1]
-
- -

Methods

  • Parameters

    • n11: number
    • n12: number
    • n13: number
    • n21: number
    • n22: number
    • n23: number
    • n31: number
    • n32: number
    • n33: number

    Returns Matrix3

  • Returns this

  • Parameters

    Returns this

  • Multiplies this matrix by m.

    -

    Parameters

    Returns this

  • Parameters

    Returns this

  • Sets this matrix to a x b.

    -

    Parameters

    Returns this

  • Parameters

    • s: number

    Returns this

  • Returns number

  • Inverts this matrix in place.

    -

    Returns this

  • Transposes this matrix in place.

    -

    Returns this

  • Parameters

    Returns this

  • Transposes this matrix into the supplied array r, and returns itself.

    -

    Parameters

    • r: number[]

    Returns this

  • Parameters

    • tx: number
    • ty: number
    • sx: number
    • sy: number
    • rotation: number
    • cx: number
    • cy: number

    Returns this

  • Parameters

    • sx: number
    • sy: number

    Returns this

  • Parameters

    • theta: number

    Returns this

  • Parameters

    • tx: number
    • ty: number

    Returns this

  • Sets this matrix as a 2D translation transform:

    -
    1, 0, x,
    0, 1, y,
    0, 0, 1 -
    - -

    Parameters

    • v: Vector2

      the amount to translate.

      -

    Returns this

  • Sets this matrix as a 2D translation transform:

    -
    1, 0, x,
    0, 1, y,
    0, 0, 1 -
    - -

    Parameters

    • x: number

      the amount to translate in the X axis.

      -
    • y: number

      the amount to translate in the Y axis.

      -

    Returns this

  • Sets this matrix as a 2D rotational transformation by theta radians. The resulting matrix will be:

    -
    cos(θ) -sin(θ) 0
    sin(θ) cos(θ) 0
    0 0 1 -
    - -

    Parameters

    • theta: number

      Rotation angle in radians. Positive values rotate counterclockwise.

      -

    Returns this

  • Sets this matrix as a 2D scale transform:

    -
    x, 0, 0,
    0, y, 0,
    0, 0, 1 -
    - -

    Parameters

    • x: number

      the amount to scale in the X axis.

      -
    • y: number

      the amount to scale in the Y axis.

      -

    Returns this

  • Parameters

    Returns boolean

  • Sets the values of this matrix from the provided array or array-like.

    -

    Parameters

    • array: ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array-like. Default is 0.

      -

    Returns this

  • Writes the elements of this matrix to an array in
    -column-major format.

    -

    Returns Matrix3Tuple

  • Writes the elements of this matrix to an array in
    -column-major format.

    -

    Type Parameters

    Parameters

    • array: TArray

      array to store the resulting vector in. If not given a new array will be created.

      -
    • Optionaloffset: number

      (optional) offset in the array at which to put the result.

      -

    Returns TArray

  • Returns this

diff --git a/docs/classes/Matrix4.html b/docs/classes/Matrix4.html deleted file mode 100644 index 1ffc01e..0000000 --- a/docs/classes/Matrix4.html +++ /dev/null @@ -1,92 +0,0 @@ -Matrix4 | VFX-JS

Class Matrix4

A 4x4 Matrix.

-
// Simple rig for rotating around 3 axes
const m = new THREE.Matrix4();
const m1 = new THREE.Matrix4();
const m2 = new THREE.Matrix4();
const m3 = new THREE.Matrix4();
const alpha = 0;
const beta = Math.PI;
const gamma = Math.PI/2;
m1.makeRotationX( alpha );
m2.makeRotationY( beta );
m3.makeRotationZ( gamma );
m.multiplyMatrices( m1, m2 );
m.multiply( m3 ); -
- -

Constructors

  • Creates an identity matrix.

    -

    Returns Matrix4

  • Creates a 4x4 matrix with the given arguments in row-major order.

    -

    Parameters

    • n11: number
    • n12: number
    • n13: number
    • n14: number
    • n21: number
    • n22: number
    • n23: number
    • n24: number
    • n31: number
    • n32: number
    • n33: number
    • n34: number
    • n41: number
    • n42: number
    • n43: number
    • n44: number

    Returns Matrix4

Properties

isMatrix4: true
elements: Matrix4Tuple

Array with matrix values.

-
[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]
-
- -

Methods

  • Sets all fields of this matrix.

    -

    Parameters

    • n11: number
    • n12: number
    • n13: number
    • n14: number
    • n21: number
    • n22: number
    • n23: number
    • n24: number
    • n31: number
    • n32: number
    • n33: number
    • n34: number
    • n41: number
    • n42: number
    • n43: number
    • n44: number

    Returns this

  • Resets this matrix to identity.

    -

    Returns this

  • Returns Matrix4

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Set the upper 3x3 elements of this matrix to the values of the Matrix3 m.

    -

    Parameters

    Returns this

  • Copies the rotation component of the supplied matrix m into this matrix rotation component.

    -

    Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Constructs a rotation matrix, looking from eye towards center with defined up vector.

    -

    Parameters

    Returns this

  • Multiplies this matrix by m.

    -

    Parameters

    Returns this

  • Parameters

    Returns this

  • Sets this matrix to a x b.

    -

    Parameters

    Returns this

  • Multiplies this matrix by s.

    -

    Parameters

    • s: number

    Returns this

  • Transposes this matrix.

    -

    Returns this

  • Sets the position component for this matrix from vector v.

    -

    Parameters

    Returns this

  • Sets the position component for this matrix from vector v.

    -

    Parameters

    • x: number
    • y: number
    • z: number

    Returns this

  • Inverts this matrix.

    -

    Returns this

  • Multiplies the columns of this matrix by vector v.

    -

    Parameters

    Returns this

  • Returns number

  • Sets this matrix as translation transform.

    -

    Parameters

    Returns this

  • Sets this matrix as translation transform.

    -

    Parameters

    • x: number
    • y: number
    • z: number

    Returns this

  • Sets this matrix as rotation transform around x axis by theta radians.

    -

    Parameters

    • theta: number

      Rotation angle in radians.

      -

    Returns this

  • Sets this matrix as rotation transform around y axis by theta radians.

    -

    Parameters

    • theta: number

      Rotation angle in radians.

      -

    Returns this

  • Sets this matrix as rotation transform around z axis by theta radians.

    -

    Parameters

    • theta: number

      Rotation angle in radians.

      -

    Returns this

  • Sets this matrix as scale transform.

    -

    Parameters

    • x: number
    • y: number
    • z: number

    Returns this

  • Sets this matrix as shear transform.

    -

    Parameters

    • xy: number
    • xz: number
    • yx: number
    • yz: number
    • zx: number
    • zy: number

    Returns this

  • Sets this matrix to the transformation composed of translation, rotation and scale.

    -

    Parameters

    Returns this

  • Decomposes this matrix into it's position, quaternion and scale components.

    -

    Parameters

    Returns this

  • Creates a perspective projection matrix.

    -

    Parameters

    • left: number
    • right: number
    • top: number
    • bottom: number
    • near: number
    • far: number
    • OptionalcoordinateSystem: CoordinateSystem

    Returns this

  • Creates an orthographic projection matrix.

    -

    Parameters

    • left: number
    • right: number
    • top: number
    • bottom: number
    • near: number
    • far: number
    • OptionalcoordinateSystem: CoordinateSystem

    Returns this

  • Parameters

    Returns boolean

  • Sets the values of this matrix from the provided array or array-like.

    -

    Parameters

    • array: ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array-like. Default is 0.

      -

    Returns this

  • Writes the elements of this matrix to an array in
    -column-major format.

    -

    Returns Matrix4Tuple

  • Writes the elements of this matrix to an array in
    -column-major format.

    -

    Type Parameters

    Parameters

    • array: TArray

      array to store the resulting vector in.

      -
    • Optionaloffset: number

      (optional) offset in the array at which to put the result.

      -

    Returns TArray

diff --git a/docs/classes/Mesh.html b/docs/classes/Mesh.html deleted file mode 100644 index 1e15b3e..0000000 --- a/docs/classes/Mesh.html +++ /dev/null @@ -1,352 +0,0 @@ -Mesh | VFX-JS

Class Mesh<TGeometry, TMaterial, TEventMap>

Class representing triangular polygon mesh based objects.

-

Also serves as a base for other classes such as THREE.SkinnedMesh | SkinnedMesh, THREE.InstancedMesh | InstancedMesh.

-
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({
color: 0xffff00
});
const {@link Mesh} = new THREE.Mesh(geometry, material);
scene.add(mesh); -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isMesh: true

Read-only flag to check if a given object is of type Mesh.

-

This is a constant value

-

true

-
type: string

Mesh

-
geometry: TGeometry

An instance of THREE.BufferGeometry | BufferGeometry (or derived classes), defining the object's structure.

-

THREE.BufferGeometry | new THREE.BufferGeometry().

-
material: TMaterial

An instance of material derived from the THREE.Material | Material base class or an array of materials, defining the object's appearance.

-

THREE.MeshBasicMaterial | new THREE.MeshBasicMaterial().

-
morphTargetInfluences?: number[]

An array of weights typically from 0-1 that specify how much of the morph is applied.

-

undefined, but reset to a blank array by .updateMorphTargets().

-
morphTargetDictionary?: { [key: string]: number }

A dictionary of morphTargets based on the morphTarget.name property.

-

undefined, but rebuilt by .updateMorphTargets().

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • Updates the morphTargets to have no influence on the object

    -

    Returns void

    Resets the morphTargetInfluences and morphTargetDictionary properties.

    -
  • Get the local-space position of the vertex at the given index,
    -taking into account the current animation state of both morph targets and skinning.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • target: Vector3

    Returns Vector3

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
  • Fire an event type.

    -

    Type Parameters

    • T extends string

    Parameters

    Returns void

diff --git a/docs/classes/Object3D.html b/docs/classes/Object3D.html deleted file mode 100644 index c007d22..0000000 --- a/docs/classes/Object3D.html +++ /dev/null @@ -1,328 +0,0 @@ -Object3D | VFX-JS

Class Object3D<TEventMap>

This is the base class for most objects in three.js and provides a set of properties and methods for manipulating objects in 3D space.

-

Note that this can be used for grouping objects via the THREE.Object3D.add | .add() method which adds the object as a child,
-however it is better to use THREE.Group | Group for this.

-

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
type: string

A Read-only string to check this object type.

-

This can be used to find a specific type of Object3D in a scene.
-Sub-classes will update this value.

-

Object3D

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Copy the given THREE.Quaternion | Quaternion into .quaternion.

    -

    Parameters

    Returns void

  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a quaternion representing the rotation of the object in world space.

    -

    Parameters

    • target: Quaternion

      The result will be copied into this Quaternion.

      -

    Returns Quaternion

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/PerspectiveCamera.html b/docs/classes/PerspectiveCamera.html deleted file mode 100644 index c397a87..0000000 --- a/docs/classes/PerspectiveCamera.html +++ /dev/null @@ -1,440 +0,0 @@ -PerspectiveCamera | VFX-JS

Class PerspectiveCamera

Camera that uses perspective projection.
-This projection mode is designed to mimic the way the human eye sees

-

It is the most common projection mode used for rendering a 3D scene.

-
const camera = new THREE.PerspectiveCamera(45, width / height, 1, 1000);
scene.add(camera); -
- -

Hierarchy (View Summary)

Constructors

Properties

Methods

Constructors

  • Creates a new PerspectiveCamera.

    -

    Parameters

    • Optionalfov: number

      Camera frustum vertical field of view. Default 50.

      -
    • Optionalaspect: number

      Camera frustum aspect ratio. Default 1.

      -
    • Optionalnear: number

      Camera frustum near plane. Default 0.1.

      -
    • Optionalfar: number

      Camera frustum far plane. Default 2000.

      -

    Returns PerspectiveCamera

    Together these define the camera's viewing frustum.

    -

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isPerspectiveCamera: true

Read-only flag to check if a given object is of type Camera.

-

This is a constant value

-

true

-
type: string

PerspectiveCamera

-
zoom: number

Gets or sets the zoom factor of the camera.

-

1

-
fov: number

Camera frustum vertical field of view, from bottom to top of view, in degrees.

-

Expects a Float

-

50

-
aspect: number

Camera frustum aspect ratio, usually the canvas width / canvas height.

-

Expects a Float

-

1, (square canvas).

-
near: number

Camera frustum near plane.

-

The valid range is greater than 0 and less than the current value of the .far plane.

-

0.1

-
far: number

Camera frustum far plane.

-

Must be greater than the current value of .near plane.

-

2000

-
focus: number

Object distance used for stereoscopy and depth-of-field effects.

-

This parameter does not influence the projection matrix unless a THREE.StereoCamera | StereoCamera is being used.

-

10

-
view:
    | null
    | {
        enabled: boolean;
        fullWidth: number;
        fullHeight: number;
        offsetX: number;
        offsetY: number;
        width: number;
        height: number;
    }

Frustum window specification or null.
-This is set using the .setViewOffset method and cleared using .clearViewOffset.

-

null

-
filmGauge: number

Film size used for the larger axis.
-This parameter does not influence the projection matrix unless .filmOffset is set to a nonzero value.

-

Expects a Float

-

35, millimeters.

-
filmOffset: number

Horizontal off-center offset in the same unit as .filmGauge.

-

Expects a Float

-

0

-
isCamera: true

Read-only flag to check if a given object is of type Camera.

-

This is a constant value

-

true

-
layers: Layers

The THREE.Layers | layers that the Camera is a member of.

-

Objects must share at least one layer with the Camera to be n when the camera's viewpoint is rendered.

-

new THREE.Layers()

-
matrixWorldInverse: Matrix4

This is the inverse of matrixWorld.

-

MatrixWorld contains the Matrix which has the world transform of the Camera .

-

THREE.Matrix4 | new THREE.Matrix4()

-
projectionMatrix: Matrix4

This is the matrix which contains the projection.

-

THREE.Matrix4 | new THREE.Matrix4()

-
projectionMatrixInverse: Matrix4

This is the inverse of projectionMatrix.

-

THREE.Matrix4 | new THREE.Matrix4()

-
coordinateSystem: CoordinateSystem
viewport?: Vector4
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • Returns the focal length of the current .fov | fov in respect to .filmGauge.

    -

    Returns number

  • Sets the FOV by focal length in respect to the current .filmGauge.

    -

    Parameters

    • focalLength: number

      Expects a Float

      -

    Returns void

    By default, the focal length is specified for a 35mm (full frame) camera.

    -
  • Returns the current vertical field of view angle in degrees considering .zoom.

    -

    Returns number

  • Returns the width of the image on the film

    -

    Returns number

    If .aspect. is greater than or equal to one (landscape format), the result equals .filmGauge.

    -
  • Returns the height of the image on the film

    -

    Returns number

    If .aspect. is less than or equal to one (portrait format), the result equals .filmGauge.

    -
  • Computes the 2D bounds of the camera's viewable rectangle at a given distance along the viewing direction.
    -Sets minTarget and maxTarget to the coordinates of the lower-left and upper-right corners of the view rectangle.

    -

    Parameters

    Returns void

  • Computes the width and height of the camera's viewable rectangle at a given distance along the viewing direction.
    -Copies the result into the target Vector2, where x is width and y is height.

    -

    Parameters

    Returns Vector2

  • Sets an offset in a larger frustum.

    -

    Parameters

    • fullWidth: number

      Full width of multiview setup Expects a Float.

      -
    • fullHeight: number

      Full height of multiview setup Expects a Float.

      -
    • x: number

      Horizontal offset of subcamera Expects a Float.

      -
    • y: number

      Vertical offset of subcamera Expects a Float.

      -
    • width: number

      Width of subcamera Expects a Float.

      -
    • height: number

      Height of subcamera Expects a Float.

      -

    Returns void

    This is useful for multi-window or multi-monitor/multi-machine setups.

    -

    For example, if you have 3x2 monitors and each monitor is 1920x1080 and
    -the monitors are in grid like this

    -
    ┌───┬───┬───┐
    ABC
    ├───┼───┼───┤
    DEF
    └───┴───┴───┘ -
    - -

    then for each monitor you would call it like this

    -
      const w = 1920;
    const h = 1080;
    const fullWidth = w * 3;
    const fullHeight = h * 2;

    // Monitor - A
    camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 0, w, h );
    // Monitor - B
    camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 0, w, h );
    // Monitor - C
    camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 0, w, h );
    // Monitor - D
    camera.setViewOffset( fullWidth, fullHeight, w * 0, h * 1, w, h );
    // Monitor - E
    camera.setViewOffset( fullWidth, fullHeight, w * 1, h * 1, w, h );
    // Monitor - F
    camera.setViewOffset( fullWidth, fullHeight, w * 2, h * 1, w, h ); -
    - -

    Note there is no reason monitors have to be the same size or in a grid.

    -
  • Removes any offset set by the .setViewOffset method.

    -

    Returns void

  • Updates the camera projection matrix

    -

    Returns void

    Must be called after any change of parameters.

    -
  • Parameters

    • focalLength: number
    • OptionalframeHeight: number

    Returns void

    Use .setFocalLength() and .filmGauge instead.

    -
  • Returns a THREE.Vector3 | Vector3 representing the world space direction in which the Camera is looking.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

    Note: A Camera looks down its local, negative z-axis.

    -
  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a quaternion representing the rotation of the object in world space.

    -

    Parameters

    • target: Quaternion

      The result will be copied into this Quaternion.

      -

    Returns Quaternion

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/Plane.html b/docs/classes/Plane.html deleted file mode 100644 index 7aa9cac..0000000 --- a/docs/classes/Plane.html +++ /dev/null @@ -1,32 +0,0 @@ -Plane | VFX-JS

Class Plane

Constructors

  • Parameters

    • Optionalnormal: Vector3
    • Optionalconstant: number

    Returns Plane

Properties

normal: Vector3
new THREE.Vector3( 1, 0, 0 )
-
- -
constant: number
0
-
- -
isPlane: true

Methods

  • Parameters

    Returns Plane

  • Parameters

    • x: number
    • y: number
    • z: number
    • w: number

    Returns Plane

  • Returns this

  • Parameters

    Returns this

  • Returns Plane

  • Returns Plane

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns Plane

  • Parameters

    Returns Plane

  • Parameters

    Returns boolean

  • Parameters

    • l: any

    Returns any

    Use .intersectsLine() instead.

    -
diff --git a/docs/classes/Quaternion.html b/docs/classes/Quaternion.html deleted file mode 100644 index 78001ca..0000000 --- a/docs/classes/Quaternion.html +++ /dev/null @@ -1,93 +0,0 @@ -Quaternion | VFX-JS

Class Quaternion

Implementation of a quaternion. This is used for rotating things without incurring in the dreaded gimbal lock issue, amongst other advantages.

-
const quaternion = new THREE.Quaternion();
quaternion.setFromAxisAngle( new THREE.Vector3( 0, 1, 0 ), Math.PI / 2 );
const vector = new THREE.Vector3( 1, 0, 0 );
vector.applyQuaternion( quaternion ); -
- -

Constructors

  • Parameters

    • Optionalx: number

      x coordinate

      -
    • Optionaly: number

      y coordinate

      -
    • Optionalz: number

      z coordinate

      -
    • Optionalw: number

      w coordinate

      -

    Returns Quaternion

Properties

x: number
0
-
- -
y: number
0
-
- -
z: number
0
-
- -
w: number
1
-
- -
isQuaternion: true
_onChangeCallback: () => void

Methods

  • Parameters

    • dst: number[]
    • dstOffset: number
    • src0: number[]
    • srcOffset: number
    • src1: number[]
    • stcOffset1: number
    • t: number

    Returns void

  • Parameters

    • dst: number[]
    • dstOffset: number
    • src0: number[]
    • srcOffset: number
    • src1: number[]
    • stcOffset1: number

    Returns number[]

  • Sets values of this quaternion.

    -

    Parameters

    • x: number
    • y: number
    • z: number
    • w: number

    Returns this

  • Clones this quaternion.

    -

    Returns this

  • Copies values of q to this quaternion.

    -

    Parameters

    Returns this

  • Sets this quaternion from rotation specified by Euler angles.

    -

    Parameters

    • euler: Euler
    • Optionalupdate: boolean

    Returns this

  • Parameters

    Returns number

  • Parameters

    Returns this

  • Returns this

  • Inverts this quaternion.

    -

    Returns this

  • Returns this

  • Parameters

    Returns number

  • Returns number

  • Computes length of this quaternion.

    -

    Returns number

  • Normalizes this quaternion.

    -

    Returns this

  • Multiplies this quaternion by b.

    -

    Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns boolean

  • Sets this quaternion's x, y, z and w value from the provided array or array-like.

    -

    Parameters

    • array: number[] | ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array. Default is 0.

      -

    Returns this

  • Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.

    -

    Parameters

    • Optionalarray: number[]

      (optional) array to store the quaternion to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns number[]

    The created or provided array.

    -
  • Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.

    -

    Parameters

    • Optionalarray: QuaternionTuple

      (optional) array to store the quaternion to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: 0

      (optional) optional offset into the array.

      -

    Returns QuaternionTuple

    The created or provided array.

    -
  • Copies x, y, z and w into the provided array-like.

    -

    Parameters

    • array: ArrayLike<number>

      array-like to store the quaternion to.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns ArrayLike<number>

    The provided array-like.

    -
  • This method defines the serialization result of Quaternion.

    -

    Returns [number, number, number, number]

    The numerical elements of this quaternion in an array of format [x, y, z, w].

    -
  • Parameters

    • callback: () => void

    Returns this

  • Returns this

  • Returns Generator<number, void>

diff --git a/docs/classes/Ray.html b/docs/classes/Ray.html deleted file mode 100644 index 3bd5954..0000000 --- a/docs/classes/Ray.html +++ /dev/null @@ -1,36 +0,0 @@ -Ray | VFX-JS

Class Ray

Constructors

  • Parameters

    Returns Ray

Properties

origin: Vector3
new THREE.Vector3()
-
- -
direction: Vector3
new THREE.Vector3( 0, 0, - 1 )
-
- -

Methods

  • Returns this

  • Parameters

    Returns this

  • Parameters

    Returns Vector3

  • Parameters

    Returns Ray

  • Parameters

    • t: number

    Returns Ray

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    Returns number

  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns Ray

  • Parameters

    Returns boolean

  • Parameters

    • b: any

    Returns any

    Use .intersectsBox() instead.

    -
  • Parameters

    • p: any

    Returns any

    Use .intersectsPlane() instead.

    -
  • Parameters

    • s: any

    Returns any

    Use .intersectsSphere() instead.

    -
diff --git a/docs/classes/Raycaster.html b/docs/classes/Raycaster.html deleted file mode 100644 index 5b1b6d2..0000000 --- a/docs/classes/Raycaster.html +++ /dev/null @@ -1,81 +0,0 @@ -Raycaster | VFX-JS

Class Raycaster

This class is designed to assist with raycasting

-

Raycasting is used for mouse picking (working out what objects in the 3d space the mouse is over) amongst other things.

-
const raycaster = new THREE.Raycaster();
const pointer = new THREE.Vector2();

function onPointerMove(event) {
// calculate pointer position in normalized device coordinates (-1 to +1) for both components
pointer.x = (event.clientX / window.innerWidth) * 2 - 1;
pointer.y = -(event.clientY / window.innerHeight) * 2 + 1;
}

function render() {
// update the picking ray with the camera and pointer position
raycaster.setFromCamera(pointer, camera);
// calculate objects intersecting the picking ray
const intersects = raycaster.intersectObjects(scene.children);
for (let i = 0; i & lt; intersects.length; i++) {
intersects[i].object.material.color.set(0xff0000);
}
renderer.render(scene, camera);
}
window.addEventListener('pointermove', onPointerMove);
window.requestAnimationFrame(render); -
- -

Constructors

  • This creates a new Raycaster object.

    -

    Parameters

    • Optionalorigin: Vector3

      The origin vector where the ray casts from. Default new Vector3()

      -
    • Optionaldirection: Vector3

      The direction vector that gives direction to the ray. Should be normalized. Default new Vector3(0, 0, -1)

      -
    • Optionalnear: number

      All results returned are further away than near. Near can't be negative. Expects a Float. Default 0

      -
    • Optionalfar: number

      All results returned are closer than far. Far can't be lower than near. Expects a Float. Default Infinity

      -

    Returns Raycaster

Properties

ray: Ray

The THREE.RaycasterRay | Ray used for the raycasting.

-
near: number

The near factor of the raycaster. This value indicates which objects can be discarded based on the distance.
-This value shouldn't be negative and should be smaller than the far property.

-

Expects a Float

-

0

-
far: number

The far factor of the raycaster. This value indicates which objects can be discarded based on the distance.
-This value shouldn't be negative and should be larger than the near property.

-

Expects a Float

-

Infinity

-
camera: Camera

The camera to use when raycasting against view-dependent objects such as billboarded objects like THREE.Sprites | Sprites.
-This field can be set manually or is set when calling setFromCamera.

-

null

-
layers: Layers

Used by Raycaster to selectively ignore 3D objects when performing intersection tests.
-The following code example ensures that only 3D objects on layer 1 will be honored by the instance of Raycaster.

-
raycaster.layers.set( 1 );
object.layers.enable( 1 ); -
- -

new THREE.Layers() - See THREE.Layers | Layers.

-

An data object where threshold is the precision of the Raycaster when intersecting objects, in world units.

-

{ Mesh: {}, Line: { threshold: 1 }, LOD: {}, Points: { threshold: 1 }, Sprite: {} }

-

Methods

  • Updates the ray with a new origin and direction

    -

    Parameters

    • origin: Vector3

      The origin vector where the ray casts from.

      -
    • direction: Vector3

      The normalized direction vector that gives direction to the ray.

      -

    Returns void

    Please note that this method only copies the values from the arguments.

    -
  • Updates the ray with a new origin and direction.

    -

    Parameters

    • coords: Vector2

      2D coordinates of the mouse, in normalized device coordinates (NDC)---X and Y components should be between -1 and 1.

      -
    • camera: Camera

      camera from which the ray should originate

      -

    Returns void

  • Updates the ray with a new origin and direction.

    -

    Parameters

    • controller: XRTargetRaySpace

      The controller to copy the position and direction from.

      -

    Returns this

  • Checks all intersection between the ray and the object with or without the descendants

    -

    Type Parameters

    Parameters

    • object: Object3D

      The object to check for intersection with the ray.

      -
    • Optionalrecursive: boolean

      If true, it also checks all descendants. Otherwise it only checks intersection with the object. Default true

      -
    • OptionaloptionalTarget: Intersection<TIntersected>[]

      Target to set the result. Otherwise a new Array | Array is instantiated.
      -If set, you must clear this array prior to each call (i.e., array.length = 0;). Default []

      -

    Returns Intersection<TIntersected>[]

    An array of intersections is returned.

    -

    Intersections are returned sorted by distance, closest first

    -
  • Checks all intersection between the ray and the objects with or without the descendants

    -

    Type Parameters

    Parameters

    • objects: Object3D[]

      The objects to check for intersection with the ray.

      -
    • Optionalrecursive: boolean

      If true, it also checks all descendants of the objects. Otherwise it only checks intersection with the objects. Default true

      -
    • OptionaloptionalTarget: Intersection<TIntersected>[]

      Target to set the result. Otherwise a new Array | Array is instantiated.
      -If set, you must clear this array prior to each call (i.e., array.length = 0;). Default []

      -

    Returns Intersection<TIntersected>[]

    An array of intersections is returned.

    -

    Intersections are returned sorted by distance, closest first

    -
diff --git a/docs/classes/RenderTarget.html b/docs/classes/RenderTarget.html deleted file mode 100644 index 66cf012..0000000 --- a/docs/classes/RenderTarget.html +++ /dev/null @@ -1,70 +0,0 @@ -RenderTarget | VFX-JS

Class RenderTarget<TTexture>

JavaScript events for custom objects

-
// Adding events to a custom object
class Car extends EventDispatcher {
start() {
this.dispatchEvent( { type: 'start', message: 'vroom vroom!' } );
}
};
// Using events with the custom object
const car = new Car();
car.addEventListener( 'start', ( event ) => {
alert( event.message );
} );
car.start(); -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

isRenderTarget: true
width: number
height: number
depth: number
scissor: Vector4
scissorTest: boolean
false
-
- -
viewport: Vector4
textures: TTexture[]
depthBuffer: boolean
true
-
- -
stencilBuffer: boolean
false
-
- -
resolveDepthBuffer: boolean

Defines whether the depth buffer should be resolved when rendering into a multisampled render target.

-
true
-
- -
resolveStencilBuffer: boolean

Defines whether the stencil buffer should be resolved when rendering into a multisampled render target.
-This property has no effect when .resolveDepthBuffer is set to false.

-
true
-
- -
depthTexture: null | DepthTexture
null
-
- -
samples: number

Defines the count of MSAA samples. Can only be used with WebGL 2. Default is 0.

-
0
-
- -

Accessors

  • get texture(): TTexture
  • Returns TTexture

  • set texture(value: TTexture): void
  • Parameters

    Returns void

Methods

  • Parameters

    • width: number
    • height: number
    • Optionaldepth: number

    Returns void

  • Returns this

  • Parameters

    Returns this

  • Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    Returns boolean

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/Scene.html b/docs/classes/Scene.html deleted file mode 100644 index 79d5afc..0000000 --- a/docs/classes/Scene.html +++ /dev/null @@ -1,368 +0,0 @@ -Scene | VFX-JS

Class Scene

Scenes allow you to set up what and where is to be rendered by three.js

-

This is where you place objects, lights and cameras.

-

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isScene: true

Read-only flag to check if a given object is of type Scene.

-

This is a constant value

-

true

-
type: "Scene"

Scene

-
fog: null | Fog | FogExp2

A fog instance defining the type of fog that affects everything rendered in the scene.

-

null

-
backgroundBlurriness: number

Sets the blurriness of the background. Only influences environment maps assigned to THREE.Scene.background | Scene.background.

-

0

-

Expects a Float between 0 and 1.

-
backgroundIntensity: number

Attenuates the color of the background. Only applies to background textures.

-

1

-

Expects a Float

-
overrideMaterial: null | Material

Forces everything in the Scene to be rendered with the defined material.

-

null

-
background: null | Texture | CubeTexture | Color

Defines the background of the scene.

-

Valid inputs are:

-
    -
  • A THREE.Color | Color for defining a uniform colored background.
  • -
  • A THREE.Texture | Texture for defining a (flat) textured background.
  • -
  • Texture cubes (THREE.CubeTexture | CubeTexture) or equirectangular textures for defining a skybox.
  • -
-

null

-
backgroundRotation: Euler

The rotation of the background in radians. Only influences environment maps assigned to .background.
-Default is (0,0,0).

-
environment: null | Texture

Sets the environment map for all physical materials in the scene.
-However, it's not possible to overwrite an existing texture assigned to THREE.MeshStandardMaterial.envMap | MeshStandardMaterial.envMap.

-

null

-
environmentIntensity: number

Attenuates the color of the environment. Only influences environment maps assigned to Scene.environment.

-
1
-
- -
environmentRotation: Euler

The rotation of the environment map in radians. Only influences physical materials in the scene when
-.environment is used. Default is (0,0,0).

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/Source.html b/docs/classes/Source.html deleted file mode 100644 index b3d9051..0000000 --- a/docs/classes/Source.html +++ /dev/null @@ -1,38 +0,0 @@ -Source | VFX-JS

Class Source

Represents the data Source of a texture.

-

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new instance of Source

    -

    Parameters

    • data: any

      The data definition of a texture. Default null

      -

    Returns Source

Properties

isSource: true

Flag to check if a given object is of type Source.

-

This is a constant value

-

true

-
id: number
data: any

The actual data of a texture.

-

The type of this property depends on the texture that uses this instance.

-
dataReady: boolean

This property is only relevant when .needsUpdate is set to true and provides more control on how
-texture data should be processed.
-When dataReady is set to false, the engine performs the memory allocation (if necessary) but does not
-transfer the data into the GPU memory.

-
true
-
- -
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-

Expects a Integer

-

0

-

Accessors

  • set needsUpdate(value: boolean): void
  • When the property is set to true, the engine allocates the memory for the texture (if necessary) and triggers
    -the actual texture upload to the GPU next time the source is used.

    -

    Parameters

    • value: boolean

    Returns void

Methods

  • Convert the data Source to three.js JSON Object/Scene format.

    -

    Parameters

    • Optionalmeta: string | {}

      Optional object containing metadata.

      -

    Returns SourceJSON

diff --git a/docs/classes/SourceJSON.html b/docs/classes/SourceJSON.html deleted file mode 100644 index 86b3930..0000000 --- a/docs/classes/SourceJSON.html +++ /dev/null @@ -1,4 +0,0 @@ -SourceJSON | VFX-JS

Class SourceJSON

Constructors

Properties

Constructors

Properties

uuid: string
diff --git a/docs/classes/Sphere.html b/docs/classes/Sphere.html deleted file mode 100644 index 562afcb..0000000 --- a/docs/classes/Sphere.html +++ /dev/null @@ -1,32 +0,0 @@ -Sphere | VFX-JS

Class Sphere

Constructors

  • Parameters

    • Optionalcenter: Vector3
    • Optionalradius: number

    Returns Sphere

Properties

isSphere: true

Read-only flag to check if a given object is of type Sphere.

-
center: Vector3
new Vector3()
-
- -
radius: number
1
-
- -

Methods

  • Parameters

    Returns Sphere

  • Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Returns boolean

  • Returns this

  • Parameters

    Returns boolean

  • Parameters

    Returns number

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns Box3

  • Parameters

    Returns Sphere

  • Parameters

    Returns Sphere

  • Parameters

    Returns boolean

  • Parameters

    Returns this

  • Returns any

    Use .isEmpty() instead.

    -
diff --git a/docs/classes/Spherical.html b/docs/classes/Spherical.html deleted file mode 100644 index cd35c94..0000000 --- a/docs/classes/Spherical.html +++ /dev/null @@ -1,20 +0,0 @@ -Spherical | VFX-JS

Class Spherical

Constructors

  • Parameters

    • Optionalradius: number
    • Optionalphi: number
    • Optionaltheta: number

    Returns Spherical

Properties

radius: number
1
-
- -
phi: number
0
-
- -
theta: number
0
-
- -

Methods

  • Parameters

    • radius: number
    • phi: number
    • theta: number

    Returns this

  • Returns this

  • Parameters

    Returns this

  • Returns this

  • Parameters

    Returns this

  • Parameters

    • x: number
    • y: number
    • z: number

    Returns this

diff --git a/docs/classes/Sprite.html b/docs/classes/Sprite.html deleted file mode 100644 index 4796467..0000000 --- a/docs/classes/Sprite.html +++ /dev/null @@ -1,338 +0,0 @@ -Sprite | VFX-JS

Class Sprite<TEventMap>

A Sprite is a plane that always faces towards the camera, generally with a partially transparent texture applied.

-

Sprites do not cast shadows, setting castShadow = true will have no effect.

-
const map = new THREE.TextureLoader().load('sprite.png');
const material = new THREE.SpriteMaterial({
map: map
});
const {@link Sprite} = new THREE.Sprite(material);
scene.add(sprite); -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
isSprite: true

Read-only flag to check if a given object is of type Sprite.

-

This is a constant value

-

true

-
type: string

Sprite

-
geometry: BufferGeometry
material: SpriteMaterial

An instance of THREE.SpriteMaterial | SpriteMaterial, defining the object's appearance.

-

THREE.SpriteMaterial | new SpriteMaterial(), with white color.

-
center: Vector2

The sprite's anchor point, and the point around which the Sprite rotates.
-A value of (0.5, 0.5) corresponds to the midpoint of the sprite.
-A value of (0, 0) corresponds to the lower left corner of the sprite.

-

THREE.Vector2 | new Vector2(0.5, 0.5).

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
  • Fire an event type.

    -

    Type Parameters

    • T extends string

    Parameters

    Returns void

diff --git a/docs/classes/SpriteMaterial.html b/docs/classes/SpriteMaterial.html deleted file mode 100644 index e1ba529..0000000 --- a/docs/classes/SpriteMaterial.html +++ /dev/null @@ -1,336 +0,0 @@ -SpriteMaterial | VFX-JS

Class SpriteMaterial

Materials describe the appearance of objects. They are defined in a (mostly) renderer-independent way, so you don't have to rewrite materials if you decide to use a different renderer.

-

Hierarchy (View Summary)

Constructors

Properties

isSpriteMaterial: true

Read-only flag to check if a given object is of type SpriteMaterial.

-

This is a constant value

-

true

-
color: Color
new THREE.Color( 0xffffff )
-
- -
map: null | Texture
null
-
- -
alphaMap: null | Texture
null
-
- -
rotation: number
0
-
- -
sizeAttenuation: boolean
true
-
- -
transparent: boolean
true
-
- -
fog: boolean

Whether the material is affected by fog. Default is true.

-
fog
-
- -
isMaterial: true

Read-only flag to check if a given object is of type Material.

-

This is a constant value

-

true

-
type: string

Value is the string 'Material'. This shouldn't be changed, and can be used to find all objects of this type in a
-scene.

-
alphaHash: boolean

Enables alpha hashed transparency, an alternative to .transparent or .alphaTest. The material
-will not be rendered if opacity is lower than a random threshold. Randomization introduces some grain or noise,
-but approximates alpha blending without the associated problems of sorting. Using TAARenderPass can reduce the
-resulting noise.

-
alphaToCoverage: boolean

Enables alpha to coverage. Can only be used with MSAA-enabled rendering contexts (meaning when the renderer was
-created with antialias parameter set to true). Enabling this will smooth aliasing on clip plane edges and
-alphaTest-clipped edges.

-
false
-
- -
blendAlpha: number

Represents the alpha value of the constant blend color. This property has only an effect when using custom
-blending with ConstantAlphaFactor or OneMinusConstantAlphaFactor.

-
0
-
- -
blendColor: Color

Represent the RGB values of the constant blend color. This property has only an effect when using custom
-blending with ConstantColorFactor or OneMinusConstantColorFactor.

-
0x000000
-
- -

Blending destination. It's one of the blending mode constants defined in Three.js. Default is OneMinusSrcAlphaFactor.

-
THREE.OneMinusSrcAlphaFactor
-
- -
blendDstAlpha: null | number

The tranparency of the .blendDst. Default is null.

-
null
-
- -
blendEquation: BlendingEquation

Blending equation to use when applying blending. It's one of the constants defined in Three.js. Default is AddEquation.

-
THREE.AddEquation
-
- -
blendEquationAlpha: null | number

The tranparency of the .blendEquation. Default is null.

-
null
-
- -
blending: Blending

Which blending to use when displaying objects with this material. Default is NormalBlending.

-
THREE.NormalBlending
-
- -
blendSrc:
    | 200
    | 201
    | 202
    | 203
    | 204
    | 205
    | 206
    | 207
    | 208
    | 209
    | 210
    | 211
    | 212
    | 213
    | 214

Blending source. It's one of the blending mode constants defined in Three.js. Default is SrcAlphaFactor.

-
THREE.SrcAlphaFactor
-
- -
blendSrcAlpha: null | number

The tranparency of the .blendSrc. Default is null.

-
null
-
- -
clipIntersection: boolean

Changes the behavior of clipping planes so that only their intersection is clipped, rather than their union. Default is false.

-
false
-
- -
clippingPlanes: null | Plane[]

User-defined clipping planes specified as THREE.Plane objects in world space.
-These planes apply to the objects this material is attached to.
-Points in space whose signed distance to the plane is negative are clipped (not rendered).
-See the WebGL / clipping /intersection example. Default is null.

-
null
-
- -
clipShadows: boolean

Defines whether to clip shadows according to the clipping planes specified on this material. Default is false.

-
false
-
- -
colorWrite: boolean

Whether to render the material's color. This can be used in conjunction with a mesh's .renderOrder property to create invisible objects that occlude other objects. Default is true.

-
true
-
- -
defines: undefined | { [key: string]: any }

Custom defines to be injected into the shader. These are passed in form of an object literal, with key/value pairs. { MY_CUSTOM_DEFINE: '' , PI2: Math.PI * 2 }.
-The pairs are defined in both vertex and fragment shaders. Default is undefined.

-
undefined
-
- -
depthFunc: DepthModes

Which depth function to use. Default is LessEqualDepth. See the depth mode constants for all possible values.

-
THREE.LessEqualDepth
-
- -
depthTest: boolean

Whether to have depth test enabled when rendering this material. When the depth test is disabled, the depth write
-will also be implicitly disabled.

-
true
-
- -
depthWrite: boolean

Whether rendering this material has any effect on the depth buffer. Default is true.
-When drawing 2D overlays it can be useful to disable the depth writing in order to layer several things together without creating z-index artifacts.

-
true
-
- -
id: number

Unique number of this material instance.

-
stencilWrite: boolean

Whether rendering this material has any effect on the stencil buffer. Default is false.

-
false
-
- -
stencilFunc: StencilFunc

The stencil comparison function to use. Default is AlwaysStencilFunc. See stencil operation constants for all possible values.

-
THREE.AlwaysStencilFunc
-
- -
stencilRef: number

The value to use when performing stencil comparisons or stencil operations. Default is 0.

-
0
-
- -
stencilWriteMask: number

The bit mask to use when writing to the stencil buffer. Default is 0xFF.

-
0xff
-
- -
stencilFuncMask: number

The bit mask to use when comparing against the stencil buffer. Default is 0xFF.

-
0xff
-
- -
stencilFail: StencilOp

Which stencil operation to perform when the comparison function returns false. Default is KeepStencilOp. See the stencil operation constants for all possible values.

-
THREE.KeepStencilOp
-
- -
stencilZFail: StencilOp

Which stencil operation to perform when the comparison function returns true but the depth test fails.
-Default is KeepStencilOp.
-See the stencil operation constants for all possible values.

-
THREE.KeepStencilOp
-
- -
stencilZPass: StencilOp

Which stencil operation to perform when the comparison function returns true and the depth test passes.
-Default is KeepStencilOp.
-See the stencil operation constants for all possible values.

-
THREE.KeepStencilOp
-
- -
name: string

Material name. Default is an empty string.

-
''
-
- -
opacity: number

Opacity. Default is 1.

-
1
-
- -
polygonOffset: boolean

Whether to use polygon offset. Default is false. This corresponds to the POLYGON_OFFSET_FILL WebGL feature.

-
false
-
- -
polygonOffsetFactor: number

Sets the polygon offset factor. Default is 0.

-
0
-
- -
polygonOffsetUnits: number

Sets the polygon offset units. Default is 0.

-
0
-
- -
precision: null | "highp" | "mediump" | "lowp"

Override the renderer's default precision for this material. Can be "highp", "mediump" or "lowp". Defaults is null.

-
null
-
- -
premultipliedAlpha: boolean

Whether to premultiply the alpha (transparency) value. See WebGL / Materials / Transparency for an example of the difference. Default is false.

-
false
-
- -
forceSinglePass: boolean
false
-
- -
dithering: boolean

Whether to apply dithering to the color to remove the appearance of banding. Default is false.

-
false
-
- -
side: Side

Defines which of the face sides will be rendered - front, back or both.
-Default is THREE.FrontSide. Other options are THREE.BackSide and THREE.DoubleSide.

-

THREE.FrontSide

-
shadowSide: null | Side

Defines which of the face sides will cast shadows. Default is null.
-If null, the value is opposite that of side, above.

-
null
-
- -
toneMapped: boolean

Defines whether this material is tone mapped according to the renderer's
-toneMapping setting. It is ignored when rendering to a render target or using
-post processing.

-
true
-
- -
uuid: string

UUID of this material instance. This gets automatically assigned, so this shouldn't be edited.

-
vertexColors: boolean

Defines whether vertex coloring is used. Default is false.

-
false
-
- -
visible: boolean

Defines whether this material is visible. Default is true.

-
true
-
- -
userData: Record<string, any>

An object that can be used to store custom data about the Material. It should not hold references to functions as these will not be cloned.

-
{}
-
- -
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-
0
-
- -

Accessors

  • get alphaTest(): number
  • Gets the alpha value to be used when running an alpha test. Default is 0.

    -

    Returns number

    0
    -
    - -
  • set alphaTest(value: number): void
  • Sets the alpha value to be used when running an alpha test. Default is 0.

    -

    Parameters

    • value: number

    Returns void

    0
    -
    - -
  • set needsUpdate(value: boolean): void
  • Specifies that the material needs to be updated, WebGL wise. Set it to true if you made changes that need to be reflected in WebGL.
    -This property is automatically set to true when instancing a new material.

    -

    Parameters

    • value: boolean

    Returns void

    false
    -
    - -

Methods

  • Copy the parameters from the passed material into this material.

    -

    Parameters

    Returns this

  • An optional callback that is executed immediately before the material is used to render a 3D object.
    -Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
    -This callback is only supported in WebGLRenderer (not WebGPURenderer).

    -

    Parameters

    Returns void

  • An optional callback that is executed immediately before the shader program is compiled.
    -This function is called with the shader source code as a parameter.
    -Useful for the modification of built-in materials.
    -Unlike properties, the callback is not supported by .clone(), .copy() and .toJSON().
    -This callback is only supported in WebGLRenderer (not WebGPURenderer).

    -

    Parameters

    Returns void

  • In case onBeforeCompile is used, this callback can be used to identify values of settings used in onBeforeCompile, so three.js can reuse a cached shader or recompile the shader as needed.

    -

    Returns string

  • Convert the material to three.js JSON format.

    -

    Parameters

    • Optionalmeta: JSONMeta

      Object containing metadata such as textures or images for the material.

      -

    Returns MaterialJSON

  • Return a new material with the same parameters as this material.

    -

    Returns this

  • Frees the GPU-related resources allocated by this instance. Call this method whenever this instance is no longer
    -used in your app.

    -

    Material textures must be disposed of by the dispose() method of Texture.

    -

    Returns void

  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, SpriteMaterial>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, SpriteMaterial>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of the listener that gets removed.

      -
    • listener: EventListener<{ dispose: {} }[T], T, SpriteMaterial>

      The listener function that gets removed.

      -

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/StencilBuffer.html b/docs/classes/StencilBuffer.html deleted file mode 100644 index 5bfde78..0000000 --- a/docs/classes/StencilBuffer.html +++ /dev/null @@ -1,9 +0,0 @@ -StencilBuffer | VFX-JS

Class StencilBuffer

Constructors

  • Returns StencilBuffer

Methods

  • Parameters

    • stencilTest: boolean

    Returns void

  • Parameters

    • stencilMask: number

    Returns void

  • Parameters

    • stencilFunc: number
    • stencilRef: number
    • stencilMask: number

    Returns void

  • Parameters

    • stencilFail: number
    • stencilZFail: number
    • stencilZPass: number

    Returns void

  • Parameters

    • lock: boolean

    Returns void

  • Parameters

    • stencil: number

    Returns void

  • Returns void

diff --git a/docs/classes/Texture.html b/docs/classes/Texture.html deleted file mode 100644 index 8738487..0000000 --- a/docs/classes/Texture.html +++ /dev/null @@ -1,267 +0,0 @@ -Texture | VFX-JS

Class Texture

Create a Texture to apply to a surface or as a reflection or refraction map.

-

After the initial use of a texture, its dimensions, format, and type cannot be changed
-Instead, call .dispose() on the Texture and instantiate a new Texture.

-
// load a texture, set wrap mode to repeat
const texture = new THREE.TextureLoader().load("textures/water.jpg");
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set(4, 4); -
- -

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_ANISOTROPY: number

The Global default value for .anisotropy.

-

1.

-
DEFAULT_IMAGE: any

The Global default value for .image.

-

null.

-
DEFAULT_MAPPING: Mapping

The Global default value for .mapping.

-

THREE.UVMapping

-
isTexture: true

Read-only flag to check if a given object is of type Texture.

-

This is a constant value

-

true

-
id: number

Unique number for this Texture instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
source: Source

The data definition of a texture. A reference to the data source can be shared across textures.
-This is often useful in context of spritesheets where multiple textures render the same data
-but with different Texture transformations.

-
mipmaps:
    | undefined
    | CompressedTextureMipmap[]
    | CubeTexture[]
    | HTMLCanvasElement[]

Array of user-specified mipmaps

-

[]

-
mapping: AnyMapping

How the image is applied to the object.

-

All Texture types except THREE.CubeTexture expect the values be THREE.Mapping

-

value of THREE.Texture.DEFAULT_MAPPING

-
channel: number

Lets you select the uv attribute to map the texture to. 0 for uv, 1 for uv1, 2 for uv2 and 3 for
-uv3.

-
wrapS: Wrapping

This defines how the Texture is wrapped horizontally and corresponds to U in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-
wrapT: Wrapping

This defines how the Texture is wrapped vertically and corresponds to V in UV mapping.

-

for WEBGL1 - tiling of images in textures only functions if image dimensions are powers of two
-(2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, ...) in terms of pixels.
-Individual dimensions need not be equal, but each must be a power of two. This is a limitation of WebGL1, not three.js.
-WEBGL2 does not have this limitation.

-

THREE.ClampToEdgeWrapping

-

How the Texture is sampled when a texel covers more than one pixel.

-
-

THREE.LinearFilter

-

How the Texture is sampled when a texel covers less than one pixel.

-
-

THREE.LinearMipmapLinearFilter

-
anisotropy: number

The number of samples taken along the axis through the pixel that has the highest density of texels.

-

A higher value gives a less blurry result than a basic mipmap, at the cost of more Texture samples being used.

-

value of THREE.Texture.DEFAULT_ANISOTROPY. That is normally 1.

-

These define how elements of a 2D texture, or texels, are read by shaders.

-

All Texture types except THREE.DepthTexture and THREE.CompressedPixelFormat expect the values be THREE.PixelFormat

-
-

THREE.RGBAFormat.

-

This must correspond to the .format.

-

THREE.UnsignedByteType, is the type most used by Texture formats.

-
-

THREE.UnsignedByteType

-
internalFormat: null | PixelFormatGPU

The GPU Pixel Format allows the developer to specify how the data is going to be stored on the GPU.

-

The default value is obtained using a combination of .format and .type.

-
matrix: Matrix3

The uv-transform matrix for the texture.

-

When .matrixAutoUpdate property is true.
-Will be updated by the renderer from the properties:

- -

new THREE.Matrix3()

-
matrixAutoUpdate: boolean

Whether is to update the texture's uv-transform .matrix.

-

Set this to false if you are specifying the uv-transform matrix directly.

-

.matrix

-

true

-
offset: Vector2

How much a single repetition of the texture is offset from the beginning, in each direction U and V.

-

Typical range is 0.0 to 1.0.

-

new THREE.Vector2(0, 0)

-
repeat: Vector2

How many times the texture is repeated across the surface, in each direction U and V.

-

If repeat is set greater than 1 in either direction, the corresponding Wrap parameter should
-also be set to THREE.RepeatWrapping or THREE.MirroredRepeatWrapping to achieve the desired tiling effect.

-
-

new THREE.Vector2( 1, 1 )

-
center: Vector2

The point around which rotation occurs.

-

A value of (0.5, 0.5) corresponds to the center of the texture.

-

new THREE.Vector2( 0, 0 ), lower left.

-
rotation: number

How much the texture is rotated around the center point, in radians.

-

Positive values are counter-clockwise.

-

0

-
generateMipmaps: boolean

Whether to generate mipmaps, (if possible) for a texture.

-

Set this to false if you are creating mipmaps manually.

-
true
-
- -
premultiplyAlpha: boolean

If set to true, the alpha channel, if present, is multiplied into the color channels when the texture is uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

false

-
flipY: boolean

If set to true, the texture is flipped along the vertical axis when uploaded to the GPU.

-

Note that this property has no effect for ImageBitmap.
-You need to configure on bitmap creation instead. See THREE.ImageBitmapLoader | ImageBitmapLoader.

-

THREE.ImageBitmapLoader | ImageBitmapLoader.

-

true

-
unpackAlignment: number

Specifies the alignment requirements for the start of each pixel row in memory.

-

The allowable values are:

-
    -
  • 1 (byte-alignment)
  • -
  • 2 (rows aligned to even-numbered bytes)
  • -
  • 4 (word-alignment)
  • -
  • 8 (rows start on double-word boundaries).
  • -
-

glPixelStorei for more information.

-

4

-
colorSpace: string

The Textures | {@link Texture constants} page for details of other color spaces.

-

Textures containing color data should be annotated with SRGBColorSpace THREE.SRGBColorSpace or
-LinearSRGBColorSpace THREE.LinearSRGBColorSpace.

-
-

THREE.NoColorSpace

-
isRenderTargetTexture: boolean

Indicates whether a texture belongs to a render target or not

-

false

-
userData: Record<string, any>

An object that can be used to store custom data about the texture.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
version: number

This starts at 0 and counts how many times .needsUpdate is set to true.

-

Expects a Integer

-

0

-
pmremVersion: number

Indicates whether this texture should be processed by PMREMGenerator or not (only relevant for render target
-textures)

-
onUpdate: () => void

A callback function, called when the texture is updated (e.g., when needsUpdate has been set to true and then the texture is used).

-

Accessors

  • get image(): any
  • An image object, typically created using the THREE.TextureLoader.load | TextureLoader.load() method.

    -

    Returns any

    This can be any image (e.g., PNG, JPG, GIF, DDS) or video (e.g., MP4, OGG/OGV) type supported by three.js.

    -
  • set image(data: any): void
  • Parameters

    • data: any

    Returns void

  • set needsUpdate(value: boolean): void
  • Set this to true to trigger an update next time the texture is used. Particularly important for setting the wrap mode.

    -

    Parameters

    • value: boolean

    Returns void

  • set needsPMREMUpdate(value: boolean): void
  • Indicates whether this texture should be processed by THREE.PMREMGenerator or not.

    -

    Parameters

    • value: boolean

    Returns void

    Only relevant for render target textures.

    -

    false

    -

Methods

  • Update the texture's UV-transform .matrix from the texture properties
    -.offset,
    -.repeat,
    -.rotation and
    -.center.

    -

    Returns void

  • Make copy of the texture

    -

    Returns this

    Note this is not a "deep copy", the image is shared

    -
  • Parameters

    Returns this

  • Convert the texture to three.js JSON Object/Scene format.

    -

    Parameters

    • Optionalmeta: string | {}

      Optional object containing metadata.

      -

    Returns TextureJSON

  • Frees the GPU-related resources allocated by this instance

    -

    Returns void

    Call this method whenever this instance is no longer used in your app.

    -
  • Adds a listener to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Texture>

      The function that gets called when the event is fired.

      -

    Returns void

  • Checks if listener is added to an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of event to listen to.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Texture>

      The function that gets called when the event is fired.

      -

    Returns boolean

  • Removes a listener from an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • type: T

      The type of the listener that gets removed.

      -
    • listener: EventListener<{ dispose: {} }[T], T, Texture>

      The listener function that gets removed.

      -

    Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/TextureLoader.html b/docs/classes/TextureLoader.html deleted file mode 100644 index 4ff4ad1..0000000 --- a/docs/classes/TextureLoader.html +++ /dev/null @@ -1,33 +0,0 @@ -TextureLoader | VFX-JS

Class TextureLoader

Class for loading a texture.
-Unlike other loaders, this one emits events instead of using predefined callbacks. So if you're interested in getting notified when things happen, you need to add listeners to the object.

-

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_MATERIAL_NAME: string
crossOrigin: string
'anonymous'
-
- -
withCredentials: boolean
false
-
- -
path: string
''
-
- -
resourcePath: string
''
-
- -
requestHeader: { [header: string]: string }
{}
-
- -

Methods

  • Parameters

    • url: string
    • OptionalonLoad: (data: Texture) => void
    • OptionalonProgress: (event: ProgressEvent) => void
    • OptionalonError: (err: unknown) => void

    Returns Texture

  • Parameters

    Returns Promise<Texture>

  • Parameters

    • crossOrigin: string

    Returns this

  • Parameters

    • value: boolean

    Returns this

  • Parameters

    • path: string

    Returns this

  • Parameters

    • resourcePath: string

    Returns this

  • Parameters

    • requestHeader: { [header: string]: string }

    Returns this

diff --git a/docs/classes/Triangle.html b/docs/classes/Triangle.html deleted file mode 100644 index 4e6e0d8..0000000 --- a/docs/classes/Triangle.html +++ /dev/null @@ -1,36 +0,0 @@ -Triangle | VFX-JS

Class Triangle

Constructors

Properties

new THREE.Vector3()
-
- -
new THREE.Vector3()
-
- -
new THREE.Vector3()
-
- -

Methods

  • Parameters

    • points: Vector3[]
    • i0: number
    • i1: number
    • i2: number

    Returns this

  • Returns this

  • Parameters

    Returns this

  • Returns number

  • Parameters

    Returns Plane

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

  • Parameters

    Returns boolean

diff --git a/docs/classes/VFX.html b/docs/classes/VFX.html index ba7e5bb..6181e80 100644 --- a/docs/classes/VFX.html +++ b/docs/classes/VFX.html @@ -1,5 +1,5 @@ -VFX | VFX-JS

Class VFX

The main interface of VFX-JS.

-

Constructors

constructor +VFX | VFX-JS

Class VFX

The main interface of VFX-JS.

+

Constructors

Methods

add remove update @@ -7,14 +7,14 @@ stop destroy

Constructors

Methods

  • Register an element to track the position and render visual effects in the area.

    -

    Parameters

    Returns void

  • Remove the element from VFX and stop rendering the shader.

    -

    Parameters

    • element: HTMLElement

    Returns void

  • Update the texture for the given element.

    +

    Parameters

    Returns VFX

Methods

  • Register an element to track the position and render visual effects in the area.

    +

    Parameters

    Returns void

  • Remove the element from VFX and stop rendering the shader.

    +

    Parameters

    • element: HTMLElement

    Returns void

  • Update the texture for the given element.

    If the element is an HTMLImageElemnt or HTMLVideoElement, VFX-JS does nothing.
    Otherwise, VFX-JS captures a new snapshot of the DOM tree under the elemnt and udpate the WebGL texture with it.

    This is useful to apply effects to eleents whose contents change dynamically (e.g. input, textare etc).

    -

    Parameters

    • element: HTMLElement

    Returns Promise<void>

  • Stop rendering VFX.
    +

    Parameters

    • element: HTMLElement

    Returns Promise<void>

  • Start rendering VFX.

    +

    Returns void

+

Returns void

  • Destroy VFX and stop rendering.

    +

    Returns void

diff --git a/docs/classes/Vector2.html b/docs/classes/Vector2.html deleted file mode 100644 index ee39383..0000000 --- a/docs/classes/Vector2.html +++ /dev/null @@ -1,150 +0,0 @@ -Vector2 | VFX-JS

Class Vector2

2D vector.

-

Constructors

  • Parameters

    • Optionalx: number
    • Optionaly: number

    Returns Vector2

Properties

x: number
0
-
- -
y: number
0
-
- -
width: number
height: number
isVector2: true

Methods

  • Sets value of this vector.

    -

    Parameters

    • x: number
    • y: number

    Returns this

  • Sets the x and y values of this vector both equal to scalar.

    -

    Parameters

    • scalar: number

    Returns this

  • Sets X component of this vector.

    -

    Parameters

    • x: number

    Returns this

  • Sets Y component of this vector.

    -

    Parameters

    • y: number

    Returns this

  • Sets a component of this vector.

    -

    Parameters

    • index: number
    • value: number

    Returns this

  • Gets a component of this vector.

    -

    Parameters

    • index: number

    Returns number

  • Returns a new Vector2 instance with the same x and y values.

    -

    Returns this

  • Copies value of v to this vector.

    -

    Parameters

    Returns this

  • Adds v to this vector.

    -

    Parameters

    Returns this

  • Adds the scalar value s to this vector's x and y values.

    -

    Parameters

    • s: number

    Returns this

  • Adds the multiple of v and s to this vector.

    -

    Parameters

    Returns this

  • Subtracts v from this vector.

    -

    Parameters

    Returns this

  • Subtracts s from this vector's x and y components.

    -

    Parameters

    • s: number

    Returns this

  • Multiplies this vector by v.

    -

    Parameters

    Returns this

  • Multiplies this vector by scalar s.

    -

    Parameters

    • scalar: number

    Returns this

  • Divides this vector by v.

    -

    Parameters

    Returns this

  • Divides this vector by scalar s.
    -Set vector to ( 0, 0 ) if s == 0.

    -

    Parameters

    • s: number

    Returns this

  • Multiplies this vector (with an implicit 1 as the 3rd component) by m.

    -

    Parameters

    Returns this

  • If this vector's x or y value is greater than v's x or y value, replace that value with the corresponding min value.

    -

    Parameters

    Returns this

  • If this vector's x or y value is less than v's x or y value, replace that value with the corresponding max value.

    -

    Parameters

    Returns this

  • If this vector's x or y value is greater than the max vector's x or y value, it is replaced by the corresponding value.
    -If this vector's x or y value is less than the min vector's x or y value, it is replaced by the corresponding value.

    -

    Parameters

    • min: Vector2Like

      the minimum x and y values.

      -
    • max: Vector2Like

      the maximum x and y values in the desired range.

      -

    Returns this

  • If this vector's x or y values are greater than the max value, they are replaced by the max value.
    -If this vector's x or y values are less than the min value, they are replaced by the min value.

    -

    Parameters

    • min: number

      the minimum value the components will be clamped to.

      -
    • max: number

      the maximum value the components will be clamped to.

      -

    Returns this

  • If this vector's length is greater than the max value, it is replaced by the max value.
    -If this vector's length is less than the min value, it is replaced by the min value.

    -

    Parameters

    • min: number

      the minimum value the length will be clamped to.

      -
    • max: number

      the maximum value the length will be clamped to.

      -

    Returns this

  • The components of the vector are rounded down to the nearest integer value.

    -

    Returns this

  • The x and y components of the vector are rounded up to the nearest integer value.

    -

    Returns this

  • The components of the vector are rounded to the nearest integer value.

    -

    Returns this

  • The components of the vector are rounded towards zero (up if negative, down if positive) to an integer value.

    -

    Returns this

  • Inverts this vector.

    -

    Returns this

  • Computes dot product of this vector and v.

    -

    Parameters

    Returns number

  • Computes cross product of this vector and v.

    -

    Parameters

    Returns number

  • Computes squared length of this vector.

    -

    Returns number

  • Computes length of this vector.

    -

    Returns number

  • Computes the Manhattan length of this vector.

    -

    see Taxicab Geometry

    -

    Returns number

  • Normalizes this vector.

    -

    Returns this

  • computes the angle in radians with respect to the positive x-axis

    -

    Returns number

  • Returns the angle between this vector and vector v in radians.

    -

    Parameters

    Returns number

  • Computes distance of this vector to v.

    -

    Parameters

    Returns number

  • Computes squared distance of this vector to v.

    -

    Parameters

    Returns number

  • Computes the Manhattan length (distance) from this vector to the given vector v

    -

    see Taxicab Geometry

    -

    Parameters

    Returns number

  • Normalizes this vector and multiplies it by l.

    -

    Parameters

    • length: number

    Returns this

  • Linearly interpolates between this vector and v, where alpha is the distance along the line - alpha = 0 will be this vector, and alpha = 1 will be v.

    -

    Parameters

    • v: Vector2Like

      vector to interpolate towards.

      -
    • alpha: number

      interpolation factor in the closed interval [0, 1].

      -

    Returns this

  • Sets this vector to be the vector linearly interpolated between v1 and v2 where alpha is the distance along the line connecting the two vectors - alpha = 0 will be v1, and alpha = 1 will be v2.

    -

    Parameters

    • v1: Vector2Like

      the starting vector.

      -
    • v2: Vector2Like

      vector to interpolate towards.

      -
    • alpha: number

      interpolation factor in the closed interval [0, 1].

      -

    Returns this

  • Checks for strict equality of this vector and v.

    -

    Parameters

    Returns boolean

  • Sets this vector's x and y value from the provided array or array-like.

    -

    Parameters

    • array: number[] | ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array. Default is 0.

      -

    Returns this

  • Returns an array [x, y], or copies x and y into the provided array.

    -

    Parameters

    • Optionalarray: number[]

      (optional) array to store the vector to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns number[]

    The created or provided array.

    -
  • Returns an array [x, y], or copies x and y into the provided array.

    -

    Parameters

    • Optionalarray: Vector2Tuple

      (optional) array to store the vector to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: 0

      (optional) optional offset into the array.

      -

    Returns Vector2Tuple

    The created or provided array.

    -
  • Copies x and y into the provided array-like.

    -

    Parameters

    • array: ArrayLike<number>

      array-like to store the vector to.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns ArrayLike<number>

    The provided array-like.

    -
  • Sets this vector's x and y values from the attribute.

    -

    Parameters

    • attribute: BufferAttribute

      the source attribute.

      -
    • index: number

      index in the attribute.

      -

    Returns this

  • Rotates the vector around center by angle radians.

    -

    Parameters

    • center: Vector2Like

      the point around which to rotate.

      -
    • angle: number

      the angle to rotate, in radians.

      -

    Returns this

  • Sets this vector's x and y from Math.random

    -

    Returns this

  • Iterating through a Vector2 instance will yield its components (x, y) in the corresponding order.

    -

    Returns Iterator<number>

diff --git a/docs/classes/Vector3.html b/docs/classes/Vector3.html deleted file mode 100644 index 0eca2f7..0000000 --- a/docs/classes/Vector3.html +++ /dev/null @@ -1,143 +0,0 @@ -Vector3 | VFX-JS

Class Vector3

const a = new THREE.Vector3( 1, 0, 0 );
const b = new THREE.Vector3( 0, 1, 0 );
const c = new THREE.Vector3();
c.crossVectors( a, b ); -
- -

Constructors

  • Parameters

    • Optionalx: number
    • Optionaly: number
    • Optionalz: number

    Returns Vector3

Properties

x: number
0
-
- -
y: number
0
-
- -
z: number
0
-
- -
isVector3: true

Methods

  • Sets value of this vector.

    -

    Parameters

    • x: number
    • y: number
    • z: number

    Returns this

  • Sets all values of this vector.

    -

    Parameters

    • scalar: number

    Returns this

  • Sets x value of this vector.

    -

    Parameters

    • x: number

    Returns this

  • Sets y value of this vector.

    -

    Parameters

    • y: number

    Returns this

  • Sets z value of this vector.

    -

    Parameters

    • z: number

    Returns this

  • Parameters

    • index: number
    • value: number

    Returns this

  • Parameters

    • index: number

    Returns number

  • Clones this vector.

    -

    Returns this

  • Copies value of v to this vector.

    -

    Parameters

    Returns this

  • Adds v to this vector.

    -

    Parameters

    Returns this

  • Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Subtracts v from this vector.

    -

    Parameters

    Returns this

  • Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Multiplies this vector by scalar s.

    -

    Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Divides this vector by scalar s.
    -Set vector to ( 0, 0, 0 ) if s == 0.

    -

    Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • min: number
    • max: number

    Returns this

  • Parameters

    • min: number
    • max: number

    Returns this

  • Returns this

  • Returns this

  • Returns this

  • Returns this

  • Inverts this vector.

    -

    Returns this

  • Computes dot product of this vector and v.

    -

    Parameters

    Returns number

  • Computes squared length of this vector.

    -

    Returns number

  • Computes length of this vector.

    -

    Returns number

  • Computes the Manhattan length of this vector.

    -

    see Taxicab Geometry

    -

    Returns number

  • Normalizes this vector.

    -

    Returns this

  • Normalizes this vector and multiplies it by l.

    -

    Parameters

    • l: number

    Returns this

  • Parameters

    Returns this

  • Sets this vector to cross product of itself and v.

    -

    Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns number

  • Computes distance of this vector to v.

    -

    Parameters

    Returns number

  • Computes squared distance of this vector to v.

    -

    Parameters

    Returns number

  • Computes the Manhattan length (distance) from this vector to the given vector v

    -

    see Taxicab Geometry

    -

    Parameters

    Returns number

  • Parameters

    Returns this

  • Parameters

    • r: number
    • phi: number
    • theta: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    • radius: number
    • theta: number
    • y: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Sets this vector's x, y and z components from the x, y, and z components of the specified Euler Angle.

    -

    Parameters

    Returns this

  • Sets this vector's x, y and z components from the r, g, and b components of the specified
    -color.

    -

    Parameters

    Returns this

  • Checks for strict equality of this vector and v.

    -

    Parameters

    Returns boolean

  • Sets this vector's x, y and z value from the provided array or array-like.

    -

    Parameters

    • array: number[] | ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array. Default is 0.

      -

    Returns this

  • Returns an array [x, y, z], or copies x, y and z into the provided array.

    -

    Parameters

    • Optionalarray: number[]

      (optional) array to store the vector to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns number[]

    The created or provided array.

    -
  • Returns an array [x, y, z], or copies x, y and z into the provided array.

    -

    Parameters

    • Optionalarray: Vector3Tuple

      (optional) array to store the vector to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: 0

      (optional) optional offset into the array.

      -

    Returns Vector3Tuple

    The created or provided array.

    -
  • Copies x, y and z into the provided array-like.

    -

    Parameters

    • array: ArrayLike<number>

      array-like to store the vector to.

      -
    • Optionaloffset: number

      (optional) optional offset into the array-like.

      -

    Returns ArrayLike<number>

    The provided array-like.

    -
  • Sets this vector's x, y and z from Math.random

    -

    Returns this

  • Returns this

  • Iterating through a Vector3 instance will yield its components (x, y, z) in the corresponding order.

    -

    Returns Iterator<number>

diff --git a/docs/classes/Vector4.html b/docs/classes/Vector4.html deleted file mode 100644 index e5011d4..0000000 --- a/docs/classes/Vector4.html +++ /dev/null @@ -1,118 +0,0 @@ -Vector4 | VFX-JS

Class Vector4

4D vector.

-

Constructors

  • Parameters

    • Optionalx: number
    • Optionaly: number
    • Optionalz: number
    • Optionalw: number

    Returns Vector4

Properties

x: number
0
-
- -
y: number
0
-
- -
z: number
0
-
- -
w: number
0
-
- -
width: number
height: number
isVector4: true

Methods

  • Sets value of this vector.

    -

    Parameters

    • x: number
    • y: number
    • z: number
    • w: number

    Returns this

  • Sets all values of this vector.

    -

    Parameters

    • scalar: number

    Returns this

  • Sets X component of this vector.

    -

    Parameters

    • x: number

    Returns this

  • Sets Y component of this vector.

    -

    Parameters

    • y: number

    Returns this

  • Sets Z component of this vector.

    -

    Parameters

    • z: number

    Returns this

  • Sets w component of this vector.

    -

    Parameters

    • w: number

    Returns this

  • Parameters

    • index: number
    • value: number

    Returns this

  • Parameters

    • index: number

    Returns number

  • Clones this vector.

    -

    Returns this

  • Copies value of v to this vector.

    -

    Parameters

    Returns this

  • Adds v to this vector.

    -

    Parameters

    Returns this

  • Parameters

    • scalar: number

    Returns this

  • Parameters

    Returns this

  • Subtracts v from this vector.

    -

    Parameters

    Returns this

  • Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Multiplies this vector by scalar s.

    -

    Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Divides this vector by scalar s.
    -Set vector to ( 0, 0, 0 ) if s == 0.

    -

    Parameters

    • s: number

    Returns this

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • min: number
    • max: number

    Returns this

  • Returns this

  • Returns this

  • Returns this

  • Returns this

  • Inverts this vector.

    -

    Returns this

  • Computes dot product of this vector and v.

    -

    Parameters

    Returns number

  • Computes squared length of this vector.

    -

    Returns number

  • Computes length of this vector.

    -

    Returns number

  • Computes the Manhattan length of this vector.

    -

    see Taxicab Geometry

    -

    Returns number

  • Normalizes this vector.

    -

    Returns this

  • Normalizes this vector and multiplies it by l.

    -

    Parameters

    • length: number

    Returns this

  • Linearly interpolate between this vector and v with alpha factor.

    -

    Parameters

    Returns this

  • Checks for strict equality of this vector and v.

    -

    Parameters

    Returns boolean

  • Sets this vector's x, y, z and w value from the provided array or array-like.

    -

    Parameters

    • array: number[] | ArrayLike<number>

      the source array or array-like.

      -
    • Optionaloffset: number

      (optional) offset into the array. Default is 0.

      -

    Returns this

  • Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.

    -

    Parameters

    • Optionalarray: number[]

      (optional) array to store the vector to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: number

      (optional) optional offset into the array.

      -

    Returns number[]

    The created or provided array.

    -
  • Returns an array [x, y, z, w], or copies x, y, z and w into the provided array.

    -

    Parameters

    • Optionalarray: Vector4Tuple

      (optional) array to store the vector to. If this is not provided, a new array will be created.

      -
    • Optionaloffset: 0

      (optional) optional offset into the array.

      -

    Returns Vector4Tuple

    The created or provided array.

    -
  • Copies x, y, z and w into the provided array-like.

    -

    Parameters

    • array: ArrayLike<number>

      array-like to store the vector to.

      -
    • Optionaloffset: number

      (optional) optional offset into the array-like.

      -

    Returns ArrayLike<number>

    The provided array-like.

    -
  • Parameters

    Returns this

  • Sets this vector's x, y, z and w from Math.random

    -

    Returns this

  • Iterating through a Vector4 instance will yield its components (x, y, z, w) in the corresponding order.

    -

    Returns Iterator<number>

diff --git a/docs/classes/WebGLCapabilities.html b/docs/classes/WebGLCapabilities.html deleted file mode 100644 index 933161f..0000000 --- a/docs/classes/WebGLCapabilities.html +++ /dev/null @@ -1,20 +0,0 @@ -WebGLCapabilities | VFX-JS

Class WebGLCapabilities

Constructors

Properties

isWebGL2: boolean
getMaxAnisotropy: () => number
getMaxPrecision: (precision: string) => string
textureFormatReadable: (textureFormat: PixelFormat) => boolean
textureTypeReadable: (textureType: TextureDataType) => boolean
precision: string
logarithmicDepthBuffer: boolean
reverseDepthBuffer: boolean
maxTextures: number
maxVertexTextures: number
maxTextureSize: number
maxCubemapSize: number
maxAttributes: number
maxVertexUniforms: number
maxVaryings: number
maxFragmentUniforms: number
vertexTextures: boolean
maxSamples: number
diff --git a/docs/classes/WebGLExtensions.html b/docs/classes/WebGLExtensions.html deleted file mode 100644 index 47540a7..0000000 --- a/docs/classes/WebGLExtensions.html +++ /dev/null @@ -1,5 +0,0 @@ -WebGLExtensions | VFX-JS

Class WebGLExtensions

Constructors

Methods

Constructors

  • Parameters

    • gl: WebGLRenderingContext

    Returns WebGLExtensions

Methods

  • Parameters

    • name: string

    Returns boolean

  • Returns void

  • Parameters

    • name: string

    Returns any

diff --git a/docs/classes/WebGLInfo.html b/docs/classes/WebGLInfo.html deleted file mode 100644 index 160c6af..0000000 --- a/docs/classes/WebGLInfo.html +++ /dev/null @@ -1,21 +0,0 @@ -WebGLInfo | VFX-JS

Class WebGLInfo

An object with a series of statistical information about the graphics board memory and the rendering process.

-

Constructors

Properties

Methods

Constructors

  • Parameters

    • gl: WebGLRenderingContext

    Returns WebGLInfo

Properties

autoReset: boolean
true
-
- -
memory: { geometries: number; textures: number }
{ geometries: 0, textures: 0 }
-
- -
programs: null | WebGLProgram[]
null
-
- -
render: {
    calls: number;
    frame: number;
    lines: number;
    points: number;
    triangles: number;
}
{ frame: 0, calls: 0, triangles: 0, points: 0, lines: 0 }
-
- -

Methods

  • Parameters

    • count: number
    • mode: number
    • instanceCount: number

    Returns void

  • Returns void

diff --git a/docs/classes/WebGLObjects.html b/docs/classes/WebGLObjects.html deleted file mode 100644 index f8f1d86..0000000 --- a/docs/classes/WebGLObjects.html +++ /dev/null @@ -1,4 +0,0 @@ -WebGLObjects | VFX-JS

Class WebGLObjects

Constructors

Methods

Constructors

  • Parameters

    • gl: WebGLRenderingContext
    • geometries: any
    • attributes: any
    • info: any

    Returns WebGLObjects

Methods

  • Parameters

    • object: any

    Returns any

  • Returns void

diff --git a/docs/classes/WebGLProgram.html b/docs/classes/WebGLProgram.html deleted file mode 100644 index 6f8e2a7..0000000 --- a/docs/classes/WebGLProgram.html +++ /dev/null @@ -1,19 +0,0 @@ -WebGLProgram | VFX-JS

Class WebGLProgram

Constructors

  • Parameters

    Returns WebGLProgram

Properties

name: string
id: number
cacheKey: string
usedTimes: number
1
-
- -
program: any
vertexShader: WebGLShader
fragmentShader: WebGLShader
uniforms: any

Use getUniforms() instead.

-
attributes: any

Use getAttributes() instead.

-

Methods

  • Returns any

  • Returns void

diff --git a/docs/classes/WebGLProperties.html b/docs/classes/WebGLProperties.html deleted file mode 100644 index a886581..0000000 --- a/docs/classes/WebGLProperties.html +++ /dev/null @@ -1,7 +0,0 @@ -WebGLProperties | VFX-JS

Class WebGLProperties

Constructors

Properties

Constructors

Properties

has: (object: unknown) => boolean
get: (object: unknown) => unknown
remove: (object: unknown) => void
update: (object: unknown, key: unknown, value: unknown) => unknown
dispose: () => void
diff --git a/docs/classes/WebGLRenderList.html b/docs/classes/WebGLRenderList.html deleted file mode 100644 index ff2e21d..0000000 --- a/docs/classes/WebGLRenderList.html +++ /dev/null @@ -1,19 +0,0 @@ -WebGLRenderList | VFX-JS

Class WebGLRenderList

Constructors

Properties

Methods

Constructors

Properties

opaque: RenderItem[]
[]
-
- -
transparent: RenderItem[]
[]
-
- -
transmissive: RenderItem[]
[]
-
- -

Methods

  • Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    • opaqueSort: (a: any, b: any) => number
    • transparentSort: (a: any, b: any) => number

    Returns void

  • Returns void

diff --git a/docs/classes/WebGLRenderLists.html b/docs/classes/WebGLRenderLists.html deleted file mode 100644 index 52c3271..0000000 --- a/docs/classes/WebGLRenderLists.html +++ /dev/null @@ -1,4 +0,0 @@ -WebGLRenderLists | VFX-JS

Class WebGLRenderLists

Constructors

Methods

Constructors

Methods

  • Returns void

  • Parameters

    • scene: Scene
    • renderCallDepth: number

    Returns WebGLRenderList

diff --git a/docs/classes/WebGLRenderTarget.html b/docs/classes/WebGLRenderTarget.html deleted file mode 100644 index 4589daf..0000000 --- a/docs/classes/WebGLRenderTarget.html +++ /dev/null @@ -1,71 +0,0 @@ -WebGLRenderTarget | VFX-JS

Class WebGLRenderTarget<TTexture>

JavaScript events for custom objects

-
// Adding events to a custom object
class Car extends EventDispatcher {
start() {
this.dispatchEvent( { type: 'start', message: 'vroom vroom!' } );
}
};
// Using events with the custom object
const car = new Car();
car.addEventListener( 'start', ( event ) => {
alert( event.message );
} );
car.start(); -
- -

Type Parameters

Hierarchy (View Summary)

Constructors

Properties

isWebGLRenderTarget: true
isRenderTarget: true
width: number
height: number
depth: number
scissor: Vector4
scissorTest: boolean
false
-
- -
viewport: Vector4
textures: TTexture[]
depthBuffer: boolean
true
-
- -
stencilBuffer: boolean
false
-
- -
resolveDepthBuffer: boolean

Defines whether the depth buffer should be resolved when rendering into a multisampled render target.

-
true
-
- -
resolveStencilBuffer: boolean

Defines whether the stencil buffer should be resolved when rendering into a multisampled render target.
-This property has no effect when .resolveDepthBuffer is set to false.

-
true
-
- -
depthTexture: null | DepthTexture
null
-
- -
samples: number

Defines the count of MSAA samples. Can only be used with WebGL 2. Default is 0.

-
0
-
- -

Accessors

  • get texture(): TTexture
  • Returns TTexture

  • set texture(value: TTexture): void
  • Parameters

    Returns void

Methods

  • Parameters

    • width: number
    • height: number
    • Optionaldepth: number

    Returns void

  • Returns this

  • Returns void

  • Fire an event type.

    -

    Type Parameters

    • T extends "dispose"

    Parameters

    • event: BaseEvent<T> & { dispose: {} }[T]

      The event that gets fired.

      -

    Returns void

diff --git a/docs/classes/WebGLRenderer.html b/docs/classes/WebGLRenderer.html deleted file mode 100644 index 07108f0..0000000 --- a/docs/classes/WebGLRenderer.html +++ /dev/null @@ -1,230 +0,0 @@ -WebGLRenderer | VFX-JS

Class WebGLRenderer

The WebGL renderer displays your beautifully crafted scenes using WebGL, if your device supports it.
-This renderer has way better performance than CanvasRenderer.

-

see https://github.com/mrdoob/three.js/blob/master/src/renderers/WebGLRenderer.js|src/renderers/WebGLRenderer.js

-

Implements

Constructors

  • parameters is an optional object with properties defining the renderer's behavior.
    -The constructor also accepts no parameters at all.
    -In all cases, it will assume sane defaults when parameters are missing.

    -

    Parameters

    Returns WebGLRenderer

Properties

domElement: HTMLCanvasElement

A Canvas where the renderer draws its output.
-This is automatically created by the renderer in the constructor (if not provided already); you just need to add it to your page.

-
document.createElementNS( 'http://www.w3.org/1999/xhtml', 'canvas' )
-
- -
autoClear: boolean

Defines whether the renderer should automatically clear its output before rendering.

-
true
-
- -
autoClearColor: boolean

If autoClear is true, defines whether the renderer should clear the color buffer. Default is true.

-
true
-
- -
autoClearDepth: boolean

If autoClear is true, defines whether the renderer should clear the depth buffer. Default is true.

-
true
-
- -
autoClearStencil: boolean

If autoClear is true, defines whether the renderer should clear the stencil buffer. Default is true.

-
true
-
- -
debug: WebGLDebug

Debug configurations.

-
{ checkShaderErrors: true }
-
- -
sortObjects: boolean

Defines whether the renderer should sort objects. Default is true.

-
true
-
- -
clippingPlanes: Plane[]
[]
-
- -
localClippingEnabled: boolean
false
-
- -
extensions: WebGLExtensions
toneMapping: ToneMapping
THREE.NoToneMapping
-
- -
toneMappingExposure: number
1
-
- -
info: WebGLInfo
shadowMap: WebGLShadowMap
pixelRatio: number
capabilities: WebGLCapabilities
properties: WebGLProperties
renderLists: WebGLRenderLists
state: WebGLState
compile: (
    scene: Object3D,
    camera: Camera,
    targetScene?: null | Scene,
) => Set<Material>

Compiles all materials in the scene with the camera. This is useful to precompile shaders before the first
-rendering. If you want to add a 3D object to an existing scene, use the third optional parameter for applying the
-target scene.
-Note that the (target) scene's lighting should be configured before calling this method.

-
compileAsync: (
    scene: Object3D,
    camera: Camera,
    targetScene?: null | Scene,
) => Promise<Object3D>

Asynchronous version of compile(). The method returns a Promise that resolves when the given scene can be
-rendered without unnecessary stalling due to shader compilation.
-This method makes use of the KHR_parallel_shader_compile WebGL extension.

-
vr: boolean

Use .xr instead.

-
shadowMapEnabled: boolean

Use .shadowMap.enabled instead.

-
shadowMapType: ShadowMapType

Use .shadowMap.type instead.

-
shadowMapCullFace: CullFace

Use .shadowMap.cullFace instead.

-

Accessors

  • get outputColorSpace(): string
  • Color space used for output to HTMLCanvasElement. Supported values are
    -SRGBColorSpace and LinearSRGBColorSpace.

    -

    Returns string

    THREE.SRGBColorSpace.
    -
    - -
  • set outputColorSpace(colorSpace: string): void
  • Parameters

    • colorSpace: string

    Returns void

  • get coordinateSystem(): 2000
  • Returns 2000

Methods

  • Return the WebGL context.

    -

    Returns WebGLRenderingContext | WebGL2RenderingContext

  • Returns any

  • Returns void

  • Returns void

  • Returns number

    Use .capabilities.getMaxAnisotropy() instead.

    -
  • Returns string

    Use .capabilities.precision instead.

    -
  • Returns number

  • Parameters

    • value: number

    Returns void

  • Parameters

    Returns Vector2

  • Parameters

    • width: number
    • height: number
    • pixelRatio: number

    Returns void

  • Parameters

    Returns Vector2

  • Resizes the output canvas to (width, height), and also sets the viewport to fit that size, starting in (0, 0).

    -

    Parameters

    • width: number
    • height: number
    • OptionalupdateStyle: boolean

    Returns void

  • Parameters

    Returns Vector4

  • Copies the viewport into target.

    -

    Parameters

    Returns Vector4

  • Sets the viewport to render from (x, y) to (x + width, y + height).
    -(x, y) is the lower-left corner of the region.

    -

    Parameters

    • x: number | Vector4
    • Optionaly: number
    • Optionalwidth: number
    • Optionalheight: number

    Returns void

  • Copies the scissor area into target.

    -

    Parameters

    Returns Vector4

  • Sets the scissor area from (x, y) to (x + width, y + height).

    -

    Parameters

    • x: number | Vector4
    • Optionaly: number
    • Optionalwidth: number
    • Optionalheight: number

    Returns void

  • Returns true if scissor test is enabled; returns false otherwise.

    -

    Returns boolean

  • Enable the scissor test. When this is enabled, only the pixels within the defined scissor area will be affected by further renderer actions.

    -

    Parameters

    • enable: boolean

    Returns void

  • Sets the custom opaque sort function for the WebGLRenderLists. Pass null to use the default painterSortStable function.

    -

    Parameters

    • method: (a: any, b: any) => number

    Returns void

  • Sets the custom transparent sort function for the WebGLRenderLists. Pass null to use the default reversePainterSortStable function.

    -

    Parameters

    • method: (a: any, b: any) => number

    Returns void

  • Returns a THREE.Color instance with the current clear color.

    -

    Parameters

    Returns Color

  • Sets the clear color, using color for the color and alpha for the opacity.

    -

    Parameters

    Returns void

  • Returns a float with the current clear alpha. Ranges from 0 to 1.

    -

    Returns number

  • Parameters

    • alpha: number

    Returns void

  • Tells the renderer to clear its color, depth or stencil drawing buffer(s).
    -Arguments default to true

    -

    Parameters

    • Optionalcolor: boolean
    • Optionaldepth: boolean
    • Optionalstencil: boolean

    Returns void

  • Returns void

  • Returns void

  • Returns void

  • Parameters

    Returns void

  • Returns void

    Use .state.reset() instead.

    -
  • Returns void

  • A build in function that can be used instead of requestAnimationFrame. For WebXR projects this function must be used.

    -

    Parameters

    • callback: null | XRFrameRequestCallback

      The function will be called every available frame. If null is passed it will stop any already ongoing animation.

      -

    Returns void

  • Parameters

    • callback: () => void

    Returns void

    Use .setAnimationLoop() instead.

    -
  • Render a scene or an object using a camera.
    -The render is done to a previously specified WebGLRenderTarget#renderTarget .renderTarget set by calling
    -.setRenderTarget or to the canvas as usual.

    -

    By default render buffers are cleared before rendering but you can prevent this by setting the property
    -autoClear to false. If you want to prevent only certain buffers being cleared
    -you can set either the autoClearColor,
    -autoClearStencil or autoClearDepth
    -properties to false. To forcibly clear one ore more buffers call .clear.

    -

    Parameters

    Returns void

  • Returns the current active cube face.

    -

    Returns number

  • Returns the current active mipmap level.

    -

    Returns number

  • Returns the current render target. If no render target is set, null is returned.

    -

    Returns null | WebGLRenderTarget

  • Sets the active render target.

    -

    Parameters

    • renderTarget: null | WebGLRenderTarget | WebGLRenderTarget<Texture[]>

      The renderTarget that needs to be activated. When null is given, the canvas is set as the active render target instead.

      -
    • OptionalactiveCubeFace: number

      Specifies the active cube side (PX 0, NX 1, PY 2, NY 3, PZ 4, NZ 5) of WebGLCubeRenderTarget.

      -
    • OptionalactiveMipmapLevel: number

      Specifies the active mipmap level.

      -

    Returns void

  • Copies a region of the currently bound framebuffer into the selected mipmap level of the selected texture.
    -This region is defined by the size of the destination texture's mip level, offset by the input position.

    -

    Parameters

    • texture: Texture

      Specifies the destination texture.

      -
    • Optionalposition: null | Vector2

      Specifies the pixel offset from which to copy out of the framebuffer.

      -
    • Optionallevel: number

      Specifies the destination mipmap level of the texture.

      -

    Returns void

  • Copies the pixels of a texture in the bounds [srcRegion]Box3 in the destination texture starting from the
    -given position. 2D Texture, 3D Textures, or a mix of the two can be used as source and destination texture
    -arguments for copying between layers of 3d textures

    -

    The depthTexture and texture property of render targets are supported as well.

    -

    When using render target textures as srcTexture and dstTexture, you must make sure both render targets are
    -initialized e.g. via .initRenderTarget().

    -

    Parameters

    • srcTexture: Texture

      Specifies the source texture.

      -
    • dstTexture: Texture

      Specifies the destination texture.

      -
    • OptionalsrcRegion: null | Box2 | Box3

      Specifies the bounds

      -
    • OptionaldstPosition: null | Vector3 | Vector2

      Specifies the pixel offset into the dstTexture where the copy will occur.

      -
    • OptionalsrcLevel: number

      Specifies the source mipmap level of the texture.

      -
    • OptionaldstLevel: number

      Specifies the destination mipmap level of the texture.

      -

    Returns void

  • Parameters

    • srcTexture: Texture

      Specifies the source texture.

      -
    • dstTexture: Data3DTexture | DataArrayTexture

      Specifies the destination texture.

      -
    • OptionalsrcRegion: null | Box3

      Specifies the bounds

      -
    • OptionaldstPosition: null | Vector3

      Specifies the pixel offset into the dstTexture where the copy will occur.

      -
    • Optionallevel: number

      Specifies the destination mipmap level of the texture.

      -

    Returns void

    Use "copyTextureToTexture" instead.

    -

    Copies the pixels of a texture in the bounds srcRegion in the destination texture starting from the given
    -position. The depthTexture and texture property of 3D render targets are supported as well.

    -

    When using render target textures as srcTexture and dstTexture, you must make sure both render targets are
    -intitialized e.g. via .initRenderTarget().

    -
  • Initializes the given WebGLRenderTarget memory. Useful for initializing a render target so data can be copied
    -into it using WebGLRenderer.copyTextureToTexture before it has been rendered to.

    -

    Parameters

    Returns void

  • Initializes the given texture. Can be used to preload a texture rather than waiting until first render (which can cause noticeable lags due to decode and GPU upload overhead).

    -

    Parameters

    • texture: Texture

      The texture to Initialize.

      -

    Returns void

  • Can be used to reset the internal WebGL state.

    -

    Returns void

  • Returns any

    Use .capabilities.vertexTextures instead.

    -
  • Parameters

    • boolean: any

    Returns any

    Use .setScissorTest() instead.

    -
diff --git a/docs/classes/WebGLShadowMap.html b/docs/classes/WebGLShadowMap.html deleted file mode 100644 index 09518f0..0000000 --- a/docs/classes/WebGLShadowMap.html +++ /dev/null @@ -1,21 +0,0 @@ -WebGLShadowMap | VFX-JS

Class WebGLShadowMap

Constructors

Properties

Methods

Constructors

Properties

enabled: boolean
false
-
- -
autoUpdate: boolean
true
-
- -
needsUpdate: boolean
false
-
- -
THREE.PCFShadowMap
-
- -
cullFace: any

Use Material#shadowSide instead.

-

Methods

  • Parameters

    Returns void

diff --git a/docs/classes/WebGLState.html b/docs/classes/WebGLState.html deleted file mode 100644 index 4df04ca..0000000 --- a/docs/classes/WebGLState.html +++ /dev/null @@ -1,24 +0,0 @@ -WebGLState | VFX-JS

Class WebGLState

Constructors

  • Parameters

    Returns WebGLState

Properties

buffers: { color: ColorBuffer; depth: DepthBuffer; stencil: StencilBuffer }

Methods

  • Parameters

    • id: number

    Returns void

  • Parameters

    • id: number

    Returns void

  • Parameters

    Returns void

  • Parameters

    • program: any

    Returns boolean

  • Parameters

    • material: Material
    • frontFaceCW: boolean
    • hardwareClippingPlanes: number

    Returns void

  • Parameters

    • flipSided: boolean

    Returns void

  • Parameters

    Returns void

  • Parameters

    • width: number

    Returns void

  • Parameters

    • polygonoffset: boolean
    • Optionalfactor: number
    • Optionalunits: number

    Returns void

  • Parameters

    • scissorTest: boolean

    Returns void

  • Parameters

    • webglSlot: number

    Returns void

  • Parameters

    • webglType: number
    • webglTexture: any

    Returns void

  • Returns void

  • Parameters

    • target: number
    • level: number
    • internalformat: number
    • width: number
    • height: number
    • border: number
    • data: ArrayBufferView

    Returns void

  • Parameters

    • target: number
    • level: number
    • internalformat: number
    • width: number
    • height: number
    • border: number
    • format: number
    • type: number
    • pixels: null | ArrayBufferView

    Returns void

  • Parameters

    • target: number
    • level: number
    • internalformat: number
    • format: number
    • type: number
    • source: any

    Returns void

  • Parameters

    • target: number
    • level: number
    • internalformat: number
    • width: number
    • height: number
    • depth: number
    • border: number
    • format: number
    • type: number
    • pixels: any

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Returns void

diff --git a/docs/classes/WebGLTextures.html b/docs/classes/WebGLTextures.html deleted file mode 100644 index 7d9a4a5..0000000 --- a/docs/classes/WebGLTextures.html +++ /dev/null @@ -1,13 +0,0 @@ -WebGLTextures | VFX-JS

Class WebGLTextures

Constructors

Methods

  • Returns void

  • Returns void

  • Parameters

    • texture: any
    • slot: number

    Returns void

  • Parameters

    • texture: any
    • slot: number

    Returns void

  • Parameters

    • texture: any
    • slot: number

    Returns void

  • Parameters

    • texture: any
    • slot: number

    Returns void

  • Parameters

    • renderTarget: any

    Returns void

  • Parameters

    • renderTarget: any

    Returns void

  • Parameters

    • renderTarget: any

    Returns void

  • Parameters

    • texture: any
    • slot: number

    Returns void

  • Parameters

    • texture: any
    • slot: number

    Returns void

diff --git a/docs/classes/WebGLUniforms.html b/docs/classes/WebGLUniforms.html deleted file mode 100644 index 6cebf39..0000000 --- a/docs/classes/WebGLUniforms.html +++ /dev/null @@ -1,6 +0,0 @@ -WebGLUniforms | VFX-JS

Class WebGLUniforms

Constructors

  • Parameters

    Returns WebGLUniforms

Methods

  • Parameters

    • gl: WebGLRenderingContext
    • seq: any
    • values: any[]
    • textures: WebGLTextures

    Returns void

  • Parameters

    • seq: any
    • values: any[]

    Returns any[]

  • Parameters

    • gl: WebGLRenderingContext
    • name: string
    • value: any
    • textures: WebGLTextures

    Returns void

  • Parameters

    • gl: WebGLRenderingContext
    • object: any
    • name: string

    Returns void

diff --git a/docs/classes/WebGLUtils.html b/docs/classes/WebGLUtils.html deleted file mode 100644 index 00f8a2b..0000000 --- a/docs/classes/WebGLUtils.html +++ /dev/null @@ -1,3 +0,0 @@ -WebGLUtils | VFX-JS

Class WebGLUtils

Constructors

Methods

Constructors

  • Parameters

    • gl: WebGLRenderingContext | WebGL2RenderingContext
    • extensions: WebGLExtensions

    Returns WebGLUtils

Methods

diff --git a/docs/classes/WebXRController.html b/docs/classes/WebXRController.html deleted file mode 100644 index fe03360..0000000 --- a/docs/classes/WebXRController.html +++ /dev/null @@ -1,9 +0,0 @@ -WebXRController | VFX-JS

Class WebXRController

Constructors

Methods

  • Returns XRHandSpace

  • Returns XRGripSpace

  • Parameters

    Returns this

  • Parameters

    Returns this

diff --git a/docs/classes/WebXRManager.html b/docs/classes/WebXRManager.html deleted file mode 100644 index 62d345a..0000000 --- a/docs/classes/WebXRManager.html +++ /dev/null @@ -1,60 +0,0 @@ -WebXRManager | VFX-JS

Class WebXRManager

JavaScript events for custom objects

-
// Adding events to a custom object
class Car extends EventDispatcher {
start() {
this.dispatchEvent( { type: 'start', message: 'vroom vroom!' } );
}
};
// Using events with the custom object
const car = new Car();
car.addEventListener( 'start', ( event ) => {
alert( event.message );
} );
car.start(); -
- -

Hierarchy (View Summary)

Constructors

Properties

cameraAutoUpdate: boolean
true
-
- -
enabled: boolean
false
-
- -
isPresenting: boolean
false
-
- -
getController: (index: number) => XRTargetRaySpace
getControllerGrip: (index: number) => XRGripSpace
getHand: (index: number) => XRHandSpace
setFramebufferScaleFactor: (value: number) => void
setReferenceSpaceType: (value: XRReferenceSpaceType) => void
getReferenceSpace: () => null | XRReferenceSpace
setReferenceSpace: (value: XRReferenceSpace) => void
getBaseLayer: () => XRWebGLLayer | XRProjectionLayer
getBinding: () => XRWebGLBinding
getFrame: () => XRFrame
getSession: () => null | XRSession
setSession: (value: null | XRSession) => Promise<void>
getEnvironmentBlendMode: () => undefined | XREnvironmentBlendMode
getDepthTexture: () => null | Texture
updateCamera: (camera: PerspectiveCamera) => void
getCamera: () => WebXRArrayCamera
getFoveation: () => undefined | number
setFoveation: (value: number) => void
hasDepthSensing: () => boolean
getDepthSensingMesh: () => null | Mesh
setAnimationLoop: (callback: null | XRFrameRequestCallback) => void
dispose: () => void

Methods

diff --git a/docs/classes/XRAnchor.html b/docs/classes/XRAnchor.html deleted file mode 100644 index a7289ff..0000000 --- a/docs/classes/XRAnchor.html +++ /dev/null @@ -1,4 +0,0 @@ -XRAnchor | VFX-JS

Class XRAnchorAbstract

Implements

Implemented by

Constructors

Properties

Methods

Constructors

Properties

anchorSpace: XRSpace

Methods

  • Returns void

diff --git a/docs/classes/XRBoundedReferenceSpace.html b/docs/classes/XRBoundedReferenceSpace.html deleted file mode 100644 index ac641af..0000000 --- a/docs/classes/XRBoundedReferenceSpace.html +++ /dev/null @@ -1,30 +0,0 @@ -XRBoundedReferenceSpace | VFX-JS

Class XRBoundedReferenceSpaceAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

boundsGeometry: DOMPointReadOnly[]

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "reset"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRCompositionLayer.html b/docs/classes/XRCompositionLayer.html deleted file mode 100644 index 7e61bbf..0000000 --- a/docs/classes/XRCompositionLayer.html +++ /dev/null @@ -1,36 +0,0 @@ -XRCompositionLayer | VFX-JS

Class XRCompositionLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

blendTextureSourceAlpha: boolean
chromaticAberrationCorrection?: boolean
mipLevels: number
needsRedraw: boolean
space: XRSpace
onredraw: (evt: XRLayerEvent) => any

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "redraw"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRCubeLayer.html b/docs/classes/XRCubeLayer.html deleted file mode 100644 index 5c93d45..0000000 --- a/docs/classes/XRCubeLayer.html +++ /dev/null @@ -1,37 +0,0 @@ -XRCubeLayer | VFX-JS

Class XRCubeLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

orientation: DOMPointReadOnly
blendTextureSourceAlpha: boolean
chromaticAberrationCorrection?: boolean
mipLevels: number
needsRedraw: boolean
space: XRSpace
onredraw: (evt: XRLayerEvent) => any

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "redraw"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRCylinderLayer.html b/docs/classes/XRCylinderLayer.html deleted file mode 100644 index 59c4b4f..0000000 --- a/docs/classes/XRCylinderLayer.html +++ /dev/null @@ -1,40 +0,0 @@ -XRCylinderLayer | VFX-JS

Class XRCylinderLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

transform: XRRigidTransform
radius: number
centralAngle: number
aspectRatio: number
blendTextureSourceAlpha: boolean
chromaticAberrationCorrection?: boolean
mipLevels: number
needsRedraw: boolean
space: XRSpace
onredraw: (evt: XRLayerEvent) => any

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "redraw"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XREquirectLayer.html b/docs/classes/XREquirectLayer.html deleted file mode 100644 index e8c2463..0000000 --- a/docs/classes/XREquirectLayer.html +++ /dev/null @@ -1,41 +0,0 @@ -XREquirectLayer | VFX-JS

Class XREquirectLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

transform: XRRigidTransform
radius: number
centralHorizontalAngle: number
upperVerticalAngle: number
lowerVerticalAngle: number
blendTextureSourceAlpha: boolean
chromaticAberrationCorrection?: boolean
mipLevels: number
needsRedraw: boolean
space: XRSpace
onredraw: (evt: XRLayerEvent) => any

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "redraw"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRFrame.html b/docs/classes/XRFrame.html deleted file mode 100644 index 870b3b8..0000000 --- a/docs/classes/XRFrame.html +++ /dev/null @@ -1,30 +0,0 @@ -XRFrame | VFX-JS

Class XRFrameAbstract

Implements

Implemented by

Constructors

Properties

session: XRSession
predictedDisplayTime: number
trackedAnchors?: XRAnchorSet
createAnchor?: (
    pose: XRRigidTransform,
    space: XRSpace,
) => undefined | Promise<XRAnchor>
detectedPlanes?: XRPlaneSet

XRFrame is extended to contain detectedPlanes attribute which contains
-all planes that are still tracked in the frame.

-

The set is initially empty and will be populated by the update planes
-algorithm. If this attribute is accessed when the frame is not active,
-the user agent MUST throw InvalidStateError.

-
detectedMeshes?: XRMeshSet

XRFrame is extended to contain detectedMeshes attribute
-which contains all meshes that are still tracked in the frame.

-

The set is initially empty and will be populated by the update meshes algorithm.
-If this attribute is accessed when the frame is not active, the user agent
-MUST throw InvalidStateError.

-
getJointPose?: (
    joint: XRJointSpace,
    baseSpace: XRSpace,
) => undefined | XRJointPose

Methods

  • Provides the pose of space relative to baseSpace as an XRPose, at the time represented by
    -the XRFrame.

    -

    Parameters

    Returns undefined | XRPose

  • Provides the pose of the viewer relative to referenceSpace as an XRViewerPose, at the
    -XRFrame's time.

    -

    Parameters

    Returns undefined | XRViewerPose

diff --git a/docs/classes/XRGripSpace.html b/docs/classes/XRGripSpace.html deleted file mode 100644 index b875e19..0000000 --- a/docs/classes/XRGripSpace.html +++ /dev/null @@ -1,338 +0,0 @@ -XRGripSpace | VFX-JS

Class XRGripSpace

Its purpose is to make working with groups of objects syntactically clearer.

-

This is almost identical to an Object3D

-
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({
color: 0x00ff00
});
const cubeA = new THREE.Mesh(geometry, material);
cubeA.position.set(100, 100, 0);
const cubeB = new THREE.Mesh(geometry, material);
cubeB.position.set(-100, -100, 0);
//create a {@link Group} and add the two cubes
//These cubes can now be rotated / scaled etc as a {@link Group} * const {@link Group} = new THREE.Group();
group.add(cubeA);
group.add(cubeB);
scene.add(group); -
- -

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
hasLinearVelocity: boolean
linearVelocity: Vector3
hasAngularVelocity: boolean
angularVelocity: Vector3
isGroup: true

Read-only flag to check if a given object is of type Group.

-

This is a constant value

-

true

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
type: string

A Read-only string to check this object type.

-

This can be used to find a specific type of Object3D in a scene.
-Sub-classes will update this value.

-

Object3D

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a quaternion representing the rotation of the object in world space.

    -

    Parameters

    • target: Quaternion

      The result will be copied into this Quaternion.

      -

    Returns Quaternion

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/XRHand.html b/docs/classes/XRHand.html deleted file mode 100644 index cf6ace6..0000000 --- a/docs/classes/XRHand.html +++ /dev/null @@ -1,50 +0,0 @@ -XRHand | VFX-JS

Class XRHandAbstract

Hierarchy

Implements

Implemented by

Constructors

  • Returns XRHand

Properties

WRIST: number
THUMB_METACARPAL: number
THUMB_PHALANX_PROXIMAL: number
THUMB_PHALANX_DISTAL: number
THUMB_PHALANX_TIP: number
INDEX_METACARPAL: number
INDEX_PHALANX_PROXIMAL: number
INDEX_PHALANX_INTERMEDIATE: number
INDEX_PHALANX_DISTAL: number
INDEX_PHALANX_TIP: number
MIDDLE_METACARPAL: number
MIDDLE_PHALANX_PROXIMAL: number
MIDDLE_PHALANX_INTERMEDIATE: number
MIDDLE_PHALANX_DISTAL: number
MIDDLE_PHALANX_TIP: number
RING_METACARPAL: number
RING_PHALANX_PROXIMAL: number
RING_PHALANX_INTERMEDIATE: number
RING_PHALANX_DISTAL: number
RING_PHALANX_TIP: number
LITTLE_METACARPAL: number
LITTLE_PHALANX_PROXIMAL: number
LITTLE_PHALANX_INTERMEDIATE: number
LITTLE_PHALANX_DISTAL: number
LITTLE_PHALANX_TIP: number
size: number

the number of elements in the Map.

-
"[toStringTag]": string

Methods

  • Returns void

  • Parameters

    Returns boolean

    true if an element in the Map existed and has been removed, or false if the element does not exist.

    -
  • Executes a provided function once per each key/value pair in the Map, in insertion order.

    -

    Parameters

    Returns void

  • Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.

    -

    Parameters

    Returns undefined | XRJointSpace

    Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.

    -
  • Parameters

    Returns boolean

    boolean indicating whether an element with the specified key exists or not.

    -
  • Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.

    -

    Parameters

    Returns this

diff --git a/docs/classes/XRHandSpace.html b/docs/classes/XRHandSpace.html deleted file mode 100644 index ff81b0e..0000000 --- a/docs/classes/XRHandSpace.html +++ /dev/null @@ -1,336 +0,0 @@ -XRHandSpace | VFX-JS

Class XRHandSpace

Its purpose is to make working with groups of objects syntactically clearer.

-

This is almost identical to an Object3D

-
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({
color: 0x00ff00
});
const cubeA = new THREE.Mesh(geometry, material);
cubeA.position.set(100, 100, 0);
const cubeB = new THREE.Mesh(geometry, material);
cubeB.position.set(-100, -100, 0);
//create a {@link Group} and add the two cubes
//These cubes can now be rotated / scaled etc as a {@link Group} * const {@link Group} = new THREE.Group();
group.add(cubeA);
group.add(cubeB);
scene.add(group); -
- -

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
inputState: XRHandInputState
isGroup: true

Read-only flag to check if a given object is of type Group.

-

This is a constant value

-

true

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
type: string

A Read-only string to check this object type.

-

This can be used to find a specific type of Object3D in a scene.
-Sub-classes will update this value.

-

Object3D

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a quaternion representing the rotation of the object in world space.

    -

    Parameters

    • target: Quaternion

      The result will be copied into this Quaternion.

      -

    Returns Quaternion

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/XRHitTestResult.html b/docs/classes/XRHitTestResult.html deleted file mode 100644 index 5a7c39a..0000000 --- a/docs/classes/XRHitTestResult.html +++ /dev/null @@ -1,4 +0,0 @@ -XRHitTestResult | VFX-JS

Class XRHitTestResultAbstract

Implements

Implemented by

Constructors

Properties

Methods

Constructors

Properties

createAnchor?: (pose: XRRigidTransform) => undefined | Promise<XRAnchor>

Methods

  • Parameters

    Returns undefined | XRPose

diff --git a/docs/classes/XRHitTestSource.html b/docs/classes/XRHitTestSource.html deleted file mode 100644 index 41bb289..0000000 --- a/docs/classes/XRHitTestSource.html +++ /dev/null @@ -1,3 +0,0 @@ -XRHitTestSource | VFX-JS

Class XRHitTestSourceAbstract

Implements

Implemented by

Constructors

Methods

Constructors

Methods

  • Returns void

diff --git a/docs/classes/XRInputSource.html b/docs/classes/XRInputSource.html deleted file mode 100644 index 8878f29..0000000 --- a/docs/classes/XRInputSource.html +++ /dev/null @@ -1,9 +0,0 @@ -XRInputSource | VFX-JS

Class XRInputSourceAbstract

Implements

Implemented by

Constructors

Properties

handedness: XRHandedness
targetRayMode: XRTargetRayMode
targetRaySpace: XRSpace
gripSpace?: XRSpace
gamepad?: Gamepad
profiles: string[]
hand?: XRHand
diff --git a/docs/classes/XRInputSourceArray.html b/docs/classes/XRInputSourceArray.html deleted file mode 100644 index 78c0358..0000000 --- a/docs/classes/XRInputSourceArray.html +++ /dev/null @@ -1,8 +0,0 @@ -XRInputSourceArray | VFX-JS

Class XRInputSourceArrayAbstract

Implements

Implemented by

Indexable

Constructors

Properties

Methods

Constructors

Properties

length: number

Methods

  • Parameters

    Returns void

diff --git a/docs/classes/XRInputSourceEvent.html b/docs/classes/XRInputSourceEvent.html deleted file mode 100644 index 7146c31..0000000 --- a/docs/classes/XRInputSourceEvent.html +++ /dev/null @@ -1,64 +0,0 @@ -XRInputSourceEvent | VFX-JS

Class XRInputSourceEvent

XRInputSourceEvents are fired to indicate changes to the state of an XRInputSource.
-ref: https://immersive-web.github.io/webxr/#xrinputsourceevent-interface

-

Hierarchy

  • Event
    • XRInputSourceEvent

Constructors

Properties

NONE: 0
CAPTURING_PHASE: 1
AT_TARGET: 2
BUBBLING_PHASE: 3

Returns the type of event, e.g. "click", "hashchange", or "submit".

-

MDN Reference

-
frame: XRFrame
inputSource: XRInputSource
bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

-

MDN Reference

-
cancelBubble: boolean

MDN Reference

-
cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

-

MDN Reference

-
composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

-

MDN Reference

-
currentTarget: null | EventTarget

Returns the object whose event listener's callback is currently being invoked.

-

MDN Reference

-
defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

-

MDN Reference

-
eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

-

MDN Reference

-
isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

-

MDN Reference

-
returnValue: boolean

MDN Reference

-
srcElement: null | EventTarget

MDN Reference

-
target: null | EventTarget

Returns the object to which event is dispatched (its target).

-

MDN Reference

-
timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

-

MDN Reference

-
NONE: 0
CAPTURING_PHASE: 1
AT_TARGET: 2
BUBBLING_PHASE: 3

Methods

  • Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

    -

    MDN Reference

    -

    Returns EventTarget[]

  • Parameters

    • type: string
    • Optionalbubbles: boolean
    • Optionalcancelable: boolean

    Returns void

    MDN Reference

    -
  • If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

    -

    MDN Reference

    -

    Returns void

  • Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

    -

    MDN Reference

    -

    Returns void

  • When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

    -

    MDN Reference

    -

    Returns void

diff --git a/docs/classes/XRJointPose.html b/docs/classes/XRJointPose.html deleted file mode 100644 index 2e106fb..0000000 --- a/docs/classes/XRJointPose.html +++ /dev/null @@ -1,7 +0,0 @@ -XRJointPose | VFX-JS

Class XRJointPoseAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

radius: undefined | number
transform: XRRigidTransform
linearVelocity?: DOMPointReadOnly
angularVelocity?: DOMPointReadOnly
emulatedPosition: boolean
diff --git a/docs/classes/XRJointSpace-1.html b/docs/classes/XRJointSpace-1.html deleted file mode 100644 index 1acef1a..0000000 --- a/docs/classes/XRJointSpace-1.html +++ /dev/null @@ -1,335 +0,0 @@ -XRJointSpace | VFX-JS

Class XRJointSpace

Its purpose is to make working with groups of objects syntactically clearer.

-

This is almost identical to an Object3D

-
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({
color: 0x00ff00
});
const cubeA = new THREE.Mesh(geometry, material);
cubeA.position.set(100, 100, 0);
const cubeB = new THREE.Mesh(geometry, material);
cubeB.position.set(-100, -100, 0);
//create a {@link Group} and add the two cubes
//These cubes can now be rotated / scaled etc as a {@link Group} * const {@link Group} = new THREE.Group();
group.add(cubeA);
group.add(cubeB);
scene.add(group); -
- -

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
jointRadius: undefined | number
isGroup: true

Read-only flag to check if a given object is of type Group.

-

This is a constant value

-

true

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
type: string

A Read-only string to check this object type.

-

This can be used to find a specific type of Object3D in a scene.
-Sub-classes will update this value.

-

Object3D

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a quaternion representing the rotation of the object in world space.

    -

    Parameters

    • target: Quaternion

      The result will be copied into this Quaternion.

      -

    Returns Quaternion

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/XRJointSpace.html b/docs/classes/XRJointSpace.html deleted file mode 100644 index e392558..0000000 --- a/docs/classes/XRJointSpace.html +++ /dev/null @@ -1,18 +0,0 @@ -XRJointSpace | VFX-JS

Class XRJointSpaceAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

jointName: XRHandJoint

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRLayer.html b/docs/classes/XRLayer.html deleted file mode 100644 index 471bcca..0000000 --- a/docs/classes/XRLayer.html +++ /dev/null @@ -1,17 +0,0 @@ -XRLayer | VFX-JS

Class XRLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

  • Returns XRLayer

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRMesh.html b/docs/classes/XRMesh.html deleted file mode 100644 index 47f113a..0000000 --- a/docs/classes/XRMesh.html +++ /dev/null @@ -1,7 +0,0 @@ -XRMesh | VFX-JS

Class XRMeshAbstract

Implements

Implemented by

Constructors

Properties

meshSpace: XRSpace
vertices: Float32Array
indices: Uint32Array
lastChangedTime: number
semanticLabel?: string
diff --git a/docs/classes/XRPlane.html b/docs/classes/XRPlane.html deleted file mode 100644 index 39526b3..0000000 --- a/docs/classes/XRPlane.html +++ /dev/null @@ -1,7 +0,0 @@ -XRPlane | VFX-JS

Class XRPlaneAbstract

Implements

Implemented by

Constructors

Properties

orientation: XRPlaneOrientation
planeSpace: XRSpace
polygon: DOMPointReadOnly[]
lastChangedTime: number
semanticLabel?: string
diff --git a/docs/classes/XRPose.html b/docs/classes/XRPose.html deleted file mode 100644 index 47315f0..0000000 --- a/docs/classes/XRPose.html +++ /dev/null @@ -1,6 +0,0 @@ -XRPose | VFX-JS

Class XRPoseAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

transform: XRRigidTransform
linearVelocity?: DOMPointReadOnly
angularVelocity?: DOMPointReadOnly
emulatedPosition: boolean
diff --git a/docs/classes/XRProjectionLayer.html b/docs/classes/XRProjectionLayer.html deleted file mode 100644 index b03bc39..0000000 --- a/docs/classes/XRProjectionLayer.html +++ /dev/null @@ -1,41 +0,0 @@ -XRProjectionLayer | VFX-JS

Class XRProjectionLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

textureWidth: number
textureHeight: number
textureArrayLength: number
ignoreDepthValues: number
fixedFoveation: number
blendTextureSourceAlpha: boolean
chromaticAberrationCorrection?: boolean
mipLevels: number
needsRedraw: boolean
space: XRSpace
onredraw: (evt: XRLayerEvent) => any

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "redraw"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRQuadLayer.html b/docs/classes/XRQuadLayer.html deleted file mode 100644 index 176f698..0000000 --- a/docs/classes/XRQuadLayer.html +++ /dev/null @@ -1,39 +0,0 @@ -XRQuadLayer | VFX-JS

Class XRQuadLayerAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

transform: XRRigidTransform
width: number
height: number
blendTextureSourceAlpha: boolean
chromaticAberrationCorrection?: boolean
mipLevels: number
needsRedraw: boolean
space: XRSpace
onredraw: (evt: XRLayerEvent) => any

Methods

  • Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "redraw"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRRay.html b/docs/classes/XRRay.html deleted file mode 100644 index ddc328c..0000000 --- a/docs/classes/XRRay.html +++ /dev/null @@ -1,5 +0,0 @@ -XRRay | VFX-JS

Class XRRay

Constructors

Properties

Constructors

Properties

direction: DOMPointReadOnly
matrix: Float32Array
diff --git a/docs/classes/XRReferenceSpace.html b/docs/classes/XRReferenceSpace.html deleted file mode 100644 index 8eef9c1..0000000 --- a/docs/classes/XRReferenceSpace.html +++ /dev/null @@ -1,29 +0,0 @@ -XRReferenceSpace | VFX-JS

Class XRReferenceSpaceAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    • K extends "reset"

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRReferenceSpaceEvent.html b/docs/classes/XRReferenceSpaceEvent.html deleted file mode 100644 index bff9795..0000000 --- a/docs/classes/XRReferenceSpaceEvent.html +++ /dev/null @@ -1,58 +0,0 @@ -XRReferenceSpaceEvent | VFX-JS

Class XRReferenceSpaceEvent

Hierarchy

  • Event
    • XRReferenceSpaceEvent

Implements

Implemented by

Constructors

Properties

type: "reset"

Returns the type of event, e.g. "click", "hashchange", or "submit".

-

MDN Reference

-
referenceSpace: XRReferenceSpace
transform?: XRRigidTransform
bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

-

MDN Reference

-
cancelBubble: boolean

MDN Reference

-
cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

-

MDN Reference

-
composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

-

MDN Reference

-
currentTarget: null | EventTarget

Returns the object whose event listener's callback is currently being invoked.

-

MDN Reference

-
defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

-

MDN Reference

-
eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

-

MDN Reference

-
isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

-

MDN Reference

-
returnValue: boolean

MDN Reference

-
srcElement: null | EventTarget

MDN Reference

-
target: null | EventTarget

Returns the object to which event is dispatched (its target).

-

MDN Reference

-
timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

-

MDN Reference

-
NONE: 0
CAPTURING_PHASE: 1
AT_TARGET: 2
BUBBLING_PHASE: 3

Methods

  • Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

    -

    MDN Reference

    -

    Returns EventTarget[]

  • Parameters

    • type: string
    • Optionalbubbles: boolean
    • Optionalcancelable: boolean

    Returns void

    MDN Reference

    -
  • If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

    -

    MDN Reference

    -

    Returns void

  • Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

    -

    MDN Reference

    -

    Returns void

  • When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

    -

    MDN Reference

    -

    Returns void

diff --git a/docs/classes/XRRenderState.html b/docs/classes/XRRenderState.html deleted file mode 100644 index 910bb5c..0000000 --- a/docs/classes/XRRenderState.html +++ /dev/null @@ -1,7 +0,0 @@ -XRRenderState | VFX-JS

Class XRRenderStateAbstract

Implements

Implemented by

Constructors

Properties

baseLayer?: XRWebGLLayer
depthFar: number
depthNear: number
inlineVerticalFieldOfView?: number
layers?: XRLayer[]
diff --git a/docs/classes/XRRigidTransform.html b/docs/classes/XRRigidTransform.html deleted file mode 100644 index 3a21118..0000000 --- a/docs/classes/XRRigidTransform.html +++ /dev/null @@ -1,9 +0,0 @@ -XRRigidTransform | VFX-JS

Class XRRigidTransform

A transform described by a position and orientation. When interpreting an
-XRRigidTransform the orientation is always applied prior to the position.

-

ref: https://immersive-web.github.io/webxr/#xrrigidtransform-interface

-

Constructors

Properties

Constructors

Properties

orientation: DOMPointReadOnly
matrix: Float32Array
diff --git a/docs/classes/XRSession.html b/docs/classes/XRSession.html deleted file mode 100644 index 997d072..0000000 --- a/docs/classes/XRSession.html +++ /dev/null @@ -1,83 +0,0 @@ -XRSession | VFX-JS

Class XRSessionAbstract

Hierarchy

  • EventTarget
    • XRSession

Implements

Implemented by

Constructors

Properties

inputSources: XRInputSourceArray

Returns a list of this session's XRInputSources, each representing an input device
-used to control the camera and/or scene.

-
renderState: XRRenderState

object which contains options affecting how the imagery is rendered.
-This includes things such as the near and far clipping planes

-
environmentBlendMode: XREnvironmentBlendMode
visibilityState: XRVisibilityState
frameRate?: number
supportedFrameRates?: Float32Array
enabledFeatures?: string[]
isSystemKeyboardSupported: boolean
oninputsourceschange: XRInputSourcesChangeEventHandler
onvisibilitychange: XRSessionEventHandler
onframeratechange: XRSessionEventHandler
requestHitTestSource?: (
    options: XRHitTestOptionsInit,
) => undefined | Promise<XRHitTestSource>
requestHitTestSourceForTransientInput?: (
    options: XRTransientInputHitTestOptionsInit,
) => undefined | Promise<XRTransientInputHitTestSource>
requestHitTest?: (
    ray: XRRay,
    referenceSpace: XRReferenceSpace,
) => undefined | Promise<XRHitResult[]>
domOverlayState?: XRDOMOverlayState
depthUsage?: XRDepthUsage
depthDataFormat?: XRDepthDataFormat

Methods

  • Removes a callback from the animation frame painting callback from
    -XRSession's set of animation frame rendering callbacks, given the
    -identifying handle returned by a previous call to requestAnimationFrame().

    -

    Parameters

    • id: number

    Returns void

  • Ends the WebXR session. Returns a promise which resolves when the
    -session has been shut down.

    -

    Returns Promise<void>

  • Schedules the specified method to be called the next time the user agent
    -is working on rendering an animation frame for the WebXR device. Returns an
    -integer value which can be used to identify the request for the purposes of
    -canceling the callback using cancelAnimationFrame(). This method is comparable
    -to the Window.requestAnimationFrame() method.

    -

    Parameters

    Returns number

  • Parameters

    Returns Promise<void>

  • Parameters

    • rate: number

    Returns Promise<void>

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Type Parameters

    Parameters

    Returns void

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • XRSession is extended to contain the initiateRoomCapture method which,
    -if supported, will ask the XR Compositor to capture the current room layout.
    -It is up to the XRCompositor if this will replace or augment the set of tracked planes.
    -The user agent MAY also ignore this call, for instance if it doesn’t support a manual room
    -capture more or if it determines that the room is already set up.
    -The initiateRoomCapture method MUST only be able to be called once per XRSession.

    -

    Returns Promise<undefined>

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRSessionEvent.html b/docs/classes/XRSessionEvent.html deleted file mode 100644 index c38117f..0000000 --- a/docs/classes/XRSessionEvent.html +++ /dev/null @@ -1,63 +0,0 @@ -XRSessionEvent | VFX-JS

Class XRSessionEvent

XRSessionEvents are fired to indicate changes to the state of an XRSession.
-ref: https://immersive-web.github.io/webxr/#xrsessionevent-interface

-

Hierarchy (View Summary)

Constructors

Properties

NONE: 0
CAPTURING_PHASE: 1
AT_TARGET: 2
BUBBLING_PHASE: 3
session: XRSession
bubbles: boolean

Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.

-

MDN Reference

-
cancelBubble: boolean

MDN Reference

-
cancelable: boolean

Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.

-

MDN Reference

-
composed: boolean

Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.

-

MDN Reference

-
currentTarget: null | EventTarget

Returns the object whose event listener's callback is currently being invoked.

-

MDN Reference

-
defaultPrevented: boolean

Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.

-

MDN Reference

-
eventPhase: number

Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.

-

MDN Reference

-
isTrusted: boolean

Returns true if event was dispatched by the user agent, and false otherwise.

-

MDN Reference

-
returnValue: boolean

MDN Reference

-
srcElement: null | EventTarget

MDN Reference

-
target: null | EventTarget

Returns the object to which event is dispatched (its target).

-

MDN Reference

-
timeStamp: number

Returns the event's timestamp as the number of milliseconds measured relative to the time origin.

-

MDN Reference

-
type: string

Returns the type of event, e.g. "click", "hashchange", or "submit".

-

MDN Reference

-
NONE: 0
CAPTURING_PHASE: 1
AT_TARGET: 2
BUBBLING_PHASE: 3

Methods

  • Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget.

    -

    MDN Reference

    -

    Returns EventTarget[]

  • Parameters

    • type: string
    • Optionalbubbles: boolean
    • Optionalcancelable: boolean

    Returns void

    MDN Reference

    -
  • If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.

    -

    MDN Reference

    -

    Returns void

  • Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.

    -

    MDN Reference

    -

    Returns void

  • When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.

    -

    MDN Reference

    -

    Returns void

diff --git a/docs/classes/XRSpace.html b/docs/classes/XRSpace.html deleted file mode 100644 index 85a6871..0000000 --- a/docs/classes/XRSpace.html +++ /dev/null @@ -1,17 +0,0 @@ -XRSpace | VFX-JS

Class XRSpaceAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

  • Returns XRSpace

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRSubImage.html b/docs/classes/XRSubImage.html deleted file mode 100644 index 4f5c4c8..0000000 --- a/docs/classes/XRSubImage.html +++ /dev/null @@ -1,3 +0,0 @@ -XRSubImage | VFX-JS

Class XRSubImageAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

Constructors

Properties

viewport: XRViewport
diff --git a/docs/classes/XRTargetRaySpace.html b/docs/classes/XRTargetRaySpace.html deleted file mode 100644 index 09bf902..0000000 --- a/docs/classes/XRTargetRaySpace.html +++ /dev/null @@ -1,338 +0,0 @@ -XRTargetRaySpace | VFX-JS

Class XRTargetRaySpace

Its purpose is to make working with groups of objects syntactically clearer.

-

This is almost identical to an Object3D

-
const geometry = new THREE.BoxGeometry(1, 1, 1);
const material = new THREE.MeshBasicMaterial({
color: 0x00ff00
});
const cubeA = new THREE.Mesh(geometry, material);
cubeA.position.set(100, 100, 0);
const cubeB = new THREE.Mesh(geometry, material);
cubeB.position.set(-100, -100, 0);
//create a {@link Group} and add the two cubes
//These cubes can now be rotated / scaled etc as a {@link Group} * const {@link Group} = new THREE.Group();
group.add(cubeA);
group.add(cubeB);
scene.add(group); -
- -

Hierarchy (View Summary)

Constructors

Properties

DEFAULT_UP: Vector3

The default up direction for objects, also used as the default position for THREE.DirectionalLight | DirectionalLight,
-THREE.HemisphereLight | HemisphereLight and THREE.Spotlight | Spotlight (which creates lights shining from the top down).

-

new THREE.Vector3( 0, 1, 0)

-
DEFAULT_MATRIX_AUTO_UPDATE: boolean

The default setting for matrixAutoUpdate for newly created Object3Ds.

-

true

-
DEFAULT_MATRIX_WORLD_AUTO_UPDATE: boolean

The default setting for matrixWorldAutoUpdate for newly created Object3Ds.

-

true

-
hasLinearVelocity: boolean
linearVelocity: Vector3
hasAngularVelocity: boolean
angularVelocity: Vector3
isGroup: true

Read-only flag to check if a given object is of type Group.

-

This is a constant value

-

true

-
isObject3D: true

Flag to check if a given object is of type Object3D.

-

This is a constant value

-

true

-
id: number

Unique number for this Object3D instance.

-

Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.
-Expects a Integer

-
uuid: string

UUID of this object instance.

-

This gets automatically assigned and shouldn't be edited.

-
name: string

Optional name of the object

-

(doesn't need to be unique).

-

""

-
type: string

A Read-only string to check this object type.

-

This can be used to find a specific type of Object3D in a scene.
-Sub-classes will update this value.

-

Object3D

-
parent: null | Object3D

Object's parent in the scene graph.

-

An object can have at most one parent.

-

null

-
children: Object3D[]

Array with object's children.

-

THREE.Object3DGroup | Group for info on manually grouping objects.

-

[]

-

This is used by the lookAt method, for example, to determine the orientation of the result.

-

Object3D.DEFAULT_UP - that is (0, 1, 0).

-
position: Vector3

Object's local position.

-

new THREE.Vector3() - that is (0, 0, 0).

-
rotation: Euler

Object's local rotation (Euler angles), in radians.

-

new THREE.Euler() - that is (0, 0, 0, Euler.DEFAULT_ORDER).

-
quaternion: Quaternion

Object's local rotation as a THREE.Quaternion | Quaternion.

-

new THREE.Quaternion() - that is (0, 0, 0, 1).

-
scale: Vector3

The object's local scale.

-

new THREE.Vector3( 1, 1, 1 )

-
modelViewMatrix: Matrix4

new THREE.Matrix4()

-
normalMatrix: Matrix3

new THREE.Matrix3()

-
matrix: Matrix4

The local transform matrix.

-

new THREE.Matrix4()

-
matrixWorld: Matrix4

The global transform of the object.

-

If the Object3D has no parent, then it's identical to the local transform THREE.Object3D.matrix | .matrix.

-

new THREE.Matrix4()

-
matrixAutoUpdate: boolean

When this is set, it calculates the matrix of position, (rotation or quaternion) and
-scale every frame and also recalculates the matrixWorld property.

-

DEFAULT_MATRIX_AUTO_UPDATE - that is (true).

-
matrixWorldAutoUpdate: boolean

If set, then the renderer checks every frame if the object and its children need matrix updates.
-When it isn't, then you have to maintain all matrices in the object and its children yourself.

-

DEFAULT_MATRIX_WORLD_AUTO_UPDATE - that is (true).

-
matrixWorldNeedsUpdate: boolean

When this is set, it calculates the matrixWorld in that frame and resets this property to false.

-

false

-
layers: Layers

The layer membership of the object.

-

The object is only visible if it has at least one layer in common with the THREE.Object3DCamera | Camera in use.
-This property can also be used to filter out unwanted objects in ray-intersection tests when using THREE.Raycaster | Raycaster.

-

new THREE.Layers()

-
visible: boolean

Object gets rendered if true.

-

true

-
castShadow: boolean

Whether the object gets rendered into shadow map.

-

false

-
receiveShadow: boolean

Whether the material receives shadows.

-

false

-
frustumCulled: boolean

When this is set, it checks every frame if the object is in the frustum of the camera before rendering the object.
-If set to false the object gets rendered every frame even if it is not in the frustum of the camera.

-

true

-
renderOrder: number

This value allows the default rendering order of scene graph
-objects to be overridden although opaque and transparent objects remain sorted independently.

-

When this property is set for an instance of Group, all descendants objects will be sorted and rendered together.
-Sorting is from lowest to highest renderOrder.

-

0

-
animations: AnimationClip[]

Array with object's animation clips.

-

[]

-
userData: Record<string, any>

An object that can be used to store custom data about the Object3D.

-

It should not hold references to functions as these will not be cloned.

-

{}

-
customDepthMaterial?: Material

Custom depth material to be used when rendering to the depth map.

-

Can only be used in context of meshes.
-When shadow-casting with a THREE.DirectionalLight | DirectionalLight or THREE.SpotLight | SpotLight,
-if you are modifying vertex positions in the vertex shader you must specify a customDepthMaterial for proper shadows.

-

undefined

-
customDistanceMaterial?: Material

Same as customDepthMaterial, but used with THREE.Object3DPointLight | PointLight.

-

undefined

-

Methods

  • An optional callback that is executed immediately before a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered to a shadow map.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, shadowCamera, geometry,
    -depthMaterial, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately before a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • An optional callback that is executed immediately after a 3D object is rendered.

    -

    Parameters

    Returns void

    This function is called with the following parameters: renderer, scene, camera, geometry, material, group.
    -Please notice that this callback is only executed for renderable 3D objects. Meaning 3D objects which
    -define their visual appearance with geometries and materials like instances of Mesh, Line,
    -Points or Sprite. Instances of Object3D, Group or Bone are not renderable
    -and thus this callback is not executed for such objects.

    -
  • Applies the matrix transform to the object and updates the object's position, rotation and scale.

    -

    Parameters

    Returns void

  • Applies the rotation represented by the quaternion to the object.

    -

    Parameters

    Returns this

  • Calls THREE.Quaternion.setFromAxisAngle | setFromAxisAngle(axis, angle) on the .quaternion.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      Angle in radians. Expects a Float

      -

    Returns void

  • Calls THREE.Quaternion.setFromEuler | setFromEuler(euler) on the .quaternion.

    -

    Parameters

    • euler: Euler

      Euler angle specifying rotation amount.

      -

    Returns void

  • Calls THREE.Quaternion.setFromRotationMatrix | setFromRotationMatrix(m) on the .quaternion.

    -

    Parameters

    • m: Matrix4

      Rotate the quaternion by the rotation component of the matrix.

      -

    Returns void

    Note that this assumes that the upper 3x3 of m is a pure rotation matrix (i.e, unscaled).

    -
  • Rotate an object along an axis in object space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Rotate an object along an axis in world space.

    -

    Parameters

    • axis: Vector3

      A normalized vector in world space.

      -
    • angle: number

      The angle in radians. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized
    -Method Assumes no rotated parent.

    -
  • Rotates the object around x axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around y axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Rotates the object around z axis in local space.

    -

    Parameters

    • angle: number

    Returns this

  • Translate an object by distance along an axis in object space

    -

    Parameters

    • axis: Vector3

      A normalized vector in object space.

      -
    • distance: number

      The distance to translate. Expects a Float

      -

    Returns this

    The axis is assumed to be normalized.

    -
  • Translates object along x axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along y axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Translates object along z axis in object space by distance units.

    -

    Parameters

    • distance: number

      Expects a Float

      -

    Returns this

  • Converts the vector from this object's local space to world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in this object's local space.

      -

    Returns Vector3

  • Converts the vector from world space to this object's local space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space.

      -

    Returns Vector3

  • Rotates the object to face a point in world space.

    -

    Parameters

    • vector: Vector3

      A vector representing a position in world space to look at.

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Rotates the object to face a point in world space.

    -

    Parameters

    • x: number

      Expects a Float

      -
    • y: number

      Expects a Float

      -
    • z: number

      Expects a Float

      -

    Returns void

    This method does not support objects having non-uniformly-scaled parent(s).

    -
  • Adds another Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be added
    -Any current parent on an object passed in here will be removed, since an Object3D can have at most one parent.

    -
      -
    • attach
    • -
    • THREE.Group | Group for info on manually grouping objects.
    • -
    -
  • Removes a Object3D as child of this Object3D.

    -

    Parameters

    Returns this

    An arbitrary number of objects may be removed.

    -

    THREE.Group | Group for info on manually grouping objects.

    -
  • Removes this object from its current parent.

    -

    Returns this

  • Removes all child objects.

    -

    Returns this

  • Adds a Object3D as a child of this, while maintaining the object's world transform.

    -

    Parameters

    Returns this

    Note: This method does not support scene graphs having non-uniformly-scaled nodes(s).

    -

    add

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching id.

    -

    Parameters

    • id: number

      Unique number of the object instance. Expects a Integer

      -

    Returns undefined | Object3D

    Note that ids are assigned in chronological order: 1, 2, 3, ..., incrementing by one for each new object.

    -

    id

    -
  • Searches through an object and its children, starting with the object itself, and returns the first with a matching name.

    -

    Parameters

    • name: string

      String to match to the children's Object3D.name property.

      -

    Returns undefined | Object3D

    Note that for most objects the name is an empty string by default
    -You will have to set it manually to make use of this method.

    -
  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      the property name to search for.

      -
    • value: any

      value of the given property.

      -

    Returns undefined | Object3D

  • Searches through an object and its children, starting with the object itself,
    -and returns the first with a property that matches the value given.

    -

    Parameters

    • name: string

      The property name to search for.

      -
    • value: any

      Value of the given property.

      -
    • OptionaloptionalTarget: Object3D[]

      target to set the result. Otherwise a new Array is instantiated. If set, you must clear
      -this array prior to each call (i.e., array.length = 0;).

      -

    Returns Object3D[]

  • Returns a vector representing the position of the object in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a quaternion representing the rotation of the object in world space.

    -

    Parameters

    • target: Quaternion

      The result will be copied into this Quaternion.

      -

    Returns Quaternion

  • Returns a vector of the scaling factors applied to the object for each axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Returns a vector representing the direction of object's positive z-axis in world space.

    -

    Parameters

    • target: Vector3

      The result will be copied into this Vector3.

      -

    Returns Vector3

  • Abstract (empty) method to get intersections between a casted ray and this object

    -

    Parameters

    Returns void

    Subclasses such as THREE.Mesh | Mesh, THREE.Line | Line, and THREE.Points | Points implement this method in order to use raycasting.

    -

    THREE.Raycaster | Raycaster

    -

    () => {}

    -
  • Executes the callback on this object and all descendants.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Like traverse, but the callback will only be executed for visible objects

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Descendants of invisible objects are not traversed.
    -Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Executes the callback on all ancestors.

    -

    Parameters

    • callback: (object: Object3D) => any

      A function with as first argument an Object3D object.

      -

    Returns void

    Note: Modifying the scene graph inside the callback is discouraged.

    -
  • Updates local transform.

    -

    Returns void

  • Updates the global transform of the object.
    -And will update the object descendants if .matrixWorldNeedsUpdate is set to true or if the force parameter is set to true.

    -

    Parameters

    • Optionalforce: boolean

      A boolean that can be used to bypass .matrixWorldAutoUpdate, to recalculate the world matrix of the object and descendants on the current frame.
      -Useful if you cannot wait for the renderer to update it on the next frame, assuming .matrixWorldAutoUpdate set to true.

      -

    Returns void

  • Updates the global transform of the object.

    -

    Parameters

    • updateParents: boolean

      Recursively updates global transform of ancestors.

      -
    • updateChildren: boolean

      Recursively updates global transform of descendants.

      -

    Returns void

  • Returns a clone of this object and optionally all descendants.

    -

    Parameters

    • Optionalrecursive: boolean

      If true, descendants of the object are also cloned. Default true

      -

    Returns this

  • Copies the given object into this object.

    -

    Parameters

    • object: Object3D
    • Optionalrecursive: boolean

      If set to true, descendants of the object are copied next to the existing ones. If set to
      -false, descendants are left unchanged. Default is true.

      -

    Returns this

    Event listeners and user-defined callbacks (.onAfterRender and .onBeforeRender) are not copied.

    -
diff --git a/docs/classes/XRTransientInputHitTestResult.html b/docs/classes/XRTransientInputHitTestResult.html deleted file mode 100644 index 01cc899..0000000 --- a/docs/classes/XRTransientInputHitTestResult.html +++ /dev/null @@ -1,5 +0,0 @@ -XRTransientInputHitTestResult | VFX-JS

Class XRTransientInputHitTestResult

Constructors

Properties

Constructors

Properties

inputSource: XRInputSource
results: readonly XRHitTestResult[]
diff --git a/docs/classes/XRTransientInputHitTestSource.html b/docs/classes/XRTransientInputHitTestSource.html deleted file mode 100644 index b186e84..0000000 --- a/docs/classes/XRTransientInputHitTestSource.html +++ /dev/null @@ -1,3 +0,0 @@ -XRTransientInputHitTestSource | VFX-JS

Class XRTransientInputHitTestSourceAbstract

Implements

Implemented by

Constructors

Methods

Constructors

Methods

  • Returns void

diff --git a/docs/classes/XRView.html b/docs/classes/XRView.html deleted file mode 100644 index ad3c9dc..0000000 --- a/docs/classes/XRView.html +++ /dev/null @@ -1,7 +0,0 @@ -XRView | VFX-JS

Class XRViewAbstract

Implements

Implemented by

Constructors

Properties

eye: XREye
projectionMatrix: Float32Array
transform: XRRigidTransform
recommendedViewportScale?: number

Methods

  • Parameters

    • scale: number

    Returns void

diff --git a/docs/classes/XRViewerPose.html b/docs/classes/XRViewerPose.html deleted file mode 100644 index 42db370..0000000 --- a/docs/classes/XRViewerPose.html +++ /dev/null @@ -1,7 +0,0 @@ -XRViewerPose | VFX-JS

Class XRViewerPoseAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

views: readonly XRView[]
transform: XRRigidTransform
linearVelocity?: DOMPointReadOnly
angularVelocity?: DOMPointReadOnly
emulatedPosition: boolean
diff --git a/docs/classes/XRViewport.html b/docs/classes/XRViewport.html deleted file mode 100644 index 7c865c6..0000000 --- a/docs/classes/XRViewport.html +++ /dev/null @@ -1,6 +0,0 @@ -XRViewport | VFX-JS

Class XRViewportAbstract

Implements

Implemented by

Constructors

Properties

Constructors

Properties

x: number
y: number
width: number
height: number
diff --git a/docs/classes/XRWebGLBinding.html b/docs/classes/XRWebGLBinding.html deleted file mode 100644 index de5bf1f..0000000 --- a/docs/classes/XRWebGLBinding.html +++ /dev/null @@ -1,11 +0,0 @@ -XRWebGLBinding | VFX-JS

Class XRWebGLBinding

Constructors

  • Parameters

    • session: XRSession
    • context: WebGLRenderingContext

    Returns XRWebGLBinding

Properties

nativeProjectionScaleFactor: number

Methods

diff --git a/docs/classes/XRWebGLLayer.html b/docs/classes/XRWebGLLayer.html deleted file mode 100644 index 2e09c23..0000000 --- a/docs/classes/XRWebGLLayer.html +++ /dev/null @@ -1,28 +0,0 @@ -XRWebGLLayer | VFX-JS

Class XRWebGLLayer

A layer which provides a WebGL framebuffer to render into, enabling hardware accelerated
-rendering of 3D graphics to be presented on the XR device. *
-ref: https://immersive-web.github.io/webxr/#xrwebgllayer-interface

-

Hierarchy (View Summary)

Constructors

  • Parameters

    Returns XRWebGLLayer

Properties

antialias: boolean
ignoreDepthValues: boolean
fixedFoveation?: number
framebuffer: WebGLFramebuffer
framebufferWidth: number
framebufferHeight: number

Methods

  • Parameters

    Returns number

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/classes/XRWebGLSubImage.html b/docs/classes/XRWebGLSubImage.html deleted file mode 100644 index e03f861..0000000 --- a/docs/classes/XRWebGLSubImage.html +++ /dev/null @@ -1,8 +0,0 @@ -XRWebGLSubImage | VFX-JS

Class XRWebGLSubImageAbstract

Hierarchy (View Summary)

Implements

Implemented by

Constructors

Properties

colorTexture: WebGLTexture
depthStencilTexture: WebGLTexture
imageIndex: number
textureWidth: number
textureHeight: number
viewport: XRViewport
diff --git a/docs/classes/default.html b/docs/classes/default.html deleted file mode 100644 index 868d3cb..0000000 --- a/docs/classes/default.html +++ /dev/null @@ -1,149 +0,0 @@ -default | VFX-JS

Class default

This class stores data for an attribute (such as vertex positions, face indices, normals, colors, UVs, and any custom attributes )
-associated with a THREE.BufferGeometry | BufferGeometry, which allows for more efficient passing of data to the GPU

-

When working with vector-like data, the .fromBufferAttribute( attribute, index ) helper methods on
-THREE.Vector2.fromBufferAttribute | Vector2,
-THREE.Vector3.fromBufferAttribute | Vector3,
-THREE.Vector4.fromBufferAttribute | Vector4, and
-THREE.Color.fromBufferAttribute | Color classes may be helpful.

-
-

Hierarchy (View Summary)

Constructors

Properties

isStorageBufferAttribute: true
name: string

Optional name for this attribute instance.

-
''
-
- -
array: TypedArray

The TypedArray holding data stored in the buffer.

-

TypedArray

-
itemSize: number

The length of vectors that are being stored in the array.

-

Expects a Integer

-
usage: Usage

Defines the intended usage pattern of the data store for optimization purposes.
-Corresponds to the usage parameter of
-WebGLRenderingContext.bufferData.

-

After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

-
-

THREE.StaticDrawUsage | THREE.StaticDrawUsage.

-

Configures the bound GPU type for use in shaders. Either FloatType or IntType, default is FloatType.

-

Note: this only has an effect for integer arrays and is not configurable for float arrays. For lower precision
-float types, see https://threejs.org/docs/#api/en/core/bufferAttributeTypes/BufferAttributeTypes.

-
updateRanges: { start: number; count: number }[]

This can be used to only update some components of stored vectors (for example, just the component related to
-color). Use the .addUpdateRange function to add ranges to this array.

-

Type declaration

  • start: number

    Position at which to start update.

    -
  • count: number

    The number of components to update.

    -
version: number

A version number, incremented every time the needsUpdate property is set to true.

-

Expects a Integer

-

0

-
normalized: boolean

Indicates how the underlying data in the buffer maps to the values in the GLSL shader code.

-

constructor above for details.

-

false

-
count: number

Represents the number of items this buffer attribute stores. It is internally computed by dividing the
-array's length by the itemSize. Read-only
-property.

-
isBufferAttribute: true

Read-only flag to check if a given object is of type BufferAttribute.

-

This is a constant value

-

true

-
onUploadCallback: () => void

A callback function that is executed after the Renderer has transferred the attribute array data to the GPU.

-

Accessors

  • set needsUpdate(value: boolean): void
  • Flag to indicate that this attribute has changed and should be re-sent to the GPU.
    -Set this to true when you modify the value of the array.

    -

    Parameters

    • value: boolean

    Returns void

    Setting this to true also increments the version.

    -

Methods

  • Sets the value of the onUploadCallback property.

    -

    Parameters

    • callback: () => void

      function that is executed after the Renderer has transferred the attribute array data to the GPU.

      -

    Returns this

    -
  • Set usage

    -

    Parameters

    Returns this

    After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.

    -
    -
  • Adds a range of data in the data array to be updated on the GPU. Adds an object describing the range to the
    -.updateRanges array.

    -

    Parameters

    • start: number
    • count: number

    Returns void

  • Clears the .updateRanges array.

    -

    Returns void

  • Copy a vector from bufferAttribute[index2] to array[index1].

    -

    Parameters

    Returns this

  • Copy the array given here (which can be a normal array or TypedArray) into array.

    -

    Parameters

    Returns this

    TypedArray.set for notes on requirements if copying a TypedArray.

    -
  • Returns the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number

    Returns number

  • Sets the given component of the vector at the given index.

    -

    Parameters

    • index: number
    • component: number
    • value: number

    Returns void

  • Returns the x component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the x component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number

    Returns this

  • Returns the y component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the y component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • y: number

    Returns this

  • Returns the z component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the z component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Returns the w component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -

    Returns number

  • Sets the w component of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • z: number

    Returns this

  • Sets the x and y components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number

    Returns this

  • Sets the x, y and z components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number
    • z: number

    Returns this

  • Sets the x, y, z and w components of the vector at the given index.

    -

    Parameters

    • index: number

      Expects a Integer

      -
    • x: number
    • y: number
    • z: number
    • w: number

    Returns this

diff --git a/docs/hierarchy.html b/docs/hierarchy.html deleted file mode 100644 index 9dff51d..0000000 --- a/docs/hierarchy.html +++ /dev/null @@ -1 +0,0 @@ -VFX-JS
diff --git a/docs/index.html b/docs/index.html index 75f5289..4624611 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,4 +1,4 @@ -VFX-JS

VFX-JS

VFX-JS API docs

VFX-JS

VFX-JS API docs

@@ -16,4 +16,4 @@

For more examples, visit the website:
https://amagi.dev/vfx-js/

-
+
diff --git a/docs/interfaces/AddEventListenerOptions.html b/docs/interfaces/AddEventListenerOptions.html deleted file mode 100644 index fe15e1f..0000000 --- a/docs/interfaces/AddEventListenerOptions.html +++ /dev/null @@ -1,5 +0,0 @@ -AddEventListenerOptions | VFX-JS

Interface AddEventListenerOptions

interface AddEventListenerOptions {
    once?: boolean;
    passive?: boolean;
    signal?: AbortSignal;
    capture?: boolean;
}

Hierarchy (View Summary)

Properties

once?: boolean
passive?: boolean
signal?: AbortSignal
capture?: boolean
diff --git a/docs/interfaces/AnimationClipJSON.html b/docs/interfaces/AnimationClipJSON.html deleted file mode 100644 index 0542c68..0000000 --- a/docs/interfaces/AnimationClipJSON.html +++ /dev/null @@ -1,6 +0,0 @@ -AnimationClipJSON | VFX-JS

Interface AnimationClipJSON

interface AnimationClipJSON {
    name: string;
    duration: number;
    tracks: KeyframeTrackJSON[];
    uuid: string;
    blendMode: AnimationBlendMode;
}

Properties

name: string
duration: number
uuid: string
diff --git a/docs/interfaces/ArrayBufferView.html b/docs/interfaces/ArrayBufferView.html deleted file mode 100644 index f7afea9..0000000 --- a/docs/interfaces/ArrayBufferView.html +++ /dev/null @@ -1,7 +0,0 @@ -ArrayBufferView | VFX-JS

Interface ArrayBufferView<TArrayBuffer>

interface ArrayBufferView<
    TArrayBuffer extends ArrayBufferLike = ArrayBufferLike,
> {
    buffer: TArrayBuffer;
    byteLength: number;
    byteOffset: number;
}

Type Parameters

Properties

buffer: TArrayBuffer

The ArrayBuffer instance referenced by the array.

-
byteLength: number

The length in bytes of the array.

-
byteOffset: number

The offset in bytes of the array.

-
diff --git a/docs/interfaces/ArrayLike.html b/docs/interfaces/ArrayLike.html deleted file mode 100644 index 78bc33a..0000000 --- a/docs/interfaces/ArrayLike.html +++ /dev/null @@ -1,2 +0,0 @@ -ArrayLike | VFX-JS

Interface ArrayLike<T>

interface ArrayLike<T> {
    length: number;
    readonly [n: number]: T;
}

Type Parameters

  • T

Indexable

  • readonly [n: number]: T

Properties

Properties

length: number
diff --git a/docs/interfaces/BaseEvent.html b/docs/interfaces/BaseEvent.html deleted file mode 100644 index 4bf948b..0000000 --- a/docs/interfaces/BaseEvent.html +++ /dev/null @@ -1,3 +0,0 @@ -BaseEvent | VFX-JS

Interface BaseEvent<TEventType>

The minimal basic Event that can be dispatched by a <>.

-
interface BaseEvent<TEventType extends string = string> {
    type: TEventType;
}

Type Parameters

  • TEventType extends string = string

Properties

Properties

diff --git a/docs/interfaces/BufferAttributeJSON.html b/docs/interfaces/BufferAttributeJSON.html deleted file mode 100644 index 72603a8..0000000 --- a/docs/interfaces/BufferAttributeJSON.html +++ /dev/null @@ -1,7 +0,0 @@ -BufferAttributeJSON | VFX-JS

Interface BufferAttributeJSON

interface BufferAttributeJSON {
    itemSize: number;
    type: string;
    array: number[];
    normalized: boolean;
    name?: string;
    usage?: Usage;
}

Properties

itemSize: number
type: string
array: number[]
normalized: boolean
name?: string
usage?: Usage
diff --git a/docs/interfaces/BufferGeometryJSON.html b/docs/interfaces/BufferGeometryJSON.html deleted file mode 100644 index 671b6d4..0000000 --- a/docs/interfaces/BufferGeometryJSON.html +++ /dev/null @@ -1,7 +0,0 @@ -BufferGeometryJSON | VFX-JS

Interface BufferGeometryJSON

interface BufferGeometryJSON {
    metadata?: { version: number; type: string; generator: string };
    uuid: string;
    type: string;
    name?: string;
    userData?: Record<string, unknown>;
    data?: {
        attributes: Record<string, BufferAttributeJSON>;
        index?: { type: string; array: number[] };
        morphAttributes?: Record<string, BufferAttributeJSON[]>;
        morphTargetsRelative?: boolean;
        groups?: GeometryGroup[];
        boundingSphere?: { center: Vector3Tuple; radius: number };
    };
}

Properties

metadata?: { version: number; type: string; generator: string }
uuid: string
type: string
name?: string
userData?: Record<string, unknown>
data?: {
    attributes: Record<string, BufferAttributeJSON>;
    index?: { type: string; array: number[] };
    morphAttributes?: Record<string, BufferAttributeJSON[]>;
    morphTargetsRelative?: boolean;
    groups?: GeometryGroup[];
    boundingSphere?: { center: Vector3Tuple; radius: number };
}
diff --git a/docs/interfaces/CompressedTextureMipmap.html b/docs/interfaces/CompressedTextureMipmap.html deleted file mode 100644 index 12f3d5b..0000000 --- a/docs/interfaces/CompressedTextureMipmap.html +++ /dev/null @@ -1,4 +0,0 @@ -CompressedTextureMipmap | VFX-JS

Interface CompressedTextureMipmap

interface CompressedTextureMipmap {
    data: TypedArray;
    width: number;
    height: number;
}

Properties

Properties

width: number
height: number
diff --git a/docs/interfaces/CurveJSON.html b/docs/interfaces/CurveJSON.html deleted file mode 100644 index 3a81156..0000000 --- a/docs/interfaces/CurveJSON.html +++ /dev/null @@ -1,4 +0,0 @@ -CurveJSON | VFX-JS

Interface CurveJSON

interface CurveJSON {
    metadata: { version: number; type: string; generator: string };
    arcLengthDivisions: number;
    type: string;
}

Hierarchy (View Summary)

Properties

metadata: { version: number; type: string; generator: string }
arcLengthDivisions: number
type: string
diff --git a/docs/interfaces/CurvePathJSON.html b/docs/interfaces/CurvePathJSON.html deleted file mode 100644 index 4cd3172..0000000 --- a/docs/interfaces/CurvePathJSON.html +++ /dev/null @@ -1,6 +0,0 @@ -CurvePathJSON | VFX-JS

Interface CurvePathJSON

interface CurvePathJSON {
    autoClose: boolean;
    curves: CurveJSON[];
    metadata: { version: number; type: string; generator: string };
    arcLengthDivisions: number;
    type: string;
}

Hierarchy (View Summary)

Properties

autoClose: boolean
curves: CurveJSON[]
metadata: { version: number; type: string; generator: string }
arcLengthDivisions: number
type: string
diff --git a/docs/interfaces/DOMMatrix2DInit.html b/docs/interfaces/DOMMatrix2DInit.html deleted file mode 100644 index d4254dc..0000000 --- a/docs/interfaces/DOMMatrix2DInit.html +++ /dev/null @@ -1,13 +0,0 @@ -DOMMatrix2DInit | VFX-JS

Interface DOMMatrix2DInit

interface DOMMatrix2DInit {
    a?: number;
    b?: number;
    c?: number;
    d?: number;
    e?: number;
    f?: number;
    m11?: number;
    m12?: number;
    m21?: number;
    m22?: number;
    m41?: number;
    m42?: number;
}

Hierarchy (View Summary)

Properties

a? -b? -c? -d? -e? -f? -m11? -m12? -m21? -m22? -m41? -m42? -

Properties

a?: number
b?: number
c?: number
d?: number
e?: number
f?: number
m11?: number
m12?: number
m21?: number
m22?: number
m41?: number
m42?: number
diff --git a/docs/interfaces/DOMMatrixInit.html b/docs/interfaces/DOMMatrixInit.html deleted file mode 100644 index 878e54e..0000000 --- a/docs/interfaces/DOMMatrixInit.html +++ /dev/null @@ -1,24 +0,0 @@ -DOMMatrixInit | VFX-JS

Interface DOMMatrixInit

interface DOMMatrixInit {
    is2D?: boolean;
    m13?: number;
    m14?: number;
    m23?: number;
    m24?: number;
    m31?: number;
    m32?: number;
    m33?: number;
    m34?: number;
    m43?: number;
    m44?: number;
    a?: number;
    b?: number;
    c?: number;
    d?: number;
    e?: number;
    f?: number;
    m11?: number;
    m12?: number;
    m21?: number;
    m22?: number;
    m41?: number;
    m42?: number;
}

Hierarchy (View Summary)

Properties

Properties

is2D?: boolean
m13?: number
m14?: number
m23?: number
m24?: number
m31?: number
m32?: number
m33?: number
m34?: number
m43?: number
m44?: number
a?: number
b?: number
c?: number
d?: number
e?: number
f?: number
m11?: number
m12?: number
m21?: number
m22?: number
m41?: number
m42?: number
diff --git a/docs/interfaces/DOMPoint.html b/docs/interfaces/DOMPoint.html deleted file mode 100644 index 2c2b2ef..0000000 --- a/docs/interfaces/DOMPoint.html +++ /dev/null @@ -1,13 +0,0 @@ -DOMPoint | VFX-JS

Interface DOMPoint

interface DOMPoint {
    w: number;
    x: number;
    y: number;
    z: number;
    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
    toJSON(): any;
}

Hierarchy (View Summary)

Properties

w -x -y -z -

Methods

Properties

w: number
x: number
y: number
z: number

Methods

diff --git a/docs/interfaces/DOMPointInit.html b/docs/interfaces/DOMPointInit.html deleted file mode 100644 index cf972e5..0000000 --- a/docs/interfaces/DOMPointInit.html +++ /dev/null @@ -1,5 +0,0 @@ -DOMPointInit | VFX-JS

Interface DOMPointInit

interface DOMPointInit {
    w?: number;
    x?: number;
    y?: number;
    z?: number;
}

Properties

w? -x? -y? -z? -

Properties

w?: number
x?: number
y?: number
z?: number
diff --git a/docs/interfaces/DOMPointReadOnly.html b/docs/interfaces/DOMPointReadOnly.html deleted file mode 100644 index 7d6f387..0000000 --- a/docs/interfaces/DOMPointReadOnly.html +++ /dev/null @@ -1,13 +0,0 @@ -DOMPointReadOnly | VFX-JS

Interface DOMPointReadOnly

interface DOMPointReadOnly {
    w: number;
    x: number;
    y: number;
    z: number;
    matrixTransform(matrix?: DOMMatrixInit): DOMPoint;
    toJSON(): any;
}

Hierarchy (View Summary)

Properties

w -x -y -z -

Methods

Properties

w: number
x: number
y: number
z: number

Methods

  • Returns any

diff --git a/docs/interfaces/DOMRectInit.html b/docs/interfaces/DOMRectInit.html deleted file mode 100644 index a978e6a..0000000 --- a/docs/interfaces/DOMRectInit.html +++ /dev/null @@ -1,5 +0,0 @@ -DOMRectInit | VFX-JS

Interface DOMRectInit

interface DOMRectInit {
    height?: number;
    width?: number;
    x?: number;
    y?: number;
}

Properties

Properties

height?: number
width?: number
x?: number
y?: number
diff --git a/docs/interfaces/DOMRectReadOnly.html b/docs/interfaces/DOMRectReadOnly.html deleted file mode 100644 index 4258b96..0000000 --- a/docs/interfaces/DOMRectReadOnly.html +++ /dev/null @@ -1,19 +0,0 @@ -DOMRectReadOnly | VFX-JS

Interface DOMRectReadOnly

interface DOMRectReadOnly {
    bottom: number;
    height: number;
    left: number;
    right: number;
    top: number;
    width: number;
    x: number;
    y: number;
    toJSON(): any;
}

Properties

Methods

Properties

bottom: number
height: number
left: number
right: number
top: number
width: number
x: number
y: number

Methods

  • Returns any

diff --git a/docs/interfaces/Event.html b/docs/interfaces/Event.html deleted file mode 100644 index 94b33c0..0000000 --- a/docs/interfaces/Event.html +++ /dev/null @@ -1,4 +0,0 @@ -Event | VFX-JS

Interface Event<TEventType, TTarget>

The minimal expected contract of a fired Event that was dispatched by a <>.

-
interface Event<TEventType extends string = string, TTarget = unknown> {
    type: TEventType;
    target: TTarget;
}

Type Parameters

  • TEventType extends string = string
  • TTarget = unknown

Properties

Properties

target: TTarget
diff --git a/docs/interfaces/EventInit.html b/docs/interfaces/EventInit.html deleted file mode 100644 index 89eb78f..0000000 --- a/docs/interfaces/EventInit.html +++ /dev/null @@ -1,4 +0,0 @@ -EventInit | VFX-JS

Interface EventInit

interface EventInit {
    bubbles?: boolean;
    cancelable?: boolean;
    composed?: boolean;
}

Hierarchy (View Summary)

Properties

bubbles?: boolean
cancelable?: boolean
composed?: boolean
diff --git a/docs/interfaces/EventListener.html b/docs/interfaces/EventListener.html deleted file mode 100644 index ce56f67..0000000 --- a/docs/interfaces/EventListener.html +++ /dev/null @@ -1 +0,0 @@ -EventListener | VFX-JS

Interface EventListener

  • Parameters

    • evt: Event

    Returns void

diff --git a/docs/interfaces/EventListenerObject.html b/docs/interfaces/EventListenerObject.html deleted file mode 100644 index 8763af3..0000000 --- a/docs/interfaces/EventListenerObject.html +++ /dev/null @@ -1,2 +0,0 @@ -EventListenerObject | VFX-JS

Interface EventListenerObject

interface EventListenerObject {
    handleEvent(object: Event): void;
}

Methods

Methods

  • Parameters

    • object: Event

    Returns void

diff --git a/docs/interfaces/EventListenerOptions.html b/docs/interfaces/EventListenerOptions.html deleted file mode 100644 index bb49976..0000000 --- a/docs/interfaces/EventListenerOptions.html +++ /dev/null @@ -1,2 +0,0 @@ -EventListenerOptions | VFX-JS

Interface EventListenerOptions

interface EventListenerOptions {
    capture?: boolean;
}

Hierarchy (View Summary)

Properties

Properties

capture?: boolean
diff --git a/docs/interfaces/Face.html b/docs/interfaces/Face.html deleted file mode 100644 index dd1a167..0000000 --- a/docs/interfaces/Face.html +++ /dev/null @@ -1,6 +0,0 @@ -Face | VFX-JS

Interface Face

interface Face {
    a: number;
    b: number;
    c: number;
    normal: Vector3;
    materialIndex: number;
}

Properties

Properties

a: number
b: number
c: number
normal: Vector3
materialIndex: number
diff --git a/docs/interfaces/FogExp2JSON.html b/docs/interfaces/FogExp2JSON.html deleted file mode 100644 index 396e264..0000000 --- a/docs/interfaces/FogExp2JSON.html +++ /dev/null @@ -1,5 +0,0 @@ -FogExp2JSON | VFX-JS

Interface FogExp2JSON

interface FogExp2JSON {
    type: string;
    name: string;
    color: number;
    density: number;
}

Properties

Properties

type: string
name: string
color: number
density: number
diff --git a/docs/interfaces/FogJSON.html b/docs/interfaces/FogJSON.html deleted file mode 100644 index a265e2d..0000000 --- a/docs/interfaces/FogJSON.html +++ /dev/null @@ -1,6 +0,0 @@ -FogJSON | VFX-JS

Interface FogJSON

interface FogJSON {
    type: string;
    name: string;
    color: number;
    near: number;
    far: number;
}

Properties

Properties

type: string
name: string
color: number
near: number
far: number
diff --git a/docs/interfaces/Generator.html b/docs/interfaces/Generator.html deleted file mode 100644 index c18eec5..0000000 --- a/docs/interfaces/Generator.html +++ /dev/null @@ -1,5 +0,0 @@ -Generator | VFX-JS

Interface Generator<T, TReturn, TNext>

interface Generator<T = unknown, TReturn = any, TNext = any> {
    next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
    return(value: TReturn): IteratorResult<T, TReturn>;
    throw(e: any): IteratorResult<T, TReturn>;
    "[iterator]"(): Generator<T, TReturn, TNext>;
}

Type Parameters

  • T = unknown
  • TReturn = any
  • TNext = any

Hierarchy

Methods

diff --git a/docs/interfaces/GeometryGroup.html b/docs/interfaces/GeometryGroup.html deleted file mode 100644 index f278e19..0000000 --- a/docs/interfaces/GeometryGroup.html +++ /dev/null @@ -1,10 +0,0 @@ -GeometryGroup | VFX-JS

Interface GeometryGroup

interface GeometryGroup {
    start: number;
    count: number;
    materialIndex?: number;
}

Properties

Properties

start: number

Specifies the first element in this draw call – the first vertex for non-indexed geometry, otherwise the first triangle index.

-

Expects a Integer

-
count: number

Specifies how many vertices (or indices) are included.

-

Expects a Integer

-
materialIndex?: number

Specifies the material array index to use.

-

Expects a Integer

-
diff --git a/docs/interfaces/HSL.html b/docs/interfaces/HSL.html deleted file mode 100644 index 5908deb..0000000 --- a/docs/interfaces/HSL.html +++ /dev/null @@ -1,4 +0,0 @@ -HSL | VFX-JS

Interface HSL

interface HSL {
    h: number;
    s: number;
    l: number;
}

Properties

h -s -l -

Properties

h: number
s: number
l: number
diff --git a/docs/interfaces/IUniform.html b/docs/interfaces/IUniform.html deleted file mode 100644 index c9a607f..0000000 --- a/docs/interfaces/IUniform.html +++ /dev/null @@ -1,2 +0,0 @@ -IUniform | VFX-JS

Interface IUniform<TValue>

interface IUniform<TValue = any> {
    value: TValue;
}

Type Parameters

  • TValue = any

Properties

Properties

value: TValue
diff --git a/docs/interfaces/ImageBitmap.html b/docs/interfaces/ImageBitmap.html deleted file mode 100644 index dd83164..0000000 --- a/docs/interfaces/ImageBitmap.html +++ /dev/null @@ -1,11 +0,0 @@ -ImageBitmap | VFX-JS

Interface ImageBitmap

interface ImageBitmap {
    height: number;
    width: number;
    close(): void;
}

Properties

Methods

Properties

height: number

Returns the intrinsic height of the image, in CSS pixels.

-

MDN Reference

-
width: number

Returns the intrinsic width of the image, in CSS pixels.

-

MDN Reference

-

Methods

  • Releases imageBitmap's underlying bitmap data.

    -

    MDN Reference

    -

    Returns void

diff --git a/docs/interfaces/ImageData.html b/docs/interfaces/ImageData.html deleted file mode 100644 index 9514f16..0000000 --- a/docs/interfaces/ImageData.html +++ /dev/null @@ -1,14 +0,0 @@ -ImageData | VFX-JS

Interface ImageData

The underlying pixel data of an area of a element. It is created using the ImageData() constructor or creator methods on the CanvasRenderingContext2D object associated with a canvas: createImageData() and getImageData(). It can also be used to set a part of the canvas by using putImageData().

-

MDN Reference

-
interface ImageData {
    colorSpace: PredefinedColorSpace;
    data: Uint8ClampedArray;
    height: number;
    width: number;
}

Properties

Properties

data: Uint8ClampedArray

Returns the one-dimensional array containing the data in RGBA order, as integers in the range 0 to 255.

-

MDN Reference

-
height: number

Returns the actual dimensions of the data in the ImageData object, in pixels.

-

MDN Reference

-
width: number

Returns the actual dimensions of the data in the ImageData object, in pixels.

-

MDN Reference

-
diff --git a/docs/interfaces/ImageDataSettings.html b/docs/interfaces/ImageDataSettings.html deleted file mode 100644 index e905493..0000000 --- a/docs/interfaces/ImageDataSettings.html +++ /dev/null @@ -1,2 +0,0 @@ -ImageDataSettings | VFX-JS

Interface ImageDataSettings

interface ImageDataSettings {
    colorSpace?: PredefinedColorSpace;
}

Properties

Properties

diff --git a/docs/interfaces/Intersection.html b/docs/interfaces/Intersection.html deleted file mode 100644 index 1bf33b9..0000000 --- a/docs/interfaces/Intersection.html +++ /dev/null @@ -1,21 +0,0 @@ -Intersection | VFX-JS

Interface Intersection<TIntersected>

interface Intersection<TIntersected extends Object3D = Object3D> {
    distance: number;
    distanceToRay?: number;
    point: Vector3;
    index?: number;
    face?: null | Face;
    faceIndex?: null | number;
    barycoord?: null | Vector3;
    object: TIntersected;
    uv?: Vector2;
    uv1?: Vector2;
    normal?: Vector3;
    instanceId?: number;
    pointOnLine?: Vector3;
    batchId?: number;
}

Type Parameters

Properties

distance: number

Distance between the origin of the ray and the intersection

-
distanceToRay?: number
point: Vector3

Point of intersection, in world coordinates

-
index?: number
face?: null | Face

Intersected face

-
faceIndex?: null | number

Index of the intersected face

-
barycoord?: null | Vector3
object: TIntersected

The intersected object

-
uv?: Vector2
uv1?: Vector2
normal?: Vector3
instanceId?: number

The index number of the instance where the ray intersects the THREE.InstancedMesh | InstancedMesh

-
pointOnLine?: Vector3
batchId?: number
diff --git a/docs/interfaces/IterableIterator.html b/docs/interfaces/IterableIterator.html deleted file mode 100644 index 2a9ff1d..0000000 --- a/docs/interfaces/IterableIterator.html +++ /dev/null @@ -1,6 +0,0 @@ -IterableIterator | VFX-JS

Interface IterableIterator<T, TReturn, TNext>

Describes a user-defined Iterator that is also iterable.

-
interface IterableIterator<T, TReturn = any, TNext = any> {
    "[iterator]"(): IterableIterator<T, TReturn, TNext>;
    next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
    return(value?: TReturn): IteratorResult<T, TReturn>;
    throw(e?: any): IteratorResult<T, TReturn>;
}

Type Parameters

  • T
  • TReturn = any
  • TNext = any

Hierarchy (View Summary)

Methods

diff --git a/docs/interfaces/Iterator.html b/docs/interfaces/Iterator.html deleted file mode 100644 index 829f340..0000000 --- a/docs/interfaces/Iterator.html +++ /dev/null @@ -1,4 +0,0 @@ -Iterator | VFX-JS

Interface Iterator<T, TReturn, TNext>

interface Iterator<T, TReturn = any, TNext = any> {
    next(...__namedParameters: [] | [TNext]): IteratorResult<T, TReturn>;
    return(value?: TReturn): IteratorResult<T, TReturn>;
    throw(e?: any): IteratorResult<T, TReturn>;
}

Type Parameters

  • T
  • TReturn = any
  • TNext = any

Hierarchy (View Summary)

Methods

Methods

diff --git a/docs/interfaces/IteratorReturnResult.html b/docs/interfaces/IteratorReturnResult.html deleted file mode 100644 index 5b34ac1..0000000 --- a/docs/interfaces/IteratorReturnResult.html +++ /dev/null @@ -1,3 +0,0 @@ -IteratorReturnResult | VFX-JS

Interface IteratorReturnResult<TReturn>

interface IteratorReturnResult<TReturn> {
    done: true;
    value: TReturn;
}

Type Parameters

  • TReturn

Properties

Properties

done: true
value: TReturn
diff --git a/docs/interfaces/IteratorYieldResult.html b/docs/interfaces/IteratorYieldResult.html deleted file mode 100644 index 5358c91..0000000 --- a/docs/interfaces/IteratorYieldResult.html +++ /dev/null @@ -1,3 +0,0 @@ -IteratorYieldResult | VFX-JS

Interface IteratorYieldResult<TYield>

interface IteratorYieldResult<TYield> {
    done?: false;
    value: TYield;
}

Type Parameters

  • TYield

Properties

Properties

done?: false
value: TYield
diff --git a/docs/interfaces/JSONMeta.html b/docs/interfaces/JSONMeta.html deleted file mode 100644 index 06cecaf..0000000 --- a/docs/interfaces/JSONMeta.html +++ /dev/null @@ -1,9 +0,0 @@ -JSONMeta | VFX-JS

Interface JSONMeta

interface JSONMeta {
    geometries: Record<string, BufferGeometryJSON>;
    materials: Record<string, MaterialJSON>;
    textures: Record<string, TextureJSON>;
    images: Record<string, SourceJSON>;
    shapes: Record<string, ShapeJSON>;
    skeletons: Record<string, SkeletonJSON>;
    animations: Record<string, AnimationClipJSON>;
    nodes: Record<string, unknown>;
}

Properties

geometries: Record<string, BufferGeometryJSON>
materials: Record<string, MaterialJSON>
textures: Record<string, TextureJSON>
images: Record<string, SourceJSON>
shapes: Record<string, ShapeJSON>
skeletons: Record<string, SkeletonJSON>
animations: Record<string, AnimationClipJSON>
nodes: Record<string, unknown>
diff --git a/docs/interfaces/KeyframeTrackJSON.html b/docs/interfaces/KeyframeTrackJSON.html deleted file mode 100644 index ec93b6e..0000000 --- a/docs/interfaces/KeyframeTrackJSON.html +++ /dev/null @@ -1,6 +0,0 @@ -KeyframeTrackJSON | VFX-JS

Interface KeyframeTrackJSON

interface KeyframeTrackJSON {
    name: string;
    times: number[];
    values: number[];
    interpolation?: InterpolationModes;
    type: string;
}

Properties

name: string
times: number[]
values: number[]
interpolation?: InterpolationModes
type: string
diff --git a/docs/interfaces/LightJSON.html b/docs/interfaces/LightJSON.html deleted file mode 100644 index 0971151..0000000 --- a/docs/interfaces/LightJSON.html +++ /dev/null @@ -1,12 +0,0 @@ -LightJSON | VFX-JS

Interface LightJSON

interface LightJSON {
    color: number;
    intensity: number;
    groundColor?: number;
    distance?: number;
    angle?: number;
    decay?: number;
    penumbra?: number;
    shadow?: LightShadowJSON;
    target?: string;
    metadata?: { version: number; type: string; generator: string };
    object: Object3DJSONObject;
}

Hierarchy (View Summary)

Properties

color: number
intensity: number
groundColor?: number
distance?: number
angle?: number
decay?: number
penumbra?: number
target?: string
metadata?: { version: number; type: string; generator: string }
diff --git a/docs/interfaces/LightShadowJSON.html b/docs/interfaces/LightShadowJSON.html deleted file mode 100644 index 4c74f7f..0000000 --- a/docs/interfaces/LightShadowJSON.html +++ /dev/null @@ -1,7 +0,0 @@ -LightShadowJSON | VFX-JS

Interface LightShadowJSON

interface LightShadowJSON {
    intensity?: number;
    bias?: number;
    normalBias?: number;
    radius?: number;
    mapSize?: Vector2Tuple;
    camera: Omit<Object3DJSONObject, "matrix">;
}

Properties

intensity?: number
bias?: number
normalBias?: number
radius?: number
mapSize?: Vector2Tuple
camera: Omit<Object3DJSONObject, "matrix">
diff --git a/docs/interfaces/MapIterator.html b/docs/interfaces/MapIterator.html deleted file mode 100644 index e07ff7c..0000000 --- a/docs/interfaces/MapIterator.html +++ /dev/null @@ -1,5 +0,0 @@ -MapIterator | VFX-JS

Interface MapIterator<T>

interface MapIterator<T> {
    "[iterator]"(): MapIterator<T>;
    next(...__namedParameters: [] | [unknown]): IteratorResult<T, undefined>;
    return(value?: undefined): IteratorResult<T, undefined>;
    throw(e?: any): IteratorResult<T, undefined>;
}

Type Parameters

  • T

Hierarchy

Methods

  • Returns MapIterator<T>

  • Parameters

    • ...__namedParameters: [] | [unknown]

    Returns IteratorResult<T, undefined>

  • Parameters

    • Optionalvalue: undefined

    Returns IteratorResult<T, undefined>

  • Parameters

    • Optionale: any

    Returns IteratorResult<T, undefined>

diff --git a/docs/interfaces/MaterialJSON.html b/docs/interfaces/MaterialJSON.html deleted file mode 100644 index 4b1fa14..0000000 --- a/docs/interfaces/MaterialJSON.html +++ /dev/null @@ -1,119 +0,0 @@ -MaterialJSON | VFX-JS

Interface MaterialJSON

interface MaterialJSON {
    metadata: { version: number; type: string; generator: string };
    uuid: string;
    type: string;
    name?: string;
    color?: number;
    roughness?: number;
    metalness?: number;
    sheen?: number;
    sheenColor?: number;
    sheenRoughness?: number;
    emissive?: number;
    emissiveIntensity?: number;
    specular?: number;
    specularIntensity?: number;
    specularColor?: number;
    shininess?: number;
    clearcoat?: number;
    clearcoatRoughness?: number;
    clearcoatMap?: string;
    clearcoatRoughnessMap?: string;
    clearcoatNormalMap?: string;
    clearcoatNormalScale?: Vector2Tuple;
    dispersion?: number;
    iridescence?: number;
    iridescenceIOR?: number;
    iridescenceThicknessRange?: number;
    iridescenceMap?: string;
    iridescenceThicknessMap?: string;
    anisotropy?: number;
    anisotropyRotation?: number;
    anisotropyMap?: string;
    map?: string;
    matcap?: string;
    alphaMap?: string;
    lightMap?: string;
    lightMapIntensity?: number;
    aoMap?: string;
    aoMapIntensity?: number;
    bumpMap?: string;
    bumpScale?: number;
    normalMap?: string;
    normalMapType?: NormalMapTypes;
    normalScale?: Vector2Tuple;
    displacementMap?: string;
    displacementScale?: number;
    displacementBias?: number;
    roughnessMap?: string;
    metalnessMap?: string;
    emissiveMap?: string;
    specularMap?: string;
    specularIntensityMap?: string;
    specularColorMap?: string;
    envMap?: string;
    combine?: Combine;
    envMapRotation?: EulerTuple;
    envMapIntensity?: number;
    reflectivity?: number;
    refractionRatio?: number;
    gradientMap?: string;
    transmission?: number;
    transmissionMap?: string;
    thickness?: number;
    thicknessMap?: string;
    attenuationDistance?: number;
    attenuationColor?: number;
    size?: number;
    shadowSide?: number;
    sizeAttenuation?: boolean;
    blending?: Blending;
    side?: Side;
    vertexColors?: boolean;
    opacity?: number;
    transparent?: boolean;
    blendSrc?: BlendingSrcFactor;
    blendDst?: BlendingDstFactor;
    blendEquation?: BlendingEquation;
    blendSrcAlpha?: null | number;
    blendDstAlpha?: null | number;
    blendEquationAlpha?: null | number;
    blendColor?: number;
    blendAlpha?: number;
    depthFunc?: DepthModes;
    depthTest?: boolean;
    depthWrite?: boolean;
    colorWrite?: boolean;
    stencilWriteMask?: number;
    stencilFunc?: StencilFunc;
    stencilRef?: number;
    stencilFuncMask?: number;
    stencilFail?: StencilOp;
    stencilZFail?: StencilOp;
    stencilZPass?: StencilOp;
    stencilWrite?: boolean;
    rotation?: number;
    polygonOffset?: boolean;
    polygonOffsetFactor?: number;
    polygonOffsetUnits?: number;
    linewidth?: number;
    dashSize?: number;
    gapSize?: number;
    scale?: number;
    dithering?: boolean;
    alphaTest?: number;
    alphaHash?: boolean;
    alphaToCoverage?: boolean;
    premultipliedAlpha?: boolean;
    forceSinglePass?: boolean;
    wireframe?: boolean;
    wireframeLinewidth?: number;
    wireframeLinecap?: string;
    wireframeLinejoin?: string;
    flatShading?: boolean;
    visible?: boolean;
    toneMapped?: boolean;
    fog?: boolean;
    userData?: Record<string, unknown>;
    textures?: Omit<TextureJSON, "metadata">[];
    images?: SourceJSON[];
}

Properties

metadata -uuid -type -name? -color? -roughness? -metalness? -sheen? -sheenColor? -sheenRoughness? -emissive? -emissiveIntensity? -specular? -specularIntensity? -specularColor? -shininess? -clearcoat? -clearcoatRoughness? -clearcoatMap? -clearcoatRoughnessMap? -clearcoatNormalMap? -clearcoatNormalScale? -dispersion? -iridescence? -iridescenceIOR? -iridescenceThicknessRange? -iridescenceMap? -iridescenceThicknessMap? -anisotropy? -anisotropyRotation? -anisotropyMap? -map? -matcap? -alphaMap? -lightMap? -lightMapIntensity? -aoMap? -aoMapIntensity? -bumpMap? -bumpScale? -normalMap? -normalMapType? -normalScale? -displacementMap? -displacementScale? -displacementBias? -roughnessMap? -metalnessMap? -emissiveMap? -specularMap? -specularIntensityMap? -specularColorMap? -envMap? -combine? -envMapRotation? -envMapIntensity? -reflectivity? -refractionRatio? -gradientMap? -transmission? -transmissionMap? -thickness? -thicknessMap? -attenuationDistance? -attenuationColor? -size? -shadowSide? -sizeAttenuation? -blending? -side? -vertexColors? -opacity? -transparent? -blendSrc? -blendDst? -blendEquation? -blendSrcAlpha? -blendDstAlpha? -blendEquationAlpha? -blendColor? -blendAlpha? -depthFunc? -depthTest? -depthWrite? -colorWrite? -stencilWriteMask? -stencilFunc? -stencilRef? -stencilFuncMask? -stencilFail? -stencilZFail? -stencilZPass? -stencilWrite? -rotation? -polygonOffset? -polygonOffsetFactor? -polygonOffsetUnits? -linewidth? -dashSize? -gapSize? -scale? -dithering? -alphaTest? -alphaHash? -alphaToCoverage? -premultipliedAlpha? -forceSinglePass? -wireframe? -wireframeLinewidth? -wireframeLinecap? -wireframeLinejoin? -flatShading? -visible? -toneMapped? -fog? -userData? -textures? -images? -

Properties

metadata: { version: number; type: string; generator: string }
uuid: string
type: string
name?: string
color?: number
roughness?: number
metalness?: number
sheen?: number
sheenColor?: number
sheenRoughness?: number
emissive?: number
emissiveIntensity?: number
specular?: number
specularIntensity?: number
specularColor?: number
shininess?: number
clearcoat?: number
clearcoatRoughness?: number
clearcoatMap?: string
clearcoatRoughnessMap?: string
clearcoatNormalMap?: string
clearcoatNormalScale?: Vector2Tuple
dispersion?: number
iridescence?: number
iridescenceIOR?: number
iridescenceThicknessRange?: number
iridescenceMap?: string
iridescenceThicknessMap?: string
anisotropy?: number
anisotropyRotation?: number
anisotropyMap?: string
map?: string
matcap?: string
alphaMap?: string
lightMap?: string
lightMapIntensity?: number
aoMap?: string
aoMapIntensity?: number
bumpMap?: string
bumpScale?: number
normalMap?: string
normalMapType?: NormalMapTypes
normalScale?: Vector2Tuple
displacementMap?: string
displacementScale?: number
displacementBias?: number
roughnessMap?: string
metalnessMap?: string
emissiveMap?: string
specularMap?: string
specularIntensityMap?: string
specularColorMap?: string
envMap?: string
combine?: Combine
envMapRotation?: EulerTuple
envMapIntensity?: number
reflectivity?: number
refractionRatio?: number
gradientMap?: string
transmission?: number
transmissionMap?: string
thickness?: number
thicknessMap?: string
attenuationDistance?: number
attenuationColor?: number
size?: number
shadowSide?: number
sizeAttenuation?: boolean
blending?: Blending
side?: Side
vertexColors?: boolean
opacity?: number
transparent?: boolean
blendEquation?: BlendingEquation
blendSrcAlpha?: null | number
blendDstAlpha?: null | number
blendEquationAlpha?: null | number
blendColor?: number
blendAlpha?: number
depthFunc?: DepthModes
depthTest?: boolean
depthWrite?: boolean
colorWrite?: boolean
stencilWriteMask?: number
stencilFunc?: StencilFunc
stencilRef?: number
stencilFuncMask?: number
stencilFail?: StencilOp
stencilZFail?: StencilOp
stencilZPass?: StencilOp
stencilWrite?: boolean
rotation?: number
polygonOffset?: boolean
polygonOffsetFactor?: number
polygonOffsetUnits?: number
linewidth?: number
dashSize?: number
gapSize?: number
scale?: number
dithering?: boolean
alphaTest?: number
alphaHash?: boolean
alphaToCoverage?: boolean
premultipliedAlpha?: boolean
forceSinglePass?: boolean
wireframe?: boolean
wireframeLinewidth?: number
wireframeLinecap?: string
wireframeLinejoin?: string
flatShading?: boolean
visible?: boolean
toneMapped?: boolean
fog?: boolean
userData?: Record<string, unknown>
textures?: Omit<TextureJSON, "metadata">[]
images?: SourceJSON[]
diff --git a/docs/interfaces/MaterialParameters.html b/docs/interfaces/MaterialParameters.html deleted file mode 100644 index 140b192..0000000 --- a/docs/interfaces/MaterialParameters.html +++ /dev/null @@ -1,46 +0,0 @@ -MaterialParameters | VFX-JS

Interface MaterialParameters

interface MaterialParameters {
    alphaHash?: boolean;
    alphaTest?: number;
    alphaToCoverage?: boolean;
    blendAlpha?: number;
    blendColor?: ColorRepresentation;
    blendDst?: BlendingDstFactor;
    blendDstAlpha?: number;
    blendEquation?: BlendingEquation;
    blendEquationAlpha?: number;
    blending?: Blending;
    blendSrc?:
        | 200
        | 201
        | 202
        | 203
        | 204
        | 205
        | 206
        | 207
        | 208
        | 209
        | 211
        | 212
        | 213
        | 214
        | 210;
    blendSrcAlpha?: number;
    clipIntersection?: boolean;
    clippingPlanes?: Plane[];
    clipShadows?: boolean;
    colorWrite?: boolean;
    defines?: any;
    depthFunc?: DepthModes;
    depthTest?: boolean;
    depthWrite?: boolean;
    name?: string;
    opacity?: number;
    polygonOffset?: boolean;
    polygonOffsetFactor?: number;
    polygonOffsetUnits?: number;
    precision?: null
    | "highp"
    | "mediump"
    | "lowp";
    premultipliedAlpha?: boolean;
    forceSinglePass?: boolean;
    dithering?: boolean;
    side?: Side;
    shadowSide?: Side;
    toneMapped?: boolean;
    transparent?: boolean;
    vertexColors?: boolean;
    visible?: boolean;
    format?: PixelFormat;
    stencilWrite?: boolean;
    stencilFunc?: StencilFunc;
    stencilRef?: number;
    stencilWriteMask?: number;
    stencilFuncMask?: number;
    stencilFail?: StencilOp;
    stencilZFail?: StencilOp;
    stencilZPass?: StencilOp;
    userData?: Record<string, any>;
}

Hierarchy (View Summary)

Properties

alphaHash?: boolean
alphaTest?: number
alphaToCoverage?: boolean
blendAlpha?: number
blendColor?: ColorRepresentation
blendDstAlpha?: number
blendEquation?: BlendingEquation
blendEquationAlpha?: number
blending?: Blending
blendSrc?:
    | 200
    | 201
    | 202
    | 203
    | 204
    | 205
    | 206
    | 207
    | 208
    | 209
    | 211
    | 212
    | 213
    | 214
    | 210
blendSrcAlpha?: number
clipIntersection?: boolean
clippingPlanes?: Plane[]
clipShadows?: boolean
colorWrite?: boolean
defines?: any
depthFunc?: DepthModes
depthTest?: boolean
depthWrite?: boolean
name?: string
opacity?: number
polygonOffset?: boolean
polygonOffsetFactor?: number
polygonOffsetUnits?: number
precision?: null | "highp" | "mediump" | "lowp"
premultipliedAlpha?: boolean
forceSinglePass?: boolean
dithering?: boolean
side?: Side
shadowSide?: Side
toneMapped?: boolean
transparent?: boolean
vertexColors?: boolean
visible?: boolean
format?: PixelFormat
stencilWrite?: boolean
stencilFunc?: StencilFunc
stencilRef?: number
stencilWriteMask?: number
stencilFuncMask?: number
stencilFail?: StencilOp
stencilZFail?: StencilOp
stencilZPass?: StencilOp
userData?: Record<string, any>
diff --git a/docs/interfaces/MeshJSON.html b/docs/interfaces/MeshJSON.html deleted file mode 100644 index ca5dd38..0000000 --- a/docs/interfaces/MeshJSON.html +++ /dev/null @@ -1,3 +0,0 @@ -MeshJSON | VFX-JS

Interface MeshJSON

interface MeshJSON {
    object: MeshJSONObject;
    metadata?: { version: number; type: string; generator: string };
}

Hierarchy (View Summary)

Properties

Properties

metadata?: { version: number; type: string; generator: string }
diff --git a/docs/interfaces/MeshJSONObject.html b/docs/interfaces/MeshJSONObject.html deleted file mode 100644 index ed3fa17..0000000 --- a/docs/interfaces/MeshJSONObject.html +++ /dev/null @@ -1,18 +0,0 @@ -MeshJSONObject | VFX-JS

Interface MeshJSONObject

interface MeshJSONObject {
    geometry: string;
    uuid: string;
    type: string;
    name?: string;
    castShadow?: boolean;
    receiveShadow?: boolean;
    visible?: boolean;
    frustumCulled?: boolean;
    renderOrder?: number;
    userData?: Record<string, unknown>;
    layers: number;
    matrix: Matrix4Tuple;
    up: Vector3Tuple;
    matrixAutoUpdate?: boolean;
    material?: string | string[];
    children?: string[];
    animations?: string[];
}

Hierarchy (View Summary)

Properties

geometry: string
uuid: string
type: string
name?: string
castShadow?: boolean
receiveShadow?: boolean
visible?: boolean
frustumCulled?: boolean
renderOrder?: number
userData?: Record<string, unknown>
layers: number
matrix: Matrix4Tuple
matrixAutoUpdate?: boolean
material?: string | string[]
children?: string[]
animations?: string[]
diff --git a/docs/interfaces/MorphTarget.html b/docs/interfaces/MorphTarget.html deleted file mode 100644 index 5c4f457..0000000 --- a/docs/interfaces/MorphTarget.html +++ /dev/null @@ -1,3 +0,0 @@ -MorphTarget | VFX-JS

Interface MorphTarget

interface MorphTarget {
    name: string;
    vertices: Vector3[];
}

Properties

Properties

name: string
vertices: Vector3[]
diff --git a/docs/interfaces/Object3DEventMap.html b/docs/interfaces/Object3DEventMap.html deleted file mode 100644 index 753c680..0000000 --- a/docs/interfaces/Object3DEventMap.html +++ /dev/null @@ -1,9 +0,0 @@ -Object3DEventMap | VFX-JS

Interface Object3DEventMap

interface Object3DEventMap {
    added: {};
    removed: {};
    childadded: { child: Object3D };
    childremoved: { child: Object3D };
}

Hierarchy (View Summary)

Properties

added: {}

Fires when the object has been added to its parent object.

-
removed: {}

Fires when the object has been removed from its parent object.

-
childadded: { child: Object3D }

Fires when a new child object has been added.

-
childremoved: { child: Object3D }

Fires when a new child object has been removed.

-
diff --git a/docs/interfaces/Object3DJSON.html b/docs/interfaces/Object3DJSON.html deleted file mode 100644 index 1b5139e..0000000 --- a/docs/interfaces/Object3DJSON.html +++ /dev/null @@ -1,3 +0,0 @@ -Object3DJSON | VFX-JS

Interface Object3DJSON

interface Object3DJSON {
    metadata?: { version: number; type: string; generator: string };
    object: Object3DJSONObject;
}

Hierarchy (View Summary)

Properties

Properties

metadata?: { version: number; type: string; generator: string }
diff --git a/docs/interfaces/Object3DJSONObject.html b/docs/interfaces/Object3DJSONObject.html deleted file mode 100644 index 911dd3a..0000000 --- a/docs/interfaces/Object3DJSONObject.html +++ /dev/null @@ -1,17 +0,0 @@ -Object3DJSONObject | VFX-JS

Interface Object3DJSONObject

interface Object3DJSONObject {
    uuid: string;
    type: string;
    name?: string;
    castShadow?: boolean;
    receiveShadow?: boolean;
    visible?: boolean;
    frustumCulled?: boolean;
    renderOrder?: number;
    userData?: Record<string, unknown>;
    layers: number;
    matrix: Matrix4Tuple;
    up: Vector3Tuple;
    matrixAutoUpdate?: boolean;
    material?: string | string[];
    children?: string[];
    animations?: string[];
}

Hierarchy (View Summary)

Properties

uuid: string
type: string
name?: string
castShadow?: boolean
receiveShadow?: boolean
visible?: boolean
frustumCulled?: boolean
renderOrder?: number
userData?: Record<string, unknown>
layers: number
matrix: Matrix4Tuple
matrixAutoUpdate?: boolean
material?: string | string[]
children?: string[]
animations?: string[]
diff --git a/docs/interfaces/OffscreenCanvas.html b/docs/interfaces/OffscreenCanvas.html deleted file mode 100644 index 7c28e5f..0000000 --- a/docs/interfaces/OffscreenCanvas.html +++ /dev/null @@ -1,17 +0,0 @@ -OffscreenCanvas | VFX-JS

Interface OffscreenCanvas

Shim for OffscreenCanvas.

-
interface OffscreenCanvas {
    addEventListener(
        type: string,
        callback: null | EventListenerOrEventListenerObject,
        options?: boolean | AddEventListenerOptions,
    ): void;
    dispatchEvent(event: Event): boolean;
    removeEventListener(
        type: string,
        callback: null | EventListenerOrEventListenerObject,
        options?: boolean | EventListenerOptions,
    ): void;
}

Hierarchy

  • EventTarget
    • OffscreenCanvas

Methods

  • Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.

    -

    The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.

    -

    When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.

    -

    When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.

    -

    When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.

    -

    If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.

    -

    The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

    -

    MDN Reference

    -

    Parameters

    Returns void

  • Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.

    -

    MDN Reference

    -

    Parameters

    • event: Event

    Returns boolean

diff --git a/docs/interfaces/PathJSON.html b/docs/interfaces/PathJSON.html deleted file mode 100644 index 8b105a0..0000000 --- a/docs/interfaces/PathJSON.html +++ /dev/null @@ -1,7 +0,0 @@ -PathJSON | VFX-JS

Interface PathJSON

interface PathJSON {
    currentPoint: Vector2Tuple;
    autoClose: boolean;
    curves: CurveJSON[];
    metadata: { version: number; type: string; generator: string };
    arcLengthDivisions: number;
    type: string;
}

Hierarchy (View Summary)

Properties

currentPoint: Vector2Tuple
autoClose: boolean
curves: CurveJSON[]
metadata: { version: number; type: string; generator: string }
arcLengthDivisions: number
type: string
diff --git a/docs/interfaces/PerspectiveCameraJSON.html b/docs/interfaces/PerspectiveCameraJSON.html deleted file mode 100644 index ebf809e..0000000 --- a/docs/interfaces/PerspectiveCameraJSON.html +++ /dev/null @@ -1,3 +0,0 @@ -PerspectiveCameraJSON | VFX-JS

Interface PerspectiveCameraJSON

interface PerspectiveCameraJSON {
    object: PerspectiveCameraJSONObject;
    metadata?: { version: number; type: string; generator: string };
}

Hierarchy (View Summary)

Properties

Properties

metadata?: { version: number; type: string; generator: string }
diff --git a/docs/interfaces/PerspectiveCameraJSONObject.html b/docs/interfaces/PerspectiveCameraJSONObject.html deleted file mode 100644 index d808a24..0000000 --- a/docs/interfaces/PerspectiveCameraJSONObject.html +++ /dev/null @@ -1,26 +0,0 @@ -PerspectiveCameraJSONObject | VFX-JS

Interface PerspectiveCameraJSONObject

interface PerspectiveCameraJSONObject {
    fov: number;
    zoom: number;
    near: number;
    far: number;
    focus: number;
    aspect: number;
    view?: {
        enabled: boolean;
        fullWidth: number;
        fullHeight: number;
        offsetX: number;
        offsetY: number;
        width: number;
        height: number;
    };
    filmGauge: number;
    filmOffset: number;
    uuid: string;
    type: string;
    name?: string;
    castShadow?: boolean;
    receiveShadow?: boolean;
    visible?: boolean;
    frustumCulled?: boolean;
    renderOrder?: number;
    userData?: Record<string, unknown>;
    layers: number;
    matrix: Matrix4Tuple;
    up: Vector3Tuple;
    matrixAutoUpdate?: boolean;
    material?: string | string[];
    children?: string[];
    animations?: string[];
}

Hierarchy (View Summary)

Properties

fov: number
zoom: number
near: number
far: number
focus: number
aspect: number
view?: {
    enabled: boolean;
    fullWidth: number;
    fullHeight: number;
    offsetX: number;
    offsetY: number;
    width: number;
    height: number;
}
filmGauge: number
filmOffset: number
uuid: string
type: string
name?: string
castShadow?: boolean
receiveShadow?: boolean
visible?: boolean
frustumCulled?: boolean
renderOrder?: number
userData?: Record<string, unknown>
layers: number
matrix: Matrix4Tuple
matrixAutoUpdate?: boolean
material?: string | string[]
children?: string[]
animations?: string[]
diff --git a/docs/interfaces/PlaneLayout.html b/docs/interfaces/PlaneLayout.html deleted file mode 100644 index 5d7ec6b..0000000 --- a/docs/interfaces/PlaneLayout.html +++ /dev/null @@ -1,3 +0,0 @@ -PlaneLayout | VFX-JS

Interface PlaneLayout

interface PlaneLayout {
    offset: number;
    stride: number;
}

Properties

Properties

offset: number
stride: number
diff --git a/docs/interfaces/ProgressEvent.html b/docs/interfaces/ProgressEvent.html deleted file mode 100644 index 1456b6f..0000000 --- a/docs/interfaces/ProgressEvent.html +++ /dev/null @@ -1,63 +0,0 @@ -ProgressEvent | VFX-JS

Interface ProgressEvent<T>

Events measuring progress of an underlying process, like an HTTP request (for an XMLHttpRequest, or the loading of the underlying resource of an ,