@types/three 0.155.1 → 0.157.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- three/LICENSE +0 -0
- three/README.md +2 -2
- three/build/three.d.cts +0 -0
- three/build/three.d.ts +0 -0
- three/build/three.min.d.ts +0 -0
- three/build/three.module.d.ts +0 -0
- three/build/three.module.min.d.ts +0 -0
- three/examples/jsm/animation/AnimationClipCreator.d.ts +0 -0
- three/examples/jsm/animation/CCDIKSolver.d.ts +7 -7
- three/examples/jsm/animation/MMDAnimationHelper.d.ts +0 -0
- three/examples/jsm/animation/MMDPhysics.d.ts +0 -0
- three/examples/jsm/cameras/CinematicCamera.d.ts +0 -0
- three/examples/jsm/capabilities/WebGL.d.ts +1 -0
- three/examples/jsm/controls/ArcballControls.d.ts +7 -1
- three/examples/jsm/controls/DragControls.d.ts +10 -1
- three/examples/jsm/controls/FirstPersonControls.d.ts +0 -0
- three/examples/jsm/controls/FlyControls.d.ts +5 -1
- three/examples/jsm/controls/MapControls.d.ts +0 -0
- three/examples/jsm/controls/OrbitControls.d.ts +21 -19
- three/examples/jsm/controls/PointerLockControls.d.ts +0 -0
- three/examples/jsm/controls/TrackballControls.d.ts +12 -2
- three/examples/jsm/controls/TransformControls.d.ts +40 -3
- three/examples/jsm/csm/CSM.d.ts +0 -0
- three/examples/jsm/csm/CSMFrustum.d.ts +0 -0
- three/examples/jsm/csm/CSMHelper.d.ts +0 -0
- three/examples/jsm/csm/CSMShader.d.ts +0 -0
- three/examples/jsm/curves/CurveExtras.d.ts +0 -0
- three/examples/jsm/curves/NURBSCurve.d.ts +8 -2
- three/examples/jsm/curves/NURBSSurface.d.ts +0 -0
- three/examples/jsm/curves/NURBSUtils.d.ts +0 -0
- three/examples/jsm/deprecated/Geometry.d.ts +0 -0
- three/examples/jsm/effects/AnaglyphEffect.d.ts +0 -0
- three/examples/jsm/effects/AsciiEffect.d.ts +0 -0
- three/examples/jsm/effects/OutlineEffect.d.ts +0 -0
- three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +0 -0
- three/examples/jsm/effects/PeppersGhostEffect.d.ts +0 -0
- three/examples/jsm/effects/StereoEffect.d.ts +0 -0
- three/examples/jsm/environments/DebugEnvironment.d.ts +5 -0
- three/examples/jsm/environments/RoomEnvironment.d.ts +0 -0
- three/examples/jsm/exporters/DRACOExporter.d.ts +0 -0
- three/examples/jsm/exporters/EXRExporter.d.ts +2 -1
- three/examples/jsm/exporters/GLTFExporter.d.ts +0 -0
- three/examples/jsm/exporters/KTX2Exporter.d.ts +0 -0
- three/examples/jsm/exporters/MMDExporter.d.ts +0 -0
- three/examples/jsm/exporters/OBJExporter.d.ts +0 -0
- three/examples/jsm/exporters/PLYExporter.d.ts +0 -0
- three/examples/jsm/exporters/STLExporter.d.ts +0 -0
- three/examples/jsm/exporters/USDZExporter.d.ts +0 -0
- three/examples/jsm/geometries/BoxLineGeometry.d.ts +0 -0
- three/examples/jsm/geometries/ConvexGeometry.d.ts +0 -0
- three/examples/jsm/geometries/DecalGeometry.d.ts +0 -0
- three/examples/jsm/geometries/ParametricGeometries.d.ts +0 -0
- three/examples/jsm/geometries/ParametricGeometry.d.ts +0 -0
- three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +0 -0
- three/examples/jsm/geometries/TeapotGeometry.d.ts +0 -0
- three/examples/jsm/geometries/TextGeometry.d.ts +0 -0
- three/examples/jsm/helpers/LightProbeHelper.d.ts +0 -0
- three/examples/jsm/helpers/OctreeHelper.d.ts +0 -0
- three/examples/jsm/helpers/PositionalAudioHelper.d.ts +0 -0
- three/examples/jsm/helpers/RectAreaLightHelper.d.ts +0 -0
- three/examples/jsm/helpers/VertexNormalsHelper.d.ts +0 -0
- three/examples/jsm/helpers/VertexTangentsHelper.d.ts +0 -0
- three/examples/jsm/helpers/ViewHelper.d.ts +0 -0
- three/examples/jsm/interactive/HTMLMesh.d.ts +0 -0
- three/examples/jsm/interactive/InteractiveGroup.d.ts +14 -1
- three/examples/jsm/interactive/SelectionBox.d.ts +0 -0
- three/examples/jsm/interactive/SelectionHelper.d.ts +1 -0
- three/examples/jsm/libs/fflate.module.d.ts +0 -0
- three/examples/jsm/libs/lil-gui.module.min.d.ts +609 -1
- three/examples/jsm/libs/meshopt_decoder.module.d.ts +0 -0
- three/examples/jsm/libs/stats.module.d.ts +0 -0
- three/examples/jsm/libs/tween.module.d.ts +219 -2
- three/examples/jsm/lights/LightProbeGenerator.d.ts +0 -0
- three/examples/jsm/lights/RectAreaLightUniformsLib.d.ts +0 -0
- three/examples/jsm/lines/Line2.d.ts +0 -0
- three/examples/jsm/lines/LineGeometry.d.ts +0 -0
- three/examples/jsm/lines/LineMaterial.d.ts +0 -0
- three/examples/jsm/lines/LineSegments2.d.ts +0 -0
- three/examples/jsm/lines/LineSegmentsGeometry.d.ts +0 -0
- three/examples/jsm/lines/Wireframe.d.ts +0 -0
- three/examples/jsm/lines/WireframeGeometry2.d.ts +0 -0
- three/examples/jsm/loaders/3DMLoader.d.ts +1 -8
- three/examples/jsm/loaders/3MFLoader.d.ts +1 -8
- three/examples/jsm/loaders/AMFLoader.d.ts +1 -8
- three/examples/jsm/loaders/BVHLoader.d.ts +1 -8
- three/examples/jsm/loaders/ColladaLoader.d.ts +1 -8
- three/examples/jsm/loaders/DDSLoader.d.ts +0 -0
- three/examples/jsm/loaders/DRACOLoader.d.ts +8 -7
- three/examples/jsm/loaders/EXRLoader.d.ts +0 -0
- three/examples/jsm/loaders/FBXLoader.d.ts +1 -8
- three/examples/jsm/loaders/FontLoader.d.ts +4 -4
- three/examples/jsm/loaders/GCodeLoader.d.ts +1 -8
- three/examples/jsm/loaders/GLTFLoader.d.ts +1 -9
- three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +5 -5
- three/examples/jsm/loaders/KMZLoader.d.ts +1 -8
- three/examples/jsm/loaders/KTX2Loader.d.ts +0 -0
- three/examples/jsm/loaders/KTXLoader.d.ts +0 -0
- three/examples/jsm/loaders/LDrawLoader.d.ts +1 -8
- three/examples/jsm/loaders/LUT3dlLoader.d.ts +1 -8
- three/examples/jsm/loaders/LUTCubeLoader.d.ts +1 -8
- three/examples/jsm/loaders/LWOLoader.d.ts +1 -8
- three/examples/jsm/loaders/LogLuvLoader.d.ts +0 -0
- three/examples/jsm/loaders/LottieLoader.d.ts +4 -5
- three/examples/jsm/loaders/MD2Loader.d.ts +1 -8
- three/examples/jsm/loaders/MDDLoader.d.ts +1 -8
- three/examples/jsm/loaders/MMDLoader.d.ts +1 -8
- three/examples/jsm/loaders/MTLLoader.d.ts +1 -9
- three/examples/jsm/loaders/NRRDLoader.d.ts +1 -7
- three/examples/jsm/loaders/OBJLoader.d.ts +1 -8
- three/examples/jsm/loaders/PCDLoader.d.ts +1 -8
- three/examples/jsm/loaders/PDBLoader.d.ts +1 -8
- three/examples/jsm/loaders/PLYLoader.d.ts +1 -8
- three/examples/jsm/loaders/PVRLoader.d.ts +0 -0
- three/examples/jsm/loaders/RGBELoader.d.ts +0 -0
- three/examples/jsm/loaders/RGBMLoader.d.ts +0 -0
- three/examples/jsm/loaders/STLLoader.d.ts +1 -8
- three/examples/jsm/loaders/SVGLoader.d.ts +1 -8
- three/examples/jsm/loaders/TDSLoader.d.ts +1 -8
- three/examples/jsm/loaders/TGALoader.d.ts +0 -7
- three/examples/jsm/loaders/TIFFLoader.d.ts +0 -0
- three/examples/jsm/loaders/TTFLoader.d.ts +1 -8
- three/examples/jsm/loaders/TiltLoader.d.ts +1 -8
- three/examples/jsm/loaders/USDZLoader.d.ts +1 -9
- three/examples/jsm/loaders/VOXLoader.d.ts +1 -8
- three/examples/jsm/loaders/VRMLLoader.d.ts +1 -8
- three/examples/jsm/loaders/VTKLoader.d.ts +1 -8
- three/examples/jsm/loaders/XYZLoader.d.ts +1 -8
- three/examples/jsm/materials/MeshGouraudMaterial.d.ts +0 -0
- three/examples/jsm/math/Capsule.d.ts +0 -0
- three/examples/jsm/math/ColorConverter.d.ts +0 -0
- three/examples/jsm/math/ConvexHull.d.ts +0 -0
- three/examples/jsm/math/ImprovedNoise.d.ts +0 -0
- three/examples/jsm/math/Lut.d.ts +0 -0
- three/examples/jsm/math/MeshSurfaceSampler.d.ts +0 -0
- three/examples/jsm/math/OBB.d.ts +0 -0
- three/examples/jsm/math/Octree.d.ts +0 -0
- three/examples/jsm/math/SimplexNoise.d.ts +0 -0
- three/examples/jsm/misc/ConvexObjectBreaker.d.ts +0 -0
- three/examples/jsm/misc/GPUComputationRenderer.d.ts +0 -0
- three/examples/jsm/misc/Gyroscope.d.ts +0 -0
- three/examples/jsm/misc/MD2Character.d.ts +0 -0
- three/examples/jsm/misc/MD2CharacterComplex.d.ts +0 -0
- three/examples/jsm/misc/MorphAnimMesh.d.ts +0 -0
- three/examples/jsm/misc/MorphBlendMesh.d.ts +0 -0
- three/examples/jsm/misc/ProgressiveLightMap.d.ts +0 -0
- three/examples/jsm/misc/RollerCoaster.d.ts +0 -0
- three/examples/jsm/misc/TubePainter.d.ts +0 -0
- three/examples/jsm/misc/Volume.d.ts +0 -0
- three/examples/jsm/misc/VolumeSlice.d.ts +0 -0
- three/examples/jsm/modifiers/CurveModifier.d.ts +0 -0
- three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +0 -0
- three/examples/jsm/modifiers/SimplifyModifier.d.ts +0 -0
- three/examples/jsm/modifiers/TessellateModifier.d.ts +0 -0
- three/examples/jsm/nodes/Nodes.d.ts +0 -0
- three/examples/jsm/nodes/accessors/BitangentNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/BufferNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/CameraNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/InstanceNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/MaterialNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/ModelNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/NormalNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/Object3DNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/PointUVNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/PositionNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +1 -1
- three/examples/jsm/nodes/accessors/SkinningNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/TangentNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/TextureNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/UVNode.d.ts +0 -0
- three/examples/jsm/nodes/accessors/UserDataNode.d.ts +0 -0
- three/examples/jsm/nodes/code/CodeNode.d.ts +0 -0
- three/examples/jsm/nodes/code/ExpressionNode.d.ts +0 -0
- three/examples/jsm/nodes/code/FunctionCallNode.d.ts +0 -0
- three/examples/jsm/nodes/code/FunctionNode.d.ts +0 -0
- three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +0 -0
- three/examples/jsm/nodes/core/AttributeNode.d.ts +0 -0
- three/examples/jsm/nodes/core/BypassNode.d.ts +0 -0
- three/examples/jsm/nodes/core/CacheNode.d.ts +0 -0
- three/examples/jsm/nodes/core/ConstNode.d.ts +0 -0
- three/examples/jsm/nodes/core/ContextNode.d.ts +0 -0
- three/examples/jsm/nodes/core/InputNode.d.ts +0 -0
- three/examples/jsm/nodes/core/Node.d.ts +1 -1
- three/examples/jsm/nodes/core/NodeAttribute.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeBuilder.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeCache.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeCode.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeFrame.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeFunction.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeFunctionInput.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeKeywords.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeParser.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeUniform.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeUtils.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeVar.d.ts +0 -0
- three/examples/jsm/nodes/core/NodeVarying.d.ts +0 -0
- three/examples/jsm/nodes/core/PropertyNode.d.ts +0 -0
- three/examples/jsm/nodes/core/StackNode.d.ts +0 -0
- three/examples/jsm/nodes/core/TempNode.d.ts +0 -0
- three/examples/jsm/nodes/core/UniformNode.d.ts +0 -0
- three/examples/jsm/nodes/core/VarNode.d.ts +0 -0
- three/examples/jsm/nodes/core/VaryingNode.d.ts +0 -0
- three/examples/jsm/nodes/core/constants.d.ts +0 -0
- three/examples/jsm/nodes/display/BlendModeNode.d.ts +1 -1
- three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +0 -0
- three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +0 -0
- three/examples/jsm/nodes/display/FrontFacingNode.d.ts +0 -0
- three/examples/jsm/nodes/display/NormalMapNode.d.ts +0 -0
- three/examples/jsm/nodes/display/PosterizeNode.d.ts +0 -0
- three/examples/jsm/nodes/display/ToneMappingNode.d.ts +0 -0
- three/examples/jsm/nodes/display/ViewportNode.d.ts +0 -0
- three/examples/jsm/nodes/fog/FogExp2Node.d.ts +0 -0
- three/examples/jsm/nodes/fog/FogNode.d.ts +0 -0
- three/examples/jsm/nodes/fog/FogRangeNode.d.ts +0 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +0 -0
- three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +0 -0
- three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +0 -0
- three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +0 -0
- three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +0 -0
- three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +0 -0
- three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +0 -0
- three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +0 -0
- three/examples/jsm/nodes/functions/material/getRoughness.d.ts +0 -0
- three/examples/jsm/nodes/geometry/RangeNode.d.ts +0 -0
- three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/AONode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/LightUtils.d.ts +0 -0
- three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/LightingNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/LightsNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/PointLightNode.d.ts +0 -0
- three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +0 -0
- three/examples/jsm/nodes/loaders/NodeLoader.d.ts +1 -9
- three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +0 -0
- three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +0 -0
- three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materials/Materials.d.ts +0 -0
- three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materials/NodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +0 -0
- three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +0 -0
- three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +0 -0
- three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +0 -0
- three/examples/jsm/nodes/math/CondNode.d.ts +0 -0
- three/examples/jsm/nodes/math/MathNode.d.ts +0 -0
- three/examples/jsm/nodes/math/OperatorNode.d.ts +0 -0
- three/examples/jsm/nodes/procedural/CheckerNode.d.ts +0 -0
- three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +0 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeBaseElements.d.ts +0 -0
- three/examples/jsm/nodes/shadernode/ShaderNodeElements.d.ts +0 -0
- three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/ConvertNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/JoinNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/OscNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/RemapNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/RotateUVNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/SplitNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/TimerNode.d.ts +0 -0
- three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +0 -0
- three/examples/jsm/objects/GroundProjectedSkybox.d.ts +0 -0
- three/examples/jsm/objects/Lensflare.d.ts +0 -0
- three/examples/jsm/objects/MarchingCubes.d.ts +0 -0
- three/examples/jsm/objects/Reflector.d.ts +0 -0
- three/examples/jsm/objects/ReflectorForSSRPass.d.ts +0 -0
- three/examples/jsm/objects/Refractor.d.ts +0 -0
- three/examples/jsm/objects/ShadowMesh.d.ts +0 -0
- three/examples/jsm/objects/Sky.d.ts +0 -0
- three/examples/jsm/objects/Water.d.ts +0 -0
- three/examples/jsm/objects/Water2.d.ts +0 -0
- three/examples/jsm/physics/AmmoPhysics.d.ts +0 -0
- three/examples/jsm/physics/RapierPhysics.d.ts +0 -0
- three/examples/jsm/postprocessing/AfterimagePass.d.ts +0 -0
- three/examples/jsm/postprocessing/BloomPass.d.ts +0 -0
- three/examples/jsm/postprocessing/BokehPass.d.ts +0 -0
- three/examples/jsm/postprocessing/ClearPass.d.ts +0 -0
- three/examples/jsm/postprocessing/CubeTexturePass.d.ts +0 -0
- three/examples/jsm/postprocessing/DotScreenPass.d.ts +0 -0
- three/examples/jsm/postprocessing/EffectComposer.d.ts +0 -0
- three/examples/jsm/postprocessing/FilmPass.d.ts +1 -1
- three/examples/jsm/postprocessing/GlitchPass.d.ts +0 -0
- three/examples/jsm/postprocessing/HalftonePass.d.ts +0 -0
- three/examples/jsm/postprocessing/LUTPass.d.ts +0 -0
- three/examples/jsm/postprocessing/MaskPass.d.ts +0 -0
- three/examples/jsm/postprocessing/OutlinePass.d.ts +0 -0
- three/examples/jsm/postprocessing/OutputPass.d.ts +0 -0
- three/examples/jsm/postprocessing/Pass.d.ts +0 -0
- three/examples/jsm/postprocessing/RenderPass.d.ts +15 -5
- three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +0 -0
- three/examples/jsm/postprocessing/SAOPass.d.ts +1 -10
- three/examples/jsm/postprocessing/SMAAPass.d.ts +0 -0
- three/examples/jsm/postprocessing/SSAARenderPass.d.ts +0 -0
- three/examples/jsm/postprocessing/SSAOPass.d.ts +2 -5
- three/examples/jsm/postprocessing/SSRPass.d.ts +0 -0
- three/examples/jsm/postprocessing/SavePass.d.ts +0 -0
- three/examples/jsm/postprocessing/ShaderPass.d.ts +0 -0
- three/examples/jsm/postprocessing/TAARenderPass.d.ts +0 -0
- three/examples/jsm/postprocessing/TexturePass.d.ts +0 -0
- three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +0 -0
- three/examples/jsm/renderers/CSS2DRenderer.d.ts +0 -0
- three/examples/jsm/renderers/CSS3DRenderer.d.ts +0 -0
- three/examples/jsm/renderers/Projector.d.ts +0 -0
- three/examples/jsm/renderers/SVGRenderer.d.ts +0 -0
- three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +0 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +0 -0
- three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +0 -0
- three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +0 -0
- three/examples/jsm/shaders/AfterimageShader.d.ts +0 -0
- three/examples/jsm/shaders/BasicShader.d.ts +0 -0
- three/examples/jsm/shaders/BleachBypassShader.d.ts +0 -0
- three/examples/jsm/shaders/BlendShader.d.ts +0 -0
- three/examples/jsm/shaders/BokehShader.d.ts +0 -0
- three/examples/jsm/shaders/BokehShader2.d.ts +0 -0
- three/examples/jsm/shaders/BrightnessContrastShader.d.ts +0 -0
- three/examples/jsm/shaders/ColorCorrectionShader.d.ts +0 -0
- three/examples/jsm/shaders/ColorifyShader.d.ts +0 -0
- three/examples/jsm/shaders/ConvolutionShader.d.ts +0 -0
- three/examples/jsm/shaders/CopyShader.d.ts +0 -0
- three/examples/jsm/shaders/DOFMipMapShader.d.ts +0 -0
- three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +0 -0
- three/examples/jsm/shaders/DigitalGlitch.d.ts +0 -0
- three/examples/jsm/shaders/DotScreenShader.d.ts +0 -0
- three/examples/jsm/shaders/FXAAShader.d.ts +0 -0
- three/examples/jsm/shaders/FilmShader.d.ts +1 -3
- three/examples/jsm/shaders/FocusShader.d.ts +0 -0
- three/examples/jsm/shaders/FreiChenShader.d.ts +0 -0
- three/examples/jsm/shaders/GammaCorrectionShader.d.ts +0 -0
- three/examples/jsm/shaders/GodRaysShader.d.ts +0 -0
- three/examples/jsm/shaders/HalftoneShader.d.ts +0 -0
- three/examples/jsm/shaders/HorizontalBlurShader.d.ts +0 -0
- three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +0 -0
- three/examples/jsm/shaders/HueSaturationShader.d.ts +0 -0
- three/examples/jsm/shaders/KaleidoShader.d.ts +0 -0
- three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +0 -0
- three/examples/jsm/shaders/LuminosityShader.d.ts +0 -0
- three/examples/jsm/shaders/MirrorShader.d.ts +0 -0
- three/examples/jsm/shaders/NormalMapShader.d.ts +0 -0
- three/examples/jsm/shaders/OutputShader.d.ts +0 -0
- three/examples/jsm/shaders/RGBShiftShader.d.ts +0 -0
- three/examples/jsm/shaders/SAOShader.d.ts +0 -2
- three/examples/jsm/shaders/SMAAShader.d.ts +0 -0
- three/examples/jsm/shaders/SSAOShader.d.ts +0 -1
- three/examples/jsm/shaders/SSRShader.d.ts +0 -0
- three/examples/jsm/shaders/SepiaShader.d.ts +0 -0
- three/examples/jsm/shaders/SobelOperatorShader.d.ts +0 -0
- three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +0 -0
- three/examples/jsm/shaders/TechnicolorShader.d.ts +0 -0
- three/examples/jsm/shaders/ToonShader.d.ts +0 -0
- three/examples/jsm/shaders/TriangleBlurShader.d.ts +0 -0
- three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +0 -0
- three/examples/jsm/shaders/VelocityShader.d.ts +0 -0
- three/examples/jsm/shaders/VerticalBlurShader.d.ts +0 -0
- three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +0 -0
- three/examples/jsm/shaders/VignetteShader.d.ts +0 -0
- three/examples/jsm/shaders/VolumeShader.d.ts +0 -0
- three/examples/jsm/shaders/WaterRefractionShader.d.ts +0 -0
- three/examples/jsm/textures/FlakesTexture.d.ts +0 -0
- three/examples/jsm/utils/BufferGeometryUtils.d.ts +0 -0
- three/examples/jsm/utils/CameraUtils.d.ts +0 -0
- three/examples/jsm/utils/GeometryCompressionUtils.d.ts +0 -0
- three/examples/jsm/utils/GeometryUtils.d.ts +0 -0
- three/examples/jsm/utils/LDrawUtils.d.ts +0 -0
- three/examples/jsm/utils/PackedPhongMaterial.d.ts +0 -0
- three/examples/jsm/utils/SceneUtils.d.ts +0 -0
- three/examples/jsm/utils/ShadowMapViewer.d.ts +0 -0
- three/examples/jsm/utils/SkeletonUtils.d.ts +0 -0
- three/examples/jsm/utils/UVsDebug.d.ts +0 -0
- three/examples/jsm/webxr/ARButton.d.ts +0 -0
- three/examples/jsm/webxr/OculusHandModel.d.ts +0 -0
- three/examples/jsm/webxr/OculusHandPointerModel.d.ts +0 -0
- three/examples/jsm/webxr/Text2D.d.ts +0 -0
- three/examples/jsm/webxr/VRButton.d.ts +0 -0
- three/examples/jsm/webxr/XRButton.d.ts +0 -0
- three/examples/jsm/webxr/XRControllerModelFactory.d.ts +0 -0
- three/examples/jsm/webxr/XREstimatedLight.d.ts +7 -2
- three/examples/jsm/webxr/XRHandMeshModel.d.ts +0 -0
- three/examples/jsm/webxr/XRHandModelFactory.d.ts +0 -0
- three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +0 -0
- three/examples/jsm/webxr/XRPlanes.d.ts +0 -0
- three/index.d.ts +1 -2
- three/package.json +4 -6
- three/src/Three.Legacy.d.ts +0 -0
- three/src/Three.d.ts +5 -3
- three/src/animation/AnimationAction.d.ts +0 -0
- three/src/animation/AnimationClip.d.ts +0 -0
- three/src/animation/AnimationMixer.d.ts +6 -1
- three/src/animation/AnimationObjectGroup.d.ts +0 -0
- three/src/animation/AnimationUtils.d.ts +0 -1
- three/src/animation/KeyframeTrack.d.ts +0 -0
- three/src/animation/PropertyBinding.d.ts +0 -0
- three/src/animation/PropertyMixer.d.ts +0 -0
- three/src/animation/tracks/BooleanKeyframeTrack.d.ts +0 -0
- three/src/animation/tracks/ColorKeyframeTrack.d.ts +0 -0
- three/src/animation/tracks/NumberKeyframeTrack.d.ts +0 -0
- three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +0 -0
- three/src/animation/tracks/StringKeyframeTrack.d.ts +0 -0
- three/src/animation/tracks/VectorKeyframeTrack.d.ts +0 -0
- three/src/audio/Audio.d.ts +0 -0
- three/src/audio/AudioAnalyser.d.ts +0 -0
- three/src/audio/AudioContext.d.ts +0 -0
- three/src/audio/AudioListener.d.ts +0 -0
- three/src/audio/PositionalAudio.d.ts +0 -0
- three/src/cameras/ArrayCamera.d.ts +0 -0
- three/src/cameras/Camera.d.ts +0 -0
- three/src/cameras/CubeCamera.d.ts +6 -4
- three/src/cameras/OrthographicCamera.d.ts +0 -0
- three/src/cameras/PerspectiveCamera.d.ts +0 -0
- three/src/cameras/StereoCamera.d.ts +0 -0
- three/src/constants.d.ts +15 -1
- three/src/core/BufferAttribute.d.ts +0 -0
- three/src/core/BufferGeometry.d.ts +1 -1
- three/src/core/Clock.d.ts +0 -0
- three/src/core/EventDispatcher.d.ts +30 -12
- three/src/core/GLBufferAttribute.d.ts +0 -0
- three/src/core/InstancedBufferAttribute.d.ts +0 -0
- three/src/core/InstancedBufferGeometry.d.ts +0 -0
- three/src/core/InstancedInterleavedBuffer.d.ts +0 -0
- three/src/core/InterleavedBuffer.d.ts +0 -0
- three/src/core/InterleavedBufferAttribute.d.ts +0 -0
- three/src/core/Layers.d.ts +0 -0
- three/src/core/Object3D.d.ts +17 -12
- three/src/core/Raycaster.d.ts +10 -10
- three/src/core/RenderTarget.d.ts +3 -1
- three/src/core/Uniform.d.ts +0 -0
- three/src/core/UniformsGroup.d.ts +1 -1
- three/src/extras/DataUtils.d.ts +0 -0
- three/src/extras/Earcut.d.ts +0 -0
- three/src/extras/ImageUtils.d.ts +0 -0
- three/src/extras/PMREMGenerator.d.ts +0 -0
- three/src/extras/ShapeUtils.d.ts +0 -0
- three/src/extras/core/Curve.d.ts +0 -0
- three/src/extras/core/CurvePath.d.ts +2 -2
- three/src/extras/core/Interpolations.d.ts +0 -0
- three/src/extras/core/Path.d.ts +10 -10
- three/src/extras/core/Shape.d.ts +0 -0
- three/src/extras/core/ShapePath.d.ts +0 -0
- three/src/extras/curves/ArcCurve.d.ts +0 -0
- three/src/extras/curves/CatmullRomCurve3.d.ts +0 -0
- three/src/extras/curves/CubicBezierCurve.d.ts +0 -0
- three/src/extras/curves/CubicBezierCurve3.d.ts +0 -0
- three/src/extras/curves/Curves.d.ts +0 -0
- three/src/extras/curves/EllipseCurve.d.ts +0 -0
- three/src/extras/curves/LineCurve.d.ts +0 -0
- three/src/extras/curves/LineCurve3.d.ts +0 -0
- three/src/extras/curves/QuadraticBezierCurve.d.ts +0 -0
- three/src/extras/curves/QuadraticBezierCurve3.d.ts +0 -0
- three/src/extras/curves/SplineCurve.d.ts +0 -0
- three/src/geometries/BoxGeometry.d.ts +0 -0
- three/src/geometries/CapsuleGeometry.d.ts +0 -0
- three/src/geometries/CircleGeometry.d.ts +0 -0
- three/src/geometries/ConeGeometry.d.ts +0 -0
- three/src/geometries/CylinderGeometry.d.ts +0 -0
- three/src/geometries/DodecahedronGeometry.d.ts +0 -0
- three/src/geometries/EdgesGeometry.d.ts +0 -0
- three/src/geometries/ExtrudeGeometry.d.ts +0 -0
- three/src/geometries/Geometries.d.ts +0 -0
- three/src/geometries/IcosahedronGeometry.d.ts +0 -0
- three/src/geometries/LatheGeometry.d.ts +0 -0
- three/src/geometries/OctahedronGeometry.d.ts +0 -0
- three/src/geometries/PlaneGeometry.d.ts +0 -0
- three/src/geometries/PolyhedronGeometry.d.ts +0 -0
- three/src/geometries/RingGeometry.d.ts +0 -0
- three/src/geometries/ShapeGeometry.d.ts +0 -0
- three/src/geometries/SphereGeometry.d.ts +0 -0
- three/src/geometries/TetrahedronGeometry.d.ts +0 -0
- three/src/geometries/TorusGeometry.d.ts +0 -0
- three/src/geometries/TorusKnotGeometry.d.ts +0 -0
- three/src/geometries/TubeGeometry.d.ts +0 -0
- three/src/geometries/WireframeGeometry.d.ts +0 -0
- three/src/helpers/ArrowHelper.d.ts +0 -0
- three/src/helpers/AxesHelper.d.ts +0 -0
- three/src/helpers/Box3Helper.d.ts +0 -0
- three/src/helpers/BoxHelper.d.ts +0 -0
- three/src/helpers/CameraHelper.d.ts +0 -0
- three/src/helpers/DirectionalLightHelper.d.ts +0 -0
- three/src/helpers/GridHelper.d.ts +0 -0
- three/src/helpers/HemisphereLightHelper.d.ts +0 -0
- three/src/helpers/PlaneHelper.d.ts +0 -0
- three/src/helpers/PointLightHelper.d.ts +0 -0
- three/src/helpers/PolarGridHelper.d.ts +0 -0
- three/src/helpers/SkeletonHelper.d.ts +0 -0
- three/src/helpers/SpotLightHelper.d.ts +0 -0
- three/src/lights/AmbientLight.d.ts +0 -0
- three/src/lights/DirectionalLight.d.ts +0 -0
- three/src/lights/DirectionalLightShadow.d.ts +0 -0
- three/src/lights/HemisphereLight.d.ts +0 -0
- three/src/lights/Light.d.ts +0 -0
- three/src/lights/LightProbe.d.ts +0 -0
- three/src/lights/LightShadow.d.ts +0 -0
- three/src/lights/PointLight.d.ts +0 -0
- three/src/lights/PointLightShadow.d.ts +0 -0
- three/src/lights/RectAreaLight.d.ts +0 -0
- three/src/lights/SpotLight.d.ts +0 -0
- three/src/lights/SpotLightShadow.d.ts +0 -0
- three/src/loaders/AnimationLoader.d.ts +3 -10
- three/src/loaders/AudioLoader.d.ts +1 -10
- three/src/loaders/BufferGeometryLoader.d.ts +3 -13
- three/src/loaders/Cache.d.ts +0 -0
- three/src/loaders/CompressedTextureLoader.d.ts +4 -6
- three/src/loaders/CubeTextureLoader.d.ts +5 -7
- three/src/loaders/DataTextureLoader.d.ts +4 -6
- three/src/loaders/FileLoader.d.ts +8 -8
- three/src/loaders/ImageBitmapLoader.d.ts +8 -9
- three/src/loaders/ImageLoader.d.ts +3 -5
- three/src/loaders/Loader.d.ts +8 -6
- three/src/loaders/LoaderUtils.d.ts +0 -0
- three/src/loaders/LoadingManager.d.ts +0 -0
- three/src/loaders/MaterialLoader.d.ts +4 -11
- three/src/loaders/ObjectLoader.d.ts +18 -25
- three/src/loaders/TextureLoader.d.ts +4 -6
- three/src/materials/LineBasicMaterial.d.ts +0 -0
- three/src/materials/LineDashedMaterial.d.ts +0 -0
- three/src/materials/Material.d.ts +7 -1
- three/src/materials/Materials.d.ts +0 -0
- three/src/materials/MeshBasicMaterial.d.ts +0 -0
- three/src/materials/MeshDepthMaterial.d.ts +0 -0
- three/src/materials/MeshDistanceMaterial.d.ts +0 -0
- three/src/materials/MeshLambertMaterial.d.ts +0 -0
- three/src/materials/MeshMatcapMaterial.d.ts +0 -0
- three/src/materials/MeshNormalMaterial.d.ts +0 -0
- three/src/materials/MeshPhongMaterial.d.ts +0 -0
- three/src/materials/MeshPhysicalMaterial.d.ts +0 -0
- three/src/materials/MeshStandardMaterial.d.ts +0 -0
- three/src/materials/MeshToonMaterial.d.ts +0 -0
- three/src/materials/PointsMaterial.d.ts +0 -0
- three/src/materials/RawShaderMaterial.d.ts +0 -0
- three/src/materials/ShaderMaterial.d.ts +0 -0
- three/src/materials/ShadowMaterial.d.ts +0 -0
- three/src/materials/SpriteMaterial.d.ts +0 -0
- three/src/math/Box2.d.ts +0 -0
- three/src/math/Box3.d.ts +0 -0
- three/src/math/Color.d.ts +1 -2
- three/src/math/ColorManagement.d.ts +35 -23
- three/src/math/Cylindrical.d.ts +0 -0
- three/src/math/Euler.d.ts +0 -0
- three/src/math/Frustum.d.ts +0 -0
- three/src/math/Interpolant.d.ts +0 -0
- three/src/math/Line3.d.ts +0 -0
- three/src/math/MathUtils.d.ts +0 -0
- three/src/math/Matrix3.d.ts +0 -0
- three/src/math/Matrix4.d.ts +0 -0
- three/src/math/Plane.d.ts +0 -0
- three/src/math/Quaternion.d.ts +0 -0
- three/src/math/Ray.d.ts +0 -0
- three/src/math/Sphere.d.ts +0 -0
- three/src/math/Spherical.d.ts +0 -0
- three/src/math/SphericalHarmonics3.d.ts +0 -0
- three/src/math/Triangle.d.ts +0 -0
- three/src/math/Vector2.d.ts +0 -0
- three/src/math/Vector3.d.ts +0 -0
- three/src/math/Vector4.d.ts +0 -0
- three/src/math/interpolants/CubicInterpolant.d.ts +0 -0
- three/src/math/interpolants/DiscreteInterpolant.d.ts +0 -0
- three/src/math/interpolants/LinearInterpolant.d.ts +0 -0
- three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +0 -0
- three/src/objects/Bone.d.ts +0 -0
- three/src/objects/Group.d.ts +2 -2
- three/src/objects/InstancedMesh.d.ts +11 -6
- three/src/objects/LOD.d.ts +0 -0
- three/src/objects/Line.d.ts +0 -0
- three/src/objects/LineLoop.d.ts +0 -0
- three/src/objects/LineSegments.d.ts +0 -0
- three/src/objects/Mesh.d.ts +4 -5
- three/src/objects/Points.d.ts +0 -0
- three/src/objects/Skeleton.d.ts +0 -0
- three/src/objects/SkinnedMesh.d.ts +0 -0
- three/src/objects/Sprite.d.ts +2 -4
- three/src/renderers/WebGL1Renderer.d.ts +0 -0
- three/src/renderers/WebGL3DRenderTarget.d.ts +0 -0
- three/src/renderers/WebGLArrayRenderTarget.d.ts +0 -0
- three/src/renderers/WebGLCubeRenderTarget.d.ts +0 -0
- three/src/renderers/WebGLMultipleRenderTargets.d.ts +0 -0
- three/src/renderers/WebGLRenderTarget.d.ts +0 -0
- three/src/renderers/WebGLRenderer.d.ts +2 -1
- three/src/renderers/shaders/ShaderChunk.d.ts +0 -0
- three/src/renderers/shaders/ShaderLib.d.ts +0 -0
- three/src/renderers/shaders/UniformsLib.d.ts +0 -0
- three/src/renderers/shaders/UniformsUtils.d.ts +0 -0
- three/src/renderers/webgl/WebGLAttributes.d.ts +0 -0
- three/src/renderers/webgl/WebGLBindingStates.d.ts +0 -0
- three/src/renderers/webgl/WebGLBufferRenderer.d.ts +0 -0
- three/src/renderers/webgl/WebGLCapabilities.d.ts +0 -0
- three/src/renderers/webgl/WebGLClipping.d.ts +0 -0
- three/src/renderers/webgl/WebGLCubeMaps.d.ts +0 -0
- three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +0 -0
- three/src/renderers/webgl/WebGLExtensions.d.ts +0 -0
- three/src/renderers/webgl/WebGLGeometries.d.ts +0 -0
- three/src/renderers/webgl/WebGLIndexedBufferRenderer.d.ts +0 -0
- three/src/renderers/webgl/WebGLInfo.d.ts +0 -0
- three/src/renderers/webgl/WebGLLights.d.ts +5 -0
- three/src/renderers/webgl/WebGLObjects.d.ts +0 -0
- three/src/renderers/webgl/WebGLProgram.d.ts +1 -1
- three/src/renderers/webgl/WebGLPrograms.d.ts +0 -0
- three/src/renderers/webgl/WebGLProperties.d.ts +0 -0
- three/src/renderers/webgl/WebGLRenderLists.d.ts +0 -0
- three/src/renderers/webgl/WebGLShader.d.ts +0 -0
- three/src/renderers/webgl/WebGLShadowMap.d.ts +0 -0
- three/src/renderers/webgl/WebGLState.d.ts +0 -0
- three/src/renderers/webgl/WebGLTextures.d.ts +0 -0
- three/src/renderers/webgl/WebGLUniforms.d.ts +0 -0
- three/src/renderers/webgl/WebGLUniformsGroups.d.ts +0 -0
- three/src/renderers/webgl/WebGLUtils.d.ts +0 -0
- three/src/renderers/webxr/WebXRController.d.ts +21 -3
- three/src/renderers/webxr/WebXRManager.d.ts +10 -1
- three/src/scenes/Fog.d.ts +0 -0
- three/src/scenes/FogExp2.d.ts +0 -0
- three/src/scenes/Scene.d.ts +0 -0
- three/src/textures/CanvasTexture.d.ts +0 -0
- three/src/textures/CompressedArrayTexture.d.ts +0 -0
- three/src/textures/CompressedTexture.d.ts +0 -0
- three/src/textures/CubeTexture.d.ts +0 -0
- three/src/textures/Data3DTexture.d.ts +0 -0
- three/src/textures/DataArrayTexture.d.ts +0 -0
- three/src/textures/DataTexture.d.ts +0 -0
- three/src/textures/DepthTexture.d.ts +0 -0
- three/src/textures/FramebufferTexture.d.ts +0 -0
- three/src/textures/Source.d.ts +0 -0
- three/src/textures/Texture.d.ts +4 -4
- three/src/textures/VideoTexture.d.ts +0 -0
- three/src/textures/types.d.ts +0 -0
- three/src/utils.d.ts +1 -0
- three/examples/jsm/loaders/BasisTextureLoader.d.ts +0 -32
- three/examples/jsm/loaders/IFCLoader.d.ts +0 -675
- three/src/lights/AmbientLightProbe.d.ts +0 -26
- three/src/lights/HemisphereLightProbe.d.ts +0 -27
|
@@ -1 +1,609 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type KeyToValueOfType<T, V> = { [K in keyof T]: T[K] extends V ? K : never }[keyof T];
|
|
2
|
+
|
|
3
|
+
export default GUI;
|
|
4
|
+
export class GUI {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a panel that holds controllers.
|
|
7
|
+
* @example
|
|
8
|
+
* new GUI();
|
|
9
|
+
* new GUI( { container: document.getElementById( 'custom' ) } );
|
|
10
|
+
*
|
|
11
|
+
* @param [options]
|
|
12
|
+
* @param [options.autoPlace=true]
|
|
13
|
+
* Adds the GUI to `document.body` and fixes it to the top right of the page.
|
|
14
|
+
*
|
|
15
|
+
* @param [options.container]
|
|
16
|
+
* Adds the GUI to this DOM element. Overrides `autoPlace`.
|
|
17
|
+
*
|
|
18
|
+
* @param [options.width=245]
|
|
19
|
+
* Width of the GUI in pixels, usually set when name labels become too long. Note that you can make
|
|
20
|
+
* name labels wider in CSS with `.lil‑gui { ‑‑name‑width: 55% }`
|
|
21
|
+
*
|
|
22
|
+
* @param [options.title=Controls]
|
|
23
|
+
* Name to display in the title bar.
|
|
24
|
+
*
|
|
25
|
+
* @param [options.injectStyles=true]
|
|
26
|
+
* Injects the default stylesheet into the page if this is the first GUI.
|
|
27
|
+
* Pass `false` to use your own stylesheet.
|
|
28
|
+
*
|
|
29
|
+
* @param [options.touchStyles=true]
|
|
30
|
+
* Makes controllers larger on touch devices. Pass `false` to disable touch styles.
|
|
31
|
+
*
|
|
32
|
+
* @param [options.parent]
|
|
33
|
+
* Adds this GUI as a child in another GUI. Usually this is done for you by `addFolder()`.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
constructor({
|
|
37
|
+
parent,
|
|
38
|
+
autoPlace,
|
|
39
|
+
container,
|
|
40
|
+
width,
|
|
41
|
+
title,
|
|
42
|
+
injectStyles,
|
|
43
|
+
touchStyles,
|
|
44
|
+
}?: {
|
|
45
|
+
autoPlace?: boolean;
|
|
46
|
+
container?: HTMLElement;
|
|
47
|
+
width?: number;
|
|
48
|
+
title?: string;
|
|
49
|
+
injectStyles?: boolean;
|
|
50
|
+
touchStyles?: number;
|
|
51
|
+
parent?: GUI;
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* The GUI containing this folder, or `undefined` if this is the root GUI.
|
|
55
|
+
*/
|
|
56
|
+
parent: GUI;
|
|
57
|
+
/**
|
|
58
|
+
* The top level GUI containing this folder, or `this` if this is the root GUI.
|
|
59
|
+
*/
|
|
60
|
+
root: GUI;
|
|
61
|
+
/**
|
|
62
|
+
* The list of controllers and folders contained by this GUI.
|
|
63
|
+
*/
|
|
64
|
+
children: Array<GUI | Controller>;
|
|
65
|
+
/**
|
|
66
|
+
* The list of controllers contained by this GUI.
|
|
67
|
+
*/
|
|
68
|
+
controllers: Controller[];
|
|
69
|
+
/**
|
|
70
|
+
* The list of folders contained by this GUI.
|
|
71
|
+
*/
|
|
72
|
+
folders: GUI[];
|
|
73
|
+
/**
|
|
74
|
+
* Used to determine if the GUI is closed. Use `gui.open()` or `gui.close()` to change this.
|
|
75
|
+
*/
|
|
76
|
+
_closed: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Used to determine if the GUI is hidden. Use `gui.show()` or `gui.hide()` to change this.
|
|
79
|
+
*/
|
|
80
|
+
_hidden: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* The outermost container element.
|
|
83
|
+
*/
|
|
84
|
+
domElement: HTMLElement;
|
|
85
|
+
/**
|
|
86
|
+
* The DOM element that contains the title.
|
|
87
|
+
*/
|
|
88
|
+
$title: HTMLElement;
|
|
89
|
+
/**
|
|
90
|
+
* The DOM element that contains children.
|
|
91
|
+
*/
|
|
92
|
+
$children: HTMLElement;
|
|
93
|
+
/**
|
|
94
|
+
* Adds a controller to the GUI, inferring controller type using the `typeof` operator.
|
|
95
|
+
* @example
|
|
96
|
+
* gui.add( object, 'property' );
|
|
97
|
+
* gui.add( object, 'number', 0, 100, 1 );
|
|
98
|
+
* gui.add( object, 'options', [ 1, 2, 3 ] );
|
|
99
|
+
*
|
|
100
|
+
* @param object The object the controller will modify.
|
|
101
|
+
* @param property Name of the property to control.
|
|
102
|
+
* @param [$1] Minimum value for number controllers, or the set of
|
|
103
|
+
* selectable values for a dropdown.
|
|
104
|
+
* @param [max] Maximum value for number controllers.
|
|
105
|
+
* @param [step] Step value for number controllers.
|
|
106
|
+
*/
|
|
107
|
+
add<T, K extends keyof T>(
|
|
108
|
+
object: T,
|
|
109
|
+
property: K,
|
|
110
|
+
options: ReadonlyArray<T[K]> | Record<string, T[K]>,
|
|
111
|
+
): OptionController<T, K>;
|
|
112
|
+
add<T, K extends KeyToValueOfType<T, number>>(
|
|
113
|
+
object: T,
|
|
114
|
+
property: K,
|
|
115
|
+
min?: number,
|
|
116
|
+
max?: number,
|
|
117
|
+
step?: number,
|
|
118
|
+
): NumberController<T, K>;
|
|
119
|
+
add<T, K extends KeyToValueOfType<T, boolean>>(object: T, property: K, options?: never): BooleanController<T, K>;
|
|
120
|
+
add<T, K extends KeyToValueOfType<T, string>>(object: T, property: K, options?: never): StringController<T, K>;
|
|
121
|
+
add<T, K extends KeyToValueOfType<T, (this: T) => void>>(
|
|
122
|
+
object: T,
|
|
123
|
+
property: K,
|
|
124
|
+
options?: never,
|
|
125
|
+
): FunctionController<T, K>;
|
|
126
|
+
/**
|
|
127
|
+
* Adds a color controller to the GUI.
|
|
128
|
+
* @example
|
|
129
|
+
* params = {
|
|
130
|
+
* cssColor: '#ff00ff',
|
|
131
|
+
* rgbColor: { r: 0, g: 0.2, b: 0.4 },
|
|
132
|
+
* customRange: [ 0, 127, 255 ],
|
|
133
|
+
* };
|
|
134
|
+
*
|
|
135
|
+
* gui.addColor( params, 'cssColor' );
|
|
136
|
+
* gui.addColor( params, 'rgbColor' );
|
|
137
|
+
* gui.addColor( params, 'customRange', 255 );
|
|
138
|
+
*
|
|
139
|
+
* @param object The object the controller will modify.
|
|
140
|
+
* @param property Name of the property to control.
|
|
141
|
+
* @param rgbScale Maximum value for a color channel when using an RGB color. You may
|
|
142
|
+
* need to set this to 255 if your colors are too bright.
|
|
143
|
+
*/
|
|
144
|
+
addColor<T, K extends keyof T>(object: T, property: K, rgbScale?: number): ColorController<T, K>;
|
|
145
|
+
/**
|
|
146
|
+
* Adds a folder to the GUI, which is just another GUI. This method returns
|
|
147
|
+
* the nested GUI so you can add controllers to it.
|
|
148
|
+
* @example
|
|
149
|
+
* const folder = gui.addFolder( 'Position' );
|
|
150
|
+
* folder.add( position, 'x' );
|
|
151
|
+
* folder.add( position, 'y' );
|
|
152
|
+
* folder.add( position, 'z' );
|
|
153
|
+
*
|
|
154
|
+
* @param title Name to display in the folder's title bar.
|
|
155
|
+
*/
|
|
156
|
+
addFolder(title: string): GUI;
|
|
157
|
+
/**
|
|
158
|
+
* Recalls values that were saved with `gui.save()`.
|
|
159
|
+
* @param obj
|
|
160
|
+
* @param recursive Pass false to exclude folders descending from this GUI.
|
|
161
|
+
*/
|
|
162
|
+
load(obj: object, recursive?: boolean): this;
|
|
163
|
+
/**
|
|
164
|
+
* Returns an object mapping controller names to values. The object can be passed to `gui.load()` to
|
|
165
|
+
* recall these values.
|
|
166
|
+
* @example
|
|
167
|
+
* {
|
|
168
|
+
* controllers: {
|
|
169
|
+
* prop1: 1,
|
|
170
|
+
* prop2: 'value',
|
|
171
|
+
* ...
|
|
172
|
+
* },
|
|
173
|
+
* folders: {
|
|
174
|
+
* folderName1: { controllers, folders },
|
|
175
|
+
* folderName2: { controllers, folders }
|
|
176
|
+
* ...
|
|
177
|
+
* }
|
|
178
|
+
* }
|
|
179
|
+
*
|
|
180
|
+
* @param recursive Pass false to exclude folders descending from this GUI.
|
|
181
|
+
*/
|
|
182
|
+
save(recursive?: boolean): object;
|
|
183
|
+
/**
|
|
184
|
+
* Opens a GUI or folder. GUI and folders are open by default.
|
|
185
|
+
* @param open Pass false to close
|
|
186
|
+
* @example
|
|
187
|
+
* gui.open(); // open
|
|
188
|
+
* gui.open( false ); // close
|
|
189
|
+
* gui.open( gui._closed ); // toggle
|
|
190
|
+
*/
|
|
191
|
+
open(open?: boolean): this;
|
|
192
|
+
/**
|
|
193
|
+
* Closes the GUI.
|
|
194
|
+
*/
|
|
195
|
+
close(): this;
|
|
196
|
+
/**
|
|
197
|
+
* Shows the GUI after it's been hidden.
|
|
198
|
+
* @param show
|
|
199
|
+
* @example
|
|
200
|
+
* gui.show();
|
|
201
|
+
* gui.show( false ); // hide
|
|
202
|
+
* gui.show( gui._hidden ); // toggle
|
|
203
|
+
*/
|
|
204
|
+
show(show?: boolean): this;
|
|
205
|
+
/**
|
|
206
|
+
* Hides the GUI.
|
|
207
|
+
*/
|
|
208
|
+
hide(): this;
|
|
209
|
+
openAnimated(open?: boolean): GUI;
|
|
210
|
+
/**
|
|
211
|
+
* Change the title of this GUI.
|
|
212
|
+
* @param title
|
|
213
|
+
*/
|
|
214
|
+
title(title: string): this;
|
|
215
|
+
/**
|
|
216
|
+
* Current title of the GUI. Use `gui.title( 'Title' )` to modify this value.
|
|
217
|
+
*/
|
|
218
|
+
_title: string;
|
|
219
|
+
/**
|
|
220
|
+
* Resets all controllers to their initial values.
|
|
221
|
+
* @param recursive Pass false to exclude folders descending from this GUI.
|
|
222
|
+
*/
|
|
223
|
+
reset(recursive?: boolean): this;
|
|
224
|
+
/**
|
|
225
|
+
* Pass a function to be called whenever a controller in this GUI changes.
|
|
226
|
+
* @param callback
|
|
227
|
+
* @example
|
|
228
|
+
* gui.onChange( event => {
|
|
229
|
+
* event.object // object that was modified
|
|
230
|
+
* event.property // string, name of property
|
|
231
|
+
* event.value // new value of controller
|
|
232
|
+
* event.controller // controller that was modified
|
|
233
|
+
* } );
|
|
234
|
+
*/
|
|
235
|
+
onChange(
|
|
236
|
+
callback: (arg0: { object: object; property: string; value: unknown; controller: Controller }) => void,
|
|
237
|
+
): this;
|
|
238
|
+
/**
|
|
239
|
+
* Used to access the function bound to `onChange` events. Don't modify this value
|
|
240
|
+
* directly. Use the `gui.onChange( callback )` method instead.
|
|
241
|
+
*/
|
|
242
|
+
_onChange: (arg0: { object: object; property: string; value: unknown; controller: Controller }) => void;
|
|
243
|
+
_callOnChange(controller: Controller): void;
|
|
244
|
+
/**
|
|
245
|
+
* Pass a function to be called whenever a controller in this GUI has finished changing.
|
|
246
|
+
* @param callback
|
|
247
|
+
* @example
|
|
248
|
+
* gui.onFinishChange( event => {
|
|
249
|
+
* event.object // object that was modified
|
|
250
|
+
* event.property // string, name of property
|
|
251
|
+
* event.value // new value of controller
|
|
252
|
+
* event.controller // controller that was modified
|
|
253
|
+
* } );
|
|
254
|
+
*/
|
|
255
|
+
onFinishChange(
|
|
256
|
+
callback: (arg0: { object: object; property: string; value: unknown; controller: Controller }) => void,
|
|
257
|
+
): this;
|
|
258
|
+
/**
|
|
259
|
+
* Used to access the function bound to `onFinishChange` events. Don't modify this value
|
|
260
|
+
* directly. Use the `gui.onFinishChange( callback )` method instead.
|
|
261
|
+
*/
|
|
262
|
+
_onFinishChange: (arg0: { object: object; property: string; value: unknown; controller: Controller }) => void;
|
|
263
|
+
_callOnFinishChange(controller: Controller): void;
|
|
264
|
+
/**
|
|
265
|
+
* Destroys all DOM elements and event listeners associated with this GUI
|
|
266
|
+
*/
|
|
267
|
+
destroy(): void;
|
|
268
|
+
/**
|
|
269
|
+
* Returns an array of controllers contained by this GUI and its descendents.
|
|
270
|
+
*/
|
|
271
|
+
controllersRecursive(): Controller[];
|
|
272
|
+
/**
|
|
273
|
+
* Returns an array of folders contained by this GUI and its descendents.
|
|
274
|
+
*/
|
|
275
|
+
foldersRecursive(): GUI[];
|
|
276
|
+
}
|
|
277
|
+
export class BooleanController<
|
|
278
|
+
T = Record<string, unknown>,
|
|
279
|
+
K extends KeyToValueOfType<T, boolean> = KeyToValueOfType<T, boolean>,
|
|
280
|
+
> extends Controller<T, K> {
|
|
281
|
+
constructor(parent: GUI, object: T, property: K);
|
|
282
|
+
$input: HTMLInputElement;
|
|
283
|
+
}
|
|
284
|
+
export class ColorController<T = Record<string, unknown>, K extends keyof T = keyof T> extends Controller<T, K> {
|
|
285
|
+
constructor(parent: GUI, object: T, property: K, rgbScale: number);
|
|
286
|
+
$input: HTMLInputElement;
|
|
287
|
+
$text: HTMLInputElement;
|
|
288
|
+
$display: HTMLDivElement;
|
|
289
|
+
_format:
|
|
290
|
+
| {
|
|
291
|
+
isPrimitive: boolean;
|
|
292
|
+
match: (v: unknown) => boolean;
|
|
293
|
+
fromHexString: typeof normalizeColorString;
|
|
294
|
+
toHexString: typeof normalizeColorString;
|
|
295
|
+
}
|
|
296
|
+
| {
|
|
297
|
+
isPrimitive: boolean;
|
|
298
|
+
match: (arg: unknown) => arg is unknown[];
|
|
299
|
+
fromHexString(string: unknown, target: unknown, rgbScale?: number): void;
|
|
300
|
+
toHexString([r, g, b]: [unknown, unknown, unknown], rgbScale?: number): string;
|
|
301
|
+
}
|
|
302
|
+
| {
|
|
303
|
+
isPrimitive: boolean;
|
|
304
|
+
match: (v: unknown) => boolean;
|
|
305
|
+
fromHexString(string: unknown, target: unknown, rgbScale?: number): void;
|
|
306
|
+
toHexString(
|
|
307
|
+
{
|
|
308
|
+
r,
|
|
309
|
+
g,
|
|
310
|
+
b,
|
|
311
|
+
}: {
|
|
312
|
+
r: unknown;
|
|
313
|
+
g: unknown;
|
|
314
|
+
b: unknown;
|
|
315
|
+
},
|
|
316
|
+
rgbScale?: number,
|
|
317
|
+
): string;
|
|
318
|
+
};
|
|
319
|
+
_rgbScale: number;
|
|
320
|
+
_initialValueHexString: string | boolean;
|
|
321
|
+
_textFocused: boolean;
|
|
322
|
+
_setValueFromHexString(value: unknown): void;
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* lil-gui
|
|
326
|
+
* https://lil-gui.georgealways.com
|
|
327
|
+
* @version 0.17.0
|
|
328
|
+
* @author George Michael Brower
|
|
329
|
+
* @license MIT
|
|
330
|
+
*/
|
|
331
|
+
/**
|
|
332
|
+
* Base class for all controllers.
|
|
333
|
+
*/
|
|
334
|
+
export class Controller<T = Record<string, unknown>, K extends keyof T = keyof T> {
|
|
335
|
+
constructor(parent: GUI, object: T, property: K, className: string, widgetTag?: string);
|
|
336
|
+
/**
|
|
337
|
+
* The GUI that contains this controller.
|
|
338
|
+
*/
|
|
339
|
+
parent: GUI;
|
|
340
|
+
/**
|
|
341
|
+
* The object this controller will modify.
|
|
342
|
+
*/
|
|
343
|
+
object: object;
|
|
344
|
+
/**
|
|
345
|
+
* The name of the property to control.
|
|
346
|
+
*/
|
|
347
|
+
property: string;
|
|
348
|
+
/**
|
|
349
|
+
* Used to determine if the controller is disabled.
|
|
350
|
+
* Use `controller.disable( true|false )` to modify this value
|
|
351
|
+
*/
|
|
352
|
+
_disabled: boolean;
|
|
353
|
+
/**
|
|
354
|
+
* Used to determine if the Controller is hidden.
|
|
355
|
+
* Use `controller.show()` or `controller.hide()` to change this.
|
|
356
|
+
*/
|
|
357
|
+
_hidden: boolean;
|
|
358
|
+
/**
|
|
359
|
+
* The value of `object[ property ]` when the controller was created.
|
|
360
|
+
*/
|
|
361
|
+
initialValue: T[K];
|
|
362
|
+
/**
|
|
363
|
+
* The outermost container DOM element for this controller.
|
|
364
|
+
*/
|
|
365
|
+
domElement: HTMLElement;
|
|
366
|
+
/**
|
|
367
|
+
* The DOM element that contains the controller's name.
|
|
368
|
+
*/
|
|
369
|
+
$name: HTMLElement;
|
|
370
|
+
/**
|
|
371
|
+
* The DOM element that contains the controller's "widget" (which differs by controller type).
|
|
372
|
+
*/
|
|
373
|
+
$widget: HTMLElement;
|
|
374
|
+
/**
|
|
375
|
+
* The DOM element that receives the disabled attribute when using disable()
|
|
376
|
+
*/
|
|
377
|
+
$disable: HTMLElement;
|
|
378
|
+
_listenCallback(): void;
|
|
379
|
+
/**
|
|
380
|
+
* Sets the name of the controller and its label in the GUI.
|
|
381
|
+
* @param name
|
|
382
|
+
*/
|
|
383
|
+
name(name: string): this;
|
|
384
|
+
/**
|
|
385
|
+
* The controller's name. Use `controller.name( 'Name' )` to modify this value.
|
|
386
|
+
*/
|
|
387
|
+
_name: string;
|
|
388
|
+
/**
|
|
389
|
+
* Pass a function to be called whenever the value is modified by this controller.
|
|
390
|
+
* The function receives the new value as its first parameter. The value of `this` will be the
|
|
391
|
+
* controller.
|
|
392
|
+
* @param callback
|
|
393
|
+
* @example
|
|
394
|
+
* const controller = gui.add( object, 'property' );
|
|
395
|
+
*
|
|
396
|
+
* controller.onChange( function( v ) {
|
|
397
|
+
* console.log( 'The value is now ' + v );
|
|
398
|
+
* console.assert( this === controller );
|
|
399
|
+
* } );
|
|
400
|
+
*/
|
|
401
|
+
onChange(callback: (value: T[K]) => void): this;
|
|
402
|
+
/**
|
|
403
|
+
* Used to access the function bound to `onChange` events. Don't modify this value directly.
|
|
404
|
+
* Use the `controller.onChange( callback )` method instead.
|
|
405
|
+
*/
|
|
406
|
+
_onChange: (value: T[K]) => void;
|
|
407
|
+
/**
|
|
408
|
+
* Calls the onChange methods of this controller and its parent GUI.
|
|
409
|
+
*/
|
|
410
|
+
protected _callOnChange(): void;
|
|
411
|
+
_changed: boolean;
|
|
412
|
+
/**
|
|
413
|
+
* Pass a function to be called after this controller has been modified and loses focus.
|
|
414
|
+
* @param callback
|
|
415
|
+
* @example
|
|
416
|
+
* const controller = gui.add( object, 'property' );
|
|
417
|
+
*
|
|
418
|
+
* controller.onFinishChange( function( v ) {
|
|
419
|
+
* console.log( 'Changes complete: ' + v );
|
|
420
|
+
* console.assert( this === controller );
|
|
421
|
+
* } );
|
|
422
|
+
*/
|
|
423
|
+
onFinishChange(callback: (value: T[K]) => void): this;
|
|
424
|
+
/**
|
|
425
|
+
* Used to access the function bound to `onFinishChange` events. Don't modify this value
|
|
426
|
+
* directly. Use the `controller.onFinishChange( callback )` method instead.
|
|
427
|
+
*/
|
|
428
|
+
_onFinishChange: (value: T[K]) => void;
|
|
429
|
+
/**
|
|
430
|
+
* Should be called by Controller when its widgets lose focus.
|
|
431
|
+
*/
|
|
432
|
+
protected _callOnFinishChange(): void;
|
|
433
|
+
/**
|
|
434
|
+
* Sets the controller back to its initial value.
|
|
435
|
+
*/
|
|
436
|
+
reset(): this;
|
|
437
|
+
/**
|
|
438
|
+
* Enables this controller.
|
|
439
|
+
* @param enabled
|
|
440
|
+
* @example
|
|
441
|
+
* controller.enable();
|
|
442
|
+
* controller.enable( false ); // disable
|
|
443
|
+
* controller.enable( controller._disabled ); // toggle
|
|
444
|
+
*/
|
|
445
|
+
enable(enabled?: boolean): this;
|
|
446
|
+
/**
|
|
447
|
+
* Disables this controller.
|
|
448
|
+
* @param disabled
|
|
449
|
+
* @example
|
|
450
|
+
* controller.disable();
|
|
451
|
+
* controller.disable( false ); // enable
|
|
452
|
+
* controller.disable( !controller._disabled ); // toggle
|
|
453
|
+
*/
|
|
454
|
+
disable(disabled?: boolean): this;
|
|
455
|
+
/**
|
|
456
|
+
* Shows the Controller after it's been hidden.
|
|
457
|
+
* @param show
|
|
458
|
+
* @example
|
|
459
|
+
* controller.show();
|
|
460
|
+
* controller.show( false ); // hide
|
|
461
|
+
* controller.show( controller._hidden ); // toggle
|
|
462
|
+
*/
|
|
463
|
+
show(show?: boolean): this;
|
|
464
|
+
/**
|
|
465
|
+
* Hides the Controller.
|
|
466
|
+
*/
|
|
467
|
+
hide(): this;
|
|
468
|
+
/**
|
|
469
|
+
* Destroys this controller and replaces it with a new option controller. Provided as a more
|
|
470
|
+
* descriptive syntax for `gui.add`, but primarily for compatibility with dat.gui.
|
|
471
|
+
*
|
|
472
|
+
* Use caution, as this method will destroy old references to this controller. It will also
|
|
473
|
+
* change controller order if called out of sequence, moving the option controller to the end of
|
|
474
|
+
* the GUI.
|
|
475
|
+
* @example
|
|
476
|
+
* // safe usage
|
|
477
|
+
*
|
|
478
|
+
* gui.add( object1, 'property' ).options( [ 'a', 'b', 'c' ] );
|
|
479
|
+
* gui.add( object2, 'property' );
|
|
480
|
+
*
|
|
481
|
+
* // danger
|
|
482
|
+
*
|
|
483
|
+
* const c = gui.add( object1, 'property' );
|
|
484
|
+
* gui.add( object2, 'property' );
|
|
485
|
+
*
|
|
486
|
+
* c.options( [ 'a', 'b', 'c' ] );
|
|
487
|
+
* // controller is now at the end of the GUI even though it was added first
|
|
488
|
+
*
|
|
489
|
+
* assert( c.parent.children.indexOf( c ) === -1 )
|
|
490
|
+
* // c references a controller that no longer exists
|
|
491
|
+
*
|
|
492
|
+
* @param options
|
|
493
|
+
*/
|
|
494
|
+
options(options: object | unknown[]): Controller;
|
|
495
|
+
/**
|
|
496
|
+
* Calls `updateDisplay()` every animation frame. Pass `false` to stop listening.
|
|
497
|
+
* @param listen
|
|
498
|
+
*/
|
|
499
|
+
listen(listen?: boolean): this;
|
|
500
|
+
/**
|
|
501
|
+
* Used to determine if the controller is currently listening. Don't modify this value
|
|
502
|
+
* directly. Use the `controller.listen( true|false )` method instead.
|
|
503
|
+
*/
|
|
504
|
+
_listening: boolean;
|
|
505
|
+
_listenCallbackID: number;
|
|
506
|
+
_listenPrevValue: unknown;
|
|
507
|
+
/**
|
|
508
|
+
* Returns `object[ property ]`.
|
|
509
|
+
*/
|
|
510
|
+
getValue(): T[K];
|
|
511
|
+
/**
|
|
512
|
+
* Sets the value of `object[ property ]`, invokes any `onChange` handlers and updates the display.
|
|
513
|
+
* @param value
|
|
514
|
+
*/
|
|
515
|
+
setValue(value: T[K]): this;
|
|
516
|
+
/**
|
|
517
|
+
* Updates the display to keep it in sync with the current value. Useful for updating your
|
|
518
|
+
* controllers when their values have been modified outside of the GUI.
|
|
519
|
+
*/
|
|
520
|
+
updateDisplay(): this;
|
|
521
|
+
load(value: T[K]): this;
|
|
522
|
+
save(): T[K];
|
|
523
|
+
/**
|
|
524
|
+
* Destroys this controller and removes it from the parent GUI.
|
|
525
|
+
*/
|
|
526
|
+
destroy(): void;
|
|
527
|
+
}
|
|
528
|
+
export class FunctionController<
|
|
529
|
+
T = Record<string, unknown>,
|
|
530
|
+
K extends KeyToValueOfType<T, (this: T) => void> = KeyToValueOfType<T, (this: T) => void>,
|
|
531
|
+
> extends Controller<T, K> {
|
|
532
|
+
constructor(parent: GUI, object: T, property: K);
|
|
533
|
+
$button: HTMLButtonElement;
|
|
534
|
+
}
|
|
535
|
+
export class NumberController<
|
|
536
|
+
T = Record<string, unknown>,
|
|
537
|
+
K extends KeyToValueOfType<T, number> = KeyToValueOfType<T, number>,
|
|
538
|
+
> extends Controller<T, K> {
|
|
539
|
+
constructor(
|
|
540
|
+
parent: GUI,
|
|
541
|
+
object: T,
|
|
542
|
+
property: K,
|
|
543
|
+
min: number | undefined,
|
|
544
|
+
max: number | undefined,
|
|
545
|
+
step: number | undefined,
|
|
546
|
+
);
|
|
547
|
+
_decimals: unknown;
|
|
548
|
+
_min: unknown;
|
|
549
|
+
_max: unknown;
|
|
550
|
+
_step: unknown;
|
|
551
|
+
_stepExplicit: boolean;
|
|
552
|
+
_initInput(): void;
|
|
553
|
+
$input: HTMLInputElement;
|
|
554
|
+
_inputFocused: boolean;
|
|
555
|
+
_initSlider(): void;
|
|
556
|
+
_hasSlider: boolean;
|
|
557
|
+
$slider: HTMLDivElement;
|
|
558
|
+
$fill: HTMLDivElement;
|
|
559
|
+
_setDraggingStyle(active: unknown, axis?: string): void;
|
|
560
|
+
_getImplicitStep(): number;
|
|
561
|
+
_onUpdateMinMax(): void;
|
|
562
|
+
_normalizeMouseWheel(e: unknown): unknown;
|
|
563
|
+
_arrowKeyMultiplier(e: unknown): number;
|
|
564
|
+
_snap(value: unknown): number;
|
|
565
|
+
_clamp(value: unknown): unknown;
|
|
566
|
+
_snapClampSetValue(value: unknown): void;
|
|
567
|
+
get _hasScrollBar(): boolean;
|
|
568
|
+
get _hasMin(): boolean;
|
|
569
|
+
get _hasMax(): boolean;
|
|
570
|
+
/**
|
|
571
|
+
* Sets the minimum value. Only works on number controllers.
|
|
572
|
+
* @param min
|
|
573
|
+
*/
|
|
574
|
+
min(min: number): this;
|
|
575
|
+
/**
|
|
576
|
+
* Sets the maximum value. Only works on number controllers.
|
|
577
|
+
* @param max
|
|
578
|
+
*/
|
|
579
|
+
max(max: number): this;
|
|
580
|
+
/**
|
|
581
|
+
* Values set by this controller will be rounded to multiples of `step`. Only works on number
|
|
582
|
+
* controllers.
|
|
583
|
+
* @param step
|
|
584
|
+
*/
|
|
585
|
+
step(step: number): this;
|
|
586
|
+
/**
|
|
587
|
+
* Rounds the displayed value to a fixed number of decimals, without affecting the actual value
|
|
588
|
+
* like `step()`. Only works on number controllers.
|
|
589
|
+
* @example
|
|
590
|
+
* gui.add( object, 'property' ).listen().decimals( 4 );
|
|
591
|
+
* @param decimals
|
|
592
|
+
*/
|
|
593
|
+
decimals(decimals: number): this;
|
|
594
|
+
}
|
|
595
|
+
export class OptionController<T = Record<string, unknown>, K extends keyof T = keyof T> extends Controller<T, K> {
|
|
596
|
+
constructor(parent: GUI, object: T, property: K, options: ReadonlyArray<T[K]> | Record<string, T[K]>);
|
|
597
|
+
$select: HTMLSelectElement;
|
|
598
|
+
$display: HTMLDivElement;
|
|
599
|
+
_values: Array<T[K]>;
|
|
600
|
+
_names: unknown[];
|
|
601
|
+
}
|
|
602
|
+
export class StringController<
|
|
603
|
+
T = Record<string, unknown>,
|
|
604
|
+
K extends KeyToValueOfType<T, string> = KeyToValueOfType<T, string>,
|
|
605
|
+
> extends Controller<T, K> {
|
|
606
|
+
constructor(parent: GUI, object: T, property: K);
|
|
607
|
+
$input: HTMLInputElement;
|
|
608
|
+
}
|
|
609
|
+
declare function normalizeColorString(string: unknown): string | false;
|
|
File without changes
|
|
File without changes
|