From 278e724f49b609539b3d760a43ac127c1257c34e Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 31 Jan 2024 12:50:23 -0500 Subject: [PATCH 1/2] Format using dprint --- .dprint.jsonc | 33 ++ .eslintrc.cjs | 2 +- .github/workflows/CI.yml | 128 ++--- .../.prettierrc.json | 0 notNeededPackages.json | 3 - package.json | 7 +- pnpm-lock.yaml | 152 ++++- pnpm-workspace.yaml | 4 +- types/three/build/three.d.cts | 2 +- types/three/build/three.module.d.ts | 2 +- types/three/build/three.module.min.d.ts | 2 +- types/three/examples/jsm/Addons.d.ts | 538 +++++++++--------- .../jsm/animation/AnimationClipCreator.d.ts | 2 +- .../examples/jsm/animation/CCDIKSolver.d.ts | 2 +- .../jsm/animation/MMDAnimationHelper.d.ts | 10 +- .../examples/jsm/animation/MMDPhysics.d.ts | 2 +- .../examples/jsm/cameras/CinematicCamera.d.ts | 8 +- .../jsm/controls/ArcballControls.d.ts | 16 +- .../examples/jsm/controls/DragControls.d.ts | 2 +- .../jsm/controls/FirstPersonControls.d.ts | 2 +- .../examples/jsm/controls/FlyControls.d.ts | 2 +- .../examples/jsm/controls/MapControls.d.ts | 4 +- .../examples/jsm/controls/OrbitControls.d.ts | 2 +- .../jsm/controls/PointerLockControls.d.ts | 2 +- .../jsm/controls/TrackballControls.d.ts | 2 +- .../jsm/controls/TransformControls.d.ts | 74 +-- types/three/examples/jsm/csm/CSM.d.ts | 6 +- types/three/examples/jsm/csm/CSMFrustum.d.ts | 2 +- types/three/examples/jsm/csm/CSMHelper.d.ts | 4 +- .../examples/jsm/curves/CurveExtras.d.ts | 2 +- .../three/examples/jsm/curves/NURBSCurve.d.ts | 2 +- .../examples/jsm/curves/NURBSSurface.d.ts | 2 +- .../three/examples/jsm/curves/NURBSUtils.d.ts | 2 +- .../examples/jsm/curves/NURBSVolume.d.ts | 2 +- .../examples/jsm/deprecated/Geometry.d.ts | 21 +- .../examples/jsm/effects/AnaglyphEffect.d.ts | 2 +- .../examples/jsm/effects/AsciiEffect.d.ts | 2 +- .../examples/jsm/effects/OutlineEffect.d.ts | 2 +- .../jsm/effects/ParallaxBarrierEffect.d.ts | 2 +- .../jsm/effects/PeppersGhostEffect.d.ts | 2 +- .../examples/jsm/effects/StereoEffect.d.ts | 2 +- .../jsm/environments/DebugEnvironment.d.ts | 2 +- .../jsm/environments/RoomEnvironment.d.ts | 2 +- .../examples/jsm/exporters/DRACOExporter.d.ts | 2 +- .../examples/jsm/exporters/EXRExporter.d.ts | 2 +- .../examples/jsm/exporters/GLTFExporter.d.ts | 2 +- .../examples/jsm/exporters/KTX2Exporter.d.ts | 2 +- .../examples/jsm/exporters/MMDExporter.d.ts | 2 +- .../examples/jsm/exporters/OBJExporter.d.ts | 2 +- .../examples/jsm/exporters/PLYExporter.d.ts | 2 +- .../examples/jsm/exporters/STLExporter.d.ts | 2 +- .../examples/jsm/exporters/USDZExporter.d.ts | 2 +- .../jsm/geometries/BoxLineGeometry.d.ts | 2 +- .../jsm/geometries/ConvexGeometry.d.ts | 2 +- .../jsm/geometries/DecalGeometry.d.ts | 2 +- .../jsm/geometries/ParametricGeometries.d.ts | 4 +- .../jsm/geometries/ParametricGeometry.d.ts | 2 +- .../jsm/geometries/RoundedBoxGeometry.d.ts | 2 +- .../jsm/geometries/SDFGeometryGenerator.d.ts | 2 +- .../jsm/geometries/TeapotGeometry.d.ts | 2 +- .../examples/jsm/geometries/TextGeometry.d.ts | 6 +- .../jsm/helpers/LightProbeHelper.d.ts | 2 +- .../examples/jsm/helpers/OctreeHelper.d.ts | 6 +- .../jsm/helpers/PositionalAudioHelper.d.ts | 2 +- .../jsm/helpers/RectAreaLightHelper.d.ts | 2 +- .../examples/jsm/helpers/TextureHelper.d.ts | 4 +- .../jsm/helpers/VertexNormalsHelper.d.ts | 2 +- .../jsm/helpers/VertexTangentsHelper.d.ts | 2 +- .../examples/jsm/helpers/ViewHelper.d.ts | 2 +- .../examples/jsm/interactive/HTMLMesh.d.ts | 2 +- .../jsm/interactive/InteractiveGroup.d.ts | 2 +- .../jsm/interactive/SelectionBox.d.ts | 2 +- .../jsm/interactive/SelectionHelper.d.ts | 2 +- .../examples/jsm/libs/fflate.module.d.ts | 2 +- .../examples/jsm/libs/lil-gui.module.min.d.ts | 53 +- .../jsm/libs/meshopt_decoder.module.d.ts | 2 +- .../three/examples/jsm/libs/stats.module.d.ts | 2 +- .../three/examples/jsm/libs/tween.module.d.ts | 14 +- .../examples/jsm/lights/IESSpotLight.d.ts | 2 +- .../jsm/lights/LightProbeGenerator.d.ts | 2 +- types/three/examples/jsm/lines/Line2.d.ts | 6 +- .../examples/jsm/lines/LineGeometry.d.ts | 4 +- .../examples/jsm/lines/LineMaterial.d.ts | 2 +- .../examples/jsm/lines/LineSegments2.d.ts | 6 +- .../jsm/lines/LineSegmentsGeometry.d.ts | 2 +- types/three/examples/jsm/lines/Wireframe.d.ts | 6 +- .../jsm/lines/WireframeGeometry2.d.ts | 4 +- .../three/examples/jsm/loaders/3DMLoader.d.ts | 2 +- .../three/examples/jsm/loaders/3MFLoader.d.ts | 2 +- .../three/examples/jsm/loaders/AMFLoader.d.ts | 2 +- .../three/examples/jsm/loaders/BVHLoader.d.ts | 2 +- .../examples/jsm/loaders/ColladaLoader.d.ts | 2 +- .../three/examples/jsm/loaders/DDSLoader.d.ts | 2 +- .../examples/jsm/loaders/DRACOLoader.d.ts | 2 +- .../three/examples/jsm/loaders/EXRLoader.d.ts | 2 +- .../three/examples/jsm/loaders/FBXLoader.d.ts | 2 +- .../examples/jsm/loaders/FontLoader.d.ts | 2 +- .../examples/jsm/loaders/GCodeLoader.d.ts | 2 +- .../examples/jsm/loaders/GLTFLoader.d.ts | 16 +- .../jsm/loaders/HDRCubeTextureLoader.d.ts | 4 +- .../three/examples/jsm/loaders/IESLoader.d.ts | 2 +- .../three/examples/jsm/loaders/KMZLoader.d.ts | 4 +- .../examples/jsm/loaders/KTX2Loader.d.ts | 8 +- .../three/examples/jsm/loaders/KTXLoader.d.ts | 2 +- .../examples/jsm/loaders/LDrawLoader.d.ts | 2 +- .../examples/jsm/loaders/LUT3dlLoader.d.ts | 2 +- .../examples/jsm/loaders/LUTCubeLoader.d.ts | 10 +- .../three/examples/jsm/loaders/LWOLoader.d.ts | 2 +- .../examples/jsm/loaders/LogLuvLoader.d.ts | 2 +- .../examples/jsm/loaders/LottieLoader.d.ts | 2 +- .../three/examples/jsm/loaders/MD2Loader.d.ts | 2 +- .../three/examples/jsm/loaders/MDDLoader.d.ts | 2 +- .../three/examples/jsm/loaders/MMDLoader.d.ts | 2 +- .../three/examples/jsm/loaders/MTLLoader.d.ts | 8 +- .../examples/jsm/loaders/MaterialXLoader.d.ts | 4 +- .../examples/jsm/loaders/NRRDLoader.d.ts | 4 +- .../three/examples/jsm/loaders/OBJLoader.d.ts | 4 +- .../three/examples/jsm/loaders/PCDLoader.d.ts | 2 +- .../three/examples/jsm/loaders/PDBLoader.d.ts | 2 +- .../three/examples/jsm/loaders/PLYLoader.d.ts | 2 +- .../three/examples/jsm/loaders/PVRLoader.d.ts | 2 +- .../examples/jsm/loaders/RGBELoader.d.ts | 2 +- .../examples/jsm/loaders/RGBMLoader.d.ts | 2 +- .../three/examples/jsm/loaders/STLLoader.d.ts | 2 +- .../three/examples/jsm/loaders/SVGLoader.d.ts | 2 +- .../three/examples/jsm/loaders/TDSLoader.d.ts | 2 +- .../three/examples/jsm/loaders/TGALoader.d.ts | 2 +- .../examples/jsm/loaders/TIFFLoader.d.ts | 2 +- .../three/examples/jsm/loaders/TTFLoader.d.ts | 2 +- .../examples/jsm/loaders/TiltLoader.d.ts | 2 +- .../examples/jsm/loaders/USDZLoader.d.ts | 2 +- .../three/examples/jsm/loaders/VOXLoader.d.ts | 2 +- .../examples/jsm/loaders/VRMLLoader.d.ts | 2 +- .../three/examples/jsm/loaders/VTKLoader.d.ts | 2 +- .../three/examples/jsm/loaders/XYZLoader.d.ts | 2 +- .../jsm/materials/MeshGouraudMaterial.d.ts | 5 +- .../materials/MeshPostProcessingMaterial.d.ts | 2 +- types/three/examples/jsm/math/Capsule.d.ts | 2 +- .../examples/jsm/math/ColorConverter.d.ts | 2 +- types/three/examples/jsm/math/ConvexHull.d.ts | 2 +- types/three/examples/jsm/math/Lut.d.ts | 2 +- .../examples/jsm/math/MeshSurfaceSampler.d.ts | 2 +- types/three/examples/jsm/math/OBB.d.ts | 2 +- types/three/examples/jsm/math/Octree.d.ts | 4 +- .../jsm/misc/ConvexObjectBreaker.d.ts | 2 +- .../jsm/misc/GPUComputationRenderer.d.ts | 18 +- types/three/examples/jsm/misc/Gyroscope.d.ts | 2 +- .../three/examples/jsm/misc/MD2Character.d.ts | 2 +- .../jsm/misc/MD2CharacterComplex.d.ts | 2 +- .../examples/jsm/misc/MorphAnimMesh.d.ts | 2 +- .../examples/jsm/misc/MorphBlendMesh.d.ts | 2 +- .../jsm/misc/ProgressiveLightMap.d.ts | 4 +- .../examples/jsm/misc/RollerCoaster.d.ts | 2 +- .../three/examples/jsm/misc/TubePainter.d.ts | 2 +- types/three/examples/jsm/misc/Volume.d.ts | 6 +- .../three/examples/jsm/misc/VolumeSlice.d.ts | 4 +- .../examples/jsm/modifiers/CurveModifier.d.ts | 8 +- .../jsm/modifiers/EdgeSplitModifier.d.ts | 2 +- .../jsm/modifiers/SimplifyModifier.d.ts | 2 +- .../jsm/modifiers/TessellateModifier.d.ts | 2 +- types/three/examples/jsm/nodes/Nodes.d.ts | 484 ++++++++-------- .../jsm/nodes/accessors/BitangentNode.d.ts | 14 +- .../jsm/nodes/accessors/BufferNode.d.ts | 6 +- .../jsm/nodes/accessors/CameraNode.d.ts | 14 +- .../jsm/nodes/accessors/CubeTextureNode.d.ts | 10 +- .../jsm/nodes/accessors/InstanceNode.d.ts | 6 +- .../jsm/nodes/accessors/MaterialNode.d.ts | 18 +- .../accessors/MaterialReferenceNode.d.ts | 6 +- .../jsm/nodes/accessors/ModelNode.d.ts | 4 +- .../accessors/ModelViewProjectionNode.d.ts | 6 +- .../jsm/nodes/accessors/NormalNode.d.ts | 12 +- .../jsm/nodes/accessors/Object3DNode.d.ts | 18 +- .../jsm/nodes/accessors/PointUVNode.d.ts | 4 +- .../jsm/nodes/accessors/PositionNode.d.ts | 16 +- .../jsm/nodes/accessors/ReferenceNode.d.ts | 6 +- .../nodes/accessors/ReflectVectorNode.d.ts | 6 +- .../jsm/nodes/accessors/SkinningNode.d.ts | 6 +- .../nodes/accessors/StorageBufferNode.d.ts | 6 +- .../jsm/nodes/accessors/TangentNode.d.ts | 14 +- .../nodes/accessors/TextureBicubicNode.d.ts | 8 +- .../jsm/nodes/accessors/TextureNode.d.ts | 10 +- .../examples/jsm/nodes/accessors/UVNode.d.ts | 4 +- .../jsm/nodes/accessors/UserDataNode.d.ts | 6 +- .../jsm/nodes/accessors/VertexColorNode.d.ts | 4 +- .../examples/jsm/nodes/code/CodeNode.d.ts | 8 +- .../jsm/nodes/code/ExpressionNode.d.ts | 6 +- .../jsm/nodes/code/FunctionCallNode.d.ts | 10 +- .../examples/jsm/nodes/code/FunctionNode.d.ts | 17 +- .../jsm/nodes/core/ArrayUniformNode.d.ts | 4 +- .../examples/jsm/nodes/core/AssignNode.d.ts | 8 +- .../jsm/nodes/core/AttributeNode.d.ts | 8 +- .../examples/jsm/nodes/core/BypassNode.d.ts | 6 +- .../examples/jsm/nodes/core/CacheNode.d.ts | 8 +- .../examples/jsm/nodes/core/ConstNode.d.ts | 6 +- .../examples/jsm/nodes/core/ContextNode.d.ts | 8 +- .../examples/jsm/nodes/core/IndexNode.d.ts | 8 +- .../examples/jsm/nodes/core/InputNode.d.ts | 8 +- .../jsm/nodes/core/LightingModel.d.ts | 6 +- types/three/examples/jsm/nodes/core/Node.d.ts | 6 +- .../examples/jsm/nodes/core/NodeBuilder.d.ts | 28 +- .../examples/jsm/nodes/core/NodeCache.d.ts | 4 +- .../examples/jsm/nodes/core/NodeFrame.d.ts | 4 +- .../examples/jsm/nodes/core/NodeFunction.d.ts | 2 +- .../examples/jsm/nodes/core/NodeKeywords.d.ts | 4 +- .../examples/jsm/nodes/core/NodeParser.d.ts | 2 +- .../examples/jsm/nodes/core/NodeUniform.d.ts | 2 +- .../examples/jsm/nodes/core/NodeUtils.d.ts | 4 +- .../examples/jsm/nodes/core/NodeVarying.d.ts | 2 +- .../examples/jsm/nodes/core/PropertyNode.d.ts | 6 +- .../examples/jsm/nodes/core/StackNode.d.ts | 2 +- .../examples/jsm/nodes/core/TempNode.d.ts | 6 +- .../examples/jsm/nodes/core/UniformNode.d.ts | 10 +- .../examples/jsm/nodes/core/VarNode.d.ts | 8 +- .../examples/jsm/nodes/core/VaryingNode.d.ts | 6 +- .../examples/jsm/nodes/core/constants.d.ts | 100 ++-- .../jsm/nodes/display/AfterImageNode.d.ts | 12 +- .../jsm/nodes/display/AnamorphicNode.d.ts | 12 +- .../jsm/nodes/display/BlendModeNode.d.ts | 18 +- .../nodes/display/ColorAdjustmentNode.d.ts | 14 +- .../jsm/nodes/display/ColorSpaceNode.d.ts | 16 +- .../jsm/nodes/display/FrontFacingNode.d.ts | 4 +- .../jsm/nodes/display/GaussianBlurNode.d.ts | 12 +- .../jsm/nodes/display/NormalMapNode.d.ts | 12 +- .../examples/jsm/nodes/display/PassNode.d.ts | 14 +- .../jsm/nodes/display/PosterizeNode.d.ts | 6 +- .../jsm/nodes/display/ToneMappingNode.d.ts | 8 +- .../jsm/nodes/display/ViewportDepthNode.d.ts | 10 +- .../jsm/nodes/display/ViewportNode.d.ts | 16 +- .../display/ViewportSharedTextureNode.d.ts | 8 +- .../nodes/display/ViewportTextureNode.d.ts | 12 +- .../examples/jsm/nodes/fog/FogExp2Node.d.ts | 8 +- .../three/examples/jsm/nodes/fog/FogNode.d.ts | 6 +- .../examples/jsm/nodes/fog/FogRangeNode.d.ts | 8 +- .../jsm/nodes/functions/BSDF/BRDF_GGX.d.ts | 6 +- .../nodes/functions/BSDF/BRDF_Lambert.d.ts | 6 +- .../jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts | 6 +- .../jsm/nodes/functions/BSDF/DFGApprox.d.ts | 6 +- .../jsm/nodes/functions/BSDF/D_GGX.d.ts | 6 +- .../jsm/nodes/functions/BSDF/F_Schlick.d.ts | 6 +- .../functions/BSDF/V_GGX_SmithCorrelated.d.ts | 4 +- .../nodes/functions/PhongLightingModel.d.ts | 2 +- .../functions/PhysicalLightingModel.d.ts | 4 +- .../material/getGeometryRoughness.d.ts | 2 +- .../functions/material/getRoughness.d.ts | 4 +- .../jsm/nodes/geometry/RangeNode.d.ts | 8 +- .../examples/jsm/nodes/gpgpu/ComputeNode.d.ts | 6 +- .../examples/jsm/nodes/lighting/AONode.d.ts | 4 +- .../jsm/nodes/lighting/AnalyticLightNode.d.ts | 6 +- .../jsm/nodes/lighting/EnvironmentNode.d.ts | 4 +- .../nodes/lighting/HemisphereLightNode.d.ts | 8 +- .../jsm/nodes/lighting/LightUtils.d.ts | 4 +- .../nodes/lighting/LightingContextNode.d.ts | 10 +- .../jsm/nodes/lighting/LightingNode.d.ts | 2 +- .../jsm/nodes/lighting/LightsNode.d.ts | 12 +- .../jsm/nodes/lighting/PointLightNode.d.ts | 6 +- .../jsm/nodes/lighting/SpotLightNode.d.ts | 6 +- .../jsm/nodes/loaders/NodeLoader.d.ts | 4 +- .../jsm/nodes/loaders/NodeMaterialLoader.d.ts | 4 +- .../jsm/nodes/loaders/NodeObjectLoader.d.ts | 6 +- .../materials/LineBasicNodeMaterial.d.ts | 4 +- .../jsm/nodes/materials/Materials.d.ts | 18 +- .../materials/MeshBasicNodeMaterial.d.ts | 4 +- .../materials/MeshPhongNodeMaterial.d.ts | 6 +- .../materials/MeshPhysicalNodeMaterial.d.ts | 6 +- .../nodes/materials/MeshSSSNodeMaterial.d.ts | 8 +- .../materials/MeshStandardNodeMaterial.d.ts | 6 +- .../jsm/nodes/materials/NodeMaterial.d.ts | 24 +- .../nodes/materials/PointsNodeMaterial.d.ts | 6 +- .../nodes/materials/SpriteNodeMaterial.d.ts | 8 +- .../jsm/nodes/materialx/MaterialXNodes.d.ts | 8 +- .../jsm/nodes/materialx/lib/mx_hsv.d.ts | 6 +- .../jsm/nodes/materialx/lib/mx_noise.d.ts | 6 +- .../examples/jsm/nodes/math/CondNode.d.ts | 6 +- .../examples/jsm/nodes/math/HashNode.d.ts | 6 +- .../examples/jsm/nodes/math/MathNode.d.ts | 100 ++-- .../examples/jsm/nodes/math/MathUtils.d.ts | 4 +- .../examples/jsm/nodes/math/OperatorNode.d.ts | 44 +- .../examples/jsm/nodes/math/TriNoise3D.d.ts | 4 +- .../jsm/nodes/procedural/CheckerNode.d.ts | 6 +- .../jsm/nodes/shadernode/ShaderNode.d.ts | 93 ++- .../jsm/nodes/utils/ArrayElementNode.d.ts | 4 +- .../examples/jsm/nodes/utils/ConvertNode.d.ts | 4 +- .../examples/jsm/nodes/utils/DiscardNode.d.ts | 8 +- .../jsm/nodes/utils/EquirectUVNode.d.ts | 4 +- .../examples/jsm/nodes/utils/JoinNode.d.ts | 4 +- .../jsm/nodes/utils/MatcapUVNode.d.ts | 4 +- .../jsm/nodes/utils/MaxMipLevelNode.d.ts | 8 +- .../examples/jsm/nodes/utils/OscNode.d.ts | 12 +- .../jsm/nodes/utils/ReflectorNode.d.ts | 6 +- .../examples/jsm/nodes/utils/RemapNode.d.ts | 6 +- .../examples/jsm/nodes/utils/RotateNode.d.ts | 8 +- .../jsm/nodes/utils/RotateUVNode.d.ts | 8 +- .../jsm/nodes/utils/SpecularMIPLevelNode.d.ts | 6 +- .../examples/jsm/nodes/utils/SplitNode.d.ts | 5 +- .../jsm/nodes/utils/SpriteSheetUVNode.d.ts | 4 +- .../examples/jsm/nodes/utils/TimerNode.d.ts | 12 +- .../nodes/utils/TriplanarTexturesNode.d.ts | 10 +- .../examples/jsm/objects/GroundedSkybox.d.ts | 2 +- .../three/examples/jsm/objects/Lensflare.d.ts | 2 +- .../examples/jsm/objects/MarchingCubes.d.ts | 2 +- .../three/examples/jsm/objects/QuadMesh.d.ts | 4 +- .../three/examples/jsm/objects/Reflector.d.ts | 8 +- .../jsm/objects/ReflectorForSSRPass.d.ts | 16 +- .../three/examples/jsm/objects/Refractor.d.ts | 10 +- .../examples/jsm/objects/ShadowMesh.d.ts | 2 +- types/three/examples/jsm/objects/Sky.d.ts | 2 +- types/three/examples/jsm/objects/Water.d.ts | 2 +- types/three/examples/jsm/objects/Water2.d.ts | 2 +- .../examples/jsm/physics/AmmoPhysics.d.ts | 2 +- .../examples/jsm/physics/RapierPhysics.d.ts | 2 +- .../jsm/postprocessing/AfterimagePass.d.ts | 4 +- .../jsm/postprocessing/BloomPass.d.ts | 4 +- .../jsm/postprocessing/BokehPass.d.ts | 4 +- .../jsm/postprocessing/ClearPass.d.ts | 4 +- .../jsm/postprocessing/CubeTexturePass.d.ts | 4 +- .../jsm/postprocessing/DotScreenPass.d.ts | 4 +- .../jsm/postprocessing/EffectComposer.d.ts | 8 +- .../examples/jsm/postprocessing/FilmPass.d.ts | 4 +- .../examples/jsm/postprocessing/GTAOPass.d.ts | 4 +- .../jsm/postprocessing/GlitchPass.d.ts | 4 +- .../jsm/postprocessing/HalftonePass.d.ts | 4 +- .../examples/jsm/postprocessing/LUTPass.d.ts | 4 +- .../examples/jsm/postprocessing/MaskPass.d.ts | 4 +- .../jsm/postprocessing/OutlinePass.d.ts | 12 +- .../jsm/postprocessing/OutputPass.d.ts | 4 +- .../examples/jsm/postprocessing/Pass.d.ts | 2 +- .../jsm/postprocessing/RenderPass.d.ts | 4 +- .../postprocessing/RenderPixelatedPass.d.ts | 8 +- .../examples/jsm/postprocessing/SAOPass.d.ts | 10 +- .../examples/jsm/postprocessing/SMAAPass.d.ts | 4 +- .../jsm/postprocessing/SSAARenderPass.d.ts | 4 +- .../examples/jsm/postprocessing/SSAOPass.d.ts | 6 +- .../examples/jsm/postprocessing/SSRPass.d.ts | 20 +- .../examples/jsm/postprocessing/SavePass.d.ts | 4 +- .../jsm/postprocessing/ShaderPass.d.ts | 4 +- .../jsm/postprocessing/TAARenderPass.d.ts | 4 +- .../jsm/postprocessing/TexturePass.d.ts | 4 +- .../jsm/postprocessing/UnrealBloomPass.d.ts | 4 +- .../examples/jsm/renderers/CSS2DRenderer.d.ts | 2 +- .../examples/jsm/renderers/CSS3DRenderer.d.ts | 2 +- .../examples/jsm/renderers/Projector.d.ts | 2 +- .../examples/jsm/renderers/SVGRenderer.d.ts | 2 +- .../jsm/renderers/common/Backend.d.ts | 4 +- .../examples/jsm/renderers/common/Color4.d.ts | 2 +- .../examples/jsm/renderers/common/Info.d.ts | 2 +- .../jsm/renderers/common/PostProcessing.d.ts | 4 +- .../jsm/renderers/common/Renderer.d.ts | 26 +- .../jsm/renderers/common/StorageTexture.d.ts | 2 +- .../webgl-legacy/nodes/WebGLNodes.d.ts | 2 +- .../jsm/renderers/webgl/WebGLBackend.d.ts | 4 +- .../jsm/renderers/webgl/nodes/SlotNode.d.ts | 4 +- .../webgl/nodes/WebGLNodeBuilder.d.ts | 12 +- .../jsm/renderers/webgl/nodes/WebGLNodes.d.ts | 2 +- .../jsm/renderers/webgpu/WebGPUBackend.d.ts | 4 +- .../jsm/renderers/webgpu/WebGPURenderer.d.ts | 4 +- .../shaders/ACESFilmicToneMappingShader.d.ts | 2 +- .../jsm/shaders/AfterimageShader.d.ts | 2 +- .../jsm/shaders/BleachBypassShader.d.ts | 2 +- .../examples/jsm/shaders/BlendShader.d.ts | 2 +- .../examples/jsm/shaders/BokehShader.d.ts | 2 +- .../examples/jsm/shaders/BokehShader2.d.ts | 2 +- .../jsm/shaders/BrightnessContrastShader.d.ts | 2 +- .../jsm/shaders/ColorCorrectionShader.d.ts | 2 +- .../examples/jsm/shaders/ColorifyShader.d.ts | 2 +- .../jsm/shaders/ConvolutionShader.d.ts | 2 +- .../examples/jsm/shaders/CopyShader.d.ts | 2 +- .../examples/jsm/shaders/DOFMipMapShader.d.ts | 2 +- .../jsm/shaders/DepthLimitedBlurShader.d.ts | 2 +- .../examples/jsm/shaders/DigitalGlitch.d.ts | 2 +- .../examples/jsm/shaders/DotScreenShader.d.ts | 2 +- .../examples/jsm/shaders/ExposureShader.d.ts | 4 +- .../examples/jsm/shaders/FXAAShader.d.ts | 2 +- .../examples/jsm/shaders/FilmShader.d.ts | 2 +- .../examples/jsm/shaders/FocusShader.d.ts | 2 +- .../examples/jsm/shaders/FreiChenShader.d.ts | 2 +- .../examples/jsm/shaders/GTAOShader.d.ts | 2 +- .../jsm/shaders/GammaCorrectionShader.d.ts | 2 +- .../examples/jsm/shaders/GodRaysShader.d.ts | 2 +- .../examples/jsm/shaders/HalftoneShader.d.ts | 2 +- .../jsm/shaders/HorizontalBlurShader.d.ts | 2 +- .../shaders/HorizontalTiltShiftShader.d.ts | 2 +- .../jsm/shaders/HueSaturationShader.d.ts | 2 +- .../examples/jsm/shaders/KaleidoShader.d.ts | 2 +- .../jsm/shaders/LuminosityHighPassShader.d.ts | 2 +- .../jsm/shaders/LuminosityShader.d.ts | 2 +- .../examples/jsm/shaders/MMDToonShader.d.ts | 2 +- .../examples/jsm/shaders/MirrorShader.d.ts | 2 +- .../examples/jsm/shaders/NormalMapShader.d.ts | 2 +- .../examples/jsm/shaders/OutputShader.d.ts | 2 +- .../jsm/shaders/PoissonDenoiseShader.d.ts | 2 +- .../examples/jsm/shaders/RGBShiftShader.d.ts | 2 +- .../three/examples/jsm/shaders/SAOShader.d.ts | 2 +- .../examples/jsm/shaders/SMAAShader.d.ts | 2 +- .../examples/jsm/shaders/SSAOShader.d.ts | 2 +- .../three/examples/jsm/shaders/SSRShader.d.ts | 2 +- .../examples/jsm/shaders/SepiaShader.d.ts | 2 +- .../jsm/shaders/SobelOperatorShader.d.ts | 2 +- .../shaders/SubsurfaceScatteringShader.d.ts | 2 +- .../jsm/shaders/TechnicolorShader.d.ts | 2 +- .../examples/jsm/shaders/ToonShader.d.ts | 2 +- .../jsm/shaders/TriangleBlurShader.d.ts | 2 +- .../jsm/shaders/UnpackDepthRGBAShader.d.ts | 2 +- .../examples/jsm/shaders/VelocityShader.d.ts | 8 +- .../jsm/shaders/VerticalBlurShader.d.ts | 2 +- .../jsm/shaders/VerticalTiltShiftShader.d.ts | 2 +- .../examples/jsm/shaders/VignetteShader.d.ts | 2 +- .../examples/jsm/shaders/VolumeShader.d.ts | 2 +- .../jsm/shaders/WaterRefractionShader.d.ts | 2 +- .../examples/jsm/transpiler/GLSLDecoder.d.ts | 2 +- .../jsm/transpiler/ShaderToyDecoder.d.ts | 2 +- .../examples/jsm/transpiler/TSLEncoder.d.ts | 2 +- .../jsm/utils/BufferGeometryUtils.d.ts | 6 +- .../three/examples/jsm/utils/CameraUtils.d.ts | 2 +- .../examples/jsm/utils/GPUStatsPanel.d.ts | 2 +- .../jsm/utils/GeometryCompressionUtils.d.ts | 2 +- .../examples/jsm/utils/GeometryUtils.d.ts | 2 +- .../three/examples/jsm/utils/LDrawUtils.d.ts | 2 +- .../jsm/utils/PackedPhongMaterial.d.ts | 2 +- .../three/examples/jsm/utils/SceneUtils.d.ts | 2 +- .../examples/jsm/utils/ShadowMapViewer.d.ts | 2 +- .../examples/jsm/utils/SkeletonUtils.d.ts | 2 +- .../examples/jsm/utils/TextureUtils.d.ts | 2 +- types/three/examples/jsm/utils/UVsDebug.d.ts | 2 +- types/three/examples/jsm/webxr/ARButton.d.ts | 2 +- .../examples/jsm/webxr/OculusHandModel.d.ts | 4 +- .../jsm/webxr/OculusHandPointerModel.d.ts | 6 +- types/three/examples/jsm/webxr/Text2D.d.ts | 2 +- types/three/examples/jsm/webxr/VRButton.d.ts | 2 +- types/three/examples/jsm/webxr/XRButton.d.ts | 2 +- .../jsm/webxr/XRControllerModelFactory.d.ts | 4 +- .../examples/jsm/webxr/XREstimatedLight.d.ts | 2 +- .../examples/jsm/webxr/XRHandMeshModel.d.ts | 4 +- .../jsm/webxr/XRHandModelFactory.d.ts | 10 +- .../jsm/webxr/XRHandPrimitiveModel.d.ts | 6 +- types/three/examples/jsm/webxr/XRPlanes.d.ts | 2 +- types/three/index.d.ts | 2 +- types/three/src/Three.d.ts | 374 ++++++------ .../three/src/animation/AnimationAction.d.ts | 8 +- types/three/src/animation/AnimationClip.d.ts | 8 +- types/three/src/animation/AnimationMixer.d.ts | 12 +- types/three/src/animation/AnimationUtils.d.ts | 2 +- types/three/src/animation/KeyframeTrack.d.ts | 10 +- .../tracks/BooleanKeyframeTrack.d.ts | 2 +- .../animation/tracks/ColorKeyframeTrack.d.ts | 4 +- .../animation/tracks/NumberKeyframeTrack.d.ts | 4 +- .../tracks/QuaternionKeyframeTrack.d.ts | 4 +- .../animation/tracks/StringKeyframeTrack.d.ts | 4 +- .../animation/tracks/VectorKeyframeTrack.d.ts | 4 +- types/three/src/audio/Audio.d.ts | 8 +- types/three/src/audio/AudioAnalyser.d.ts | 2 +- types/three/src/audio/AudioListener.d.ts | 6 +- types/three/src/audio/PositionalAudio.d.ts | 4 +- types/three/src/cameras/ArrayCamera.d.ts | 2 +- types/three/src/cameras/Camera.d.ts | 12 +- types/three/src/cameras/CubeCamera.d.ts | 10 +- .../three/src/cameras/OrthographicCamera.d.ts | 4 +- .../three/src/cameras/PerspectiveCamera.d.ts | 6 +- types/three/src/cameras/StereoCamera.d.ts | 6 +- types/three/src/constants.d.ts | 148 ++--- types/three/src/core/BufferAttribute.d.ts | 6 +- types/three/src/core/BufferGeometry.d.ts | 22 +- .../src/core/InstancedBufferAttribute.d.ts | 2 +- .../src/core/InstancedBufferGeometry.d.ts | 3 +- .../src/core/InstancedInterleavedBuffer.d.ts | 4 +- types/three/src/core/InterleavedBuffer.d.ts | 6 +- .../src/core/InterleavedBufferAttribute.d.ts | 8 +- types/three/src/core/Object3D.d.ts | 32 +- types/three/src/core/Raycaster.d.ts | 12 +- types/three/src/core/RenderTarget.d.ts | 20 +- types/three/src/core/UniformsGroup.d.ts | 6 +- types/three/src/extras/ImageUtils.d.ts | 10 +- types/three/src/extras/PMREMGenerator.d.ts | 10 +- types/three/src/extras/core/Curve.d.ts | 6 +- types/three/src/extras/core/CurvePath.d.ts | 8 +- .../three/src/extras/core/Interpolations.d.ts | 2 +- types/three/src/extras/core/Path.d.ts | 6 +- types/three/src/extras/core/Shape.d.ts | 6 +- types/three/src/extras/core/ShapePath.d.ts | 10 +- types/three/src/extras/curves/ArcCurve.d.ts | 4 +- .../src/extras/curves/CatmullRomCurve3.d.ts | 8 +- .../src/extras/curves/CubicBezierCurve.d.ts | 6 +- .../src/extras/curves/CubicBezierCurve3.d.ts | 6 +- types/three/src/extras/curves/Curves.d.ts | 20 +- .../three/src/extras/curves/EllipseCurve.d.ts | 6 +- types/three/src/extras/curves/LineCurve.d.ts | 6 +- types/three/src/extras/curves/LineCurve3.d.ts | 6 +- .../extras/curves/QuadraticBezierCurve.d.ts | 6 +- .../extras/curves/QuadraticBezierCurve3.d.ts | 6 +- .../three/src/extras/curves/SplineCurve.d.ts | 6 +- types/three/src/geometries/BoxGeometry.d.ts | 4 +- .../three/src/geometries/CapsuleGeometry.d.ts | 4 +- .../three/src/geometries/CircleGeometry.d.ts | 4 +- types/three/src/geometries/ConeGeometry.d.ts | 4 +- .../src/geometries/CylinderGeometry.d.ts | 4 +- .../src/geometries/DodecahedronGeometry.d.ts | 4 +- types/three/src/geometries/EdgesGeometry.d.ts | 4 +- .../three/src/geometries/ExtrudeGeometry.d.ts | 12 +- types/three/src/geometries/Geometries.d.ts | 42 +- .../src/geometries/IcosahedronGeometry.d.ts | 4 +- types/three/src/geometries/LatheGeometry.d.ts | 6 +- .../src/geometries/OctahedronGeometry.d.ts | 4 +- types/three/src/geometries/PlaneGeometry.d.ts | 4 +- .../src/geometries/PolyhedronGeometry.d.ts | 4 +- types/three/src/geometries/RingGeometry.d.ts | 4 +- types/three/src/geometries/ShapeGeometry.d.ts | 6 +- .../three/src/geometries/SphereGeometry.d.ts | 4 +- .../src/geometries/TetrahedronGeometry.d.ts | 4 +- types/three/src/geometries/TorusGeometry.d.ts | 4 +- .../src/geometries/TorusKnotGeometry.d.ts | 4 +- types/three/src/geometries/TubeGeometry.d.ts | 8 +- .../src/geometries/WireframeGeometry.d.ts | 4 +- types/three/src/helpers/ArrowHelper.d.ts | 12 +- types/three/src/helpers/AxesHelper.d.ts | 6 +- types/three/src/helpers/Box3Helper.d.ts | 8 +- types/three/src/helpers/BoxHelper.d.ts | 12 +- types/three/src/helpers/CameraHelper.d.ts | 10 +- .../src/helpers/DirectionalLightHelper.d.ts | 12 +- types/three/src/helpers/GridHelper.d.ts | 10 +- .../src/helpers/HemisphereLightHelper.d.ts | 12 +- types/three/src/helpers/PlaneHelper.d.ts | 6 +- types/three/src/helpers/PointLightHelper.d.ts | 10 +- types/three/src/helpers/PolarGridHelper.d.ts | 6 +- types/three/src/helpers/SkeletonHelper.d.ts | 12 +- types/three/src/helpers/SpotLightHelper.d.ts | 12 +- types/three/src/lights/AmbientLight.d.ts | 6 +- types/three/src/lights/DirectionalLight.d.ts | 12 +- .../src/lights/DirectionalLightShadow.d.ts | 4 +- types/three/src/lights/HemisphereLight.d.ts | 8 +- types/three/src/lights/Light.d.ts | 8 +- types/three/src/lights/LightProbe.d.ts | 4 +- types/three/src/lights/LightShadow.d.ts | 14 +- types/three/src/lights/PointLight.d.ts | 6 +- types/three/src/lights/PointLightShadow.d.ts | 6 +- types/three/src/lights/RectAreaLight.d.ts | 6 +- types/three/src/lights/SpotLight.d.ts | 14 +- types/three/src/lights/SpotLightShadow.d.ts | 4 +- types/three/src/loaders/AnimationLoader.d.ts | 6 +- types/three/src/loaders/AudioLoader.d.ts | 4 +- .../src/loaders/BufferGeometryLoader.d.ts | 8 +- .../src/loaders/CompressedTextureLoader.d.ts | 6 +- .../three/src/loaders/CubeTextureLoader.d.ts | 6 +- .../three/src/loaders/DataTextureLoader.d.ts | 6 +- types/three/src/loaders/FileLoader.d.ts | 4 +- .../three/src/loaders/ImageBitmapLoader.d.ts | 4 +- types/three/src/loaders/ImageLoader.d.ts | 4 +- types/three/src/loaders/Loader.d.ts | 2 +- types/three/src/loaders/LoadingManager.d.ts | 2 +- types/three/src/loaders/MaterialLoader.d.ts | 8 +- types/three/src/loaders/ObjectLoader.d.ts | 18 +- types/three/src/loaders/TextureLoader.d.ts | 6 +- .../src/materials/LineBasicMaterial.d.ts | 6 +- .../src/materials/LineDashedMaterial.d.ts | 2 +- types/three/src/materials/Material.d.ts | 20 +- types/three/src/materials/Materials.d.ts | 36 +- .../src/materials/MeshBasicMaterial.d.ts | 8 +- .../src/materials/MeshDepthMaterial.d.ts | 6 +- .../src/materials/MeshDistanceMaterial.d.ts | 6 +- .../src/materials/MeshLambertMaterial.d.ts | 10 +- .../src/materials/MeshMatcapMaterial.d.ts | 10 +- .../src/materials/MeshNormalMaterial.d.ts | 8 +- .../src/materials/MeshPhongMaterial.d.ts | 10 +- .../src/materials/MeshPhysicalMaterial.d.ts | 8 +- .../src/materials/MeshStandardMaterial.d.ts | 10 +- .../three/src/materials/MeshToonMaterial.d.ts | 10 +- types/three/src/materials/PointsMaterial.d.ts | 6 +- .../src/materials/RawShaderMaterial.d.ts | 4 +- types/three/src/materials/ShaderMaterial.d.ts | 18 +- types/three/src/materials/ShadowMaterial.d.ts | 4 +- types/three/src/materials/SpriteMaterial.d.ts | 6 +- types/three/src/math/Box2.d.ts | 2 +- types/three/src/math/Box3.d.ts | 14 +- types/three/src/math/Color.d.ts | 12 +- types/three/src/math/ColorManagement.d.ts | 4 +- types/three/src/math/Cylindrical.d.ts | 2 +- types/three/src/math/Euler.d.ts | 10 +- types/three/src/math/Frustum.d.ts | 16 +- types/three/src/math/Line3.d.ts | 4 +- types/three/src/math/MathUtils.d.ts | 2 +- types/three/src/math/Matrix3.d.ts | 6 +- types/three/src/math/Matrix4.d.ts | 10 +- types/three/src/math/Plane.d.ts | 12 +- types/three/src/math/Quaternion.d.ts | 10 +- types/three/src/math/Ray.d.ts | 10 +- types/three/src/math/Sphere.d.ts | 8 +- types/three/src/math/Spherical.d.ts | 2 +- types/three/src/math/SphericalHarmonics3.d.ts | 2 +- types/three/src/math/Triangle.d.ts | 14 +- types/three/src/math/Vector2.d.ts | 4 +- types/three/src/math/Vector3.d.ts | 20 +- types/three/src/math/Vector4.d.ts | 6 +- .../math/interpolants/CubicInterpolant.d.ts | 2 +- .../interpolants/DiscreteInterpolant.d.ts | 2 +- .../math/interpolants/LinearInterpolant.d.ts | 2 +- .../QuaternionLinearInterpolant.d.ts | 2 +- types/three/src/objects/BatchedMesh.d.ts | 15 +- types/three/src/objects/Bone.d.ts | 4 +- types/three/src/objects/Group.d.ts | 4 +- types/three/src/objects/InstancedMesh.d.ts | 18 +- types/three/src/objects/LOD.d.ts | 6 +- types/three/src/objects/Line.d.ts | 8 +- types/three/src/objects/LineLoop.d.ts | 10 +- types/three/src/objects/LineSegments.d.ts | 10 +- types/three/src/objects/Mesh.d.ts | 11 +- types/three/src/objects/Points.d.ts | 15 +- types/three/src/objects/Skeleton.d.ts | 6 +- types/three/src/objects/SkinnedMesh.d.ts | 22 +- types/three/src/objects/Sprite.d.ts | 10 +- types/three/src/renderers/WebGL1Renderer.d.ts | 2 +- .../src/renderers/WebGL3DRenderTarget.d.ts | 4 +- .../src/renderers/WebGLArrayRenderTarget.d.ts | 4 +- .../src/renderers/WebGLCubeRenderTarget.d.ts | 8 +- .../renderers/WebGLMultipleRenderTargets.d.ts | 4 +- .../src/renderers/WebGLRenderTarget.d.ts | 4 +- types/three/src/renderers/WebGLRenderer.d.ts | 68 +-- .../src/renderers/shaders/ShaderLib.d.ts | 2 +- .../src/renderers/shaders/UniformsLib.d.ts | 6 +- .../src/renderers/shaders/UniformsUtils.d.ts | 6 +- .../src/renderers/webgl/WebGLAttributes.d.ts | 20 +- .../renderers/webgl/WebGLBindingStates.d.ts | 16 +- .../renderers/webgl/WebGLBufferRenderer.d.ts | 6 +- .../src/renderers/webgl/WebGLClipping.d.ts | 8 +- .../src/renderers/webgl/WebGLCubeMaps.d.ts | 2 +- .../src/renderers/webgl/WebGLCubeUVMaps.d.ts | 2 +- .../src/renderers/webgl/WebGLExtensions.d.ts | 2 +- .../src/renderers/webgl/WebGLGeometries.d.ts | 10 +- .../three/src/renderers/webgl/WebGLInfo.d.ts | 2 +- .../src/renderers/webgl/WebGLLights.d.ts | 4 +- .../src/renderers/webgl/WebGLProgram.d.ts | 4 +- .../src/renderers/webgl/WebGLPrograms.d.ts | 30 +- .../src/renderers/webgl/WebGLRenderLists.d.ts | 16 +- .../src/renderers/webgl/WebGLShadowMap.d.ts | 14 +- .../three/src/renderers/webgl/WebGLState.d.ts | 16 +- .../src/renderers/webgl/WebGLTextures.d.ts | 12 +- .../src/renderers/webgl/WebGLUniforms.d.ts | 4 +- .../renderers/webgl/WebGLUniformsGroups.d.ts | 10 +- .../three/src/renderers/webgl/WebGLUtils.d.ts | 2 +- .../src/renderers/webxr/WebXRController.d.ts | 8 +- .../renderers/webxr/WebXRDepthSensing.d.ts | 8 +- .../src/renderers/webxr/WebXRManager.d.ts | 14 +- types/three/src/scenes/Fog.d.ts | 2 +- types/three/src/scenes/FogExp2.d.ts | 4 +- types/three/src/scenes/Scene.d.ts | 14 +- types/three/src/textures/CanvasTexture.d.ts | 10 +- .../src/textures/CompressedArrayTexture.d.ts | 4 +- .../src/textures/CompressedCubeTexture.d.ts | 4 +- .../three/src/textures/CompressedTexture.d.ts | 12 +- types/three/src/textures/CubeTexture.d.ts | 14 +- types/three/src/textures/Data3DTexture.d.ts | 6 +- .../three/src/textures/DataArrayTexture.d.ts | 6 +- types/three/src/textures/DataTexture.d.ts | 14 +- types/three/src/textures/DepthTexture.d.ts | 10 +- .../src/textures/FramebufferTexture.d.ts | 4 +- types/three/src/textures/Texture.d.ts | 22 +- types/three/src/textures/VideoTexture.d.ts | 10 +- .../three/test/integration/geometry-buffer.ts | 22 +- .../three/test/integration/instanced-mesh.ts | 2 +- .../test/integration/lights-pointlights2.ts | 12 +- .../integration/loaders-gltfloader-plugin.ts | 28 +- .../test/integration/materials-meshgouraud.ts | 4 +- types/three/test/integration/nodes-webgl.ts | 20 +- .../test/integration/objects-reflector.ts | 4 +- .../webgl2_rendertarget_texture2darray.ts | 30 +- .../three-examples/webgl_camera_array.ts | 4 +- .../three-examples/webgl_camera_cinematic.ts | 18 +- .../three-examples/webgl_loader_ldraw.ts | 70 +-- .../three-examples/webgl_loader_mmd.ts | 24 +- .../webgl_materials_channels.ts | 46 +- .../webxr_vr_handinput_cubes.ts | 48 +- types/three/test/integration/webxr-cube.ts | 14 +- .../examples/jsm/exporters/PLYExporter.ts | 18 +- .../examples/jsm/exporters/STLExporter.ts | 16 +- .../unit/examples/jsm/helpers/ViewHelper.ts | 6 +- .../test/unit/examples/jsm/libs/lil-gui.ts | 20 +- .../test/unit/examples/jsm/libs/tween.ts | 6 +- .../unit/examples/jsm/lines/LineMaterial.ts | 8 +- .../jsm/nodes/ShaderNode/ShaderNode.ts | 32 +- .../examples/jsm/nodes/core/FunctionNode.ts | 26 +- .../jsm/nodes/display/ColorAdjustmentNode.ts | 34 +- .../jsm/nodes/materials/lib/mx_noise.ts | 8 +- .../jsm/postprocessing/EffectComposer.ts | 8 +- .../examples/jsm/postprocessing/SavePass.ts | 4 +- .../shaders/ACESFilmicToneMappingShader.ts | 8 +- .../three/test/unit/src/audio/AudioContext.ts | 2 +- .../test/unit/src/core/EventDispatcher.ts | 38 +- types/three/test/unit/src/core/Uniform.ts | 4 +- types/three/test/unit/src/extras/Earcut.ts | 2 +- .../unit/src/renderers/webgl/WebGLUtils.ts | 2 +- types/three/test/unit/src/textures/Texture.ts | 4 +- types/three/three-tests.ts | 2 +- 689 files changed, 3419 insertions(+), 3250 deletions(-) create mode 100644 .dprint.jsonc rename .prettierrc.json => examples-testing/.prettierrc.json (100%) delete mode 100644 notNeededPackages.json diff --git a/.dprint.jsonc b/.dprint.jsonc new file mode 100644 index 000000000..8f7446884 --- /dev/null +++ b/.dprint.jsonc @@ -0,0 +1,33 @@ +{ + "excludes": [ + // These files are auto-generated and don't need to be formatted. + // NOTE: We generally prefer that packages be formatted with dprint. + // Packages are generally only listed if they predate our using dprint (August 2023). + // If your package is listed, please consider adding dprint fmt to its generation. + "./examples-testing", + "./three.js", + + // Machine-generated files. + "./docs/support-window.json", + "pnpm-lock.yaml" + ], + "prettier": { + "associations": [ + "**/*.{yaml,yml}" + ], + "yml.tabWidth": 2, + "yaml.tabWidth": 2, + "yml.singleQuote": true, + "yaml.singleQuote": true + }, + "plugins": [ + "https://plugins.dprint.dev/typescript-0.88.8.wasm", + "https://plugins.dprint.dev/json-0.19.1.wasm", + "https://plugins.dprint.dev/prettier-0.32.1.json@19aa403ef0862ba8c41164e3dc6f84c0b7a66c2b11e42726b23dd25e6302ada9" + ], + "indentWidth": 4, + "lineWidth": 120, + "json": { + "trailingCommas": "never" // Our tsconfig files must be parsable by JSON.parse. + } +} diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 47af13557..50c87c7fd 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -1,4 +1,4 @@ module.exports = { root: true, - extends: ['plugin:@definitelytyped/all'], + extends: ["plugin:@definitelytyped/all"], }; diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a3147ffc6..b19bea604 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -1,68 +1,68 @@ name: CI on: - pull_request: {} + pull_request: {} jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - path: 'three-ts-types' - - uses: actions/checkout@v4 - with: - repository: 'DefinitelyTyped/DefinitelyTyped' - path: 'DefinitelyTyped' - filter: blob:none - fetch-depth: 0 - - uses: pnpm/action-setup@v2 - with: - version: 8 - - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - - run: rsync -av three-ts-types/types/three/ DefinitelyTyped/types/three - - run: git add -A - working-directory: 'DefinitelyTyped' - - run: git config --global user.email "nbierema@gmail.com" - - run: git config --global user.name "Nathan Bierema" - - run: git commit -m "Changes" - working-directory: 'DefinitelyTyped' - - run: pnpm install --filter . --filter '...[origin/master]' - working-directory: 'DefinitelyTyped' - - run: pnpm run test-all - working-directory: 'DefinitelyTyped' - check-fomatting: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2 - with: - version: 8 - - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - cache: 'pnpm' - - run: pnpm install - - run: pnpm run format-check - test-examples: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - submodules: true - - uses: pnpm/action-setup@v2 - with: - version: 8 - - uses: actions/setup-node@v4 - with: - node-version: 'lts/*' - cache: 'pnpm' - - run: pnpm install - - run: pnpm run create-examples - working-directory: examples-testing - - run: git apply changes.patch - working-directory: examples-testing - - run: pnpm run type-check - working-directory: examples-testing - - run: pnpm run format-check + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + path: 'three-ts-types' + - uses: actions/checkout@v4 + with: + repository: 'DefinitelyTyped/DefinitelyTyped' + path: 'DefinitelyTyped' + filter: blob:none + fetch-depth: 0 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + - run: rsync -av three-ts-types/types/three/ DefinitelyTyped/types/three + - run: git add -A + working-directory: 'DefinitelyTyped' + - run: git config --global user.email "nbierema@gmail.com" + - run: git config --global user.name "Nathan Bierema" + - run: git commit -m "Changes" + working-directory: 'DefinitelyTyped' + - run: pnpm install --filter . --filter '...[origin/master]' + working-directory: 'DefinitelyTyped' + - run: pnpm run test-all + working-directory: 'DefinitelyTyped' + check-fomatting: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'pnpm' + - run: pnpm install + - run: pnpm run format-check + test-examples: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - uses: pnpm/action-setup@v2 + with: + version: 8 + - uses: actions/setup-node@v4 + with: + node-version: 'lts/*' + cache: 'pnpm' + - run: pnpm install + - run: pnpm run create-examples + working-directory: examples-testing + - run: git apply changes.patch + working-directory: examples-testing + - run: pnpm run type-check + working-directory: examples-testing + - run: pnpm run format-check diff --git a/.prettierrc.json b/examples-testing/.prettierrc.json similarity index 100% rename from .prettierrc.json rename to examples-testing/.prettierrc.json diff --git a/notNeededPackages.json b/notNeededPackages.json deleted file mode 100644 index aee57674e..000000000 --- a/notNeededPackages.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "packages": [] -} diff --git a/package.json b/package.json index 1bb1c6fab..97c997f48 100644 --- a/package.json +++ b/package.json @@ -5,11 +5,12 @@ "test-all": "node --require source-map-support/register node_modules/@definitelytyped/dtslint-runner/ --path .", "test": "node --require source-map-support/register node_modules/@definitelytyped/dtslint/ types/three", "lint": "node --require source-map-support/register node_modules/@definitelytyped/dtslint/ types/three", - "format": "prettier --write .", - "format-check": "prettier --check ." + "format": "dprint fmt", + "format-check": "dprint check" }, "devDependencies": { "@definitelytyped/definitions-parser": "latest", + "@definitelytyped/dts-critic": "latest", "@definitelytyped/dtslint": "latest", "@definitelytyped/dtslint-runner": "latest", "@definitelytyped/eslint-plugin": "latest", @@ -18,7 +19,7 @@ "@definitelytyped/utils": "latest", "@types/stats.js": "*", "@types/webxr": "*", - "prettier": "2.8.8", + "dprint": "^0.45.0", "source-map-support": "^0.5.21", "typescript": "latest" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f760b6e1d..19ad1ed43 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,6 +11,9 @@ importers: '@definitelytyped/definitions-parser': specifier: latest version: 0.0.200(typescript@5.3.3) + '@definitelytyped/dts-critic': + specifier: latest + version: 0.1.3(typescript@5.3.3) '@definitelytyped/dtslint': specifier: latest version: 0.1.2(typescript@5.3.3) @@ -35,9 +38,9 @@ importers: '@types/webxr': specifier: '*' version: 0.5.10 - prettier: - specifier: 2.8.8 - version: 2.8.8 + dprint: + specifier: ^0.45.0 + version: 0.45.0 source-map-support: specifier: ^0.5.21 version: 0.5.21 @@ -116,6 +119,17 @@ packages: yargs: 17.7.2 dev: true + /@definitelytyped/dts-critic@0.1.3(typescript@5.3.3): + resolution: {integrity: sha512-U57eRAafhJchJHKdZUM7GR28cBC+6oXEzXNwe/jdgoXeRLpGFNNHNTEFl0+1cAaiuIQw0QexvpsBpRCcw4J4+A==} + engines: {node: '>=18.18.0'} + peerDependencies: + typescript: '*' + dependencies: + '@definitelytyped/header-parser': 0.2.2 + typescript: 5.3.3 + yargs: 17.7.2 + dev: true + /@definitelytyped/dtslint-runner@0.0.213(typescript@5.3.3): resolution: {integrity: sha512-EB9IEVYYgnROnBg61I0dL28YO9HC03jVn+/KPAjScBC6v4zB+/s+oRrus0prYuhDrFcocNpFCoUglG4lSnfNIw==} engines: {node: '>=16.17.0'} @@ -193,6 +207,15 @@ packages: semver: 7.5.4 dev: true + /@definitelytyped/header-parser@0.2.2: + resolution: {integrity: sha512-j2HNFFHb8dqlzwsD2bmawwqjdlNZ2/4+7igF34JwsBtfhk9ve0ynUKVyB5W4V4gAvrhVOuQv8avfBMMaKDnefA==} + engines: {node: '>=18.18.0'} + dependencies: + '@definitelytyped/typescript-versions': 0.1.0 + '@definitelytyped/utils': 0.1.1 + semver: 7.5.4 + dev: true + /@definitelytyped/typescript-packages@0.0.4: resolution: {integrity: sha512-c5ZzI3HuCzHOdMg0cif15uJ/1dRXANGYl8FJ6Ku/hk3qmf5zCeMraHabu4uVA5rXtGoPwKwatAw0wZ/P882JvA==} engines: {node: '>=16.17.0'} @@ -209,11 +232,32 @@ packages: typescript-5.4: /typescript@5.4.0-dev.20240108 dev: true + /@definitelytyped/typescript-packages@0.1.0: + resolution: {integrity: sha512-2lRQK5CO4HMsEhK0Cu0y1ePNmDOlOOjhCEQ++agX9JuXmL+kQkyvWQ+c8231aoDARH4HjUIV6OLJoPOP9TY4jg==} + engines: {node: '>=18.18.0'} + dependencies: + '@definitelytyped/typescript-versions': 0.1.0 + typescript-4.6: /typescript@4.6.4 + typescript-4.7: /typescript@4.7.4 + typescript-4.8: /typescript@4.8.4 + typescript-4.9: /typescript@4.9.5 + typescript-5.0: /typescript@5.0.4 + typescript-5.1: /typescript@5.1.6 + typescript-5.2: /typescript@5.2.2 + typescript-5.3: /typescript@5.3.3 + typescript-5.4: /typescript@5.4.0-dev.20240108 + dev: true + /@definitelytyped/typescript-versions@0.0.184: resolution: {integrity: sha512-9nMrTUEOX6BJp+BfCWsb1f0WUJ7UFmnIsr6fEXvoc1LCUUlpeWV2Cq5iJZGXCI4RP5LItxyOw/F7NqRcRO937g==} engines: {node: '>=16.17.0'} dev: true + /@definitelytyped/typescript-versions@0.1.0: + resolution: {integrity: sha512-AR1R4oqlbtspNidSMPg5YIFpc37thVXeKxNIhWkYV4ZsZq3zFyBCvsTETZ9lqn0uxFO52B25A1y3xf1aWEIlWA==} + engines: {node: '>=18.18.0'} + dev: true + /@definitelytyped/utils@0.0.191: resolution: {integrity: sha512-WtoU24Y3khQCxLJd54smd8VLpIdd0UZuzlTcxCh7wdcp33lgEUo8EWNclXgAjBbXNng8l4pqjbSuUWikqbbfhg==} engines: {node: '>=16.17.0'} @@ -229,6 +273,78 @@ packages: which: 4.0.0 dev: true + /@definitelytyped/utils@0.1.1: + resolution: {integrity: sha512-VCamUy7vNS4x4ZkSTMs/YpyvwDOoPSfJ6OzoHM2PrArGRpvP34z7Au5yauiGGlAOpW3S6JjLQKZaF91sHVUTEg==} + engines: {node: '>=18.18.0'} + dependencies: + '@definitelytyped/typescript-packages': 0.1.0 + '@definitelytyped/typescript-versions': 0.1.0 + '@qiwi/npm-registry-client': 8.9.1 + '@types/node': 18.19.11 + cachedir: 2.4.0 + charm: 1.0.2 + minimatch: 9.0.3 + tar: 6.2.0 + tar-stream: 3.1.6 + which: 4.0.0 + dev: true + + /@dprint/darwin-arm64@0.45.0: + resolution: {integrity: sha512-pkSSmixIKXr5t32bhXIUbpIBm8F8uhsJcUUvfkFNsRbQvNwRp71ribZpE8dKl0ZFOlAFeWD6WLE8smp/QtiGUA==} + cpu: [arm64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@dprint/darwin-x64@0.45.0: + resolution: {integrity: sha512-PHcXSrRO53KH9N+YPbPtr40NnDo2t7hO7KLMfl2ktRNLjrmKg6F8XDDsr2C7Z11k3jyEEU2Jq8hhpaKHwNapmQ==} + cpu: [x64] + os: [darwin] + requiresBuild: true + dev: true + optional: true + + /@dprint/linux-arm64-glibc@0.45.0: + resolution: {integrity: sha512-NgIpvZHpiQaY4DxSygxknxBtvKE2KLK9dEbUNKNE098yTHhGq7ouPsoM7RtsO34RHJ3tEZLLJEuBHn20XP8LMg==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@dprint/linux-arm64-musl@0.45.0: + resolution: {integrity: sha512-Y8p+FC0RNyKCGQjy99Uh1LSPrlQtUTvo4brdvU1THF3pyWu6Bg1p6NiP5a6SjE/6t9CMKZJz39zPreQtnDkSDA==} + cpu: [arm64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@dprint/linux-x64-glibc@0.45.0: + resolution: {integrity: sha512-u03NCZIpJhE5gIl9Q7jNL4sOPBFd/8BLVBiuLoLtbiTZQ+NNudHKgGNATJBU67q1MKpqKnt8/gQm139cJkHhrw==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@dprint/linux-x64-musl@0.45.0: + resolution: {integrity: sha512-DQN8LPtxismkeU1X+sQywa80kWwCBcpQh9fXoJcvTEHrgzHBqbG2SEsUZpM12oKEua1KE/iBh+vgZ+4I3TdI2A==} + cpu: [x64] + os: [linux] + requiresBuild: true + dev: true + optional: true + + /@dprint/win32-x64@0.45.0: + resolution: {integrity: sha512-aZHIWG2jIlEp4BER1QG6YYqPd6TxT9S77AeUkWJixNiMEo+33mPRVCBcugRWI/WJWveX8yWFVXkToORtnSFeEA==} + cpu: [x64] + os: [win32] + requiresBuild: true + dev: true + optional: true + /@es-joy/jsdoccomment@0.39.4: resolution: {integrity: sha512-Jvw915fjqQct445+yron7Dufix9A+m9j1fCJYlCo1FWlRvTxa3pjJelxdSTdaLWcTwRU6vbL+NYjO4YuNIS5Qg==} engines: {node: '>=16'} @@ -605,6 +721,12 @@ packages: resolution: {integrity: sha512-8eIk20G5VVVQNZNouHjLA2b8utE2NvGybLjMaF4lyhA9uhGwnmXF8o+icdXKGSQSNANJewXva/sFUoZLwAaYAg==} dev: true + /@types/node@18.19.11: + resolution: {integrity: sha512-hzdHPKpDdp5bEcRq1XTlZ2ntVjLcHCTV73dEcGg02eSY/+9AZ+jlfz6i00+zOrunMWenjHuI49J8J7Y9uz50JQ==} + dependencies: + undici-types: 5.26.5 + dev: true + /@types/semver@7.5.6: resolution: {integrity: sha512-dn1l8LaMea/IjDoHNd9J52uBbInB796CDffS6VdIxvqYCPSG0V0DzHp76GpaWnlhg88uYyPbXCDIowa86ybd5A==} dev: true @@ -1014,6 +1136,11 @@ packages: unique-filename: 3.0.0 dev: true + /cachedir@2.4.0: + resolution: {integrity: sha512-9EtFOZR8g22CL7BWjJ9BUx1+A/djkofnyW3aOXZORNW2kxoUpx2h+uN2cOqwPmFhnpVmxg+KW2OjOSgChTEvsQ==} + engines: {node: '>=6'} + dev: true + /call-bind@1.0.5: resolution: {integrity: sha512-C3nQxfFZxFRVoJoGKKI8y3MOEo129NQ+FgQ08iye+Mk4zNZZGdjfs06bVTr+DBSlA66Q2VEcMki/cUCP4SercQ==} dependencies: @@ -1225,6 +1352,20 @@ packages: esutils: 2.0.3 dev: true + /dprint@0.45.0: + resolution: {integrity: sha512-3444h7V47XoA16qgIWjw3CV/Eo/rQbT/XTGlbJ/6vJ+apQyuo0+M3Ai0GS3wu7X9HBUDcA0zIHA3mOxWNz6toA==} + hasBin: true + requiresBuild: true + optionalDependencies: + '@dprint/darwin-arm64': 0.45.0 + '@dprint/darwin-x64': 0.45.0 + '@dprint/linux-arm64-glibc': 0.45.0 + '@dprint/linux-arm64-musl': 0.45.0 + '@dprint/linux-x64-glibc': 0.45.0 + '@dprint/linux-x64-musl': 0.45.0 + '@dprint/win32-x64': 0.45.0 + dev: true + /eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} dev: true @@ -2724,6 +2865,7 @@ packages: resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} engines: {node: '>=10.13.0'} hasBin: true + dev: false /proc-log@3.0.0: resolution: {integrity: sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A==} @@ -3429,6 +3571,10 @@ packages: which-boxed-primitive: 1.0.2 dev: true + /undici-types@5.26.5: + resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} + dev: true + /unique-filename@3.0.0: resolution: {integrity: sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g==} engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index ced741b1c..8111e1c3f 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,3 +1,3 @@ packages: - - 'examples-testing' - - 'types/three' + - 'examples-testing' + - 'types/three' diff --git a/types/three/build/three.d.cts b/types/three/build/three.d.cts index a6d9a5031..e0aebb6ff 100644 --- a/types/three/build/three.d.cts +++ b/types/three/build/three.d.cts @@ -1,2 +1,2 @@ -export * from '../src/Three.js'; +export * from "../src/Three.js"; export as namespace THREE; diff --git a/types/three/build/three.module.d.ts b/types/three/build/three.module.d.ts index a6d9a5031..e0aebb6ff 100644 --- a/types/three/build/three.module.d.ts +++ b/types/three/build/three.module.d.ts @@ -1,2 +1,2 @@ -export * from '../src/Three.js'; +export * from "../src/Three.js"; export as namespace THREE; diff --git a/types/three/build/three.module.min.d.ts b/types/three/build/three.module.min.d.ts index a6d9a5031..e0aebb6ff 100644 --- a/types/three/build/three.module.min.d.ts +++ b/types/three/build/three.module.min.d.ts @@ -1,2 +1,2 @@ -export * from '../src/Three.js'; +export * from "../src/Three.js"; export as namespace THREE; diff --git a/types/three/examples/jsm/Addons.d.ts b/types/three/examples/jsm/Addons.d.ts index 506ffa1fd..3955f4bf3 100644 --- a/types/three/examples/jsm/Addons.d.ts +++ b/types/three/examples/jsm/Addons.d.ts @@ -1,295 +1,295 @@ -export * from './animation/AnimationClipCreator.js'; -export * from './animation/CCDIKSolver.js'; -export * from './animation/MMDAnimationHelper.js'; -export * from './animation/MMDPhysics.js'; +export * from "./animation/AnimationClipCreator.js"; +export * from "./animation/CCDIKSolver.js"; +export * from "./animation/MMDAnimationHelper.js"; +export * from "./animation/MMDPhysics.js"; -export * from './cameras/CinematicCamera.js'; +export * from "./cameras/CinematicCamera.js"; -export { default as WebGL } from './capabilities/WebGL.js'; +export { default as WebGL } from "./capabilities/WebGL.js"; -export * from './controls/ArcballControls.js'; -export * from './controls/DragControls.js'; -export * from './controls/FirstPersonControls.js'; -export * from './controls/FlyControls.js'; -export * from './controls/MapControls.js'; -export * from './controls/OrbitControls.js'; -export * from './controls/PointerLockControls.js'; -export * from './controls/TrackballControls.js'; -export * from './controls/TransformControls.js'; +export * from "./controls/ArcballControls.js"; +export * from "./controls/DragControls.js"; +export * from "./controls/FirstPersonControls.js"; +export * from "./controls/FlyControls.js"; +export * from "./controls/MapControls.js"; +export * from "./controls/OrbitControls.js"; +export * from "./controls/PointerLockControls.js"; +export * from "./controls/TrackballControls.js"; +export * from "./controls/TransformControls.js"; -export * from './csm/CSM.js'; -export * from './csm/CSMFrustum.js'; -export * from './csm/CSMHelper.js'; -export * from './csm/CSMShader.js'; +export * from "./csm/CSM.js"; +export * from "./csm/CSMFrustum.js"; +export * from "./csm/CSMHelper.js"; +export * from "./csm/CSMShader.js"; -export * as Curves from './curves/CurveExtras.js'; -export * from './curves/NURBSCurve.js'; -export * from './curves/NURBSSurface.js'; -export * from './curves/NURBSVolume.js'; -export * as NURBSUtils from './curves/NURBSUtils.js'; +export * as Curves from "./curves/CurveExtras.js"; +export * from "./curves/NURBSCurve.js"; +export * from "./curves/NURBSSurface.js"; +export * as NURBSUtils from "./curves/NURBSUtils.js"; +export * from "./curves/NURBSVolume.js"; -export * from './effects/AnaglyphEffect.js'; -export * from './effects/AsciiEffect.js'; -export * from './effects/OutlineEffect.js'; -export * from './effects/ParallaxBarrierEffect.js'; -export * from './effects/PeppersGhostEffect.js'; -export * from './effects/StereoEffect.js'; +export * from "./effects/AnaglyphEffect.js"; +export * from "./effects/AsciiEffect.js"; +export * from "./effects/OutlineEffect.js"; +export * from "./effects/ParallaxBarrierEffect.js"; +export * from "./effects/PeppersGhostEffect.js"; +export * from "./effects/StereoEffect.js"; -export * from './environments/DebugEnvironment.js'; -export * from './environments/RoomEnvironment.js'; +export * from "./environments/DebugEnvironment.js"; +export * from "./environments/RoomEnvironment.js"; -export * from './exporters/DRACOExporter.js'; -export * from './exporters/EXRExporter.js'; -export * from './exporters/GLTFExporter.js'; -export * from './exporters/KTX2Exporter.js'; -export * from './exporters/MMDExporter.js'; -export * from './exporters/OBJExporter.js'; -export * from './exporters/PLYExporter.js'; -export * from './exporters/STLExporter.js'; -export * from './exporters/USDZExporter.js'; +export * from "./exporters/DRACOExporter.js"; +export * from "./exporters/EXRExporter.js"; +export * from "./exporters/GLTFExporter.js"; +export * from "./exporters/KTX2Exporter.js"; +export * from "./exporters/MMDExporter.js"; +export * from "./exporters/OBJExporter.js"; +export * from "./exporters/PLYExporter.js"; +export * from "./exporters/STLExporter.js"; +export * from "./exporters/USDZExporter.js"; -export * from './geometries/BoxLineGeometry.js'; -export * from './geometries/ConvexGeometry.js'; -export * from './geometries/DecalGeometry.js'; -export * from './geometries/ParametricGeometries.js'; -export * from './geometries/ParametricGeometry.js'; -export * from './geometries/RoundedBoxGeometry.js'; -export * from './geometries/TeapotGeometry.js'; -export * from './geometries/TextGeometry.js'; +export * from "./geometries/BoxLineGeometry.js"; +export * from "./geometries/ConvexGeometry.js"; +export * from "./geometries/DecalGeometry.js"; +export * from "./geometries/ParametricGeometries.js"; +export * from "./geometries/ParametricGeometry.js"; +export * from "./geometries/RoundedBoxGeometry.js"; +export * from "./geometries/TeapotGeometry.js"; +export * from "./geometries/TextGeometry.js"; -export * from './helpers/LightProbeHelper.js'; -export * from './helpers/OctreeHelper.js'; -export * from './helpers/PositionalAudioHelper.js'; -export * from './helpers/RectAreaLightHelper.js'; -export * from './helpers/TextureHelper.js'; -export * from './helpers/VertexNormalsHelper.js'; -export * from './helpers/VertexTangentsHelper.js'; -export * from './helpers/ViewHelper.js'; +export * from "./helpers/LightProbeHelper.js"; +export * from "./helpers/OctreeHelper.js"; +export * from "./helpers/PositionalAudioHelper.js"; +export * from "./helpers/RectAreaLightHelper.js"; +export * from "./helpers/TextureHelper.js"; +export * from "./helpers/VertexNormalsHelper.js"; +export * from "./helpers/VertexTangentsHelper.js"; +export * from "./helpers/ViewHelper.js"; -export * from './interactive/HTMLMesh.js'; -export * from './interactive/InteractiveGroup.js'; -export * from './interactive/SelectionBox.js'; -export * from './interactive/SelectionHelper.js'; +export * from "./interactive/HTMLMesh.js"; +export * from "./interactive/InteractiveGroup.js"; +export * from "./interactive/SelectionBox.js"; +export * from "./interactive/SelectionHelper.js"; -export { default as IESSpotLight } from './lights/IESSpotLight.js'; -export * from './lights/LightProbeGenerator.js'; -export * from './lights/RectAreaLightUniformsLib.js'; +export { default as IESSpotLight } from "./lights/IESSpotLight.js"; +export * from "./lights/LightProbeGenerator.js"; +export * from "./lights/RectAreaLightUniformsLib.js"; -export * from './lines/Line2.js'; -export * from './lines/LineGeometry.js'; -export * from './lines/LineMaterial.js'; -export * from './lines/LineSegments2.js'; -export * from './lines/LineSegmentsGeometry.js'; -export * from './lines/Wireframe.js'; -export * from './lines/WireframeGeometry2.js'; +export * from "./lines/Line2.js"; +export * from "./lines/LineGeometry.js"; +export * from "./lines/LineMaterial.js"; +export * from "./lines/LineSegments2.js"; +export * from "./lines/LineSegmentsGeometry.js"; +export * from "./lines/Wireframe.js"; +export * from "./lines/WireframeGeometry2.js"; -export * from './loaders/3DMLoader.js'; -export * from './loaders/3MFLoader.js'; -export * from './loaders/AMFLoader.js'; -export * from './loaders/BVHLoader.js'; -export * from './loaders/ColladaLoader.js'; -export * from './loaders/DDSLoader.js'; -export * from './loaders/DRACOLoader.js'; -export * from './loaders/EXRLoader.js'; -export * from './loaders/FBXLoader.js'; -export * from './loaders/FontLoader.js'; -export * from './loaders/GCodeLoader.js'; -export * from './loaders/GLTFLoader.js'; -export * from './loaders/HDRCubeTextureLoader.js'; -export * from './loaders/IESLoader.js'; -export * from './loaders/KMZLoader.js'; -export * from './loaders/KTX2Loader.js'; -export * from './loaders/KTXLoader.js'; -export * from './loaders/LDrawLoader.js'; -export * from './loaders/LUT3dlLoader.js'; -export * from './loaders/LUTCubeLoader.js'; -export * from './loaders/LWOLoader.js'; -export * from './loaders/LogLuvLoader.js'; -export * from './loaders/LottieLoader.js'; -export * from './loaders/MD2Loader.js'; -export * from './loaders/MDDLoader.js'; -export * from './loaders/MMDLoader.js'; -export * from './loaders/MTLLoader.js'; -export * from './loaders/NRRDLoader.js'; -export * from './loaders/OBJLoader.js'; -export * from './loaders/PCDLoader.js'; -export * from './loaders/PDBLoader.js'; -export * from './loaders/PLYLoader.js'; -export * from './loaders/PVRLoader.js'; -export * from './loaders/RGBELoader.js'; -export * from './loaders/RGBMLoader.js'; -export * from './loaders/STLLoader.js'; -export * from './loaders/SVGLoader.js'; -export * from './loaders/TDSLoader.js'; -export * from './loaders/TGALoader.js'; -export * from './loaders/TIFFLoader.js'; -export * from './loaders/TTFLoader.js'; -export * from './loaders/TiltLoader.js'; -export * from './loaders/USDZLoader.js'; -export * from './loaders/VOXLoader.js'; -export * from './loaders/VRMLLoader.js'; -export * from './loaders/VTKLoader.js'; -export * from './loaders/XYZLoader.js'; +export * from "./loaders/3DMLoader.js"; +export * from "./loaders/3MFLoader.js"; +export * from "./loaders/AMFLoader.js"; +export * from "./loaders/BVHLoader.js"; +export * from "./loaders/ColladaLoader.js"; +export * from "./loaders/DDSLoader.js"; +export * from "./loaders/DRACOLoader.js"; +export * from "./loaders/EXRLoader.js"; +export * from "./loaders/FBXLoader.js"; +export * from "./loaders/FontLoader.js"; +export * from "./loaders/GCodeLoader.js"; +export * from "./loaders/GLTFLoader.js"; +export * from "./loaders/HDRCubeTextureLoader.js"; +export * from "./loaders/IESLoader.js"; +export * from "./loaders/KMZLoader.js"; +export * from "./loaders/KTX2Loader.js"; +export * from "./loaders/KTXLoader.js"; +export * from "./loaders/LDrawLoader.js"; +export * from "./loaders/LogLuvLoader.js"; +export * from "./loaders/LottieLoader.js"; +export * from "./loaders/LUT3dlLoader.js"; +export * from "./loaders/LUTCubeLoader.js"; +export * from "./loaders/LWOLoader.js"; +export * from "./loaders/MD2Loader.js"; +export * from "./loaders/MDDLoader.js"; +export * from "./loaders/MMDLoader.js"; +export * from "./loaders/MTLLoader.js"; +export * from "./loaders/NRRDLoader.js"; +export * from "./loaders/OBJLoader.js"; +export * from "./loaders/PCDLoader.js"; +export * from "./loaders/PDBLoader.js"; +export * from "./loaders/PLYLoader.js"; +export * from "./loaders/PVRLoader.js"; +export * from "./loaders/RGBELoader.js"; +export * from "./loaders/RGBMLoader.js"; +export * from "./loaders/STLLoader.js"; +export * from "./loaders/SVGLoader.js"; +export * from "./loaders/TDSLoader.js"; +export * from "./loaders/TGALoader.js"; +export * from "./loaders/TIFFLoader.js"; +export * from "./loaders/TiltLoader.js"; +export * from "./loaders/TTFLoader.js"; +export * from "./loaders/USDZLoader.js"; +export * from "./loaders/VOXLoader.js"; +export * from "./loaders/VRMLLoader.js"; +export * from "./loaders/VTKLoader.js"; +export * from "./loaders/XYZLoader.js"; -export * from './materials/MeshGouraudMaterial.js'; +export * from "./materials/MeshGouraudMaterial.js"; -export * from './math/Capsule.js'; -export * from './math/ColorConverter.js'; -export * from './math/ConvexHull.js'; -export * from './math/ImprovedNoise.js'; -export * from './math/Lut.js'; -export * from './math/MeshSurfaceSampler.js'; -export * from './math/OBB.js'; -export * from './math/Octree.js'; -export * from './math/SimplexNoise.js'; +export * from "./math/Capsule.js"; +export * from "./math/ColorConverter.js"; +export * from "./math/ConvexHull.js"; +export * from "./math/ImprovedNoise.js"; +export * from "./math/Lut.js"; +export * from "./math/MeshSurfaceSampler.js"; +export * from "./math/OBB.js"; +export * from "./math/Octree.js"; +export * from "./math/SimplexNoise.js"; -export * from './misc/ConvexObjectBreaker.js'; -export * from './misc/GPUComputationRenderer.js'; -export * from './misc/Gyroscope.js'; -export * from './misc/MD2Character.js'; -export * from './misc/MD2CharacterComplex.js'; -export * from './misc/MorphAnimMesh.js'; -export * from './misc/MorphBlendMesh.js'; -export * from './misc/ProgressiveLightMap.js'; -export * from './misc/RollerCoaster.js'; -export * from './misc/Timer.js'; -export * from './misc/TubePainter.js'; -export * from './misc/Volume.js'; -export * from './misc/VolumeSlice.js'; +export * from "./misc/ConvexObjectBreaker.js"; +export * from "./misc/GPUComputationRenderer.js"; +export * from "./misc/Gyroscope.js"; +export * from "./misc/MD2Character.js"; +export * from "./misc/MD2CharacterComplex.js"; +export * from "./misc/MorphAnimMesh.js"; +export * from "./misc/MorphBlendMesh.js"; +export * from "./misc/ProgressiveLightMap.js"; +export * from "./misc/RollerCoaster.js"; +export * from "./misc/Timer.js"; +export * from "./misc/TubePainter.js"; +export * from "./misc/Volume.js"; +export * from "./misc/VolumeSlice.js"; -export * from './modifiers/CurveModifier.js'; -export * from './modifiers/EdgeSplitModifier.js'; -export * from './modifiers/SimplifyModifier.js'; -export * from './modifiers/TessellateModifier.js'; +export * from "./modifiers/CurveModifier.js"; +export * from "./modifiers/EdgeSplitModifier.js"; +export * from "./modifiers/SimplifyModifier.js"; +export * from "./modifiers/TessellateModifier.js"; -export * from './objects/GroundedSkybox.js'; -export * from './objects/Lensflare.js'; -export * from './objects/MarchingCubes.js'; -export * from './objects/Reflector.js'; -export * from './objects/ReflectorForSSRPass.js'; -export * from './objects/Refractor.js'; -export * from './objects/ShadowMesh.js'; -export * from './objects/Sky.js'; -export * from './objects/Water.js'; -export { Water as Water2 } from './objects/Water2.js'; +export * from "./objects/GroundedSkybox.js"; +export * from "./objects/Lensflare.js"; +export * from "./objects/MarchingCubes.js"; +export * from "./objects/Reflector.js"; +export * from "./objects/ReflectorForSSRPass.js"; +export * from "./objects/Refractor.js"; +export * from "./objects/ShadowMesh.js"; +export * from "./objects/Sky.js"; +export * from "./objects/Water.js"; +export { Water as Water2 } from "./objects/Water2.js"; -export * from './physics/AmmoPhysics.js'; -export * from './physics/RapierPhysics.js'; +export * from "./physics/AmmoPhysics.js"; +export * from "./physics/RapierPhysics.js"; -export * from './postprocessing/AfterimagePass.js'; -export * from './postprocessing/BloomPass.js'; -export * from './postprocessing/BokehPass.js'; -export * from './postprocessing/ClearPass.js'; -export * from './postprocessing/CubeTexturePass.js'; -export * from './postprocessing/DotScreenPass.js'; -export * from './postprocessing/EffectComposer.js'; -export * from './postprocessing/FilmPass.js'; -export * from './postprocessing/GlitchPass.js'; -export * from './postprocessing/GTAOPass.js'; -export * from './postprocessing/HalftonePass.js'; -export * from './postprocessing/LUTPass.js'; -export * from './postprocessing/MaskPass.js'; -export * from './postprocessing/OutlinePass.js'; -export * from './postprocessing/OutputPass.js'; -export * from './postprocessing/Pass.js'; -export * from './postprocessing/RenderPass.js'; -export * from './postprocessing/RenderPixelatedPass.js'; -export * from './postprocessing/SAOPass.js'; -export * from './postprocessing/SMAAPass.js'; -export * from './postprocessing/SSAARenderPass.js'; -export * from './postprocessing/SSAOPass.js'; -export * from './postprocessing/SSRPass.js'; -export * from './postprocessing/SavePass.js'; -export * from './postprocessing/ShaderPass.js'; -export * from './postprocessing/TAARenderPass.js'; -export * from './postprocessing/TexturePass.js'; -export * from './postprocessing/UnrealBloomPass.js'; +export * from "./postprocessing/AfterimagePass.js"; +export * from "./postprocessing/BloomPass.js"; +export * from "./postprocessing/BokehPass.js"; +export * from "./postprocessing/ClearPass.js"; +export * from "./postprocessing/CubeTexturePass.js"; +export * from "./postprocessing/DotScreenPass.js"; +export * from "./postprocessing/EffectComposer.js"; +export * from "./postprocessing/FilmPass.js"; +export * from "./postprocessing/GlitchPass.js"; +export * from "./postprocessing/GTAOPass.js"; +export * from "./postprocessing/HalftonePass.js"; +export * from "./postprocessing/LUTPass.js"; +export * from "./postprocessing/MaskPass.js"; +export * from "./postprocessing/OutlinePass.js"; +export * from "./postprocessing/OutputPass.js"; +export * from "./postprocessing/Pass.js"; +export * from "./postprocessing/RenderPass.js"; +export * from "./postprocessing/RenderPixelatedPass.js"; +export * from "./postprocessing/SAOPass.js"; +export * from "./postprocessing/SavePass.js"; +export * from "./postprocessing/ShaderPass.js"; +export * from "./postprocessing/SMAAPass.js"; +export * from "./postprocessing/SSAARenderPass.js"; +export * from "./postprocessing/SSAOPass.js"; +export * from "./postprocessing/SSRPass.js"; +export * from "./postprocessing/TAARenderPass.js"; +export * from "./postprocessing/TexturePass.js"; +export * from "./postprocessing/UnrealBloomPass.js"; -export * from './renderers/CSS2DRenderer.js'; -export * from './renderers/CSS3DRenderer.js'; -export * from './renderers/Projector.js'; -export * from './renderers/SVGRenderer.js'; +export * from "./renderers/CSS2DRenderer.js"; +export * from "./renderers/CSS3DRenderer.js"; +export * from "./renderers/Projector.js"; +export * from "./renderers/SVGRenderer.js"; -export * from './shaders/ACESFilmicToneMappingShader.js'; -export * from './shaders/AfterimageShader.js'; -export * from './shaders/BasicShader.js'; -export * from './shaders/BleachBypassShader.js'; -export * from './shaders/BlendShader.js'; -export * from './shaders/BokehShader.js'; -export { BokehShader as BokehShader2 } from './shaders/BokehShader2.js'; -export * from './shaders/BrightnessContrastShader.js'; -export * from './shaders/ColorCorrectionShader.js'; -export * from './shaders/ColorifyShader.js'; -export * from './shaders/ConvolutionShader.js'; -export * from './shaders/CopyShader.js'; -export * from './shaders/DOFMipMapShader.js'; -export * from './shaders/DepthLimitedBlurShader.js'; -export * from './shaders/DigitalGlitch.js'; -export * from './shaders/DotScreenShader.js'; -export * from './shaders/ExposureShader.js'; -export * from './shaders/FXAAShader.js'; -export * from './shaders/FilmShader.js'; -export * from './shaders/FocusShader.js'; -export * from './shaders/FreiChenShader.js'; -export * from './shaders/GammaCorrectionShader.js'; -export * from './shaders/GodRaysShader.js'; -export * from './shaders/GTAOShader.js'; -export * from './shaders/HalftoneShader.js'; -export * from './shaders/HorizontalBlurShader.js'; -export * from './shaders/HorizontalTiltShiftShader.js'; -export * from './shaders/HueSaturationShader.js'; -export * from './shaders/KaleidoShader.js'; -export * from './shaders/LuminosityHighPassShader.js'; -export * from './shaders/LuminosityShader.js'; -export * from './shaders/MMDToonShader.js'; -export * from './shaders/MirrorShader.js'; -export * from './shaders/NormalMapShader.js'; -export * from './shaders/OutputShader.js'; -export * from './shaders/RGBShiftShader.js'; -export * from './shaders/SAOShader.js'; -export * from './shaders/SMAAShader.js'; -export * from './shaders/SSAOShader.js'; -export * from './shaders/SSRShader.js'; -export * from './shaders/SepiaShader.js'; -export * from './shaders/SobelOperatorShader.js'; -export * from './shaders/SubsurfaceScatteringShader.js'; -export * from './shaders/TechnicolorShader.js'; -export * from './shaders/ToonShader.js'; -export * from './shaders/TriangleBlurShader.js'; -export * from './shaders/UnpackDepthRGBAShader.js'; -export * from './shaders/VelocityShader.js'; -export * from './shaders/VerticalBlurShader.js'; -export * from './shaders/VerticalTiltShiftShader.js'; -export * from './shaders/VignetteShader.js'; -export * from './shaders/VolumeShader.js'; -export * from './shaders/WaterRefractionShader.js'; +export * from "./shaders/ACESFilmicToneMappingShader.js"; +export * from "./shaders/AfterimageShader.js"; +export * from "./shaders/BasicShader.js"; +export * from "./shaders/BleachBypassShader.js"; +export * from "./shaders/BlendShader.js"; +export * from "./shaders/BokehShader.js"; +export { BokehShader as BokehShader2 } from "./shaders/BokehShader2.js"; +export * from "./shaders/BrightnessContrastShader.js"; +export * from "./shaders/ColorCorrectionShader.js"; +export * from "./shaders/ColorifyShader.js"; +export * from "./shaders/ConvolutionShader.js"; +export * from "./shaders/CopyShader.js"; +export * from "./shaders/DepthLimitedBlurShader.js"; +export * from "./shaders/DigitalGlitch.js"; +export * from "./shaders/DOFMipMapShader.js"; +export * from "./shaders/DotScreenShader.js"; +export * from "./shaders/ExposureShader.js"; +export * from "./shaders/FilmShader.js"; +export * from "./shaders/FocusShader.js"; +export * from "./shaders/FreiChenShader.js"; +export * from "./shaders/FXAAShader.js"; +export * from "./shaders/GammaCorrectionShader.js"; +export * from "./shaders/GodRaysShader.js"; +export * from "./shaders/GTAOShader.js"; +export * from "./shaders/HalftoneShader.js"; +export * from "./shaders/HorizontalBlurShader.js"; +export * from "./shaders/HorizontalTiltShiftShader.js"; +export * from "./shaders/HueSaturationShader.js"; +export * from "./shaders/KaleidoShader.js"; +export * from "./shaders/LuminosityHighPassShader.js"; +export * from "./shaders/LuminosityShader.js"; +export * from "./shaders/MirrorShader.js"; +export * from "./shaders/MMDToonShader.js"; +export * from "./shaders/NormalMapShader.js"; +export * from "./shaders/OutputShader.js"; +export * from "./shaders/RGBShiftShader.js"; +export * from "./shaders/SAOShader.js"; +export * from "./shaders/SepiaShader.js"; +export * from "./shaders/SMAAShader.js"; +export * from "./shaders/SobelOperatorShader.js"; +export * from "./shaders/SSAOShader.js"; +export * from "./shaders/SSRShader.js"; +export * from "./shaders/SubsurfaceScatteringShader.js"; +export * from "./shaders/TechnicolorShader.js"; +export * from "./shaders/ToonShader.js"; +export * from "./shaders/TriangleBlurShader.js"; +export * from "./shaders/UnpackDepthRGBAShader.js"; +export * from "./shaders/VelocityShader.js"; +export * from "./shaders/VerticalBlurShader.js"; +export * from "./shaders/VerticalTiltShiftShader.js"; +export * from "./shaders/VignetteShader.js"; +export * from "./shaders/VolumeShader.js"; +export * from "./shaders/WaterRefractionShader.js"; -export * from './textures/FlakesTexture.js'; +export * from "./textures/FlakesTexture.js"; -export * as BufferGeometryUtils from './utils/BufferGeometryUtils.js'; -export * as CameraUtils from './utils/CameraUtils.js'; -export * from './utils/GPUStatsPanel.js'; -export * as GeometryCompressionUtils from './utils/GeometryCompressionUtils.js'; -export * as GeometryUtils from './utils/GeometryUtils.js'; -export * from './utils/LDrawUtils.js'; -export * from './utils/PackedPhongMaterial.js'; -export * as SceneUtils from './utils/SceneUtils.js'; -export * from './utils/ShadowMapViewer.js'; -export * as SkeletonUtils from './utils/SkeletonUtils.js'; -export * as SortUtils from './utils/SortUtils.js'; -export * from './utils/TextureUtils.js'; -export * from './utils/UVsDebug.js'; -export * from './utils/WorkerPool.js'; +export * as BufferGeometryUtils from "./utils/BufferGeometryUtils.js"; +export * as CameraUtils from "./utils/CameraUtils.js"; +export * as GeometryCompressionUtils from "./utils/GeometryCompressionUtils.js"; +export * as GeometryUtils from "./utils/GeometryUtils.js"; +export * from "./utils/GPUStatsPanel.js"; +export * from "./utils/LDrawUtils.js"; +export * from "./utils/PackedPhongMaterial.js"; +export * as SceneUtils from "./utils/SceneUtils.js"; +export * from "./utils/ShadowMapViewer.js"; +export * as SkeletonUtils from "./utils/SkeletonUtils.js"; +export * as SortUtils from "./utils/SortUtils.js"; +export * from "./utils/TextureUtils.js"; +export * from "./utils/UVsDebug.js"; +export * from "./utils/WorkerPool.js"; -export * from './webxr/ARButton.js'; -export * from './webxr/OculusHandModel.js'; -export * from './webxr/OculusHandPointerModel.js'; -export * from './webxr/Text2D.js'; -export * from './webxr/VRButton.js'; -export * from './webxr/XRButton.js'; -export * from './webxr/XRControllerModelFactory.js'; -export * from './webxr/XREstimatedLight.js'; -export * from './webxr/XRHandMeshModel.js'; -export * from './webxr/XRHandModelFactory.js'; -export * from './webxr/XRHandPrimitiveModel.js'; -export * from './webxr/XRPlanes.js'; +export * from "./webxr/ARButton.js"; +export * from "./webxr/OculusHandModel.js"; +export * from "./webxr/OculusHandPointerModel.js"; +export * from "./webxr/Text2D.js"; +export * from "./webxr/VRButton.js"; +export * from "./webxr/XRButton.js"; +export * from "./webxr/XRControllerModelFactory.js"; +export * from "./webxr/XREstimatedLight.js"; +export * from "./webxr/XRHandMeshModel.js"; +export * from "./webxr/XRHandModelFactory.js"; +export * from "./webxr/XRHandPrimitiveModel.js"; +export * from "./webxr/XRPlanes.js"; diff --git a/types/three/examples/jsm/animation/AnimationClipCreator.d.ts b/types/three/examples/jsm/animation/AnimationClipCreator.d.ts index 53b13bbcd..de9769f71 100644 --- a/types/three/examples/jsm/animation/AnimationClipCreator.d.ts +++ b/types/three/examples/jsm/animation/AnimationClipCreator.d.ts @@ -1,4 +1,4 @@ -import { AnimationClip, Vector3 } from '../../../src/Three.js'; +import { AnimationClip, Vector3 } from "../../../src/Three.js"; export interface AnimationClipCreator { CreateRotationAnimation(period: number, axis: string): AnimationClip; diff --git a/types/three/examples/jsm/animation/CCDIKSolver.d.ts b/types/three/examples/jsm/animation/CCDIKSolver.d.ts index 24f6606ae..acfe99cd3 100644 --- a/types/three/examples/jsm/animation/CCDIKSolver.d.ts +++ b/types/three/examples/jsm/animation/CCDIKSolver.d.ts @@ -1,4 +1,4 @@ -import { Object3D, SkinnedMesh, Vector3 } from '../../../src/Three.js'; +import { Object3D, SkinnedMesh, Vector3 } from "../../../src/Three.js"; // eslint-disable-next-line @typescript-eslint/naming-convention export interface IKS { diff --git a/types/three/examples/jsm/animation/MMDAnimationHelper.d.ts b/types/three/examples/jsm/animation/MMDAnimationHelper.d.ts index 617d7a1ed..0909e0fed 100644 --- a/types/three/examples/jsm/animation/MMDAnimationHelper.d.ts +++ b/types/three/examples/jsm/animation/MMDAnimationHelper.d.ts @@ -1,17 +1,17 @@ import { AnimationClip, + AnimationMixer, Audio, + Bone, Camera, Mesh, Object3D, Quaternion, SkinnedMesh, - Bone, - AnimationMixer, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { CCDIKSolver } from './CCDIKSolver.js'; -import { MMDPhysics } from './MMDPhysics.js'; +import { CCDIKSolver } from "./CCDIKSolver.js"; +import { MMDPhysics } from "./MMDPhysics.js"; export interface MMDAnimationHelperParameter { sync?: boolean | undefined; diff --git a/types/three/examples/jsm/animation/MMDPhysics.d.ts b/types/three/examples/jsm/animation/MMDPhysics.d.ts index b0998701f..4a9e3eb2e 100644 --- a/types/three/examples/jsm/animation/MMDPhysics.d.ts +++ b/types/three/examples/jsm/animation/MMDPhysics.d.ts @@ -1,4 +1,4 @@ -import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from '../../../src/Three.js'; +import { Bone, Euler, Matrix4, Object3D, Quaternion, SkinnedMesh, Vector3 } from "../../../src/Three.js"; export interface MMDPhysicsParameter { unitStep?: number | undefined; diff --git a/types/three/examples/jsm/cameras/CinematicCamera.d.ts b/types/three/examples/jsm/cameras/CinematicCamera.d.ts index 98fa77e04..c1da4f7a6 100644 --- a/types/three/examples/jsm/cameras/CinematicCamera.d.ts +++ b/types/three/examples/jsm/cameras/CinematicCamera.d.ts @@ -1,13 +1,13 @@ import { + OrthographicCamera, PerspectiveCamera, - ShaderMaterial, Scene, + ShaderMaterial, WebGLRenderer, - OrthographicCamera, WebGLRenderTarget, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { BokehShaderUniforms } from '../shaders/BokehShader2.js'; +import { BokehShaderUniforms } from "../shaders/BokehShader2.js"; export class CinematicCamera extends PerspectiveCamera { constructor(fov: number, aspect: number, near: number, far: number); diff --git a/types/three/examples/jsm/controls/ArcballControls.d.ts b/types/three/examples/jsm/controls/ArcballControls.d.ts index 2b4b976a8..44d01fe7c 100644 --- a/types/three/examples/jsm/controls/ArcballControls.d.ts +++ b/types/three/examples/jsm/controls/ArcballControls.d.ts @@ -1,17 +1,17 @@ -import { EventDispatcher, Camera, Scene, Vector3, Raycaster } from '../../../src/Three.js'; +import { Camera, EventDispatcher, Raycaster, Scene, Vector3 } from "../../../src/Three.js"; export enum ArcballControlsMouseActionOperations { - PAN = 'PAN', - ROTATE = 'ROTATE', - ZOOM = 'ZOOM', - FOV = 'FOV', + PAN = "PAN", + ROTATE = "ROTATE", + ZOOM = "ZOOM", + FOV = "FOV", } -export type ArcballControlsMouseActionMouse = 0 | 1 | 2 | 'WHEEL'; +export type ArcballControlsMouseActionMouse = 0 | 1 | 2 | "WHEEL"; export enum ArcballControlsMouseActionKeys { - SHIFT = 'SHIFT', - CTRL = 'CTRL', + SHIFT = "SHIFT", + CTRL = "CTRL", } export interface ArcballControlsEventMap { diff --git a/types/three/examples/jsm/controls/DragControls.d.ts b/types/three/examples/jsm/controls/DragControls.d.ts index 273e073fa..6747af4bb 100644 --- a/types/three/examples/jsm/controls/DragControls.d.ts +++ b/types/three/examples/jsm/controls/DragControls.d.ts @@ -1,4 +1,4 @@ -import { Camera, EventDispatcher, Object3D, Raycaster } from '../../../src/Three.js'; +import { Camera, EventDispatcher, Object3D, Raycaster } from "../../../src/Three.js"; export interface DragControlsEventMap { hoveron: { object: Object3D }; diff --git a/types/three/examples/jsm/controls/FirstPersonControls.d.ts b/types/three/examples/jsm/controls/FirstPersonControls.d.ts index 876df6cfe..bc47436c1 100644 --- a/types/three/examples/jsm/controls/FirstPersonControls.d.ts +++ b/types/three/examples/jsm/controls/FirstPersonControls.d.ts @@ -1,4 +1,4 @@ -import { Camera, Vector3 } from '../../../src/Three.js'; +import { Camera, Vector3 } from "../../../src/Three.js"; export class FirstPersonControls { constructor(object: Camera, domElement?: HTMLElement); diff --git a/types/three/examples/jsm/controls/FlyControls.d.ts b/types/three/examples/jsm/controls/FlyControls.d.ts index a0165406b..a0893f9af 100644 --- a/types/three/examples/jsm/controls/FlyControls.d.ts +++ b/types/three/examples/jsm/controls/FlyControls.d.ts @@ -1,4 +1,4 @@ -import { Camera, EventDispatcher } from '../../../src/Three.js'; +import { Camera, EventDispatcher } from "../../../src/Three.js"; export interface FlyControlsEventMap { change: {}; diff --git a/types/three/examples/jsm/controls/MapControls.d.ts b/types/three/examples/jsm/controls/MapControls.d.ts index 2688fc075..6ff331f9b 100644 --- a/types/three/examples/jsm/controls/MapControls.d.ts +++ b/types/three/examples/jsm/controls/MapControls.d.ts @@ -1,5 +1,5 @@ -import { OrbitControls } from './OrbitControls.js'; -import { Camera } from '../../../src/Three.js'; +import { Camera } from "../../../src/Three.js"; +import { OrbitControls } from "./OrbitControls.js"; /** * MapControls performs orbiting, dollying (zooming), and panning. diff --git a/types/three/examples/jsm/controls/OrbitControls.d.ts b/types/three/examples/jsm/controls/OrbitControls.d.ts index b2af5b3d8..c09a63cdf 100644 --- a/types/three/examples/jsm/controls/OrbitControls.d.ts +++ b/types/three/examples/jsm/controls/OrbitControls.d.ts @@ -1,4 +1,4 @@ -import { Camera, EventDispatcher, MOUSE, TOUCH, Vector3 } from '../../../src/Three.js'; +import { Camera, EventDispatcher, MOUSE, TOUCH, Vector3 } from "../../../src/Three.js"; export interface OrbitControlsEventMap { change: {}; diff --git a/types/three/examples/jsm/controls/PointerLockControls.d.ts b/types/three/examples/jsm/controls/PointerLockControls.d.ts index 8f84bb9d4..c6fb64c38 100644 --- a/types/three/examples/jsm/controls/PointerLockControls.d.ts +++ b/types/three/examples/jsm/controls/PointerLockControls.d.ts @@ -1,4 +1,4 @@ -import { Camera, EventDispatcher, Vector3 } from '../../../src/Three.js'; +import { Camera, EventDispatcher, Vector3 } from "../../../src/Three.js"; export class PointerLockControls extends EventDispatcher { constructor(camera: Camera, domElement?: HTMLElement); diff --git a/types/three/examples/jsm/controls/TrackballControls.d.ts b/types/three/examples/jsm/controls/TrackballControls.d.ts index 575686be9..121e3e398 100644 --- a/types/three/examples/jsm/controls/TrackballControls.d.ts +++ b/types/three/examples/jsm/controls/TrackballControls.d.ts @@ -1,4 +1,4 @@ -import { Camera, EventDispatcher, MOUSE, Vector3 } from '../../../src/Three.js'; +import { Camera, EventDispatcher, MOUSE, Vector3 } from "../../../src/Three.js"; export interface TrackballControlsEventMap { change: {}; diff --git a/types/three/examples/jsm/controls/TransformControls.d.ts b/types/three/examples/jsm/controls/TransformControls.d.ts index 6f086c206..01f1e4e90 100644 --- a/types/three/examples/jsm/controls/TransformControls.d.ts +++ b/types/three/examples/jsm/controls/TransformControls.d.ts @@ -1,35 +1,35 @@ -import { Object3D, Camera, MOUSE, Raycaster, Mesh, Vector3, Quaternion, Object3DEventMap } from '../../../src/Three.js'; +import { Camera, Mesh, MOUSE, Object3D, Object3DEventMap, Quaternion, Raycaster, Vector3 } from "../../../src/Three.js"; export interface TransformControlsEventMap extends Object3DEventMap { change: {}; mouseDown: {}; mouseUp: {}; objectChange: {}; - 'camera-changed': { value: unknown }; - 'object-changed': { value: unknown }; - 'enabled-changed': { value: unknown }; - 'axis-changed': { value: unknown }; - 'mode-changed': { value: unknown }; - 'translationSnap-changed': { value: unknown }; - 'rotationSnap-changed': { value: unknown }; - 'scaleSnap-changed': { value: unknown }; - 'space-changed': { value: unknown }; - 'size-changed': { value: unknown }; - 'dragging-changed': { value: unknown }; - 'showX-changed': { value: unknown }; - 'showY-changed': { value: unknown }; - 'showZ-changed': { value: unknown }; - 'worldPosition-changed': { value: unknown }; - 'worldPositionStart-changed': { value: unknown }; - 'worldQuaternion-changed': { value: unknown }; - 'worldQuaternionStart-changed': { value: unknown }; - 'cameraPosition-changed': { value: unknown }; - 'cameraQuaternion-changed': { value: unknown }; - 'pointStart-changed': { value: unknown }; - 'pointEnd-changed': { value: unknown }; - 'rotationAxis-changed': { value: unknown }; - 'rotationAngle-changed': { value: unknown }; - 'eye-changed': { value: unknown }; + "camera-changed": { value: unknown }; + "object-changed": { value: unknown }; + "enabled-changed": { value: unknown }; + "axis-changed": { value: unknown }; + "mode-changed": { value: unknown }; + "translationSnap-changed": { value: unknown }; + "rotationSnap-changed": { value: unknown }; + "scaleSnap-changed": { value: unknown }; + "space-changed": { value: unknown }; + "size-changed": { value: unknown }; + "dragging-changed": { value: unknown }; + "showX-changed": { value: unknown }; + "showY-changed": { value: unknown }; + "showZ-changed": { value: unknown }; + "worldPosition-changed": { value: unknown }; + "worldPositionStart-changed": { value: unknown }; + "worldQuaternion-changed": { value: unknown }; + "worldQuaternionStart-changed": { value: unknown }; + "cameraPosition-changed": { value: unknown }; + "cameraQuaternion-changed": { value: unknown }; + "pointStart-changed": { value: unknown }; + "pointEnd-changed": { value: unknown }; + "rotationAxis-changed": { value: unknown }; + "rotationAngle-changed": { value: unknown }; + "eye-changed": { value: unknown }; } export class TransformControls extends Object3D { @@ -42,11 +42,11 @@ export class TransformControls extends Object3D { camera: Camera; object: Object3D | undefined; enabled: boolean; - axis: 'X' | 'Y' | 'Z' | 'E' | 'XY' | 'YZ' | 'XZ' | 'XYZ' | 'XYZE' | null; - mode: 'translate' | 'rotate' | 'scale'; + axis: "X" | "Y" | "Z" | "E" | "XY" | "YZ" | "XZ" | "XYZ" | "XYZE" | null; + mode: "translate" | "rotate" | "scale"; translationSnap: number | null; rotationSnap: number | null; - space: 'world' | 'local'; + space: "world" | "local"; size: number; dragging: boolean; showX: boolean; @@ -62,20 +62,20 @@ export class TransformControls extends Object3D { attach(object: Object3D): this; detach(): this; - getMode(): 'translate' | 'rotate' | 'scale'; + getMode(): "translate" | "rotate" | "scale"; getRaycaster(): Raycaster; - setMode(mode: 'translate' | 'rotate' | 'scale'): void; + setMode(mode: "translate" | "rotate" | "scale"): void; setTranslationSnap(translationSnap: number | null): void; setRotationSnap(rotationSnap: number | null): void; setScaleSnap(scaleSnap: number | null): void; setSize(size: number): void; - setSpace(space: 'world' | 'local'): void; + setSpace(space: "world" | "local"): void; reset(): void; dispose(): void; } export class TransformControlsGizmo extends Object3D { - type: 'TransformControlsGizmo'; + type: "TransformControlsGizmo"; isTransformControlsGizmo: true; gizmo: { @@ -98,16 +98,16 @@ export class TransformControlsGizmo extends Object3D { } export class TransformControlsPlane extends Mesh { - type: 'TransformControlsPlane'; + type: "TransformControlsPlane"; isTransformControlsPlane: true; constructor(); - mode: 'translate' | 'scale' | 'rotate'; + mode: "translate" | "scale" | "rotate"; - axis: 'X' | 'Y' | 'Z' | 'XY' | 'YZ' | 'XZ' | 'XYZ' | 'E'; + axis: "X" | "Y" | "Z" | "XY" | "YZ" | "XZ" | "XYZ" | "E"; - space: 'local' | 'world'; + space: "local" | "world"; eye: Vector3; worldPosition: Vector3; diff --git a/types/three/examples/jsm/csm/CSM.d.ts b/types/three/examples/jsm/csm/CSM.d.ts index 74814a978..ac910675b 100644 --- a/types/three/examples/jsm/csm/CSM.d.ts +++ b/types/three/examples/jsm/csm/CSM.d.ts @@ -1,6 +1,6 @@ -import { Camera, Vector3, DirectionalLight, Material, Vector2, Object3D } from '../../../src/Three.js'; +import { Camera, DirectionalLight, Material, Object3D, Vector2, Vector3 } from "../../../src/Three.js"; -export type CSMMode = 'uniform' | 'logarithmic' | 'practical' | 'custom'; +export type CSMMode = "uniform" | "logarithmic" | "practical" | "custom"; export interface CSMParameters { camera?: Camera; @@ -53,4 +53,4 @@ export class CSM { dispose(): void; } -import CSMFrustrum from './CSMFrustum.js'; +import CSMFrustrum from "./CSMFrustum.js"; diff --git a/types/three/examples/jsm/csm/CSMFrustum.d.ts b/types/three/examples/jsm/csm/CSMFrustum.d.ts index 0cbeb7db1..732577f60 100644 --- a/types/three/examples/jsm/csm/CSMFrustum.d.ts +++ b/types/three/examples/jsm/csm/CSMFrustum.d.ts @@ -1,4 +1,4 @@ -import { Matrix4, Vector3 } from '../../../src/Three.js'; +import { Matrix4, Vector3 } from "../../../src/Three.js"; export interface CSMFrustumVerticies { near: Vector3[]; diff --git a/types/three/examples/jsm/csm/CSMHelper.d.ts b/types/three/examples/jsm/csm/CSMHelper.d.ts index eb210ccee..2114f05f1 100644 --- a/types/three/examples/jsm/csm/CSMHelper.d.ts +++ b/types/three/examples/jsm/csm/CSMHelper.d.ts @@ -7,9 +7,9 @@ import { Mesh, MeshBasicMaterial, PlaneGeometry, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { CSM } from './CSM.js'; +import { CSM } from "./CSM.js"; export class CSMHelper extends Group { constructor(csm: TCSM); diff --git a/types/three/examples/jsm/curves/CurveExtras.d.ts b/types/three/examples/jsm/curves/CurveExtras.d.ts index 52b9b9691..4f1d84d4f 100644 --- a/types/three/examples/jsm/curves/CurveExtras.d.ts +++ b/types/three/examples/jsm/curves/CurveExtras.d.ts @@ -1,4 +1,4 @@ -import { Curve, Vector3 } from '../../../src/Three.js'; +import { Curve, Vector3 } from "../../../src/Three.js"; export class GrannyKnot extends Curve { constructor(); diff --git a/types/three/examples/jsm/curves/NURBSCurve.d.ts b/types/three/examples/jsm/curves/NURBSCurve.d.ts index 8df4a2c0b..7dd562577 100644 --- a/types/three/examples/jsm/curves/NURBSCurve.d.ts +++ b/types/three/examples/jsm/curves/NURBSCurve.d.ts @@ -1,4 +1,4 @@ -import { Curve, Vector2, Vector3, Vector4 } from '../../../src/Three.js'; +import { Curve, Vector2, Vector3, Vector4 } from "../../../src/Three.js"; export class NURBSCurve extends Curve { degree: number; diff --git a/types/three/examples/jsm/curves/NURBSSurface.d.ts b/types/three/examples/jsm/curves/NURBSSurface.d.ts index 342728b03..1f54123fa 100644 --- a/types/three/examples/jsm/curves/NURBSSurface.d.ts +++ b/types/three/examples/jsm/curves/NURBSSurface.d.ts @@ -1,4 +1,4 @@ -import { Vector2, Vector3, Vector4 } from '../../../src/Three.js'; +import { Vector2, Vector3, Vector4 } from "../../../src/Three.js"; export class NURBSSurface { constructor( diff --git a/types/three/examples/jsm/curves/NURBSUtils.d.ts b/types/three/examples/jsm/curves/NURBSUtils.d.ts index e85fb6081..a19006d19 100644 --- a/types/three/examples/jsm/curves/NURBSUtils.d.ts +++ b/types/three/examples/jsm/curves/NURBSUtils.d.ts @@ -1,4 +1,4 @@ -import { Vector3, Vector4 } from '../../../src/Three.js'; +import { Vector3, Vector4 } from "../../../src/Three.js"; /** * Finds knot vector span. diff --git a/types/three/examples/jsm/curves/NURBSVolume.d.ts b/types/three/examples/jsm/curves/NURBSVolume.d.ts index 7ba28130c..a9c5c51ff 100644 --- a/types/three/examples/jsm/curves/NURBSVolume.d.ts +++ b/types/three/examples/jsm/curves/NURBSVolume.d.ts @@ -1,4 +1,4 @@ -import { Vector3, Vector4 } from '../../../src/Three.js'; +import { Vector3, Vector4 } from "../../../src/Three.js"; export class NURBSVolume { degree1: number; diff --git a/types/three/examples/jsm/deprecated/Geometry.d.ts b/types/three/examples/jsm/deprecated/Geometry.d.ts index 97965ba50..628141e31 100644 --- a/types/three/examples/jsm/deprecated/Geometry.d.ts +++ b/types/three/examples/jsm/deprecated/Geometry.d.ts @@ -1,19 +1,19 @@ import { - Vector3, - Color, - Vector2, - Vector4, + AnimationClip, + Bone, Box3, - Sphere, - Matrix4, BufferGeometry, + Color, + EventDispatcher, Matrix, + Matrix4, Mesh, - Bone, - AnimationClip, - EventDispatcher, Object3D, -} from '../../../src/Three.js'; + Sphere, + Vector2, + Vector3, + Vector4, +} from "../../../src/Three.js"; /** * @deprecated Use Face3 instead. @@ -176,7 +176,6 @@ export class Geometry extends EventDispatcher { lineDistancesNeedUpdate: boolean; /** - * * @default false */ groupsNeedUpdate: boolean; diff --git a/types/three/examples/jsm/effects/AnaglyphEffect.d.ts b/types/three/examples/jsm/effects/AnaglyphEffect.d.ts index 7be2acca2..896b510d1 100644 --- a/types/three/examples/jsm/effects/AnaglyphEffect.d.ts +++ b/types/three/examples/jsm/effects/AnaglyphEffect.d.ts @@ -1,4 +1,4 @@ -import { Camera, Matrix3, Scene, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Matrix3, Scene, WebGLRenderer } from "../../../src/Three.js"; export class AnaglyphEffect { constructor(renderer: WebGLRenderer, width?: number, height?: number); diff --git a/types/three/examples/jsm/effects/AsciiEffect.d.ts b/types/three/examples/jsm/effects/AsciiEffect.d.ts index 0a17d816d..6355d1133 100644 --- a/types/three/examples/jsm/effects/AsciiEffect.d.ts +++ b/types/three/examples/jsm/effects/AsciiEffect.d.ts @@ -1,4 +1,4 @@ -import { Camera, Scene, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Scene, WebGLRenderer } from "../../../src/Three.js"; export interface AsciiEffectOptions { resolution?: number; diff --git a/types/three/examples/jsm/effects/OutlineEffect.d.ts b/types/three/examples/jsm/effects/OutlineEffect.d.ts index 7046b1092..4967615e2 100644 --- a/types/three/examples/jsm/effects/OutlineEffect.d.ts +++ b/types/three/examples/jsm/effects/OutlineEffect.d.ts @@ -6,7 +6,7 @@ import { WebGLRenderer, WebGLRenderTarget, WebGLShadowMap, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface OutlineEffectParameters { defaultThickness?: number | undefined; diff --git a/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts b/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts index 71aca456f..1ba3f11ee 100644 --- a/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts +++ b/types/three/examples/jsm/effects/ParallaxBarrierEffect.d.ts @@ -1,4 +1,4 @@ -import { Camera, Scene, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Scene, WebGLRenderer } from "../../../src/Three.js"; export class ParallaxBarrierEffect { constructor(renderer: WebGLRenderer); diff --git a/types/three/examples/jsm/effects/PeppersGhostEffect.d.ts b/types/three/examples/jsm/effects/PeppersGhostEffect.d.ts index 28a9e2246..bddd75391 100644 --- a/types/three/examples/jsm/effects/PeppersGhostEffect.d.ts +++ b/types/three/examples/jsm/effects/PeppersGhostEffect.d.ts @@ -1,4 +1,4 @@ -import { Camera, Scene, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Scene, WebGLRenderer } from "../../../src/Three.js"; export class PeppersGhostEffect { constructor(renderer: WebGLRenderer); diff --git a/types/three/examples/jsm/effects/StereoEffect.d.ts b/types/three/examples/jsm/effects/StereoEffect.d.ts index 14d38611c..e978c9231 100644 --- a/types/three/examples/jsm/effects/StereoEffect.d.ts +++ b/types/three/examples/jsm/effects/StereoEffect.d.ts @@ -1,4 +1,4 @@ -import { Camera, Scene, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Scene, WebGLRenderer } from "../../../src/Three.js"; export class StereoEffect { constructor(renderer: WebGLRenderer); diff --git a/types/three/examples/jsm/environments/DebugEnvironment.d.ts b/types/three/examples/jsm/environments/DebugEnvironment.d.ts index 315bd6454..9c094f7b6 100644 --- a/types/three/examples/jsm/environments/DebugEnvironment.d.ts +++ b/types/three/examples/jsm/environments/DebugEnvironment.d.ts @@ -1,4 +1,4 @@ -import { Scene } from '../../../src/Three.js'; +import { Scene } from "../../../src/Three.js"; export class DebugEnvironment extends Scene { constructor(); diff --git a/types/three/examples/jsm/environments/RoomEnvironment.d.ts b/types/three/examples/jsm/environments/RoomEnvironment.d.ts index 614cc621d..2d9bbb2ed 100644 --- a/types/three/examples/jsm/environments/RoomEnvironment.d.ts +++ b/types/three/examples/jsm/environments/RoomEnvironment.d.ts @@ -1,4 +1,4 @@ -import { Scene, WebGLRenderer } from '../../../src/Three.js'; +import { Scene, WebGLRenderer } from "../../../src/Three.js"; export class RoomEnvironment extends Scene { constructor(renderer?: WebGLRenderer); diff --git a/types/three/examples/jsm/exporters/DRACOExporter.d.ts b/types/three/examples/jsm/exporters/DRACOExporter.d.ts index 11ec70c8b..b2e17cd27 100644 --- a/types/three/examples/jsm/exporters/DRACOExporter.d.ts +++ b/types/three/examples/jsm/exporters/DRACOExporter.d.ts @@ -1,4 +1,4 @@ -import { Mesh, Points } from '../../../src/Three.js'; +import { Mesh, Points } from "../../../src/Three.js"; export interface DRACOExporterOptions { decodeSpeed?: number; diff --git a/types/three/examples/jsm/exporters/EXRExporter.d.ts b/types/three/examples/jsm/exporters/EXRExporter.d.ts index 6a8359185..5188e1dd4 100644 --- a/types/three/examples/jsm/exporters/EXRExporter.d.ts +++ b/types/three/examples/jsm/exporters/EXRExporter.d.ts @@ -5,7 +5,7 @@ * https://www.openexr.com/documentation/openexrfilelayout.pdf */ -import { DataTexture, TextureDataType, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three.js'; +import { DataTexture, TextureDataType, WebGLRenderer, WebGLRenderTarget } from "../../../src/Three.js"; export const NO_COMPRESSION: 0; export const ZIPS_COMPRESSION: 2; diff --git a/types/three/examples/jsm/exporters/GLTFExporter.d.ts b/types/three/examples/jsm/exporters/GLTFExporter.d.ts index d4f7864d8..c12c98229 100644 --- a/types/three/examples/jsm/exporters/GLTFExporter.d.ts +++ b/types/three/examples/jsm/exporters/GLTFExporter.d.ts @@ -1,4 +1,4 @@ -import { Object3D, AnimationClip, Texture, Material, Mesh } from '../../../src/Three.js'; +import { AnimationClip, Material, Mesh, Object3D, Texture } from "../../../src/Three.js"; export interface GLTFExporterOptions { /** diff --git a/types/three/examples/jsm/exporters/KTX2Exporter.d.ts b/types/three/examples/jsm/exporters/KTX2Exporter.d.ts index 52798940c..b5a8bd913 100644 --- a/types/three/examples/jsm/exporters/KTX2Exporter.d.ts +++ b/types/three/examples/jsm/exporters/KTX2Exporter.d.ts @@ -1,4 +1,4 @@ -import { Data3DTexture, DataTexture, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three.js'; +import { Data3DTexture, DataTexture, WebGLRenderer, WebGLRenderTarget } from "../../../src/Three.js"; export class KTX2Exporter { parse(arg1: Data3DTexture | DataTexture | WebGLRenderer, arg2?: WebGLRenderTarget): Uint8Array; diff --git a/types/three/examples/jsm/exporters/MMDExporter.d.ts b/types/three/examples/jsm/exporters/MMDExporter.d.ts index 791883a25..4f91042ac 100644 --- a/types/three/examples/jsm/exporters/MMDExporter.d.ts +++ b/types/three/examples/jsm/exporters/MMDExporter.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export class MMDExporter { constructor(); diff --git a/types/three/examples/jsm/exporters/OBJExporter.d.ts b/types/three/examples/jsm/exporters/OBJExporter.d.ts index 822c74b9d..a5ce4dd91 100644 --- a/types/three/examples/jsm/exporters/OBJExporter.d.ts +++ b/types/three/examples/jsm/exporters/OBJExporter.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export class OBJExporter { constructor(); diff --git a/types/three/examples/jsm/exporters/PLYExporter.d.ts b/types/three/examples/jsm/exporters/PLYExporter.d.ts index 627c2e798..8055a2f67 100644 --- a/types/three/examples/jsm/exporters/PLYExporter.d.ts +++ b/types/three/examples/jsm/exporters/PLYExporter.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export interface PLYExporterOptionsBase { excludeAttributes?: string[]; diff --git a/types/three/examples/jsm/exporters/STLExporter.d.ts b/types/three/examples/jsm/exporters/STLExporter.d.ts index f02c49115..cea023af9 100644 --- a/types/three/examples/jsm/exporters/STLExporter.d.ts +++ b/types/three/examples/jsm/exporters/STLExporter.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export interface STLExporterOptionsBinary { binary: true; diff --git a/types/three/examples/jsm/exporters/USDZExporter.d.ts b/types/three/examples/jsm/exporters/USDZExporter.d.ts index 7ef39075e..3a17f2b11 100644 --- a/types/three/examples/jsm/exporters/USDZExporter.d.ts +++ b/types/three/examples/jsm/exporters/USDZExporter.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export interface USDZExporterOptions { quickLookCompatible?: boolean; diff --git a/types/three/examples/jsm/geometries/BoxLineGeometry.d.ts b/types/three/examples/jsm/geometries/BoxLineGeometry.d.ts index bdac5aee5..7c057798c 100644 --- a/types/three/examples/jsm/geometries/BoxLineGeometry.d.ts +++ b/types/three/examples/jsm/geometries/BoxLineGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; export class BoxLineGeometry extends BufferGeometry { constructor( diff --git a/types/three/examples/jsm/geometries/ConvexGeometry.d.ts b/types/three/examples/jsm/geometries/ConvexGeometry.d.ts index d0cc07b0a..548116003 100644 --- a/types/three/examples/jsm/geometries/ConvexGeometry.d.ts +++ b/types/three/examples/jsm/geometries/ConvexGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Vector3 } from '../../../src/Three.js'; +import { BufferGeometry, Vector3 } from "../../../src/Three.js"; export class ConvexGeometry extends BufferGeometry { constructor(points?: Vector3[]); diff --git a/types/three/examples/jsm/geometries/DecalGeometry.d.ts b/types/three/examples/jsm/geometries/DecalGeometry.d.ts index 6a6fcd2ab..18b5c1e56 100644 --- a/types/three/examples/jsm/geometries/DecalGeometry.d.ts +++ b/types/three/examples/jsm/geometries/DecalGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Euler, Mesh, Vector3 } from '../../../src/Three.js'; +import { BufferGeometry, Euler, Mesh, Vector3 } from "../../../src/Three.js"; export class DecalGeometry extends BufferGeometry { constructor(mesh: Mesh, position: Vector3, orientation: Euler, size: Vector3); diff --git a/types/three/examples/jsm/geometries/ParametricGeometries.d.ts b/types/three/examples/jsm/geometries/ParametricGeometries.d.ts index 8723137db..99d85e458 100644 --- a/types/three/examples/jsm/geometries/ParametricGeometries.d.ts +++ b/types/three/examples/jsm/geometries/ParametricGeometries.d.ts @@ -1,6 +1,6 @@ -import { Curve, Vector3 } from '../../../src/Three.js'; +import { Curve, Vector3 } from "../../../src/Three.js"; -import { ParametricGeometry } from './ParametricGeometry.js'; +import { ParametricGeometry } from "./ParametricGeometry.js"; export namespace ParametricGeometries { function klein(v: number, u: number, target: Vector3): Vector3; diff --git a/types/three/examples/jsm/geometries/ParametricGeometry.d.ts b/types/three/examples/jsm/geometries/ParametricGeometry.d.ts index 11db788f9..f11de346f 100644 --- a/types/three/examples/jsm/geometries/ParametricGeometry.d.ts +++ b/types/three/examples/jsm/geometries/ParametricGeometry.d.ts @@ -1,4 +1,4 @@ -import { Vector3, BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry, Vector3 } from "../../../src/Three.js"; export class ParametricGeometry extends BufferGeometry { constructor(func?: (u: number, v: number, target: Vector3) => void, slices?: number, stacks?: number); diff --git a/types/three/examples/jsm/geometries/RoundedBoxGeometry.d.ts b/types/three/examples/jsm/geometries/RoundedBoxGeometry.d.ts index c5d4b5f5f..68b8c2d40 100644 --- a/types/three/examples/jsm/geometries/RoundedBoxGeometry.d.ts +++ b/types/three/examples/jsm/geometries/RoundedBoxGeometry.d.ts @@ -1,4 +1,4 @@ -import { BoxGeometry } from '../../../src/Three.js'; +import { BoxGeometry } from "../../../src/Three.js"; export class RoundedBoxGeometry extends BoxGeometry { constructor(width?: number, height?: number, depth?: number, segments?: number, radius?: number); diff --git a/types/three/examples/jsm/geometries/SDFGeometryGenerator.d.ts b/types/three/examples/jsm/geometries/SDFGeometryGenerator.d.ts index c1a58a0ab..5447dd64c 100644 --- a/types/three/examples/jsm/geometries/SDFGeometryGenerator.d.ts +++ b/types/three/examples/jsm/geometries/SDFGeometryGenerator.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three.js'; +import { BufferGeometry, WebGLRenderer, WebGLRenderTarget } from "../../../src/Three.js"; export class SDFGeometryGenerator { constructor(renderer: WebGLRenderer); diff --git a/types/three/examples/jsm/geometries/TeapotGeometry.d.ts b/types/three/examples/jsm/geometries/TeapotGeometry.d.ts index 1c80c71ec..12ece9062 100644 --- a/types/three/examples/jsm/geometries/TeapotGeometry.d.ts +++ b/types/three/examples/jsm/geometries/TeapotGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; export class TeapotGeometry extends BufferGeometry { constructor( diff --git a/types/three/examples/jsm/geometries/TextGeometry.d.ts b/types/three/examples/jsm/geometries/TextGeometry.d.ts index c5937daec..13c3efbc2 100644 --- a/types/three/examples/jsm/geometries/TextGeometry.d.ts +++ b/types/three/examples/jsm/geometries/TextGeometry.d.ts @@ -1,6 +1,6 @@ -import { ExtrudeGeometry, ExtrudeGeometryOptions, Shape } from '../../../src/Three.js'; +import { ExtrudeGeometry, ExtrudeGeometryOptions, Shape } from "../../../src/Three.js"; -import { Font } from '../loaders/FontLoader.js'; +import { Font } from "../loaders/FontLoader.js"; export interface TextGeometryParameters extends ExtrudeGeometryOptions { font: Font; @@ -100,7 +100,7 @@ export class TextGeometry extends ExtrudeGeometry { * @remarks Sub-classes will update this value. * @defaultValue `TextGeometry` */ - override readonly type: string | 'TextGeometry'; + override readonly type: string | "TextGeometry"; /** * An object with a property for each of the constructor parameters. diff --git a/types/three/examples/jsm/helpers/LightProbeHelper.d.ts b/types/three/examples/jsm/helpers/LightProbeHelper.d.ts index 26ed8067c..4777651b1 100644 --- a/types/three/examples/jsm/helpers/LightProbeHelper.d.ts +++ b/types/three/examples/jsm/helpers/LightProbeHelper.d.ts @@ -1,4 +1,4 @@ -import { LightProbe, Mesh } from '../../../src/Three.js'; +import { LightProbe, Mesh } from "../../../src/Three.js"; export class LightProbeHelper extends Mesh { constructor(lightProbe: LightProbe, size: number); diff --git a/types/three/examples/jsm/helpers/OctreeHelper.d.ts b/types/three/examples/jsm/helpers/OctreeHelper.d.ts index dbb797db0..d90004a60 100644 --- a/types/three/examples/jsm/helpers/OctreeHelper.d.ts +++ b/types/three/examples/jsm/helpers/OctreeHelper.d.ts @@ -1,5 +1,5 @@ -import { ColorRepresentation, LineSegments } from '../../../src/Three.js'; -import { Octree } from '../math/Octree.js'; +import { ColorRepresentation, LineSegments } from "../../../src/Three.js"; +import { Octree } from "../math/Octree.js"; export class OctreeHelper extends LineSegments { constructor(octree: Octree, color?: ColorRepresentation); @@ -10,7 +10,7 @@ export class OctreeHelper extends LineSegments { /** * @default 'OctreeHelper' */ - type: 'OctreeHelper' | string; + type: "OctreeHelper" | string; update(): void; dispose(): void; diff --git a/types/three/examples/jsm/helpers/PositionalAudioHelper.d.ts b/types/three/examples/jsm/helpers/PositionalAudioHelper.d.ts index d5caf8783..07e1fcf9c 100644 --- a/types/three/examples/jsm/helpers/PositionalAudioHelper.d.ts +++ b/types/three/examples/jsm/helpers/PositionalAudioHelper.d.ts @@ -1,4 +1,4 @@ -import { Line, PositionalAudio } from '../../../src/Three.js'; +import { Line, PositionalAudio } from "../../../src/Three.js"; export class PositionalAudioHelper extends Line { constructor(audio: PositionalAudio, range?: number, divisionsInnerAngle?: number, divisionsOuterAngle?: number); diff --git a/types/three/examples/jsm/helpers/RectAreaLightHelper.d.ts b/types/three/examples/jsm/helpers/RectAreaLightHelper.d.ts index 4ba493c3b..941421fdc 100644 --- a/types/three/examples/jsm/helpers/RectAreaLightHelper.d.ts +++ b/types/three/examples/jsm/helpers/RectAreaLightHelper.d.ts @@ -1,4 +1,4 @@ -import { Line, RectAreaLight, ColorRepresentation } from '../../../src/Three.js'; +import { ColorRepresentation, Line, RectAreaLight } from "../../../src/Three.js"; export class RectAreaLightHelper extends Line { constructor(light: RectAreaLight, color?: ColorRepresentation); diff --git a/types/three/examples/jsm/helpers/TextureHelper.d.ts b/types/three/examples/jsm/helpers/TextureHelper.d.ts index ba0c9fb53..51b7d62d2 100644 --- a/types/three/examples/jsm/helpers/TextureHelper.d.ts +++ b/types/three/examples/jsm/helpers/TextureHelper.d.ts @@ -1,8 +1,8 @@ -import { Mesh, Texture } from '../../../src/Three.js'; +import { Mesh, Texture } from "../../../src/Three.js"; export class TextureHelper extends Mesh { texture: Texture; - type: 'TextureHelper'; + type: "TextureHelper"; constructor(texture: Texture, width?: number, height?: number, depth?: number); diff --git a/types/three/examples/jsm/helpers/VertexNormalsHelper.d.ts b/types/three/examples/jsm/helpers/VertexNormalsHelper.d.ts index e929f98f5..b93b4ec5d 100644 --- a/types/three/examples/jsm/helpers/VertexNormalsHelper.d.ts +++ b/types/three/examples/jsm/helpers/VertexNormalsHelper.d.ts @@ -1,4 +1,4 @@ -import { Object3D, LineSegments } from '../../../src/Three.js'; +import { LineSegments, Object3D } from "../../../src/Three.js"; export class VertexNormalsHelper extends LineSegments { constructor(object: Object3D, size?: number, hex?: number); diff --git a/types/three/examples/jsm/helpers/VertexTangentsHelper.d.ts b/types/three/examples/jsm/helpers/VertexTangentsHelper.d.ts index 6358bae4a..d227b6fda 100644 --- a/types/three/examples/jsm/helpers/VertexTangentsHelper.d.ts +++ b/types/three/examples/jsm/helpers/VertexTangentsHelper.d.ts @@ -1,4 +1,4 @@ -import { Object3D, LineSegments } from '../../../src/Three.js'; +import { LineSegments, Object3D } from "../../../src/Three.js"; export class VertexTangentsHelper extends LineSegments { constructor(object: Object3D, size?: number, hex?: number); diff --git a/types/three/examples/jsm/helpers/ViewHelper.d.ts b/types/three/examples/jsm/helpers/ViewHelper.d.ts index b2d2363b8..b59e64037 100644 --- a/types/three/examples/jsm/helpers/ViewHelper.d.ts +++ b/types/three/examples/jsm/helpers/ViewHelper.d.ts @@ -1,4 +1,4 @@ -import { Camera, Object3D, Vector3, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Object3D, Vector3, WebGLRenderer } from "../../../src/Three.js"; export class ViewHelper extends Object3D { animating: boolean; diff --git a/types/three/examples/jsm/interactive/HTMLMesh.d.ts b/types/three/examples/jsm/interactive/HTMLMesh.d.ts index 60d6759fc..c829b71a3 100644 --- a/types/three/examples/jsm/interactive/HTMLMesh.d.ts +++ b/types/three/examples/jsm/interactive/HTMLMesh.d.ts @@ -1,4 +1,4 @@ -import { Mesh, MeshBasicMaterial, PlaneGeometry } from 'three'; +import { Mesh, MeshBasicMaterial, PlaneGeometry } from "three"; export class HTMLMesh extends Mesh { constructor(dom: HTMLElement); diff --git a/types/three/examples/jsm/interactive/InteractiveGroup.d.ts b/types/three/examples/jsm/interactive/InteractiveGroup.d.ts index 5a92f14ce..f576e6aa7 100644 --- a/types/three/examples/jsm/interactive/InteractiveGroup.d.ts +++ b/types/three/examples/jsm/interactive/InteractiveGroup.d.ts @@ -1,4 +1,4 @@ -import { Camera, Group, Object3D, Object3DEventMap, Vector2, WebGLRenderer } from '../../../src/Three.js'; +import { Camera, Group, Object3D, Object3DEventMap, Vector2, WebGLRenderer } from "../../../src/Three.js"; export interface InteractiveObject3DEventMap extends Object3DEventMap { hoveron: { data: Vector2 }; diff --git a/types/three/examples/jsm/interactive/SelectionBox.d.ts b/types/three/examples/jsm/interactive/SelectionBox.d.ts index dc6a68e58..1c697755c 100644 --- a/types/three/examples/jsm/interactive/SelectionBox.d.ts +++ b/types/three/examples/jsm/interactive/SelectionBox.d.ts @@ -1,4 +1,4 @@ -import { Camera, Frustum, Mesh, Object3D, Scene, Vector3 } from '../../../src/Three.js'; +import { Camera, Frustum, Mesh, Object3D, Scene, Vector3 } from "../../../src/Three.js"; export class SelectionBox { constructor(camera: Camera, scene: Scene, deep?: number); diff --git a/types/three/examples/jsm/interactive/SelectionHelper.d.ts b/types/three/examples/jsm/interactive/SelectionHelper.d.ts index 132942ba6..db3f88007 100644 --- a/types/three/examples/jsm/interactive/SelectionHelper.d.ts +++ b/types/three/examples/jsm/interactive/SelectionHelper.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer, Vector2 } from '../../../src/Three.js'; +import { Vector2, WebGLRenderer } from "../../../src/Three.js"; export class SelectionHelper { constructor(renderer: WebGLRenderer, cssClassName: string); diff --git a/types/three/examples/jsm/libs/fflate.module.d.ts b/types/three/examples/jsm/libs/fflate.module.d.ts index 3b79d2b0c..e85d31ecb 100644 --- a/types/three/examples/jsm/libs/fflate.module.d.ts +++ b/types/three/examples/jsm/libs/fflate.module.d.ts @@ -1 +1 @@ -export * from 'fflate'; +export * from "fflate"; diff --git a/types/three/examples/jsm/libs/lil-gui.module.min.d.ts b/types/three/examples/jsm/libs/lil-gui.module.min.d.ts index e7d4f4557..39cb3846f 100644 --- a/types/three/examples/jsm/libs/lil-gui.module.min.d.ts +++ b/types/three/examples/jsm/libs/lil-gui.module.min.d.ts @@ -31,7 +31,6 @@ export class GUI { * * @param [options.parent] * Adds this GUI as a child in another GUI. Usually this is done for you by `addFolder()`. - * */ constructor({ parent, @@ -288,34 +287,34 @@ export class ColorController, K extends keyof T = ke $display: HTMLDivElement; _format: | { - isPrimitive: boolean; - match: (v: unknown) => boolean; - fromHexString: typeof normalizeColorString; - toHexString: typeof normalizeColorString; - } + isPrimitive: boolean; + match: (v: unknown) => boolean; + fromHexString: typeof normalizeColorString; + toHexString: typeof normalizeColorString; + } | { - isPrimitive: boolean; - match: (arg: unknown) => arg is unknown[]; - fromHexString(string: unknown, target: unknown, rgbScale?: number): void; - toHexString([r, g, b]: [unknown, unknown, unknown], rgbScale?: number): string; - } + isPrimitive: boolean; + match: (arg: unknown) => arg is unknown[]; + fromHexString(string: unknown, target: unknown, rgbScale?: number): void; + toHexString([r, g, b]: [unknown, unknown, unknown], rgbScale?: number): string; + } | { - isPrimitive: boolean; - match: (v: unknown) => boolean; - fromHexString(string: unknown, target: unknown, rgbScale?: number): void; - toHexString( - { - r, - g, - b, - }: { - r: unknown; - g: unknown; - b: unknown; - }, - rgbScale?: number, - ): string; - }; + isPrimitive: boolean; + match: (v: unknown) => boolean; + fromHexString(string: unknown, target: unknown, rgbScale?: number): void; + toHexString( + { + r, + g, + b, + }: { + r: unknown; + g: unknown; + b: unknown; + }, + rgbScale?: number, + ): string; + }; _rgbScale: number; _initialValueHexString: string | boolean; _textFocused: boolean; diff --git a/types/three/examples/jsm/libs/meshopt_decoder.module.d.ts b/types/three/examples/jsm/libs/meshopt_decoder.module.d.ts index 1ff78ac19..2b15567e1 100644 --- a/types/three/examples/jsm/libs/meshopt_decoder.module.d.ts +++ b/types/three/examples/jsm/libs/meshopt_decoder.module.d.ts @@ -1 +1 @@ -export * from 'meshoptimizer/meshopt_decoder.module.js'; +export * from "meshoptimizer/meshopt_decoder.module.js"; diff --git a/types/three/examples/jsm/libs/stats.module.d.ts b/types/three/examples/jsm/libs/stats.module.d.ts index 142cb70cc..940f4c2e9 100644 --- a/types/three/examples/jsm/libs/stats.module.d.ts +++ b/types/three/examples/jsm/libs/stats.module.d.ts @@ -1,3 +1,3 @@ -import Stats = require('stats.js'); +import Stats = require("stats.js"); export default Stats; diff --git a/types/three/examples/jsm/libs/tween.module.d.ts b/types/three/examples/jsm/libs/tween.module.d.ts index 4cdba4ba5..b7de1a544 100644 --- a/types/three/examples/jsm/libs/tween.module.d.ts +++ b/types/three/examples/jsm/libs/tween.module.d.ts @@ -149,7 +149,7 @@ declare class Sequence { static nextId(): number; } -declare const VERSION = '21.0.0'; +declare const VERSION = "21.0.0"; declare const nextId: typeof Sequence.nextId; declare function getAll(): Array>; @@ -202,18 +202,18 @@ declare const exports: { }; export { - Easing, - Group, - Interpolation, - Sequence, - Tween, - VERSION, add, + Easing, exports as default, getAll, + Group, + Interpolation, nextId, now, remove, removeAll, + Sequence, + Tween, update, + VERSION, }; diff --git a/types/three/examples/jsm/lights/IESSpotLight.d.ts b/types/three/examples/jsm/lights/IESSpotLight.d.ts index 0b9cf7e62..15fb55ab7 100644 --- a/types/three/examples/jsm/lights/IESSpotLight.d.ts +++ b/types/three/examples/jsm/lights/IESSpotLight.d.ts @@ -1,4 +1,4 @@ -import { SpotLight, Texture } from 'three'; +import { SpotLight, Texture } from "three"; export default class IESSpotLight extends SpotLight { iesMap: Texture | null; diff --git a/types/three/examples/jsm/lights/LightProbeGenerator.d.ts b/types/three/examples/jsm/lights/LightProbeGenerator.d.ts index 224766504..a9c646b73 100644 --- a/types/three/examples/jsm/lights/LightProbeGenerator.d.ts +++ b/types/three/examples/jsm/lights/LightProbeGenerator.d.ts @@ -1,4 +1,4 @@ -import { CubeTexture, LightProbe, WebGLRenderer, WebGLCubeRenderTarget } from '../../../src/Three.js'; +import { CubeTexture, LightProbe, WebGLCubeRenderTarget, WebGLRenderer } from "../../../src/Three.js"; export namespace LightProbeGenerator { function fromCubeTexture(cubeTexture: CubeTexture): LightProbe; diff --git a/types/three/examples/jsm/lines/Line2.d.ts b/types/three/examples/jsm/lines/Line2.d.ts index d3a0aaee9..2e60c6664 100644 --- a/types/three/examples/jsm/lines/Line2.d.ts +++ b/types/three/examples/jsm/lines/Line2.d.ts @@ -1,6 +1,6 @@ -import { LineGeometry } from './LineGeometry.js'; -import { LineSegments2 } from './LineSegments2.js'; -import { LineMaterial } from './LineMaterial.js'; +import { LineGeometry } from "./LineGeometry.js"; +import { LineMaterial } from "./LineMaterial.js"; +import { LineSegments2 } from "./LineSegments2.js"; export class Line2 extends LineSegments2 { geometry: LineGeometry; diff --git a/types/three/examples/jsm/lines/LineGeometry.d.ts b/types/three/examples/jsm/lines/LineGeometry.d.ts index ce4dcd95f..60d0d9841 100644 --- a/types/three/examples/jsm/lines/LineGeometry.d.ts +++ b/types/three/examples/jsm/lines/LineGeometry.d.ts @@ -1,6 +1,6 @@ -import { Line } from '../../../src/Three.js'; +import { Line } from "../../../src/Three.js"; -import { LineSegmentsGeometry } from './LineSegmentsGeometry.js'; +import { LineSegmentsGeometry } from "./LineSegmentsGeometry.js"; export class LineGeometry extends LineSegmentsGeometry { constructor(); diff --git a/types/three/examples/jsm/lines/LineMaterial.d.ts b/types/three/examples/jsm/lines/LineMaterial.d.ts index 135178462..c2728d99a 100644 --- a/types/three/examples/jsm/lines/LineMaterial.d.ts +++ b/types/three/examples/jsm/lines/LineMaterial.d.ts @@ -1,4 +1,4 @@ -import { Color, ColorRepresentation, MaterialParameters, ShaderMaterial, Vector2 } from '../../../src/Three.js'; +import { Color, ColorRepresentation, MaterialParameters, ShaderMaterial, Vector2 } from "../../../src/Three.js"; export interface LineMaterialParameters extends MaterialParameters { alphaToCoverage?: boolean | undefined; diff --git a/types/three/examples/jsm/lines/LineSegments2.d.ts b/types/three/examples/jsm/lines/LineSegments2.d.ts index 29928d28a..231950386 100644 --- a/types/three/examples/jsm/lines/LineSegments2.d.ts +++ b/types/three/examples/jsm/lines/LineSegments2.d.ts @@ -1,7 +1,7 @@ -import { Mesh } from '../../../src/Three.js'; +import { Mesh } from "../../../src/Three.js"; -import { LineMaterial } from './LineMaterial.js'; -import { LineSegmentsGeometry } from './LineSegmentsGeometry.js'; +import { LineMaterial } from "./LineMaterial.js"; +import { LineSegmentsGeometry } from "./LineSegmentsGeometry.js"; export class LineSegments2 extends Mesh { geometry: LineSegmentsGeometry; diff --git a/types/three/examples/jsm/lines/LineSegmentsGeometry.d.ts b/types/three/examples/jsm/lines/LineSegmentsGeometry.d.ts index 440f9757c..0730608cf 100644 --- a/types/three/examples/jsm/lines/LineSegmentsGeometry.d.ts +++ b/types/three/examples/jsm/lines/LineSegmentsGeometry.d.ts @@ -5,7 +5,7 @@ import { Matrix4, Mesh, WireframeGeometry, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export class LineSegmentsGeometry extends InstancedBufferGeometry { constructor(); diff --git a/types/three/examples/jsm/lines/Wireframe.d.ts b/types/three/examples/jsm/lines/Wireframe.d.ts index b008d8f8e..96bd9b590 100644 --- a/types/three/examples/jsm/lines/Wireframe.d.ts +++ b/types/three/examples/jsm/lines/Wireframe.d.ts @@ -1,7 +1,7 @@ -import { Mesh } from '../../../src/Three.js'; +import { Mesh } from "../../../src/Three.js"; -import { LineMaterial } from './LineMaterial.js'; -import { LineSegmentsGeometry } from './LineSegmentsGeometry.js'; +import { LineMaterial } from "./LineMaterial.js"; +import { LineSegmentsGeometry } from "./LineSegmentsGeometry.js"; export class Wireframe extends Mesh { constructor(geometry?: LineSegmentsGeometry, material?: LineMaterial); diff --git a/types/three/examples/jsm/lines/WireframeGeometry2.d.ts b/types/three/examples/jsm/lines/WireframeGeometry2.d.ts index b8851e421..6f03912a6 100644 --- a/types/three/examples/jsm/lines/WireframeGeometry2.d.ts +++ b/types/three/examples/jsm/lines/WireframeGeometry2.d.ts @@ -1,6 +1,6 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; -import { LineSegmentsGeometry } from './LineSegmentsGeometry.js'; +import { LineSegmentsGeometry } from "./LineSegmentsGeometry.js"; export class WireframeGeometry2 extends LineSegmentsGeometry { constructor(geometry: BufferGeometry); diff --git a/types/three/examples/jsm/loaders/3DMLoader.d.ts b/types/three/examples/jsm/loaders/3DMLoader.d.ts index 13eac0e92..4cc691f44 100644 --- a/types/three/examples/jsm/loaders/3DMLoader.d.ts +++ b/types/three/examples/jsm/loaders/3DMLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Object3D } from '../../../src/Three.js'; +import { Loader, LoadingManager, Object3D } from "../../../src/Three.js"; export class Rhino3dmLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/3MFLoader.d.ts b/types/three/examples/jsm/loaders/3MFLoader.d.ts index 6cf8fd623..784c12389 100644 --- a/types/three/examples/jsm/loaders/3MFLoader.d.ts +++ b/types/three/examples/jsm/loaders/3MFLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Group } from '../../../src/Three.js'; +import { Group, Loader, LoadingManager } from "../../../src/Three.js"; export class ThreeMFLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/AMFLoader.d.ts b/types/three/examples/jsm/loaders/AMFLoader.d.ts index b2b6e4bb0..f72009cf1 100644 --- a/types/three/examples/jsm/loaders/AMFLoader.d.ts +++ b/types/three/examples/jsm/loaders/AMFLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Group } from '../../../src/Three.js'; +import { Group, Loader, LoadingManager } from "../../../src/Three.js"; export class AMFLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/BVHLoader.d.ts b/types/three/examples/jsm/loaders/BVHLoader.d.ts index 9247a802f..12aa133e6 100644 --- a/types/three/examples/jsm/loaders/BVHLoader.d.ts +++ b/types/three/examples/jsm/loaders/BVHLoader.d.ts @@ -1,4 +1,4 @@ -import { AnimationClip, Skeleton, Loader, LoadingManager } from '../../../src/Three.js'; +import { AnimationClip, Loader, LoadingManager, Skeleton } from "../../../src/Three.js"; export interface BVH { clip: AnimationClip; diff --git a/types/three/examples/jsm/loaders/ColladaLoader.d.ts b/types/three/examples/jsm/loaders/ColladaLoader.d.ts index 39fe99a7b..f4b5e0682 100644 --- a/types/three/examples/jsm/loaders/ColladaLoader.d.ts +++ b/types/three/examples/jsm/loaders/ColladaLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, Scene } from '../../../src/Three.js'; +import { Loader, Scene } from "../../../src/Three.js"; export interface Collada { kinematics: object; diff --git a/types/three/examples/jsm/loaders/DDSLoader.d.ts b/types/three/examples/jsm/loaders/DDSLoader.d.ts index 428456bb4..133efad8b 100644 --- a/types/three/examples/jsm/loaders/DDSLoader.d.ts +++ b/types/three/examples/jsm/loaders/DDSLoader.d.ts @@ -1,4 +1,4 @@ -import { LoadingManager, CompressedTextureLoader, PixelFormat, CompressedPixelFormat } from '../../../src/Three.js'; +import { CompressedPixelFormat, CompressedTextureLoader, LoadingManager, PixelFormat } from "../../../src/Three.js"; export interface DDS { mipmaps: object[]; diff --git a/types/three/examples/jsm/loaders/DRACOLoader.d.ts b/types/three/examples/jsm/loaders/DRACOLoader.d.ts index 0ff4c3bdd..8969c10ec 100644 --- a/types/three/examples/jsm/loaders/DRACOLoader.d.ts +++ b/types/three/examples/jsm/loaders/DRACOLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export class DRACOLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/EXRLoader.d.ts b/types/three/examples/jsm/loaders/EXRLoader.d.ts index 31a0869d1..912031ed5 100644 --- a/types/three/examples/jsm/loaders/EXRLoader.d.ts +++ b/types/three/examples/jsm/loaders/EXRLoader.d.ts @@ -4,7 +4,7 @@ import { PixelFormat, TextureDataType, TextureEncoding, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface EXR { header: object; diff --git a/types/three/examples/jsm/loaders/FBXLoader.d.ts b/types/three/examples/jsm/loaders/FBXLoader.d.ts index 47c4db364..c39e65561 100644 --- a/types/three/examples/jsm/loaders/FBXLoader.d.ts +++ b/types/three/examples/jsm/loaders/FBXLoader.d.ts @@ -1,4 +1,4 @@ -import { Group, Loader, LoadingManager } from '../../../src/Three.js'; +import { Group, Loader, LoadingManager } from "../../../src/Three.js"; export class FBXLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/FontLoader.d.ts b/types/three/examples/jsm/loaders/FontLoader.d.ts index d543d40aa..544c585f0 100644 --- a/types/three/examples/jsm/loaders/FontLoader.d.ts +++ b/types/three/examples/jsm/loaders/FontLoader.d.ts @@ -1,4 +1,4 @@ -import { Shape, Loader, LoadingManager } from '../../../src/Three.js'; +import { Loader, LoadingManager, Shape } from "../../../src/Three.js"; export class FontLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/GCodeLoader.d.ts b/types/three/examples/jsm/loaders/GCodeLoader.d.ts index 0b0388c08..674e16922 100644 --- a/types/three/examples/jsm/loaders/GCodeLoader.d.ts +++ b/types/three/examples/jsm/loaders/GCodeLoader.d.ts @@ -1,4 +1,4 @@ -import { Group, Loader, LoadingManager } from '../../../src/Three.js'; +import { Group, Loader, LoadingManager } from "../../../src/Three.js"; export class GCodeLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/GLTFLoader.d.ts b/types/three/examples/jsm/loaders/GLTFLoader.d.ts index c60f0a864..bcf1f4445 100644 --- a/types/three/examples/jsm/loaders/GLTFLoader.d.ts +++ b/types/three/examples/jsm/loaders/GLTFLoader.d.ts @@ -3,24 +3,24 @@ import { BufferAttribute, BufferGeometry, Camera, + FileLoader, Group, + ImageBitmapLoader, InterleavedBufferAttribute, Loader, LoadingManager, + Material, Mesh, MeshStandardMaterial, Object3D, - Material, + Skeleton, SkinnedMesh, Texture, TextureLoader, - FileLoader, - ImageBitmapLoader, - Skeleton, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { DRACOLoader } from './DRACOLoader.js'; -import { KTX2Loader } from './KTX2Loader.js'; +import { DRACOLoader } from "./DRACOLoader.js"; +import { KTX2Loader } from "./KTX2Loader.js"; export interface GLTF { animations: AnimationClip[]; @@ -61,7 +61,7 @@ export class GLTFLoader extends Loader { parseAsync(data: ArrayBuffer | string, path: string): Promise; } -export type GLTFReferenceType = 'materials' | 'nodes' | 'textures' | 'meshes'; +export type GLTFReferenceType = "materials" | "nodes" | "textures" | "meshes"; export interface GLTFReference { materials?: number; diff --git a/types/three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts b/types/three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts index 7b1ac8eab..f43264100 100644 --- a/types/three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts +++ b/types/three/examples/jsm/loaders/HDRCubeTextureLoader.d.ts @@ -1,6 +1,6 @@ -import { CubeTexture, Loader, LoadingManager, TextureDataType } from '../../../src/Three.js'; +import { CubeTexture, Loader, LoadingManager, TextureDataType } from "../../../src/Three.js"; -import { RGBELoader } from './RGBELoader.js'; +import { RGBELoader } from "./RGBELoader.js"; export class HDRCubeTextureLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/IESLoader.d.ts b/types/three/examples/jsm/loaders/IESLoader.d.ts index c60d7980c..9e4f1a869 100644 --- a/types/three/examples/jsm/loaders/IESLoader.d.ts +++ b/types/three/examples/jsm/loaders/IESLoader.d.ts @@ -1,4 +1,4 @@ -import { DataTexture, Loader } from 'three'; +import { DataTexture, Loader } from "three"; export class IESLoader extends Loader { parse(text: string): DataTexture; diff --git a/types/three/examples/jsm/loaders/KMZLoader.d.ts b/types/three/examples/jsm/loaders/KMZLoader.d.ts index be87bbba8..efe2bfe7f 100644 --- a/types/three/examples/jsm/loaders/KMZLoader.d.ts +++ b/types/three/examples/jsm/loaders/KMZLoader.d.ts @@ -1,6 +1,6 @@ -import { Loader, LoadingManager } from '../../../src/Three.js'; +import { Loader, LoadingManager } from "../../../src/Three.js"; -import { Collada } from './ColladaLoader.js'; +import { Collada } from "./ColladaLoader.js"; export class KMZLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/KTX2Loader.d.ts b/types/three/examples/jsm/loaders/KTX2Loader.d.ts index 7cccd160a..757703483 100644 --- a/types/three/examples/jsm/loaders/KTX2Loader.d.ts +++ b/types/three/examples/jsm/loaders/KTX2Loader.d.ts @@ -1,7 +1,7 @@ -import { LoadingManager, Loader, CompressedTexture, WebGLRenderer } from '../../../src/Three.js'; -import WebGPURenderer from '../renderers/webgpu/WebGPURenderer.js'; -import Renderer from '../renderers/common/Renderer.js'; -import { WorkerPool } from '../utils/WorkerPool.js'; +import { CompressedTexture, Loader, LoadingManager, WebGLRenderer } from "../../../src/Three.js"; +import Renderer from "../renderers/common/Renderer.js"; +import WebGPURenderer from "../renderers/webgpu/WebGPURenderer.js"; +import { WorkerPool } from "../utils/WorkerPool.js"; export interface KTX2LoaderWorkerConfig { astcSupported: boolean; diff --git a/types/three/examples/jsm/loaders/KTXLoader.d.ts b/types/three/examples/jsm/loaders/KTXLoader.d.ts index 2c2bc4351..73297d608 100644 --- a/types/three/examples/jsm/loaders/KTXLoader.d.ts +++ b/types/three/examples/jsm/loaders/KTXLoader.d.ts @@ -1,4 +1,4 @@ -import { LoadingManager, CompressedTextureLoader, PixelFormat, CompressedPixelFormat } from '../../../src/Three.js'; +import { CompressedPixelFormat, CompressedTextureLoader, LoadingManager, PixelFormat } from "../../../src/Three.js"; export interface KTX { mipmaps: object[]; diff --git a/types/three/examples/jsm/loaders/LDrawLoader.d.ts b/types/three/examples/jsm/loaders/LDrawLoader.d.ts index 178f08c5c..96514a5f2 100644 --- a/types/three/examples/jsm/loaders/LDrawLoader.d.ts +++ b/types/three/examples/jsm/loaders/LDrawLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Group, Material } from '../../../src/Three.js'; +import { Group, Loader, LoadingManager, Material } from "../../../src/Three.js"; export class LDrawLoader extends Loader { materials: Material[]; diff --git a/types/three/examples/jsm/loaders/LUT3dlLoader.d.ts b/types/three/examples/jsm/loaders/LUT3dlLoader.d.ts index a18bd17c8..3a4d8610f 100644 --- a/types/three/examples/jsm/loaders/LUT3dlLoader.d.ts +++ b/types/three/examples/jsm/loaders/LUT3dlLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, DataTexture, Data3DTexture, UnsignedByteType, FloatType } from '../../../src/Three.js'; +import { Data3DTexture, DataTexture, FloatType, Loader, LoadingManager, UnsignedByteType } from "../../../src/Three.js"; export interface LUT3dlResult { size: number; diff --git a/types/three/examples/jsm/loaders/LUTCubeLoader.d.ts b/types/three/examples/jsm/loaders/LUTCubeLoader.d.ts index 4de5deb96..5fac63e22 100644 --- a/types/three/examples/jsm/loaders/LUTCubeLoader.d.ts +++ b/types/three/examples/jsm/loaders/LUTCubeLoader.d.ts @@ -1,12 +1,12 @@ import { + Data3DTexture, + DataTexture, + FloatType, Loader, LoadingManager, - Vector3, - DataTexture, - Data3DTexture, UnsignedByteType, - FloatType, -} from '../../../src/Three.js'; + Vector3, +} from "../../../src/Three.js"; export interface LUTCubeResult { title: string; diff --git a/types/three/examples/jsm/loaders/LWOLoader.d.ts b/types/three/examples/jsm/loaders/LWOLoader.d.ts index 2898488cb..870c615d5 100644 --- a/types/three/examples/jsm/loaders/LWOLoader.d.ts +++ b/types/three/examples/jsm/loaders/LWOLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Material, Object3D } from '../../../src/Three.js'; +import { Loader, LoadingManager, Material, Object3D } from "../../../src/Three.js"; export interface LWO { materials: Material[]; diff --git a/types/three/examples/jsm/loaders/LogLuvLoader.d.ts b/types/three/examples/jsm/loaders/LogLuvLoader.d.ts index 2b3b39bdd..8e74f775f 100644 --- a/types/three/examples/jsm/loaders/LogLuvLoader.d.ts +++ b/types/three/examples/jsm/loaders/LogLuvLoader.d.ts @@ -1,4 +1,4 @@ -import { DataTextureLoader, TextureDataType, LoadingManager, PixelFormat } from '../../../src/Three.js'; +import { DataTextureLoader, LoadingManager, PixelFormat, TextureDataType } from "../../../src/Three.js"; export interface LogLuv { width: number; diff --git a/types/three/examples/jsm/loaders/LottieLoader.d.ts b/types/three/examples/jsm/loaders/LottieLoader.d.ts index b3ff39db7..5c07f425d 100644 --- a/types/three/examples/jsm/loaders/LottieLoader.d.ts +++ b/types/three/examples/jsm/loaders/LottieLoader.d.ts @@ -1,4 +1,4 @@ -import { CanvasTexture, Loader, LoadingManager } from '../../../src/Three.js'; +import { CanvasTexture, Loader, LoadingManager } from "../../../src/Three.js"; export class LottieLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/MD2Loader.d.ts b/types/three/examples/jsm/loaders/MD2Loader.d.ts index 72077fc86..516e98f5b 100644 --- a/types/three/examples/jsm/loaders/MD2Loader.d.ts +++ b/types/three/examples/jsm/loaders/MD2Loader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export class MD2Loader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/MDDLoader.d.ts b/types/three/examples/jsm/loaders/MDDLoader.d.ts index 086d6c089..fabf00b3a 100644 --- a/types/three/examples/jsm/loaders/MDDLoader.d.ts +++ b/types/three/examples/jsm/loaders/MDDLoader.d.ts @@ -1,4 +1,4 @@ -import { AnimationClip, BufferAttribute, Loader, LoadingManager } from '../../../src/Three.js'; +import { AnimationClip, BufferAttribute, Loader, LoadingManager } from "../../../src/Three.js"; export interface MDD { morphTargets: BufferAttribute[]; diff --git a/types/three/examples/jsm/loaders/MMDLoader.d.ts b/types/three/examples/jsm/loaders/MMDLoader.d.ts index b57ac069a..8cbcea43d 100644 --- a/types/three/examples/jsm/loaders/MMDLoader.d.ts +++ b/types/three/examples/jsm/loaders/MMDLoader.d.ts @@ -1,4 +1,4 @@ -import { Camera, AnimationClip, FileLoader, Loader, LoadingManager, SkinnedMesh } from '../../../src/Three.js'; +import { AnimationClip, Camera, FileLoader, Loader, LoadingManager, SkinnedMesh } from "../../../src/Three.js"; export interface MMDLoaderAnimationObject { animation: AnimationClip; diff --git a/types/three/examples/jsm/loaders/MTLLoader.d.ts b/types/three/examples/jsm/loaders/MTLLoader.d.ts index 3b3c14a68..6adde7435 100644 --- a/types/three/examples/jsm/loaders/MTLLoader.d.ts +++ b/types/three/examples/jsm/loaders/MTLLoader.d.ts @@ -1,14 +1,14 @@ import { - Material, + BufferGeometry, + Loader, LoadingManager, Mapping, - Loader, - BufferGeometry, + Material, Side, Texture, Vector2, Wrapping, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface MaterialCreatorOptions { /** diff --git a/types/three/examples/jsm/loaders/MaterialXLoader.d.ts b/types/three/examples/jsm/loaders/MaterialXLoader.d.ts index 1ea077e2c..dc9502181 100644 --- a/types/three/examples/jsm/loaders/MaterialXLoader.d.ts +++ b/types/three/examples/jsm/loaders/MaterialXLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader, LoadingManager } from '../../../src/Three.js'; -import { MeshPhysicalNodeMaterial } from '../nodes/Nodes.js'; +import { Loader, LoadingManager } from "../../../src/Three.js"; +import { MeshPhysicalNodeMaterial } from "../nodes/Nodes.js"; export class MaterialXLoader extends Loader<{ materials: Record }> { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/NRRDLoader.d.ts b/types/three/examples/jsm/loaders/NRRDLoader.d.ts index c2923235c..624bf5de9 100644 --- a/types/three/examples/jsm/loaders/NRRDLoader.d.ts +++ b/types/three/examples/jsm/loaders/NRRDLoader.d.ts @@ -1,6 +1,6 @@ -import { Loader, LoadingManager } from '../../../src/Three.js'; +import { Loader, LoadingManager } from "../../../src/Three.js"; -import { Volume } from '../misc/Volume.js'; +import { Volume } from "../misc/Volume.js"; export class NRRDLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/OBJLoader.d.ts b/types/three/examples/jsm/loaders/OBJLoader.d.ts index 017220795..f25db21dc 100644 --- a/types/three/examples/jsm/loaders/OBJLoader.d.ts +++ b/types/three/examples/jsm/loaders/OBJLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader, LoadingManager, Group } from '../../../src/Three.js'; -import { MTLLoader } from './MTLLoader.js'; +import { Group, Loader, LoadingManager } from "../../../src/Three.js"; +import { MTLLoader } from "./MTLLoader.js"; export class OBJLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/PCDLoader.d.ts b/types/three/examples/jsm/loaders/PCDLoader.d.ts index dc2c009d6..803174dc4 100644 --- a/types/three/examples/jsm/loaders/PCDLoader.d.ts +++ b/types/three/examples/jsm/loaders/PCDLoader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager, Points, PointsMaterial } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager, Points, PointsMaterial } from "../../../src/Three.js"; export class PCDLoader extends Loader> { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/PDBLoader.d.ts b/types/three/examples/jsm/loaders/PDBLoader.d.ts index 8751eaac8..f9585e033 100644 --- a/types/three/examples/jsm/loaders/PDBLoader.d.ts +++ b/types/three/examples/jsm/loaders/PDBLoader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export interface PDB { geometryAtoms: BufferGeometry; diff --git a/types/three/examples/jsm/loaders/PLYLoader.d.ts b/types/three/examples/jsm/loaders/PLYLoader.d.ts index 37e02cd47..b5628630d 100644 --- a/types/three/examples/jsm/loaders/PLYLoader.d.ts +++ b/types/three/examples/jsm/loaders/PLYLoader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export class PLYLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/PVRLoader.d.ts b/types/three/examples/jsm/loaders/PVRLoader.d.ts index 66e553845..486aec6f7 100644 --- a/types/three/examples/jsm/loaders/PVRLoader.d.ts +++ b/types/three/examples/jsm/loaders/PVRLoader.d.ts @@ -1,4 +1,4 @@ -import { LoadingManager, CompressedTextureLoader, CompressedPixelFormat } from '../../../src/Three.js'; +import { CompressedPixelFormat, CompressedTextureLoader, LoadingManager } from "../../../src/Three.js"; export interface PVR { mipmaps: object[]; diff --git a/types/three/examples/jsm/loaders/RGBELoader.d.ts b/types/three/examples/jsm/loaders/RGBELoader.d.ts index 968b7ce7f..9caf33d12 100644 --- a/types/three/examples/jsm/loaders/RGBELoader.d.ts +++ b/types/three/examples/jsm/loaders/RGBELoader.d.ts @@ -1,4 +1,4 @@ -import { LoadingManager, DataTextureLoader, TextureDataType, PixelFormat } from '../../../src/Three.js'; +import { DataTextureLoader, LoadingManager, PixelFormat, TextureDataType } from "../../../src/Three.js"; export interface RGBE { width: number; diff --git a/types/three/examples/jsm/loaders/RGBMLoader.d.ts b/types/three/examples/jsm/loaders/RGBMLoader.d.ts index 2463d1155..f5d7cdb25 100644 --- a/types/three/examples/jsm/loaders/RGBMLoader.d.ts +++ b/types/three/examples/jsm/loaders/RGBMLoader.d.ts @@ -1,4 +1,4 @@ -import { CubeTexture, LoadingManager, DataTextureLoader, PixelFormat, TextureDataType } from '../../../src/Three.js'; +import { CubeTexture, DataTextureLoader, LoadingManager, PixelFormat, TextureDataType } from "../../../src/Three.js"; export interface RGBM { width: number; diff --git a/types/three/examples/jsm/loaders/STLLoader.d.ts b/types/three/examples/jsm/loaders/STLLoader.d.ts index 6cbe99825..0ed2d997d 100644 --- a/types/three/examples/jsm/loaders/STLLoader.d.ts +++ b/types/three/examples/jsm/loaders/STLLoader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export class STLLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/SVGLoader.d.ts b/types/three/examples/jsm/loaders/SVGLoader.d.ts index fb28592d5..a1503fe24 100644 --- a/types/three/examples/jsm/loaders/SVGLoader.d.ts +++ b/types/three/examples/jsm/loaders/SVGLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, ShapePath, BufferGeometry, Vector3, Shape, Vector2 } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager, Shape, ShapePath, Vector2, Vector3 } from "../../../src/Three.js"; export interface SVGResultPaths extends ShapePath { userData?: Record | undefined; diff --git a/types/three/examples/jsm/loaders/TDSLoader.d.ts b/types/three/examples/jsm/loaders/TDSLoader.d.ts index b104ff89c..2a2561590 100644 --- a/types/three/examples/jsm/loaders/TDSLoader.d.ts +++ b/types/three/examples/jsm/loaders/TDSLoader.d.ts @@ -1,4 +1,4 @@ -import { Color, Group, Loader, LoadingManager, Material, Mesh, Texture } from '../../../src/Three.js'; +import { Color, Group, Loader, LoadingManager, Material, Mesh, Texture } from "../../../src/Three.js"; export class TDSLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/TGALoader.d.ts b/types/three/examples/jsm/loaders/TGALoader.d.ts index 38c250209..b63ff5643 100644 --- a/types/three/examples/jsm/loaders/TGALoader.d.ts +++ b/types/three/examples/jsm/loaders/TGALoader.d.ts @@ -1,4 +1,4 @@ -import { DataTexture, DataTextureLoader, LoadingManager } from '../../../src/Three.js'; +import { DataTexture, DataTextureLoader, LoadingManager } from "../../../src/Three.js"; export class TGALoader extends DataTextureLoader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/TIFFLoader.d.ts b/types/three/examples/jsm/loaders/TIFFLoader.d.ts index a084a8b6c..d95e0ea51 100644 --- a/types/three/examples/jsm/loaders/TIFFLoader.d.ts +++ b/types/three/examples/jsm/loaders/TIFFLoader.d.ts @@ -1,4 +1,4 @@ -import { DataTextureLoader, TextureFilter, LoadingManager } from 'three'; +import { DataTextureLoader, LoadingManager, TextureFilter } from "three"; export interface TIFFResult { width: number; diff --git a/types/three/examples/jsm/loaders/TTFLoader.d.ts b/types/three/examples/jsm/loaders/TTFLoader.d.ts index ad1be6d7f..bd6bc3a88 100644 --- a/types/three/examples/jsm/loaders/TTFLoader.d.ts +++ b/types/three/examples/jsm/loaders/TTFLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager } from '../../../src/Three.js'; +import { Loader, LoadingManager } from "../../../src/Three.js"; export class TTFLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/TiltLoader.d.ts b/types/three/examples/jsm/loaders/TiltLoader.d.ts index 00900250a..41d1b9938 100644 --- a/types/three/examples/jsm/loaders/TiltLoader.d.ts +++ b/types/three/examples/jsm/loaders/TiltLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Group } from '../../../src/Three.js'; +import { Group, Loader, LoadingManager } from "../../../src/Three.js"; export class TiltLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/USDZLoader.d.ts b/types/three/examples/jsm/loaders/USDZLoader.d.ts index bd8adbcca..d59e36a30 100644 --- a/types/three/examples/jsm/loaders/USDZLoader.d.ts +++ b/types/three/examples/jsm/loaders/USDZLoader.d.ts @@ -1,4 +1,4 @@ -import { Loader, LoadingManager, Mesh } from '../../../src/Three.js'; +import { Loader, LoadingManager, Mesh } from "../../../src/Three.js"; export class USDAParser { parse(text: string): object; diff --git a/types/three/examples/jsm/loaders/VOXLoader.d.ts b/types/three/examples/jsm/loaders/VOXLoader.d.ts index 9f0ba50ae..577a0ae5c 100644 --- a/types/three/examples/jsm/loaders/VOXLoader.d.ts +++ b/types/three/examples/jsm/loaders/VOXLoader.d.ts @@ -1,4 +1,4 @@ -import { Data3DTexture, Mesh, Loader, LoadingManager } from '../../../src/Three.js'; +import { Data3DTexture, Loader, LoadingManager, Mesh } from "../../../src/Three.js"; export interface Chunk { palette: number[]; diff --git a/types/three/examples/jsm/loaders/VRMLLoader.d.ts b/types/three/examples/jsm/loaders/VRMLLoader.d.ts index ea09f485c..57b545980 100644 --- a/types/three/examples/jsm/loaders/VRMLLoader.d.ts +++ b/types/three/examples/jsm/loaders/VRMLLoader.d.ts @@ -1,4 +1,4 @@ -import { Scene, Loader, LoadingManager } from '../../../src/Three.js'; +import { Loader, LoadingManager, Scene } from "../../../src/Three.js"; export class VRMLLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/VTKLoader.d.ts b/types/three/examples/jsm/loaders/VTKLoader.d.ts index 0c8ac595e..549519e8d 100644 --- a/types/three/examples/jsm/loaders/VTKLoader.d.ts +++ b/types/three/examples/jsm/loaders/VTKLoader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export class VTKLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/loaders/XYZLoader.d.ts b/types/three/examples/jsm/loaders/XYZLoader.d.ts index 42ea752cc..b6cfd76ed 100644 --- a/types/three/examples/jsm/loaders/XYZLoader.d.ts +++ b/types/three/examples/jsm/loaders/XYZLoader.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Loader, LoadingManager } from '../../../src/Three.js'; +import { BufferGeometry, Loader, LoadingManager } from "../../../src/Three.js"; export class XYZLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/examples/jsm/materials/MeshGouraudMaterial.d.ts b/types/three/examples/jsm/materials/MeshGouraudMaterial.d.ts index 9fce7a611..a94de7d0e 100644 --- a/types/three/examples/jsm/materials/MeshGouraudMaterial.d.ts +++ b/types/three/examples/jsm/materials/MeshGouraudMaterial.d.ts @@ -2,14 +2,13 @@ * MeshGouraudMaterial * * Lambert illumination model with Gouraud (per-vertex) shading - * */ -import { ShaderMaterial, ShaderMaterialParameters } from '../../../src/Three.js'; +import { ShaderMaterial, ShaderMaterialParameters } from "../../../src/Three.js"; export class MeshGouraudMaterial extends ShaderMaterial { isMeshGouraudMaterial: true; - type: 'MeshGouraudMaterial'; + type: "MeshGouraudMaterial"; constructor(parameters?: ShaderMaterialParameters); diff --git a/types/three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts b/types/three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts index eda25d242..be0cbd301 100644 --- a/types/three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts +++ b/types/three/examples/jsm/materials/MeshPostProcessingMaterial.d.ts @@ -1,4 +1,4 @@ -import { MeshPhysicalMaterial, MeshPhysicalMaterialParameters, Texture } from '../../../src/Three.js'; +import { MeshPhysicalMaterial, MeshPhysicalMaterialParameters, Texture } from "../../../src/Three.js"; export interface MeshPostProcessingMaterialParameters extends MeshPhysicalMaterialParameters { aoPassMap?: Texture | null | undefined; diff --git a/types/three/examples/jsm/math/Capsule.d.ts b/types/three/examples/jsm/math/Capsule.d.ts index f3664cc00..6f4ddd322 100644 --- a/types/three/examples/jsm/math/Capsule.d.ts +++ b/types/three/examples/jsm/math/Capsule.d.ts @@ -1,4 +1,4 @@ -import { Vector3, Line3, Box3 } from '../../../src/Three.js'; +import { Box3, Line3, Vector3 } from "../../../src/Three.js"; export class Capsule { constructor(start?: Vector3, end?: Vector3, radius?: number); diff --git a/types/three/examples/jsm/math/ColorConverter.d.ts b/types/three/examples/jsm/math/ColorConverter.d.ts index 63015e790..7ee40c2ea 100644 --- a/types/three/examples/jsm/math/ColorConverter.d.ts +++ b/types/three/examples/jsm/math/ColorConverter.d.ts @@ -1,4 +1,4 @@ -import { Color } from '../../../src/Three.js'; +import { Color } from "../../../src/Three.js"; export interface HSL { h: number; diff --git a/types/three/examples/jsm/math/ConvexHull.d.ts b/types/three/examples/jsm/math/ConvexHull.d.ts index b5ca239c1..0cd20c8ef 100644 --- a/types/three/examples/jsm/math/ConvexHull.d.ts +++ b/types/three/examples/jsm/math/ConvexHull.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Ray, Vector3 } from '../../../src/Three.js'; +import { Object3D, Ray, Vector3 } from "../../../src/Three.js"; export class Face { constructor(); diff --git a/types/three/examples/jsm/math/Lut.d.ts b/types/three/examples/jsm/math/Lut.d.ts index ed5677420..f08d4c6cd 100644 --- a/types/three/examples/jsm/math/Lut.d.ts +++ b/types/three/examples/jsm/math/Lut.d.ts @@ -1,4 +1,4 @@ -import { Color } from '../../../src/Three.js'; +import { Color } from "../../../src/Three.js"; export class Lut { constructor(colormap?: string, numberofcolors?: number); diff --git a/types/three/examples/jsm/math/MeshSurfaceSampler.d.ts b/types/three/examples/jsm/math/MeshSurfaceSampler.d.ts index d877ccfc4..f2e5df58f 100644 --- a/types/three/examples/jsm/math/MeshSurfaceSampler.d.ts +++ b/types/three/examples/jsm/math/MeshSurfaceSampler.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Color, Mesh, Vector2, Vector3 } from '../../../src/Three.js'; +import { BufferGeometry, Color, Mesh, Vector2, Vector3 } from "../../../src/Three.js"; export class MeshSurfaceSampler { distribution: Float32Array | null; diff --git a/types/three/examples/jsm/math/OBB.d.ts b/types/three/examples/jsm/math/OBB.d.ts index 0dacb3a68..fdf6c203f 100644 --- a/types/three/examples/jsm/math/OBB.d.ts +++ b/types/three/examples/jsm/math/OBB.d.ts @@ -1,4 +1,4 @@ -import { Box3, Matrix3, Matrix4, Plane, Ray, Sphere, Vector3 } from '../../../src/Three.js'; +import { Box3, Matrix3, Matrix4, Plane, Ray, Sphere, Vector3 } from "../../../src/Three.js"; export class OBB { center: Vector3; diff --git a/types/three/examples/jsm/math/Octree.d.ts b/types/three/examples/jsm/math/Octree.d.ts index 0d9e1359f..878bc1887 100644 --- a/types/three/examples/jsm/math/Octree.d.ts +++ b/types/three/examples/jsm/math/Octree.d.ts @@ -1,6 +1,6 @@ -import { Triangle, Box3, Ray, Sphere, Object3D } from '../../../src/Three.js'; +import { Box3, Object3D, Ray, Sphere, Triangle } from "../../../src/Three.js"; -import { Capsule } from './Capsule.js'; +import { Capsule } from "./Capsule.js"; export class Octree { box: Box3 | null | undefined; diff --git a/types/three/examples/jsm/misc/ConvexObjectBreaker.d.ts b/types/three/examples/jsm/misc/ConvexObjectBreaker.d.ts index d9aac264e..c6ff3640b 100644 --- a/types/three/examples/jsm/misc/ConvexObjectBreaker.d.ts +++ b/types/three/examples/jsm/misc/ConvexObjectBreaker.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Plane, Vector3 } from '../../../src/Three.js'; +import { Object3D, Plane, Vector3 } from "../../../src/Three.js"; export interface CutByPlaneOutput { object1: Object3D; diff --git a/types/three/examples/jsm/misc/GPUComputationRenderer.d.ts b/types/three/examples/jsm/misc/GPUComputationRenderer.d.ts index 43f97dc1d..06fc677df 100644 --- a/types/three/examples/jsm/misc/GPUComputationRenderer.d.ts +++ b/types/three/examples/jsm/misc/GPUComputationRenderer.d.ts @@ -1,17 +1,17 @@ import { - WebGLRenderer, - WebGLRenderTarget, - Texture, DataTexture, - Material, - ShaderMaterial, - Wrapping, - TextureFilter, - TextureDataType, IUniform, MagnificationTextureFilter, + Material, MinificationTextureFilter, -} from '../../../src/Three.js'; + ShaderMaterial, + Texture, + TextureDataType, + TextureFilter, + WebGLRenderer, + WebGLRenderTarget, + Wrapping, +} from "../../../src/Three.js"; export interface Variable { name: string; diff --git a/types/three/examples/jsm/misc/Gyroscope.d.ts b/types/three/examples/jsm/misc/Gyroscope.d.ts index 0d411368b..fd6b62f11 100644 --- a/types/three/examples/jsm/misc/Gyroscope.d.ts +++ b/types/three/examples/jsm/misc/Gyroscope.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export class Gyroscope extends Object3D { constructor(); diff --git a/types/three/examples/jsm/misc/MD2Character.d.ts b/types/three/examples/jsm/misc/MD2Character.d.ts index 1dbe5522f..ddadcc10d 100644 --- a/types/three/examples/jsm/misc/MD2Character.d.ts +++ b/types/three/examples/jsm/misc/MD2Character.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Mesh, Texture, AnimationMixer } from '../../../src/Three.js'; +import { AnimationMixer, Mesh, Object3D, Texture } from "../../../src/Three.js"; export interface MD2PartsConfig { baseUrl: string; diff --git a/types/three/examples/jsm/misc/MD2CharacterComplex.d.ts b/types/three/examples/jsm/misc/MD2CharacterComplex.d.ts index 16366f8e0..ce4997c7f 100644 --- a/types/three/examples/jsm/misc/MD2CharacterComplex.d.ts +++ b/types/three/examples/jsm/misc/MD2CharacterComplex.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Mesh, Texture } from '../../../src/Three.js'; +import { Mesh, Object3D, Texture } from "../../../src/Three.js"; export class MD2CharacterComplex { constructor(); diff --git a/types/three/examples/jsm/misc/MorphAnimMesh.d.ts b/types/three/examples/jsm/misc/MorphAnimMesh.d.ts index f9cb4a464..7c2cffcb1 100644 --- a/types/three/examples/jsm/misc/MorphAnimMesh.d.ts +++ b/types/three/examples/jsm/misc/MorphAnimMesh.d.ts @@ -1,4 +1,4 @@ -import { AnimationAction, AnimationMixer, BufferGeometry, Material, Mesh } from '../../../src/Three.js'; +import { AnimationAction, AnimationMixer, BufferGeometry, Material, Mesh } from "../../../src/Three.js"; export class MorphAnimMesh extends Mesh { constructor(geometry: BufferGeometry, material: Material); diff --git a/types/three/examples/jsm/misc/MorphBlendMesh.d.ts b/types/three/examples/jsm/misc/MorphBlendMesh.d.ts index d60c58d54..89dae3d43 100644 --- a/types/three/examples/jsm/misc/MorphBlendMesh.d.ts +++ b/types/three/examples/jsm/misc/MorphBlendMesh.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Material, Mesh } from '../../../src/Three.js'; +import { BufferGeometry, Material, Mesh } from "../../../src/Three.js"; export class MorphBlendMesh extends Mesh { constructor(geometry: BufferGeometry, material: Material); diff --git a/types/three/examples/jsm/misc/ProgressiveLightMap.d.ts b/types/three/examples/jsm/misc/ProgressiveLightMap.d.ts index 53e22c0c7..d065387e1 100644 --- a/types/three/examples/jsm/misc/ProgressiveLightMap.d.ts +++ b/types/three/examples/jsm/misc/ProgressiveLightMap.d.ts @@ -6,12 +6,12 @@ import { MeshPhongMaterial, Object3D, PlaneGeometry, + Scene, Texture, Vector3, WebGLRenderer, - Scene, WebGLRenderTarget, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface UVBoxes { w: number; diff --git a/types/three/examples/jsm/misc/RollerCoaster.d.ts b/types/three/examples/jsm/misc/RollerCoaster.d.ts index c721e38ed..ac07b3749 100644 --- a/types/three/examples/jsm/misc/RollerCoaster.d.ts +++ b/types/three/examples/jsm/misc/RollerCoaster.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Mesh, Vector3 } from '../../../src/Three.js'; +import { BufferGeometry, Mesh, Vector3 } from "../../../src/Three.js"; interface Curve { getPointAt(u: number): Vector3; diff --git a/types/three/examples/jsm/misc/TubePainter.d.ts b/types/three/examples/jsm/misc/TubePainter.d.ts index ba7e1aa54..3518b8aa7 100644 --- a/types/three/examples/jsm/misc/TubePainter.d.ts +++ b/types/three/examples/jsm/misc/TubePainter.d.ts @@ -1,4 +1,4 @@ -import { Matrix4, Mesh, Vector3 } from '../../../src/Three.js'; +import { Matrix4, Mesh, Vector3 } from "../../../src/Three.js"; export class TubePainter { constructor(); diff --git a/types/three/examples/jsm/misc/Volume.d.ts b/types/three/examples/jsm/misc/Volume.d.ts index 66a283c3c..aae5da149 100644 --- a/types/three/examples/jsm/misc/Volume.d.ts +++ b/types/three/examples/jsm/misc/Volume.d.ts @@ -1,6 +1,6 @@ -import { Matrix3, TypedArray } from '../../../src/Three.js'; +import { Matrix3, TypedArray } from "../../../src/Three.js"; -import { VolumeSlice } from './VolumeSlice.js'; +import { VolumeSlice } from "./VolumeSlice.js"; export class Volume { constructor(xLength?: number, yLength?: number, zLength?: number, type?: string, arrayBuffer?: ArrayLike); @@ -9,7 +9,7 @@ export class Volume { yLength: number; zLength: number; - axisOrder: Array<'x' | 'y' | 'z'>; + axisOrder: Array<"x" | "y" | "z">; data: TypedArray; diff --git a/types/three/examples/jsm/misc/VolumeSlice.d.ts b/types/three/examples/jsm/misc/VolumeSlice.d.ts index d6e7cf006..5ce544c05 100644 --- a/types/three/examples/jsm/misc/VolumeSlice.d.ts +++ b/types/three/examples/jsm/misc/VolumeSlice.d.ts @@ -1,6 +1,6 @@ -import { Matrix3, Mesh } from '../../../src/Three.js'; +import { Matrix3, Mesh } from "../../../src/Three.js"; -import { Volume } from './Volume.js'; +import { Volume } from "./Volume.js"; export class VolumeSlice { constructor(volume: Volume, index?: number, axis?: string); diff --git a/types/three/examples/jsm/modifiers/CurveModifier.d.ts b/types/three/examples/jsm/modifiers/CurveModifier.d.ts index be16940ea..bfeb9197e 100644 --- a/types/three/examples/jsm/modifiers/CurveModifier.d.ts +++ b/types/three/examples/jsm/modifiers/CurveModifier.d.ts @@ -1,13 +1,13 @@ import { - DataTexture, + BufferGeometry, Curve, + DataTexture, + InstancedMesh, IUniform, Material, - InstancedMesh, - BufferGeometry, Mesh, Vector3, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface SplineUniform { spineTexture: IUniform; diff --git a/types/three/examples/jsm/modifiers/EdgeSplitModifier.d.ts b/types/three/examples/jsm/modifiers/EdgeSplitModifier.d.ts index f796dd99e..42ec02d87 100644 --- a/types/three/examples/jsm/modifiers/EdgeSplitModifier.d.ts +++ b/types/three/examples/jsm/modifiers/EdgeSplitModifier.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; export class EdgeSplitModifier { constructor(); diff --git a/types/three/examples/jsm/modifiers/SimplifyModifier.d.ts b/types/three/examples/jsm/modifiers/SimplifyModifier.d.ts index ef5e6fc47..0ba4adcbe 100644 --- a/types/three/examples/jsm/modifiers/SimplifyModifier.d.ts +++ b/types/three/examples/jsm/modifiers/SimplifyModifier.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; export class SimplifyModifier { constructor(); diff --git a/types/three/examples/jsm/modifiers/TessellateModifier.d.ts b/types/three/examples/jsm/modifiers/TessellateModifier.d.ts index 2a6b62049..9ecff8688 100644 --- a/types/three/examples/jsm/modifiers/TessellateModifier.d.ts +++ b/types/three/examples/jsm/modifiers/TessellateModifier.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; export class TessellateModifier { constructor(maxEdgeLength?: number, maxIterations?: number); diff --git a/types/three/examples/jsm/nodes/Nodes.d.ts b/types/three/examples/jsm/nodes/Nodes.d.ts index c042aa72f..35da50128 100644 --- a/types/three/examples/jsm/nodes/Nodes.d.ts +++ b/types/three/examples/jsm/nodes/Nodes.d.ts @@ -1,392 +1,392 @@ // constants -export * from './core/constants.js'; +export * from "./core/constants.js"; // core -export { default as ArrayUniformNode } from './core/ArrayUniformNode.js'; -export { default as AssignNode, assign } from './core/AssignNode.js'; -export { default as AttributeNode, attribute } from './core/AttributeNode.js'; -export { default as BypassNode, bypass } from './core/BypassNode.js'; -export { default as CacheNode, cache } from './core/CacheNode.js'; -export { default as ConstNode } from './core/ConstNode.js'; -export { default as ContextNode, context, label } from './core/ContextNode.js'; -export { default as IndexNode, vertexIndex, instanceIndex, IndexNodeScope } from './core/IndexNode.js'; +export { default as ArrayUniformNode } from "./core/ArrayUniformNode.js"; +export { assign, default as AssignNode } from "./core/AssignNode.js"; +export { attribute, default as AttributeNode } from "./core/AttributeNode.js"; +export { bypass, default as BypassNode } from "./core/BypassNode.js"; +export { cache, default as CacheNode } from "./core/CacheNode.js"; +export { default as ConstNode } from "./core/ConstNode.js"; +export { context, default as ContextNode, label } from "./core/ContextNode.js"; +export { default as IndexNode, IndexNodeScope, instanceIndex, vertexIndex } from "./core/IndexNode.js"; export { default as LightingModel, - LightingModelReflectedLight, LightingModelDirectInput, LightingModelIndirectInput, -} from './core/LightingModel.js'; -export { default as Node } from './core/Node.js'; -export { default as NodeAttribute } from './core/NodeAttribute.js'; -export { default as NodeBuilder } from './core/NodeBuilder.js'; -export { default as NodeCache } from './core/NodeCache.js'; -export { default as NodeCode } from './core/NodeCode.js'; -export { default as NodeFrame } from './core/NodeFrame.js'; -export { default as NodeFunctionInput } from './core/NodeFunctionInput.js'; -export { default as NodeKeywords } from './core/NodeKeywords.js'; -export { default as NodeUniform } from './core/NodeUniform.js'; -export { default as NodeVar } from './core/NodeVar.js'; -export { default as NodeVarying } from './core/NodeVarying.js'; + LightingModelReflectedLight, +} from "./core/LightingModel.js"; +export { default as Node } from "./core/Node.js"; +export { default as NodeAttribute } from "./core/NodeAttribute.js"; +export { default as NodeBuilder } from "./core/NodeBuilder.js"; +export { default as NodeCache } from "./core/NodeCache.js"; +export { default as NodeCode } from "./core/NodeCode.js"; +export { default as NodeFrame } from "./core/NodeFrame.js"; +export { default as NodeFunctionInput } from "./core/NodeFunctionInput.js"; +export { default as NodeKeywords } from "./core/NodeKeywords.js"; +export { default as NodeUniform } from "./core/NodeUniform.js"; +export { default as NodeVar } from "./core/NodeVar.js"; +export { default as NodeVarying } from "./core/NodeVarying.js"; export { - default as PropertyNode, - property, - varyingProperty, - output, - diffuseColor, - roughness, - metalness, clearcoat, clearcoatRoughness, - sheen, - sheenRoughness, + dashSize, + default as PropertyNode, + diffuseColor, + gapSize, iridescence, iridescenceIOR, iridescenceThickness, - specularColor, - shininess, - dashSize, - gapSize, + metalness, + output, pointWidth, -} from './core/PropertyNode.js'; -export { default as StackNode } from './core/StackNode.js'; -export { default as TempNode } from './core/TempNode.js'; -export { default as UniformNode, uniform } from './core/UniformNode.js'; -export { default as VarNode, temp } from './core/VarNode.js'; -export { default as VaryingNode, varying } from './core/VaryingNode.js'; + property, + roughness, + sheen, + sheenRoughness, + shininess, + specularColor, + varyingProperty, +} from "./core/PropertyNode.js"; +export { default as StackNode } from "./core/StackNode.js"; +export { default as TempNode } from "./core/TempNode.js"; +export { default as UniformNode, uniform } from "./core/UniformNode.js"; +export { default as VarNode, temp } from "./core/VarNode.js"; +export { default as VaryingNode, varying } from "./core/VaryingNode.js"; -import * as NodeUtils from './core/NodeUtils.js'; +import * as NodeUtils from "./core/NodeUtils.js"; export { NodeUtils }; // math export { + abs, + acos, + asin, + atan, + atan2, + bitcast, + cbrt, + ceil, + clamp, + cos, + cross, default as MathNode, - PI, - PI2, - EPSILON, - INFINITY, - radians, degrees, + dFdx, + dFdy, + difference, + distance, + dot, + EPSILON, exp, exp2, - log, - log2, - sqrt, - inverseSqrt, + faceForward, floor, - ceil, - normalize, fract, - sin, - cos, - tan, - asin, - acos, - atan, - abs, - sign, + fwidth, + INFINITY, + inverseSqrt, length, lengthSq, - negate, - oneMinus, - dFdx, - dFdy, - round, - reciprocal, - trunc, - fwidth, - bitcast, - atan2, - min, + log, + log2, + MathNodeMethod, + MathNodeMethod1, + MathNodeMethod2, + MathNodeMethod3, max, + min, + mix, mod, - step, - reflect, - distance, - difference, - dot, - cross, + negate, + normalize, + oneMinus, + PI, + PI2, pow, pow2, pow3, pow4, - transformDirection, - mix, - clamp, - saturate, + radians, + reciprocal, + reflect, refract, + round, + saturate, + sign, + sin, smoothstep, - faceForward, - cbrt, - MathNodeMethod1, - MathNodeMethod2, - MathNodeMethod3, - MathNodeMethod, -} from './math/MathNode.js'; + sqrt, + step, + tan, + transformDirection, + trunc, +} from "./math/MathNode.js"; +export { cond, default as CondNode } from "./math/CondNode.js"; +export { default as HashNode, hash } from "./math/HashNode.js"; export { - default as OperatorNode, add, - sub, - mul, - div, - remainder, - equal, - lessThan, - greaterThan, - lessThanEqual, - greaterThanEqual, and, - or, - not, - xor, bitAnd, bitNot, bitOr, bitXor, + default as OperatorNode, + div, + equal, + greaterThan, + greaterThanEqual, + lessThan, + lessThanEqual, + mul, + not, + OperatorNodeOp, + or, + remainder, shiftLeft, shiftRight, - OperatorNodeOp, -} from './math/OperatorNode.js'; -export { default as CondNode, cond } from './math/CondNode.js'; -export { default as HashNode, hash } from './math/HashNode.js'; + sub, + xor, +} from "./math/OperatorNode.js"; // math utils -export { parabola, gain, pcurve, sinc } from './math/MathUtils.js'; -export { triNoise3D } from './math/TriNoise3D.js'; +export { gain, parabola, pcurve, sinc } from "./math/MathUtils.js"; +export { triNoise3D } from "./math/TriNoise3D.js"; // utils -export { default as ArrayElementNode } from './utils/ArrayElementNode.js'; -export { default as ConvertNode } from './utils/ConvertNode.js'; -export { default as DiscardNode, discard } from './utils/DiscardNode.js'; -export { default as EquirectUVNode, equirectUV } from './utils/EquirectUVNode.js'; -export { default as JoinNode } from './utils/JoinNode.js'; -export { default as MatcapUVNode, matcapUV } from './utils/MatcapUVNode.js'; -export { default as MaxMipLevelNode, maxMipLevel } from './utils/MaxMipLevelNode.js'; -export { default as OscNode, oscSine, oscSquare, oscTriangle, oscSawtooth, OscNodeMethod } from './utils/OscNode.js'; -export { default as RemapNode, remap, remapClamp } from './utils/RemapNode.js'; -export { default as RotateUVNode, rotateUV } from './utils/RotateUVNode.js'; -export { default as RotateNode, rotate } from './utils/RotateNode.js'; -export { default as SpecularMIPLevelNode, specularMIPLevel } from './utils/SpecularMIPLevelNode.js'; -export { default as SplitNode } from './utils/SplitNode.js'; -export { default as SpriteSheetUVNode, spritesheetUV } from './utils/SpriteSheetUVNode.js'; +export { default as ArrayElementNode } from "./utils/ArrayElementNode.js"; +export { default as ConvertNode } from "./utils/ConvertNode.js"; +export { default as DiscardNode, discard } from "./utils/DiscardNode.js"; +export { default as EquirectUVNode, equirectUV } from "./utils/EquirectUVNode.js"; +export { default as JoinNode } from "./utils/JoinNode.js"; +export { default as MatcapUVNode, matcapUV } from "./utils/MatcapUVNode.js"; +export { default as MaxMipLevelNode, maxMipLevel } from "./utils/MaxMipLevelNode.js"; +export { default as OscNode, OscNodeMethod, oscSawtooth, oscSine, oscSquare, oscTriangle } from "./utils/OscNode.js"; +export { default as ReflectorNode, reflector, ReflectorNodeParameters } from "./utils/ReflectorNode.js"; +export { default as RemapNode, remap, remapClamp } from "./utils/RemapNode.js"; +export { default as RotateNode, rotate } from "./utils/RotateNode.js"; +export { default as RotateUVNode, rotateUV } from "./utils/RotateUVNode.js"; +export { default as SpecularMIPLevelNode, specularMIPLevel } from "./utils/SpecularMIPLevelNode.js"; +export { default as SplitNode } from "./utils/SplitNode.js"; +export { default as SpriteSheetUVNode, spritesheetUV } from "./utils/SpriteSheetUVNode.js"; export { default as TimerNode, - timerLocal, - timerGlobal, - timerDelta, frameId, + timerDelta, + timerGlobal, + timerLocal, TimerNodeScope, -} from './utils/TimerNode.js'; +} from "./utils/TimerNode.js"; export { default as TriplanarTexturesNode, - triplanarTextures, triplanarTexture, -} from './utils/TriplanarTexturesNode.js'; -export { default as ReflectorNode, reflector, ReflectorNodeParameters } from './utils/ReflectorNode.js'; + triplanarTextures, +} from "./utils/TriplanarTexturesNode.js"; // shader node -export * from './shadernode/ShaderNode.js'; +export * from "./shadernode/ShaderNode.js"; // accessors export { - default as BitangentNode, bitangentGeometry, bitangentLocal, + BitangentNodeScope, bitangentView, bitangentWorld, + default as BitangentNode, transformedBitangentView, transformedBitangentWorld, - BitangentNodeScope, -} from './accessors/BitangentNode.js'; -export { default as BufferNode, buffer } from './accessors/BufferNode.js'; +} from "./accessors/BitangentNode.js"; +export { buffer, default as BufferNode } from "./accessors/BufferNode.js"; export { - default as CameraNode, + cameraFar, + cameraLogDepth, + cameraNear, + CameraNodeScope, + cameraNormalMatrix, + cameraPosition, cameraProjectionMatrix, cameraProjectionMatrixInverse, cameraViewMatrix, - cameraNormalMatrix, cameraWorldMatrix, - cameraPosition, - cameraNear, - cameraFar, - cameraLogDepth, - CameraNodeScope, -} from './accessors/CameraNode.js'; -export { default as VertexColorNode, vertexColor } from './accessors/VertexColorNode.js'; -export { default as CubeTextureNode, cubeTexture } from './accessors/CubeTextureNode.js'; -export { default as InstanceNode, instance } from './accessors/InstanceNode.js'; + default as CameraNode, +} from "./accessors/CameraNode.js"; +export { cubeTexture, default as CubeTextureNode } from "./accessors/CubeTextureNode.js"; +export { default as InstanceNode, instance } from "./accessors/InstanceNode.js"; export { default as MaterialNode, materialAlphaTest, materialColor, - materialShininess, materialEmissive, + materialMetalness, + MaterialNodeScope, materialOpacity, - materialSpecularColor, materialReflectivity, - materialRoughness, - materialMetalness, materialRotation, - MaterialNodeScope, -} from './accessors/MaterialNode.js'; -export { default as MaterialReferenceNode, materialReference } from './accessors/MaterialReferenceNode.js'; -export { default as TextureBicubicNode, textureBicubic } from './accessors/TextureBicubicNode.js'; + materialRoughness, + materialShininess, + materialSpecularColor, +} from "./accessors/MaterialNode.js"; +export { default as MaterialReferenceNode, materialReference } from "./accessors/MaterialReferenceNode.js"; export { default as ModelNode, modelDirection, - modelViewMatrix, modelNormalMatrix, - modelWorldMatrix, modelPosition, - modelViewPosition, modelScale, -} from './accessors/ModelNode.js'; -export { default as ModelViewProjectionNode, modelViewProjection } from './accessors/ModelViewProjectionNode.js'; + modelViewMatrix, + modelViewPosition, + modelWorldMatrix, +} from "./accessors/ModelNode.js"; +export { default as ModelViewProjectionNode, modelViewProjection } from "./accessors/ModelViewProjectionNode.js"; export { default as NormalNode, normalGeometry, normalLocal, + NormalNodeScope, normalView, normalWorld, transformedNormalView, - NormalNodeScope, -} from './accessors/NormalNode.js'; -export { default as Object3DNode, Object3DNodeScope as OObject3DNodeScope } from './accessors/Object3DNode.js'; -export { default as PointUVNode, pointUV } from './accessors/PointUVNode.js'; +} from "./accessors/NormalNode.js"; +export { default as Object3DNode, Object3DNodeScope as OObject3DNodeScope } from "./accessors/Object3DNode.js"; +export { default as PointUVNode, pointUV } from "./accessors/PointUVNode.js"; export { default as PositionNode, positionGeometry, positionLocal, - positionWorld, - positionWorldDirection, + PositionNodeScope, positionView, positionViewDirection, - PositionNodeScope, -} from './accessors/PositionNode.js'; -export { default as ReferenceNode, reference } from './accessors/ReferenceNode.js'; -export { default as ReflectVectorNode, reflectVector } from './accessors/ReflectVectorNode.js'; -export { default as SkinningNode, skinning } from './accessors/SkinningNode.js'; -export { default as StorageBufferNode, storage } from './accessors/StorageBufferNode.js'; + positionWorld, + positionWorldDirection, +} from "./accessors/PositionNode.js"; +export { default as ReferenceNode, reference } from "./accessors/ReferenceNode.js"; +export { default as ReflectVectorNode, reflectVector } from "./accessors/ReflectVectorNode.js"; +export { default as SkinningNode, skinning } from "./accessors/SkinningNode.js"; +export { default as StorageBufferNode, storage } from "./accessors/StorageBufferNode.js"; export { default as TangentNode, tangentGeometry, tangentLocal, + TangentNodeScope, tangentView, tangentWorld, transformedTangentView, transformedTangentWorld, - TangentNodeScope, -} from './accessors/TangentNode.js'; -export { default as TextureNode, texture, sampler } from './accessors/TextureNode.js'; -export { default as UVNode, uv } from './accessors/UVNode.js'; -export { default as UserDataNode, userData } from './accessors/UserDataNode.js'; +} from "./accessors/TangentNode.js"; +export { default as TextureBicubicNode, textureBicubic } from "./accessors/TextureBicubicNode.js"; +export { default as TextureNode, sampler, texture } from "./accessors/TextureNode.js"; +export { default as UserDataNode, userData } from "./accessors/UserDataNode.js"; +export { default as UVNode, uv } from "./accessors/UVNode.js"; +export { default as VertexColorNode, vertexColor } from "./accessors/VertexColorNode.js"; // display -export { default as BlendModeNode, burn, dodge, overlay, screen, BlendMode } from './display/BlendModeNode.js'; +export { afterImage, default as AfterImageNode } from "./display/AfterImageNode.js"; +export { anamorphic, default as AnamorphicNode } from "./display/AnamorphicNode.js"; +export { BlendMode, burn, default as BlendModeNode, dodge, overlay, screen } from "./display/BlendModeNode.js"; export { + ColorAdjustmentMethod, default as ColorAdjustmentNode, - saturation, - vibrance, hue, lumaCoeffs, luminance, + saturation, threshold, - ColorAdjustmentMethod, -} from './display/ColorAdjustmentNode.js'; + vibrance, +} from "./display/ColorAdjustmentNode.js"; export { + ColorSpaceNodeMethod, + colorSpaceToLinear, default as ColorSpaceNode, linearToColorSpace, - colorSpaceToLinear, linearTosRGB, sRGBToLinear, - ColorSpaceNodeMethod, -} from './display/ColorSpaceNode.js'; -export { default as FrontFacingNode, frontFacing, faceDirection } from './display/FrontFacingNode.js'; -export { default as NormalMapNode, normalMap, TBNViewMatrix } from './display/NormalMapNode.js'; -export { default as PosterizeNode, posterize } from './display/PosterizeNode.js'; -export { default as ToneMappingNode, toneMapping } from './display/ToneMappingNode.js'; +} from "./display/ColorSpaceNode.js"; +export { default as FrontFacingNode, faceDirection, frontFacing } from "./display/FrontFacingNode.js"; +export { default as GaussianBlurNode, gaussianBlur } from "./display/GaussianBlurNode.js"; +export { default as NormalMapNode, normalMap, TBNViewMatrix } from "./display/NormalMapNode.js"; +export { default as PosterizeNode, posterize } from "./display/PosterizeNode.js"; +export { default as ToneMappingNode, toneMapping } from "./display/ToneMappingNode.js"; +export { + default as ViewportDepthNode, + depth, + depthPixel, + depthTexture, + orthographicDepthToViewZ, + perspectiveDepthToViewZ, + ViewportDepthNodeScope, + viewZToOrthographicDepth, + viewZToPerspectiveDepth, +} from "./display/ViewportDepthNode.js"; export { default as ViewportNode, + viewportBottomLeft, + viewportBottomRight, viewportCoordinate, viewportResolution, viewportTopLeft, - viewportBottomLeft, viewportTopRight, - viewportBottomRight, -} from './display/ViewportNode.js'; -export { default as ViewportTextureNode, viewportTexture, viewportMipTexture } from './display/ViewportTextureNode.js'; -export { default as ViewportSharedTextureNode, viewportSharedTexture } from './display/ViewportSharedTextureNode.js'; -export { - default as ViewportDepthNode, - viewZToOrthographicDepth, - orthographicDepthToViewZ, - viewZToPerspectiveDepth, - perspectiveDepthToViewZ, - depth, - depthTexture, - depthPixel, - ViewportDepthNodeScope, -} from './display/ViewportDepthNode.js'; -export { default as GaussianBlurNode, gaussianBlur } from './display/GaussianBlurNode.js'; -export { default as AfterImageNode, afterImage } from './display/AfterImageNode.js'; -export { default as AnamorphicNode, anamorphic } from './display/AnamorphicNode.js'; +} from "./display/ViewportNode.js"; +export { default as ViewportSharedTextureNode, viewportSharedTexture } from "./display/ViewportSharedTextureNode.js"; +export { default as ViewportTextureNode, viewportMipTexture, viewportTexture } from "./display/ViewportTextureNode.js"; -export { default as PassNode, pass, depthPass, PassNodeScope } from './display/PassNode.js'; +export { default as PassNode, depthPass, pass, PassNodeScope } from "./display/PassNode.js"; // code -export { default as ExpressionNode, expression } from './code/ExpressionNode.js'; -export { default as CodeNode, code, CodeNodeInclude } from './code/CodeNode.js'; -export { default as FunctionCallNode, call } from './code/FunctionCallNode.js'; -export { default as FunctionNode, func, fn, FunctionNodeArguments, Fn } from './code/FunctionNode.js'; +export { code, CodeNodeInclude, default as CodeNode } from "./code/CodeNode.js"; +export { default as ExpressionNode, expression } from "./code/ExpressionNode.js"; +export { call, default as FunctionCallNode } from "./code/FunctionCallNode.js"; +export { default as FunctionNode, Fn, fn, func, FunctionNodeArguments } from "./code/FunctionNode.js"; // fog -export { default as FogNode, fog } from './fog/FogNode.js'; -export { default as FogRangeNode, rangeFog } from './fog/FogRangeNode.js'; -export { default as FogExp2Node, densityFog } from './fog/FogExp2Node.js'; +export { default as FogExp2Node, densityFog } from "./fog/FogExp2Node.js"; +export { default as FogNode, fog } from "./fog/FogNode.js"; +export { default as FogRangeNode, rangeFog } from "./fog/FogRangeNode.js"; // geometry -export { default as RangeNode, range, RangeModeBound } from './geometry/RangeNode.js'; +export { default as RangeNode, range, RangeModeBound } from "./geometry/RangeNode.js"; // gpgpu -export { default as ComputeNode, compute } from './gpgpu/ComputeNode.js'; +export { compute, default as ComputeNode } from "./gpgpu/ComputeNode.js"; // lighting -export { default as PointLightNode } from './lighting/PointLightNode.js'; -export { default as SpotLightNode } from './lighting/SpotLightNode.js'; -export { default as LightsNode, lights } from './lighting/LightsNode.js'; -export { default as LightingNode } from './lighting/LightingNode.js'; -export { default as LightingContextNode, lightingContext } from './lighting/LightingContextNode.js'; -export { default as HemisphereLightNode } from './lighting/HemisphereLightNode.js'; -export { default as EnvironmentNode } from './lighting/EnvironmentNode.js'; -export { default as AONode } from './lighting/AONode.js'; -export { default as AnalyticLightNode } from './lighting/AnalyticLightNode.js'; +export { default as AnalyticLightNode } from "./lighting/AnalyticLightNode.js"; +export { default as AONode } from "./lighting/AONode.js"; +export { default as EnvironmentNode } from "./lighting/EnvironmentNode.js"; +export { default as HemisphereLightNode } from "./lighting/HemisphereLightNode.js"; +export { default as LightingContextNode, lightingContext } from "./lighting/LightingContextNode.js"; +export { default as LightingNode } from "./lighting/LightingNode.js"; +export { default as LightsNode, lights } from "./lighting/LightsNode.js"; +export { default as PointLightNode } from "./lighting/PointLightNode.js"; +export { default as SpotLightNode } from "./lighting/SpotLightNode.js"; // procedural -export { default as CheckerNode, checker } from './procedural/CheckerNode.js'; +export { checker, default as CheckerNode } from "./procedural/CheckerNode.js"; // loaders -export { default as NodeLoader } from './loaders/NodeLoader.js'; -export { default as NodeObjectLoader } from './loaders/NodeObjectLoader.js'; -export { default as NodeMaterialLoader } from './loaders/NodeMaterialLoader.js'; +export { default as NodeLoader } from "./loaders/NodeLoader.js"; +export { default as NodeMaterialLoader } from "./loaders/NodeMaterialLoader.js"; +export { default as NodeObjectLoader } from "./loaders/NodeObjectLoader.js"; // materials -export * from './materials/Materials.js'; +export * from "./materials/Materials.js"; // materialX -export * from './materialx/MaterialXNodes.js'; +export * from "./materialx/MaterialXNodes.js"; // functions -export { default as BRDF_GGX } from './functions/BSDF/BRDF_GGX.js'; -export { default as BRDF_Lambert } from './functions/BSDF/BRDF_Lambert.js'; -export { default as D_GGX } from './functions/BSDF/D_GGX.js'; -export { default as DFGApprox } from './functions/BSDF/DFGApprox.js'; -export { default as F_Schlick } from './functions/BSDF/F_Schlick.js'; -export { default as V_GGX_SmithCorrelated } from './functions/BSDF/V_GGX_SmithCorrelated.js'; +export { default as BRDF_GGX } from "./functions/BSDF/BRDF_GGX.js"; +export { default as BRDF_Lambert } from "./functions/BSDF/BRDF_Lambert.js"; +export { default as D_GGX } from "./functions/BSDF/D_GGX.js"; +export { default as DFGApprox } from "./functions/BSDF/DFGApprox.js"; +export { default as F_Schlick } from "./functions/BSDF/F_Schlick.js"; +export { default as V_GGX_SmithCorrelated } from "./functions/BSDF/V_GGX_SmithCorrelated.js"; -export { getDistanceAttenuation } from './lighting/LightUtils.js'; +export { getDistanceAttenuation } from "./lighting/LightUtils.js"; -export { default as getGeometryRoughness } from './functions/material/getGeometryRoughness.js'; -export { default as getRoughness } from './functions/material/getRoughness.js'; +export { default as getGeometryRoughness } from "./functions/material/getGeometryRoughness.js"; +export { default as getRoughness } from "./functions/material/getRoughness.js"; -export { default as PhongLightingModel } from './functions/PhongLightingModel.js'; -export { default as PhysicalLightingModel } from './functions/PhysicalLightingModel.js'; +export { default as PhongLightingModel } from "./functions/PhongLightingModel.js"; +export { default as PhysicalLightingModel } from "./functions/PhysicalLightingModel.js"; diff --git a/types/three/examples/jsm/nodes/accessors/BitangentNode.d.ts b/types/three/examples/jsm/nodes/accessors/BitangentNode.d.ts index 21fa2a025..281ba0c43 100644 --- a/types/three/examples/jsm/nodes/accessors/BitangentNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/BitangentNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import MathNode from '../math/MathNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import MathNode from "../math/MathNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type BitangentNodeScope = | typeof BitangentNode.LOCAL @@ -9,10 +9,10 @@ export type BitangentNodeScope = | typeof BitangentNode.GEOMETRY; export default class BitangentNode extends Node { - static GEOMETRY: 'geometry'; - static LOCAL: 'local'; - static VIEW: 'view'; - static WORLD: 'world'; + static GEOMETRY: "geometry"; + static LOCAL: "local"; + static VIEW: "view"; + static WORLD: "world"; scope: BitangentNodeScope; diff --git a/types/three/examples/jsm/nodes/accessors/BufferNode.d.ts b/types/three/examples/jsm/nodes/accessors/BufferNode.d.ts index e82cc6591..fba5be231 100644 --- a/types/three/examples/jsm/nodes/accessors/BufferNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/BufferNode.d.ts @@ -1,6 +1,6 @@ -import { NodeTypeOption } from '../core/constants.js'; -import UniformNode from '../core/UniformNode.js'; -import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeTypeOption } from "../core/constants.js"; +import UniformNode from "../core/UniformNode.js"; +import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class BufferNode extends UniformNode> { isBufferNode: true; diff --git a/types/three/examples/jsm/nodes/accessors/CameraNode.d.ts b/types/three/examples/jsm/nodes/accessors/CameraNode.d.ts index c1fffee63..eec7255ce 100644 --- a/types/three/examples/jsm/nodes/accessors/CameraNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/CameraNode.d.ts @@ -1,5 +1,5 @@ -import Object3DNode, { Object3DNodeScope } from './Object3DNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Object3DNode, { Object3DNodeScope } from "./Object3DNode.js"; export type CameraNodeScope = | Object3DNodeScope @@ -12,11 +12,11 @@ export type CameraNodeScope = export default class CameraNode extends Object3DNode { constructor(scope?: string); - static PROJECTION_MATRIX: 'projectionMatrix'; - static PROJECTION_MATRIX_INVERSE: 'projectionMatrixInverse'; - static NEAR: 'near'; - static FAR: 'far'; - static LOG_DEPTH: 'logDepth'; + static PROJECTION_MATRIX: "projectionMatrix"; + static PROJECTION_MATRIX_INVERSE: "projectionMatrixInverse"; + static NEAR: "near"; + static FAR: "far"; + static LOG_DEPTH: "logDepth"; } export const cameraProjectionMatrix: ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts b/types/three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts index a12b0615c..6a883470a 100644 --- a/types/three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/CubeTextureNode.d.ts @@ -1,7 +1,7 @@ -import { CubeTexture } from '../../../../src/Three.js'; -import TextureNode from './TextureNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { CubeTexture } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import TextureNode from "./TextureNode.js"; export default class CubeTextureNode extends TextureNode { isCubeTextureNode: boolean; @@ -19,7 +19,7 @@ export const cubeTexture: ( levelNode?: NodeRepresentation, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { cubeTexture: typeof cubeTexture; } diff --git a/types/three/examples/jsm/nodes/accessors/InstanceNode.d.ts b/types/three/examples/jsm/nodes/accessors/InstanceNode.d.ts index 5a3bd438f..cc59d87df 100644 --- a/types/three/examples/jsm/nodes/accessors/InstanceNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/InstanceNode.d.ts @@ -1,6 +1,6 @@ -import { InstancedMesh } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { InstancedMesh } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class InstanceNode extends Node { instanceMesh: InstancedMesh; diff --git a/types/three/examples/jsm/nodes/accessors/MaterialNode.d.ts b/types/three/examples/jsm/nodes/accessors/MaterialNode.d.ts index 82a47c75a..ef17737ca 100644 --- a/types/three/examples/jsm/nodes/accessors/MaterialNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/MaterialNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type MaterialNodeScope = | typeof MaterialNode.ALPHA_TEST @@ -11,13 +11,13 @@ export type MaterialNodeScope = | typeof MaterialNode.ROTATION; export default class MaterialNode extends Node { - static ALPHA_TEST: 'alphaTest'; - static COLOR: 'color'; - static OPACITY: 'opacity'; - static ROUGHNESS: 'roughness'; - static METALNESS: 'metalness'; - static EMISSIVE: 'emissive'; - static ROTATION: 'rotation'; + static ALPHA_TEST: "alphaTest"; + static COLOR: "color"; + static OPACITY: "opacity"; + static ROUGHNESS: "roughness"; + static METALNESS: "metalness"; + static EMISSIVE: "emissive"; + static ROTATION: "rotation"; scope: MaterialNodeScope; constructor(scope?: MaterialNodeScope); diff --git a/types/three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts b/types/three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts index b88b21059..268ca60d4 100644 --- a/types/three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/MaterialReferenceNode.d.ts @@ -1,6 +1,6 @@ -import { Material } from '../../../../src/Three.js'; -import ReferenceNode from './ReferenceNode.js'; -import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Material } from "../../../../src/Three.js"; +import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import ReferenceNode from "./ReferenceNode.js"; export default class MaterialReferenceNode extends ReferenceNode { constructor(property: string, inputType: string, material?: Material | null); diff --git a/types/three/examples/jsm/nodes/accessors/ModelNode.d.ts b/types/three/examples/jsm/nodes/accessors/ModelNode.d.ts index 8ec98c783..e340c7193 100644 --- a/types/three/examples/jsm/nodes/accessors/ModelNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/ModelNode.d.ts @@ -1,5 +1,5 @@ -import Object3DNode, { Object3DNodeScope } from './Object3DNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Object3DNode, { Object3DNodeScope } from "./Object3DNode.js"; /** * Similar to {@link Object3DNode} but the object comes from {@link NodeFrame} diff --git a/types/three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts b/types/three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts index 63463035d..75a36a3a7 100644 --- a/types/three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/ModelViewProjectionNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import PositionNode from './PositionNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import PositionNode from "./PositionNode.js"; export default class ModelViewProjectionNode extends Node { constructor(positionNode?: PositionNode); diff --git a/types/three/examples/jsm/nodes/accessors/NormalNode.d.ts b/types/three/examples/jsm/nodes/accessors/NormalNode.d.ts index 1fdda17e8..3eec445c7 100644 --- a/types/three/examples/jsm/nodes/accessors/NormalNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/NormalNode.d.ts @@ -1,13 +1,13 @@ -import Node from '../core/Node.js'; -import VarNode from '../core/VarNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import VarNode from "../core/VarNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type NormalNodeScope = typeof NormalNode.GEOMETRY | typeof NormalNode.LOCAL | typeof NormalNode.VIEW; export default class NormalNode extends Node { - static GEOMETRY: 'geometry'; - static LOCAL: 'local'; - static VIEW: 'view'; + static GEOMETRY: "geometry"; + static LOCAL: "local"; + static VIEW: "view"; scope: NormalNodeScope; constructor(scope?: NormalNodeScope); diff --git a/types/three/examples/jsm/nodes/accessors/Object3DNode.d.ts b/types/three/examples/jsm/nodes/accessors/Object3DNode.d.ts index a8f93edbe..2b31e7e06 100644 --- a/types/three/examples/jsm/nodes/accessors/Object3DNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/Object3DNode.d.ts @@ -1,5 +1,5 @@ -import { Object3D } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; +import { Object3D } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; export type Object3DNodeScope = | typeof Object3DNode.VIEW_MATRIX @@ -16,11 +16,11 @@ export default class Object3DNode extends Node { constructor(scope?: string, object3d?: Object3D | null); - static VIEW_MATRIX: 'viewMatrix'; - static NORMAL_MATRIX: 'normalMatrix'; - static WORLD_MATRIX: 'worldMatrix'; - static POSITION: 'position'; - static SCALE: 'scale'; - static VIEW_POSITION: 'viewPosition'; - static DIRECTION: 'direction'; + static VIEW_MATRIX: "viewMatrix"; + static NORMAL_MATRIX: "normalMatrix"; + static WORLD_MATRIX: "worldMatrix"; + static POSITION: "position"; + static SCALE: "scale"; + static VIEW_POSITION: "viewPosition"; + static DIRECTION: "direction"; } diff --git a/types/three/examples/jsm/nodes/accessors/PointUVNode.d.ts b/types/three/examples/jsm/nodes/accessors/PointUVNode.d.ts index 10ae31ed4..017a43ffa 100644 --- a/types/three/examples/jsm/nodes/accessors/PointUVNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/PointUVNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class PointUVNode extends Node { isPointUVNode: true; diff --git a/types/three/examples/jsm/nodes/accessors/PositionNode.d.ts b/types/three/examples/jsm/nodes/accessors/PositionNode.d.ts index e4450069f..36f8f1cbc 100644 --- a/types/three/examples/jsm/nodes/accessors/PositionNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/PositionNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type PositionNodeScope = | typeof PositionNode.GEOMETRY @@ -10,12 +10,12 @@ export type PositionNodeScope = | typeof PositionNode.VIEW_DIRECTION; export default class PositionNode extends Node { - static GEOMETRY: 'geometry'; - static LOCAL: 'local'; - static WORLD: 'world'; - static WORLD_DIRECTION: 'worldDirection'; - static VIEW: 'view'; - static VIEW_DIRECTION: 'viewDirection'; + static GEOMETRY: "geometry"; + static LOCAL: "local"; + static WORLD: "world"; + static WORLD_DIRECTION: "worldDirection"; + static VIEW: "view"; + static VIEW_DIRECTION: "viewDirection"; scope: PositionNodeScope; constructor(scope?: PositionNodeScope); diff --git a/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts b/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts index fd64d0f9f..870dcf585 100644 --- a/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/ReferenceNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import { NodeTypeOption } from '../core/constants.js'; -import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeTypeOption } from "../core/constants.js"; +import Node from "../core/Node.js"; +import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ReferenceNode extends Node { object: T; diff --git a/types/three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts b/types/three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts index 06cb794f3..38a0bf5f5 100644 --- a/types/three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/ReflectVectorNode.d.ts @@ -1,10 +1,10 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ReflectVectorNode extends Node { constructor(); - getHash(): 'reflectVector'; + getHash(): "reflectVector"; setup(): Node; } diff --git a/types/three/examples/jsm/nodes/accessors/SkinningNode.d.ts b/types/three/examples/jsm/nodes/accessors/SkinningNode.d.ts index f40f2d24c..7276740d4 100644 --- a/types/three/examples/jsm/nodes/accessors/SkinningNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/SkinningNode.d.ts @@ -1,6 +1,6 @@ -import { SkinnedMesh } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { SkinnedMesh } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class SkinningNode extends Node { skinIndexNode: Node; diff --git a/types/three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts b/types/three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts index 0fec782fe..cb8e9cf26 100644 --- a/types/three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/StorageBufferNode.d.ts @@ -1,6 +1,6 @@ -import BufferNode from './BufferNode.js'; -import { NodeTypeOption } from '../core/constants.js'; -import { NodeOrType, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeTypeOption } from "../core/constants.js"; +import { NodeOrType, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import BufferNode from "./BufferNode.js"; export default class StorageBufferNode extends BufferNode { constructor(value: ArrayLike, bufferType: NodeTypeOption, bufferCount?: number); diff --git a/types/three/examples/jsm/nodes/accessors/TangentNode.d.ts b/types/three/examples/jsm/nodes/accessors/TangentNode.d.ts index 2ddf68fee..6b75c6a97 100644 --- a/types/three/examples/jsm/nodes/accessors/TangentNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/TangentNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import MathNode from '../math/MathNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import MathNode from "../math/MathNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type TangentNodeScope = | typeof TangentNode.LOCAL @@ -9,10 +9,10 @@ export type TangentNodeScope = | typeof TangentNode.GEOMETRY; export default class TangentNode extends Node { - static GEOMETRY: 'geometry'; - static LOCAL: 'local'; - static VIEW: 'view'; - static WORLD: 'world'; + static GEOMETRY: "geometry"; + static LOCAL: "local"; + static VIEW: "view"; + static WORLD: "world"; scope: TangentNodeScope; diff --git a/types/three/examples/jsm/nodes/accessors/TextureBicubicNode.d.ts b/types/three/examples/jsm/nodes/accessors/TextureBicubicNode.d.ts index 11a967b79..947aa6e01 100644 --- a/types/three/examples/jsm/nodes/accessors/TextureBicubicNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/TextureBicubicNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import TempNode from '../core/TempNode.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class TextureBicubicNode extends TempNode { textureNode: Node; @@ -11,7 +11,7 @@ export default class TextureBicubicNode extends TempNode { export const textureBicubic: (textureNode: Node, blurNode?: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { bicubic: typeof textureBicubic; } diff --git a/types/three/examples/jsm/nodes/accessors/TextureNode.d.ts b/types/three/examples/jsm/nodes/accessors/TextureNode.d.ts index aa886d2b0..7fa0aed9e 100644 --- a/types/three/examples/jsm/nodes/accessors/TextureNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/TextureNode.d.ts @@ -1,7 +1,7 @@ -import { Texture } from '../../../../src/Three.js'; -import UniformNode from '../core/UniformNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Texture } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import UniformNode from "../core/UniformNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class TextureNode extends UniformNode { isTextureNode: true; @@ -23,7 +23,7 @@ export const texture: ( ) => ShaderNodeObject; export const sampler: (aTexture: Texture | TextureNode) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { texture: typeof texture; } diff --git a/types/three/examples/jsm/nodes/accessors/UVNode.d.ts b/types/three/examples/jsm/nodes/accessors/UVNode.d.ts index 00eb3d2e5..d138efab2 100644 --- a/types/three/examples/jsm/nodes/accessors/UVNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/UVNode.d.ts @@ -1,5 +1,5 @@ -import AttributeNode from '../core/AttributeNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import AttributeNode from "../core/AttributeNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class UVNode extends AttributeNode { isUVNode: true; diff --git a/types/three/examples/jsm/nodes/accessors/UserDataNode.d.ts b/types/three/examples/jsm/nodes/accessors/UserDataNode.d.ts index 0ac6bdc92..47abe94e2 100644 --- a/types/three/examples/jsm/nodes/accessors/UserDataNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/UserDataNode.d.ts @@ -1,6 +1,6 @@ -import { NodeTypeOption, NodeUserData } from '../core/constants.js'; -import ReferenceNode from './ReferenceNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeTypeOption, NodeUserData } from "../core/constants.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import ReferenceNode from "./ReferenceNode.js"; export default class UserDataNode extends ReferenceNode { userData: NodeUserData | null; diff --git a/types/three/examples/jsm/nodes/accessors/VertexColorNode.d.ts b/types/three/examples/jsm/nodes/accessors/VertexColorNode.d.ts index acfd18161..784ca3c5a 100644 --- a/types/three/examples/jsm/nodes/accessors/VertexColorNode.d.ts +++ b/types/three/examples/jsm/nodes/accessors/VertexColorNode.d.ts @@ -1,5 +1,5 @@ -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import AttributeNode from '../core/AttributeNode.js'; +import AttributeNode from "../core/AttributeNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class VertexColorNode extends AttributeNode { readonly isVertexColorNode: true; diff --git a/types/three/examples/jsm/nodes/code/CodeNode.d.ts b/types/three/examples/jsm/nodes/code/CodeNode.d.ts index 7cb607260..be80e42ca 100644 --- a/types/three/examples/jsm/nodes/code/CodeNode.d.ts +++ b/types/three/examples/jsm/nodes/code/CodeNode.d.ts @@ -1,7 +1,7 @@ -import Node from '../core/Node.js'; -import NodeBuilder from '../core/NodeBuilder.js'; -import { NodeTypeOption } from '../core/constants.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeTypeOption } from "../core/constants.js"; +import Node from "../core/Node.js"; +import NodeBuilder from "../core/NodeBuilder.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export interface CodeNodeInclude { build(builder: NodeBuilder): void; diff --git a/types/three/examples/jsm/nodes/code/ExpressionNode.d.ts b/types/three/examples/jsm/nodes/code/ExpressionNode.d.ts index 9425a5aef..7c7a1196e 100644 --- a/types/three/examples/jsm/nodes/code/ExpressionNode.d.ts +++ b/types/three/examples/jsm/nodes/code/ExpressionNode.d.ts @@ -1,6 +1,6 @@ -import { NodeTypeOption } from '../core/constants.js'; -import TempNode from '../core/TempNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeTypeOption } from "../core/constants.js"; +import TempNode from "../core/TempNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ExpressionNode extends TempNode { snipped: string; /* sic */ diff --git a/types/three/examples/jsm/nodes/code/FunctionCallNode.d.ts b/types/three/examples/jsm/nodes/code/FunctionCallNode.d.ts index 588b98095..d3766c577 100644 --- a/types/three/examples/jsm/nodes/code/FunctionCallNode.d.ts +++ b/types/three/examples/jsm/nodes/code/FunctionCallNode.d.ts @@ -1,7 +1,7 @@ -import FunctionNode, { FunctionNodeArguments } from './FunctionNode.js'; -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { ProxiedObject, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { ProxiedObject, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import FunctionNode, { FunctionNodeArguments } from "./FunctionNode.js"; export default class FunctionCallNode

extends TempNode { functionNode: FunctionNode

; @@ -18,7 +18,7 @@ export const call:

( parameters?: ProxiedObject

, ) => ShaderNodeObject>; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { call: typeof call; } diff --git a/types/three/examples/jsm/nodes/code/FunctionNode.d.ts b/types/three/examples/jsm/nodes/code/FunctionNode.d.ts index f589223e4..4a19cf5fb 100644 --- a/types/three/examples/jsm/nodes/code/FunctionNode.d.ts +++ b/types/three/examples/jsm/nodes/code/FunctionNode.d.ts @@ -1,10 +1,10 @@ -import CodeNode, { CodeNodeInclude } from './CodeNode.js'; -import FunctionCallNode from './FunctionCallNode.js'; -import NodeBuilder from '../core/NodeBuilder.js'; -import NodeFunction from '../core/NodeFunction.js'; -import NodeFunctionInput from '../core/NodeFunctionInput.js'; -import Node from '../core/Node.js'; -import { ProxiedObject, ProxiedTuple, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import NodeBuilder from "../core/NodeBuilder.js"; +import NodeFunction from "../core/NodeFunction.js"; +import NodeFunctionInput from "../core/NodeFunctionInput.js"; +import { ProxiedObject, ProxiedTuple, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import CodeNode, { CodeNodeInclude } from "./CodeNode.js"; +import FunctionCallNode from "./FunctionCallNode.js"; export type FunctionNodeArguments = Node[] | { [name: string]: Node }; @@ -17,8 +17,7 @@ export default class FunctionNode

e call(parameters: P): FunctionCallNode

; } -export type Fn

= P extends readonly [...unknown[]] - ? ProxiedTuple

+export type Fn

= P extends readonly [...unknown[]] ? ProxiedTuple

: readonly [ProxiedObject

]; export const func:

( diff --git a/types/three/examples/jsm/nodes/core/ArrayUniformNode.d.ts b/types/three/examples/jsm/nodes/core/ArrayUniformNode.d.ts index 0f94f063c..cc755c041 100644 --- a/types/three/examples/jsm/nodes/core/ArrayUniformNode.d.ts +++ b/types/three/examples/jsm/nodes/core/ArrayUniformNode.d.ts @@ -1,5 +1,5 @@ -import UniformNode from './UniformNode.js'; -import Node from './Node.js'; +import Node from "./Node.js"; +import UniformNode from "./UniformNode.js"; export default class ArrayUniformNode extends UniformNode { isArrayUniformNode: true; diff --git a/types/three/examples/jsm/nodes/core/AssignNode.d.ts b/types/three/examples/jsm/nodes/core/AssignNode.d.ts index 2c29837f7..71f7f23bb 100644 --- a/types/three/examples/jsm/nodes/core/AssignNode.d.ts +++ b/types/three/examples/jsm/nodes/core/AssignNode.d.ts @@ -1,6 +1,6 @@ -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import Node from './Node.js'; -import TempNode from './TempNode.js'; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; +import TempNode from "./TempNode.js"; export default class AssignNode extends TempNode { constructor(targetNode: Node, sourceNode: Node); @@ -10,7 +10,7 @@ export default class AssignNode extends TempNode { export const assign: (targetNode: NodeRepresentation, sourceNode: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { assign: typeof assign; } diff --git a/types/three/examples/jsm/nodes/core/AttributeNode.d.ts b/types/three/examples/jsm/nodes/core/AttributeNode.d.ts index 8c133deb4..cce744e1a 100644 --- a/types/three/examples/jsm/nodes/core/AttributeNode.d.ts +++ b/types/three/examples/jsm/nodes/core/AttributeNode.d.ts @@ -1,7 +1,7 @@ -import { NodeTypeOption } from './constants.js'; -import Node from './Node.js'; -import NodeBuilder from './NodeBuilder.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import { NodeTypeOption } from "./constants.js"; +import Node from "./Node.js"; +import NodeBuilder from "./NodeBuilder.js"; export default class AttributeNode extends Node { constructor(attributeName: string, nodeType?: NodeTypeOption | null); diff --git a/types/three/examples/jsm/nodes/core/BypassNode.d.ts b/types/three/examples/jsm/nodes/core/BypassNode.d.ts index 807164824..e9dbef2cf 100644 --- a/types/three/examples/jsm/nodes/core/BypassNode.d.ts +++ b/types/three/examples/jsm/nodes/core/BypassNode.d.ts @@ -1,5 +1,5 @@ -import Node from './Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; export default class BypassNode extends Node { isBypassNode: true; @@ -11,7 +11,7 @@ export default class BypassNode extends Node { export const bypass: (returnNode: NodeRepresentation, callNode: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { bypass: typeof bypass; } diff --git a/types/three/examples/jsm/nodes/core/CacheNode.d.ts b/types/three/examples/jsm/nodes/core/CacheNode.d.ts index e1272ee8a..4cd49e343 100644 --- a/types/three/examples/jsm/nodes/core/CacheNode.d.ts +++ b/types/three/examples/jsm/nodes/core/CacheNode.d.ts @@ -1,6 +1,6 @@ -import Node from './Node.js'; -import NodeCache from './NodeCache.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; +import NodeCache from "./NodeCache.js"; export default class CacheNode extends Node { isCacheNode: true; @@ -13,7 +13,7 @@ export default class CacheNode extends Node { export const cache: (node: Node, cache?: NodeCache) => ShaderNodeObject; export const globalCache: (node: Node) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { cache: typeof cache; globalCache: typeof globalCache; diff --git a/types/three/examples/jsm/nodes/core/ConstNode.d.ts b/types/three/examples/jsm/nodes/core/ConstNode.d.ts index ddbffbb77..133bc8a32 100644 --- a/types/three/examples/jsm/nodes/core/ConstNode.d.ts +++ b/types/three/examples/jsm/nodes/core/ConstNode.d.ts @@ -1,6 +1,6 @@ -import { NodeTypeOption } from './constants.js'; -import InputNode from './InputNode.js'; -import NodeBuilder from './NodeBuilder.js'; +import { NodeTypeOption } from "./constants.js"; +import InputNode from "./InputNode.js"; +import NodeBuilder from "./NodeBuilder.js"; export default class ConstNode extends InputNode { isConstNode: true; diff --git a/types/three/examples/jsm/nodes/core/ContextNode.d.ts b/types/three/examples/jsm/nodes/core/ContextNode.d.ts index c08d9cc77..344add650 100644 --- a/types/three/examples/jsm/nodes/core/ContextNode.d.ts +++ b/types/three/examples/jsm/nodes/core/ContextNode.d.ts @@ -1,6 +1,6 @@ -import Node from './Node.js'; -import { NodeBuilderContext } from './NodeBuilder.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; +import { NodeBuilderContext } from "./NodeBuilder.js"; export default class ContextNode extends Node { isContextNode: true; @@ -13,7 +13,7 @@ export default class ContextNode extends Node { export const context: (node: NodeRepresentation, context: NodeBuilderContext) => ShaderNodeObject; export const label: (node: NodeRepresentation, label: string) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { context: typeof context; label: typeof label; diff --git a/types/three/examples/jsm/nodes/core/IndexNode.d.ts b/types/three/examples/jsm/nodes/core/IndexNode.d.ts index 61108df92..23dffc0f7 100644 --- a/types/three/examples/jsm/nodes/core/IndexNode.d.ts +++ b/types/three/examples/jsm/nodes/core/IndexNode.d.ts @@ -1,5 +1,5 @@ -import Node from './Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; export type IndexNodeScope = typeof IndexNode.VERTEX | typeof IndexNode.INSTANCE; @@ -10,8 +10,8 @@ export default class IndexNode extends Node { constructor(scope: IndexNodeScope); - static VERTEX: 'vertex'; - static INSTANCE: 'instance'; + static VERTEX: "vertex"; + static INSTANCE: "instance"; } export const vertexIndex: ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/core/InputNode.d.ts b/types/three/examples/jsm/nodes/core/InputNode.d.ts index 25b8e56b9..f980ed330 100644 --- a/types/three/examples/jsm/nodes/core/InputNode.d.ts +++ b/types/three/examples/jsm/nodes/core/InputNode.d.ts @@ -1,8 +1,8 @@ -import { NodeTypeOption } from './constants.js'; -import Node from './Node.js'; -import NodeBuilder from './NodeBuilder.js'; +import { NodeTypeOption } from "./constants.js"; +import Node from "./Node.js"; +import NodeBuilder from "./NodeBuilder.js"; -export type Precision = 'low' | 'medium' | 'high'; +export type Precision = "low" | "medium" | "high"; export default abstract class InputNode extends Node { isInputNode: true; diff --git a/types/three/examples/jsm/nodes/core/LightingModel.d.ts b/types/three/examples/jsm/nodes/core/LightingModel.d.ts index d23fd3dde..62af1651c 100644 --- a/types/three/examples/jsm/nodes/core/LightingModel.d.ts +++ b/types/three/examples/jsm/nodes/core/LightingModel.d.ts @@ -1,6 +1,6 @@ -import Node from './Node.js'; -import NodeBuilder from './NodeBuilder.js'; -import StackNode from './StackNode.js'; +import Node from "./Node.js"; +import NodeBuilder from "./NodeBuilder.js"; +import StackNode from "./StackNode.js"; export interface LightingModelReflectedLight { directDiffuse: Node; diff --git a/types/three/examples/jsm/nodes/core/Node.d.ts b/types/three/examples/jsm/nodes/core/Node.d.ts index 45cbcfb0c..0f3d112c4 100644 --- a/types/three/examples/jsm/nodes/core/Node.d.ts +++ b/types/three/examples/jsm/nodes/core/Node.d.ts @@ -1,6 +1,6 @@ -import { AnyJson, NodeTypeOption, NodeUpdateType } from './constants.js'; -import NodeBuilder from './NodeBuilder.js'; -import NodeFrame from './NodeFrame.js'; +import { AnyJson, NodeTypeOption, NodeUpdateType } from "./constants.js"; +import NodeBuilder from "./NodeBuilder.js"; +import NodeFrame from "./NodeFrame.js"; export default abstract class Node { readonly isNode: true; diff --git a/types/three/examples/jsm/nodes/core/NodeBuilder.d.ts b/types/three/examples/jsm/nodes/core/NodeBuilder.d.ts index 1e31ae57a..ad052c68d 100644 --- a/types/three/examples/jsm/nodes/core/NodeBuilder.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeBuilder.d.ts @@ -6,20 +6,20 @@ import { Texture, TextureEncoding, WebGLRenderTarget, -} from '../../../../src/Three.js'; -import FogNode from '../fog/FogNode.js'; -import LightsNode from '../lighting/LightsNode.js'; -import { AnyObject, NodeShaderStage, NodeTypeOption } from './constants.js'; -import Node from './Node.js'; -import NodeAttribute from './NodeAttribute.js'; -import NodeCache from './NodeCache.js'; -import NodeParser from './NodeParser.js'; -import NodeUniform from './NodeUniform.js'; -import NodeVar from './NodeVar.js'; -import NodeVarying from './NodeVarying.js'; -import StackNode from './StackNode.js'; - -export type BuildStageOption = 'construct' | 'analyze' | 'generate'; +} from "../../../../src/Three.js"; +import FogNode from "../fog/FogNode.js"; +import LightsNode from "../lighting/LightsNode.js"; +import { AnyObject, NodeShaderStage, NodeTypeOption } from "./constants.js"; +import Node from "./Node.js"; +import NodeAttribute from "./NodeAttribute.js"; +import NodeCache from "./NodeCache.js"; +import NodeParser from "./NodeParser.js"; +import NodeUniform from "./NodeUniform.js"; +import NodeVar from "./NodeVar.js"; +import NodeVarying from "./NodeVarying.js"; +import StackNode from "./StackNode.js"; + +export type BuildStageOption = "construct" | "analyze" | "generate"; export interface FlowData { code: string; diff --git a/types/three/examples/jsm/nodes/core/NodeCache.d.ts b/types/three/examples/jsm/nodes/core/NodeCache.d.ts index 7175a1318..1a05d25dc 100644 --- a/types/three/examples/jsm/nodes/core/NodeCache.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeCache.d.ts @@ -1,5 +1,5 @@ -import Node from './Node.js'; -import { NodeData } from './NodeBuilder.js'; +import Node from "./Node.js"; +import { NodeData } from "./NodeBuilder.js"; export default class NodeCache { id: number; diff --git a/types/three/examples/jsm/nodes/core/NodeFrame.d.ts b/types/three/examples/jsm/nodes/core/NodeFrame.d.ts index 7bce9291f..ff5dc4725 100644 --- a/types/three/examples/jsm/nodes/core/NodeFrame.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeFrame.d.ts @@ -1,6 +1,6 @@ -import { Camera, Material, Object3D, Renderer, Scene } from '../../../../src/Three.js'; +import { Camera, Material, Object3D, Renderer, Scene } from "../../../../src/Three.js"; -import Node from './Node.js'; +import Node from "./Node.js"; export default class NodeFrame { time: number; diff --git a/types/three/examples/jsm/nodes/core/NodeFunction.d.ts b/types/three/examples/jsm/nodes/core/NodeFunction.d.ts index d32e10204..d2dc58069 100644 --- a/types/three/examples/jsm/nodes/core/NodeFunction.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeFunction.d.ts @@ -1,4 +1,4 @@ -import NodeFunctionInput from './NodeFunctionInput.js'; +import NodeFunctionInput from "./NodeFunctionInput.js"; export default abstract class NodeFunction { isNodeFunction: true; diff --git a/types/three/examples/jsm/nodes/core/NodeKeywords.d.ts b/types/three/examples/jsm/nodes/core/NodeKeywords.d.ts index eabe21745..741e4d738 100644 --- a/types/three/examples/jsm/nodes/core/NodeKeywords.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeKeywords.d.ts @@ -1,5 +1,5 @@ -import NodeBuilder from './NodeBuilder.js'; -import Node from './Node.js'; +import Node from "./Node.js"; +import NodeBuilder from "./NodeBuilder.js"; export default class NodeKeywords { keywords: string[]; diff --git a/types/three/examples/jsm/nodes/core/NodeParser.d.ts b/types/three/examples/jsm/nodes/core/NodeParser.d.ts index f3a93f6ed..c4aed90ac 100644 --- a/types/three/examples/jsm/nodes/core/NodeParser.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeParser.d.ts @@ -1,4 +1,4 @@ -import Node from './Node.js'; +import Node from "./Node.js"; export default abstract class NodeParser { abstract parseFunction(source: string): Node; diff --git a/types/three/examples/jsm/nodes/core/NodeUniform.d.ts b/types/three/examples/jsm/nodes/core/NodeUniform.d.ts index 9aba52e3c..de5ef22a2 100644 --- a/types/three/examples/jsm/nodes/core/NodeUniform.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeUniform.d.ts @@ -1,4 +1,4 @@ -import UniformNode from './UniformNode.js'; +import UniformNode from "./UniformNode.js"; export default class NodeUniform { readonly isNodeUniform: true; diff --git a/types/three/examples/jsm/nodes/core/NodeUtils.d.ts b/types/three/examples/jsm/nodes/core/NodeUtils.d.ts index 3ef37556d..ad2af3797 100644 --- a/types/three/examples/jsm/nodes/core/NodeUtils.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeUtils.d.ts @@ -1,5 +1,5 @@ -import { Color, Vector2, Vector3, Vector4, Matrix3, Matrix4 } from '../../../../src/Three.js'; -import Node from './Node.js'; +import { Color, Matrix3, Matrix4, Vector2, Vector3, Vector4 } from "../../../../src/Three.js"; +import Node from "./Node.js"; export interface NodeChild { property: string; diff --git a/types/three/examples/jsm/nodes/core/NodeVarying.d.ts b/types/three/examples/jsm/nodes/core/NodeVarying.d.ts index 87a4d69a1..14ac27d4a 100644 --- a/types/three/examples/jsm/nodes/core/NodeVarying.d.ts +++ b/types/three/examples/jsm/nodes/core/NodeVarying.d.ts @@ -1,4 +1,4 @@ -import NodeVar from './NodeVar.js'; +import NodeVar from "./NodeVar.js"; export default class NodeVarying extends NodeVar { needsInterpolation: false; diff --git a/types/three/examples/jsm/nodes/core/PropertyNode.d.ts b/types/three/examples/jsm/nodes/core/PropertyNode.d.ts index c2d9449ed..c70f92703 100644 --- a/types/three/examples/jsm/nodes/core/PropertyNode.d.ts +++ b/types/three/examples/jsm/nodes/core/PropertyNode.d.ts @@ -1,6 +1,6 @@ -import { NodeTypeOption } from './constants.js'; -import Node from './Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import { NodeTypeOption } from "./constants.js"; +import Node from "./Node.js"; export default class PropertyNode extends Node { name: string | null; diff --git a/types/three/examples/jsm/nodes/core/StackNode.d.ts b/types/three/examples/jsm/nodes/core/StackNode.d.ts index 1b4fe1d22..a2dfe7442 100644 --- a/types/three/examples/jsm/nodes/core/StackNode.d.ts +++ b/types/three/examples/jsm/nodes/core/StackNode.d.ts @@ -1,4 +1,4 @@ -import Node from './Node.js'; +import Node from "./Node.js"; export default class StackNode extends Node { isStackNode: true; diff --git a/types/three/examples/jsm/nodes/core/TempNode.d.ts b/types/three/examples/jsm/nodes/core/TempNode.d.ts index 8af613814..f852bd764 100644 --- a/types/three/examples/jsm/nodes/core/TempNode.d.ts +++ b/types/three/examples/jsm/nodes/core/TempNode.d.ts @@ -1,6 +1,6 @@ -import { NodeTypeOption } from './constants.js'; -import Node from './Node.js'; -import NodeBuilder from './NodeBuilder.js'; +import { NodeTypeOption } from "./constants.js"; +import Node from "./Node.js"; +import NodeBuilder from "./NodeBuilder.js"; export default class TempNode extends Node { isTempNode: true; diff --git a/types/three/examples/jsm/nodes/core/UniformNode.d.ts b/types/three/examples/jsm/nodes/core/UniformNode.d.ts index 967d99438..fb09e158d 100644 --- a/types/three/examples/jsm/nodes/core/UniformNode.d.ts +++ b/types/three/examples/jsm/nodes/core/UniformNode.d.ts @@ -1,8 +1,8 @@ -import { NodeTypeOption } from './constants.js'; -import InputNode from './InputNode.js'; -import NodeBuilder from './NodeBuilder.js'; -import Node from './Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import { NodeTypeOption } from "./constants.js"; +import InputNode from "./InputNode.js"; +import Node from "./Node.js"; +import NodeBuilder from "./NodeBuilder.js"; export default class UniformNode extends InputNode { readonly isUniformNode: true; diff --git a/types/three/examples/jsm/nodes/core/VarNode.d.ts b/types/three/examples/jsm/nodes/core/VarNode.d.ts index ed7d2902f..be56114f9 100644 --- a/types/three/examples/jsm/nodes/core/VarNode.d.ts +++ b/types/three/examples/jsm/nodes/core/VarNode.d.ts @@ -1,6 +1,6 @@ -import { OperatorNodeOp } from '../math/OperatorNode.js'; -import Node from './Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { OperatorNodeOp } from "../math/OperatorNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; export default class VarNode extends Node { node: Node; @@ -18,7 +18,7 @@ export default class VarNode extends Node { export const temp: (node: NodeRepresentation, name?: string | null) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { temp: typeof temp; toVar: typeof temp; diff --git a/types/three/examples/jsm/nodes/core/VaryingNode.d.ts b/types/three/examples/jsm/nodes/core/VaryingNode.d.ts index 2a2decd70..8160ec50f 100644 --- a/types/three/examples/jsm/nodes/core/VaryingNode.d.ts +++ b/types/three/examples/jsm/nodes/core/VaryingNode.d.ts @@ -1,5 +1,5 @@ -import Node from './Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import Node from "./Node.js"; export default class VaryingNode extends Node { node: Node; @@ -10,7 +10,7 @@ export default class VaryingNode extends Node { export const varying: (node: NodeRepresentation, name?: string) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { varying: typeof varying; } diff --git a/types/three/examples/jsm/nodes/core/constants.d.ts b/types/three/examples/jsm/nodes/core/constants.d.ts index 7526b25f8..1c3aa91ae 100644 --- a/types/three/examples/jsm/nodes/core/constants.d.ts +++ b/types/three/examples/jsm/nodes/core/constants.d.ts @@ -1,70 +1,70 @@ export enum NodeShaderStage { - VERTEX = 'vertex', - FRAGMENT = 'fragment', + VERTEX = "vertex", + FRAGMENT = "fragment", } export enum NodeUpdateType { - NONE = 'none', - FRAME = 'frame', - RENDER = 'render', - OBJECT = 'object', + NONE = "none", + FRAME = "frame", + RENDER = "render", + OBJECT = "object", } export enum NodeType { - BOOLEAN = 'bool', - INTEGER = 'int', - FLOAT = 'float', - VECTOR2 = 'vec2', - VECTOR3 = 'vec3', - VECTOR4 = 'vec4', - MATRIX2 = 'mat2', - MATRIX3 = 'mat3', - MATRIX4 = 'mat4', + BOOLEAN = "bool", + INTEGER = "int", + FLOAT = "float", + VECTOR2 = "vec2", + VECTOR3 = "vec3", + VECTOR4 = "vec4", + MATRIX2 = "mat2", + MATRIX3 = "mat3", + MATRIX4 = "mat4", } export type NodeTypeOption = - | 'bool' - | 'int' - | 'float' - | 'vec2' - | 'vec3' - | 'vec4' - | 'mat2' - | 'mat3' - | 'mat4' - | 'code' /* CodeNode */ - | 'color' /* NodeUtis.getValueType */ - | 'uint' - | 'int' /* NodeBuilder.getComponentType */ - | 'void' - | 'property' - | 'sampler' - | 'texture' - | 'cubeTexture' /* NodeBuilder.isReference */ - | 'ivec2' - | 'uvec2' - | 'bvec2' /* ShaderNodeBaseElements */ - | 'ivec3' - | 'uvec3' - | 'bvec3' - | 'ivec4' - | 'uvec4' - | 'bvec4' - | 'imat3' - | 'umat3' - | 'bmat3' - | 'imat4' - | 'umat4' - | 'bmat4'; + | "bool" + | "int" + | "float" + | "vec2" + | "vec3" + | "vec4" + | "mat2" + | "mat3" + | "mat4" + | "code" /* CodeNode */ + | "color" /* NodeUtis.getValueType */ + | "uint" + | "int" /* NodeBuilder.getComponentType */ + | "void" + | "property" + | "sampler" + | "texture" + | "cubeTexture" /* NodeBuilder.isReference */ + | "ivec2" + | "uvec2" + | "bvec2" /* ShaderNodeBaseElements */ + | "ivec3" + | "uvec3" + | "bvec3" + | "ivec4" + | "uvec4" + | "bvec4" + | "imat3" + | "umat3" + | "bmat3" + | "imat4" + | "umat4" + | "bmat4"; -export type SwizzleCharacter = 'x' | 'y' | 'z' | 'w' | 'r' | 'g' | 'b' | 'a' | 's' | 't' | 'p' | 'q'; +export type SwizzleCharacter = "x" | "y" | "z" | "w" | "r" | "g" | "b" | "a" | "s" | "t" | "p" | "q"; export type SwizzleOption = Exclude< | `${SwizzleCharacter}` | `${SwizzleCharacter}${SwizzleCharacter}` | `${SwizzleCharacter}${SwizzleCharacter}${SwizzleCharacter}` | `${SwizzleCharacter}${SwizzleCharacter}${SwizzleCharacter}${SwizzleCharacter}`, - 'abs' | 'sqrt' + "abs" | "sqrt" >; /** Should be the same type as Object3D.userData */ diff --git a/types/three/examples/jsm/nodes/display/AfterImageNode.d.ts b/types/three/examples/jsm/nodes/display/AfterImageNode.d.ts index 29a7c7990..336be14c7 100644 --- a/types/three/examples/jsm/nodes/display/AfterImageNode.d.ts +++ b/types/three/examples/jsm/nodes/display/AfterImageNode.d.ts @@ -1,8 +1,8 @@ -import Node from '../core/Node.js'; -import TempNode from '../core/TempNode.js'; -import TextureNode from '../accessors/TextureNode.js'; -import UniformNode from '../core/UniformNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import TextureNode from "../accessors/TextureNode.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import UniformNode from "../core/UniformNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class AfterImageNode extends TempNode { textureNode: TextureNode; @@ -18,7 +18,7 @@ export default class AfterImageNode extends TempNode { export const afterImage: (node: Node, damp?: number) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { afterImage: typeof afterImage; } diff --git a/types/three/examples/jsm/nodes/display/AnamorphicNode.d.ts b/types/three/examples/jsm/nodes/display/AnamorphicNode.d.ts index 001be92aa..2f86b2b2b 100644 --- a/types/three/examples/jsm/nodes/display/AnamorphicNode.d.ts +++ b/types/three/examples/jsm/nodes/display/AnamorphicNode.d.ts @@ -1,8 +1,8 @@ -import { Vector2 } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import TempNode from '../core/TempNode.js'; -import TextureNode from '../accessors/TextureNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Vector2 } from "../../../../src/Three.js"; +import TextureNode from "../accessors/TextureNode.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class AnamorphicNode extends TempNode { textureNode: TextureNode; @@ -25,7 +25,7 @@ export const anamorphic: ( samples?: NodeRepresentation, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { anamorphic: typeof anamorphic; } diff --git a/types/three/examples/jsm/nodes/display/BlendModeNode.d.ts b/types/three/examples/jsm/nodes/display/BlendModeNode.d.ts index a29efb6b5..c335f8295 100644 --- a/types/three/examples/jsm/nodes/display/BlendModeNode.d.ts +++ b/types/three/examples/jsm/nodes/display/BlendModeNode.d.ts @@ -1,7 +1,7 @@ -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNode, ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import { JoinNode } from '../Nodes.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { JoinNode } from "../Nodes.js"; +import { NodeRepresentation, ShaderNode, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export const BurnNode: (args: { base: Node; blend: Node }) => ShaderNodeObject; @@ -18,10 +18,10 @@ export type BlendMode = | typeof BlendModeNode.OVERLAY; export default class BlendModeNode extends TempNode { - static BURN: 'burn'; - static DODGE: 'dodge'; - static SCREEN: 'screen'; - static OVERLAY: 'overlay'; + static BURN: "burn"; + static DODGE: "dodge"; + static SCREEN: "screen"; + static OVERLAY: "overlay"; baseNode: Node; blendMode: BlendMode; @@ -37,7 +37,7 @@ export const dodge: (baseNode: NodeRepresentation, blendNode?: NodeRepresentatio export const overlay: (baseNode: NodeRepresentation, blendNode?: NodeRepresentation) => ShaderNodeObject; export const screen: (baseNode: NodeRepresentation, blendNode?: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { burn: typeof burn; dodge: typeof dodge; diff --git a/types/three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts b/types/three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts index b74114b1a..9719b7796 100644 --- a/types/three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ColorAdjustmentNode.d.ts @@ -1,6 +1,6 @@ -import TempNode from '../core/TempNode.js'; -import MathNode from '../math/MathNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import TempNode from "../core/TempNode.js"; +import MathNode from "../math/MathNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type ColorAdjustmentMethod = | typeof ColorAdjustmentNode.SATURATION @@ -8,9 +8,9 @@ export type ColorAdjustmentMethod = | typeof ColorAdjustmentNode.HUE; export default class ColorAdjustmentNode extends TempNode { - static SATURATION: 'saturation'; - static VIBRANCE: 'vibrance'; - static HUE: 'hue'; + static SATURATION: "saturation"; + static VIBRANCE: "vibrance"; + static HUE: "hue"; method: ColorAdjustmentMethod; @@ -38,7 +38,7 @@ export const luminance: (a: NodeRepresentation, b: NodeRepresentation) => Shader export const threshold: (color: NodeRepresentation, thershold: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { saturation: typeof saturation; vibrance: typeof vibrance; diff --git a/types/three/examples/jsm/nodes/display/ColorSpaceNode.d.ts b/types/three/examples/jsm/nodes/display/ColorSpaceNode.d.ts index 402da260b..ea037320d 100644 --- a/types/three/examples/jsm/nodes/display/ColorSpaceNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ColorSpaceNode.d.ts @@ -1,7 +1,7 @@ -import { ColorSpace } from '../../../../src/Three.js'; -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ColorSpace } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type ColorSpaceNodeMethod = | typeof ColorSpaceNode.LINEAR_TO_LINEAR @@ -9,9 +9,9 @@ export type ColorSpaceNodeMethod = | typeof ColorSpaceNode.sRGB_TO_LINEAR; export default class ColorSpaceNode extends TempNode { - static LINEAR_TO_LINEAR: 'LinearToLinear'; - static LINEAR_TO_sRGB: 'LinearTosRGB'; - static sRGB_TO_LINEAR: 'sRGBToLinear'; + static LINEAR_TO_LINEAR: "LinearToLinear"; + static LINEAR_TO_sRGB: "LinearTosRGB"; + static sRGB_TO_LINEAR: "sRGBToLinear"; method: ColorSpaceNodeMethod; node: Node; @@ -25,7 +25,7 @@ export const colorSpaceToLinear: (node: NodeRepresentation, colorSpace: ColorSpa export const linearTosRGB: (node: NodeRepresentation) => ShaderNodeObject; export const sRGBToLinear: (node: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { linearTosRGB: typeof linearTosRGB; sRGBToLinear: typeof sRGBToLinear; diff --git a/types/three/examples/jsm/nodes/display/FrontFacingNode.d.ts b/types/three/examples/jsm/nodes/display/FrontFacingNode.d.ts index 13737cb36..95a6d6906 100644 --- a/types/three/examples/jsm/nodes/display/FrontFacingNode.d.ts +++ b/types/three/examples/jsm/nodes/display/FrontFacingNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class FrontFacingNode extends Node { isFrontFacingNode: true; diff --git a/types/three/examples/jsm/nodes/display/GaussianBlurNode.d.ts b/types/three/examples/jsm/nodes/display/GaussianBlurNode.d.ts index 658167b84..952fc07dc 100644 --- a/types/three/examples/jsm/nodes/display/GaussianBlurNode.d.ts +++ b/types/three/examples/jsm/nodes/display/GaussianBlurNode.d.ts @@ -1,8 +1,8 @@ -import { Vector2 } from '../../../../src/Three.js'; -import TempNode from '../core/TempNode.js'; -import TextureNode from '../accessors/TextureNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Vector2 } from "../../../../src/Three.js"; +import TextureNode from "../accessors/TextureNode.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class GaussianBlurNode extends TempNode { textureNode: TextureNode; @@ -21,7 +21,7 @@ export default class GaussianBlurNode extends TempNode { export const gaussianBlur: (node: NodeRepresentation, sigma?: number) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { gaussianBlur: typeof gaussianBlur; } diff --git a/types/three/examples/jsm/nodes/display/NormalMapNode.d.ts b/types/three/examples/jsm/nodes/display/NormalMapNode.d.ts index aec0a990d..ea435d04e 100644 --- a/types/three/examples/jsm/nodes/display/NormalMapNode.d.ts +++ b/types/three/examples/jsm/nodes/display/NormalMapNode.d.ts @@ -1,8 +1,8 @@ -import { NormalMapTypes } from '../../../../src/Three.js'; -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import MathNode from '../math/MathNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { NormalMapTypes } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import MathNode from "../math/MathNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class NormalMapNode extends TempNode { node: Node; @@ -17,7 +17,7 @@ export const normalMap: (node: Node, scaleNode?: Node) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { normalMap: typeof normalMap; } diff --git a/types/three/examples/jsm/nodes/display/PassNode.d.ts b/types/three/examples/jsm/nodes/display/PassNode.d.ts index 8229b37a2..8205cdb80 100644 --- a/types/three/examples/jsm/nodes/display/PassNode.d.ts +++ b/types/three/examples/jsm/nodes/display/PassNode.d.ts @@ -1,8 +1,8 @@ -import { Camera, RenderTarget, Scene, Texture } from '../../../../src/Three.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import TempNode from '../core/TempNode.js'; -import TextureNode from '../accessors/TextureNode.js'; -import Node from '../core/Node.js'; +import { Camera, RenderTarget, Scene, Texture } from "../../../../src/Three.js"; +import TextureNode from "../accessors/TextureNode.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; declare class PassTextureNode extends TextureNode { passNode: PassNode; @@ -33,8 +33,8 @@ export default class PassNode extends TempNode { dispose(): void; - static COLOR: 'color'; - static DEPTH: 'depth'; + static COLOR: "color"; + static DEPTH: "depth"; } export type PassNodeScope = typeof PassNode.COLOR | typeof PassNode.DEPTH; diff --git a/types/three/examples/jsm/nodes/display/PosterizeNode.d.ts b/types/three/examples/jsm/nodes/display/PosterizeNode.d.ts index 8893aadc8..36aa66d8e 100644 --- a/types/three/examples/jsm/nodes/display/PosterizeNode.d.ts +++ b/types/three/examples/jsm/nodes/display/PosterizeNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class PosterizeNode extends Node { sourceNode: Node; @@ -13,7 +13,7 @@ export const posterize: ( stepsNode: NodeRepresentation, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { posterize: typeof posterize; } diff --git a/types/three/examples/jsm/nodes/display/ToneMappingNode.d.ts b/types/three/examples/jsm/nodes/display/ToneMappingNode.d.ts index 6cdf050f3..e9f220c80 100644 --- a/types/three/examples/jsm/nodes/display/ToneMappingNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ToneMappingNode.d.ts @@ -1,7 +1,7 @@ -import { ToneMapping } from '../../../../src/Three.js'; -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { ToneMapping } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; // exposure only export const LinearToneMappingNode: Node; diff --git a/types/three/examples/jsm/nodes/display/ViewportDepthNode.d.ts b/types/three/examples/jsm/nodes/display/ViewportDepthNode.d.ts index 0477137c5..82df9f44b 100644 --- a/types/three/examples/jsm/nodes/display/ViewportDepthNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ViewportDepthNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ViewportDepthNode extends Node { scope: ViewportDepthNodeScope; @@ -9,9 +9,9 @@ export default class ViewportDepthNode extends Node { constructor(scope: ViewportDepthNodeScope, valueNode?: Node | null); - static DEPTH: 'depth'; - static DEPTH_TEXTURE: 'depthTexture'; - static DEPTH_PIXEL: 'depthPixel'; + static DEPTH: "depth"; + static DEPTH_TEXTURE: "depthTexture"; + static DEPTH_PIXEL: "depthPixel"; } export type ViewportDepthNodeScope = diff --git a/types/three/examples/jsm/nodes/display/ViewportNode.d.ts b/types/three/examples/jsm/nodes/display/ViewportNode.d.ts index 5693d1141..401cd9ed4 100644 --- a/types/three/examples/jsm/nodes/display/ViewportNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ViewportNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type ViewportNodeScope = | typeof ViewportNode.COORDINATE @@ -10,12 +10,12 @@ export type ViewportNodeScope = | typeof ViewportNode.BOTTOM_RIGHT; export default class ViewportNode extends Node { - static COORDINATE: 'coordinate'; - static RESOLUTION: 'resolution'; - static TOP_LEFT: 'topLeft'; - static BOTTOM_LEFT: 'bottomLeft'; - static TOP_RIGHT: 'topRight'; - static BOTTOM_RIGHT: 'bottomRight'; + static COORDINATE: "coordinate"; + static RESOLUTION: "resolution"; + static TOP_LEFT: "topLeft"; + static BOTTOM_LEFT: "bottomLeft"; + static TOP_RIGHT: "topRight"; + static BOTTOM_RIGHT: "bottomRight"; scope: ViewportNodeScope; isViewportNode: true; diff --git a/types/three/examples/jsm/nodes/display/ViewportSharedTextureNode.d.ts b/types/three/examples/jsm/nodes/display/ViewportSharedTextureNode.d.ts index 51a96e9e7..2faf2bcd6 100644 --- a/types/three/examples/jsm/nodes/display/ViewportSharedTextureNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ViewportSharedTextureNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import ViewportTextureNode from './ViewportTextureNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import ViewportTextureNode from "./ViewportTextureNode.js"; export default class ViewportSharedTextureNode extends ViewportTextureNode { constructor(uvNode?: Node, levelNode?: Node | null); @@ -11,7 +11,7 @@ export const viewportSharedTexture: ( levelNode?: Node | null, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { viewportSharedTexture: typeof viewportSharedTexture; } diff --git a/types/three/examples/jsm/nodes/display/ViewportTextureNode.d.ts b/types/three/examples/jsm/nodes/display/ViewportTextureNode.d.ts index 56341f9e9..ce15b1396 100644 --- a/types/three/examples/jsm/nodes/display/ViewportTextureNode.d.ts +++ b/types/three/examples/jsm/nodes/display/ViewportTextureNode.d.ts @@ -1,8 +1,8 @@ -import { FramebufferTexture } from '../../../../src/Three.js'; -import TextureNode from '../accessors/TextureNode.js'; -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import { NodeUpdateType } from '../core/constants.js'; +import { FramebufferTexture } from "../../../../src/Three.js"; +import TextureNode from "../accessors/TextureNode.js"; +import { NodeUpdateType } from "../core/constants.js"; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ViewportTextureNode extends TextureNode { generateMipmaps: boolean; @@ -25,7 +25,7 @@ export const viewportMipTexture: ( framebufferTexture?: FramebufferTexture | null, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { viewportTexture: typeof viewportTexture; viewportMipTexture: typeof viewportMipTexture; diff --git a/types/three/examples/jsm/nodes/fog/FogExp2Node.d.ts b/types/three/examples/jsm/nodes/fog/FogExp2Node.d.ts index 1cb6b82bb..3ede63e79 100644 --- a/types/three/examples/jsm/nodes/fog/FogExp2Node.d.ts +++ b/types/three/examples/jsm/nodes/fog/FogExp2Node.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import FogNode from './FogNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import FogNode from "./FogNode.js"; export default class FogExp2Node extends FogNode { isFogExp2Node: true; @@ -11,7 +11,7 @@ export default class FogExp2Node extends FogNode { export const densityFog: (colorNode: Node, densityNode: Node) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { densityFog: typeof densityFog; } diff --git a/types/three/examples/jsm/nodes/fog/FogNode.d.ts b/types/three/examples/jsm/nodes/fog/FogNode.d.ts index a7ec7be36..6783c7cf4 100644 --- a/types/three/examples/jsm/nodes/fog/FogNode.d.ts +++ b/types/three/examples/jsm/nodes/fog/FogNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class FogNode extends Node { isFogNode: true; @@ -12,7 +12,7 @@ export default class FogNode extends Node { export const fog: (colorNode: NodeRepresentation, factorNode: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { fog: typeof fog; } diff --git a/types/three/examples/jsm/nodes/fog/FogRangeNode.d.ts b/types/three/examples/jsm/nodes/fog/FogRangeNode.d.ts index 29faba7b8..e2501ca74 100644 --- a/types/three/examples/jsm/nodes/fog/FogRangeNode.d.ts +++ b/types/three/examples/jsm/nodes/fog/FogRangeNode.d.ts @@ -1,6 +1,6 @@ -import FogNode from './FogNode.js'; -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import FogNode from "./FogNode.js"; export default class FogRangeNode extends FogNode { isFogRangeNode: true; @@ -12,7 +12,7 @@ export default class FogRangeNode extends FogNode { export const rangeFog: (colorNode: Node, nearNode: Node, farNode: Node) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { rangeFog: typeof rangeFog; } diff --git a/types/three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts index 00aa1f780..4054f2470 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/BRDF_GGX.d.ts @@ -1,6 +1,6 @@ -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; -import OperatorNode from '../../math/OperatorNode.js'; +import Node from "../../core/Node.js"; +import OperatorNode from "../../math/OperatorNode.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; declare const BRDF_GGX: (args: { lightDirection: Node; diff --git a/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts index 04613175d..51df53226 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Lambert.d.ts @@ -1,6 +1,6 @@ -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; -import OperatorNode from '../../math/OperatorNode.js'; +import Node from "../../core/Node.js"; +import OperatorNode from "../../math/OperatorNode.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; declare const BRDF_Lambert: (args: { diffuseColor: Node }) => ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts index 409c2ac48..67574acb1 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/BRDF_Sheen.d.ts @@ -1,6 +1,6 @@ -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; -import OperatorNode from '../../math/OperatorNode.js'; +import Node from "../../core/Node.js"; +import OperatorNode from "../../math/OperatorNode.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; declare const BRDF_Sheen: (args: { lightDirection: Node }) => ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts index 9ee05a984..ed16ef5e5 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/DFGApprox.d.ts @@ -1,6 +1,6 @@ -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; -import OperatorNode from '../../math/OperatorNode.js'; +import Node from "../../core/Node.js"; +import OperatorNode from "../../math/OperatorNode.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; // Analytical approximation of the DFG LUT, one half of the // split-sum approximation used in indirect specular lighting. diff --git a/types/three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts index a363e41a4..2ba114b41 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/D_GGX.d.ts @@ -1,6 +1,6 @@ -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; -import OperatorNode from '../../math/OperatorNode.js'; +import Node from "../../core/Node.js"; +import OperatorNode from "../../math/OperatorNode.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; // Microfacet Models for Refraction through Rough Surfaces - equation (33) // http://graphicrants.blogspot.com/2013/08/specular-brdf-reference.html diff --git a/types/three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts index 0623af740..ce3f23ffa 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/F_Schlick.d.ts @@ -1,6 +1,6 @@ -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; -import OperatorNode from '../../math/OperatorNode.js'; +import Node from "../../core/Node.js"; +import OperatorNode from "../../math/OperatorNode.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; declare const F_Schlick: (args: { f0: Node; f90: Node; dotVH: Node }) => ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts b/types/three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts index 0a158b8d8..9a16e3cb3 100644 --- a/types/three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts +++ b/types/three/examples/jsm/nodes/functions/BSDF/V_GGX_SmithCorrelated.d.ts @@ -1,5 +1,5 @@ -import { ShaderNode } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; +import Node from "../../core/Node.js"; +import { ShaderNode } from "../../shadernode/ShaderNode.js"; declare const V_GGX_SmithCorrelated: ShaderNode<{ alpha: Node; dotNL: Node; dotNV: Node }>; diff --git a/types/three/examples/jsm/nodes/functions/PhongLightingModel.d.ts b/types/three/examples/jsm/nodes/functions/PhongLightingModel.d.ts index 49d02a593..dc9b1f17b 100644 --- a/types/three/examples/jsm/nodes/functions/PhongLightingModel.d.ts +++ b/types/three/examples/jsm/nodes/functions/PhongLightingModel.d.ts @@ -1,4 +1,4 @@ -import LightingModel from '../core/LightingModel.js'; +import LightingModel from "../core/LightingModel.js"; export default class PhongLightingModel extends LightingModel { specular: boolean; diff --git a/types/three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts b/types/three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts index 6964b163a..697da7278 100644 --- a/types/three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts +++ b/types/three/examples/jsm/nodes/functions/PhysicalLightingModel.d.ts @@ -1,5 +1,5 @@ -import LightingModel from '../core/LightingModel.js'; -import Node from '../core/Node.js'; +import LightingModel from "../core/LightingModel.js"; +import Node from "../core/Node.js"; export default class PhysicalLightingModel extends LightingModel { clearcoat: boolean; diff --git a/types/three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts b/types/three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts index 4d95f032a..d8e3f5c69 100644 --- a/types/three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts +++ b/types/three/examples/jsm/nodes/functions/material/getGeometryRoughness.d.ts @@ -1,4 +1,4 @@ -import { ShaderNode } from '../../shadernode/ShaderNode.js'; +import { ShaderNode } from "../../shadernode/ShaderNode.js"; declare const getGeometryRoughness: ShaderNode; diff --git a/types/three/examples/jsm/nodes/functions/material/getRoughness.d.ts b/types/three/examples/jsm/nodes/functions/material/getRoughness.d.ts index 8ec087a61..76fed3f92 100644 --- a/types/three/examples/jsm/nodes/functions/material/getRoughness.d.ts +++ b/types/three/examples/jsm/nodes/functions/material/getRoughness.d.ts @@ -1,5 +1,5 @@ -import { ShaderNode } from '../../shadernode/ShaderNode.js'; -import Node from '../../core/Node.js'; +import Node from "../../core/Node.js"; +import { ShaderNode } from "../../shadernode/ShaderNode.js"; declare const getRoughness: ShaderNode<{ roughness: Node }>; diff --git a/types/three/examples/jsm/nodes/geometry/RangeNode.d.ts b/types/three/examples/jsm/nodes/geometry/RangeNode.d.ts index 23f0ed3e8..f9e71e2ab 100644 --- a/types/three/examples/jsm/nodes/geometry/RangeNode.d.ts +++ b/types/three/examples/jsm/nodes/geometry/RangeNode.d.ts @@ -1,7 +1,7 @@ -import { Color, Vector2, Vector3, Vector4 } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import NodeBuilder from '../core/NodeBuilder.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Color, Vector2, Vector3, Vector4 } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import NodeBuilder from "../core/NodeBuilder.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type RangeModeBound = number | Color | Vector2 | Vector3 | Vector4; diff --git a/types/three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts b/types/three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts index 56fd73ca7..162411bed 100644 --- a/types/three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts +++ b/types/three/examples/jsm/nodes/gpgpu/ComputeNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class ComputeNode extends Node { isComputeNode: true; @@ -17,7 +17,7 @@ export const compute: ( workgroupSize: number[], ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { compute: typeof compute; } diff --git a/types/three/examples/jsm/nodes/lighting/AONode.d.ts b/types/three/examples/jsm/nodes/lighting/AONode.d.ts index f5a493dfd..998ec5236 100644 --- a/types/three/examples/jsm/nodes/lighting/AONode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/AONode.d.ts @@ -1,5 +1,5 @@ -import LightingNode from './LightingNode.js'; -import Node from '../core/Node.js'; +import Node from "../core/Node.js"; +import LightingNode from "./LightingNode.js"; export default class AONode extends LightingNode { aoNode: Node | null; diff --git a/types/three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts b/types/three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts index 1cfe9790c..0ef1c3880 100644 --- a/types/three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/AnalyticLightNode.d.ts @@ -1,6 +1,6 @@ -import LightingNode from './LightingNode.js'; -import { Light } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; +import { Light } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import LightingNode from "./LightingNode.js"; export default class AnalyticLightNode extends LightingNode { light: T | null; diff --git a/types/three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts b/types/three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts index cedcfb252..6f3d70042 100644 --- a/types/three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/EnvironmentNode.d.ts @@ -1,5 +1,5 @@ -import LightingNode from './LightingNode.js'; -import Node from '../core/Node.js'; +import Node from "../core/Node.js"; +import LightingNode from "./LightingNode.js"; export default class EnvironmentNode extends LightingNode { envNode: Node | null; diff --git a/types/three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts b/types/three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts index 7ed7e0263..0ee32d5df 100644 --- a/types/three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/HemisphereLightNode.d.ts @@ -1,7 +1,7 @@ -import AnalyticLightNode from './AnalyticLightNode.js'; -import Object3DNode from '../accessors/Object3DNode.js'; -import { HemisphereLight } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; +import { HemisphereLight } from "../../../../src/Three.js"; +import Object3DNode from "../accessors/Object3DNode.js"; +import Node from "../core/Node.js"; +import AnalyticLightNode from "./AnalyticLightNode.js"; export default class HemisphereLightNode extends AnalyticLightNode { lightPositionNode: Object3DNode; diff --git a/types/three/examples/jsm/nodes/lighting/LightUtils.d.ts b/types/three/examples/jsm/nodes/lighting/LightUtils.d.ts index 54da787d9..72cb8a8d7 100644 --- a/types/three/examples/jsm/nodes/lighting/LightUtils.d.ts +++ b/types/three/examples/jsm/nodes/lighting/LightUtils.d.ts @@ -1,4 +1,4 @@ -import { ShaderNode } from '../shadernode/ShaderNode.js'; -import Node from '../core/Node.js'; +import Node from "../core/Node.js"; +import { ShaderNode } from "../shadernode/ShaderNode.js"; export const getDistanceAttenuation: ShaderNode<{ lightDistance: Node; cutoffDistance: Node; decayExponent: Node }>; diff --git a/types/three/examples/jsm/nodes/lighting/LightingContextNode.d.ts b/types/three/examples/jsm/nodes/lighting/LightingContextNode.d.ts index 0ade3c7c5..794e55689 100644 --- a/types/three/examples/jsm/nodes/lighting/LightingContextNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/LightingContextNode.d.ts @@ -1,7 +1,7 @@ -import ContextNode from '../core/ContextNode.js'; -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import LightingModel, { LightingModelIndirectInput } from '../core/LightingModel.js'; +import ContextNode from "../core/ContextNode.js"; +import LightingModel, { LightingModelIndirectInput } from "../core/LightingModel.js"; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class LightingContextNode extends ContextNode { lightingModelNode: LightingModel | null; @@ -20,7 +20,7 @@ export default class LightingContextNode extends ContextNode { export const lightingContext: (node: Node, lightingModelNode?: LightingModel) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { lightingContext: typeof lightingContext; } diff --git a/types/three/examples/jsm/nodes/lighting/LightingNode.d.ts b/types/three/examples/jsm/nodes/lighting/LightingNode.d.ts index c77c301c5..b8657545a 100644 --- a/types/three/examples/jsm/nodes/lighting/LightingNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/LightingNode.d.ts @@ -1,4 +1,4 @@ -import Node from '../core/Node.js'; +import Node from "../core/Node.js"; export default abstract class LightingNode extends Node { constructor(); diff --git a/types/three/examples/jsm/nodes/lighting/LightsNode.d.ts b/types/three/examples/jsm/nodes/lighting/LightsNode.d.ts index 326beae87..2ff7a9938 100644 --- a/types/three/examples/jsm/nodes/lighting/LightsNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/LightsNode.d.ts @@ -1,7 +1,7 @@ -import { Light } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import LightingNode from './LightingNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Light } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import LightingNode from "./LightingNode.js"; export default class LightsNode extends Node { lightNodes: LightingNode[]; @@ -14,8 +14,8 @@ export default class LightsNode extends Node { fromLights(lights: Light[]): this; static setReference( - lightClass: { new (): T }, - lightNodeClass: { new (light: T): LightingNode }, + lightClass: { new(): T }, + lightNodeClass: { new(light: T): LightingNode }, ): void; } diff --git a/types/three/examples/jsm/nodes/lighting/PointLightNode.d.ts b/types/three/examples/jsm/nodes/lighting/PointLightNode.d.ts index 2d8410c46..1d436767e 100644 --- a/types/three/examples/jsm/nodes/lighting/PointLightNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/PointLightNode.d.ts @@ -1,6 +1,6 @@ -import AnalyticLightNode from './AnalyticLightNode.js'; -import Node from '../core/Node.js'; -import { PointLight } from '../../../../src/Three.js'; +import { PointLight } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import AnalyticLightNode from "./AnalyticLightNode.js"; export default class PointLightNode extends AnalyticLightNode { cutoffDistanceNode: Node; diff --git a/types/three/examples/jsm/nodes/lighting/SpotLightNode.d.ts b/types/three/examples/jsm/nodes/lighting/SpotLightNode.d.ts index 4764e3e9f..a2e558374 100644 --- a/types/three/examples/jsm/nodes/lighting/SpotLightNode.d.ts +++ b/types/three/examples/jsm/nodes/lighting/SpotLightNode.d.ts @@ -1,6 +1,6 @@ -import AnalyticLightNode from './AnalyticLightNode.js'; -import Node from '../core/Node.js'; -import { SpotLight } from '../../../../src/Three.js'; +import { SpotLight } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import AnalyticLightNode from "./AnalyticLightNode.js"; export default class PointLightNode extends AnalyticLightNode { directionNode: Node; diff --git a/types/three/examples/jsm/nodes/loaders/NodeLoader.d.ts b/types/three/examples/jsm/nodes/loaders/NodeLoader.d.ts index 223b9c438..bc5355f24 100644 --- a/types/three/examples/jsm/nodes/loaders/NodeLoader.d.ts +++ b/types/three/examples/jsm/nodes/loaders/NodeLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader, LoadingManager, Texture } from '../../../../src/Three.js'; -import { Node, AnyJson } from '../Nodes.js'; +import { Loader, LoadingManager, Texture } from "../../../../src/Three.js"; +import { AnyJson, Node } from "../Nodes.js"; export interface NodeLoaderResult { [hash: string]: Node; diff --git a/types/three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts b/types/three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts index fabdc4203..def9d306d 100644 --- a/types/three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts +++ b/types/three/examples/jsm/nodes/loaders/NodeMaterialLoader.d.ts @@ -1,5 +1,5 @@ -import { MaterialLoader } from '../../../../src/Three.js'; -import { NodeLoaderResult } from './NodeLoader.js'; +import { MaterialLoader } from "../../../../src/Three.js"; +import { NodeLoaderResult } from "./NodeLoader.js"; export default class NodeMaterialLoader extends MaterialLoader { nodes: NodeLoaderResult; diff --git a/types/three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts b/types/three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts index 807f14613..8f709d72f 100644 --- a/types/three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts +++ b/types/three/examples/jsm/nodes/loaders/NodeObjectLoader.d.ts @@ -1,6 +1,6 @@ -import { NodeLoaderResult } from './NodeLoader.js'; -import { Material, ObjectLoader, Texture } from '../../../../src/Three.js'; -import { AnyJson } from '../core/constants.js'; +import { Material, ObjectLoader, Texture } from "../../../../src/Three.js"; +import { AnyJson } from "../core/constants.js"; +import { NodeLoaderResult } from "./NodeLoader.js"; export default class NodeObjectLoader extends ObjectLoader { parseNodes(json: AnyJson, textures: { [key: string]: Texture }): NodeLoaderResult; diff --git a/types/three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts index 3532149c2..ddfb8590f 100644 --- a/types/three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/LineBasicNodeMaterial.d.ts @@ -1,5 +1,5 @@ -import NodeMaterial from './NodeMaterial.js'; -import { ShaderMaterialParameters } from '../../../../src/Three.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import NodeMaterial from "./NodeMaterial.js"; export default class LineBasicNodeMaterial extends NodeMaterial { readonly isLineBasicNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/Materials.d.ts b/types/three/examples/jsm/nodes/materials/Materials.d.ts index 4dc25e820..7fb8076c9 100644 --- a/types/three/examples/jsm/nodes/materials/Materials.d.ts +++ b/types/three/examples/jsm/nodes/materials/Materials.d.ts @@ -1,9 +1,9 @@ -export { default as NodeMaterial } from './NodeMaterial.js'; -export { default as LineBasicNodeMaterial } from './LineBasicNodeMaterial.js'; -export { default as MeshBasicNodeMaterial } from './MeshBasicNodeMaterial.js'; -export { default as MeshPhongNodeMaterial } from './MeshPhongNodeMaterial.js'; -export { default as MeshStandardNodeMaterial } from './MeshStandardNodeMaterial.js'; -export { default as MeshPhysicalNodeMaterial } from './MeshPhysicalNodeMaterial.js'; -export { default as MeshSSSPhysicalNodeMaterial } from './MeshSSSNodeMaterial.js'; -export { default as PointsNodeMaterial } from './PointsNodeMaterial.js'; -export { default as SpriteNodeMaterial } from './SpriteNodeMaterial.js'; +export { default as LineBasicNodeMaterial } from "./LineBasicNodeMaterial.js"; +export { default as MeshBasicNodeMaterial } from "./MeshBasicNodeMaterial.js"; +export { default as MeshPhongNodeMaterial } from "./MeshPhongNodeMaterial.js"; +export { default as MeshPhysicalNodeMaterial } from "./MeshPhysicalNodeMaterial.js"; +export { default as MeshSSSPhysicalNodeMaterial } from "./MeshSSSNodeMaterial.js"; +export { default as MeshStandardNodeMaterial } from "./MeshStandardNodeMaterial.js"; +export { default as NodeMaterial } from "./NodeMaterial.js"; +export { default as PointsNodeMaterial } from "./PointsNodeMaterial.js"; +export { default as SpriteNodeMaterial } from "./SpriteNodeMaterial.js"; diff --git a/types/three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts index c0eecb35d..06e1159bc 100644 --- a/types/three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/MeshBasicNodeMaterial.d.ts @@ -1,5 +1,5 @@ -import NodeMaterial from './NodeMaterial.js'; -import { ShaderMaterialParameters } from '../../../../src/Three.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import NodeMaterial from "./NodeMaterial.js"; export default class MeshBasicNodeMaterial extends NodeMaterial { readonly isMeshBasicNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts index af67feda7..d6410cb44 100644 --- a/types/three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/MeshPhongNodeMaterial.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterialParameters } from '../../../../src/Three.js'; -import NodeMaterial from './NodeMaterial.js'; -import Node from '../core/Node.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import NodeMaterial from "./NodeMaterial.js"; export default class MeshPhongNodeMaterial extends NodeMaterial { readonly isMeshPhongNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts index b21629054..1808aefe1 100644 --- a/types/three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/MeshPhysicalNodeMaterial.d.ts @@ -1,7 +1,7 @@ -import { ShaderMaterialParameters } from '../../../../src/Three.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; -import MeshStandardNodeMaterial from './MeshStandardNodeMaterial.js'; -import Node from '../core/Node.js'; +import Node from "../core/Node.js"; +import MeshStandardNodeMaterial from "./MeshStandardNodeMaterial.js"; export default class MeshPhysicalNodeMaterial extends MeshStandardNodeMaterial { readonly isMeshPhysicalNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts index 6944ba039..8bbe0622e 100644 --- a/types/three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/MeshSSSNodeMaterial.d.ts @@ -1,7 +1,7 @@ -import { ShaderMaterialParameters } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import ConstNode from '../core/ConstNode.js'; -import MeshPhysicalNodeMaterial from './MeshPhysicalNodeMaterial.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import ConstNode from "../core/ConstNode.js"; +import Node from "../core/Node.js"; +import MeshPhysicalNodeMaterial from "./MeshPhysicalNodeMaterial.js"; export default class MeshSSSNodeMaterial extends MeshPhysicalNodeMaterial { thicknessColorNode: Node | null; diff --git a/types/three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts index bca6d50a9..9fe41a6f2 100644 --- a/types/three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/MeshStandardNodeMaterial.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterialParameters } from '../../../../src/Three.js'; -import Node from '../core/Node.js'; -import NodeMaterial from './NodeMaterial.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import NodeMaterial from "./NodeMaterial.js"; export default class MeshStandardNodeMaterial extends NodeMaterial { readonly isMeshStandardNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/NodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/NodeMaterial.d.ts index 46f28806c..bb005f062 100644 --- a/types/three/examples/jsm/nodes/materials/NodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/NodeMaterial.d.ts @@ -8,18 +8,18 @@ import { PointsMaterial, ShaderMaterial, SpriteMaterial, -} from '../../../../src/Three.js'; -import NodeBuilder from '../core/NodeBuilder.js'; -import Node from '../core/Node.js'; -import LineBasicNodeMaterial from './LineBasicNodeMaterial.js'; -import MeshBasicNodeMaterial from './MeshBasicNodeMaterial.js'; -import MeshPhysicalNodeMaterial from './MeshPhysicalNodeMaterial.js'; -import MeshStandardNodeMaterial from './MeshStandardNodeMaterial.js'; -import PointsNodeMaterial from './PointsNodeMaterial.js'; -import SpriteNodeMaterial from './SpriteNodeMaterial.js'; -import LightsNode from '../lighting/LightsNode.js'; -import LightingModel from '../core/LightingModel.js'; -import MeshPhongNodeMaterial from './MeshPhongNodeMaterial.js'; +} from "../../../../src/Three.js"; +import LightingModel from "../core/LightingModel.js"; +import Node from "../core/Node.js"; +import NodeBuilder from "../core/NodeBuilder.js"; +import LightsNode from "../lighting/LightsNode.js"; +import LineBasicNodeMaterial from "./LineBasicNodeMaterial.js"; +import MeshBasicNodeMaterial from "./MeshBasicNodeMaterial.js"; +import MeshPhongNodeMaterial from "./MeshPhongNodeMaterial.js"; +import MeshPhysicalNodeMaterial from "./MeshPhysicalNodeMaterial.js"; +import MeshStandardNodeMaterial from "./MeshStandardNodeMaterial.js"; +import PointsNodeMaterial from "./PointsNodeMaterial.js"; +import SpriteNodeMaterial from "./SpriteNodeMaterial.js"; export default class NodeMaterial extends ShaderMaterial { readonly isNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts index e4d74454f..ae3b1a0d6 100644 --- a/types/three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/PointsNodeMaterial.d.ts @@ -1,6 +1,6 @@ -import NodeMaterial from './NodeMaterial.js'; -import { ShaderMaterialParameters } from '../../../../src/Three.js'; -import { Node } from '../Nodes.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import { Node } from "../Nodes.js"; +import NodeMaterial from "./NodeMaterial.js"; export default class PointsNodeMaterial extends NodeMaterial { readonly isPointsNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts b/types/three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts index 98a3666e1..8e5cc27ff 100644 --- a/types/three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts +++ b/types/three/examples/jsm/nodes/materials/SpriteNodeMaterial.d.ts @@ -1,7 +1,7 @@ -import NodeMaterial from './NodeMaterial.js'; -import { ShaderMaterialParameters } from '../../../../src/Three.js'; -import { NodeBuilder } from '../Nodes.js'; -import Node from '../core/Node.js'; +import { ShaderMaterialParameters } from "../../../../src/Three.js"; +import Node from "../core/Node.js"; +import { NodeBuilder } from "../Nodes.js"; +import NodeMaterial from "./NodeMaterial.js"; export default class SpriteNodeMaterial extends NodeMaterial { isSpriteNodeMaterial: true; diff --git a/types/three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts b/types/three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts index 948d5a663..aadd0451c 100644 --- a/types/three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts +++ b/types/three/examples/jsm/nodes/materialx/MaterialXNodes.d.ts @@ -1,7 +1,7 @@ -import { mx_hsvtorgb, mx_rgbtohsv } from './lib/mx_hsv.js'; -import Node from '../core/Node.js'; -import MathNode from '../math/MathNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import MathNode from "../math/MathNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; +import { mx_hsvtorgb, mx_rgbtohsv } from "./lib/mx_hsv.js"; export function mx_aastep(threshold?: NodeRepresentation, value?: NodeRepresentation): ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts b/types/three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts index 89fbbbd69..ca2bf3853 100644 --- a/types/three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts +++ b/types/three/examples/jsm/nodes/materialx/lib/mx_hsv.d.ts @@ -1,6 +1,6 @@ -import Node from '../../core/Node.js'; -import { Fn } from '../../code/FunctionNode.js'; -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; +import { Fn } from "../../code/FunctionNode.js"; +import Node from "../../core/Node.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; export function mx_hsvtorgb(...params: Fn<[Node]>): ShaderNodeObject; export function mx_rgbtohsv(...params: Fn<[Node]>): ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts b/types/three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts index 34ccf7be9..4dc1d1f9e 100644 --- a/types/three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts +++ b/types/three/examples/jsm/nodes/materialx/lib/mx_noise.d.ts @@ -1,6 +1,6 @@ -import Node from '../../core/Node.js'; -import { Fn } from '../../code/FunctionNode.js'; -import { ShaderNodeObject } from '../../shadernode/ShaderNode.js'; +import { Fn } from "../../code/FunctionNode.js"; +import Node from "../../core/Node.js"; +import { ShaderNodeObject } from "../../shadernode/ShaderNode.js"; export function mx_perlin_noise_float(...params: Fn<[Node]>): ShaderNodeObject; export function mx_cell_noise_float(...params: Fn<[Node]>): ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/math/CondNode.d.ts b/types/three/examples/jsm/nodes/math/CondNode.d.ts index 21c51e653..99d908bfd 100644 --- a/types/three/examples/jsm/nodes/math/CondNode.d.ts +++ b/types/three/examples/jsm/nodes/math/CondNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class CondNode extends Node { condNode: Node; @@ -15,7 +15,7 @@ export function cond( elseNode: NodeRepresentation, ): ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { cond: typeof cond; } diff --git a/types/three/examples/jsm/nodes/math/HashNode.d.ts b/types/three/examples/jsm/nodes/math/HashNode.d.ts index dad209498..8e89ac588 100644 --- a/types/three/examples/jsm/nodes/math/HashNode.d.ts +++ b/types/three/examples/jsm/nodes/math/HashNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class HashNode extends Node { seedNode: Node; @@ -9,7 +9,7 @@ export default class HashNode extends Node { export const hash: (seedNode: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { hash: typeof hash; } diff --git a/types/three/examples/jsm/nodes/math/MathNode.d.ts b/types/three/examples/jsm/nodes/math/MathNode.d.ts index 79a2eb847..e1d216722 100644 --- a/types/three/examples/jsm/nodes/math/MathNode.d.ts +++ b/types/three/examples/jsm/nodes/math/MathNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import TempNode from '../core/TempNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type MathNodeMethod1 = | typeof MathNode.RADIANS @@ -59,58 +59,58 @@ export type MathNodeMethod = MathNodeMethod1 | MathNodeMethod2 | MathNodeMethod3 export default class MathNode extends TempNode { // 1 input - static RADIANS: 'radians'; - static DEGREES: 'degrees'; - static EXP: 'exp'; - static EXP2: 'exp2'; - static LOG: 'log'; - static LOG2: 'log2'; - static SQRT: 'sqrt'; - static INVERSE_SQRT: 'inversesqrt'; - static FLOOR: 'floor'; - static CEIL: 'ceil'; - static NORMALIZE: 'normalize'; - static FRACT: 'fract'; - static SIN: 'sin'; - static COS: 'cos'; - static TAN: 'tan'; - static ASIN: 'asin'; - static ACOS: 'acos'; - static ATAN: 'atan'; - static ABS: 'abs'; - static SIGN: 'sign'; - static LENGTH: 'length'; - static NEGATE: 'negate'; - static ONE_MINUS: 'oneMinus'; - static DFDX: 'dFdx'; - static DFDY: 'dFdy'; - static ROUND: 'round'; - static RECIPROCAL: 'reciprocal'; - static TRUNC: 'trunc'; - static FWIDTH: 'fwidth'; - static BITCAST: 'bitcast'; + static RADIANS: "radians"; + static DEGREES: "degrees"; + static EXP: "exp"; + static EXP2: "exp2"; + static LOG: "log"; + static LOG2: "log2"; + static SQRT: "sqrt"; + static INVERSE_SQRT: "inversesqrt"; + static FLOOR: "floor"; + static CEIL: "ceil"; + static NORMALIZE: "normalize"; + static FRACT: "fract"; + static SIN: "sin"; + static COS: "cos"; + static TAN: "tan"; + static ASIN: "asin"; + static ACOS: "acos"; + static ATAN: "atan"; + static ABS: "abs"; + static SIGN: "sign"; + static LENGTH: "length"; + static NEGATE: "negate"; + static ONE_MINUS: "oneMinus"; + static DFDX: "dFdx"; + static DFDY: "dFdy"; + static ROUND: "round"; + static RECIPROCAL: "reciprocal"; + static TRUNC: "trunc"; + static FWIDTH: "fwidth"; + static BITCAST: "bitcast"; // 2 inputs - static ATAN2: 'atan2'; - static MIN: 'min'; - static MAX: 'max'; - static MOD: 'mod'; - static STEP: 'step'; - static REFLECT: 'reflect'; - static DISTANCE: 'distance'; - static DOT: 'dot'; - static CROSS: 'cross'; - static POW: 'pow'; - static TRANSFORM_DIRECTION: 'transformDirection'; + static ATAN2: "atan2"; + static MIN: "min"; + static MAX: "max"; + static MOD: "mod"; + static STEP: "step"; + static REFLECT: "reflect"; + static DISTANCE: "distance"; + static DOT: "dot"; + static CROSS: "cross"; + static POW: "pow"; + static TRANSFORM_DIRECTION: "transformDirection"; // 3 inputs - static MIX: 'mix'; - static CLAMP: 'clamp'; - static REFRACT: 'refract'; - static SMOOTHSTEP: 'smoothstep'; - static FACEFORWARD: 'faceforward'; + static MIX: "mix"; + static CLAMP: "clamp"; + static REFRACT: "refract"; + static SMOOTHSTEP: "smoothstep"; + static FACEFORWARD: "faceforward"; method: MathNodeMethod; aNode: Node; @@ -196,7 +196,7 @@ export const faceForward: Ternary; export const mixElement: Ternary; export const smoothstepElement: Ternary; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { radians: typeof radians; degrees: typeof degrees; diff --git a/types/three/examples/jsm/nodes/math/MathUtils.d.ts b/types/three/examples/jsm/nodes/math/MathUtils.d.ts index 103081185..d2591618b 100644 --- a/types/three/examples/jsm/nodes/math/MathUtils.d.ts +++ b/types/three/examples/jsm/nodes/math/MathUtils.d.ts @@ -1,4 +1,4 @@ -import { Binary, Ternary } from './MathNode.js'; +import { Binary, Ternary } from "./MathNode.js"; // remapping functions export const parabola: Binary; @@ -6,7 +6,7 @@ export const gain: Binary; export const pcurve: Ternary; export const sinc: Binary; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { parabola: typeof parabola; gain: typeof gain; diff --git a/types/three/examples/jsm/nodes/math/OperatorNode.d.ts b/types/three/examples/jsm/nodes/math/OperatorNode.d.ts index 9f58d98fd..7e89ed0f9 100644 --- a/types/three/examples/jsm/nodes/math/OperatorNode.d.ts +++ b/types/three/examples/jsm/nodes/math/OperatorNode.d.ts @@ -1,26 +1,26 @@ -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type OperatorNodeOp = - | '%' - | '&' - | '|' - | '^' - | '>>' - | '<<' - | '==' - | '&&' - | '||' - | '^^' - | '<' - | '>' - | '<=' - | '>=' - | '+' - | '-' - | '*' - | '/'; + | "%" + | "&" + | "|" + | "^" + | ">>" + | "<<" + | "==" + | "&&" + | "||" + | "^^" + | "<" + | ">" + | "<=" + | ">=" + | "+" + | "-" + | "*" + | "/"; export default class OperatorNode extends TempNode { aNode: Node; @@ -57,7 +57,7 @@ export const bitXor: Operator; export const shiftLeft: Operator; export const shiftRight: Operator; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { add: typeof add; sub: typeof sub; diff --git a/types/three/examples/jsm/nodes/math/TriNoise3D.d.ts b/types/three/examples/jsm/nodes/math/TriNoise3D.d.ts index 3e09b8305..88a92a440 100644 --- a/types/three/examples/jsm/nodes/math/TriNoise3D.d.ts +++ b/types/three/examples/jsm/nodes/math/TriNoise3D.d.ts @@ -1,5 +1,5 @@ -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; -import Node from '../core/Node.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export const tri: (x: NodeRepresentation) => ShaderNodeObject; diff --git a/types/three/examples/jsm/nodes/procedural/CheckerNode.d.ts b/types/three/examples/jsm/nodes/procedural/CheckerNode.d.ts index 8d87bd441..74a1b731e 100644 --- a/types/three/examples/jsm/nodes/procedural/CheckerNode.d.ts +++ b/types/three/examples/jsm/nodes/procedural/CheckerNode.d.ts @@ -1,5 +1,5 @@ -import TempNode from '../core/TempNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class CheckerNode extends TempNode { uvNode: Node; @@ -8,7 +8,7 @@ export default class CheckerNode extends TempNode { export const checker: (uvNode?: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { checker: typeof checker; } diff --git a/types/three/examples/jsm/nodes/shadernode/ShaderNode.d.ts b/types/three/examples/jsm/nodes/shadernode/ShaderNode.d.ts index 12caa26ca..812d23f6c 100644 --- a/types/three/examples/jsm/nodes/shadernode/ShaderNode.d.ts +++ b/types/three/examples/jsm/nodes/shadernode/ShaderNode.d.ts @@ -1,7 +1,7 @@ -import Node from '../core/Node.js'; -import { AnyObject, NodeTypeOption, SwizzleOption } from '../core/constants.js'; -import ConstNode from '../core/ConstNode.js'; -import NodeBuilder from '../core/NodeBuilder.js'; +import { AnyObject, NodeTypeOption, SwizzleOption } from "../core/constants.js"; +import ConstNode from "../core/ConstNode.js"; +import Node from "../core/Node.js"; +import NodeBuilder from "../core/NodeBuilder.js"; export interface NodeElements { append: typeof append; @@ -44,15 +44,20 @@ export interface NodeElements { export function addNodeElement(name: string, nodeElement: unknown): void; -export type Swizzable = T & { - [key in SwizzleOption | number]: ShaderNodeObject; -}; - -export type ShaderNodeObject = T & { - [Key in keyof NodeElements]: NodeElements[Key] extends (node: T, ...args: infer Args) => infer R - ? (...args: Args) => R - : never; -} & Swizzable; +export type Swizzable = + & T + & { + [key in SwizzleOption | number]: ShaderNodeObject; + }; + +export type ShaderNodeObject = + & T + & { + [Key in keyof NodeElements]: NodeElements[Key] extends (node: T, ...args: infer Args) => infer R + ? (...args: Args) => R + : never; + } + & Swizzable; /** anything that can be passed to {@link nodeObject} and returns a proxy */ export type NodeRepresentation = number | boolean | Node | ShaderNodeObject; @@ -61,10 +66,8 @@ export type NodeRepresentation = number | boolean | Node export type NodeObjectOption = NodeRepresentation | string; // same logic as in ShaderNodeObject: number,boolean,node->ShaderNodeObject, otherwise do nothing -export type NodeObject = T extends Node - ? ShaderNodeObject - : T extends number | boolean - ? ShaderNodeObject> +export type NodeObject = T extends Node ? ShaderNodeObject + : T extends number | boolean ? ShaderNodeObject> : T; // opposite of NodeObject: node -> node|ShaderNodeObject|boolean|number, otherwise do nothing @@ -99,25 +102,21 @@ interface Construtors< * */ type OverloadedConstructorsOf = T extends { - new (...args: infer A1): unknown; - new (...args: infer A2): unknown; - new (...args: infer A3): unknown; - new (...args: infer A4): unknown; -} - ? Construtors + new(...args: infer A1): unknown; + new(...args: infer A2): unknown; + new(...args: infer A3): unknown; + new(...args: infer A4): unknown; +} ? Construtors : T extends { - new (...args: infer A1): unknown; - new (...args: infer A2): unknown; - new (...args: infer A3): unknown; - } - ? Construtors + new(...args: infer A1): unknown; + new(...args: infer A2): unknown; + new(...args: infer A3): unknown; + } ? Construtors : T extends { - new (...args: infer A1): unknown; - new (...args: infer A2): unknown; - } - ? Construtors - : T extends new (...args: infer A) => unknown - ? Construtors + new(...args: infer A1): unknown; + new(...args: infer A2): unknown; + } ? Construtors + : T extends new(...args: infer A) => unknown ? Construtors : Construtors; type AnyConstructors = Construtors; @@ -127,29 +126,29 @@ type AnyConstructors = Construtors; */ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions type FilterConstructorsByScope = { - a: S extends T['a'][0] ? T['a'] : undefined; - b: S extends T['b'][0] ? T['b'] : undefined; - c: S extends T['c'][0] ? T['c'] : undefined; - d: S extends T['d'][0] ? T['d'] : undefined; + a: S extends T["a"][0] ? T["a"] : undefined; + b: S extends T["b"][0] ? T["b"] : undefined; + c: S extends T["c"][0] ? T["c"] : undefined; + d: S extends T["d"][0] ? T["d"] : undefined; }; /** * "flattens" the tuple into an union type */ type ConstructorUnion = - | Exclude - | Exclude - | Exclude - | Exclude; + | Exclude + | Exclude + | Exclude + | Exclude; /** * Extract list of possible scopes - union of the first paramter * of all constructors, should it be string */ type ExtractScopes = - | (T['a'][0] extends string ? T['a'][0] : never) - | (T['b'][0] extends string ? T['b'][0] : never) - | (T['c'][0] extends string ? T['c'][0] : never) - | (T['d'][0] extends string ? T['d'][0] : never); + | (T["a"][0] extends string ? T["a"][0] : never) + | (T["b"][0] extends string ? T["b"][0] : never) + | (T["c"][0] extends string ? T["c"][0] : never) + | (T["d"][0] extends string ? T["d"][0] : never); type GetConstructorsByScope = ConstructorUnion, S>>; type GetConstructors = ConstructorUnion>; @@ -159,7 +158,7 @@ export type ConvertType = (...params: unknown[]) => ShaderNodeObject; type NodeArray = { [index in keyof T]: NodeObject }; type NodeObjects = { [key in keyof T]: T[key] extends NodeObjectOption ? NodeObject : T[key] }; -type ConstructedNode = T extends new (...args: any[]) => infer R ? (R extends Node ? R : never) : never; +type ConstructedNode = T extends new(...args: any[]) => infer R ? (R extends Node ? R : never) : never; export type NodeOrType = Node | NodeTypeOption; diff --git a/types/three/examples/jsm/nodes/utils/ArrayElementNode.d.ts b/types/three/examples/jsm/nodes/utils/ArrayElementNode.d.ts index e97f223b6..650f04047 100644 --- a/types/three/examples/jsm/nodes/utils/ArrayElementNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/ArrayElementNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { TempNode } from '../Nodes.js'; +import Node from "../core/Node.js"; +import { TempNode } from "../Nodes.js"; export default class ArrayElementNode extends TempNode { node: Node; diff --git a/types/three/examples/jsm/nodes/utils/ConvertNode.d.ts b/types/three/examples/jsm/nodes/utils/ConvertNode.d.ts index 1b32d3eaf..e2c4a102a 100644 --- a/types/three/examples/jsm/nodes/utils/ConvertNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/ConvertNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeTypeOption } from '../Nodes.js'; +import Node from "../core/Node.js"; +import { NodeTypeOption } from "../Nodes.js"; export default class ConvertNode extends Node { node: Node; diff --git a/types/three/examples/jsm/nodes/utils/DiscardNode.d.ts b/types/three/examples/jsm/nodes/utils/DiscardNode.d.ts index 79089a23e..3e6b6d7c9 100644 --- a/types/three/examples/jsm/nodes/utils/DiscardNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/DiscardNode.d.ts @@ -1,6 +1,6 @@ -import CondNode from '../math/CondNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import CondNode from "../math/CondNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class DiscardNode extends CondNode { constructor(condNode: Node); @@ -9,7 +9,7 @@ export default class DiscardNode extends CondNode { export const inlineDiscard: (condNode: NodeRepresentation) => ShaderNodeObject; export const discard: (condNode: NodeRepresentation) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { discard: typeof discard; } diff --git a/types/three/examples/jsm/nodes/utils/EquirectUVNode.d.ts b/types/three/examples/jsm/nodes/utils/EquirectUVNode.d.ts index bbb213bb4..10f48b03b 100644 --- a/types/three/examples/jsm/nodes/utils/EquirectUVNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/EquirectUVNode.d.ts @@ -1,5 +1,5 @@ -import { PositionNode, TempNode } from '../Nodes.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { PositionNode, TempNode } from "../Nodes.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class EquirectUVNode extends TempNode { constructor(dirNode?: ShaderNodeObject); diff --git a/types/three/examples/jsm/nodes/utils/JoinNode.d.ts b/types/three/examples/jsm/nodes/utils/JoinNode.d.ts index 1e8d567f3..7f456bafa 100644 --- a/types/three/examples/jsm/nodes/utils/JoinNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/JoinNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { TempNode } from '../Nodes.js'; +import Node from "../core/Node.js"; +import { TempNode } from "../Nodes.js"; /** * This node constructs given type from elements, like vec3(a,b,c) diff --git a/types/three/examples/jsm/nodes/utils/MatcapUVNode.d.ts b/types/three/examples/jsm/nodes/utils/MatcapUVNode.d.ts index b32293d65..b59cf8ae6 100644 --- a/types/three/examples/jsm/nodes/utils/MatcapUVNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/MatcapUVNode.d.ts @@ -1,5 +1,5 @@ -import TempNode from '../core/TempNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import TempNode from "../core/TempNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class MatcapUVNode extends TempNode { constructor(); diff --git a/types/three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts b/types/three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts index 30d709dfc..cf2a72352 100644 --- a/types/three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/MaxMipLevelNode.d.ts @@ -1,7 +1,7 @@ -import { Texture } from '../../../../src/Three.js'; -import UniformNode from '../core/UniformNode.js'; -import TextureNode from '../accessors/TextureNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Texture } from "../../../../src/Three.js"; +import TextureNode from "../accessors/TextureNode.js"; +import UniformNode from "../core/UniformNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class MaxMipLevelNode extends UniformNode<0> { textureNode: TextureNode; diff --git a/types/three/examples/jsm/nodes/utils/OscNode.d.ts b/types/three/examples/jsm/nodes/utils/OscNode.d.ts index 7a1451902..d99abbcf4 100644 --- a/types/three/examples/jsm/nodes/utils/OscNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/OscNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type OscNodeMethod = | typeof OscNode.SINE @@ -8,10 +8,10 @@ export type OscNodeMethod = | typeof OscNode.SAWTOOTH; export default class OscNode extends Node { - static SINE: 'sine'; - static SQUARE: 'square'; - static TRIANGLE: 'triangle'; - static SAWTOOTH: 'sawtooth'; + static SINE: "sine"; + static SQUARE: "square"; + static TRIANGLE: "triangle"; + static SAWTOOTH: "sawtooth"; method: OscNodeMethod; timeNode: Node; diff --git a/types/three/examples/jsm/nodes/utils/ReflectorNode.d.ts b/types/three/examples/jsm/nodes/utils/ReflectorNode.d.ts index 548ea8bcf..d56f2f3ea 100644 --- a/types/three/examples/jsm/nodes/utils/ReflectorNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/ReflectorNode.d.ts @@ -1,6 +1,6 @@ -import { Camera, Object3D, RenderTarget } from '../../../../src/Three.js'; -import TextureNode from '../accessors/TextureNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import { Camera, Object3D, RenderTarget } from "../../../../src/Three.js"; +import TextureNode from "../accessors/TextureNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export interface ReflectorNodeParameters { target?: Object3D | undefined; diff --git a/types/three/examples/jsm/nodes/utils/RemapNode.d.ts b/types/three/examples/jsm/nodes/utils/RemapNode.d.ts index aa991a01e..5039cd6fc 100644 --- a/types/three/examples/jsm/nodes/utils/RemapNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/RemapNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class RemapNode extends Node { node: Node; @@ -28,7 +28,7 @@ export const remapClamp: ( outHighNode?: NodeRepresentation, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { remap: typeof remap; remapClamp: typeof remapClamp; diff --git a/types/three/examples/jsm/nodes/utils/RotateNode.d.ts b/types/three/examples/jsm/nodes/utils/RotateNode.d.ts index e069d4b60..34ba61907 100644 --- a/types/three/examples/jsm/nodes/utils/RotateNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/RotateNode.d.ts @@ -1,6 +1,6 @@ -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class RotateNode extends TempNode { positionNode: Node; @@ -14,7 +14,7 @@ export const rotate: ( rotationNode: NodeRepresentation, ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { rotate: typeof rotate; } diff --git a/types/three/examples/jsm/nodes/utils/RotateUVNode.d.ts b/types/three/examples/jsm/nodes/utils/RotateUVNode.d.ts index 2620b54c2..173ba78ef 100644 --- a/types/three/examples/jsm/nodes/utils/RotateUVNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/RotateUVNode.d.ts @@ -1,6 +1,6 @@ -import TempNode from '../core/TempNode.js'; -import Node from '../core/Node.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import TempNode from "../core/TempNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class RotateUVNode extends TempNode { uvNode: Node; @@ -12,7 +12,7 @@ export default class RotateUVNode extends TempNode { export const rotateUV: (uvNode: Node, rotationNode: Node, centerNode?: Node) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { rotateUV: typeof rotateUV; } diff --git a/types/three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts b/types/three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts index 39a9286f7..54f71a5af 100644 --- a/types/three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/SpecularMIPLevelNode.d.ts @@ -1,6 +1,6 @@ -import Node from '../core/Node.js'; -import TextureNode from '../accessors/TextureNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import TextureNode from "../accessors/TextureNode.js"; +import Node from "../core/Node.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class SpecularMIPLevelNode extends Node { textureNode: TextureNode; diff --git a/types/three/examples/jsm/nodes/utils/SplitNode.d.ts b/types/three/examples/jsm/nodes/utils/SplitNode.d.ts index ef226b338..c358a2c0b 100644 --- a/types/three/examples/jsm/nodes/utils/SplitNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/SplitNode.d.ts @@ -1,5 +1,5 @@ -import { SwizzleOption } from '../core/constants.js'; -import Node from '../core/Node.js'; +import { SwizzleOption } from "../core/constants.js"; +import Node from "../core/Node.js"; /** swizzle node */ export default class SplitNode extends Node { @@ -7,7 +7,6 @@ export default class SplitNode extends Node { components: string; /** - * * @param node the input node * @param components swizzle like string, default = "x" */ diff --git a/types/three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts b/types/three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts index 1d9166a50..111d7611f 100644 --- a/types/three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/SpriteSheetUVNode.d.ts @@ -1,5 +1,5 @@ -import Node from '../core/Node.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class SpriteSheetUVNode extends Node { countNode: Node; diff --git a/types/three/examples/jsm/nodes/utils/TimerNode.d.ts b/types/three/examples/jsm/nodes/utils/TimerNode.d.ts index cbc6d7637..02cac2909 100644 --- a/types/three/examples/jsm/nodes/utils/TimerNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/TimerNode.d.ts @@ -1,5 +1,5 @@ -import UniformNode from '../core/UniformNode.js'; -import { ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import UniformNode from "../core/UniformNode.js"; +import { ShaderNodeObject } from "../shadernode/ShaderNode.js"; export type TimerNodeScope = | typeof TimerNode.LOCAL @@ -8,10 +8,10 @@ export type TimerNodeScope = | typeof TimerNode.FRAME; export default class TimerNode extends UniformNode { - static LOCAL: 'local'; - static GLOBAL: 'global'; - static DELTA: 'delta'; - static FRAME: 'frame'; + static LOCAL: "local"; + static GLOBAL: "global"; + static DELTA: "delta"; + static FRAME: "frame"; scope: TimerNodeScope; scale: number; diff --git a/types/three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts b/types/three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts index 33a42e7d5..acb6ceb25 100644 --- a/types/three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts +++ b/types/three/examples/jsm/nodes/utils/TriplanarTexturesNode.d.ts @@ -1,7 +1,7 @@ -import Node from '../core/Node.js'; -import PositionNode from '../accessors/PositionNode.js'; -import TextureNode from '../accessors/TextureNode.js'; -import { NodeRepresentation, ShaderNodeObject } from '../shadernode/ShaderNode.js'; +import PositionNode from "../accessors/PositionNode.js"; +import TextureNode from "../accessors/TextureNode.js"; +import Node from "../core/Node.js"; +import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; export default class TriplanarTexturesNode extends Node { textureXNode: TextureNode; @@ -36,7 +36,7 @@ export const triplanarTexture: ( ...params: NodeRepresentation[] ) => ShaderNodeObject; -declare module '../shadernode/ShaderNode.js' { +declare module "../shadernode/ShaderNode.js" { interface NodeElements { triplanarTexture: typeof triplanarTexture; } diff --git a/types/three/examples/jsm/objects/GroundedSkybox.d.ts b/types/three/examples/jsm/objects/GroundedSkybox.d.ts index 2073dd54d..30725da52 100644 --- a/types/three/examples/jsm/objects/GroundedSkybox.d.ts +++ b/types/three/examples/jsm/objects/GroundedSkybox.d.ts @@ -1,4 +1,4 @@ -import { Mesh, MeshBasicMaterial, SphereGeometry, Texture } from '../../../src/Three.js'; +import { Mesh, MeshBasicMaterial, SphereGeometry, Texture } from "../../../src/Three.js"; export class GroundedSkybox extends Mesh { constructor(map: Texture, height: number, radius: number, resolution?: number); diff --git a/types/three/examples/jsm/objects/Lensflare.d.ts b/types/three/examples/jsm/objects/Lensflare.d.ts index 94153f362..ea0fb6d11 100644 --- a/types/three/examples/jsm/objects/Lensflare.d.ts +++ b/types/three/examples/jsm/objects/Lensflare.d.ts @@ -1,4 +1,4 @@ -import { Mesh, Texture, Color } from '../../../src/Three.js'; +import { Color, Mesh, Texture } from "../../../src/Three.js"; export class LensflareElement { constructor(texture: Texture, size?: number, distance?: number, color?: Color); diff --git a/types/three/examples/jsm/objects/MarchingCubes.d.ts b/types/three/examples/jsm/objects/MarchingCubes.d.ts index 67e67a640..2e7f7ee2e 100644 --- a/types/three/examples/jsm/objects/MarchingCubes.d.ts +++ b/types/three/examples/jsm/objects/MarchingCubes.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Material, Mesh, Color } from '../../../src/Three.js'; +import { BufferGeometry, Color, Material, Mesh } from "../../../src/Three.js"; export class MarchingCubes extends Mesh { constructor( diff --git a/types/three/examples/jsm/objects/QuadMesh.d.ts b/types/three/examples/jsm/objects/QuadMesh.d.ts index 18ec6acba..0ad81adcd 100644 --- a/types/three/examples/jsm/objects/QuadMesh.d.ts +++ b/types/three/examples/jsm/objects/QuadMesh.d.ts @@ -1,5 +1,5 @@ -import { Material } from '../../../src/Three.js'; -import Renderer from '../renderers/common/Renderer.js'; +import { Material } from "../../../src/Three.js"; +import Renderer from "../renderers/common/Renderer.js"; export default class QuadMesh { constructor(material?: Material | null); diff --git a/types/three/examples/jsm/objects/Reflector.d.ts b/types/three/examples/jsm/objects/Reflector.d.ts index 1a62ee6ce..51401cfbd 100644 --- a/types/three/examples/jsm/objects/Reflector.d.ts +++ b/types/three/examples/jsm/objects/Reflector.d.ts @@ -1,11 +1,11 @@ import { - Mesh, BufferGeometry, ColorRepresentation, + Mesh, + PerspectiveCamera, TextureEncoding, WebGLRenderTarget, - PerspectiveCamera, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface ReflectorOptions { color?: ColorRepresentation; @@ -18,7 +18,7 @@ export interface ReflectorOptions { } export class Reflector extends Mesh { - type: 'Reflector'; + type: "Reflector"; camera: PerspectiveCamera; constructor(geometry?: BufferGeometry, options?: ReflectorOptions); diff --git a/types/three/examples/jsm/objects/ReflectorForSSRPass.d.ts b/types/three/examples/jsm/objects/ReflectorForSSRPass.d.ts index b982c5676..efe3b2521 100644 --- a/types/three/examples/jsm/objects/ReflectorForSSRPass.d.ts +++ b/types/three/examples/jsm/objects/ReflectorForSSRPass.d.ts @@ -1,15 +1,15 @@ import { - Mesh, - ShaderMaterial, - WebGLRenderTarget, BufferGeometry, - WebGLRenderer, - Scene, Camera, - IUniform, Color, + IUniform, + Mesh, + Scene, + ShaderMaterial, Vector2, -} from '../../../src/Three.js'; + WebGLRenderer, + WebGLRenderTarget, +} from "../../../src/Three.js"; export interface ReflectorShader { name: string; @@ -34,7 +34,7 @@ export interface ReflectorForSSRPassOptions { } export class ReflectorForSSRPass extends Mesh { - type: 'ReflectorForSSRPass'; + type: "ReflectorForSSRPass"; options: ReflectorForSSRPassOptions; static ReflectorShader: ReflectorShader; diff --git a/types/three/examples/jsm/objects/Refractor.d.ts b/types/three/examples/jsm/objects/Refractor.d.ts index 2aed7a779..831a05a07 100644 --- a/types/three/examples/jsm/objects/Refractor.d.ts +++ b/types/three/examples/jsm/objects/Refractor.d.ts @@ -1,12 +1,12 @@ import { - Mesh, BufferGeometry, ColorRepresentation, - TextureEncoding, - WebGLRenderTarget, + Mesh, PerspectiveCamera, ShaderMaterial, -} from '../../../src/Three.js'; + TextureEncoding, + WebGLRenderTarget, +} from "../../../src/Three.js"; export interface RefractorOptions { color?: ColorRepresentation; @@ -19,7 +19,7 @@ export interface RefractorOptions { } export class Refractor extends Mesh { - type: 'Refractor'; + type: "Refractor"; camera: PerspectiveCamera; constructor(geometry?: BufferGeometry, options?: RefractorOptions); diff --git a/types/three/examples/jsm/objects/ShadowMesh.d.ts b/types/three/examples/jsm/objects/ShadowMesh.d.ts index 23ccb7b1b..0b30641cb 100644 --- a/types/three/examples/jsm/objects/ShadowMesh.d.ts +++ b/types/three/examples/jsm/objects/ShadowMesh.d.ts @@ -1,4 +1,4 @@ -import { Mesh, Plane, Vector4, Matrix4, MeshBasicMaterial, BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry, Matrix4, Mesh, MeshBasicMaterial, Plane, Vector4 } from "../../../src/Three.js"; export class ShadowMesh extends Mesh { readonly isShadowMesh: true; diff --git a/types/three/examples/jsm/objects/Sky.d.ts b/types/three/examples/jsm/objects/Sky.d.ts index 39f945ce8..cc9a489ba 100644 --- a/types/three/examples/jsm/objects/Sky.d.ts +++ b/types/three/examples/jsm/objects/Sky.d.ts @@ -1,4 +1,4 @@ -import { BoxGeometry, Mesh, ShaderMaterial } from '../../../src/Three.js'; +import { BoxGeometry, Mesh, ShaderMaterial } from "../../../src/Three.js"; export class Sky extends Mesh { constructor(); diff --git a/types/three/examples/jsm/objects/Water.d.ts b/types/three/examples/jsm/objects/Water.d.ts index 9c2680b0e..69834a380 100644 --- a/types/three/examples/jsm/objects/Water.d.ts +++ b/types/three/examples/jsm/objects/Water.d.ts @@ -6,7 +6,7 @@ import { Side, Texture, Vector3, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface WaterOptions { textureWidth?: number; diff --git a/types/three/examples/jsm/objects/Water2.d.ts b/types/three/examples/jsm/objects/Water2.d.ts index 3a6dcbfdb..77cedba34 100644 --- a/types/three/examples/jsm/objects/Water2.d.ts +++ b/types/three/examples/jsm/objects/Water2.d.ts @@ -6,7 +6,7 @@ import { Texture, TextureEncoding, Vector2, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; export interface Water2Options { color?: ColorRepresentation; diff --git a/types/three/examples/jsm/physics/AmmoPhysics.d.ts b/types/three/examples/jsm/physics/AmmoPhysics.d.ts index dcc679a42..d7ece7e02 100644 --- a/types/three/examples/jsm/physics/AmmoPhysics.d.ts +++ b/types/three/examples/jsm/physics/AmmoPhysics.d.ts @@ -1,4 +1,4 @@ -import { Mesh, Object3D, Vector3 } from '../../../src/Three.js'; +import { Mesh, Object3D, Vector3 } from "../../../src/Three.js"; export interface AmmoPhysicsObject { addScene: (scene: Object3D) => void; diff --git a/types/three/examples/jsm/physics/RapierPhysics.d.ts b/types/three/examples/jsm/physics/RapierPhysics.d.ts index 4757fb0ce..842357f16 100644 --- a/types/three/examples/jsm/physics/RapierPhysics.d.ts +++ b/types/three/examples/jsm/physics/RapierPhysics.d.ts @@ -1,4 +1,4 @@ -import { Mesh, Object3D } from '../../../src/Three.js'; +import { Mesh, Object3D } from "../../../src/Three.js"; type Vector = { x: number; y: number; z: number }; diff --git a/types/three/examples/jsm/postprocessing/AfterimagePass.d.ts b/types/three/examples/jsm/postprocessing/AfterimagePass.d.ts index 187d548a9..3d37dc16e 100644 --- a/types/three/examples/jsm/postprocessing/AfterimagePass.d.ts +++ b/types/three/examples/jsm/postprocessing/AfterimagePass.d.ts @@ -1,6 +1,6 @@ -import { WebGLRenderTarget, ShaderMaterial, IUniform } from '../../../src/Three.js'; +import { IUniform, ShaderMaterial, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class AfterimagePass extends Pass { constructor(damp?: number); diff --git a/types/three/examples/jsm/postprocessing/BloomPass.d.ts b/types/three/examples/jsm/postprocessing/BloomPass.d.ts index 5288e7c5c..f7310c325 100644 --- a/types/three/examples/jsm/postprocessing/BloomPass.d.ts +++ b/types/three/examples/jsm/postprocessing/BloomPass.d.ts @@ -1,6 +1,6 @@ -import { WebGLRenderTarget, ShaderMaterial } from '../../../src/Three.js'; +import { ShaderMaterial, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class BloomPass extends Pass { constructor(strength?: number, kernelSize?: number, sigma?: number); diff --git a/types/three/examples/jsm/postprocessing/BokehPass.d.ts b/types/three/examples/jsm/postprocessing/BokehPass.d.ts index c4453d2ec..b30940927 100644 --- a/types/three/examples/jsm/postprocessing/BokehPass.d.ts +++ b/types/three/examples/jsm/postprocessing/BokehPass.d.ts @@ -1,6 +1,6 @@ -import { Scene, Camera, ShaderMaterial, WebGLRenderTarget, MeshDepthMaterial, Color } from '../../../src/Three.js'; +import { Camera, Color, MeshDepthMaterial, Scene, ShaderMaterial, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export interface BokehPassParamters { focus?: number; diff --git a/types/three/examples/jsm/postprocessing/ClearPass.d.ts b/types/three/examples/jsm/postprocessing/ClearPass.d.ts index f38661691..34f9a3265 100644 --- a/types/three/examples/jsm/postprocessing/ClearPass.d.ts +++ b/types/three/examples/jsm/postprocessing/ClearPass.d.ts @@ -1,6 +1,6 @@ -import { ColorRepresentation } from '../../../src/Three.js'; +import { ColorRepresentation } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class ClearPass extends Pass { constructor(clearColor?: ColorRepresentation, clearAlpha?: number); diff --git a/types/three/examples/jsm/postprocessing/CubeTexturePass.d.ts b/types/three/examples/jsm/postprocessing/CubeTexturePass.d.ts index af3b56339..0a82de0c4 100644 --- a/types/three/examples/jsm/postprocessing/CubeTexturePass.d.ts +++ b/types/three/examples/jsm/postprocessing/CubeTexturePass.d.ts @@ -1,6 +1,6 @@ -import { PerspectiveCamera, CubeTexture, Mesh, Scene } from '../../../src/Three.js'; +import { CubeTexture, Mesh, PerspectiveCamera, Scene } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class CubeTexturePass extends Pass { constructor(camera: PerspectiveCamera, envMap?: CubeTexture, opacity?: number); diff --git a/types/three/examples/jsm/postprocessing/DotScreenPass.d.ts b/types/three/examples/jsm/postprocessing/DotScreenPass.d.ts index 46af49da6..13fd8e550 100644 --- a/types/three/examples/jsm/postprocessing/DotScreenPass.d.ts +++ b/types/three/examples/jsm/postprocessing/DotScreenPass.d.ts @@ -1,6 +1,6 @@ -import { Vector2, ShaderMaterial } from '../../../src/Three.js'; +import { ShaderMaterial, Vector2 } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class DotScreenPass extends Pass { constructor(center?: Vector2, angle?: number, scale?: number); diff --git a/types/three/examples/jsm/postprocessing/EffectComposer.d.ts b/types/three/examples/jsm/postprocessing/EffectComposer.d.ts index 8b8bcc930..4adc44c30 100644 --- a/types/three/examples/jsm/postprocessing/EffectComposer.d.ts +++ b/types/three/examples/jsm/postprocessing/EffectComposer.d.ts @@ -1,9 +1,9 @@ -import { Clock, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three.js'; +import { Clock, WebGLRenderer, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; -import { ShaderPass } from './ShaderPass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; +import { ShaderPass } from "./ShaderPass.js"; -export { FullScreenQuad } from './Pass.js'; +export { FullScreenQuad } from "./Pass.js"; export { Pass }; export class EffectComposer { diff --git a/types/three/examples/jsm/postprocessing/FilmPass.d.ts b/types/three/examples/jsm/postprocessing/FilmPass.d.ts index c524639c3..e98d01251 100644 --- a/types/three/examples/jsm/postprocessing/FilmPass.d.ts +++ b/types/three/examples/jsm/postprocessing/FilmPass.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterial } from '../../../src/Three.js'; +import { ShaderMaterial } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class FilmPass extends Pass { constructor(intensity?: number, grayscale?: boolean); diff --git a/types/three/examples/jsm/postprocessing/GTAOPass.d.ts b/types/three/examples/jsm/postprocessing/GTAOPass.d.ts index ffff74465..995a8b961 100644 --- a/types/three/examples/jsm/postprocessing/GTAOPass.d.ts +++ b/types/three/examples/jsm/postprocessing/GTAOPass.d.ts @@ -11,9 +11,9 @@ import { Texture, WebGLRenderer, WebGLRenderTarget, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { FullScreenQuad, Pass } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class GTAOPass extends Pass { width: number; diff --git a/types/three/examples/jsm/postprocessing/GlitchPass.d.ts b/types/three/examples/jsm/postprocessing/GlitchPass.d.ts index f087c3482..88eccd2bd 100644 --- a/types/three/examples/jsm/postprocessing/GlitchPass.d.ts +++ b/types/three/examples/jsm/postprocessing/GlitchPass.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterial, DataTexture } from '../../../src/Three.js'; +import { DataTexture, ShaderMaterial } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class GlitchPass extends Pass { constructor(dt_size?: number); diff --git a/types/three/examples/jsm/postprocessing/HalftonePass.d.ts b/types/three/examples/jsm/postprocessing/HalftonePass.d.ts index da8c67e78..8b783abfa 100644 --- a/types/three/examples/jsm/postprocessing/HalftonePass.d.ts +++ b/types/three/examples/jsm/postprocessing/HalftonePass.d.ts @@ -1,6 +1,6 @@ -import { IUniform, ShaderMaterial } from '../../../src/Three.js'; +import { IUniform, ShaderMaterial } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export interface HalftonePassParameters { shape?: number; diff --git a/types/three/examples/jsm/postprocessing/LUTPass.d.ts b/types/three/examples/jsm/postprocessing/LUTPass.d.ts index 7ca2ccbb5..a877e6ecb 100644 --- a/types/three/examples/jsm/postprocessing/LUTPass.d.ts +++ b/types/three/examples/jsm/postprocessing/LUTPass.d.ts @@ -1,5 +1,5 @@ -import { DataTexture, Data3DTexture } from '../../../src/Three.js'; -import { ShaderPass } from './ShaderPass.js'; +import { Data3DTexture, DataTexture } from "../../../src/Three.js"; +import { ShaderPass } from "./ShaderPass.js"; export interface LUTPassParameters { lut?: DataTexture | Data3DTexture; diff --git a/types/three/examples/jsm/postprocessing/MaskPass.d.ts b/types/three/examples/jsm/postprocessing/MaskPass.d.ts index 16295b590..b57eaf1f5 100644 --- a/types/three/examples/jsm/postprocessing/MaskPass.d.ts +++ b/types/three/examples/jsm/postprocessing/MaskPass.d.ts @@ -1,6 +1,6 @@ -import { Scene, Camera } from '../../../src/Three.js'; +import { Camera, Scene } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class MaskPass extends Pass { constructor(scene: Scene, camera: Camera); diff --git a/types/three/examples/jsm/postprocessing/OutlinePass.d.ts b/types/three/examples/jsm/postprocessing/OutlinePass.d.ts index 44f7d921f..9ca273dfc 100644 --- a/types/three/examples/jsm/postprocessing/OutlinePass.d.ts +++ b/types/three/examples/jsm/postprocessing/OutlinePass.d.ts @@ -1,18 +1,18 @@ import { - Vector2, - Scene, Camera, - Object3D, Color, Matrix4, MeshBasicMaterial, MeshDepthMaterial, + Object3D, + Scene, ShaderMaterial, - WebGLRenderTarget, Texture, -} from '../../../src/Three.js'; + Vector2, + WebGLRenderTarget, +} from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class OutlinePass extends Pass { constructor(resolution: Vector2, scene: Scene, camera: Camera, selectedObjects?: Object3D[]); diff --git a/types/three/examples/jsm/postprocessing/OutputPass.d.ts b/types/three/examples/jsm/postprocessing/OutputPass.d.ts index 2e696f102..3b0f851e4 100644 --- a/types/three/examples/jsm/postprocessing/OutputPass.d.ts +++ b/types/three/examples/jsm/postprocessing/OutputPass.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterial } from '../../../src/Three.js'; +import { ShaderMaterial } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class OutputPass extends Pass { constructor(); diff --git a/types/three/examples/jsm/postprocessing/Pass.d.ts b/types/three/examples/jsm/postprocessing/Pass.d.ts index 36bd13088..63954a6a8 100644 --- a/types/three/examples/jsm/postprocessing/Pass.d.ts +++ b/types/three/examples/jsm/postprocessing/Pass.d.ts @@ -1,4 +1,4 @@ -import { Material, WebGLRenderer, WebGLRenderTarget } from '../../../src/Three.js'; +import { Material, WebGLRenderer, WebGLRenderTarget } from "../../../src/Three.js"; export class Pass { constructor(); diff --git a/types/three/examples/jsm/postprocessing/RenderPass.d.ts b/types/three/examples/jsm/postprocessing/RenderPass.d.ts index 97eb421e4..b7f44d341 100644 --- a/types/three/examples/jsm/postprocessing/RenderPass.d.ts +++ b/types/three/examples/jsm/postprocessing/RenderPass.d.ts @@ -1,6 +1,6 @@ -import { Scene, Camera, Material, Color } from '../../../src/Three.js'; +import { Camera, Color, Material, Scene } from "../../../src/Three.js"; -import { Pass } from './Pass.js'; +import { Pass } from "./Pass.js"; export class RenderPass extends Pass { constructor( diff --git a/types/three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts b/types/three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts index 60fcfb116..9abe576ee 100644 --- a/types/three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts +++ b/types/three/examples/jsm/postprocessing/RenderPixelatedPass.d.ts @@ -1,6 +1,6 @@ -import { Scene, Camera, ShaderMaterial, Vector2, MeshNormalMaterial, WebGLRenderTarget } from '../../../src/Three.js'; +import { Camera, MeshNormalMaterial, Scene, ShaderMaterial, Vector2, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export interface RenderPixelatedPassParameters { normalEdgeStrength?: number; @@ -20,8 +20,8 @@ export class RenderPixelatedPass extends Pass { scene: Scene; camera: Camera; - normalEdgeStrength: RenderPixelatedPassParameters['normalEdgeStrength']; - depthEdgeStrength: RenderPixelatedPassParameters['depthEdgeStrength']; + normalEdgeStrength: RenderPixelatedPassParameters["normalEdgeStrength"]; + depthEdgeStrength: RenderPixelatedPassParameters["depthEdgeStrength"]; beautyRenderTarget: WebGLRenderTarget; normalRenderTarget: WebGLRenderTarget; diff --git a/types/three/examples/jsm/postprocessing/SAOPass.d.ts b/types/three/examples/jsm/postprocessing/SAOPass.d.ts index 39f5c6450..572af64a8 100644 --- a/types/three/examples/jsm/postprocessing/SAOPass.d.ts +++ b/types/three/examples/jsm/postprocessing/SAOPass.d.ts @@ -1,17 +1,17 @@ import { - Scene, Camera, + Color, + ColorRepresentation, Material, MeshNormalMaterial, + Scene, ShaderMaterial, - Color, Vector2, WebGLRenderer, WebGLRenderTarget, - ColorRepresentation, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export enum OUTPUT { Default, diff --git a/types/three/examples/jsm/postprocessing/SMAAPass.d.ts b/types/three/examples/jsm/postprocessing/SMAAPass.d.ts index 71aab3bbe..765df1dc3 100644 --- a/types/three/examples/jsm/postprocessing/SMAAPass.d.ts +++ b/types/three/examples/jsm/postprocessing/SMAAPass.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterial, Texture, WebGLRenderTarget } from '../../../src/Three.js'; +import { ShaderMaterial, Texture, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class SMAAPass extends Pass { constructor(width: number, height: number); diff --git a/types/three/examples/jsm/postprocessing/SSAARenderPass.d.ts b/types/three/examples/jsm/postprocessing/SSAARenderPass.d.ts index da5bddd60..da6e1ee19 100644 --- a/types/three/examples/jsm/postprocessing/SSAARenderPass.d.ts +++ b/types/three/examples/jsm/postprocessing/SSAARenderPass.d.ts @@ -1,6 +1,6 @@ -import { Scene, Camera, ColorRepresentation, ShaderMaterial, WebGLRenderTarget } from '../../../src/Three.js'; +import { Camera, ColorRepresentation, Scene, ShaderMaterial, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class SSAARenderPass extends Pass { constructor(scene: Scene, camera: Camera, clearColor?: ColorRepresentation, clearAlpha?: number); diff --git a/types/three/examples/jsm/postprocessing/SSAOPass.d.ts b/types/three/examples/jsm/postprocessing/SSAOPass.d.ts index 80cd824c9..88b38918f 100644 --- a/types/three/examples/jsm/postprocessing/SSAOPass.d.ts +++ b/types/three/examples/jsm/postprocessing/SSAOPass.d.ts @@ -1,6 +1,7 @@ import { Camera, Color, + ColorRepresentation, DataTexture, Material, MeshNormalMaterial, @@ -9,10 +10,9 @@ import { Vector3, WebGLRenderer, WebGLRenderTarget, - ColorRepresentation, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export enum SSAOPassOUTPUT { Default, diff --git a/types/three/examples/jsm/postprocessing/SSRPass.d.ts b/types/three/examples/jsm/postprocessing/SSRPass.d.ts index 2f05a703b..ab61077d3 100644 --- a/types/three/examples/jsm/postprocessing/SSRPass.d.ts +++ b/types/three/examples/jsm/postprocessing/SSRPass.d.ts @@ -1,18 +1,18 @@ import { + Camera, Color, - MeshNormalMaterial, + ColorRepresentation, + Material, + Mesh, MeshBasicMaterial, - ShaderMaterial, - WebGLRenderTarget, + MeshNormalMaterial, Scene, + ShaderMaterial, WebGLRenderer, - Camera, - Mesh, - Material, - ColorRepresentation, -} from '../../../src/Three.js'; -import { Pass, FullScreenQuad } from '../postprocessing/Pass.js'; -import { ReflectorForSSRPass } from '../objects/ReflectorForSSRPass.js'; + WebGLRenderTarget, +} from "../../../src/Three.js"; +import { ReflectorForSSRPass } from "../objects/ReflectorForSSRPass.js"; +import { FullScreenQuad, Pass } from "../postprocessing/Pass.js"; export interface SSRPassParams { renderer: WebGLRenderer; diff --git a/types/three/examples/jsm/postprocessing/SavePass.d.ts b/types/three/examples/jsm/postprocessing/SavePass.d.ts index 88d6f074d..beb234b98 100644 --- a/types/three/examples/jsm/postprocessing/SavePass.d.ts +++ b/types/three/examples/jsm/postprocessing/SavePass.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterial, WebGLRenderTarget } from '../../../src/Three.js'; +import { ShaderMaterial, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class SavePass extends Pass { constructor(renderTarget?: WebGLRenderTarget); diff --git a/types/three/examples/jsm/postprocessing/ShaderPass.d.ts b/types/three/examples/jsm/postprocessing/ShaderPass.d.ts index 088950eff..3f54e82f6 100644 --- a/types/three/examples/jsm/postprocessing/ShaderPass.d.ts +++ b/types/three/examples/jsm/postprocessing/ShaderPass.d.ts @@ -1,6 +1,6 @@ -import { ShaderMaterial } from '../../../src/Three.js'; +import { ShaderMaterial } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class ShaderPass extends Pass { constructor(shader: object, textureID?: string); diff --git a/types/three/examples/jsm/postprocessing/TAARenderPass.d.ts b/types/three/examples/jsm/postprocessing/TAARenderPass.d.ts index b163635e9..6e7bd2f22 100644 --- a/types/three/examples/jsm/postprocessing/TAARenderPass.d.ts +++ b/types/three/examples/jsm/postprocessing/TAARenderPass.d.ts @@ -1,6 +1,6 @@ -import { Scene, Camera, ColorRepresentation } from '../../../src/Three.js'; +import { Camera, ColorRepresentation, Scene } from "../../../src/Three.js"; -import { SSAARenderPass } from './SSAARenderPass.js'; +import { SSAARenderPass } from "./SSAARenderPass.js"; export class TAARenderPass extends SSAARenderPass { constructor(scene: Scene, camera: Camera, clearColor?: ColorRepresentation, clearAlpha?: number); diff --git a/types/three/examples/jsm/postprocessing/TexturePass.d.ts b/types/three/examples/jsm/postprocessing/TexturePass.d.ts index 920fd13b7..320d38b93 100644 --- a/types/three/examples/jsm/postprocessing/TexturePass.d.ts +++ b/types/three/examples/jsm/postprocessing/TexturePass.d.ts @@ -1,6 +1,6 @@ -import { Texture, ShaderMaterial, IUniform } from '../../../src/Three.js'; +import { IUniform, ShaderMaterial, Texture } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class TexturePass extends Pass { constructor(map?: Texture, opacity?: number); diff --git a/types/three/examples/jsm/postprocessing/UnrealBloomPass.d.ts b/types/three/examples/jsm/postprocessing/UnrealBloomPass.d.ts index bfdce2a06..d0328689c 100644 --- a/types/three/examples/jsm/postprocessing/UnrealBloomPass.d.ts +++ b/types/three/examples/jsm/postprocessing/UnrealBloomPass.d.ts @@ -1,6 +1,6 @@ -import { Color, MeshBasicMaterial, ShaderMaterial, Vector2, Vector3, WebGLRenderTarget } from '../../../src/Three.js'; +import { Color, MeshBasicMaterial, ShaderMaterial, Vector2, Vector3, WebGLRenderTarget } from "../../../src/Three.js"; -import { Pass, FullScreenQuad } from './Pass.js'; +import { FullScreenQuad, Pass } from "./Pass.js"; export class UnrealBloomPass extends Pass { constructor(resolution: Vector2, strength: number, radius: number, threshold: number); diff --git a/types/three/examples/jsm/renderers/CSS2DRenderer.d.ts b/types/three/examples/jsm/renderers/CSS2DRenderer.d.ts index 903ce3fc1..2c1db74bf 100644 --- a/types/three/examples/jsm/renderers/CSS2DRenderer.d.ts +++ b/types/three/examples/jsm/renderers/CSS2DRenderer.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Scene, Camera, Vector2 } from '../../../src/Three.js'; +import { Camera, Object3D, Scene, Vector2 } from "../../../src/Three.js"; export class CSS2DObject extends Object3D { constructor(element: HTMLElement); diff --git a/types/three/examples/jsm/renderers/CSS3DRenderer.d.ts b/types/three/examples/jsm/renderers/CSS3DRenderer.d.ts index 44ef69187..91f1e4a3d 100644 --- a/types/three/examples/jsm/renderers/CSS3DRenderer.d.ts +++ b/types/three/examples/jsm/renderers/CSS3DRenderer.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Scene, Camera } from '../../../src/Three.js'; +import { Camera, Object3D, Scene } from "../../../src/Three.js"; export class CSS3DObject extends Object3D { constructor(element: HTMLElement); diff --git a/types/three/examples/jsm/renderers/Projector.d.ts b/types/three/examples/jsm/renderers/Projector.d.ts index 1ddb383b0..c7dea8d45 100644 --- a/types/three/examples/jsm/renderers/Projector.d.ts +++ b/types/three/examples/jsm/renderers/Projector.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Scene, Camera, Vector2, Vector3, Vector4, Color, Material } from '../../../src/Three.js'; +import { Camera, Color, Material, Object3D, Scene, Vector2, Vector3, Vector4 } from "../../../src/Three.js"; export class RenderableObject { id: number; diff --git a/types/three/examples/jsm/renderers/SVGRenderer.d.ts b/types/three/examples/jsm/renderers/SVGRenderer.d.ts index ee66ecbce..8a0a0cd71 100644 --- a/types/three/examples/jsm/renderers/SVGRenderer.d.ts +++ b/types/three/examples/jsm/renderers/SVGRenderer.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Color, Scene, Camera, ColorSpace } from '../../../src/Three.js'; +import { Camera, Color, ColorSpace, Object3D, Scene } from "../../../src/Three.js"; export class SVGObject extends Object3D { constructor(node: SVGElement); diff --git a/types/three/examples/jsm/renderers/common/Backend.d.ts b/types/three/examples/jsm/renderers/common/Backend.d.ts index e87f4cf32..116c03efe 100644 --- a/types/three/examples/jsm/renderers/common/Backend.d.ts +++ b/types/three/examples/jsm/renderers/common/Backend.d.ts @@ -1,5 +1,5 @@ -import { CoordinateSystem } from '../../../../src/Three.js'; -import Renderer from './Renderer.js'; +import { CoordinateSystem } from "../../../../src/Three.js"; +import Renderer from "./Renderer.js"; export interface BackendParameters { canvas?: HTMLCanvasElement | undefined; diff --git a/types/three/examples/jsm/renderers/common/Color4.d.ts b/types/three/examples/jsm/renderers/common/Color4.d.ts index a111106b8..5194c5693 100644 --- a/types/three/examples/jsm/renderers/common/Color4.d.ts +++ b/types/three/examples/jsm/renderers/common/Color4.d.ts @@ -1,4 +1,4 @@ -import { Color, ColorRepresentation } from '../../../../src/math/Color.ts'; +import { Color, ColorRepresentation } from "../../../../src/math/Color.ts"; export default class Color4 extends Color { constructor(r: number, g: number, b: number, a?: number); diff --git a/types/three/examples/jsm/renderers/common/Info.d.ts b/types/three/examples/jsm/renderers/common/Info.d.ts index 65dc55749..f31d935ab 100644 --- a/types/three/examples/jsm/renderers/common/Info.d.ts +++ b/types/three/examples/jsm/renderers/common/Info.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../../src/Three.js'; +import { Object3D } from "../../../../src/Three.js"; export default class Info { autoReset: boolean; diff --git a/types/three/examples/jsm/renderers/common/PostProcessing.d.ts b/types/three/examples/jsm/renderers/common/PostProcessing.d.ts index 0b64f7410..df0d58eff 100644 --- a/types/three/examples/jsm/renderers/common/PostProcessing.d.ts +++ b/types/three/examples/jsm/renderers/common/PostProcessing.d.ts @@ -1,5 +1,5 @@ -import Renderer from './Renderer.js'; -import { Node } from '../../nodes/Nodes.js'; +import { Node } from "../../nodes/Nodes.js"; +import Renderer from "./Renderer.js"; export default class PostProcessing { renderer: Renderer; diff --git a/types/three/examples/jsm/renderers/common/Renderer.d.ts b/types/three/examples/jsm/renderers/common/Renderer.d.ts index 1721032f9..69457546f 100644 --- a/types/three/examples/jsm/renderers/common/Renderer.d.ts +++ b/types/three/examples/jsm/renderers/common/Renderer.d.ts @@ -1,24 +1,24 @@ import { + BufferGeometry, Camera, + Color, ColorSpace, CoordinateSystem, + FramebufferTexture, + Group, + Material, + Object3D, + RenderTarget, Scene, ToneMapping, Vector2, Vector4, - Color, - Object3D, - RenderTarget, - FramebufferTexture, - BufferGeometry, - Material, - Group, -} from '../../../../src/Three.js'; -import Backend from './Backend.js'; -import Info from './Info.js'; -import Color4 from './../common/Color4.js'; -import ComputeNode from '../../nodes/gpgpu/ComputeNode.js'; -import LightsNode from '../../nodes/lighting/LightsNode.js'; +} from "../../../../src/Three.js"; +import ComputeNode from "../../nodes/gpgpu/ComputeNode.js"; +import LightsNode from "../../nodes/lighting/LightsNode.js"; +import Color4 from "./../common/Color4.js"; +import Backend from "./Backend.js"; +import Info from "./Info.js"; export interface RendererParameters { logarithmicDepthBuffer?: boolean | undefined; diff --git a/types/three/examples/jsm/renderers/common/StorageTexture.d.ts b/types/three/examples/jsm/renderers/common/StorageTexture.d.ts index c801c503f..9f1ca1569 100644 --- a/types/three/examples/jsm/renderers/common/StorageTexture.d.ts +++ b/types/three/examples/jsm/renderers/common/StorageTexture.d.ts @@ -1,4 +1,4 @@ -import { Texture } from '../../../../src/Three.js'; +import { Texture } from "../../../../src/Three.js"; export default class StorageTexture extends Texture { constructor(width?: number, height?: number); diff --git a/types/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts b/types/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts index 94e280d4e..5e805f3b4 100644 --- a/types/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts +++ b/types/three/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodes.d.ts @@ -1,3 +1,3 @@ -import { NodeFrame } from '../../../nodes/Nodes.js'; +import { NodeFrame } from "../../../nodes/Nodes.js"; export const nodeFrame: NodeFrame; diff --git a/types/three/examples/jsm/renderers/webgl/WebGLBackend.d.ts b/types/three/examples/jsm/renderers/webgl/WebGLBackend.d.ts index c26a040de..8f532f663 100644 --- a/types/three/examples/jsm/renderers/webgl/WebGLBackend.d.ts +++ b/types/three/examples/jsm/renderers/webgl/WebGLBackend.d.ts @@ -1,5 +1,5 @@ -import { CoordinateSystem } from '../../../../src/Three.js'; -import Backend, { BackendParameters } from '../common/Backend.js'; +import { CoordinateSystem } from "../../../../src/Three.js"; +import Backend, { BackendParameters } from "../common/Backend.js"; export default class WebGLBackend extends Backend { constructor(parameters?: BackendParameters); diff --git a/types/three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts b/types/three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts index cf5998c72..3fbe86464 100644 --- a/types/three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts +++ b/types/three/examples/jsm/renderers/webgl/nodes/SlotNode.d.ts @@ -1,4 +1,4 @@ -import Node from '../../../nodes/core/Node.js'; +import Node from "../../../nodes/core/Node.js"; export interface SlotNodeParameters { node?: TNode; @@ -8,7 +8,7 @@ export interface SlotNodeParameters { } export default class SlotNode extends Node { - inclusionType: 'replace'; + inclusionType: "replace"; node: TNode | null; source: null; target: null; diff --git a/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts b/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts index 90a3d182f..5bb8f1597 100644 --- a/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts +++ b/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder.d.ts @@ -1,8 +1,8 @@ -import NodeBuilder from '../../../nodes/core/NodeBuilder.js'; -import { Renderer, Object3D } from '../../../../../src/Three.js'; -import Node from '../../../nodes/core/Node.js'; -import SlotNode from './SlotNode.js'; -import { NodeShaderStage } from '../../../nodes/core/constants.js'; +import { Object3D, Renderer } from "../../../../../src/Three.js"; +import { NodeShaderStage } from "../../../nodes/core/constants.js"; +import Node from "../../../nodes/core/Node.js"; +import NodeBuilder from "../../../nodes/core/NodeBuilder.js"; +import SlotNode from "./SlotNode.js"; export class WebGLNodeBuilder extends NodeBuilder { constructor( @@ -27,7 +27,7 @@ export class WebGLNodeBuilder extends NodeBuilder { getInstanceIndex(): string; getFrontFacing(): string; - getFragCoord(): 'gl_FragCoord'; + getFragCoord(): "gl_FragCoord"; isFlipY(): true; buildCode(): void; diff --git a/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts b/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts index b278ad6fe..cc4ed7acb 100644 --- a/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts +++ b/types/three/examples/jsm/renderers/webgl/nodes/WebGLNodes.d.ts @@ -1,3 +1,3 @@ -import NodeFrame from '../../../nodes/core/NodeFrame.js'; +import NodeFrame from "../../../nodes/core/NodeFrame.js"; export const nodeFrame: NodeFrame; diff --git a/types/three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts b/types/three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts index bebc02c29..885dd8105 100644 --- a/types/three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts +++ b/types/three/examples/jsm/renderers/webgpu/WebGPUBackend.d.ts @@ -1,5 +1,5 @@ -import { CoordinateSystem } from '../../../../src/Three.js'; -import Backend, { BackendParameters } from '../common/Backend.js'; +import { CoordinateSystem } from "../../../../src/Three.js"; +import Backend, { BackendParameters } from "../common/Backend.js"; export interface WebGPUBackendParameters extends BackendParameters { alpha?: boolean | undefined; diff --git a/types/three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts b/types/three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts index 841fd2612..3da45fa53 100644 --- a/types/three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts +++ b/types/three/examples/jsm/renderers/webgpu/WebGPURenderer.d.ts @@ -1,5 +1,5 @@ -import Renderer, { RendererParameters } from '../common/Renderer.js'; -import { WebGPUBackendParameters } from './WebGPUBackend.js'; +import Renderer, { RendererParameters } from "../common/Renderer.js"; +import { WebGPUBackendParameters } from "./WebGPUBackend.js"; export interface WebGPURendererParameters extends RendererParameters, WebGPUBackendParameters { forceWebGL?: boolean | undefined; diff --git a/types/three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts b/types/three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts index f52e274a2..487491fa5 100644 --- a/types/three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts +++ b/types/three/examples/jsm/shaders/ACESFilmicToneMappingShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform, Texture } from '../../../src/Three.js'; +import { IUniform, Texture } from "../../../src/Three.js"; export const ACESFilmicToneMappingShader: { name: string; diff --git a/types/three/examples/jsm/shaders/AfterimageShader.d.ts b/types/three/examples/jsm/shaders/AfterimageShader.d.ts index 9dde74eab..1702926db 100644 --- a/types/three/examples/jsm/shaders/AfterimageShader.d.ts +++ b/types/three/examples/jsm/shaders/AfterimageShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const AfterimageShader: { name: string; diff --git a/types/three/examples/jsm/shaders/BleachBypassShader.d.ts b/types/three/examples/jsm/shaders/BleachBypassShader.d.ts index 10f82404c..076fda962 100644 --- a/types/three/examples/jsm/shaders/BleachBypassShader.d.ts +++ b/types/three/examples/jsm/shaders/BleachBypassShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const BleachBypassShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/BlendShader.d.ts b/types/three/examples/jsm/shaders/BlendShader.d.ts index c9b38b863..87886a6fc 100644 --- a/types/three/examples/jsm/shaders/BlendShader.d.ts +++ b/types/three/examples/jsm/shaders/BlendShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const BlendShader: { name: string; diff --git a/types/three/examples/jsm/shaders/BokehShader.d.ts b/types/three/examples/jsm/shaders/BokehShader.d.ts index 74d533aad..b25f5341f 100644 --- a/types/three/examples/jsm/shaders/BokehShader.d.ts +++ b/types/three/examples/jsm/shaders/BokehShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const BokehShader: { name: string; diff --git a/types/three/examples/jsm/shaders/BokehShader2.d.ts b/types/three/examples/jsm/shaders/BokehShader2.d.ts index a45faa785..99205f668 100644 --- a/types/three/examples/jsm/shaders/BokehShader2.d.ts +++ b/types/three/examples/jsm/shaders/BokehShader2.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export interface BokehShaderUniforms { textureWidth: IUniform; diff --git a/types/three/examples/jsm/shaders/BrightnessContrastShader.d.ts b/types/three/examples/jsm/shaders/BrightnessContrastShader.d.ts index 57281358d..9b54eabf4 100644 --- a/types/three/examples/jsm/shaders/BrightnessContrastShader.d.ts +++ b/types/three/examples/jsm/shaders/BrightnessContrastShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const BrightnessContrastShader: { name: string; diff --git a/types/three/examples/jsm/shaders/ColorCorrectionShader.d.ts b/types/three/examples/jsm/shaders/ColorCorrectionShader.d.ts index 9ef4e87ae..825954ab6 100644 --- a/types/three/examples/jsm/shaders/ColorCorrectionShader.d.ts +++ b/types/three/examples/jsm/shaders/ColorCorrectionShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const ColorCorrectionShader: { name: string; diff --git a/types/three/examples/jsm/shaders/ColorifyShader.d.ts b/types/three/examples/jsm/shaders/ColorifyShader.d.ts index c5341738c..2192432bf 100644 --- a/types/three/examples/jsm/shaders/ColorifyShader.d.ts +++ b/types/three/examples/jsm/shaders/ColorifyShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const ColorifyShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/ConvolutionShader.d.ts b/types/three/examples/jsm/shaders/ConvolutionShader.d.ts index a426ed5dc..0f0970624 100644 --- a/types/three/examples/jsm/shaders/ConvolutionShader.d.ts +++ b/types/three/examples/jsm/shaders/ConvolutionShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const ConvolutionShader: { defines: { diff --git a/types/three/examples/jsm/shaders/CopyShader.d.ts b/types/three/examples/jsm/shaders/CopyShader.d.ts index adae6fd13..6363ab2ba 100644 --- a/types/three/examples/jsm/shaders/CopyShader.d.ts +++ b/types/three/examples/jsm/shaders/CopyShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const CopyShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/DOFMipMapShader.d.ts b/types/three/examples/jsm/shaders/DOFMipMapShader.d.ts index 8e0b6a28b..cb2df8cde 100644 --- a/types/three/examples/jsm/shaders/DOFMipMapShader.d.ts +++ b/types/three/examples/jsm/shaders/DOFMipMapShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const DOFMipMapShader: { name: string; diff --git a/types/three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts b/types/three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts index b7836f381..d6a5afbab 100644 --- a/types/three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts +++ b/types/three/examples/jsm/shaders/DepthLimitedBlurShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform, Vector2, Material } from '../../../src/Three.js'; +import { IUniform, Material, Vector2 } from "../../../src/Three.js"; export const DepthLimitedBlurShader: { name: string; diff --git a/types/three/examples/jsm/shaders/DigitalGlitch.d.ts b/types/three/examples/jsm/shaders/DigitalGlitch.d.ts index 444206a0a..cb37d9336 100644 --- a/types/three/examples/jsm/shaders/DigitalGlitch.d.ts +++ b/types/three/examples/jsm/shaders/DigitalGlitch.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const DigitalGlitch: { uniforms: { diff --git a/types/three/examples/jsm/shaders/DotScreenShader.d.ts b/types/three/examples/jsm/shaders/DotScreenShader.d.ts index 3c707bac4..d644d1eb4 100644 --- a/types/three/examples/jsm/shaders/DotScreenShader.d.ts +++ b/types/three/examples/jsm/shaders/DotScreenShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const DotScreenShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/ExposureShader.d.ts b/types/three/examples/jsm/shaders/ExposureShader.d.ts index afd9517cb..ef8257cd1 100644 --- a/types/three/examples/jsm/shaders/ExposureShader.d.ts +++ b/types/three/examples/jsm/shaders/ExposureShader.d.ts @@ -1,7 +1,7 @@ -import { IUniform, Texture } from '../../../src/Three.js'; +import { IUniform, Texture } from "../../../src/Three.js"; export const ExposureShader: { - name: 'ExposureShader'; + name: "ExposureShader"; uniforms: { tDiffuse: IUniform; exposure: IUniform; diff --git a/types/three/examples/jsm/shaders/FXAAShader.d.ts b/types/three/examples/jsm/shaders/FXAAShader.d.ts index bdac64fbf..a12ac97e7 100644 --- a/types/three/examples/jsm/shaders/FXAAShader.d.ts +++ b/types/three/examples/jsm/shaders/FXAAShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const FXAAShader: { name: string; diff --git a/types/three/examples/jsm/shaders/FilmShader.d.ts b/types/three/examples/jsm/shaders/FilmShader.d.ts index 911fc7f0f..4912e3e22 100644 --- a/types/three/examples/jsm/shaders/FilmShader.d.ts +++ b/types/three/examples/jsm/shaders/FilmShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const FilmShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/FocusShader.d.ts b/types/three/examples/jsm/shaders/FocusShader.d.ts index bd3420723..bee655e65 100644 --- a/types/three/examples/jsm/shaders/FocusShader.d.ts +++ b/types/three/examples/jsm/shaders/FocusShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const FocusShader: { name: string; diff --git a/types/three/examples/jsm/shaders/FreiChenShader.d.ts b/types/three/examples/jsm/shaders/FreiChenShader.d.ts index 385449e48..d6c9c6c8e 100644 --- a/types/three/examples/jsm/shaders/FreiChenShader.d.ts +++ b/types/three/examples/jsm/shaders/FreiChenShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const FreiChenShader: { name: string; diff --git a/types/three/examples/jsm/shaders/GTAOShader.d.ts b/types/three/examples/jsm/shaders/GTAOShader.d.ts index d1d1d635a..d902b51c6 100644 --- a/types/three/examples/jsm/shaders/GTAOShader.d.ts +++ b/types/three/examples/jsm/shaders/GTAOShader.d.ts @@ -1,4 +1,4 @@ -import { DataTexture, IUniform, Matrix4, Vector2, Vector3 } from '../../../src/Three.js'; +import { DataTexture, IUniform, Matrix4, Vector2, Vector3 } from "../../../src/Three.js"; export const GTAOShader: { name: string; diff --git a/types/three/examples/jsm/shaders/GammaCorrectionShader.d.ts b/types/three/examples/jsm/shaders/GammaCorrectionShader.d.ts index 59f37482a..ae0350882 100644 --- a/types/three/examples/jsm/shaders/GammaCorrectionShader.d.ts +++ b/types/three/examples/jsm/shaders/GammaCorrectionShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const GammaCorrectionShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/GodRaysShader.d.ts b/types/three/examples/jsm/shaders/GodRaysShader.d.ts index 7dbe737f8..92a7b10e8 100644 --- a/types/three/examples/jsm/shaders/GodRaysShader.d.ts +++ b/types/three/examples/jsm/shaders/GodRaysShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const GodRaysDepthMaskShader: { name: string; diff --git a/types/three/examples/jsm/shaders/HalftoneShader.d.ts b/types/three/examples/jsm/shaders/HalftoneShader.d.ts index 015330f10..d674f088f 100644 --- a/types/three/examples/jsm/shaders/HalftoneShader.d.ts +++ b/types/three/examples/jsm/shaders/HalftoneShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const HalftoneShader: { name: string; diff --git a/types/three/examples/jsm/shaders/HorizontalBlurShader.d.ts b/types/three/examples/jsm/shaders/HorizontalBlurShader.d.ts index ac7cbcb54..687ab8ce5 100644 --- a/types/three/examples/jsm/shaders/HorizontalBlurShader.d.ts +++ b/types/three/examples/jsm/shaders/HorizontalBlurShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const HorizontalBlurShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts b/types/three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts index d5f47ed34..2a2479731 100644 --- a/types/three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts +++ b/types/three/examples/jsm/shaders/HorizontalTiltShiftShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const HorizontalTiltShiftShader: { name: string; diff --git a/types/three/examples/jsm/shaders/HueSaturationShader.d.ts b/types/three/examples/jsm/shaders/HueSaturationShader.d.ts index 85f1041b1..818be1567 100644 --- a/types/three/examples/jsm/shaders/HueSaturationShader.d.ts +++ b/types/three/examples/jsm/shaders/HueSaturationShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const HueSaturationShader: { name: string; diff --git a/types/three/examples/jsm/shaders/KaleidoShader.d.ts b/types/three/examples/jsm/shaders/KaleidoShader.d.ts index 993a188d5..0de0ccee6 100644 --- a/types/three/examples/jsm/shaders/KaleidoShader.d.ts +++ b/types/three/examples/jsm/shaders/KaleidoShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const KaleidoShader: { name: string; diff --git a/types/three/examples/jsm/shaders/LuminosityHighPassShader.d.ts b/types/three/examples/jsm/shaders/LuminosityHighPassShader.d.ts index 513c7cfd5..55f9d2269 100644 --- a/types/three/examples/jsm/shaders/LuminosityHighPassShader.d.ts +++ b/types/three/examples/jsm/shaders/LuminosityHighPassShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const LuminosityHighPassShader: { name: string; diff --git a/types/three/examples/jsm/shaders/LuminosityShader.d.ts b/types/three/examples/jsm/shaders/LuminosityShader.d.ts index 4baa87305..bd304249d 100644 --- a/types/three/examples/jsm/shaders/LuminosityShader.d.ts +++ b/types/three/examples/jsm/shaders/LuminosityShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const LuminosityShader: { name: string; diff --git a/types/three/examples/jsm/shaders/MMDToonShader.d.ts b/types/three/examples/jsm/shaders/MMDToonShader.d.ts index a3a2ef99e..2ddcda56f 100644 --- a/types/three/examples/jsm/shaders/MMDToonShader.d.ts +++ b/types/three/examples/jsm/shaders/MMDToonShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const MMDToonShader: { name: string; diff --git a/types/three/examples/jsm/shaders/MirrorShader.d.ts b/types/three/examples/jsm/shaders/MirrorShader.d.ts index e2f02b37a..7d785dff4 100644 --- a/types/three/examples/jsm/shaders/MirrorShader.d.ts +++ b/types/three/examples/jsm/shaders/MirrorShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const MirrorShader: { name: string; diff --git a/types/three/examples/jsm/shaders/NormalMapShader.d.ts b/types/three/examples/jsm/shaders/NormalMapShader.d.ts index 2db696217..a7c129940 100644 --- a/types/three/examples/jsm/shaders/NormalMapShader.d.ts +++ b/types/three/examples/jsm/shaders/NormalMapShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const NormalMapShader: { name: string; diff --git a/types/three/examples/jsm/shaders/OutputShader.d.ts b/types/three/examples/jsm/shaders/OutputShader.d.ts index eea085823..a04729d5e 100644 --- a/types/three/examples/jsm/shaders/OutputShader.d.ts +++ b/types/three/examples/jsm/shaders/OutputShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const OutputShader: { name: string; diff --git a/types/three/examples/jsm/shaders/PoissonDenoiseShader.d.ts b/types/three/examples/jsm/shaders/PoissonDenoiseShader.d.ts index c29987ab1..5caf4ed78 100644 --- a/types/three/examples/jsm/shaders/PoissonDenoiseShader.d.ts +++ b/types/three/examples/jsm/shaders/PoissonDenoiseShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform, Matrix4, Vector2 } from '../../../src/Three.js'; +import { IUniform, Matrix4, Vector2 } from "../../../src/Three.js"; export const PoissonDenoiseShader: { name: string; diff --git a/types/three/examples/jsm/shaders/RGBShiftShader.d.ts b/types/three/examples/jsm/shaders/RGBShiftShader.d.ts index c3c234c7b..07a781e21 100644 --- a/types/three/examples/jsm/shaders/RGBShiftShader.d.ts +++ b/types/three/examples/jsm/shaders/RGBShiftShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const RGBShiftShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/SAOShader.d.ts b/types/three/examples/jsm/shaders/SAOShader.d.ts index f8ceddba6..17efdfdb5 100644 --- a/types/three/examples/jsm/shaders/SAOShader.d.ts +++ b/types/three/examples/jsm/shaders/SAOShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const SAOShader: { name: string; diff --git a/types/three/examples/jsm/shaders/SMAAShader.d.ts b/types/three/examples/jsm/shaders/SMAAShader.d.ts index 7df508d80..539fab0e3 100644 --- a/types/three/examples/jsm/shaders/SMAAShader.d.ts +++ b/types/three/examples/jsm/shaders/SMAAShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const SMAAEdgesShader: { name: string; diff --git a/types/three/examples/jsm/shaders/SSAOShader.d.ts b/types/three/examples/jsm/shaders/SSAOShader.d.ts index 636aee8c7..0810abb3d 100644 --- a/types/three/examples/jsm/shaders/SSAOShader.d.ts +++ b/types/three/examples/jsm/shaders/SSAOShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const SSAOShader: { name: string; diff --git a/types/three/examples/jsm/shaders/SSRShader.d.ts b/types/three/examples/jsm/shaders/SSRShader.d.ts index 24392008e..729c7e145 100644 --- a/types/three/examples/jsm/shaders/SSRShader.d.ts +++ b/types/three/examples/jsm/shaders/SSRShader.d.ts @@ -1,4 +1,4 @@ -import { Matrix4, Vector2, Texture, IUniform } from '../../../src/Three.js'; +import { IUniform, Matrix4, Texture, Vector2 } from "../../../src/Three.js"; /** * References: * https://lettier.github.io/3d-game-shaders-for-beginners/screen-space-reflection.html diff --git a/types/three/examples/jsm/shaders/SepiaShader.d.ts b/types/three/examples/jsm/shaders/SepiaShader.d.ts index b2eea168d..7cf71a567 100644 --- a/types/three/examples/jsm/shaders/SepiaShader.d.ts +++ b/types/three/examples/jsm/shaders/SepiaShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const SepiaShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/SobelOperatorShader.d.ts b/types/three/examples/jsm/shaders/SobelOperatorShader.d.ts index 5e1a356cd..f93776d7c 100644 --- a/types/three/examples/jsm/shaders/SobelOperatorShader.d.ts +++ b/types/three/examples/jsm/shaders/SobelOperatorShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const SobelOperatorShader: { name: string; diff --git a/types/three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts b/types/three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts index 143f2d6e8..ce2522f1e 100644 --- a/types/three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts +++ b/types/three/examples/jsm/shaders/SubsurfaceScatteringShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const SubsurfaceScatteringShader: { name: string; diff --git a/types/three/examples/jsm/shaders/TechnicolorShader.d.ts b/types/three/examples/jsm/shaders/TechnicolorShader.d.ts index 1343db3aa..b9e17d61f 100644 --- a/types/three/examples/jsm/shaders/TechnicolorShader.d.ts +++ b/types/three/examples/jsm/shaders/TechnicolorShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const TechnicolorShader: { name: string; diff --git a/types/three/examples/jsm/shaders/ToonShader.d.ts b/types/three/examples/jsm/shaders/ToonShader.d.ts index 478dc2816..f03cbe265 100644 --- a/types/three/examples/jsm/shaders/ToonShader.d.ts +++ b/types/three/examples/jsm/shaders/ToonShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const ToonShader1: { uniforms: { diff --git a/types/three/examples/jsm/shaders/TriangleBlurShader.d.ts b/types/three/examples/jsm/shaders/TriangleBlurShader.d.ts index 2a90d4000..f2c7fe723 100644 --- a/types/three/examples/jsm/shaders/TriangleBlurShader.d.ts +++ b/types/three/examples/jsm/shaders/TriangleBlurShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const TriangleBlurShader: { name: string; diff --git a/types/three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts b/types/three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts index 3fe9c4ffd..3330d808d 100644 --- a/types/three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts +++ b/types/three/examples/jsm/shaders/UnpackDepthRGBAShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const UnpackDepthRGBAShader: { name: string; diff --git a/types/three/examples/jsm/shaders/VelocityShader.d.ts b/types/three/examples/jsm/shaders/VelocityShader.d.ts index 1a0135ba3..978a747eb 100644 --- a/types/three/examples/jsm/shaders/VelocityShader.d.ts +++ b/types/three/examples/jsm/shaders/VelocityShader.d.ts @@ -1,9 +1,11 @@ -import { IUniform, UniformsLib } from '../../../src/Three.js'; +import { IUniform, UniformsLib } from "../../../src/Three.js"; export const VelocityShader: { name: string; - uniforms: (typeof UniformsLib)['common'] & - (typeof UniformsLib)['displacementmap'] & { + uniforms: + & (typeof UniformsLib)["common"] + & (typeof UniformsLib)["displacementmap"] + & { modelMatrixPrev: IUniform; currentProjectionViewMatrix: IUniform; previousProjectionViewMatrix: IUniform; diff --git a/types/three/examples/jsm/shaders/VerticalBlurShader.d.ts b/types/three/examples/jsm/shaders/VerticalBlurShader.d.ts index 513c861e6..b837418fc 100644 --- a/types/three/examples/jsm/shaders/VerticalBlurShader.d.ts +++ b/types/three/examples/jsm/shaders/VerticalBlurShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const VerticalBlurShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts b/types/three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts index 536a50691..f638c751d 100644 --- a/types/three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts +++ b/types/three/examples/jsm/shaders/VerticalTiltShiftShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const VerticalTiltShiftShader: { name: string; diff --git a/types/three/examples/jsm/shaders/VignetteShader.d.ts b/types/three/examples/jsm/shaders/VignetteShader.d.ts index 40621d384..597e58a80 100644 --- a/types/three/examples/jsm/shaders/VignetteShader.d.ts +++ b/types/three/examples/jsm/shaders/VignetteShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const VignetteShader: { uniforms: { diff --git a/types/three/examples/jsm/shaders/VolumeShader.d.ts b/types/three/examples/jsm/shaders/VolumeShader.d.ts index 0ed741682..c08e0f4ed 100644 --- a/types/three/examples/jsm/shaders/VolumeShader.d.ts +++ b/types/three/examples/jsm/shaders/VolumeShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const VolumeRenderShader1: { uniforms: { diff --git a/types/three/examples/jsm/shaders/WaterRefractionShader.d.ts b/types/three/examples/jsm/shaders/WaterRefractionShader.d.ts index bbf995db7..32d59aa35 100644 --- a/types/three/examples/jsm/shaders/WaterRefractionShader.d.ts +++ b/types/three/examples/jsm/shaders/WaterRefractionShader.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from '../../../src/Three.js'; +import { IUniform } from "../../../src/Three.js"; export const WaterRefractionShader: { name: string; diff --git a/types/three/examples/jsm/transpiler/GLSLDecoder.d.ts b/types/three/examples/jsm/transpiler/GLSLDecoder.d.ts index da96f3938..c19cb148f 100644 --- a/types/three/examples/jsm/transpiler/GLSLDecoder.d.ts +++ b/types/three/examples/jsm/transpiler/GLSLDecoder.d.ts @@ -1,4 +1,4 @@ -import { Program } from './AST.js'; +import { Program } from "./AST.js"; export default class GLSLDecoder { constructor(); diff --git a/types/three/examples/jsm/transpiler/ShaderToyDecoder.d.ts b/types/three/examples/jsm/transpiler/ShaderToyDecoder.d.ts index 3a4ae9f98..c5ac449a7 100644 --- a/types/three/examples/jsm/transpiler/ShaderToyDecoder.d.ts +++ b/types/three/examples/jsm/transpiler/ShaderToyDecoder.d.ts @@ -1,3 +1,3 @@ -import GLSLDecoder from './GLSLDecoder.js'; +import GLSLDecoder from "./GLSLDecoder.js"; export default class ShaderToyDecoder extends GLSLDecoder {} diff --git a/types/three/examples/jsm/transpiler/TSLEncoder.d.ts b/types/three/examples/jsm/transpiler/TSLEncoder.d.ts index 561939bb9..4023d736b 100644 --- a/types/three/examples/jsm/transpiler/TSLEncoder.d.ts +++ b/types/three/examples/jsm/transpiler/TSLEncoder.d.ts @@ -1,4 +1,4 @@ -import { Program } from './AST.js'; +import { Program } from "./AST.js"; export default class TSLEncoder { constructor(); diff --git a/types/three/examples/jsm/utils/BufferGeometryUtils.d.ts b/types/three/examples/jsm/utils/BufferGeometryUtils.d.ts index fcbc8d891..0029fdb9b 100644 --- a/types/three/examples/jsm/utils/BufferGeometryUtils.d.ts +++ b/types/three/examples/jsm/utils/BufferGeometryUtils.d.ts @@ -4,11 +4,11 @@ import { BufferAttribute, BufferGeometry, InterleavedBufferAttribute, - TrianglesDrawModes, - Mesh, Line, + Mesh, Points, -} from '../../../src/Three.js'; + TrianglesDrawModes, +} from "../../../src/Three.js"; export function deepCloneAttribute(attribute: BufferAttribute): BufferAttribute; export function mergeGeometries(geometries: BufferGeometry[], useGroups?: boolean): BufferGeometry; diff --git a/types/three/examples/jsm/utils/CameraUtils.d.ts b/types/three/examples/jsm/utils/CameraUtils.d.ts index 0588de87d..db92e3c7a 100644 --- a/types/three/examples/jsm/utils/CameraUtils.d.ts +++ b/types/three/examples/jsm/utils/CameraUtils.d.ts @@ -1,4 +1,4 @@ -import { PerspectiveCamera, Vector3 } from '../../../src/Three.js'; +import { PerspectiveCamera, Vector3 } from "../../../src/Three.js"; export function frameCorners( camera: PerspectiveCamera, diff --git a/types/three/examples/jsm/utils/GPUStatsPanel.d.ts b/types/three/examples/jsm/utils/GPUStatsPanel.d.ts index 907286dbd..6691e2a52 100644 --- a/types/three/examples/jsm/utils/GPUStatsPanel.d.ts +++ b/types/three/examples/jsm/utils/GPUStatsPanel.d.ts @@ -1,4 +1,4 @@ -import Stats from '../libs/stats.module.js'; +import Stats from "../libs/stats.module.js"; export class GPUStatsPanel extends Stats.Panel { context: WebGLRenderingContext | WebGL2RenderingContext; diff --git a/types/three/examples/jsm/utils/GeometryCompressionUtils.d.ts b/types/three/examples/jsm/utils/GeometryCompressionUtils.d.ts index f8224ba96..407a9987f 100644 --- a/types/three/examples/jsm/utils/GeometryCompressionUtils.d.ts +++ b/types/three/examples/jsm/utils/GeometryCompressionUtils.d.ts @@ -1,4 +1,4 @@ -import { Mesh } from '../../../src/Three.js'; +import { Mesh } from "../../../src/Three.js"; export function compressNormals(mesh: Mesh, encodeMethod: string): void; export function compressPositions(mesh: Mesh): void; diff --git a/types/three/examples/jsm/utils/GeometryUtils.d.ts b/types/three/examples/jsm/utils/GeometryUtils.d.ts index 1945c4da2..a77569289 100644 --- a/types/three/examples/jsm/utils/GeometryUtils.d.ts +++ b/types/three/examples/jsm/utils/GeometryUtils.d.ts @@ -1,4 +1,4 @@ -import { Vector3 } from '../../../src/Three.js'; +import { Vector3 } from "../../../src/Three.js"; export function hilbert2D( center?: Vector3, diff --git a/types/three/examples/jsm/utils/LDrawUtils.d.ts b/types/three/examples/jsm/utils/LDrawUtils.d.ts index 4bcffd599..6316844fb 100644 --- a/types/three/examples/jsm/utils/LDrawUtils.d.ts +++ b/types/three/examples/jsm/utils/LDrawUtils.d.ts @@ -1,4 +1,4 @@ -import { Group, Object3D } from '../../../src/Three.js'; +import { Group, Object3D } from "../../../src/Three.js"; export namespace LDrawUtils { function mergeObject(object: Object3D): Group; diff --git a/types/three/examples/jsm/utils/PackedPhongMaterial.d.ts b/types/three/examples/jsm/utils/PackedPhongMaterial.d.ts index bd1c56385..4f821181c 100644 --- a/types/three/examples/jsm/utils/PackedPhongMaterial.d.ts +++ b/types/three/examples/jsm/utils/PackedPhongMaterial.d.ts @@ -3,7 +3,7 @@ * * @param {Object} parameters */ -import { MeshPhongMaterial, MeshPhongMaterialParameters } from '../../../src/Three.js'; +import { MeshPhongMaterial, MeshPhongMaterialParameters } from "../../../src/Three.js"; export class PackedPhongMaterial extends MeshPhongMaterial { constructor(parameters: MeshPhongMaterialParameters); diff --git a/types/three/examples/jsm/utils/SceneUtils.d.ts b/types/three/examples/jsm/utils/SceneUtils.d.ts index 608c82a4a..538d719e8 100644 --- a/types/three/examples/jsm/utils/SceneUtils.d.ts +++ b/types/three/examples/jsm/utils/SceneUtils.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry, Group, InstancedMesh, Material, Object3D, Scene, Mesh, Vector3 } from '../../../src/Three.js'; +import { BufferGeometry, Group, InstancedMesh, Material, Mesh, Object3D, Scene, Vector3 } from "../../../src/Three.js"; export function createMeshesFromInstancedMesh(instancedMesh: InstancedMesh): Group; export function createMultiMaterialObject(geometry: BufferGeometry, materials: Material[]): Group; diff --git a/types/three/examples/jsm/utils/ShadowMapViewer.d.ts b/types/three/examples/jsm/utils/ShadowMapViewer.d.ts index 3c5751f44..b8956a092 100644 --- a/types/three/examples/jsm/utils/ShadowMapViewer.d.ts +++ b/types/three/examples/jsm/utils/ShadowMapViewer.d.ts @@ -1,4 +1,4 @@ -import { Light, Renderer } from '../../../src/Three.js'; +import { Light, Renderer } from "../../../src/Three.js"; export interface Size { width: number; diff --git a/types/three/examples/jsm/utils/SkeletonUtils.d.ts b/types/three/examples/jsm/utils/SkeletonUtils.d.ts index 7d6dd083c..1908eb479 100644 --- a/types/three/examples/jsm/utils/SkeletonUtils.d.ts +++ b/types/three/examples/jsm/utils/SkeletonUtils.d.ts @@ -1,4 +1,4 @@ -import { AnimationClip, Object3D, Skeleton } from '../../../src/Three.js'; +import { AnimationClip, Object3D, Skeleton } from "../../../src/Three.js"; export function clone(source: Object3D): Object3D; diff --git a/types/three/examples/jsm/utils/TextureUtils.d.ts b/types/three/examples/jsm/utils/TextureUtils.d.ts index 1ee051240..768ead8a1 100644 --- a/types/three/examples/jsm/utils/TextureUtils.d.ts +++ b/types/three/examples/jsm/utils/TextureUtils.d.ts @@ -1,3 +1,3 @@ -import { Texture, WebGLRenderer } from 'three'; +import { Texture, WebGLRenderer } from "three"; export function decompress(texture: Texture, maxTextureSize?: number, renderer?: WebGLRenderer): Texture; diff --git a/types/three/examples/jsm/utils/UVsDebug.d.ts b/types/three/examples/jsm/utils/UVsDebug.d.ts index 7b24d85eb..95a9e0222 100644 --- a/types/three/examples/jsm/utils/UVsDebug.d.ts +++ b/types/three/examples/jsm/utils/UVsDebug.d.ts @@ -1,3 +1,3 @@ -import { BufferGeometry } from '../../../src/Three.js'; +import { BufferGeometry } from "../../../src/Three.js"; export function UVsDebug(geometry: BufferGeometry, size?: number): HTMLCanvasElement; diff --git a/types/three/examples/jsm/webxr/ARButton.d.ts b/types/three/examples/jsm/webxr/ARButton.d.ts index c6d6693bd..9010023e3 100644 --- a/types/three/examples/jsm/webxr/ARButton.d.ts +++ b/types/three/examples/jsm/webxr/ARButton.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer } from '../../../src/Three.js'; +import { WebGLRenderer } from "../../../src/Three.js"; export interface ARButtonSessionInit extends XRSessionInit { domOverlay: { root: HTMLElement }; diff --git a/types/three/examples/jsm/webxr/OculusHandModel.d.ts b/types/three/examples/jsm/webxr/OculusHandModel.d.ts index 12cc1beaf..b7dad2601 100644 --- a/types/three/examples/jsm/webxr/OculusHandModel.d.ts +++ b/types/three/examples/jsm/webxr/OculusHandModel.d.ts @@ -1,5 +1,5 @@ -import { Mesh, Object3D, Texture, Vector3 } from '../../../src/Three.js'; -import { XRHandMeshModel } from './XRHandMeshModel.js'; +import { Mesh, Object3D, Texture, Vector3 } from "../../../src/Three.js"; +import { XRHandMeshModel } from "./XRHandMeshModel.js"; export class OculusHandModel extends Object3D { controller: Object3D; diff --git a/types/three/examples/jsm/webxr/OculusHandPointerModel.d.ts b/types/three/examples/jsm/webxr/OculusHandPointerModel.d.ts index 205eedf65..6fb55c5c3 100644 --- a/types/three/examples/jsm/webxr/OculusHandPointerModel.d.ts +++ b/types/three/examples/jsm/webxr/OculusHandPointerModel.d.ts @@ -1,4 +1,4 @@ -import 'webxr'; +import "webxr"; import { BufferGeometry, @@ -10,9 +10,9 @@ import { SphereGeometry, Texture, Vector3, -} from '../../../src/Three.js'; +} from "../../../src/Three.js"; -import { XRHandMeshModel } from './XRHandMeshModel.js'; +import { XRHandMeshModel } from "./XRHandMeshModel.js"; export class OculusHandPointerModel extends Object3D { hand: Object3D; diff --git a/types/three/examples/jsm/webxr/Text2D.d.ts b/types/three/examples/jsm/webxr/Text2D.d.ts index 3424ae100..829813475 100644 --- a/types/three/examples/jsm/webxr/Text2D.d.ts +++ b/types/three/examples/jsm/webxr/Text2D.d.ts @@ -1,3 +1,3 @@ -import { Mesh } from '../../../src/Three.js'; +import { Mesh } from "../../../src/Three.js"; export function createText(message: string, height: number): Mesh; diff --git a/types/three/examples/jsm/webxr/VRButton.d.ts b/types/three/examples/jsm/webxr/VRButton.d.ts index bf9469921..559abcb31 100644 --- a/types/three/examples/jsm/webxr/VRButton.d.ts +++ b/types/three/examples/jsm/webxr/VRButton.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer } from '../../../src/Three.js'; +import { WebGLRenderer } from "../../../src/Three.js"; export namespace VRButton { function createButton(renderer: WebGLRenderer): HTMLElement; diff --git a/types/three/examples/jsm/webxr/XRButton.d.ts b/types/three/examples/jsm/webxr/XRButton.d.ts index 5d0f66684..dc63d5dde 100644 --- a/types/three/examples/jsm/webxr/XRButton.d.ts +++ b/types/three/examples/jsm/webxr/XRButton.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer } from '../../../src/Three.js'; +import { WebGLRenderer } from "../../../src/Three.js"; // tslint:disable-next-line:no-unnecessary-class export class XRButton { diff --git a/types/three/examples/jsm/webxr/XRControllerModelFactory.d.ts b/types/three/examples/jsm/webxr/XRControllerModelFactory.d.ts index 7c0a98e11..1162210e8 100644 --- a/types/three/examples/jsm/webxr/XRControllerModelFactory.d.ts +++ b/types/three/examples/jsm/webxr/XRControllerModelFactory.d.ts @@ -1,5 +1,5 @@ -import { Group, Loader, Object3D, Texture } from '../../../src/Three.js'; -import { GLTF } from '../loaders/GLTFLoader.js'; +import { Group, Loader, Object3D, Texture } from "../../../src/Three.js"; +import { GLTF } from "../loaders/GLTFLoader.js"; export class XRControllerModel extends Object3D { constructor(); diff --git a/types/three/examples/jsm/webxr/XREstimatedLight.d.ts b/types/three/examples/jsm/webxr/XREstimatedLight.d.ts index 4e5a564ed..2a6ae8989 100644 --- a/types/three/examples/jsm/webxr/XREstimatedLight.d.ts +++ b/types/three/examples/jsm/webxr/XREstimatedLight.d.ts @@ -1,4 +1,4 @@ -import { DirectionalLight, Group, LightProbe, Texture, WebGLRenderer, Object3DEventMap } from '../../../src/Three.js'; +import { DirectionalLight, Group, LightProbe, Object3DEventMap, Texture, WebGLRenderer } from "../../../src/Three.js"; export class SessionLightProbe { xrLight: XREstimatedLight; diff --git a/types/three/examples/jsm/webxr/XRHandMeshModel.d.ts b/types/three/examples/jsm/webxr/XRHandMeshModel.d.ts index e42109662..40c18df17 100644 --- a/types/three/examples/jsm/webxr/XRHandMeshModel.d.ts +++ b/types/three/examples/jsm/webxr/XRHandMeshModel.d.ts @@ -1,5 +1,5 @@ -import { Loader, Object3D } from '../../../src/Three.js'; -import { GLTF } from '../loaders/GLTFLoader.js'; +import { Loader, Object3D } from "../../../src/Three.js"; +import { GLTF } from "../loaders/GLTFLoader.js"; export class XRHandMeshModel { controller: Object3D; diff --git a/types/three/examples/jsm/webxr/XRHandModelFactory.d.ts b/types/three/examples/jsm/webxr/XRHandModelFactory.d.ts index c0a155549..6b6af3b4a 100644 --- a/types/three/examples/jsm/webxr/XRHandModelFactory.d.ts +++ b/types/three/examples/jsm/webxr/XRHandModelFactory.d.ts @@ -1,9 +1,9 @@ -import { Group, Object3D } from '../../../src/Three.js'; +import { Group, Object3D } from "../../../src/Three.js"; -import { XRHandPrimitiveModel, XRHandPrimitiveModelOptions } from './XRHandPrimitiveModel.js'; -import { XRHandMeshModel } from './XRHandMeshModel.js'; +import { XRHandMeshModel } from "./XRHandMeshModel.js"; +import { XRHandPrimitiveModel, XRHandPrimitiveModelOptions } from "./XRHandPrimitiveModel.js"; -export type XRHandModelHandedness = 'left' | 'right'; +export type XRHandModelHandedness = "left" | "right"; export class XRHandModel extends Object3D { constructor(); @@ -19,7 +19,7 @@ export class XRHandModelFactory { createHandModel( controller: Group, - profile?: 'spheres' | 'boxes' | 'mesh', + profile?: "spheres" | "boxes" | "mesh", options?: XRHandPrimitiveModelOptions, ): XRHandModel; } diff --git a/types/three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts b/types/three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts index 2ca6634b7..85086f566 100644 --- a/types/three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts +++ b/types/three/examples/jsm/webxr/XRHandPrimitiveModel.d.ts @@ -1,9 +1,9 @@ -import { Group, Texture } from '../../../src/Three.js'; +import { Group, Texture } from "../../../src/Three.js"; -import { XRHandModel, XRHandModelHandedness } from './XRHandModelFactory.js'; +import { XRHandModel, XRHandModelHandedness } from "./XRHandModelFactory.js"; export interface XRHandPrimitiveModelOptions { - primitive?: 'sphere' | 'box' | undefined; + primitive?: "sphere" | "box" | undefined; } export class XRHandPrimitiveModel { diff --git a/types/three/examples/jsm/webxr/XRPlanes.d.ts b/types/three/examples/jsm/webxr/XRPlanes.d.ts index 71dee5f84..2f48b4bb3 100644 --- a/types/three/examples/jsm/webxr/XRPlanes.d.ts +++ b/types/three/examples/jsm/webxr/XRPlanes.d.ts @@ -1,4 +1,4 @@ -import { Object3D } from '../../../src/Three.js'; +import { Object3D } from "../../../src/Three.js"; export class XRPlanes extends Object3D { constructor(renderer: THREE.WebGLRenderer); diff --git a/types/three/index.d.ts b/types/three/index.d.ts index f375c03a8..5d11f73db 100644 --- a/types/three/index.d.ts +++ b/types/three/index.d.ts @@ -3,6 +3,6 @@ // Periodically, the updates from the repository are pushed to DefinitelyTyped // and released in the @types/three npm package. -export * from './src/Three'; +export * from "./src/Three"; export as namespace THREE; diff --git a/types/three/src/Three.d.ts b/types/three/src/Three.d.ts index 382206655..8231192be 100644 --- a/types/three/src/Three.d.ts +++ b/types/three/src/Three.d.ts @@ -1,240 +1,240 @@ /** * SRC */ -export * from './constants.js'; -export * from './Three.Legacy.js'; +export * from "./constants.js"; +export * from "./Three.Legacy.js"; /** * Animation */ -export * from './animation/tracks/VectorKeyframeTrack.js'; -export * from './animation/tracks/StringKeyframeTrack.js'; -export * from './animation/tracks/QuaternionKeyframeTrack.js'; -export * from './animation/tracks/NumberKeyframeTrack.js'; -export * from './animation/tracks/ColorKeyframeTrack.js'; -export * from './animation/tracks/BooleanKeyframeTrack.js'; -export * from './animation/PropertyMixer.js'; -export * from './animation/PropertyBinding.js'; -export * from './animation/KeyframeTrack.js'; -import * as AnimationUtils from './animation/AnimationUtils.js'; +export * from "./animation/KeyframeTrack.js"; +export * from "./animation/PropertyBinding.js"; +export * from "./animation/PropertyMixer.js"; +export * from "./animation/tracks/BooleanKeyframeTrack.js"; +export * from "./animation/tracks/ColorKeyframeTrack.js"; +export * from "./animation/tracks/NumberKeyframeTrack.js"; +export * from "./animation/tracks/QuaternionKeyframeTrack.js"; +export * from "./animation/tracks/StringKeyframeTrack.js"; +export * from "./animation/tracks/VectorKeyframeTrack.js"; +import * as AnimationUtils from "./animation/AnimationUtils.js"; export { AnimationUtils }; -export * from './animation/AnimationObjectGroup.js'; -export * from './animation/AnimationMixer.js'; -export * from './animation/AnimationClip.js'; -export * from './animation/AnimationAction.js'; +export * from "./animation/AnimationAction.js"; +export * from "./animation/AnimationClip.js"; +export * from "./animation/AnimationMixer.js"; +export * from "./animation/AnimationObjectGroup.js"; /** * Audio */ -export * from './audio/AudioListener.js'; -export * from './audio/PositionalAudio.js'; -export * from './audio/AudioContext.js'; -export * from './audio/AudioAnalyser.js'; -export * from './audio/Audio.js'; +export * from "./audio/Audio.js"; +export * from "./audio/AudioAnalyser.js"; +export * from "./audio/AudioContext.js"; +export * from "./audio/AudioListener.js"; +export * from "./audio/PositionalAudio.js"; /** * Cameras */ -export * from './cameras/StereoCamera.js'; -export * from './cameras/PerspectiveCamera.js'; -export * from './cameras/OrthographicCamera.js'; -export * from './cameras/CubeCamera.js'; -export * from './cameras/ArrayCamera.js'; -export * from './cameras/Camera.js'; +export * from "./cameras/ArrayCamera.js"; +export * from "./cameras/Camera.js"; +export * from "./cameras/CubeCamera.js"; +export * from "./cameras/OrthographicCamera.js"; +export * from "./cameras/PerspectiveCamera.js"; +export * from "./cameras/StereoCamera.js"; /** * Core */ -export * from './core/RenderTarget.js'; -export * from './core/Uniform.js'; -export * from './core/UniformsGroup.js'; -export * from './core/InstancedBufferGeometry.js'; -export * from './core/BufferGeometry.js'; -export * from './core/InterleavedBufferAttribute.js'; -export * from './core/InstancedInterleavedBuffer.js'; -export * from './core/InterleavedBuffer.js'; -export * from './core/InstancedBufferAttribute.js'; -export * from './core/GLBufferAttribute.js'; -export * from './core/BufferAttribute.js'; -export * from './core/Object3D.js'; -export * from './core/Raycaster.js'; -export * from './core/Layers.js'; -export * from './core/EventDispatcher.js'; -export * from './core/Clock.js'; +export * from "./core/BufferAttribute.js"; +export * from "./core/BufferGeometry.js"; +export * from "./core/Clock.js"; +export * from "./core/EventDispatcher.js"; +export * from "./core/GLBufferAttribute.js"; +export * from "./core/InstancedBufferAttribute.js"; +export * from "./core/InstancedBufferGeometry.js"; +export * from "./core/InstancedInterleavedBuffer.js"; +export * from "./core/InterleavedBuffer.js"; +export * from "./core/InterleavedBufferAttribute.js"; +export * from "./core/Layers.js"; +export * from "./core/Object3D.js"; +export * from "./core/Raycaster.js"; +export * from "./core/RenderTarget.js"; +export * from "./core/Uniform.js"; +export * from "./core/UniformsGroup.js"; /** * Extras */ -export * from './extras/curves/Curves.js'; -export * from './extras/core/Shape.js'; -export * from './extras/core/Path.js'; -export * from './extras/core/ShapePath.js'; -export * from './extras/core/CurvePath.js'; -export * from './extras/core/Curve.js'; -export * from './extras/core/Interpolations.js'; -export * as DataUtils from './extras/DataUtils.js'; -export * from './extras/ImageUtils.js'; -export * from './extras/ShapeUtils.js'; -export * from './extras/PMREMGenerator.js'; +export * from "./extras/core/Curve.js"; +export * from "./extras/core/CurvePath.js"; +export * from "./extras/core/Interpolations.js"; +export * from "./extras/core/Path.js"; +export * from "./extras/core/Shape.js"; +export * from "./extras/core/ShapePath.js"; +export * from "./extras/curves/Curves.js"; +export * as DataUtils from "./extras/DataUtils.js"; +export * from "./extras/ImageUtils.js"; +export * from "./extras/PMREMGenerator.js"; +export * from "./extras/ShapeUtils.js"; /** * Geometries */ -export * from './geometries/Geometries.js'; +export * from "./geometries/Geometries.js"; /** * Helpers */ -export * from './helpers/SpotLightHelper.js'; -export * from './helpers/SkeletonHelper.js'; -export * from './helpers/PointLightHelper.js'; -export * from './helpers/HemisphereLightHelper.js'; -export * from './helpers/GridHelper.js'; -export * from './helpers/PolarGridHelper.js'; -export * from './helpers/DirectionalLightHelper.js'; -export * from './helpers/CameraHelper.js'; -export * from './helpers/BoxHelper.js'; -export * from './helpers/Box3Helper.js'; -export * from './helpers/PlaneHelper.js'; -export * from './helpers/ArrowHelper.js'; -export * from './helpers/AxesHelper.js'; +export * from "./helpers/ArrowHelper.js"; +export * from "./helpers/AxesHelper.js"; +export * from "./helpers/Box3Helper.js"; +export * from "./helpers/BoxHelper.js"; +export * from "./helpers/CameraHelper.js"; +export * from "./helpers/DirectionalLightHelper.js"; +export * from "./helpers/GridHelper.js"; +export * from "./helpers/HemisphereLightHelper.js"; +export * from "./helpers/PlaneHelper.js"; +export * from "./helpers/PointLightHelper.js"; +export * from "./helpers/PolarGridHelper.js"; +export * from "./helpers/SkeletonHelper.js"; +export * from "./helpers/SpotLightHelper.js"; /** * Lights */ -export * from './lights/SpotLightShadow.js'; -export * from './lights/SpotLight.js'; -export * from './lights/PointLight.js'; -export * from './lights/PointLightShadow.js'; -export * from './lights/RectAreaLight.js'; -export * from './lights/HemisphereLight.js'; -export * from './lights/DirectionalLightShadow.js'; -export * from './lights/DirectionalLight.js'; -export * from './lights/AmbientLight.js'; -export * from './lights/LightShadow.js'; -export * from './lights/Light.js'; -export * from './lights/LightProbe.js'; +export * from "./lights/AmbientLight.js"; +export * from "./lights/DirectionalLight.js"; +export * from "./lights/DirectionalLightShadow.js"; +export * from "./lights/HemisphereLight.js"; +export * from "./lights/Light.js"; +export * from "./lights/LightProbe.js"; +export * from "./lights/LightShadow.js"; +export * from "./lights/PointLight.js"; +export * from "./lights/PointLightShadow.js"; +export * from "./lights/RectAreaLight.js"; +export * from "./lights/SpotLight.js"; +export * from "./lights/SpotLightShadow.js"; /** * Loaders */ -export * from './loaders/AnimationLoader.js'; -export * from './loaders/CompressedTextureLoader.js'; -export * from './loaders/DataTextureLoader.js'; -export * from './loaders/CubeTextureLoader.js'; -export * from './loaders/TextureLoader.js'; -export * from './loaders/ObjectLoader.js'; -export * from './loaders/MaterialLoader.js'; -export * from './loaders/BufferGeometryLoader.js'; -export * from './loaders/LoadingManager.js'; -export * from './loaders/ImageLoader.js'; -export * from './loaders/ImageBitmapLoader.js'; -export * from './loaders/FileLoader.js'; -export * from './loaders/Loader.js'; -export * from './loaders/LoaderUtils.js'; -export * from './loaders/Cache.js'; -export * from './loaders/AudioLoader.js'; +export * from "./loaders/AnimationLoader.js"; +export * from "./loaders/AudioLoader.js"; +export * from "./loaders/BufferGeometryLoader.js"; +export * from "./loaders/Cache.js"; +export * from "./loaders/CompressedTextureLoader.js"; +export * from "./loaders/CubeTextureLoader.js"; +export * from "./loaders/DataTextureLoader.js"; +export * from "./loaders/FileLoader.js"; +export * from "./loaders/ImageBitmapLoader.js"; +export * from "./loaders/ImageLoader.js"; +export * from "./loaders/Loader.js"; +export * from "./loaders/LoaderUtils.js"; +export * from "./loaders/LoadingManager.js"; +export * from "./loaders/MaterialLoader.js"; +export * from "./loaders/ObjectLoader.js"; +export * from "./loaders/TextureLoader.js"; /** * Materials */ -export * from './materials/Materials.js'; +export * from "./materials/Materials.js"; /** * Math */ -export * from './math/interpolants/QuaternionLinearInterpolant.js'; -export * from './math/interpolants/LinearInterpolant.js'; -export * from './math/interpolants/DiscreteInterpolant.js'; -export * from './math/interpolants/CubicInterpolant.js'; -export * from './math/Interpolant.js'; -export * from './math/Triangle.js'; -export * from './math/Spherical.js'; -export * from './math/Cylindrical.js'; -export * from './math/Plane.js'; -export * from './math/Frustum.js'; -export * from './math/Sphere.js'; -export * from './math/Ray.js'; -export * from './math/Matrix4.js'; -export * from './math/Matrix3.js'; -export * from './math/Box3.js'; -export * from './math/Box2.js'; -export * from './math/Line3.js'; -export * from './math/Euler.js'; -export * from './math/Vector4.js'; -export * from './math/Vector3.js'; -export * from './math/Vector2.js'; -export * from './math/Quaternion.js'; -export * from './math/Color.js'; -export * from './math/SphericalHarmonics3.js'; -export { ColorManagement, WorkingColorSpace, DefinedColorSpace } from './math/ColorManagement.js'; -import * as MathUtils from './math/MathUtils.js'; +export * from "./math/Box2.js"; +export * from "./math/Box3.js"; +export * from "./math/Color.js"; +export { ColorManagement, DefinedColorSpace, WorkingColorSpace } from "./math/ColorManagement.js"; +export * from "./math/Cylindrical.js"; +export * from "./math/Euler.js"; +export * from "./math/Frustum.js"; +export * from "./math/Interpolant.js"; +export * from "./math/interpolants/CubicInterpolant.js"; +export * from "./math/interpolants/DiscreteInterpolant.js"; +export * from "./math/interpolants/LinearInterpolant.js"; +export * from "./math/interpolants/QuaternionLinearInterpolant.js"; +export * from "./math/Line3.js"; +export * from "./math/Matrix3.js"; +export * from "./math/Matrix4.js"; +export * from "./math/Plane.js"; +export * from "./math/Quaternion.js"; +export * from "./math/Ray.js"; +export * from "./math/Sphere.js"; +export * from "./math/Spherical.js"; +export * from "./math/SphericalHarmonics3.js"; +export * from "./math/Triangle.js"; +export * from "./math/Vector2.js"; +export * from "./math/Vector3.js"; +export * from "./math/Vector4.js"; +import * as MathUtils from "./math/MathUtils.js"; export { MathUtils }; /** * Objects */ -export * from './objects/Sprite.js'; -export * from './objects/LOD.js'; -export * from './objects/InstancedMesh.js'; -export * from './objects/BatchedMesh.js'; -export * from './objects/SkinnedMesh.js'; -export * from './objects/Skeleton.js'; -export * from './objects/Bone.js'; -export * from './objects/Mesh.js'; -export * from './objects/LineSegments.js'; -export * from './objects/LineLoop.js'; -export * from './objects/Line.js'; -export * from './objects/Points.js'; -export * from './objects/Group.js'; +export * from "./objects/BatchedMesh.js"; +export * from "./objects/Bone.js"; +export * from "./objects/Group.js"; +export * from "./objects/InstancedMesh.js"; +export * from "./objects/Line.js"; +export * from "./objects/LineLoop.js"; +export * from "./objects/LineSegments.js"; +export * from "./objects/LOD.js"; +export * from "./objects/Mesh.js"; +export * from "./objects/Points.js"; +export * from "./objects/Skeleton.js"; +export * from "./objects/SkinnedMesh.js"; +export * from "./objects/Sprite.js"; /** * Renderers */ -export * from './renderers/WebGLCubeRenderTarget.js'; -export * from './renderers/WebGLMultipleRenderTargets.js'; -export * from './renderers/WebGLRenderTarget.js'; -export * from './renderers/WebGLRenderer.js'; -export * from './renderers/WebGL1Renderer.js'; -export * from './renderers/WebGL3DRenderTarget.js'; -export * from './renderers/WebGLArrayRenderTarget.js'; -export * from './renderers/shaders/ShaderLib.js'; -export * from './renderers/shaders/UniformsLib.js'; -export * from './renderers/shaders/UniformsUtils.js'; -export * from './renderers/shaders/ShaderChunk.js'; -export * from './renderers/webgl/WebGLBufferRenderer.js'; -export * from './renderers/webgl/WebGLCapabilities.js'; -export * from './renderers/webgl/WebGLClipping.js'; -export * from './renderers/webgl/WebGLCubeUVMaps.js'; -export * from './renderers/webgl/WebGLExtensions.js'; -export * from './renderers/webgl/WebGLGeometries.js'; -export * from './renderers/webgl/WebGLIndexedBufferRenderer.js'; -export * from './renderers/webgl/WebGLInfo.js'; -export * from './renderers/webgl/WebGLLights.js'; -export * from './renderers/webgl/WebGLObjects.js'; -export * from './renderers/webgl/WebGLProgram.js'; -export * from './renderers/webgl/WebGLPrograms.js'; -export * from './renderers/webgl/WebGLProperties.js'; -export * from './renderers/webgl/WebGLRenderLists.js'; -export * from './renderers/webgl/WebGLShader.js'; -export * from './renderers/webgl/WebGLShadowMap.js'; -export * from './renderers/webgl/WebGLState.js'; -export * from './renderers/webgl/WebGLTextures.js'; -export * from './renderers/webgl/WebGLUniforms.js'; -export * from './renderers/webgl/WebGLUniformsGroups.js'; -export * from './renderers/webxr/WebXRController.js'; -export * from './renderers/webxr/WebXRManager.js'; -export { WebGLUtils } from './renderers/webgl/WebGLUtils.js'; +export * from "./renderers/shaders/ShaderChunk.js"; +export * from "./renderers/shaders/ShaderLib.js"; +export * from "./renderers/shaders/UniformsLib.js"; +export * from "./renderers/shaders/UniformsUtils.js"; +export * from "./renderers/webgl/WebGLBufferRenderer.js"; +export * from "./renderers/webgl/WebGLCapabilities.js"; +export * from "./renderers/webgl/WebGLClipping.js"; +export * from "./renderers/webgl/WebGLCubeUVMaps.js"; +export * from "./renderers/webgl/WebGLExtensions.js"; +export * from "./renderers/webgl/WebGLGeometries.js"; +export * from "./renderers/webgl/WebGLIndexedBufferRenderer.js"; +export * from "./renderers/webgl/WebGLInfo.js"; +export * from "./renderers/webgl/WebGLLights.js"; +export * from "./renderers/webgl/WebGLObjects.js"; +export * from "./renderers/webgl/WebGLProgram.js"; +export * from "./renderers/webgl/WebGLPrograms.js"; +export * from "./renderers/webgl/WebGLProperties.js"; +export * from "./renderers/webgl/WebGLRenderLists.js"; +export * from "./renderers/webgl/WebGLShader.js"; +export * from "./renderers/webgl/WebGLShadowMap.js"; +export * from "./renderers/webgl/WebGLState.js"; +export * from "./renderers/webgl/WebGLTextures.js"; +export * from "./renderers/webgl/WebGLUniforms.js"; +export * from "./renderers/webgl/WebGLUniformsGroups.js"; +export { WebGLUtils } from "./renderers/webgl/WebGLUtils.js"; +export * from "./renderers/WebGL1Renderer.js"; +export * from "./renderers/WebGL3DRenderTarget.js"; +export * from "./renderers/WebGLArrayRenderTarget.js"; +export * from "./renderers/WebGLCubeRenderTarget.js"; +export * from "./renderers/WebGLMultipleRenderTargets.js"; +export * from "./renderers/WebGLRenderer.js"; +export * from "./renderers/WebGLRenderTarget.js"; +export * from "./renderers/webxr/WebXRController.js"; +export * from "./renderers/webxr/WebXRManager.js"; /** * Scenes */ -export * from './scenes/FogExp2.js'; -export * from './scenes/Fog.js'; -export * from './scenes/Scene.js'; +export * from "./scenes/Fog.js"; +export * from "./scenes/FogExp2.js"; +export * from "./scenes/Scene.js"; /** * Textures */ -export * from './textures/VideoTexture.js'; -export * from './textures/CompressedArrayTexture.js'; -export * from './textures/CompressedCubeTexture.js'; -export * from './textures/DataTexture.js'; -export * from './textures/CompressedTexture.js'; -export * from './textures/CubeTexture.js'; -export * from './textures/Data3DTexture.js'; -export * from './textures/DataArrayTexture.js'; -export * from './textures/CanvasTexture.js'; -export * from './textures/DepthTexture.js'; -export * from './textures/FramebufferTexture.js'; -export * from './textures/Source.js'; -export * from './textures/Texture.js'; +export * from "./textures/CanvasTexture.js"; +export * from "./textures/CompressedArrayTexture.js"; +export * from "./textures/CompressedCubeTexture.js"; +export * from "./textures/CompressedTexture.js"; +export * from "./textures/CubeTexture.js"; +export * from "./textures/Data3DTexture.js"; +export * from "./textures/DataArrayTexture.js"; +export * from "./textures/DataTexture.js"; +export * from "./textures/DepthTexture.js"; +export * from "./textures/FramebufferTexture.js"; +export * from "./textures/Source.js"; +export * from "./textures/Texture.js"; +export * from "./textures/VideoTexture.js"; /** * Utils */ -export { createCanvasElement } from './utils.js'; +export { createCanvasElement } from "./utils.js"; diff --git a/types/three/src/animation/AnimationAction.d.ts b/types/three/src/animation/AnimationAction.d.ts index 40c2bf2d2..3fa3852a2 100644 --- a/types/three/src/animation/AnimationAction.d.ts +++ b/types/three/src/animation/AnimationAction.d.ts @@ -1,7 +1,7 @@ -import { AnimationMixer } from './AnimationMixer.js'; -import { AnimationClip } from './AnimationClip.js'; -import { AnimationActionLoopStyles, AnimationBlendMode } from '../constants.js'; -import { Object3D } from '../core/Object3D.js'; +import { AnimationActionLoopStyles, AnimationBlendMode } from "../constants.js"; +import { Object3D } from "../core/Object3D.js"; +import { AnimationClip } from "./AnimationClip.js"; +import { AnimationMixer } from "./AnimationMixer.js"; // Animation //////////////////////////////////////////////////////////////////////////////////////// export class AnimationAction { diff --git a/types/three/src/animation/AnimationClip.d.ts b/types/three/src/animation/AnimationClip.d.ts index ea1ba4023..a80c448fd 100644 --- a/types/three/src/animation/AnimationClip.d.ts +++ b/types/three/src/animation/AnimationClip.d.ts @@ -1,7 +1,7 @@ -import { KeyframeTrack } from './KeyframeTrack.js'; -import { Vector3 } from '../math/Vector3.js'; -import { Bone } from '../objects/Bone.js'; -import { AnimationBlendMode } from '../constants.js'; +import { AnimationBlendMode } from "../constants.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Bone } from "../objects/Bone.js"; +import { KeyframeTrack } from "./KeyframeTrack.js"; export interface MorphTarget { name: string; diff --git a/types/three/src/animation/AnimationMixer.d.ts b/types/three/src/animation/AnimationMixer.d.ts index 236054e57..95712d893 100644 --- a/types/three/src/animation/AnimationMixer.d.ts +++ b/types/three/src/animation/AnimationMixer.d.ts @@ -1,9 +1,9 @@ -import { AnimationClip } from './AnimationClip.js'; -import { AnimationAction } from './AnimationAction.js'; -import { AnimationBlendMode } from '../constants.js'; -import { EventDispatcher } from '../core/EventDispatcher.js'; -import { Object3D } from '../core/Object3D.js'; -import { AnimationObjectGroup } from './AnimationObjectGroup.js'; +import { AnimationBlendMode } from "../constants.js"; +import { EventDispatcher } from "../core/EventDispatcher.js"; +import { Object3D } from "../core/Object3D.js"; +import { AnimationAction } from "./AnimationAction.js"; +import { AnimationClip } from "./AnimationClip.js"; +import { AnimationObjectGroup } from "./AnimationObjectGroup.js"; export interface AnimationMixerEventMap { loop: { action: AnimationAction; loopDelta: number }; diff --git a/types/three/src/animation/AnimationUtils.d.ts b/types/three/src/animation/AnimationUtils.d.ts index 002c77083..3d76e03fd 100644 --- a/types/three/src/animation/AnimationUtils.d.ts +++ b/types/three/src/animation/AnimationUtils.d.ts @@ -1,4 +1,4 @@ -import { AnimationClip } from './AnimationClip.js'; +import { AnimationClip } from "./AnimationClip.js"; export function convertArray(array: any, type: any, forceClone: boolean): any; export function isTypedArray(object: any): boolean; diff --git a/types/three/src/animation/KeyframeTrack.d.ts b/types/three/src/animation/KeyframeTrack.d.ts index dafac4cc7..2a04bca28 100644 --- a/types/three/src/animation/KeyframeTrack.d.ts +++ b/types/three/src/animation/KeyframeTrack.d.ts @@ -1,8 +1,8 @@ -import { DiscreteInterpolant } from '../math/interpolants/DiscreteInterpolant.js'; -import { LinearInterpolant } from '../math/interpolants/LinearInterpolant.js'; -import { CubicInterpolant } from '../math/interpolants/CubicInterpolant.js'; -import { Interpolant } from '../math/Interpolant.js'; -import { InterpolationModes } from '../constants.js'; +import { InterpolationModes } from "../constants.js"; +import { Interpolant } from "../math/Interpolant.js"; +import { CubicInterpolant } from "../math/interpolants/CubicInterpolant.js"; +import { DiscreteInterpolant } from "../math/interpolants/DiscreteInterpolant.js"; +import { LinearInterpolant } from "../math/interpolants/LinearInterpolant.js"; export class KeyframeTrack { /** diff --git a/types/three/src/animation/tracks/BooleanKeyframeTrack.d.ts b/types/three/src/animation/tracks/BooleanKeyframeTrack.d.ts index c265354a1..45b65448a 100644 --- a/types/three/src/animation/tracks/BooleanKeyframeTrack.d.ts +++ b/types/three/src/animation/tracks/BooleanKeyframeTrack.d.ts @@ -1,4 +1,4 @@ -import { KeyframeTrack } from '../KeyframeTrack.js'; +import { KeyframeTrack } from "../KeyframeTrack.js"; export class BooleanKeyframeTrack extends KeyframeTrack { constructor(name: string, times: ArrayLike, values: ArrayLike); diff --git a/types/three/src/animation/tracks/ColorKeyframeTrack.d.ts b/types/three/src/animation/tracks/ColorKeyframeTrack.d.ts index fb61c356c..60d0fe9f7 100644 --- a/types/three/src/animation/tracks/ColorKeyframeTrack.d.ts +++ b/types/three/src/animation/tracks/ColorKeyframeTrack.d.ts @@ -1,5 +1,5 @@ -import { KeyframeTrack } from '../KeyframeTrack.js'; -import { InterpolationModes } from '../../constants.js'; +import { InterpolationModes } from "../../constants.js"; +import { KeyframeTrack } from "../KeyframeTrack.js"; export class ColorKeyframeTrack extends KeyframeTrack { constructor(name: string, times: ArrayLike, values: ArrayLike, interpolation?: InterpolationModes); diff --git a/types/three/src/animation/tracks/NumberKeyframeTrack.d.ts b/types/three/src/animation/tracks/NumberKeyframeTrack.d.ts index b51bf6c26..e27ff0337 100644 --- a/types/three/src/animation/tracks/NumberKeyframeTrack.d.ts +++ b/types/three/src/animation/tracks/NumberKeyframeTrack.d.ts @@ -1,5 +1,5 @@ -import { KeyframeTrack } from '../KeyframeTrack.js'; -import { InterpolationModes } from '../../constants.js'; +import { InterpolationModes } from "../../constants.js"; +import { KeyframeTrack } from "../KeyframeTrack.js"; export class NumberKeyframeTrack extends KeyframeTrack { constructor(name: string, times: ArrayLike, values: ArrayLike, interpolation?: InterpolationModes); diff --git a/types/three/src/animation/tracks/QuaternionKeyframeTrack.d.ts b/types/three/src/animation/tracks/QuaternionKeyframeTrack.d.ts index 8010da1d4..29942bad5 100644 --- a/types/three/src/animation/tracks/QuaternionKeyframeTrack.d.ts +++ b/types/three/src/animation/tracks/QuaternionKeyframeTrack.d.ts @@ -1,5 +1,5 @@ -import { KeyframeTrack } from '../KeyframeTrack.js'; -import { InterpolationModes } from '../../constants.js'; +import { InterpolationModes } from "../../constants.js"; +import { KeyframeTrack } from "../KeyframeTrack.js"; export class QuaternionKeyframeTrack extends KeyframeTrack { constructor(name: string, times: ArrayLike, values: ArrayLike, interpolation?: InterpolationModes); diff --git a/types/three/src/animation/tracks/StringKeyframeTrack.d.ts b/types/three/src/animation/tracks/StringKeyframeTrack.d.ts index 52be201ae..2aa0a13e6 100644 --- a/types/three/src/animation/tracks/StringKeyframeTrack.d.ts +++ b/types/three/src/animation/tracks/StringKeyframeTrack.d.ts @@ -1,5 +1,5 @@ -import { KeyframeTrack } from '../KeyframeTrack.js'; -import { InterpolationModes } from '../../constants.js'; +import { InterpolationModes } from "../../constants.js"; +import { KeyframeTrack } from "../KeyframeTrack.js"; export class StringKeyframeTrack extends KeyframeTrack { constructor(name: string, times: ArrayLike, values: ArrayLike, interpolation?: InterpolationModes); diff --git a/types/three/src/animation/tracks/VectorKeyframeTrack.d.ts b/types/three/src/animation/tracks/VectorKeyframeTrack.d.ts index a0fcb242b..0909d4493 100644 --- a/types/three/src/animation/tracks/VectorKeyframeTrack.d.ts +++ b/types/three/src/animation/tracks/VectorKeyframeTrack.d.ts @@ -1,5 +1,5 @@ -import { KeyframeTrack } from '../KeyframeTrack.js'; -import { InterpolationModes } from '../../constants.js'; +import { InterpolationModes } from "../../constants.js"; +import { KeyframeTrack } from "../KeyframeTrack.js"; export class VectorKeyframeTrack extends KeyframeTrack { constructor(name: string, times: ArrayLike, values: ArrayLike, interpolation?: InterpolationModes); diff --git a/types/three/src/audio/Audio.d.ts b/types/three/src/audio/Audio.d.ts index 74b5cb3f1..434ff7fef 100644 --- a/types/three/src/audio/Audio.d.ts +++ b/types/three/src/audio/Audio.d.ts @@ -1,6 +1,6 @@ -import { Object3D } from '../core/Object3D.js'; -import { AudioListener } from './AudioListener.js'; -import { AudioContext } from './AudioContext.js'; +import { Object3D } from "../core/Object3D.js"; +import { AudioContext } from "./AudioContext.js"; +import { AudioListener } from "./AudioListener.js"; // Extras / Audio ///////////////////////////////////////////////////////////////////// @@ -40,7 +40,7 @@ export class Audio extends Object3D { * @remarks Sub-classes will update this value. * @defaultValue `Audio` */ - readonly type: string | 'Audio'; + readonly type: string | "Audio"; /** * A reference to the listener object of this audio. diff --git a/types/three/src/audio/AudioAnalyser.d.ts b/types/three/src/audio/AudioAnalyser.d.ts index 5bfa9bf92..474583ec7 100644 --- a/types/three/src/audio/AudioAnalyser.d.ts +++ b/types/three/src/audio/AudioAnalyser.d.ts @@ -1,4 +1,4 @@ -import { Audio } from './Audio.js'; +import { Audio } from "./Audio.js"; /** * Create a {@link AudioAnalyser} object, which uses an {@link https://developer.mozilla.org/en-US/docs/Web/API/AnalyserNode | AnalyserNode} to analyse audio data. diff --git a/types/three/src/audio/AudioListener.d.ts b/types/three/src/audio/AudioListener.d.ts index 5a8e474a6..a49e4d5c7 100644 --- a/types/three/src/audio/AudioListener.d.ts +++ b/types/three/src/audio/AudioListener.d.ts @@ -1,5 +1,5 @@ -import { Object3D } from '../core/Object3D.js'; -import { AudioContext } from './AudioContext.js'; +import { Object3D } from "../core/Object3D.js"; +import { AudioContext } from "./AudioContext.js"; /** * The {@link AudioListener} represents a virtual {@link https://developer.mozilla.org/en-US/docs/Web/API/AudioListener | listener} of the all positional and non-positional audio effects in the scene. @@ -40,7 +40,7 @@ export class AudioListener extends Object3D { * @remarks Sub-classes will update this value. * @defaultValue `AudioListener` */ - readonly type: string | 'AudioListener'; + readonly type: string | "AudioListener"; /** * The {@link https://developer.mozilla.org/en-US/docs/Web/API/AudioContext | AudioContext} of the {@link {@link AudioListener} | listener} given in the constructor. diff --git a/types/three/src/audio/PositionalAudio.d.ts b/types/three/src/audio/PositionalAudio.d.ts index a8ca97ff7..d72d10674 100644 --- a/types/three/src/audio/PositionalAudio.d.ts +++ b/types/three/src/audio/PositionalAudio.d.ts @@ -1,5 +1,5 @@ -import { AudioListener } from './AudioListener.js'; -import { Audio } from './Audio.js'; +import { Audio } from "./Audio.js"; +import { AudioListener } from "./AudioListener.js"; /** * Create a positional audio object. diff --git a/types/three/src/cameras/ArrayCamera.d.ts b/types/three/src/cameras/ArrayCamera.d.ts index f461b05be..e9e9a221d 100644 --- a/types/three/src/cameras/ArrayCamera.d.ts +++ b/types/three/src/cameras/ArrayCamera.d.ts @@ -1,4 +1,4 @@ -import { PerspectiveCamera } from './PerspectiveCamera.js'; +import { PerspectiveCamera } from "./PerspectiveCamera.js"; /** * {@link ArrayCamera} can be used in order to efficiently render a scene with a predefined set of cameras diff --git a/types/three/src/cameras/Camera.d.ts b/types/three/src/cameras/Camera.d.ts index 7f10cf193..8a35fae9d 100644 --- a/types/three/src/cameras/Camera.d.ts +++ b/types/three/src/cameras/Camera.d.ts @@ -1,8 +1,8 @@ -import { Matrix4 } from '../math/Matrix4.js'; -import { Vector3 } from '../math/Vector3.js'; -import { Object3D } from '../core/Object3D.js'; -import { Layers } from '../core/Layers.js'; -import { CoordinateSystem } from '../constants.js'; +import { CoordinateSystem } from "../constants.js"; +import { Layers } from "../core/Layers.js"; +import { Object3D } from "../core/Object3D.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Vector3 } from "../math/Vector3.js"; /** * Abstract base class for cameras @@ -31,7 +31,7 @@ export class Camera extends Object3D { * @override * @defaultValue `Camera` */ - override readonly type: string | 'Camera'; + override readonly type: string | "Camera"; /** * @override diff --git a/types/three/src/cameras/CubeCamera.d.ts b/types/three/src/cameras/CubeCamera.d.ts index 9ceb74287..e6e82fb19 100644 --- a/types/three/src/cameras/CubeCamera.d.ts +++ b/types/three/src/cameras/CubeCamera.d.ts @@ -1,7 +1,7 @@ -import { WebGLCubeRenderTarget } from '../renderers/WebGLCubeRenderTarget.js'; -import { WebGLRenderer } from '../renderers/WebGLRenderer.js'; -import { Object3D } from '../core/Object3D.js'; -import { CoordinateSystem } from '../constants.js'; +import { CoordinateSystem } from "../constants.js"; +import { Object3D } from "../core/Object3D.js"; +import { WebGLCubeRenderTarget } from "../renderers/WebGLCubeRenderTarget.js"; +import { WebGLRenderer } from "../renderers/WebGLRenderer.js"; /** * Creates **6** {@link THREE.PerspectiveCamera | cameras} that render to a {@link THREE.WebGLCubeRenderTarget | WebGLCubeRenderTarget}. @@ -46,7 +46,7 @@ export class CubeCamera extends Object3D { * @override * @defaultValue `CubeCamera` */ - override readonly type: string | 'CubeCamera'; + override readonly type: string | "CubeCamera"; /** * The destination cube render target. diff --git a/types/three/src/cameras/OrthographicCamera.d.ts b/types/three/src/cameras/OrthographicCamera.d.ts index e4fade582..5c0aafd0c 100644 --- a/types/three/src/cameras/OrthographicCamera.d.ts +++ b/types/three/src/cameras/OrthographicCamera.d.ts @@ -1,4 +1,4 @@ -import { Camera } from './Camera.js'; +import { Camera } from "./Camera.js"; /** * Camera that uses {@link https://en.wikipedia.org/wiki/Orthographic_projection | orthographic projection}. @@ -45,7 +45,7 @@ export class OrthographicCamera extends Camera { * @override * @defaultValue `OrthographicCamera` */ - override readonly type: string | 'OrthographicCamera'; + override readonly type: string | "OrthographicCamera"; /** * Gets or sets the zoom factor of the camera. diff --git a/types/three/src/cameras/PerspectiveCamera.d.ts b/types/three/src/cameras/PerspectiveCamera.d.ts index 999e2d391..349cb99e2 100644 --- a/types/three/src/cameras/PerspectiveCamera.d.ts +++ b/types/three/src/cameras/PerspectiveCamera.d.ts @@ -1,5 +1,5 @@ -import { Camera } from './Camera.js'; -import { Vector2 } from '../math/Vector2.js'; +import { Vector2 } from "../math/Vector2.js"; +import { Camera } from "./Camera.js"; /** * Camera that uses {@link https://en.wikipedia.org/wiki/Perspective_(graphical) | perspective projection}. @@ -41,7 +41,7 @@ export class PerspectiveCamera extends Camera { * @override * @defaultValue `PerspectiveCamera` */ - override readonly type: string | 'PerspectiveCamera'; + override readonly type: string | "PerspectiveCamera"; /** * Gets or sets the zoom factor of the camera. diff --git a/types/three/src/cameras/StereoCamera.d.ts b/types/three/src/cameras/StereoCamera.d.ts index 6b12d2ac8..3f359e3e0 100644 --- a/types/three/src/cameras/StereoCamera.d.ts +++ b/types/three/src/cameras/StereoCamera.d.ts @@ -1,5 +1,5 @@ -import { PerspectiveCamera } from './PerspectiveCamera.js'; -import { Camera } from './Camera.js'; +import { Camera } from "./Camera.js"; +import { PerspectiveCamera } from "./PerspectiveCamera.js"; /** * Dual {@link PerspectiveCamera | PerspectiveCamera}s used for effects such as @@ -14,7 +14,7 @@ import { Camera } from './Camera.js'; export class StereoCamera extends Camera { constructor(); - type: 'StereoCamera'; + type: "StereoCamera"; /** * @remarks Expects a `Float` diff --git a/types/three/src/constants.d.ts b/types/three/src/constants.d.ts index d60d938e7..ce945c88e 100644 --- a/types/three/src/constants.d.ts +++ b/types/three/src/constants.d.ts @@ -150,8 +150,8 @@ export type ToneMapping = | typeof AgXToneMapping; // Bind modes -export const AttachedBindMode: 'attached'; -export const DetachedBindMode: 'detached'; +export const AttachedBindMode: "attached"; +export const DetachedBindMode: "detached"; export type BindMode = typeof AttachedBindMode | typeof DetachedBindMode; /////////////////////////////////////////////////////////////////////////////// @@ -724,11 +724,11 @@ export const TangentSpaceNormalMap: 0; export const ObjectSpaceNormalMap: 1; export type NormalMapTypes = typeof TangentSpaceNormalMap | typeof ObjectSpaceNormalMap; -export const NoColorSpace: ''; -export const SRGBColorSpace: 'srgb'; -export const LinearSRGBColorSpace: 'srgb-linear'; -export const DisplayP3ColorSpace: 'display-p3'; -export const LinearDisplayP3ColorSpace = 'display-p3-linear'; +export const NoColorSpace: ""; +export const SRGBColorSpace: "srgb"; +export const LinearSRGBColorSpace: "srgb-linear"; +export const DisplayP3ColorSpace: "display-p3"; +export const LinearDisplayP3ColorSpace = "display-p3-linear"; export type ColorSpace = | typeof NoColorSpace | typeof SRGBColorSpace @@ -736,12 +736,12 @@ export type ColorSpace = | typeof DisplayP3ColorSpace | typeof LinearDisplayP3ColorSpace; -export const LinearTransfer: 'linear'; -export const SRGBTransfer: 'srgb'; +export const LinearTransfer: "linear"; +export const SRGBTransfer: "srgb"; export type ColorSpaceTransfer = typeof LinearTransfer | typeof SRGBTransfer; -export const Rec709Primaries: 'rec709'; -export const P3Primaries: 'p3'; +export const Rec709Primaries: "rec709"; +export const P3Primaries: "p3"; export type ColorSpacePrimaries = typeof Rec709Primaries | typeof P3Primaries; // Stencil Op types @@ -821,8 +821,8 @@ export type Usage = | typeof DynamicCopyUsage | typeof StreamCopyUsage; -export const GLSL1: '100'; -export const GLSL3: '300 es'; +export const GLSL1: "100"; +export const GLSL3: "300 es"; export type GLSLVersion = typeof GLSL1 | typeof GLSL3; export const WebGLCoordinateSystem: 2000; @@ -893,64 +893,64 @@ export type CoordinateSystem = typeof WebGLCoordinateSystem | typeof WebGPUCoord * {@link https://registry.khronos.org/OpenGL/specs/es/3.0/es_spec_3.0.pdf | OpenGL ES 3.0 Specification} For more in-depth information regarding internal formats. */ export type PixelFormatGPU = - | 'ALPHA' - | 'RGB' - | 'RGBA' - | 'LUMINANCE' - | 'LUMINANCE_ALPHA' - | 'RED_INTEGER' - | 'R8' - | 'R8_SNORM' - | 'R8I' - | 'R8UI' - | 'R16I' - | 'R16UI' - | 'R16F' - | 'R32I' - | 'R32UI' - | 'R32F' - | 'RG8' - | 'RG8_SNORM' - | 'RG8I' - | 'RG8UI' - | 'RG16I' - | 'RG16UI' - | 'RG16F' - | 'RG32I' - | 'RG32UI' - | 'RG32F' - | 'RGB565' - | 'RGB8' - | 'RGB8_SNORM' - | 'RGB8I' - | 'RGB8UI' - | 'RGB16I' - | 'RGB16UI' - | 'RGB16F' - | 'RGB32I' - | 'RGB32UI' - | 'RGB32F' - | 'RGB9_E5' - | 'SRGB8' - | 'R11F_G11F_B10F' - | 'RGBA4' - | 'RGBA8' - | 'RGBA8_SNORM' - | 'RGBA8I' - | 'RGBA8UI' - | 'RGBA16I' - | 'RGBA16UI' - | 'RGBA16F' - | 'RGBA32I' - | 'RGBA32UI' - | 'RGBA32F' - | 'RGB5_A1' - | 'RGB10_A2' - | 'RGB10_A2UI' - | 'SRGB8_ALPHA8' - | 'SRGB8' - | 'DEPTH_COMPONENT16' - | 'DEPTH_COMPONENT24' - | 'DEPTH_COMPONENT32F' - | 'DEPTH24_STENCIL8' - | 'DEPTH32F_STENCIL8'; + | "ALPHA" + | "RGB" + | "RGBA" + | "LUMINANCE" + | "LUMINANCE_ALPHA" + | "RED_INTEGER" + | "R8" + | "R8_SNORM" + | "R8I" + | "R8UI" + | "R16I" + | "R16UI" + | "R16F" + | "R32I" + | "R32UI" + | "R32F" + | "RG8" + | "RG8_SNORM" + | "RG8I" + | "RG8UI" + | "RG16I" + | "RG16UI" + | "RG16F" + | "RG32I" + | "RG32UI" + | "RG32F" + | "RGB565" + | "RGB8" + | "RGB8_SNORM" + | "RGB8I" + | "RGB8UI" + | "RGB16I" + | "RGB16UI" + | "RGB16F" + | "RGB32I" + | "RGB32UI" + | "RGB32F" + | "RGB9_E5" + | "SRGB8" + | "R11F_G11F_B10F" + | "RGBA4" + | "RGBA8" + | "RGBA8_SNORM" + | "RGBA8I" + | "RGBA8UI" + | "RGBA16I" + | "RGBA16UI" + | "RGBA16F" + | "RGBA32I" + | "RGBA32UI" + | "RGBA32F" + | "RGB5_A1" + | "RGB10_A2" + | "RGB10_A2UI" + | "SRGB8_ALPHA8" + | "SRGB8" + | "DEPTH_COMPONENT16" + | "DEPTH_COMPONENT24" + | "DEPTH_COMPONENT32F" + | "DEPTH24_STENCIL8" + | "DEPTH32F_STENCIL8"; diff --git a/types/three/src/core/BufferAttribute.d.ts b/types/three/src/core/BufferAttribute.d.ts index 89ce64e9d..8052aa46c 100644 --- a/types/three/src/core/BufferAttribute.d.ts +++ b/types/three/src/core/BufferAttribute.d.ts @@ -1,6 +1,6 @@ -import { Usage, AttributeGPUType } from '../constants.js'; -import { Matrix3 } from '../math/Matrix3.js'; -import { Matrix4 } from '../math/Matrix4.js'; +import { AttributeGPUType, Usage } from "../constants.js"; +import { Matrix3 } from "../math/Matrix3.js"; +import { Matrix4 } from "../math/Matrix4.js"; export type TypedArray = | Int8Array diff --git a/types/three/src/core/BufferGeometry.d.ts b/types/three/src/core/BufferGeometry.d.ts index cf40ba1fe..3632cfbdb 100644 --- a/types/three/src/core/BufferGeometry.d.ts +++ b/types/three/src/core/BufferGeometry.d.ts @@ -1,13 +1,13 @@ -import { BufferAttribute } from './BufferAttribute.js'; -import { InterleavedBufferAttribute } from './InterleavedBufferAttribute.js'; -import { Box3 } from '../math/Box3.js'; -import { Sphere } from '../math/Sphere.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Quaternion } from '../math/Quaternion.js'; -import { Vector2 } from '../math/Vector2.js'; -import { Vector3 } from '../math/Vector3.js'; -import { EventDispatcher } from './EventDispatcher.js'; -import { GLBufferAttribute } from './GLBufferAttribute.js'; +import { Box3 } from "../math/Box3.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Quaternion } from "../math/Quaternion.js"; +import { Sphere } from "../math/Sphere.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Vector3 } from "../math/Vector3.js"; +import { BufferAttribute } from "./BufferAttribute.js"; +import { EventDispatcher } from "./EventDispatcher.js"; +import { GLBufferAttribute } from "./GLBufferAttribute.js"; +import { InterleavedBufferAttribute } from "./InterleavedBufferAttribute.js"; export type NormalBufferAttributes = Record; export type NormalOrGLBufferAttributes = Record< @@ -104,7 +104,7 @@ export class BufferGeometry< * @remarks Sub-classes will update this value. * @defaultValue `BufferGeometry` */ - readonly type: string | 'BufferGeometry'; + readonly type: string | "BufferGeometry"; /** * Allows for vertices to be re-used across multiple triangles; this is called using "indexed triangles". diff --git a/types/three/src/core/InstancedBufferAttribute.d.ts b/types/three/src/core/InstancedBufferAttribute.d.ts index 068808082..812a2bf16 100644 --- a/types/three/src/core/InstancedBufferAttribute.d.ts +++ b/types/three/src/core/InstancedBufferAttribute.d.ts @@ -1,4 +1,4 @@ -import { BufferAttribute, TypedArray } from './BufferAttribute.js'; +import { BufferAttribute, TypedArray } from "./BufferAttribute.js"; /** * An instanced version of {@link THREE.BufferAttribute | BufferAttribute}. diff --git a/types/three/src/core/InstancedBufferGeometry.d.ts b/types/three/src/core/InstancedBufferGeometry.d.ts index 87fe6a0fc..421294c49 100644 --- a/types/three/src/core/InstancedBufferGeometry.d.ts +++ b/types/three/src/core/InstancedBufferGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from './BufferGeometry.js'; +import { BufferGeometry } from "./BufferGeometry.js"; /** * An instanced version of {@link THREE.BufferGeometry | BufferGeometry}. @@ -24,7 +24,6 @@ export class InstancedBufferGeometry extends BufferGeometry { readonly isInstancedBufferGeometry: true; /** - * * @defaultValue `Infinity` */ instanceCount: number; diff --git a/types/three/src/core/InstancedInterleavedBuffer.d.ts b/types/three/src/core/InstancedInterleavedBuffer.d.ts index 7f1707c0b..3c78beae4 100644 --- a/types/three/src/core/InstancedInterleavedBuffer.d.ts +++ b/types/three/src/core/InstancedInterleavedBuffer.d.ts @@ -1,5 +1,5 @@ -import { InterleavedBuffer } from './InterleavedBuffer.js'; -import { TypedArray } from './BufferAttribute.js'; +import { TypedArray } from "./BufferAttribute.js"; +import { InterleavedBuffer } from "./InterleavedBuffer.js"; /** * An instanced version of {@link THREE.InterleavedBuffer | InterleavedBuffer}. diff --git a/types/three/src/core/InterleavedBuffer.d.ts b/types/three/src/core/InterleavedBuffer.d.ts index deb8ccdc2..be08e1f4d 100644 --- a/types/three/src/core/InterleavedBuffer.d.ts +++ b/types/three/src/core/InterleavedBuffer.d.ts @@ -1,6 +1,6 @@ -import { InterleavedBufferAttribute } from './InterleavedBufferAttribute.js'; -import { Usage } from '../constants.js'; -import { TypedArray } from './BufferAttribute.js'; +import { Usage } from "../constants.js"; +import { TypedArray } from "./BufferAttribute.js"; +import { InterleavedBufferAttribute } from "./InterleavedBufferAttribute.js"; /** * **"Interleaved"** means that multiple attributes, possibly of different types, (e.g., _position, normal, uv, color_) are packed into a single array buffer. diff --git a/types/three/src/core/InterleavedBufferAttribute.d.ts b/types/three/src/core/InterleavedBufferAttribute.d.ts index 4e3fea526..2de21d885 100644 --- a/types/three/src/core/InterleavedBufferAttribute.d.ts +++ b/types/three/src/core/InterleavedBufferAttribute.d.ts @@ -1,7 +1,7 @@ -import { BufferAttribute, TypedArray } from './BufferAttribute.js'; -import { InterleavedBuffer } from './InterleavedBuffer.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Matrix } from '../math/Matrix3.js'; +import { Matrix } from "../math/Matrix3.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { BufferAttribute, TypedArray } from "./BufferAttribute.js"; +import { InterleavedBuffer } from "./InterleavedBuffer.js"; /** * @see {@link https://threejs.org/docs/index.html#api/en/core/InterleavedBufferAttribute | Official Documentation} diff --git a/types/three/src/core/Object3D.d.ts b/types/three/src/core/Object3D.d.ts index 533721c4e..b0207c6e8 100644 --- a/types/three/src/core/Object3D.d.ts +++ b/types/three/src/core/Object3D.d.ts @@ -1,18 +1,18 @@ -import { Vector3 } from '../math/Vector3.js'; -import { Euler } from '../math/Euler.js'; -import { Quaternion } from '../math/Quaternion.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Matrix3 } from '../math/Matrix3.js'; -import { Layers } from './Layers.js'; -import { WebGLRenderer } from '../renderers/WebGLRenderer.js'; -import { Scene } from '../scenes/Scene.js'; -import { Camera } from '../cameras/Camera.js'; -import { Material } from '../materials/Material.js'; -import { Group } from '../objects/Group.js'; -import { Intersection, Raycaster } from './Raycaster.js'; -import { EventDispatcher } from './EventDispatcher.js'; -import { BufferGeometry } from './BufferGeometry.js'; -import { AnimationClip } from '../animation/AnimationClip.js'; +import { AnimationClip } from "../animation/AnimationClip.js"; +import { Camera } from "../cameras/Camera.js"; +import { Material } from "../materials/Material.js"; +import { Euler } from "../math/Euler.js"; +import { Matrix3 } from "../math/Matrix3.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Quaternion } from "../math/Quaternion.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Group } from "../objects/Group.js"; +import { WebGLRenderer } from "../renderers/WebGLRenderer.js"; +import { Scene } from "../scenes/Scene.js"; +import { BufferGeometry } from "./BufferGeometry.js"; +import { EventDispatcher } from "./EventDispatcher.js"; +import { Layers } from "./Layers.js"; +import { Intersection, Raycaster } from "./Raycaster.js"; export interface Object3DEventMap { added: {}; @@ -65,7 +65,7 @@ export class Object3D ext * Sub-classes will update this value. * @defaultValue `Object3D` */ - readonly type: string | 'Object3D'; + readonly type: string | "Object3D"; /** * Object's parent in the {@link https://en.wikipedia.org/wiki/Scene_graph | scene graph}. diff --git a/types/three/src/core/Raycaster.d.ts b/types/three/src/core/Raycaster.d.ts index 047f53450..6cd6d5145 100644 --- a/types/three/src/core/Raycaster.d.ts +++ b/types/three/src/core/Raycaster.d.ts @@ -1,9 +1,9 @@ -import { Vector3 } from '../math/Vector3.js'; -import { Object3D } from './Object3D.js'; -import { Vector2 } from '../math/Vector2.js'; -import { Ray } from '../math/Ray.js'; -import { Camera } from '../cameras/Camera.js'; -import { Layers } from './Layers.js'; +import { Camera } from "../cameras/Camera.js"; +import { Ray } from "../math/Ray.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Layers } from "./Layers.js"; +import { Object3D } from "./Object3D.js"; export interface Face { a: number; diff --git a/types/three/src/core/RenderTarget.d.ts b/types/three/src/core/RenderTarget.d.ts index 1064ee501..be8a6df81 100644 --- a/types/three/src/core/RenderTarget.d.ts +++ b/types/three/src/core/RenderTarget.d.ts @@ -1,16 +1,16 @@ -import { Vector4 } from '../math/Vector4.js'; -import { Texture } from '../textures/Texture.js'; -import { DepthTexture } from '../textures/DepthTexture.js'; -import { EventDispatcher } from './EventDispatcher.js'; import { - Wrapping, - TextureDataType, - TextureEncoding, - MinificationTextureFilter, - MagnificationTextureFilter, ColorSpace, + MagnificationTextureFilter, + MinificationTextureFilter, PixelFormatGPU, -} from '../constants.js'; + TextureDataType, + TextureEncoding, + Wrapping, +} from "../constants.js"; +import { Vector4 } from "../math/Vector4.js"; +import { DepthTexture } from "../textures/DepthTexture.js"; +import { Texture } from "../textures/Texture.js"; +import { EventDispatcher } from "./EventDispatcher.js"; export interface RenderTargetOptions { wrapS?: Wrapping | undefined; diff --git a/types/three/src/core/UniformsGroup.d.ts b/types/three/src/core/UniformsGroup.d.ts index 0af8d8be2..4fb30b2c1 100644 --- a/types/three/src/core/UniformsGroup.d.ts +++ b/types/three/src/core/UniformsGroup.d.ts @@ -1,6 +1,6 @@ -import { EventDispatcher } from './EventDispatcher.js'; -import { Uniform } from './Uniform.js'; -import { Usage } from '../constants.js'; +import { Usage } from "../constants.js"; +import { EventDispatcher } from "./EventDispatcher.js"; +import { Uniform } from "./Uniform.js"; /** * @see Example: {@link https://threejs.org/examples/#webgl2_ubo | WebGL2 / UBO} diff --git a/types/three/src/extras/ImageUtils.d.ts b/types/three/src/extras/ImageUtils.d.ts index 2b41b4864..a8bed9eeb 100644 --- a/types/three/src/extras/ImageUtils.d.ts +++ b/types/three/src/extras/ImageUtils.d.ts @@ -1,5 +1,5 @@ -import { Mapping } from '../constants.js'; -import { Texture } from '../textures/Texture.js'; +import { Mapping } from "../constants.js"; +import { Texture } from "../textures/Texture.js"; /** * A class containing utility functions for images. @@ -26,8 +26,8 @@ export namespace ImageUtils { * @param image */ function sRGBToLinear(image: ImageData): { - data: ImageData['data']; - width: ImageData['width']; - height: ImageData['height']; + data: ImageData["data"]; + width: ImageData["width"]; + height: ImageData["height"]; }; } diff --git a/types/three/src/extras/PMREMGenerator.d.ts b/types/three/src/extras/PMREMGenerator.d.ts index 25a322316..c9d0d4870 100644 --- a/types/three/src/extras/PMREMGenerator.d.ts +++ b/types/three/src/extras/PMREMGenerator.d.ts @@ -1,8 +1,8 @@ -import { WebGLRenderer } from '../renderers/WebGLRenderer.js'; -import { WebGLRenderTarget } from '../renderers/WebGLRenderTarget.js'; -import { Texture } from '../textures/Texture.js'; -import { CubeTexture } from '../textures/CubeTexture.js'; -import { Scene } from '../scenes/Scene.js'; +import { WebGLRenderer } from "../renderers/WebGLRenderer.js"; +import { WebGLRenderTarget } from "../renderers/WebGLRenderTarget.js"; +import { Scene } from "../scenes/Scene.js"; +import { CubeTexture } from "../textures/CubeTexture.js"; +import { Texture } from "../textures/Texture.js"; /** * This class generates a Prefiltered, Mipmapped Radiance Environment Map (PMREM) from a cubeMap environment texture. diff --git a/types/three/src/extras/core/Curve.d.ts b/types/three/src/extras/core/Curve.d.ts index 58da09b94..49afb6753 100644 --- a/types/three/src/extras/core/Curve.d.ts +++ b/types/three/src/extras/core/Curve.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Vector3 } from '../../math/Vector3.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Vector3 } from "../../math/Vector3.js"; /** * An abstract base class for creating a {@link Curve} object that contains methods for interpolation @@ -33,7 +33,7 @@ export abstract class Curve { * @remarks Sub-classes will update this value. * @defaultValue `Curve` */ - readonly type: string | 'Curve'; + readonly type: string | "Curve"; /** * This value determines the amount of divisions when calculating the cumulative segment lengths of a {@link Curve} diff --git a/types/three/src/extras/core/CurvePath.d.ts b/types/three/src/extras/core/CurvePath.d.ts index 1c0a3af2a..65b04a252 100644 --- a/types/three/src/extras/core/CurvePath.d.ts +++ b/types/three/src/extras/core/CurvePath.d.ts @@ -1,6 +1,6 @@ -import { Curve } from './Curve.js'; -import { Vector2 } from '../../math/Vector2.js'; -import { Vector3 } from '../../math/Vector3.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Vector3 } from "../../math/Vector3.js"; +import { Curve } from "./Curve.js"; /** * Curved Path - a curve path is simply a array of connected curves, but retains the api of a curve. @@ -20,7 +20,7 @@ export class CurvePath extends Curve * @remarks Sub-classes will update this value. * @defaultValue `CurvePath` */ - override readonly type: string | 'CurvePath'; + override readonly type: string | "CurvePath"; /** * The array of {@link Curve | Curves}. diff --git a/types/three/src/extras/core/Interpolations.d.ts b/types/three/src/extras/core/Interpolations.d.ts index 34fcdb683..9f5ed3784 100644 --- a/types/three/src/extras/core/Interpolations.d.ts +++ b/types/three/src/extras/core/Interpolations.d.ts @@ -33,4 +33,4 @@ declare function QuadraticBezier(t: number, p0: number, p1: number, p2: number): */ declare function CubicBezier(t: number, p0: number, p1: number, p2: number, p3: number): number; -export { CatmullRom, QuadraticBezier, CubicBezier }; +export { CatmullRom, CubicBezier, QuadraticBezier }; diff --git a/types/three/src/extras/core/Path.d.ts b/types/three/src/extras/core/Path.d.ts index 259045fc9..88a175c39 100644 --- a/types/three/src/extras/core/Path.d.ts +++ b/types/three/src/extras/core/Path.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { CurvePath } from './CurvePath.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { CurvePath } from "./CurvePath.js"; /** * A 2D {@link Path} representation. @@ -37,7 +37,7 @@ export class Path extends CurvePath { * @remarks Sub-classes will update this value. * @defaultValue `Path` */ - override readonly type: string | 'Path'; + override readonly type: string | "Path"; /** * The current offset of the path. Any new {@link THREE.Curve | Curve} added will start here. diff --git a/types/three/src/extras/core/Shape.d.ts b/types/three/src/extras/core/Shape.d.ts index e110ca9d6..a9e6082eb 100644 --- a/types/three/src/extras/core/Shape.d.ts +++ b/types/three/src/extras/core/Shape.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Path } from './Path.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Path } from "./Path.js"; /** * Defines an arbitrary 2d {@link Shape} plane using paths with optional holes @@ -47,7 +47,7 @@ export class Shape extends Path { * @remarks Sub-classes will update this value. * @defaultValue `Shape` */ - override readonly type: string | 'Shape'; + override readonly type: string | "Shape"; /** * {@link http://en.wikipedia.org/wiki/Universally_unique_identifier | UUID} of this object instance. diff --git a/types/three/src/extras/core/ShapePath.d.ts b/types/three/src/extras/core/ShapePath.d.ts index 69134de31..0fcd88312 100644 --- a/types/three/src/extras/core/ShapePath.d.ts +++ b/types/three/src/extras/core/ShapePath.d.ts @@ -1,7 +1,7 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Shape } from './Shape.js'; -import { Color } from '../../math/Color.js'; -import { Path } from './Path.js'; +import { Color } from "../../math/Color.js"; +import { Vector2 } from "../../math/Vector2.js"; +import { Path } from "./Path.js"; +import { Shape } from "./Shape.js"; /** * This class is used to convert a series of shapes to an array of {@link THREE.Path | Path's}, @@ -22,7 +22,7 @@ export class ShapePath { * @remarks Sub-classes will update this value. * @defaultValue `ShapePath` */ - readonly type: 'ShapePath'; + readonly type: "ShapePath"; /** * Array of {@link THREE.Path | Path's}s. diff --git a/types/three/src/extras/curves/ArcCurve.d.ts b/types/three/src/extras/curves/ArcCurve.d.ts index a6c829e05..0932f7ffb 100644 --- a/types/three/src/extras/curves/ArcCurve.d.ts +++ b/types/three/src/extras/curves/ArcCurve.d.ts @@ -1,4 +1,4 @@ -import { EllipseCurve } from './EllipseCurve.js'; +import { EllipseCurve } from "./EllipseCurve.js"; /** * Alias for {@link THREE.EllipseCurve | EllipseCurve}. @@ -37,5 +37,5 @@ export class ArcCurve extends EllipseCurve { * @remarks Sub-classes will update this value. * @defaultValue `ArcCurve` */ - override readonly type: string | 'ArcCurve'; + override readonly type: string | "ArcCurve"; } diff --git a/types/three/src/extras/curves/CatmullRomCurve3.d.ts b/types/three/src/extras/curves/CatmullRomCurve3.d.ts index 3e8e9ab55..55088e412 100644 --- a/types/three/src/extras/curves/CatmullRomCurve3.d.ts +++ b/types/three/src/extras/curves/CatmullRomCurve3.d.ts @@ -1,7 +1,7 @@ -import { Vector3 } from '../../math/Vector3.js'; -import { Curve } from '../core/Curve.js'; +import { Vector3 } from "../../math/Vector3.js"; +import { Curve } from "../core/Curve.js"; -export type CurveType = 'centripetal' | 'chordal' | 'catmullrom'; +export type CurveType = "centripetal" | "chordal" | "catmullrom"; /** * Create a smooth **3D** spline curve from a series of points using the {@link https://en.wikipedia.org/wiki/Centripetal_Catmull-Rom_spline | Catmull-Rom} algorithm. @@ -48,7 +48,7 @@ export class CatmullRomCurve3 extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `CatmullRomCurve3` */ - override readonly type: string | 'CatmullRomCurve3'; + override readonly type: string | "CatmullRomCurve3"; /** * The curve will loop back onto itself when this is true. diff --git a/types/three/src/extras/curves/CubicBezierCurve.d.ts b/types/three/src/extras/curves/CubicBezierCurve.d.ts index 098e84ab4..ae4518312 100644 --- a/types/three/src/extras/curves/CubicBezierCurve.d.ts +++ b/types/three/src/extras/curves/CubicBezierCurve.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Curve } from '../core/Curve.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Curve } from "../core/Curve.js"; /** * Create a smooth **2D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg | cubic bezier curve}, @@ -44,7 +44,7 @@ export class CubicBezierCurve extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `CubicBezierCurve` */ - override readonly type: string | 'CubicBezierCurve'; + override readonly type: string | "CubicBezierCurve"; /** * The starting point. diff --git a/types/three/src/extras/curves/CubicBezierCurve3.d.ts b/types/three/src/extras/curves/CubicBezierCurve3.d.ts index fe829bbeb..ad8edb356 100644 --- a/types/three/src/extras/curves/CubicBezierCurve3.d.ts +++ b/types/three/src/extras/curves/CubicBezierCurve3.d.ts @@ -1,5 +1,5 @@ -import { Vector3 } from '../../math/Vector3.js'; -import { Curve } from '../core/Curve.js'; +import { Vector3 } from "../../math/Vector3.js"; +import { Curve } from "../core/Curve.js"; /** * Create a smooth **3D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:Bezier_curve.svg | cubic bezier curve}, @@ -44,7 +44,7 @@ export class CubicBezierCurve3 extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `CubicBezierCurve3` */ - override readonly type: string | 'CubicBezierCurve3'; + override readonly type: string | "CubicBezierCurve3"; /** * The starting point. diff --git a/types/three/src/extras/curves/Curves.d.ts b/types/three/src/extras/curves/Curves.d.ts index 9c4d8c0f9..996021d72 100644 --- a/types/three/src/extras/curves/Curves.d.ts +++ b/types/three/src/extras/curves/Curves.d.ts @@ -1,10 +1,10 @@ -export * from './ArcCurve.js'; -export * from './CatmullRomCurve3.js'; -export * from './CubicBezierCurve.js'; -export * from './CubicBezierCurve3.js'; -export * from './EllipseCurve.js'; -export * from './LineCurve.js'; -export * from './LineCurve3.js'; -export * from './QuadraticBezierCurve.js'; -export * from './QuadraticBezierCurve3.js'; -export * from './SplineCurve.js'; +export * from "./ArcCurve.js"; +export * from "./CatmullRomCurve3.js"; +export * from "./CubicBezierCurve.js"; +export * from "./CubicBezierCurve3.js"; +export * from "./EllipseCurve.js"; +export * from "./LineCurve.js"; +export * from "./LineCurve3.js"; +export * from "./QuadraticBezierCurve.js"; +export * from "./QuadraticBezierCurve3.js"; +export * from "./SplineCurve.js"; diff --git a/types/three/src/extras/curves/EllipseCurve.d.ts b/types/three/src/extras/curves/EllipseCurve.d.ts index 1139ff4f7..4d15ca8c2 100644 --- a/types/three/src/extras/curves/EllipseCurve.d.ts +++ b/types/three/src/extras/curves/EllipseCurve.d.ts @@ -1,5 +1,5 @@ -import { Curve } from '../core/Curve.js'; -import { Vector2 } from '../../math/Vector2.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Curve } from "../core/Curve.js"; /** * Creates a 2d curve in the shape of an ellipse @@ -58,7 +58,7 @@ export class EllipseCurve extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `EllipseCurve` */ - override readonly type: string | 'EllipseCurve'; + override readonly type: string | "EllipseCurve"; /** * The X center of the ellipse. diff --git a/types/three/src/extras/curves/LineCurve.d.ts b/types/three/src/extras/curves/LineCurve.d.ts index fb7cfae89..3bcb000d3 100644 --- a/types/three/src/extras/curves/LineCurve.d.ts +++ b/types/three/src/extras/curves/LineCurve.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Curve } from '../core/Curve.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Curve } from "../core/Curve.js"; /** * A curve representing a **2D** line segment. @@ -26,7 +26,7 @@ export class LineCurve extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `LineCurve` */ - override readonly type: string | 'LineCurve'; + override readonly type: string | "LineCurve"; /** * The start point. diff --git a/types/three/src/extras/curves/LineCurve3.d.ts b/types/three/src/extras/curves/LineCurve3.d.ts index 0d04074ac..c7ae7c301 100644 --- a/types/three/src/extras/curves/LineCurve3.d.ts +++ b/types/three/src/extras/curves/LineCurve3.d.ts @@ -1,5 +1,5 @@ -import { Vector3 } from '../../math/Vector3.js'; -import { Curve } from '../core/Curve.js'; +import { Vector3 } from "../../math/Vector3.js"; +import { Curve } from "../core/Curve.js"; /** * A curve representing a **3D** line segment. @@ -26,7 +26,7 @@ export class LineCurve3 extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `LineCurve3` */ - override readonly type: string | 'LineCurve3'; + override readonly type: string | "LineCurve3"; /** * The start point. diff --git a/types/three/src/extras/curves/QuadraticBezierCurve.d.ts b/types/three/src/extras/curves/QuadraticBezierCurve.d.ts index 5968db651..8ae4c3213 100644 --- a/types/three/src/extras/curves/QuadraticBezierCurve.d.ts +++ b/types/three/src/extras/curves/QuadraticBezierCurve.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Curve } from '../core/Curve.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Curve } from "../core/Curve.js"; /** * Create a smooth **2D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:B%C3%A9zier_2_big.gif | quadratic bezier curve}, @@ -42,7 +42,7 @@ export class QuadraticBezierCurve extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `QuadraticBezierCurve` */ - override readonly type: string | 'QuadraticBezierCurve'; + override readonly type: string | "QuadraticBezierCurve"; /** * The start point. diff --git a/types/three/src/extras/curves/QuadraticBezierCurve3.d.ts b/types/three/src/extras/curves/QuadraticBezierCurve3.d.ts index d0069f385..3964af820 100644 --- a/types/three/src/extras/curves/QuadraticBezierCurve3.d.ts +++ b/types/three/src/extras/curves/QuadraticBezierCurve3.d.ts @@ -1,5 +1,5 @@ -import { Vector3 } from '../../math/Vector3.js'; -import { Curve } from '../core/Curve.js'; +import { Vector3 } from "../../math/Vector3.js"; +import { Curve } from "../core/Curve.js"; /** * Create a smooth **3D** {@link http://en.wikipedia.org/wiki/B%C3%A9zier_curve#mediaviewer/File:B%C3%A9zier_2_big.gif | quadratic bezier curve}, @@ -42,7 +42,7 @@ export class QuadraticBezierCurve3 extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `QuadraticBezierCurve3` */ - override readonly type: string | 'QuadraticBezierCurve3'; + override readonly type: string | "QuadraticBezierCurve3"; /** * The start point. diff --git a/types/three/src/extras/curves/SplineCurve.d.ts b/types/three/src/extras/curves/SplineCurve.d.ts index 950628173..c3c56210a 100644 --- a/types/three/src/extras/curves/SplineCurve.d.ts +++ b/types/three/src/extras/curves/SplineCurve.d.ts @@ -1,5 +1,5 @@ -import { Vector2 } from '../../math/Vector2.js'; -import { Curve } from '../core/Curve.js'; +import { Vector2 } from "../../math/Vector2.js"; +import { Curve } from "../core/Curve.js"; /** * Create a smooth **2D** spline curve from a series of points. @@ -42,7 +42,7 @@ export class SplineCurve extends Curve { * @remarks Sub-classes will update this value. * @defaultValue `SplineCurve` */ - override readonly type: string | 'SplineCurve'; + override readonly type: string | "SplineCurve"; /** * The array of {@link THREE.Vector2 | Vector2} points that define the curve. diff --git a/types/three/src/geometries/BoxGeometry.d.ts b/types/three/src/geometries/BoxGeometry.d.ts index f624e7731..7a756ae56 100644 --- a/types/three/src/geometries/BoxGeometry.d.ts +++ b/types/three/src/geometries/BoxGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; /** * {@link BoxGeometry} is a geometry class for a rectangular cuboid with a given 'width', 'height', and 'depth' @@ -39,7 +39,7 @@ export class BoxGeometry extends BufferGeometry { * @remarks Sub-classes will update this value. * @defaultValue `BoxGeometry` */ - override readonly type: string | 'BoxGeometry'; + override readonly type: string | "BoxGeometry"; /** * An object with a property for each of the constructor parameters. diff --git a/types/three/src/geometries/CapsuleGeometry.d.ts b/types/three/src/geometries/CapsuleGeometry.d.ts index 3dd4b5e68..b20616035 100644 --- a/types/three/src/geometries/CapsuleGeometry.d.ts +++ b/types/three/src/geometries/CapsuleGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; /** * {@link CapsuleGeometry} is a geometry class for a capsule with given radii and height @@ -30,7 +30,7 @@ export class CapsuleGeometry extends BufferGeometry { * @remarks Sub-classes will update this value. * @defaultValue `CapsuleGeometry` */ - override readonly type: string | 'CapsuleGeometry'; + override readonly type: string | "CapsuleGeometry"; /** * An object with a property for each of the constructor parameters. diff --git a/types/three/src/geometries/CircleGeometry.d.ts b/types/three/src/geometries/CircleGeometry.d.ts index e2b772a0d..b512e4866 100644 --- a/types/three/src/geometries/CircleGeometry.d.ts +++ b/types/three/src/geometries/CircleGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; /** * {@link CircleGeometry} is a simple shape of Euclidean geometry @@ -33,7 +33,7 @@ export class CircleGeometry extends BufferGeometry { * @remarks Sub-classes will update this value. * @defaultValue `CircleGeometry` */ - override readonly type: string | 'CircleGeometry'; + override readonly type: string | "CircleGeometry"; /** * An object with a property for each of the constructor parameters. diff --git a/types/three/src/geometries/ConeGeometry.d.ts b/types/three/src/geometries/ConeGeometry.d.ts index 0956154f2..683376429 100644 --- a/types/three/src/geometries/ConeGeometry.d.ts +++ b/types/three/src/geometries/ConeGeometry.d.ts @@ -1,4 +1,4 @@ -import { CylinderGeometry } from './CylinderGeometry.js'; +import { CylinderGeometry } from "./CylinderGeometry.js"; /** * A class for generating cone geometries. @@ -40,7 +40,7 @@ export class ConeGeometry extends CylinderGeometry { * @remarks Sub-classes will update this value. * @defaultValue `ConeGeometry` */ - override readonly type: string | 'ConeGeometry'; + override readonly type: string | "ConeGeometry"; /** * An object with a property for each of the constructor parameters. diff --git a/types/three/src/geometries/CylinderGeometry.d.ts b/types/three/src/geometries/CylinderGeometry.d.ts index 853bdd516..90f1b06f3 100644 --- a/types/three/src/geometries/CylinderGeometry.d.ts +++ b/types/three/src/geometries/CylinderGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; /** * A class for generating cylinder geometries. @@ -42,7 +42,7 @@ export class CylinderGeometry extends BufferGeometry { * @remarks Sub-classes will update this value. * @defaultValue `CylinderGeometry` */ - override readonly type: string | 'CylinderGeometry'; + override readonly type: string | "CylinderGeometry"; /** * An object with a property for each of the constructor parameters. diff --git a/types/three/src/geometries/DodecahedronGeometry.d.ts b/types/three/src/geometries/DodecahedronGeometry.d.ts index f12ca538b..e79e5a895 100644 --- a/types/three/src/geometries/DodecahedronGeometry.d.ts +++ b/types/three/src/geometries/DodecahedronGeometry.d.ts @@ -1,4 +1,4 @@ -import { PolyhedronGeometry } from './PolyhedronGeometry.js'; +import { PolyhedronGeometry } from "./PolyhedronGeometry.js"; /** * A class for generating a dodecahedron geometries. @@ -18,7 +18,7 @@ export class DodecahedronGeometry extends PolyhedronGeometry { * @remarks Sub-classes will update this value. * @defaultValue `DodecahedronGeometry` */ - override readonly type: string | 'DodecahedronGeometry'; + override readonly type: string | "DodecahedronGeometry"; /** @internal */ static fromJSON(data: {}): DodecahedronGeometry; diff --git a/types/three/src/geometries/EdgesGeometry.d.ts b/types/three/src/geometries/EdgesGeometry.d.ts index 6939d4041..b901b10d7 100644 --- a/types/three/src/geometries/EdgesGeometry.d.ts +++ b/types/three/src/geometries/EdgesGeometry.d.ts @@ -1,4 +1,4 @@ -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; /** * This can be used as a helper object to view the edges of a {@link THREE.BufferGeometry | geometry}. @@ -28,7 +28,7 @@ export class EdgesGeometry { * @override * @defaultValue `BoxHelper` */ - override readonly type: string | 'BoxHelper'; + override readonly type: string | "BoxHelper"; /** * Updates the helper's geometry to match the dimensions of the object, including any children diff --git a/types/three/src/helpers/CameraHelper.d.ts b/types/three/src/helpers/CameraHelper.d.ts index db1eb4deb..469dcaa0d 100644 --- a/types/three/src/helpers/CameraHelper.d.ts +++ b/types/three/src/helpers/CameraHelper.d.ts @@ -1,7 +1,7 @@ -import { Color } from '../math/Color.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Camera } from '../cameras/Camera.js'; -import { LineSegments } from '../objects/LineSegments.js'; +import { Camera } from "../cameras/Camera.js"; +import { Color } from "../math/Color.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { LineSegments } from "../objects/LineSegments.js"; /** * This helps with visualizing what a camera contains in its frustum @@ -32,7 +32,7 @@ export class CameraHelper extends LineSegments { * @override * @defaultValue `CameraHelper` */ - override readonly type: string | 'CameraHelper'; + override readonly type: string | "CameraHelper"; /** * The camera being visualized. diff --git a/types/three/src/helpers/DirectionalLightHelper.d.ts b/types/three/src/helpers/DirectionalLightHelper.d.ts index 22768d90e..729eccedd 100644 --- a/types/three/src/helpers/DirectionalLightHelper.d.ts +++ b/types/three/src/helpers/DirectionalLightHelper.d.ts @@ -1,8 +1,8 @@ -import { DirectionalLight } from '../lights/DirectionalLight.js'; -import { Line } from '../objects/Line.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Object3D } from '../core/Object3D.js'; -import { ColorRepresentation } from '../math/Color.js'; +import { Object3D } from "../core/Object3D.js"; +import { DirectionalLight } from "../lights/DirectionalLight.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Line } from "../objects/Line.js"; /** * Helper object to assist with visualizing a {@link THREE.DirectionalLight | DirectionalLight}'s effect on the scene @@ -34,7 +34,7 @@ export class DirectionalLightHelper extends Object3D { * @override * @defaultValue `DirectionalLightHelper` */ - override readonly type: string | 'DirectionalLightHelper'; + override readonly type: string | "DirectionalLightHelper"; /** * Contains the line mesh showing the location of the directional light. diff --git a/types/three/src/helpers/GridHelper.d.ts b/types/three/src/helpers/GridHelper.d.ts index 595e9f436..0b786b992 100644 --- a/types/three/src/helpers/GridHelper.d.ts +++ b/types/three/src/helpers/GridHelper.d.ts @@ -1,7 +1,7 @@ -import { ColorRepresentation } from '../math/Color.js'; -import { LineSegments } from '../objects/LineSegments.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { LineBasicMaterial } from '../materials/LineBasicMaterial.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { LineBasicMaterial } from "../materials/LineBasicMaterial.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { LineSegments } from "../objects/LineSegments.js"; /** * The {@link GridHelper} is an object to define grids @@ -36,7 +36,7 @@ export class GridHelper extends LineSegments * @override * @defaultValue `GridHelper` */ - override readonly type: string | 'GridHelper'; + override readonly type: string | "GridHelper"; /** * Frees the GPU-related resources allocated by this instance diff --git a/types/three/src/helpers/HemisphereLightHelper.d.ts b/types/three/src/helpers/HemisphereLightHelper.d.ts index ced5865c1..80366b63b 100644 --- a/types/three/src/helpers/HemisphereLightHelper.d.ts +++ b/types/three/src/helpers/HemisphereLightHelper.d.ts @@ -1,8 +1,8 @@ -import { HemisphereLight } from '../lights/HemisphereLight.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { MeshBasicMaterial } from '../materials/MeshBasicMaterial.js'; -import { Object3D } from '../core/Object3D.js'; -import { ColorRepresentation } from '../math/Color.js'; +import { Object3D } from "../core/Object3D.js"; +import { HemisphereLight } from "../lights/HemisphereLight.js"; +import { MeshBasicMaterial } from "../materials/MeshBasicMaterial.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { Matrix4 } from "../math/Matrix4.js"; /** * Creates a visual aid consisting of a spherical {@link THREE.Mesh | Mesh} for a {@link THREE.HemisphereLight | HemisphereLight}. @@ -30,7 +30,7 @@ export class HemisphereLightHelper extends Object3D { * @override * @defaultValue `HemisphereLightHelper` */ - override readonly type: string | 'HemisphereLightHelper'; + override readonly type: string | "HemisphereLightHelper"; /** * Reference to the HemisphereLight being visualized. diff --git a/types/three/src/helpers/PlaneHelper.d.ts b/types/three/src/helpers/PlaneHelper.d.ts index 7e0259bf8..43c9821cb 100644 --- a/types/three/src/helpers/PlaneHelper.d.ts +++ b/types/three/src/helpers/PlaneHelper.d.ts @@ -1,5 +1,5 @@ -import { Plane } from '../math/Plane.js'; -import { LineSegments } from '../objects/LineSegments.js'; +import { Plane } from "../math/Plane.js"; +import { LineSegments } from "../objects/LineSegments.js"; /** * Helper object to visualize a {@link THREE.Plane | Plane}. @@ -27,7 +27,7 @@ export class PlaneHelper extends LineSegments { * @override * @defaultValue `PlaneHelper` */ - override readonly type: string | 'PlaneHelper'; + override readonly type: string | "PlaneHelper"; /** * The {@link Plane | plane} being visualized. diff --git a/types/three/src/helpers/PointLightHelper.d.ts b/types/three/src/helpers/PointLightHelper.d.ts index 0edcdc5fe..7d61da5e3 100644 --- a/types/three/src/helpers/PointLightHelper.d.ts +++ b/types/three/src/helpers/PointLightHelper.d.ts @@ -1,7 +1,7 @@ -import { PointLight } from '../lights/PointLight.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Object3D } from '../core/Object3D.js'; -import { ColorRepresentation } from '../math/Color.js'; +import { Object3D } from "../core/Object3D.js"; +import { PointLight } from "../lights/PointLight.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { Matrix4 } from "../math/Matrix4.js"; /** * This displays a helper object consisting of a spherical {@link THREE.Mesh | Mesh} for visualizing a {@link THREE.PointLight | PointLight}. @@ -33,7 +33,7 @@ export class PointLightHelper extends Object3D { * @override * @defaultValue `PointLightHelper` */ - override readonly type: string | 'PointLightHelper'; + override readonly type: string | "PointLightHelper"; /** * The {@link THREE.PointLight | PointLight} that is being visualized. diff --git a/types/three/src/helpers/PolarGridHelper.d.ts b/types/three/src/helpers/PolarGridHelper.d.ts index b88170f5d..994d71c94 100644 --- a/types/three/src/helpers/PolarGridHelper.d.ts +++ b/types/three/src/helpers/PolarGridHelper.d.ts @@ -1,5 +1,5 @@ -import { LineSegments } from '../objects/LineSegments.js'; -import { ColorRepresentation } from '../math/Color.js'; +import { ColorRepresentation } from "../math/Color.js"; +import { LineSegments } from "../objects/LineSegments.js"; /** * The {@link PolarGridHelper} is an object to define polar grids @@ -44,7 +44,7 @@ export class PolarGridHelper extends LineSegments { * @override * @defaultValue `PolarGridHelper` */ - override readonly type: string | 'PolarGridHelper'; + override readonly type: string | "PolarGridHelper"; /** * Frees the GPU-related resources allocated by this instance diff --git a/types/three/src/helpers/SkeletonHelper.d.ts b/types/three/src/helpers/SkeletonHelper.d.ts index 6cb7d6172..981db5a7b 100644 --- a/types/three/src/helpers/SkeletonHelper.d.ts +++ b/types/three/src/helpers/SkeletonHelper.d.ts @@ -1,8 +1,8 @@ -import { SkinnedMesh } from '../Three.js'; -import { Object3D } from '../core/Object3D.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Bone } from '../objects/Bone.js'; -import { LineSegments } from '../objects/LineSegments.js'; +import { Object3D } from "../core/Object3D.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Bone } from "../objects/Bone.js"; +import { LineSegments } from "../objects/LineSegments.js"; +import { SkinnedMesh } from "../Three.js"; /** * A helper object to assist with visualizing a {@link Skeleton | Skeleton} @@ -40,7 +40,7 @@ export class SkeletonHelper extends LineSegments { * @override * @defaultValue `SkeletonHelper` */ - override readonly type: string | 'SkeletonHelper'; + override readonly type: string | "SkeletonHelper"; /** * The list of bones that the helper renders as {@link Line | Lines}. diff --git a/types/three/src/helpers/SpotLightHelper.d.ts b/types/three/src/helpers/SpotLightHelper.d.ts index 9f36388d8..f620ed990 100644 --- a/types/three/src/helpers/SpotLightHelper.d.ts +++ b/types/three/src/helpers/SpotLightHelper.d.ts @@ -1,8 +1,8 @@ -import { Light } from '../lights/Light.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Object3D } from '../core/Object3D.js'; -import { LineSegments } from '../objects/LineSegments.js'; -import { ColorRepresentation } from '../math/Color.js'; +import { Object3D } from "../core/Object3D.js"; +import { Light } from "../lights/Light.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { LineSegments } from "../objects/LineSegments.js"; /** * This displays a cone shaped helper object for a {@link THREE.SpotLight | SpotLight}. @@ -32,7 +32,7 @@ export class SpotLightHelper extends Object3D { * @override * @defaultValue `SpotLightHelper` */ - override readonly type: string | 'SpotLightHelper'; + override readonly type: string | "SpotLightHelper"; /** * {@link THREE.LineSegments | LineSegments} used to visualize the light. diff --git a/types/three/src/lights/AmbientLight.d.ts b/types/three/src/lights/AmbientLight.d.ts index 0e5664785..7000a37e7 100644 --- a/types/three/src/lights/AmbientLight.d.ts +++ b/types/three/src/lights/AmbientLight.d.ts @@ -1,5 +1,5 @@ -import { ColorRepresentation } from '../math/Color.js'; -import { Light } from './Light.js'; +import { ColorRepresentation } from "../math/Color.js"; +import { Light } from "./Light.js"; /** * This light globally illuminates all objects in the scene equally. @@ -32,5 +32,5 @@ export class AmbientLight extends Light { * @remarks Sub-classes will update this value. * @defaultValue `AmbientLight` */ - override readonly type: string | 'AmbientLight'; + override readonly type: string | "AmbientLight"; } diff --git a/types/three/src/lights/DirectionalLight.d.ts b/types/three/src/lights/DirectionalLight.d.ts index 122a555f2..3d43b7d89 100644 --- a/types/three/src/lights/DirectionalLight.d.ts +++ b/types/three/src/lights/DirectionalLight.d.ts @@ -1,8 +1,8 @@ -import { Object3D } from '../core/Object3D.js'; -import { DirectionalLightShadow } from './DirectionalLightShadow.js'; -import { Light } from './Light.js'; -import { Vector3 } from '../math/Vector3.js'; -import { ColorRepresentation } from '../math/Color.js'; +import { Object3D } from "../core/Object3D.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { Vector3 } from "../math/Vector3.js"; +import { DirectionalLightShadow } from "./DirectionalLightShadow.js"; +import { Light } from "./Light.js"; /** * A light that gets emitted in a specific direction @@ -49,7 +49,7 @@ export class DirectionalLight extends Light { * @remarks Sub-classes will update this value. * @defaultValue `DirectionalLight` */ - override readonly type: string | 'DirectionalLight'; + override readonly type: string | "DirectionalLight"; /** * Whether the object gets rendered into shadow map. diff --git a/types/three/src/lights/DirectionalLightShadow.d.ts b/types/three/src/lights/DirectionalLightShadow.d.ts index c6dd835e8..805e4fa0b 100644 --- a/types/three/src/lights/DirectionalLightShadow.d.ts +++ b/types/three/src/lights/DirectionalLightShadow.d.ts @@ -1,5 +1,5 @@ -import { OrthographicCamera } from '../cameras/OrthographicCamera.js'; -import { LightShadow } from './LightShadow.js'; +import { OrthographicCamera } from "../cameras/OrthographicCamera.js"; +import { LightShadow } from "./LightShadow.js"; /** * This is used internally by {@link DirectionalLight | DirectionalLights} for calculating shadows. diff --git a/types/three/src/lights/HemisphereLight.d.ts b/types/three/src/lights/HemisphereLight.d.ts index f153b48ae..1a796dfc8 100644 --- a/types/three/src/lights/HemisphereLight.d.ts +++ b/types/three/src/lights/HemisphereLight.d.ts @@ -1,6 +1,6 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Vector3 } from '../math/Vector3.js'; -import { Light } from './Light.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Light } from "./Light.js"; /** * A light source positioned directly above the scene, with color fading from the sky color to the ground color. @@ -39,7 +39,7 @@ export class HemisphereLight extends Light { * @remarks Sub-classes will update this value. * @defaultValue `HemisphereLight` */ - override readonly type: string | 'HemisphereLight'; + override readonly type: string | "HemisphereLight"; /** * This is set equal to {@link THREE.Object3D.DEFAULT_UP}, so that the light shines from the top down. diff --git a/types/three/src/lights/Light.d.ts b/types/three/src/lights/Light.d.ts index f47396420..403b84ab3 100644 --- a/types/three/src/lights/Light.d.ts +++ b/types/three/src/lights/Light.d.ts @@ -1,6 +1,6 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { LightShadow } from './LightShadow.js'; -import { Object3D } from '../core/Object3D.js'; +import { Object3D } from "../core/Object3D.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { LightShadow } from "./LightShadow.js"; /** * Abstract base class for lights. @@ -28,7 +28,7 @@ export abstract class Light { * @remarks Sub-classes will update this value. * @defaultValue `RectAreaLight` */ - override readonly type: string | 'RectAreaLight'; + override readonly type: string | "RectAreaLight"; /** * The width of the light. diff --git a/types/three/src/lights/SpotLight.d.ts b/types/three/src/lights/SpotLight.d.ts index 8714e4fcd..7f42488a8 100644 --- a/types/three/src/lights/SpotLight.d.ts +++ b/types/three/src/lights/SpotLight.d.ts @@ -1,9 +1,9 @@ -import { Vector3 } from '../math/Vector3.js'; -import { Object3D } from '../core/Object3D.js'; -import { SpotLightShadow } from './SpotLightShadow.js'; -import { Light } from './Light.js'; -import { ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; +import { Object3D } from "../core/Object3D.js"; +import { ColorRepresentation } from "../math/Color.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Texture } from "../textures/Texture.js"; +import { Light } from "./Light.js"; +import { SpotLightShadow } from "./SpotLightShadow.js"; /** * This light gets emitted from a single point in one direction, along a cone that increases in size the further from the light it gets. @@ -57,7 +57,7 @@ export class SpotLight extends Light { * @remarks Sub-classes will update this value. * @defaultValue `SpotLight` */ - override readonly type: string | 'SpotLight'; + override readonly type: string | "SpotLight"; /** * This is set equal to {@link THREE.Object3D.DEFAULT_UP | Object3D.DEFAULT_UP} (0, 1, 0), so that the light shines from the top down. diff --git a/types/three/src/lights/SpotLightShadow.d.ts b/types/three/src/lights/SpotLightShadow.d.ts index 247ade7f1..77f075c44 100644 --- a/types/three/src/lights/SpotLightShadow.d.ts +++ b/types/three/src/lights/SpotLightShadow.d.ts @@ -1,5 +1,5 @@ -import { PerspectiveCamera } from '../cameras/PerspectiveCamera.js'; -import { LightShadow } from './LightShadow.js'; +import { PerspectiveCamera } from "../cameras/PerspectiveCamera.js"; +import { LightShadow } from "./LightShadow.js"; /** * This is used internally by {@link SpotLight | SpotLights} for calculating shadows. diff --git a/types/three/src/loaders/AnimationLoader.d.ts b/types/three/src/loaders/AnimationLoader.d.ts index d24003a27..567f30f30 100644 --- a/types/three/src/loaders/AnimationLoader.d.ts +++ b/types/three/src/loaders/AnimationLoader.d.ts @@ -1,6 +1,6 @@ -import { LoadingManager } from './LoadingManager.js'; -import { Loader } from './Loader.js'; -import { AnimationClip } from '../animation/AnimationClip.js'; +import { AnimationClip } from "../animation/AnimationClip.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class AnimationLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/AudioLoader.d.ts b/types/three/src/loaders/AudioLoader.d.ts index e4c1aa7d7..0204bef47 100644 --- a/types/three/src/loaders/AudioLoader.d.ts +++ b/types/three/src/loaders/AudioLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class AudioLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/BufferGeometryLoader.d.ts b/types/three/src/loaders/BufferGeometryLoader.d.ts index 3b48395e6..0aa994011 100644 --- a/types/three/src/loaders/BufferGeometryLoader.d.ts +++ b/types/three/src/loaders/BufferGeometryLoader.d.ts @@ -1,7 +1,7 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { InstancedBufferGeometry } from '../core/InstancedBufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { InstancedBufferGeometry } from "../core/InstancedBufferGeometry.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class BufferGeometryLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/CompressedTextureLoader.d.ts b/types/three/src/loaders/CompressedTextureLoader.d.ts index 501109c76..eeca01ded 100644 --- a/types/three/src/loaders/CompressedTextureLoader.d.ts +++ b/types/three/src/loaders/CompressedTextureLoader.d.ts @@ -1,6 +1,6 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { CompressedTexture } from '../textures/CompressedTexture.js'; +import { CompressedTexture } from "../textures/CompressedTexture.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class CompressedTextureLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/CubeTextureLoader.d.ts b/types/three/src/loaders/CubeTextureLoader.d.ts index 6b5ade497..f6cd285c4 100644 --- a/types/three/src/loaders/CubeTextureLoader.d.ts +++ b/types/three/src/loaders/CubeTextureLoader.d.ts @@ -1,6 +1,6 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { CubeTexture } from '../textures/CubeTexture.js'; +import { CubeTexture } from "../textures/CubeTexture.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class CubeTextureLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/DataTextureLoader.d.ts b/types/three/src/loaders/DataTextureLoader.d.ts index 637acf461..0cc8d7475 100644 --- a/types/three/src/loaders/DataTextureLoader.d.ts +++ b/types/three/src/loaders/DataTextureLoader.d.ts @@ -1,6 +1,6 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { DataTexture } from '../textures/DataTexture.js'; +import { DataTexture } from "../textures/DataTexture.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class DataTextureLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/FileLoader.d.ts b/types/three/src/loaders/FileLoader.d.ts index 90c1f3595..a07ca5152 100644 --- a/types/three/src/loaders/FileLoader.d.ts +++ b/types/three/src/loaders/FileLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class FileLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/ImageBitmapLoader.d.ts b/types/three/src/loaders/ImageBitmapLoader.d.ts index c69688944..f182d326a 100644 --- a/types/three/src/loaders/ImageBitmapLoader.d.ts +++ b/types/three/src/loaders/ImageBitmapLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class ImageBitmapLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/ImageLoader.d.ts b/types/three/src/loaders/ImageLoader.d.ts index b5e0caf12..2189198e4 100644 --- a/types/three/src/loaders/ImageLoader.d.ts +++ b/types/three/src/loaders/ImageLoader.d.ts @@ -1,5 +1,5 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; /** * A loader for loading an image. diff --git a/types/three/src/loaders/Loader.d.ts b/types/three/src/loaders/Loader.d.ts index c149a098e..0f65e66f3 100644 --- a/types/three/src/loaders/Loader.d.ts +++ b/types/three/src/loaders/Loader.d.ts @@ -1,4 +1,4 @@ -import { LoadingManager } from './LoadingManager.js'; +import { LoadingManager } from "./LoadingManager.js"; /** * Base class for implementing loaders. diff --git a/types/three/src/loaders/LoadingManager.d.ts b/types/three/src/loaders/LoadingManager.d.ts index 606066002..ab5b546cd 100644 --- a/types/three/src/loaders/LoadingManager.d.ts +++ b/types/three/src/loaders/LoadingManager.d.ts @@ -1,4 +1,4 @@ -import { Loader } from './Loader.js'; +import { Loader } from "./Loader.js"; export const DefaultLoadingManager: LoadingManager; diff --git a/types/three/src/loaders/MaterialLoader.d.ts b/types/three/src/loaders/MaterialLoader.d.ts index 5665952c7..67db71113 100644 --- a/types/three/src/loaders/MaterialLoader.d.ts +++ b/types/three/src/loaders/MaterialLoader.d.ts @@ -1,7 +1,7 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { Texture } from '../textures/Texture.js'; -import { Material } from '../materials/Material.js'; +import { Material } from "../materials/Material.js"; +import { Texture } from "../textures/Texture.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class MaterialLoader extends Loader { /** diff --git a/types/three/src/loaders/ObjectLoader.d.ts b/types/three/src/loaders/ObjectLoader.d.ts index 5a36d9aa2..306c75700 100644 --- a/types/three/src/loaders/ObjectLoader.d.ts +++ b/types/three/src/loaders/ObjectLoader.d.ts @@ -1,12 +1,12 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { Object3D } from '../core/Object3D.js'; -import { Texture } from '../textures/Texture.js'; -import { Material } from '../materials/Material.js'; -import { AnimationClip } from '../animation/AnimationClip.js'; -import { InstancedBufferGeometry } from '../core/InstancedBufferGeometry.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Source } from '../textures/Source.js'; +import { AnimationClip } from "../animation/AnimationClip.js"; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { InstancedBufferGeometry } from "../core/InstancedBufferGeometry.js"; +import { Object3D } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Source } from "../textures/Source.js"; +import { Texture } from "../textures/Texture.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; export class ObjectLoader extends Loader { constructor(manager?: LoadingManager); diff --git a/types/three/src/loaders/TextureLoader.d.ts b/types/three/src/loaders/TextureLoader.d.ts index 24ff85a2d..3cc07f5c3 100644 --- a/types/three/src/loaders/TextureLoader.d.ts +++ b/types/three/src/loaders/TextureLoader.d.ts @@ -1,6 +1,6 @@ -import { Loader } from './Loader.js'; -import { LoadingManager } from './LoadingManager.js'; -import { Texture } from '../textures/Texture.js'; +import { Texture } from "../textures/Texture.js"; +import { Loader } from "./Loader.js"; +import { LoadingManager } from "./LoadingManager.js"; /** * Class for loading a texture. diff --git a/types/three/src/materials/LineBasicMaterial.d.ts b/types/three/src/materials/LineBasicMaterial.d.ts index f52ae2b60..791193eee 100644 --- a/types/three/src/materials/LineBasicMaterial.d.ts +++ b/types/three/src/materials/LineBasicMaterial.d.ts @@ -1,6 +1,6 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { MaterialParameters, Material } from './Material.js'; -import { Texture } from '../textures/Texture.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface LineBasicMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; diff --git a/types/three/src/materials/LineDashedMaterial.d.ts b/types/three/src/materials/LineDashedMaterial.d.ts index 8eec4d4b2..fd5ee9ae6 100644 --- a/types/three/src/materials/LineDashedMaterial.d.ts +++ b/types/three/src/materials/LineDashedMaterial.d.ts @@ -1,4 +1,4 @@ -import { LineBasicMaterial, LineBasicMaterialParameters } from './LineBasicMaterial.js'; +import { LineBasicMaterial, LineBasicMaterialParameters } from "./LineBasicMaterial.js"; export interface LineDashedMaterialParameters extends LineBasicMaterialParameters { scale?: number | undefined; diff --git a/types/three/src/materials/Material.d.ts b/types/three/src/materials/Material.d.ts index a6b100173..5205689a3 100644 --- a/types/three/src/materials/Material.d.ts +++ b/types/three/src/materials/Material.d.ts @@ -1,19 +1,19 @@ -import { Plane } from '../math/Plane.js'; -import { EventDispatcher } from '../core/EventDispatcher.js'; -import { WebGLProgramParametersWithUniforms } from '../renderers/webgl/WebGLPrograms.js'; -import { WebGLRenderer } from '../renderers/WebGLRenderer.js'; import { + Blending, BlendingDstFactor, BlendingEquation, - Blending, BlendingSrcFactor, DepthModes, + PixelFormat, Side, StencilFunc, StencilOp, - PixelFormat, -} from '../constants.js'; -import { Color, ColorRepresentation } from '../math/Color.js'; +} from "../constants.js"; +import { EventDispatcher } from "../core/EventDispatcher.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Plane } from "../math/Plane.js"; +import { WebGLProgramParametersWithUniforms } from "../renderers/webgl/WebGLPrograms.js"; +import { WebGLRenderer } from "../renderers/WebGLRenderer.js"; export interface MaterialParameters { alphaHash?: boolean | undefined; @@ -41,7 +41,7 @@ export interface MaterialParameters { polygonOffset?: boolean | undefined; polygonOffsetFactor?: number | undefined; polygonOffsetUnits?: number | undefined; - precision?: 'highp' | 'mediump' | 'lowp' | null | undefined; + precision?: "highp" | "mediump" | "lowp" | null | undefined; premultipliedAlpha?: boolean | undefined; forceSinglePass?: boolean | undefined; dithering?: boolean | undefined; @@ -306,7 +306,7 @@ export class Material extends EventDispatcher<{ dispose: {} }> { * Override the renderer's default precision for this material. Can be "highp", "mediump" or "lowp". Defaults is null. * @default null */ - precision: 'highp' | 'mediump' | 'lowp' | null; + precision: "highp" | "mediump" | "lowp" | null; /** * Whether to premultiply the alpha (transparency) value. See WebGL / Materials / Transparency for an example of the difference. Default is false. diff --git a/types/three/src/materials/Materials.d.ts b/types/three/src/materials/Materials.d.ts index 9e8afdfb9..dbca5e5b7 100644 --- a/types/three/src/materials/Materials.d.ts +++ b/types/three/src/materials/Materials.d.ts @@ -1,18 +1,18 @@ -export * from './ShadowMaterial.js'; -export * from './SpriteMaterial.js'; -export * from './RawShaderMaterial.js'; -export * from './ShaderMaterial.js'; -export * from './PointsMaterial.js'; -export * from './MeshPhysicalMaterial.js'; -export * from './MeshStandardMaterial.js'; -export * from './MeshPhongMaterial.js'; -export * from './MeshToonMaterial.js'; -export * from './MeshNormalMaterial.js'; -export * from './MeshLambertMaterial.js'; -export * from './MeshDepthMaterial.js'; -export * from './MeshDistanceMaterial.js'; -export * from './MeshBasicMaterial.js'; -export * from './MeshMatcapMaterial.js'; -export * from './LineDashedMaterial.js'; -export * from './LineBasicMaterial.js'; -export * from './Material.js'; +export * from "./LineBasicMaterial.js"; +export * from "./LineDashedMaterial.js"; +export * from "./Material.js"; +export * from "./MeshBasicMaterial.js"; +export * from "./MeshDepthMaterial.js"; +export * from "./MeshDistanceMaterial.js"; +export * from "./MeshLambertMaterial.js"; +export * from "./MeshMatcapMaterial.js"; +export * from "./MeshNormalMaterial.js"; +export * from "./MeshPhongMaterial.js"; +export * from "./MeshPhysicalMaterial.js"; +export * from "./MeshStandardMaterial.js"; +export * from "./MeshToonMaterial.js"; +export * from "./PointsMaterial.js"; +export * from "./RawShaderMaterial.js"; +export * from "./ShaderMaterial.js"; +export * from "./ShadowMaterial.js"; +export * from "./SpriteMaterial.js"; diff --git a/types/three/src/materials/MeshBasicMaterial.d.ts b/types/three/src/materials/MeshBasicMaterial.d.ts index 9f533b5e6..1c0424642 100644 --- a/types/three/src/materials/MeshBasicMaterial.d.ts +++ b/types/three/src/materials/MeshBasicMaterial.d.ts @@ -1,7 +1,7 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { MaterialParameters, Material } from './Material.js'; -import { Combine } from '../constants.js'; +import { Combine } from "../constants.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; /** * parameters is an object with one or more properties defining the material's appearance. */ diff --git a/types/three/src/materials/MeshDepthMaterial.d.ts b/types/three/src/materials/MeshDepthMaterial.d.ts index 3b531cff4..86be99b6c 100644 --- a/types/three/src/materials/MeshDepthMaterial.d.ts +++ b/types/three/src/materials/MeshDepthMaterial.d.ts @@ -1,6 +1,6 @@ -import { DepthPackingStrategies } from '../constants.js'; -import { MaterialParameters, Material } from './Material.js'; -import { Texture } from '../textures/Texture.js'; +import { DepthPackingStrategies } from "../constants.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshDepthMaterialParameters extends MaterialParameters { map?: Texture | null | undefined; diff --git a/types/three/src/materials/MeshDistanceMaterial.d.ts b/types/three/src/materials/MeshDistanceMaterial.d.ts index b83cdb5c2..8a27c00ee 100644 --- a/types/three/src/materials/MeshDistanceMaterial.d.ts +++ b/types/three/src/materials/MeshDistanceMaterial.d.ts @@ -1,6 +1,6 @@ -import { MaterialParameters, Material } from './Material.js'; -import { Vector3 } from '../math/Vector3.js'; -import { Texture } from '../textures/Texture.js'; +import { Vector3 } from "../math/Vector3.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshDistanceMaterialParameters extends MaterialParameters { map?: Texture | null | undefined; diff --git a/types/three/src/materials/MeshLambertMaterial.d.ts b/types/three/src/materials/MeshLambertMaterial.d.ts index 3aacf729e..6d18dece4 100644 --- a/types/three/src/materials/MeshLambertMaterial.d.ts +++ b/types/three/src/materials/MeshLambertMaterial.d.ts @@ -1,8 +1,8 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { MaterialParameters, Material } from './Material.js'; -import { Combine, NormalMapTypes } from '../constants.js'; -import { Vector2 } from '../Three.js'; +import { Combine, NormalMapTypes } from "../constants.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Texture } from "../textures/Texture.js"; +import { Vector2 } from "../Three.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshLambertMaterialParameters extends MaterialParameters { bumpMap?: Texture | undefined; diff --git a/types/three/src/materials/MeshMatcapMaterial.d.ts b/types/three/src/materials/MeshMatcapMaterial.d.ts index a114306be..51429464b 100644 --- a/types/three/src/materials/MeshMatcapMaterial.d.ts +++ b/types/three/src/materials/MeshMatcapMaterial.d.ts @@ -1,8 +1,8 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { Vector2 } from '../math/Vector2.js'; -import { MaterialParameters, Material } from './Material.js'; -import { NormalMapTypes } from '../constants.js'; +import { NormalMapTypes } from "../constants.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshMatcapMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; diff --git a/types/three/src/materials/MeshNormalMaterial.d.ts b/types/three/src/materials/MeshNormalMaterial.d.ts index 14752eed8..b779f5e29 100644 --- a/types/three/src/materials/MeshNormalMaterial.d.ts +++ b/types/three/src/materials/MeshNormalMaterial.d.ts @@ -1,7 +1,7 @@ -import { MaterialParameters, Material } from './Material.js'; -import { Texture } from '../textures/Texture.js'; -import { Vector2 } from '../math/Vector2.js'; -import { NormalMapTypes } from '../constants.js'; +import { NormalMapTypes } from "../constants.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshNormalMaterialParameters extends MaterialParameters { bumpMap?: Texture | null | undefined; diff --git a/types/three/src/materials/MeshPhongMaterial.d.ts b/types/three/src/materials/MeshPhongMaterial.d.ts index 072bd8e32..3582dee30 100644 --- a/types/three/src/materials/MeshPhongMaterial.d.ts +++ b/types/three/src/materials/MeshPhongMaterial.d.ts @@ -1,8 +1,8 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { Vector2 } from '../math/Vector2.js'; -import { MaterialParameters, Material } from './Material.js'; -import { Combine, NormalMapTypes } from '../constants.js'; +import { Combine, NormalMapTypes } from "../constants.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshPhongMaterialParameters extends MaterialParameters { /** geometry color in hexadecimal. Default is 0xffffff. */ diff --git a/types/three/src/materials/MeshPhysicalMaterial.d.ts b/types/three/src/materials/MeshPhysicalMaterial.d.ts index 58fd0125a..654974bd8 100644 --- a/types/three/src/materials/MeshPhysicalMaterial.d.ts +++ b/types/three/src/materials/MeshPhysicalMaterial.d.ts @@ -1,7 +1,7 @@ -import { Texture } from '../textures/Texture.js'; -import { Vector2 } from '../math/Vector2.js'; -import { MeshStandardMaterialParameters, MeshStandardMaterial } from './MeshStandardMaterial.js'; -import { Color, ColorRepresentation } from '../math/Color.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Texture } from "../textures/Texture.js"; +import { MeshStandardMaterial, MeshStandardMaterialParameters } from "./MeshStandardMaterial.js"; export interface MeshPhysicalMaterialParameters extends MeshStandardMaterialParameters { clearcoat?: number | undefined; diff --git a/types/three/src/materials/MeshStandardMaterial.d.ts b/types/three/src/materials/MeshStandardMaterial.d.ts index 45cfde647..1a5d4ece6 100644 --- a/types/three/src/materials/MeshStandardMaterial.d.ts +++ b/types/three/src/materials/MeshStandardMaterial.d.ts @@ -1,8 +1,8 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { Vector2 } from '../math/Vector2.js'; -import { MaterialParameters, Material } from './Material.js'; -import { NormalMapTypes } from '../constants.js'; +import { NormalMapTypes } from "../constants.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshStandardMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; diff --git a/types/three/src/materials/MeshToonMaterial.d.ts b/types/three/src/materials/MeshToonMaterial.d.ts index 5c27d509c..0f0c6f61d 100644 --- a/types/three/src/materials/MeshToonMaterial.d.ts +++ b/types/three/src/materials/MeshToonMaterial.d.ts @@ -1,8 +1,8 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { Vector2 } from '../math/Vector2.js'; -import { MaterialParameters, Material } from './Material.js'; -import { NormalMapTypes } from '../constants.js'; +import { NormalMapTypes } from "../constants.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface MeshToonMaterialParameters extends MaterialParameters { /** geometry color in hexadecimal. Default is 0xffffff. */ diff --git a/types/three/src/materials/PointsMaterial.d.ts b/types/three/src/materials/PointsMaterial.d.ts index 6edaa9208..58e32868c 100644 --- a/types/three/src/materials/PointsMaterial.d.ts +++ b/types/three/src/materials/PointsMaterial.d.ts @@ -1,6 +1,6 @@ -import { Material, MaterialParameters } from './Material.js'; -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface PointsMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; diff --git a/types/three/src/materials/RawShaderMaterial.d.ts b/types/three/src/materials/RawShaderMaterial.d.ts index dc96c6548..f033fc6b0 100644 --- a/types/three/src/materials/RawShaderMaterial.d.ts +++ b/types/three/src/materials/RawShaderMaterial.d.ts @@ -1,4 +1,4 @@ -import { ShaderMaterialParameters, ShaderMaterial } from './ShaderMaterial.js'; +import { ShaderMaterial, ShaderMaterialParameters } from "./ShaderMaterial.js"; export class RawShaderMaterial extends ShaderMaterial { constructor(parameters?: ShaderMaterialParameters); @@ -10,5 +10,5 @@ export class RawShaderMaterial extends ShaderMaterial { */ readonly isRawShaderMaterial: true; - override readonly type: 'RawShaderMaterial'; + override readonly type: "RawShaderMaterial"; } diff --git a/types/three/src/materials/ShaderMaterial.d.ts b/types/three/src/materials/ShaderMaterial.d.ts index 524f3b426..a0cf9954b 100644 --- a/types/three/src/materials/ShaderMaterial.d.ts +++ b/types/three/src/materials/ShaderMaterial.d.ts @@ -1,7 +1,7 @@ -import { IUniform } from '../renderers/shaders/UniformsLib.js'; -import { MaterialParameters, Material } from './Material.js'; -import { GLSLVersion } from '../constants.js'; -import { UniformsGroup } from '../core/UniformsGroup.js'; +import { GLSLVersion } from "../constants.js"; +import { UniformsGroup } from "../core/UniformsGroup.js"; +import { IUniform } from "../renderers/shaders/UniformsLib.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface ShaderMaterialParameters extends MaterialParameters { uniforms?: { [uniform: string]: IUniform } | undefined; @@ -16,11 +16,11 @@ export interface ShaderMaterialParameters extends MaterialParameters { fog?: boolean | undefined; extensions?: | { - derivatives?: boolean | undefined; - fragDepth?: boolean | undefined; - drawBuffers?: boolean | undefined; - shaderTextureLOD?: boolean | undefined; - } + derivatives?: boolean | undefined; + fragDepth?: boolean | undefined; + drawBuffers?: boolean | undefined; + shaderTextureLOD?: boolean | undefined; + } | undefined; glslVersion?: GLSLVersion | undefined; } diff --git a/types/three/src/materials/ShadowMaterial.d.ts b/types/three/src/materials/ShadowMaterial.d.ts index a2e49f5c5..46c8741d8 100644 --- a/types/three/src/materials/ShadowMaterial.d.ts +++ b/types/three/src/materials/ShadowMaterial.d.ts @@ -1,5 +1,5 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { MaterialParameters, Material } from './Material.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface ShadowMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; diff --git a/types/three/src/materials/SpriteMaterial.d.ts b/types/three/src/materials/SpriteMaterial.d.ts index 7eb47eb54..8dc4d9738 100644 --- a/types/three/src/materials/SpriteMaterial.d.ts +++ b/types/three/src/materials/SpriteMaterial.d.ts @@ -1,6 +1,6 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { MaterialParameters, Material } from './Material.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Texture } from "../textures/Texture.js"; +import { Material, MaterialParameters } from "./Material.js"; export interface SpriteMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; diff --git a/types/three/src/math/Box2.d.ts b/types/three/src/math/Box2.d.ts index 615947b27..de05083d0 100644 --- a/types/three/src/math/Box2.d.ts +++ b/types/three/src/math/Box2.d.ts @@ -1,4 +1,4 @@ -import { Vector2 } from './Vector2.js'; +import { Vector2 } from "./Vector2.js"; // Math ////////////////////////////////////////////////////////////////////////////////// diff --git a/types/three/src/math/Box3.d.ts b/types/three/src/math/Box3.d.ts index bb0e17366..2e7b11bc9 100644 --- a/types/three/src/math/Box3.d.ts +++ b/types/three/src/math/Box3.d.ts @@ -1,10 +1,10 @@ -import { BufferAttribute } from '../core/BufferAttribute.js'; -import { Vector3 } from './Vector3.js'; -import { Object3D } from '../core/Object3D.js'; -import { Sphere } from './Sphere.js'; -import { Plane } from './Plane.js'; -import { Matrix4 } from './Matrix4.js'; -import { Triangle } from './Triangle.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { Object3D } from "../core/Object3D.js"; +import { Matrix4 } from "./Matrix4.js"; +import { Plane } from "./Plane.js"; +import { Sphere } from "./Sphere.js"; +import { Triangle } from "./Triangle.js"; +import { Vector3 } from "./Vector3.js"; export class Box3 { constructor(min?: Vector3, max?: Vector3); diff --git a/types/three/src/math/Color.d.ts b/types/three/src/math/Color.d.ts index dc1f36c5e..f476a83a6 100644 --- a/types/three/src/math/Color.d.ts +++ b/types/three/src/math/Color.d.ts @@ -1,11 +1,11 @@ -import { ColorSpace } from '../constants.js'; -import { Matrix3 } from './Matrix3.js'; -import { Vector3 } from './Vector3.js'; +import { ColorSpace } from "../constants.js"; +import { Matrix3 } from "./Matrix3.js"; +import { Vector3 } from "./Vector3.js"; -import { BufferAttribute } from '../core/BufferAttribute.js'; -import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js"; -export { SRGBToLinear } from './ColorManagement.js'; +export { SRGBToLinear } from "./ColorManagement.js"; declare const _colorKeywords: { aliceblue: 0xf0f8ff; diff --git a/types/three/src/math/ColorManagement.d.ts b/types/three/src/math/ColorManagement.d.ts index fb0398fe7..1d3162951 100644 --- a/types/three/src/math/ColorManagement.d.ts +++ b/types/three/src/math/ColorManagement.d.ts @@ -6,8 +6,8 @@ import { LinearDisplayP3ColorSpace, LinearSRGBColorSpace, SRGBColorSpace, -} from '../constants.js'; -import { Color } from './Color.js'; +} from "../constants.js"; +import { Color } from "./Color.js"; export type WorkingColorSpace = typeof LinearSRGBColorSpace | typeof LinearDisplayP3ColorSpace; export type DefinedColorSpace = diff --git a/types/three/src/math/Cylindrical.d.ts b/types/three/src/math/Cylindrical.d.ts index e3f4456bb..6764f8154 100644 --- a/types/three/src/math/Cylindrical.d.ts +++ b/types/three/src/math/Cylindrical.d.ts @@ -1,4 +1,4 @@ -import { Vector3 } from './Vector3.js'; +import { Vector3 } from "./Vector3.js"; export class Cylindrical { constructor(radius?: number, theta?: number, y?: number); diff --git a/types/three/src/math/Euler.d.ts b/types/three/src/math/Euler.d.ts index 3b1f799a8..e4a516dc8 100644 --- a/types/three/src/math/Euler.d.ts +++ b/types/three/src/math/Euler.d.ts @@ -1,8 +1,8 @@ -import { Matrix4 } from './Matrix4.js'; -import { Quaternion } from './Quaternion.js'; -import { Vector3 } from './Vector3.js'; +import { Matrix4 } from "./Matrix4.js"; +import { Quaternion } from "./Quaternion.js"; +import { Vector3 } from "./Vector3.js"; -export type EulerOrder = 'XYZ' | 'YXZ' | 'ZXY' | 'ZYX' | 'YZX' | 'XZY'; +export type EulerOrder = "XYZ" | "YXZ" | "ZXY" | "ZYX" | "YZX" | "XZY"; export class Euler { constructor(x?: number, y?: number, z?: number, order?: EulerOrder); @@ -42,7 +42,7 @@ export class Euler { toArray(array?: Array, offset?: number): Array; _onChange(callback: () => void): this; - static DEFAULT_ORDER: 'XYZ'; + static DEFAULT_ORDER: "XYZ"; [Symbol.iterator](): Generator; } diff --git a/types/three/src/math/Frustum.d.ts b/types/three/src/math/Frustum.d.ts index 89f56eded..364c8e926 100644 --- a/types/three/src/math/Frustum.d.ts +++ b/types/three/src/math/Frustum.d.ts @@ -1,11 +1,11 @@ -import { Plane } from './Plane.js'; -import { Matrix4 } from './Matrix4.js'; -import { Object3D } from '../core/Object3D.js'; -import { Sprite } from '../objects/Sprite.js'; -import { Sphere } from './Sphere.js'; -import { Box3 } from './Box3.js'; -import { Vector3 } from './Vector3.js'; -import { CoordinateSystem } from '../constants.js'; +import { CoordinateSystem } from "../constants.js"; +import { Object3D } from "../core/Object3D.js"; +import { Sprite } from "../objects/Sprite.js"; +import { Box3 } from "./Box3.js"; +import { Matrix4 } from "./Matrix4.js"; +import { Plane } from "./Plane.js"; +import { Sphere } from "./Sphere.js"; +import { Vector3 } from "./Vector3.js"; /** * Frustums are used to determine what is inside the camera's field of view. They help speed up the rendering process. diff --git a/types/three/src/math/Line3.d.ts b/types/three/src/math/Line3.d.ts index eee3795a5..ab7e749bc 100644 --- a/types/three/src/math/Line3.d.ts +++ b/types/three/src/math/Line3.d.ts @@ -1,5 +1,5 @@ -import { Vector3 } from './Vector3.js'; -import { Matrix4 } from './Matrix4.js'; +import { Matrix4 } from "./Matrix4.js"; +import { Vector3 } from "./Vector3.js"; export class Line3 { constructor(start?: Vector3, end?: Vector3); diff --git a/types/three/src/math/MathUtils.d.ts b/types/three/src/math/MathUtils.d.ts index 90bbe9378..48f10a3c3 100644 --- a/types/three/src/math/MathUtils.d.ts +++ b/types/three/src/math/MathUtils.d.ts @@ -1,4 +1,4 @@ -import { Quaternion } from './Quaternion.js'; +import { Quaternion } from "./Quaternion.js"; /** * @see {@link https://github.com/mrdoob/three.js/blob/master/src/math/MathUtils.js|src/math/MathUtils.js} diff --git a/types/three/src/math/Matrix3.d.ts b/types/three/src/math/Matrix3.d.ts index 2084d1ca9..850265735 100644 --- a/types/three/src/math/Matrix3.d.ts +++ b/types/three/src/math/Matrix3.d.ts @@ -1,8 +1,8 @@ // https://threejs.org/docs/#api/en/math/Matrix3 -import { Matrix4 } from './Matrix4.js'; -import { Vector2 } from './Vector2.js'; -import { Vector3 } from './Vector3.js'; +import { Matrix4 } from "./Matrix4.js"; +import { Vector2 } from "./Vector2.js"; +import { Vector3 } from "./Vector3.js"; export type Matrix3Tuple = [number, number, number, number, number, number, number, number, number]; diff --git a/types/three/src/math/Matrix4.d.ts b/types/three/src/math/Matrix4.d.ts index 5bd021ae2..1e4a5c9ce 100644 --- a/types/three/src/math/Matrix4.d.ts +++ b/types/three/src/math/Matrix4.d.ts @@ -1,8 +1,8 @@ -import { Vector3 } from './Vector3.js'; -import { Euler } from './Euler.js'; -import { Quaternion } from './Quaternion.js'; -import { Matrix, Matrix3 } from './Matrix3.js'; -import { CoordinateSystem } from '../constants.js'; +import { CoordinateSystem } from "../constants.js"; +import { Euler } from "./Euler.js"; +import { Matrix, Matrix3 } from "./Matrix3.js"; +import { Quaternion } from "./Quaternion.js"; +import { Vector3 } from "./Vector3.js"; export type Matrix4Tuple = [ number, diff --git a/types/three/src/math/Plane.d.ts b/types/three/src/math/Plane.d.ts index 47b41617c..59fa23912 100644 --- a/types/three/src/math/Plane.d.ts +++ b/types/three/src/math/Plane.d.ts @@ -1,9 +1,9 @@ -import { Vector3 } from './Vector3.js'; -import { Sphere } from './Sphere.js'; -import { Line3 } from './Line3.js'; -import { Box3 } from './Box3.js'; -import { Matrix4 } from './Matrix4.js'; -import { Matrix3 } from './Matrix3.js'; +import { Box3 } from "./Box3.js"; +import { Line3 } from "./Line3.js"; +import { Matrix3 } from "./Matrix3.js"; +import { Matrix4 } from "./Matrix4.js"; +import { Sphere } from "./Sphere.js"; +import { Vector3 } from "./Vector3.js"; export class Plane { constructor(normal?: Vector3, constant?: number); diff --git a/types/three/src/math/Quaternion.d.ts b/types/three/src/math/Quaternion.d.ts index 53e8e4d2e..ef084024d 100644 --- a/types/three/src/math/Quaternion.d.ts +++ b/types/three/src/math/Quaternion.d.ts @@ -1,8 +1,8 @@ -import { Euler } from './Euler.js'; -import { Vector3, Vector3Like } from './Vector3.js'; -import { Matrix4 } from './Matrix4.js'; -import { BufferAttribute } from '../core/BufferAttribute.js'; -import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js"; +import { Euler } from "./Euler.js"; +import { Matrix4 } from "./Matrix4.js"; +import { Vector3, Vector3Like } from "./Vector3.js"; export interface QuaternionLike { readonly x: number; diff --git a/types/three/src/math/Ray.d.ts b/types/three/src/math/Ray.d.ts index 43f6bc7f8..98b9fd70f 100644 --- a/types/three/src/math/Ray.d.ts +++ b/types/three/src/math/Ray.d.ts @@ -1,8 +1,8 @@ -import { Vector3 } from './Vector3.js'; -import { Sphere } from './Sphere.js'; -import { Plane } from './Plane.js'; -import { Box3 } from './Box3.js'; -import { Matrix4 } from './Matrix4.js'; +import { Box3 } from "./Box3.js"; +import { Matrix4 } from "./Matrix4.js"; +import { Plane } from "./Plane.js"; +import { Sphere } from "./Sphere.js"; +import { Vector3 } from "./Vector3.js"; export class Ray { constructor(origin?: Vector3, direction?: Vector3); diff --git a/types/three/src/math/Sphere.d.ts b/types/three/src/math/Sphere.d.ts index 033d872ce..a423a6f97 100644 --- a/types/three/src/math/Sphere.d.ts +++ b/types/three/src/math/Sphere.d.ts @@ -1,7 +1,7 @@ -import { Vector3 } from './Vector3.js'; -import { Box3 } from './Box3.js'; -import { Plane } from './Plane.js'; -import { Matrix4 } from './Matrix4.js'; +import { Box3 } from "./Box3.js"; +import { Matrix4 } from "./Matrix4.js"; +import { Plane } from "./Plane.js"; +import { Vector3 } from "./Vector3.js"; export class Sphere { constructor(center?: Vector3, radius?: number); diff --git a/types/three/src/math/Spherical.d.ts b/types/three/src/math/Spherical.d.ts index e739d7fdb..8d4815a17 100644 --- a/types/three/src/math/Spherical.d.ts +++ b/types/three/src/math/Spherical.d.ts @@ -1,4 +1,4 @@ -import { Vector3 } from './Vector3.js'; +import { Vector3 } from "./Vector3.js"; export class Spherical { constructor(radius?: number, phi?: number, theta?: number); diff --git a/types/three/src/math/SphericalHarmonics3.d.ts b/types/three/src/math/SphericalHarmonics3.d.ts index cd41114bb..5981a0b48 100644 --- a/types/three/src/math/SphericalHarmonics3.d.ts +++ b/types/three/src/math/SphericalHarmonics3.d.ts @@ -1,4 +1,4 @@ -import { Vector3 } from './Vector3.js'; +import { Vector3 } from "./Vector3.js"; export class SphericalHarmonics3 { constructor(); diff --git a/types/three/src/math/Triangle.d.ts b/types/three/src/math/Triangle.d.ts index 6e943c3e5..75f8d5676 100644 --- a/types/three/src/math/Triangle.d.ts +++ b/types/three/src/math/Triangle.d.ts @@ -1,11 +1,11 @@ -import { Vector2 } from './Vector2.js'; -import { Vector3 } from './Vector3.js'; -import { Vector4 } from './Vector4.js'; -import { Plane } from './Plane.js'; -import { Box3 } from './Box3.js'; +import { Box3 } from "./Box3.js"; +import { Plane } from "./Plane.js"; +import { Vector2 } from "./Vector2.js"; +import { Vector3 } from "./Vector3.js"; +import { Vector4 } from "./Vector4.js"; -import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute.js'; -import { BufferAttribute } from '../core/BufferAttribute.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js"; export class Triangle { constructor(a?: Vector3, b?: Vector3, c?: Vector3); diff --git a/types/three/src/math/Vector2.d.ts b/types/three/src/math/Vector2.d.ts index 93aed0e30..fa7684676 100644 --- a/types/three/src/math/Vector2.d.ts +++ b/types/three/src/math/Vector2.d.ts @@ -1,5 +1,5 @@ -import { Matrix3 } from './Matrix3.js'; -import { BufferAttribute } from '../core/BufferAttribute.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { Matrix3 } from "./Matrix3.js"; export type Vector2Tuple = [number, number]; diff --git a/types/three/src/math/Vector3.d.ts b/types/three/src/math/Vector3.d.ts index 66d59ecac..56e907ceb 100644 --- a/types/three/src/math/Vector3.d.ts +++ b/types/three/src/math/Vector3.d.ts @@ -1,13 +1,13 @@ -import { Euler } from './Euler.js'; -import { Matrix3 } from './Matrix3.js'; -import { Matrix4 } from './Matrix4.js'; -import { QuaternionLike } from './Quaternion.js'; -import { Camera } from '../cameras/Camera.js'; -import { Spherical } from './Spherical.js'; -import { Cylindrical } from './Cylindrical.js'; -import { BufferAttribute } from '../core/BufferAttribute.js'; -import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute.js'; -import { RGB } from './Color.js'; +import { Camera } from "../cameras/Camera.js"; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js"; +import { RGB } from "./Color.js"; +import { Cylindrical } from "./Cylindrical.js"; +import { Euler } from "./Euler.js"; +import { Matrix3 } from "./Matrix3.js"; +import { Matrix4 } from "./Matrix4.js"; +import { QuaternionLike } from "./Quaternion.js"; +import { Spherical } from "./Spherical.js"; export type Vector3Tuple = [number, number, number]; diff --git a/types/three/src/math/Vector4.d.ts b/types/three/src/math/Vector4.d.ts index acf34e16f..697f10e00 100644 --- a/types/three/src/math/Vector4.d.ts +++ b/types/three/src/math/Vector4.d.ts @@ -1,6 +1,6 @@ -import { Matrix4 } from './Matrix4.js'; -import { QuaternionLike } from './Quaternion.js'; -import { BufferAttribute } from '../core/BufferAttribute.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { Matrix4 } from "./Matrix4.js"; +import { QuaternionLike } from "./Quaternion.js"; export type Vector4Tuple = [number, number, number, number]; diff --git a/types/three/src/math/interpolants/CubicInterpolant.d.ts b/types/three/src/math/interpolants/CubicInterpolant.d.ts index 8f8227832..282b98d7e 100644 --- a/types/three/src/math/interpolants/CubicInterpolant.d.ts +++ b/types/three/src/math/interpolants/CubicInterpolant.d.ts @@ -1,4 +1,4 @@ -import { Interpolant } from '../Interpolant.js'; +import { Interpolant } from "../Interpolant.js"; export class CubicInterpolant extends Interpolant { constructor(parameterPositions: any, samplesValues: any, sampleSize: number, resultBuffer?: any); diff --git a/types/three/src/math/interpolants/DiscreteInterpolant.d.ts b/types/three/src/math/interpolants/DiscreteInterpolant.d.ts index a2ec84f8b..28bd458b8 100644 --- a/types/three/src/math/interpolants/DiscreteInterpolant.d.ts +++ b/types/three/src/math/interpolants/DiscreteInterpolant.d.ts @@ -1,4 +1,4 @@ -import { Interpolant } from '../Interpolant.js'; +import { Interpolant } from "../Interpolant.js"; export class DiscreteInterpolant extends Interpolant { constructor(parameterPositions: any, samplesValues: any, sampleSize: number, resultBuffer?: any); diff --git a/types/three/src/math/interpolants/LinearInterpolant.d.ts b/types/three/src/math/interpolants/LinearInterpolant.d.ts index 66dc52c1d..e6ff11c0b 100644 --- a/types/three/src/math/interpolants/LinearInterpolant.d.ts +++ b/types/three/src/math/interpolants/LinearInterpolant.d.ts @@ -1,4 +1,4 @@ -import { Interpolant } from '../Interpolant.js'; +import { Interpolant } from "../Interpolant.js"; export class LinearInterpolant extends Interpolant { constructor(parameterPositions: any, samplesValues: any, sampleSize: number, resultBuffer?: any); diff --git a/types/three/src/math/interpolants/QuaternionLinearInterpolant.d.ts b/types/three/src/math/interpolants/QuaternionLinearInterpolant.d.ts index ea565e4f7..dccb66976 100644 --- a/types/three/src/math/interpolants/QuaternionLinearInterpolant.d.ts +++ b/types/three/src/math/interpolants/QuaternionLinearInterpolant.d.ts @@ -1,4 +1,4 @@ -import { Interpolant } from '../Interpolant.js'; +import { Interpolant } from "../Interpolant.js"; export class QuaternionLinearInterpolant extends Interpolant { constructor(parameterPositions: any, samplesValues: any, sampleSize: number, resultBuffer?: any); diff --git a/types/three/src/objects/BatchedMesh.d.ts b/types/three/src/objects/BatchedMesh.d.ts index e41c808a9..41d1e9e28 100644 --- a/types/three/src/objects/BatchedMesh.d.ts +++ b/types/three/src/objects/BatchedMesh.d.ts @@ -1,10 +1,10 @@ -import { Mesh } from './Mesh.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Material } from '../materials/Material.js'; -import { Box3 } from '../math/Box3.js'; -import { Sphere } from '../math/Sphere.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Camera } from '../cameras/Camera.js'; +import { Camera } from "../cameras/Camera.js"; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Material } from "../materials/Material.js"; +import { Box3 } from "../math/Box3.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Sphere } from "../math/Sphere.js"; +import { Mesh } from "./Mesh.js"; /** * A special version of {@link Mesh} with multi draw batch rendering support. Use {@link BatchedMesh} if you have to @@ -75,7 +75,6 @@ declare class BatchedMesh extends Mesh { isBatchedMesh: true; /** - * * @param maxGeometryCount the max number of individual geometries planned to be added. * @param maxVertexCount the max number of vertices to be used by all geometries. * @param maxIndexCount the max number of indices to be used by all geometries. diff --git a/types/three/src/objects/Bone.d.ts b/types/three/src/objects/Bone.d.ts index 9c1b4ef60..3400ea1b6 100644 --- a/types/three/src/objects/Bone.d.ts +++ b/types/three/src/objects/Bone.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; /** * A {@link Bone} which is part of a {@link THREE.Skeleton | Skeleton} @@ -32,5 +32,5 @@ export class Bone extends * @override * @defaultValue `Bone` */ - override readonly type: string | 'Bone'; + override readonly type: string | "Bone"; } diff --git a/types/three/src/objects/Group.d.ts b/types/three/src/objects/Group.d.ts index fa18c3cb3..bceb11e5f 100644 --- a/types/three/src/objects/Group.d.ts +++ b/types/three/src/objects/Group.d.ts @@ -1,4 +1,4 @@ -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; /** * Its purpose is to make working with groups of objects syntactically clearer. @@ -39,5 +39,5 @@ export class Group extend * @override * @defaultValue `Group` */ - override readonly type: string | 'Group'; + override readonly type: string | "Group"; } diff --git a/types/three/src/objects/InstancedMesh.d.ts b/types/three/src/objects/InstancedMesh.d.ts index d14cdefab..2a7e8a916 100644 --- a/types/three/src/objects/InstancedMesh.d.ts +++ b/types/three/src/objects/InstancedMesh.d.ts @@ -1,12 +1,12 @@ -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Material } from '../materials/Material.js'; -import { InstancedBufferAttribute } from '../core/InstancedBufferAttribute.js'; -import { Mesh } from './Mesh.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Color } from '../math/Color.js'; -import { Object3DEventMap } from '../core/Object3D.js'; -import { Box3 } from '../math/Box3.js'; -import { Sphere } from '../math/Sphere.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { InstancedBufferAttribute } from "../core/InstancedBufferAttribute.js"; +import { Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Box3 } from "../math/Box3.js"; +import { Color } from "../math/Color.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Sphere } from "../math/Sphere.js"; +import { Mesh } from "./Mesh.js"; export interface InstancedMeshEventMap extends Object3DEventMap { dispose: {}; diff --git a/types/three/src/objects/LOD.d.ts b/types/three/src/objects/LOD.d.ts index a9279049a..013ce60a7 100644 --- a/types/three/src/objects/LOD.d.ts +++ b/types/three/src/objects/LOD.d.ts @@ -1,5 +1,5 @@ -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; -import { Camera } from '../cameras/Camera.js'; +import { Camera } from "../cameras/Camera.js"; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; /** * Every level is associated with an object, and rendering can be switched between them at the distances specified @@ -37,7 +37,7 @@ export class LOD extends * @override * @defaultValue `LOD` */ - override readonly type: string | 'LOD'; + override readonly type: string | "LOD"; /** * An array of level objects diff --git a/types/three/src/objects/Line.d.ts b/types/three/src/objects/Line.d.ts index 725853bf1..2d76dec69 100644 --- a/types/three/src/objects/Line.d.ts +++ b/types/three/src/objects/Line.d.ts @@ -1,6 +1,6 @@ -import { Material } from '../materials/Material.js'; -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; /** * A continuous line. @@ -47,7 +47,7 @@ export class Line< * @override * @defaultValue `Line` */ - override readonly type: string | 'Line'; + override readonly type: string | "Line"; /** * Vertices representing the {@link Line} segment(s). diff --git a/types/three/src/objects/LineLoop.d.ts b/types/three/src/objects/LineLoop.d.ts index 3446b82fa..0a070a838 100644 --- a/types/three/src/objects/LineLoop.d.ts +++ b/types/three/src/objects/LineLoop.d.ts @@ -1,7 +1,7 @@ -import { Line } from './Line.js'; -import { Material } from '../materials/Material.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Object3DEventMap } from '../core/Object3D.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Line } from "./Line.js"; /** * A continuous line that connects back to the start. @@ -36,5 +36,5 @@ export class LineLoop< * @override * @defaultValue `LineLoop` */ - override readonly type: string | 'LineLoop'; + override readonly type: string | "LineLoop"; } diff --git a/types/three/src/objects/LineSegments.d.ts b/types/three/src/objects/LineSegments.d.ts index d03e4a4da..9a8199bdc 100644 --- a/types/three/src/objects/LineSegments.d.ts +++ b/types/three/src/objects/LineSegments.d.ts @@ -1,7 +1,7 @@ -import { Material } from '../materials/Material.js'; -import { Line } from './Line.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Object3DEventMap } from '../core/Object3D.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Line } from "./Line.js"; /** * A series of lines drawn between pairs of vertices. @@ -37,5 +37,5 @@ export class LineSegments< * @override * @defaultValue `LineSegments` */ - override readonly type: string | 'LineSegments'; + override readonly type: string | "LineSegments"; } diff --git a/types/three/src/objects/Mesh.d.ts b/types/three/src/objects/Mesh.d.ts index 62651415f..b1fc8db57 100644 --- a/types/three/src/objects/Mesh.d.ts +++ b/types/three/src/objects/Mesh.d.ts @@ -1,7 +1,7 @@ -import { Material } from '../materials/Material.js'; -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Vector3 } from '../math/Vector3.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Vector3 } from "../math/Vector3.js"; /** * Class representing triangular {@link https://en.wikipedia.org/wiki/Polygon_mesh | polygon mesh} based objects. @@ -42,7 +42,7 @@ export class Mesh< * @override * @defaultValue `Mesh` */ - override readonly type: string | 'Mesh'; + override readonly type: string | "Mesh"; /** * An instance of {@link THREE.BufferGeometry | BufferGeometry} (or derived classes), defining the object's structure. @@ -65,7 +65,6 @@ export class Mesh< /** * A dictionary of morphTargets based on the `morphTarget.name` property. * @defaultValue `undefined`, _but rebuilt by {@link updateMorphTargets | .updateMorphTargets()}._ - * */ morphTargetDictionary?: { [key: string]: number } | undefined; diff --git a/types/three/src/objects/Points.d.ts b/types/three/src/objects/Points.d.ts index 8f37501df..ab6b172c6 100644 --- a/types/three/src/objects/Points.d.ts +++ b/types/three/src/objects/Points.d.ts @@ -1,9 +1,9 @@ -import { Material } from '../materials/Material.js'; -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; -import { BufferGeometry, NormalOrGLBufferAttributes } from '../core/BufferGeometry.js'; -import { BufferAttribute } from '../core/BufferAttribute.js'; -import { InterleavedBufferAttribute } from '../core/InterleavedBufferAttribute.js'; -import { GLBufferAttribute } from '../core/GLBufferAttribute.js'; +import { BufferAttribute } from "../core/BufferAttribute.js"; +import { BufferGeometry, NormalOrGLBufferAttributes } from "../core/BufferGeometry.js"; +import { GLBufferAttribute } from "../core/GLBufferAttribute.js"; +import { InterleavedBufferAttribute } from "../core/InterleavedBufferAttribute.js"; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; /** * A class for displaying {@link Points} @@ -35,7 +35,7 @@ export class Points< * @override * @defaultValue `Points` */ - override readonly type: string | 'Points'; + override readonly type: string | "Points"; /** * An array of weights typically from `0-1` that specify how much of the morph is applied. @@ -46,7 +46,6 @@ export class Points< /** * A dictionary of morphTargets based on the `morphTarget.name` property. * @defaultValue `undefined`, _but rebuilt by {@link updateMorphTargets | .updateMorphTargets()}._ - * */ morphTargetDictionary?: { [key: string]: number } | undefined; diff --git a/types/three/src/objects/Skeleton.d.ts b/types/three/src/objects/Skeleton.d.ts index 96f9be390..c83f35560 100644 --- a/types/three/src/objects/Skeleton.d.ts +++ b/types/three/src/objects/Skeleton.d.ts @@ -1,6 +1,6 @@ -import { Bone } from './Bone.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { DataTexture } from '../textures/DataTexture.js'; +import { Matrix4 } from "../math/Matrix4.js"; +import { DataTexture } from "../textures/DataTexture.js"; +import { Bone } from "./Bone.js"; /** * Use an array of {@link Bone | bones} to create a {@link Skeleton} that can be used by a {@link THREE.SkinnedMesh | SkinnedMesh}. diff --git a/types/three/src/objects/SkinnedMesh.d.ts b/types/three/src/objects/SkinnedMesh.d.ts index 9cee06717..8e0288a72 100644 --- a/types/three/src/objects/SkinnedMesh.d.ts +++ b/types/three/src/objects/SkinnedMesh.d.ts @@ -1,13 +1,13 @@ -import { Material } from '../materials/Material.js'; -import { Box3 } from '../math/Box3.js'; -import { Matrix4 } from '../math/Matrix4.js'; -import { Vector3 } from '../math/Vector3.js'; -import { Skeleton } from './Skeleton.js'; -import { Mesh } from './Mesh.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { Object3DEventMap } from '../core/Object3D.js'; -import { Sphere } from '../math/Sphere.js'; -import { BindMode } from '../constants.js'; +import { BindMode } from "../constants.js"; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3DEventMap } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Box3 } from "../math/Box3.js"; +import { Matrix4 } from "../math/Matrix4.js"; +import { Sphere } from "../math/Sphere.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Mesh } from "./Mesh.js"; +import { Skeleton } from "./Skeleton.js"; /** * A mesh that has a {@link THREE.Skeleton | Skeleton} with {@link Bone | bones} that can then be used to animate the vertices of the geometry. @@ -71,7 +71,7 @@ export class SkinnedMesh< * @override * @defaultValue `SkinnedMesh` */ - override readonly type: string | 'SkinnedMesh'; + override readonly type: string | "SkinnedMesh"; /** * Either {@link AttachedBindMode} or {@link DetachedBindMode}. {@link AttachedBindMode} means the skinned mesh diff --git a/types/three/src/objects/Sprite.d.ts b/types/three/src/objects/Sprite.d.ts index 31613de9a..427b8b414 100644 --- a/types/three/src/objects/Sprite.d.ts +++ b/types/three/src/objects/Sprite.d.ts @@ -1,7 +1,7 @@ -import { Vector2 } from '../math/Vector2.js'; -import { Object3D, Object3DEventMap } from '../core/Object3D.js'; -import { SpriteMaterial } from '../materials/Materials.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3D, Object3DEventMap } from "../core/Object3D.js"; +import { SpriteMaterial } from "../materials/Materials.js"; +import { Vector2 } from "../math/Vector2.js"; /** * A {@link Sprite} is a plane that always faces towards the camera, generally with a partially transparent texture applied. @@ -36,7 +36,7 @@ export class Sprite exten * @override * @defaultValue `Sprite` */ - override readonly type: string | 'Sprite'; + override readonly type: string | "Sprite"; /** * Whether the object gets rendered into shadow map. diff --git a/types/three/src/renderers/WebGL1Renderer.d.ts b/types/three/src/renderers/WebGL1Renderer.d.ts index b1f3b46ac..fcbe365f1 100644 --- a/types/three/src/renderers/WebGL1Renderer.d.ts +++ b/types/three/src/renderers/WebGL1Renderer.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer, WebGLRendererParameters } from './WebGLRenderer.js'; +import { WebGLRenderer, WebGLRendererParameters } from "./WebGLRenderer.js"; export class WebGL1Renderer extends WebGLRenderer { constructor(parameters?: WebGLRendererParameters); diff --git a/types/three/src/renderers/WebGL3DRenderTarget.d.ts b/types/three/src/renderers/WebGL3DRenderTarget.d.ts index 18406ad9e..64ab87aeb 100644 --- a/types/three/src/renderers/WebGL3DRenderTarget.d.ts +++ b/types/three/src/renderers/WebGL3DRenderTarget.d.ts @@ -1,5 +1,5 @@ -import { Data3DTexture } from '../textures/Data3DTexture.js'; -import { WebGLRenderTarget, WebGLRenderTargetOptions } from './WebGLRenderTarget.js'; +import { Data3DTexture } from "../textures/Data3DTexture.js"; +import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js"; /** * Represents a three-dimensional render target. diff --git a/types/three/src/renderers/WebGLArrayRenderTarget.d.ts b/types/three/src/renderers/WebGLArrayRenderTarget.d.ts index e453af468..f75dbf607 100644 --- a/types/three/src/renderers/WebGLArrayRenderTarget.d.ts +++ b/types/three/src/renderers/WebGLArrayRenderTarget.d.ts @@ -1,5 +1,5 @@ -import { DataArrayTexture } from '../textures/DataArrayTexture.js'; -import { WebGLRenderTarget, WebGLRenderTargetOptions } from './WebGLRenderTarget.js'; +import { DataArrayTexture } from "../textures/DataArrayTexture.js"; +import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js"; /** * This type of render target represents an array of textures. diff --git a/types/three/src/renderers/WebGLCubeRenderTarget.d.ts b/types/three/src/renderers/WebGLCubeRenderTarget.d.ts index 23e36e5fd..8592b3bc2 100644 --- a/types/three/src/renderers/WebGLCubeRenderTarget.d.ts +++ b/types/three/src/renderers/WebGLCubeRenderTarget.d.ts @@ -1,7 +1,7 @@ -import { WebGLRenderTargetOptions, WebGLRenderTarget } from './WebGLRenderTarget.js'; -import { WebGLRenderer } from './WebGLRenderer.js'; -import { Texture } from '../textures/Texture.js'; -import { CubeTexture } from '../textures/CubeTexture.js'; +import { CubeTexture } from "../textures/CubeTexture.js"; +import { Texture } from "../textures/Texture.js"; +import { WebGLRenderer } from "./WebGLRenderer.js"; +import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js"; export class WebGLCubeRenderTarget extends WebGLRenderTarget { constructor(size?: number, options?: WebGLRenderTargetOptions); diff --git a/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts b/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts index 8aad96053..c0e299b9c 100644 --- a/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts +++ b/types/three/src/renderers/WebGLMultipleRenderTargets.d.ts @@ -1,5 +1,5 @@ -import { Texture } from '../textures/Texture.js'; -import { WebGLRenderTarget, WebGLRenderTargetOptions } from './WebGLRenderTarget.js'; +import { Texture } from "../textures/Texture.js"; +import { WebGLRenderTarget, WebGLRenderTargetOptions } from "./WebGLRenderTarget.js"; export class WebGLMultipleRenderTargets extends WebGLRenderTarget { /** diff --git a/types/three/src/renderers/WebGLRenderTarget.d.ts b/types/three/src/renderers/WebGLRenderTarget.d.ts index fb26aa6f4..9f85133d7 100644 --- a/types/three/src/renderers/WebGLRenderTarget.d.ts +++ b/types/three/src/renderers/WebGLRenderTarget.d.ts @@ -1,5 +1,5 @@ -import { Texture } from '../textures/Texture.js'; -import { RenderTarget, RenderTargetOptions } from '../core/RenderTarget.js'; +import { RenderTarget, RenderTargetOptions } from "../core/RenderTarget.js"; +import { Texture } from "../textures/Texture.js"; // eslint-disable-next-line @typescript-eslint/no-empty-interface export interface WebGLRenderTargetOptions extends RenderTargetOptions {} diff --git a/types/three/src/renderers/WebGLRenderer.d.ts b/types/three/src/renderers/WebGLRenderer.d.ts index dd0925649..97cfe03da 100644 --- a/types/three/src/renderers/WebGLRenderer.d.ts +++ b/types/three/src/renderers/WebGLRenderer.d.ts @@ -1,36 +1,36 @@ -import { Scene } from '../scenes/Scene.js'; -import { Camera } from '../cameras/Camera.js'; -import { WebGLExtensions } from './webgl/WebGLExtensions.js'; -import { WebGLInfo } from './webgl/WebGLInfo.js'; -import { WebGLShadowMap } from './webgl/WebGLShadowMap.js'; -import { WebGLCapabilities } from './webgl/WebGLCapabilities.js'; -import { WebGLProperties } from './webgl/WebGLProperties.js'; -import { WebGLRenderLists } from './webgl/WebGLRenderLists.js'; -import { WebGLState } from './webgl/WebGLState.js'; -import { Vector2 } from '../math/Vector2.js'; -import { Vector4 } from '../math/Vector4.js'; -import { Color, ColorRepresentation } from '../math/Color.js'; -import { WebGLRenderTarget } from './WebGLRenderTarget.js'; -import { WebGLMultipleRenderTargets } from './WebGLMultipleRenderTargets.js'; -import { Object3D } from '../core/Object3D.js'; -import { Material } from '../materials/Material.js'; +import { Camera } from "../cameras/Camera.js"; import { - ToneMapping, - ShadowMapType, + ColorSpace, CullFace, + ShadowMapType, TextureEncoding, - ColorSpace, + ToneMapping, WebGLCoordinateSystem, -} from '../constants.js'; -import { WebXRManager } from './webxr/WebXRManager.js'; -import { BufferGeometry } from '../core/BufferGeometry.js'; -import { OffscreenCanvas, Texture } from '../textures/Texture.js'; -import { Data3DTexture } from '../textures/Data3DTexture.js'; -import { Vector3 } from '../math/Vector3.js'; -import { Box3 } from '../math/Box3.js'; -import { DataArrayTexture } from '../textures/DataArrayTexture.js'; -import { WebGLProgram } from './webgl/WebGLProgram.js'; -import { Plane } from '../math/Plane.js'; +} from "../constants.js"; +import { BufferGeometry } from "../core/BufferGeometry.js"; +import { Object3D } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Box3 } from "../math/Box3.js"; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { Plane } from "../math/Plane.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Vector3 } from "../math/Vector3.js"; +import { Vector4 } from "../math/Vector4.js"; +import { Scene } from "../scenes/Scene.js"; +import { Data3DTexture } from "../textures/Data3DTexture.js"; +import { DataArrayTexture } from "../textures/DataArrayTexture.js"; +import { OffscreenCanvas, Texture } from "../textures/Texture.js"; +import { WebGLCapabilities } from "./webgl/WebGLCapabilities.js"; +import { WebGLExtensions } from "./webgl/WebGLExtensions.js"; +import { WebGLInfo } from "./webgl/WebGLInfo.js"; +import { WebGLProgram } from "./webgl/WebGLProgram.js"; +import { WebGLProperties } from "./webgl/WebGLProperties.js"; +import { WebGLRenderLists } from "./webgl/WebGLRenderLists.js"; +import { WebGLShadowMap } from "./webgl/WebGLShadowMap.js"; +import { WebGLState } from "./webgl/WebGLState.js"; +import { WebGLMultipleRenderTargets } from "./WebGLMultipleRenderTargets.js"; +import { WebGLRenderTarget } from "./WebGLRenderTarget.js"; +import { WebXRManager } from "./webxr/WebXRManager.js"; export interface Renderer { domElement: HTMLCanvasElement; @@ -117,11 +117,11 @@ export interface WebGLDebug { */ onShaderError: | (( - gl: WebGLRenderingContext, - program: WebGLProgram, - glVertexShader: WebGLShader, - glFragmentShader: WebGLShader, - ) => void) + gl: WebGLRenderingContext, + program: WebGLProgram, + glVertexShader: WebGLShader, + glFragmentShader: WebGLShader, + ) => void) | null; } diff --git a/types/three/src/renderers/shaders/ShaderLib.d.ts b/types/three/src/renderers/shaders/ShaderLib.d.ts index 86178e73f..35d2aedda 100644 --- a/types/three/src/renderers/shaders/ShaderLib.d.ts +++ b/types/three/src/renderers/shaders/ShaderLib.d.ts @@ -1,4 +1,4 @@ -import { IUniform } from './UniformsLib.js'; +import { IUniform } from "./UniformsLib.js"; export interface ShaderLibShader { uniforms: { [uniform: string]: IUniform }; diff --git a/types/three/src/renderers/shaders/UniformsLib.d.ts b/types/three/src/renderers/shaders/UniformsLib.d.ts index 3f340e2b0..f8bb7228b 100644 --- a/types/three/src/renderers/shaders/UniformsLib.d.ts +++ b/types/three/src/renderers/shaders/UniformsLib.d.ts @@ -1,6 +1,6 @@ -import { Color } from '../../math/Color.js'; -import { Vector2 } from '../../math/Vector2.js'; -import { Matrix3 } from '../../math/Matrix3.js'; +import { Color } from "../../math/Color.js"; +import { Matrix3 } from "../../math/Matrix3.js"; +import { Vector2 } from "../../math/Vector2.js"; // eslint-disable-next-line @typescript-eslint/naming-convention export interface IUniform { diff --git a/types/three/src/renderers/shaders/UniformsUtils.d.ts b/types/three/src/renderers/shaders/UniformsUtils.d.ts index 023ecbb7e..8e0299eff 100644 --- a/types/three/src/renderers/shaders/UniformsUtils.d.ts +++ b/types/three/src/renderers/shaders/UniformsUtils.d.ts @@ -1,5 +1,5 @@ -import { UniformsGroup } from '../../core/UniformsGroup.js'; -import { IUniform } from './UniformsLib.js'; +import { UniformsGroup } from "../../core/UniformsGroup.js"; +import { IUniform } from "./UniformsLib.js"; export function cloneUniforms(uniformsSrc: T): T; export function mergeUniforms(uniforms: Array<{ [uniform: string]: IUniform }>): { [uniform: string]: IUniform }; @@ -7,5 +7,5 @@ export function mergeUniforms(uniforms: Array<{ [uniform: string]: IUniform }>): export function cloneUniformsGroups(src: UniformsGroup[]): UniformsGroup[]; export namespace UniformsUtils { - export { mergeUniforms as merge, cloneUniforms as clone }; + export { cloneUniforms as clone, mergeUniforms as merge }; } diff --git a/types/three/src/renderers/webgl/WebGLAttributes.d.ts b/types/three/src/renderers/webgl/WebGLAttributes.d.ts index 183b700c6..f94c1e6ce 100644 --- a/types/three/src/renderers/webgl/WebGLAttributes.d.ts +++ b/types/three/src/renderers/webgl/WebGLAttributes.d.ts @@ -1,19 +1,19 @@ -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { BufferAttribute } from '../../core/BufferAttribute.js'; -import { InterleavedBufferAttribute } from '../../core/InterleavedBufferAttribute.js'; -import { GLBufferAttribute } from '../../core/GLBufferAttribute.js'; +import { BufferAttribute } from "../../core/BufferAttribute.js"; +import { GLBufferAttribute } from "../../core/GLBufferAttribute.js"; +import { InterleavedBufferAttribute } from "../../core/InterleavedBufferAttribute.js"; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; export class WebGLAttributes { constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, capabilities: WebGLCapabilities); get(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute): | { - buffer: WebGLBuffer; - type: number; - bytesPerElement: number; - version: number; - size: number; - } + buffer: WebGLBuffer; + type: number; + bytesPerElement: number; + version: number; + size: number; + } | undefined; remove(attribute: BufferAttribute | InterleavedBufferAttribute | GLBufferAttribute): void; diff --git a/types/three/src/renderers/webgl/WebGLBindingStates.d.ts b/types/three/src/renderers/webgl/WebGLBindingStates.d.ts index 603cb3260..8a969831c 100644 --- a/types/three/src/renderers/webgl/WebGLBindingStates.d.ts +++ b/types/three/src/renderers/webgl/WebGLBindingStates.d.ts @@ -1,11 +1,11 @@ -import { WebGLExtensions } from './WebGLExtensions.js'; -import { WebGLAttributes } from './WebGLAttributes.js'; -import { WebGLProgram } from './WebGLProgram.js'; -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { Object3D } from '../../core/Object3D.js'; -import { BufferGeometry } from '../../core/BufferGeometry.js'; -import { BufferAttribute } from '../../core/BufferAttribute.js'; -import { Material } from '../../materials/Material.js'; +import { BufferAttribute } from "../../core/BufferAttribute.js"; +import { BufferGeometry } from "../../core/BufferGeometry.js"; +import { Object3D } from "../../core/Object3D.js"; +import { Material } from "../../materials/Material.js"; +import { WebGLAttributes } from "./WebGLAttributes.js"; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLExtensions } from "./WebGLExtensions.js"; +import { WebGLProgram } from "./WebGLProgram.js"; export class WebGLBindingStates { constructor( diff --git a/types/three/src/renderers/webgl/WebGLBufferRenderer.d.ts b/types/three/src/renderers/webgl/WebGLBufferRenderer.d.ts index 9c6f09885..43dc923fd 100644 --- a/types/three/src/renderers/webgl/WebGLBufferRenderer.d.ts +++ b/types/three/src/renderers/webgl/WebGLBufferRenderer.d.ts @@ -1,7 +1,7 @@ // Renderers / WebGL ///////////////////////////////////////////////////////////////////// -import { WebGLExtensions } from './WebGLExtensions.js'; -import { WebGLInfo } from './WebGLInfo.js'; -import { WebGLCapabilities } from './WebGLCapabilities.js'; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLExtensions } from "./WebGLExtensions.js"; +import { WebGLInfo } from "./WebGLInfo.js"; export class WebGLBufferRenderer { constructor( diff --git a/types/three/src/renderers/webgl/WebGLClipping.d.ts b/types/three/src/renderers/webgl/WebGLClipping.d.ts index c67d53f6b..167a16b35 100644 --- a/types/three/src/renderers/webgl/WebGLClipping.d.ts +++ b/types/three/src/renderers/webgl/WebGLClipping.d.ts @@ -1,7 +1,7 @@ -import { Camera } from '../../cameras/Camera.js'; -import { Material } from '../../materials/Material.js'; -import { Plane } from '../../math/Plane.js'; -import { WebGLProperties } from './WebGLProperties.js'; +import { Camera } from "../../cameras/Camera.js"; +import { Material } from "../../materials/Material.js"; +import { Plane } from "../../math/Plane.js"; +import { WebGLProperties } from "./WebGLProperties.js"; export class WebGLClipping { constructor(properties: WebGLProperties); diff --git a/types/three/src/renderers/webgl/WebGLCubeMaps.d.ts b/types/three/src/renderers/webgl/WebGLCubeMaps.d.ts index 4aa019025..32cda3f61 100644 --- a/types/three/src/renderers/webgl/WebGLCubeMaps.d.ts +++ b/types/three/src/renderers/webgl/WebGLCubeMaps.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer } from '../WebGLRenderer.js'; +import { WebGLRenderer } from "../WebGLRenderer.js"; export class WebGLCubeMaps { constructor(renderer: WebGLRenderer); diff --git a/types/three/src/renderers/webgl/WebGLCubeUVMaps.d.ts b/types/three/src/renderers/webgl/WebGLCubeUVMaps.d.ts index de80ade3f..e5bf8e055 100644 --- a/types/three/src/renderers/webgl/WebGLCubeUVMaps.d.ts +++ b/types/three/src/renderers/webgl/WebGLCubeUVMaps.d.ts @@ -1,4 +1,4 @@ -import { WebGLRenderer, Texture } from '../../Three.js'; +import { Texture, WebGLRenderer } from "../../Three.js"; export class WebGLCubeUVMaps { constructor(renderer: WebGLRenderer); diff --git a/types/three/src/renderers/webgl/WebGLExtensions.d.ts b/types/three/src/renderers/webgl/WebGLExtensions.d.ts index 4e0b52934..746c2daf3 100644 --- a/types/three/src/renderers/webgl/WebGLExtensions.d.ts +++ b/types/three/src/renderers/webgl/WebGLExtensions.d.ts @@ -1,4 +1,4 @@ -import { WebGLCapabilities } from './WebGLCapabilities.js'; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; export class WebGLExtensions { constructor(gl: WebGLRenderingContext); diff --git a/types/three/src/renderers/webgl/WebGLGeometries.d.ts b/types/three/src/renderers/webgl/WebGLGeometries.d.ts index 4d03bc20c..422249f37 100644 --- a/types/three/src/renderers/webgl/WebGLGeometries.d.ts +++ b/types/three/src/renderers/webgl/WebGLGeometries.d.ts @@ -1,8 +1,8 @@ -import { WebGLAttributes } from './WebGLAttributes.js'; -import { WebGLInfo } from './WebGLInfo.js'; -import { BufferAttribute } from '../../core/BufferAttribute.js'; -import { BufferGeometry } from '../../core/BufferGeometry.js'; -import { Object3D } from '../../core/Object3D.js'; +import { BufferAttribute } from "../../core/BufferAttribute.js"; +import { BufferGeometry } from "../../core/BufferGeometry.js"; +import { Object3D } from "../../core/Object3D.js"; +import { WebGLAttributes } from "./WebGLAttributes.js"; +import { WebGLInfo } from "./WebGLInfo.js"; export class WebGLGeometries { constructor(gl: WebGLRenderingContext, attributes: WebGLAttributes, info: WebGLInfo); diff --git a/types/three/src/renderers/webgl/WebGLInfo.d.ts b/types/three/src/renderers/webgl/WebGLInfo.d.ts index 8be5f1324..952ff6f9f 100644 --- a/types/three/src/renderers/webgl/WebGLInfo.d.ts +++ b/types/three/src/renderers/webgl/WebGLInfo.d.ts @@ -1,4 +1,4 @@ -import { WebGLProgram } from './WebGLProgram.js'; +import { WebGLProgram } from "./WebGLProgram.js"; /** * An object with a series of statistical information about the graphics board memory and the rendering process. diff --git a/types/three/src/renderers/webgl/WebGLLights.d.ts b/types/three/src/renderers/webgl/WebGLLights.d.ts index 309ba7f6c..2ee46b3f8 100644 --- a/types/three/src/renderers/webgl/WebGLLights.d.ts +++ b/types/three/src/renderers/webgl/WebGLLights.d.ts @@ -1,5 +1,5 @@ -import { WebGLExtensions } from './WebGLExtensions.js'; -import { WebGLCapabilities } from './WebGLCapabilities.js'; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLExtensions } from "./WebGLExtensions.js"; export interface WebGLLightsState { version: number; diff --git a/types/three/src/renderers/webgl/WebGLProgram.d.ts b/types/three/src/renderers/webgl/WebGLProgram.d.ts index 19de1171c..b3e5d6fd8 100644 --- a/types/three/src/renderers/webgl/WebGLProgram.d.ts +++ b/types/three/src/renderers/webgl/WebGLProgram.d.ts @@ -1,5 +1,5 @@ -import { WebGLRenderer } from '../WebGLRenderer.js'; -import { WebGLUniforms } from './WebGLUniforms.js'; +import { WebGLRenderer } from "../WebGLRenderer.js"; +import { WebGLUniforms } from "./WebGLUniforms.js"; export class WebGLProgram { constructor(renderer: WebGLRenderer, cacheKey: string, parameters: object); diff --git a/types/three/src/renderers/webgl/WebGLPrograms.d.ts b/types/three/src/renderers/webgl/WebGLPrograms.d.ts index 1d221df75..59f5ed963 100644 --- a/types/three/src/renderers/webgl/WebGLPrograms.d.ts +++ b/types/three/src/renderers/webgl/WebGLPrograms.d.ts @@ -1,16 +1,3 @@ -import { Material } from '../../materials/Material.js'; -import { Object3D } from '../../core/Object3D.js'; -import { Light } from '../../lights/Light.js'; -import { Scene } from '../../scenes/Scene.js'; -import { IUniform } from '../shaders/UniformsLib.js'; -import { WebGLRenderer } from '../WebGLRenderer.js'; -import { WebGLBindingStates } from './WebGLBindingStates.js'; -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { WebGLClipping } from './WebGLClipping.js'; -import { WebGLCubeMaps } from './WebGLCubeMaps.js'; -import { WebGLExtensions } from './WebGLExtensions.js'; -import { WebGLLightsState } from './WebGLLights.js'; -import { WebGLProgram } from './WebGLProgram.js'; import { ColorSpace, Combine, @@ -19,7 +6,20 @@ import { Mapping, ShadowMapType, ToneMapping, -} from '../../constants.js'; +} from "../../constants.js"; +import { Object3D } from "../../core/Object3D.js"; +import { Light } from "../../lights/Light.js"; +import { Material } from "../../materials/Material.js"; +import { Scene } from "../../scenes/Scene.js"; +import { IUniform } from "../shaders/UniformsLib.js"; +import { WebGLRenderer } from "../WebGLRenderer.js"; +import { WebGLBindingStates } from "./WebGLBindingStates.js"; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLClipping } from "./WebGLClipping.js"; +import { WebGLCubeMaps } from "./WebGLCubeMaps.js"; +import { WebGLExtensions } from "./WebGLExtensions.js"; +import { WebGLLightsState } from "./WebGLLights.js"; +import { WebGLProgram } from "./WebGLProgram.js"; export interface WebGLProgramParameters { isWebGL2: boolean; @@ -38,7 +38,7 @@ export interface WebGLProgramParameters { isRawShaderMaterial: boolean; glslVersion: GLSLVersion | null | undefined; - precision: 'lowp' | 'mediump' | 'highp'; + precision: "lowp" | "mediump" | "highp"; batching: boolean; instancing: boolean; diff --git a/types/three/src/renderers/webgl/WebGLRenderLists.d.ts b/types/three/src/renderers/webgl/WebGLRenderLists.d.ts index 78adeb82e..0f16a4287 100644 --- a/types/three/src/renderers/webgl/WebGLRenderLists.d.ts +++ b/types/three/src/renderers/webgl/WebGLRenderLists.d.ts @@ -1,11 +1,11 @@ -import { Object3D } from '../../core/Object3D.js'; -import { Material } from '../../materials/Material.js'; -import { WebGLProgram } from './WebGLProgram.js'; -import { Group } from '../../objects/Group.js'; -import { Scene } from '../../scenes/Scene.js'; -import { Camera } from '../../cameras/Camera.js'; -import { BufferGeometry } from '../../core/BufferGeometry.js'; -import { WebGLProperties } from './WebGLProperties.js'; +import { Camera } from "../../cameras/Camera.js"; +import { BufferGeometry } from "../../core/BufferGeometry.js"; +import { Object3D } from "../../core/Object3D.js"; +import { Material } from "../../materials/Material.js"; +import { Group } from "../../objects/Group.js"; +import { Scene } from "../../scenes/Scene.js"; +import { WebGLProgram } from "./WebGLProgram.js"; +import { WebGLProperties } from "./WebGLProperties.js"; export interface RenderItem { id: number; diff --git a/types/three/src/renderers/webgl/WebGLShadowMap.d.ts b/types/three/src/renderers/webgl/WebGLShadowMap.d.ts index dc634dc84..8368fdee7 100644 --- a/types/three/src/renderers/webgl/WebGLShadowMap.d.ts +++ b/types/three/src/renderers/webgl/WebGLShadowMap.d.ts @@ -1,10 +1,10 @@ -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { Scene } from '../../scenes/Scene.js'; -import { Camera } from '../../cameras/Camera.js'; -import { WebGLRenderer } from '../WebGLRenderer.js'; -import { ShadowMapType } from '../../constants.js'; -import { WebGLObjects } from './WebGLObjects.js'; -import { Light } from '../../lights/Light.js'; +import { Camera } from "../../cameras/Camera.js"; +import { ShadowMapType } from "../../constants.js"; +import { Light } from "../../lights/Light.js"; +import { Scene } from "../../scenes/Scene.js"; +import { WebGLRenderer } from "../WebGLRenderer.js"; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLObjects } from "./WebGLObjects.js"; export class WebGLShadowMap { constructor(_renderer: WebGLRenderer, _objects: WebGLObjects, _capabilities: WebGLCapabilities); diff --git a/types/three/src/renderers/webgl/WebGLState.d.ts b/types/three/src/renderers/webgl/WebGLState.d.ts index ee6d22abb..b7af92bc3 100644 --- a/types/three/src/renderers/webgl/WebGLState.d.ts +++ b/types/three/src/renderers/webgl/WebGLState.d.ts @@ -1,16 +1,16 @@ import { - CullFace, Blending, + BlendingDstFactor, BlendingEquation, BlendingSrcFactor, - BlendingDstFactor, + CullFace, DepthModes, -} from '../../constants.js'; -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { WebGLExtensions } from './WebGLExtensions.js'; -import { Material } from '../../materials/Material.js'; -import { Vector4 } from '../../math/Vector4.js'; -import { WebGLRenderTarget } from '../WebGLRenderTarget.js'; +} from "../../constants.js"; +import { Material } from "../../materials/Material.js"; +import { Vector4 } from "../../math/Vector4.js"; +import { WebGLRenderTarget } from "../WebGLRenderTarget.js"; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLExtensions } from "./WebGLExtensions.js"; export class WebGLColorBuffer { constructor(); diff --git a/types/three/src/renderers/webgl/WebGLTextures.d.ts b/types/three/src/renderers/webgl/WebGLTextures.d.ts index ca566d1d7..031866dee 100644 --- a/types/three/src/renderers/webgl/WebGLTextures.d.ts +++ b/types/three/src/renderers/webgl/WebGLTextures.d.ts @@ -1,9 +1,9 @@ -import { WebGLExtensions } from './WebGLExtensions.js'; -import { WebGLState } from './WebGLState.js'; -import { WebGLProperties } from './WebGLProperties.js'; -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { WebGLUtils } from './WebGLUtils.js'; -import { WebGLInfo } from './WebGLInfo.js'; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLExtensions } from "./WebGLExtensions.js"; +import { WebGLInfo } from "./WebGLInfo.js"; +import { WebGLProperties } from "./WebGLProperties.js"; +import { WebGLState } from "./WebGLState.js"; +import { WebGLUtils } from "./WebGLUtils.js"; export class WebGLTextures { constructor( diff --git a/types/three/src/renderers/webgl/WebGLUniforms.d.ts b/types/three/src/renderers/webgl/WebGLUniforms.d.ts index 967a413f7..925b5e4bf 100644 --- a/types/three/src/renderers/webgl/WebGLUniforms.d.ts +++ b/types/three/src/renderers/webgl/WebGLUniforms.d.ts @@ -1,5 +1,5 @@ -import { WebGLProgram } from './WebGLProgram.js'; -import { WebGLTextures } from './WebGLTextures.js'; +import { WebGLProgram } from "./WebGLProgram.js"; +import { WebGLTextures } from "./WebGLTextures.js"; export class WebGLUniforms { constructor(gl: WebGLRenderingContext, program: WebGLProgram); diff --git a/types/three/src/renderers/webgl/WebGLUniformsGroups.d.ts b/types/three/src/renderers/webgl/WebGLUniformsGroups.d.ts index 1dbfec320..a5e052c1f 100644 --- a/types/three/src/renderers/webgl/WebGLUniformsGroups.d.ts +++ b/types/three/src/renderers/webgl/WebGLUniformsGroups.d.ts @@ -1,9 +1,9 @@ -import { UniformsGroup } from '../../core/UniformsGroup.js'; +import { UniformsGroup } from "../../core/UniformsGroup.js"; -import { WebGLCapabilities } from './WebGLCapabilities.js'; -import { WebGLInfo } from './WebGLInfo.js'; -import { WebGLProgram } from './WebGLProgram.js'; -import { WebGLState } from './WebGLState.js'; +import { WebGLCapabilities } from "./WebGLCapabilities.js"; +import { WebGLInfo } from "./WebGLInfo.js"; +import { WebGLProgram } from "./WebGLProgram.js"; +import { WebGLState } from "./WebGLState.js"; export function WebGLUniformsGroups( gl: WebGLRenderingContext, diff --git a/types/three/src/renderers/webgl/WebGLUtils.d.ts b/types/three/src/renderers/webgl/WebGLUtils.d.ts index a24f3e664..f3b862d5f 100644 --- a/types/three/src/renderers/webgl/WebGLUtils.d.ts +++ b/types/three/src/renderers/webgl/WebGLUtils.d.ts @@ -1,4 +1,4 @@ -import { CompressedPixelFormat, PixelFormat, TextureEncoding, TextureDataType } from '../../constants.js'; +import { CompressedPixelFormat, PixelFormat, TextureDataType, TextureEncoding } from "../../constants.js"; export class WebGLUtils { constructor(gl: WebGLRenderingContext | WebGL2RenderingContext, extensions: any, capabilities: any); diff --git a/types/three/src/renderers/webxr/WebXRController.d.ts b/types/three/src/renderers/webxr/WebXRController.d.ts index 624ca1a00..956a036b4 100644 --- a/types/three/src/renderers/webxr/WebXRController.d.ts +++ b/types/three/src/renderers/webxr/WebXRController.d.ts @@ -1,8 +1,8 @@ -import { Group } from '../../objects/Group.js'; -import { Vector3 } from '../../math/Vector3.js'; -import { Object3DEventMap } from '../../core/Object3D.js'; +import { Object3DEventMap } from "../../core/Object3D.js"; +import { Vector3 } from "../../math/Vector3.js"; +import { Group } from "../../objects/Group.js"; -export type XRControllerEventType = XRSessionEventType | XRInputSourceEventType | 'disconnected' | 'connected'; +export type XRControllerEventType = XRSessionEventType | XRInputSourceEventType | "disconnected" | "connected"; export class XRJointSpace extends Group { readonly jointRadius: number | undefined; diff --git a/types/three/src/renderers/webxr/WebXRDepthSensing.d.ts b/types/three/src/renderers/webxr/WebXRDepthSensing.d.ts index 6da4fa1b2..a73efab94 100644 --- a/types/three/src/renderers/webxr/WebXRDepthSensing.d.ts +++ b/types/three/src/renderers/webxr/WebXRDepthSensing.d.ts @@ -1,7 +1,7 @@ -import { Texture } from '../../textures/Texture.js'; -import { Mesh } from '../../objects/Mesh.js'; -import { WebGLRenderer } from '../WebGLRenderer.js'; -import { WebXRArrayCamera } from './WebXRManager.js'; +import { Mesh } from "../../objects/Mesh.js"; +import { Texture } from "../../textures/Texture.js"; +import { WebGLRenderer } from "../WebGLRenderer.js"; +import { WebXRArrayCamera } from "./WebXRManager.js"; // FIXME Replace by XRWebGLDepthInformation when typed in @types/webxr interface XRWebGLDepthInformation { diff --git a/types/three/src/renderers/webxr/WebXRManager.d.ts b/types/three/src/renderers/webxr/WebXRManager.d.ts index 2c67233c4..f22f6fc15 100644 --- a/types/three/src/renderers/webxr/WebXRManager.d.ts +++ b/types/three/src/renderers/webxr/WebXRManager.d.ts @@ -2,15 +2,15 @@ /// -import { Vector4 } from '../../math/Vector4.js'; -import { ArrayCamera } from '../../cameras/ArrayCamera.js'; -import { PerspectiveCamera } from '../../cameras/PerspectiveCamera.js'; -import { EventDispatcher } from '../../core/EventDispatcher.js'; -import { XRTargetRaySpace, XRGripSpace, XRHandSpace } from './WebXRController.js'; -import { WebGLRenderer } from '../WebGLRenderer.js'; +import { ArrayCamera } from "../../cameras/ArrayCamera.js"; +import { PerspectiveCamera } from "../../cameras/PerspectiveCamera.js"; +import { EventDispatcher } from "../../core/EventDispatcher.js"; +import { Vector4 } from "../../math/Vector4.js"; +import { WebGLRenderer } from "../WebGLRenderer.js"; +import { XRGripSpace, XRHandSpace, XRTargetRaySpace } from "./WebXRController.js"; export type WebXRCamera = PerspectiveCamera & { viewport: Vector4 }; -export type WebXRArrayCamera = Omit & { cameras: [WebXRCamera, WebXRCamera] }; +export type WebXRArrayCamera = Omit & { cameras: [WebXRCamera, WebXRCamera] }; export interface WebXRManagerEventMap { sessionstart: {}; diff --git a/types/three/src/scenes/Fog.d.ts b/types/three/src/scenes/Fog.d.ts index 687c1d1f5..857607987 100644 --- a/types/three/src/scenes/Fog.d.ts +++ b/types/three/src/scenes/Fog.d.ts @@ -1,4 +1,4 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; export interface FogBase { /** diff --git a/types/three/src/scenes/FogExp2.d.ts b/types/three/src/scenes/FogExp2.d.ts index a793575a8..df60aad31 100644 --- a/types/three/src/scenes/FogExp2.d.ts +++ b/types/three/src/scenes/FogExp2.d.ts @@ -1,5 +1,5 @@ -import { Color, ColorRepresentation } from '../math/Color.js'; -import { FogBase } from './Fog.js'; +import { Color, ColorRepresentation } from "../math/Color.js"; +import { FogBase } from "./Fog.js"; /** * 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. diff --git a/types/three/src/scenes/Scene.d.ts b/types/three/src/scenes/Scene.d.ts index beef94050..1c12d1324 100644 --- a/types/three/src/scenes/Scene.d.ts +++ b/types/three/src/scenes/Scene.d.ts @@ -1,9 +1,9 @@ -import { FogBase } from './Fog.js'; -import { Material } from '../materials/Material.js'; -import { Object3D } from '../core/Object3D.js'; -import { Color } from '../math/Color.js'; -import { Texture } from '../textures/Texture.js'; -import { CubeTexture } from '../Three.js'; +import { Object3D } from "../core/Object3D.js"; +import { Material } from "../materials/Material.js"; +import { Color } from "../math/Color.js"; +import { Texture } from "../textures/Texture.js"; +import { CubeTexture } from "../Three.js"; +import { FogBase } from "./Fog.js"; /** * Scenes allow you to set up what and where is to be rendered by three.js @@ -30,7 +30,7 @@ export class Scene extends Object3D { /** * @defaultValue `Scene` */ - type: 'Scene'; + type: "Scene"; /** * A {@link Fog | fog} instance defining the type of fog that affects everything rendered in the scene. diff --git a/types/three/src/textures/CanvasTexture.d.ts b/types/three/src/textures/CanvasTexture.d.ts index c900c5022..6445338fa 100644 --- a/types/three/src/textures/CanvasTexture.d.ts +++ b/types/three/src/textures/CanvasTexture.d.ts @@ -1,12 +1,12 @@ -import { OffscreenCanvas, Texture } from './Texture.js'; import { + MagnificationTextureFilter, Mapping, - Wrapping, + MinificationTextureFilter, PixelFormat, TextureDataType, - MagnificationTextureFilter, - MinificationTextureFilter, -} from '../constants.js'; + Wrapping, +} from "../constants.js"; +import { OffscreenCanvas, Texture } from "./Texture.js"; /** * Creates a texture from a {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas | canvas element}. diff --git a/types/three/src/textures/CompressedArrayTexture.d.ts b/types/three/src/textures/CompressedArrayTexture.d.ts index 8eb245569..c179764c7 100644 --- a/types/three/src/textures/CompressedArrayTexture.d.ts +++ b/types/three/src/textures/CompressedArrayTexture.d.ts @@ -1,5 +1,5 @@ -import { CompressedPixelFormat, TextureDataType, Wrapping } from '../constants.js'; -import { CompressedTexture } from './CompressedTexture.js'; +import { CompressedPixelFormat, TextureDataType, Wrapping } from "../constants.js"; +import { CompressedTexture } from "./CompressedTexture.js"; /** * Creates an texture 2D array based on data in compressed form, for example from a diff --git a/types/three/src/textures/CompressedCubeTexture.d.ts b/types/three/src/textures/CompressedCubeTexture.d.ts index 50ba25671..9c72145a0 100644 --- a/types/three/src/textures/CompressedCubeTexture.d.ts +++ b/types/three/src/textures/CompressedCubeTexture.d.ts @@ -1,5 +1,5 @@ -import { CompressedTexture } from './CompressedTexture.js'; -import { CompressedPixelFormat, TextureDataType } from '../constants.js'; +import { CompressedPixelFormat, TextureDataType } from "../constants.js"; +import { CompressedTexture } from "./CompressedTexture.js"; export class CompressedCubeTexture extends CompressedTexture { readonly isCompressedCubeTexture: true; diff --git a/types/three/src/textures/CompressedTexture.d.ts b/types/three/src/textures/CompressedTexture.d.ts index 9ea06418c..5d3bd0026 100644 --- a/types/three/src/textures/CompressedTexture.d.ts +++ b/types/three/src/textures/CompressedTexture.d.ts @@ -1,13 +1,13 @@ -import { Texture } from './Texture.js'; import { - Mapping, - Wrapping, + ColorSpace, CompressedPixelFormat, - TextureDataType, MagnificationTextureFilter, + Mapping, MinificationTextureFilter, - ColorSpace, -} from '../constants.js'; + TextureDataType, + Wrapping, +} from "../constants.js"; +import { Texture } from "./Texture.js"; /** * Creates a texture based on data in compressed form, for example from a {@link https://en.wikipedia.org/wiki/DirectDraw_Surface | DDS} file. diff --git a/types/three/src/textures/CubeTexture.d.ts b/types/three/src/textures/CubeTexture.d.ts index 7fafb699e..1a4def7dd 100644 --- a/types/three/src/textures/CubeTexture.d.ts +++ b/types/three/src/textures/CubeTexture.d.ts @@ -1,13 +1,13 @@ -import { Texture } from './Texture.js'; import { - Wrapping, - PixelFormat, - TextureDataType, + ColorSpace, + CubeTextureMapping, MagnificationTextureFilter, MinificationTextureFilter, - CubeTextureMapping, - ColorSpace, -} from '../constants.js'; + PixelFormat, + TextureDataType, + Wrapping, +} from "../constants.js"; +import { Texture } from "./Texture.js"; /** * Creates a cube texture made up of six images. diff --git a/types/three/src/textures/Data3DTexture.d.ts b/types/three/src/textures/Data3DTexture.d.ts index 7106d3c38..2ae4ecef9 100644 --- a/types/three/src/textures/Data3DTexture.d.ts +++ b/types/three/src/textures/Data3DTexture.d.ts @@ -1,6 +1,6 @@ -import { Texture } from './Texture.js'; -import { MagnificationTextureFilter, MinificationTextureFilter, Wrapping } from '../constants.js'; -import { Texture3DImageData } from './types.js'; +import { MagnificationTextureFilter, MinificationTextureFilter, Wrapping } from "../constants.js"; +import { Texture } from "./Texture.js"; +import { Texture3DImageData } from "./types.js"; /** * Creates a three-dimensional texture from raw data, with parameters to divide it into width, height, and depth diff --git a/types/three/src/textures/DataArrayTexture.d.ts b/types/three/src/textures/DataArrayTexture.d.ts index 0a46f6c3e..ee5c43217 100644 --- a/types/three/src/textures/DataArrayTexture.d.ts +++ b/types/three/src/textures/DataArrayTexture.d.ts @@ -1,6 +1,6 @@ -import { Texture } from './Texture.js'; -import { MagnificationTextureFilter, MinificationTextureFilter } from '../constants.js'; -import { Texture3DImageData } from './types.js'; +import { MagnificationTextureFilter, MinificationTextureFilter } from "../constants.js"; +import { Texture } from "./Texture.js"; +import { Texture3DImageData } from "./types.js"; /** * Creates an array of textures directly from raw data, width and height and depth diff --git a/types/three/src/textures/DataTexture.d.ts b/types/three/src/textures/DataTexture.d.ts index 76fc7f5b9..e679414cf 100644 --- a/types/three/src/textures/DataTexture.d.ts +++ b/types/three/src/textures/DataTexture.d.ts @@ -1,14 +1,14 @@ -import { Texture } from './Texture.js'; import { + ColorSpace, + MagnificationTextureFilter, Mapping, - Wrapping, + MinificationTextureFilter, PixelFormat, TextureDataType, - MagnificationTextureFilter, - MinificationTextureFilter, - ColorSpace, -} from '../constants.js'; -import { TextureImageData } from './types.js'; + Wrapping, +} from "../constants.js"; +import { Texture } from "./Texture.js"; +import { TextureImageData } from "./types.js"; /** * Creates a texture directly from raw data, width and height. diff --git a/types/three/src/textures/DepthTexture.d.ts b/types/three/src/textures/DepthTexture.d.ts index 04f045c26..8f954a69b 100644 --- a/types/three/src/textures/DepthTexture.d.ts +++ b/types/three/src/textures/DepthTexture.d.ts @@ -1,13 +1,13 @@ -import { Texture } from './Texture.js'; import { - Mapping, - Wrapping, - TextureDataType, DepthTexturePixelFormat, MagnificationTextureFilter, + Mapping, MinificationTextureFilter, TextureComparisonFunction, -} from '../constants.js'; + TextureDataType, + Wrapping, +} from "../constants.js"; +import { Texture } from "./Texture.js"; /** * This class can be used to automatically save the depth information of a rendering into a texture diff --git a/types/three/src/textures/FramebufferTexture.d.ts b/types/three/src/textures/FramebufferTexture.d.ts index 9afb68f8d..4a7677ca0 100644 --- a/types/three/src/textures/FramebufferTexture.d.ts +++ b/types/three/src/textures/FramebufferTexture.d.ts @@ -1,5 +1,5 @@ -import { Texture } from './Texture.js'; -import { MagnificationTextureFilter, MinificationTextureFilter } from '../constants.js'; +import { MagnificationTextureFilter, MinificationTextureFilter } from "../constants.js"; +import { Texture } from "./Texture.js"; /** * This class can only be used in combination with {@link THREE.WebGLRenderer.copyFramebufferToTexture | WebGLRenderer.copyFramebufferToTexture()}. diff --git a/types/three/src/textures/Texture.d.ts b/types/three/src/textures/Texture.d.ts index 3db15f285..883d99352 100644 --- a/types/three/src/textures/Texture.d.ts +++ b/types/three/src/textures/Texture.d.ts @@ -1,20 +1,20 @@ -import { Vector2 } from '../math/Vector2.js'; -import { Matrix3 } from '../math/Matrix3.js'; -import { Source } from './Source.js'; -import { EventDispatcher } from '../core/EventDispatcher.js'; import { + AnyMapping, + AnyPixelFormat, + ColorSpace, + MagnificationTextureFilter, Mapping, - Wrapping, + MinificationTextureFilter, PixelFormat, PixelFormatGPU, TextureDataType, TextureEncoding, - MagnificationTextureFilter, - MinificationTextureFilter, - AnyPixelFormat, - AnyMapping, - ColorSpace, -} from '../constants.js'; + Wrapping, +} from "../constants.js"; +import { EventDispatcher } from "../core/EventDispatcher.js"; +import { Matrix3 } from "../math/Matrix3.js"; +import { Vector2 } from "../math/Vector2.js"; +import { Source } from "./Source.js"; /** Shim for OffscreenCanvas. */ // eslint-disable-next-line @typescript-eslint/no-empty-interface diff --git a/types/three/src/textures/VideoTexture.d.ts b/types/three/src/textures/VideoTexture.d.ts index 1292ae84e..31dc5d456 100644 --- a/types/three/src/textures/VideoTexture.d.ts +++ b/types/three/src/textures/VideoTexture.d.ts @@ -1,12 +1,12 @@ -import { Texture } from './Texture.js'; import { + MagnificationTextureFilter, Mapping, - Wrapping, + MinificationTextureFilter, PixelFormat, TextureDataType, - MagnificationTextureFilter, - MinificationTextureFilter, -} from '../constants.js'; + Wrapping, +} from "../constants.js"; +import { Texture } from "./Texture.js"; /** * Creates a texture for use with a video. diff --git a/types/three/test/integration/geometry-buffer.ts b/types/three/test/integration/geometry-buffer.ts index 197891c50..a24d0a8d3 100644 --- a/types/three/test/integration/geometry-buffer.ts +++ b/types/three/test/integration/geometry-buffer.ts @@ -1,4 +1,4 @@ -import * as THREE from 'three'; +import * as THREE from "three"; const camera = new THREE.PerspectiveCamera(70, window.innerWidth / window.innerHeight, 1, 1000); const scene = new THREE.Scene(); @@ -18,20 +18,20 @@ function init() { ...[1.0, -1.0, 1.0], // ...[0.0, 1.0, 1.0], // ]); - geometry.setAttribute('position', new THREE.BufferAttribute(verticles, 3)); - const posAtt = geometry.getAttribute('position'); + geometry.setAttribute("position", new THREE.BufferAttribute(verticles, 3)); + const posAtt = geometry.getAttribute("position"); - if (posAtt.name === 'position') { - geometry.deleteAttribute('position'); + if (posAtt.name === "position") { + geometry.deleteAttribute("position"); } - geometry.setAttribute('position', new THREE.BufferAttribute(verticles, 3)); + geometry.setAttribute("position", new THREE.BufferAttribute(verticles, 3)); - geometry.setAttribute('customAttribute', new THREE.BufferAttribute(new Float32Array([0]), 1)); - const customAtt = geometry.getAttribute('customAttribute'); + geometry.setAttribute("customAttribute", new THREE.BufferAttribute(new Float32Array([0]), 1)); + const customAtt = geometry.getAttribute("customAttribute"); - if (customAtt.name === 'customAttribute') { - geometry.deleteAttribute('customAttribute'); + if (customAtt.name === "customAttribute") { + geometry.deleteAttribute("customAttribute"); } const material = new THREE.MeshBasicMaterial({ color: 0xffffff, side: THREE.DoubleSide }); @@ -45,7 +45,7 @@ function init() { // - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { diff --git a/types/three/test/integration/instanced-mesh.ts b/types/three/test/integration/instanced-mesh.ts index f90eaea9b..8d9511c40 100644 --- a/types/three/test/integration/instanced-mesh.ts +++ b/types/three/test/integration/instanced-mesh.ts @@ -9,7 +9,7 @@ import { Scene, SphereGeometry, WebGLRenderer, -} from 'three'; +} from "three"; const { randFloatSpread } = MathUtils; diff --git a/types/three/test/integration/lights-pointlights2.ts b/types/three/test/integration/lights-pointlights2.ts index e00dc6702..29f4174f1 100644 --- a/types/three/test/integration/lights-pointlights2.ts +++ b/types/three/test/integration/lights-pointlights2.ts @@ -1,6 +1,6 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { TrackballControls } from 'three/examples/jsm/controls/TrackballControls'; +import { TrackballControls } from "three/examples/jsm/controls/TrackballControls"; const camera = new THREE.PerspectiveCamera(50, window.innerWidth / window.innerHeight, 1, 300); const scene = new THREE.Scene(); @@ -19,7 +19,7 @@ init(); animate(); function init() { - const container = document.getElementById('container'); + const container = document.getElementById("container"); // CAMERA @@ -35,7 +35,7 @@ function init() { const textureLoader = new THREE.TextureLoader(); - const texture = textureLoader.load('textures/disturb.jpg'); + const texture = textureLoader.load("textures/disturb.jpg"); texture.repeat.set(20, 10); texture.wrapS = texture.wrapT = THREE.RepeatWrapping; texture.encoding = THREE.sRGBEncoding; @@ -133,11 +133,11 @@ function init() { controls.dynamicDampingFactor = 0.15; - controls.keys = ['KeyA', 'KeyS', 'KeyD']; + controls.keys = ["KeyA", "KeyS", "KeyD"]; // - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { diff --git a/types/three/test/integration/loaders-gltfloader-plugin.ts b/types/three/test/integration/loaders-gltfloader-plugin.ts index c92788825..79c81c27a 100644 --- a/types/three/test/integration/loaders-gltfloader-plugin.ts +++ b/types/three/test/integration/loaders-gltfloader-plugin.ts @@ -1,13 +1,13 @@ // An example that uses plugin system in GLTFLoader. -import * as THREE from 'three'; -import { GLTF, GLTFLoader, GLTFLoaderPlugin, GLTFParser } from 'three/examples/jsm/loaders/GLTFLoader'; +import * as THREE from "three"; +import { GLTF, GLTFLoader, GLTFLoaderPlugin, GLTFParser } from "three/examples/jsm/loaders/GLTFLoader"; // Assuming we are using duck.gltf // https://github.com/KhronosGroup/glTF-Sample-Models/blob/master/2.0/Duck/glTF-Binary/Duck.glb -const modelUrl = 'models/duck.gltf'; +const modelUrl = "models/duck.gltf"; -const container = document.createElement('div'); +const container = document.createElement("div"); const renderer = new THREE.WebGLRenderer({ antialias: true }); const camera = new THREE.PerspectiveCamera(50, 2, 0.1, 10); @@ -18,7 +18,7 @@ init().then(() => { }); class ExamplePlugin implements GLTFLoaderPlugin { - name: 'example-plugin'; + name: "example-plugin"; parser: GLTFParser; @@ -27,44 +27,44 @@ class ExamplePlugin implements GLTFLoaderPlugin { } async beforeRoot(): Promise { - console.info('beforeRoot'); + console.info("beforeRoot"); } async afterRoot(result: GLTF): Promise { - console.info('afterRoot', result); + console.info("afterRoot", result); } async loadMesh(meshIndex: number): Promise { - console.info('loadMesh', meshIndex); + console.info("loadMesh", meshIndex); return this.parser.loadMesh(meshIndex); } async loadBufferView(bufferViewIndex: number): Promise { - console.info('loadBufferView', bufferViewIndex); + console.info("loadBufferView", bufferViewIndex); return this.parser.loadBufferView(bufferViewIndex); } async loadMaterial(materialIndex: number): Promise { - console.info('loadMaterial', materialIndex); + console.info("loadMaterial", materialIndex); return this.parser.loadMaterial(materialIndex); } async loadTexture(textureIndex: number): Promise { - console.info('loadTexture', textureIndex); + console.info("loadTexture", textureIndex); return this.parser.loadTexture(textureIndex); } getMaterialType(materialIndex: number): typeof THREE.Material { - console.info('getMaterialType', materialIndex); + console.info("getMaterialType", materialIndex); return THREE.MeshStandardMaterial; } async extendMaterialParams(materialIndex: number, materialParams: { [key: string]: any }): Promise { - console.info('extendMaterialParams', materialIndex, materialParams); + console.info("extendMaterialParams", materialIndex, materialParams); } async createNodeAttachment(nodeIndex: number): Promise { - console.info('createNodeAttachment', nodeIndex); + console.info("createNodeAttachment", nodeIndex); return new THREE.Object3D(); } } diff --git a/types/three/test/integration/materials-meshgouraud.ts b/types/three/test/integration/materials-meshgouraud.ts index 1509ba100..141016ad1 100644 --- a/types/three/test/integration/materials-meshgouraud.ts +++ b/types/three/test/integration/materials-meshgouraud.ts @@ -1,5 +1,5 @@ -import * as THREE from 'three'; -import { MeshGouraudMaterial } from 'three/examples/jsm/materials/MeshGouraudMaterial'; +import * as THREE from "three"; +import { MeshGouraudMaterial } from "three/examples/jsm/materials/MeshGouraudMaterial"; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); diff --git a/types/three/test/integration/nodes-webgl.ts b/types/three/test/integration/nodes-webgl.ts index a98ac0d99..f4df42705 100644 --- a/types/three/test/integration/nodes-webgl.ts +++ b/types/three/test/integration/nodes-webgl.ts @@ -2,25 +2,25 @@ * Tests some webgl imports, and everything else that is not imported elsewhere. */ -import * as Nodes from 'three/examples/jsm/nodes/Nodes'; -import StorageBufferNode from 'three/examples/jsm/nodes/accessors/StorageBufferNode'; -import * as NodeUtils from 'three/examples/jsm/nodes/core/NodeUtils'; -import SlotNode from 'three/examples/jsm/renderers/webgl/nodes/SlotNode'; -import { WebGLNodeBuilder } from 'three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder'; -import { nodeFrame } from 'three/examples/jsm/renderers/webgl/nodes/WebGLNodes'; -import { HemisphereLight, Object3D, PointLight, WebGLRenderer } from 'three/src/Three'; +import StorageBufferNode from "three/examples/jsm/nodes/accessors/StorageBufferNode"; +import * as NodeUtils from "three/examples/jsm/nodes/core/NodeUtils"; +import * as Nodes from "three/examples/jsm/nodes/Nodes"; +import SlotNode from "three/examples/jsm/renderers/webgl/nodes/SlotNode"; +import { WebGLNodeBuilder } from "three/examples/jsm/renderers/webgl/nodes/WebGLNodeBuilder"; +import { nodeFrame } from "three/examples/jsm/renderers/webgl/nodes/WebGLNodes"; +import { HemisphereLight, Object3D, PointLight, WebGLRenderer } from "three/src/Three"; nodeFrame.update(); new WebGLNodeBuilder(new Object3D(), new WebGLRenderer(), { uniforms: [], vertexShader: [], fragmentShader: [] }); -new StorageBufferNode([], 'float'); +new StorageBufferNode([], "float"); new SlotNode({ node: new Nodes.ConstNode(1), - nodeType: 'float', + nodeType: "float", }); NodeUtils.getNodeChildren(new Nodes.ConstNode(1)); NodeUtils.getValueType(1); -NodeUtils.getValueFromType('color'); +NodeUtils.getValueFromType("color"); Nodes.LightsNode.setReference(PointLight, Nodes.PointLightNode); Nodes.LightsNode.setReference(HemisphereLight, Nodes.HemisphereLightNode); diff --git a/types/three/test/integration/objects-reflector.ts b/types/three/test/integration/objects-reflector.ts index aedde49d6..8d6475c04 100644 --- a/types/three/test/integration/objects-reflector.ts +++ b/types/three/test/integration/objects-reflector.ts @@ -1,4 +1,3 @@ -import { Reflector } from 'three/examples/jsm/objects/Reflector'; import { DirectionalLight, Mesh, @@ -9,7 +8,8 @@ import { SphereGeometry, sRGBEncoding, WebGLRenderer, -} from 'three'; +} from "three"; +import { Reflector } from "three/examples/jsm/objects/Reflector"; const renderer = new WebGLRenderer(); renderer.outputEncoding = sRGBEncoding; diff --git a/types/three/test/integration/three-examples/webgl2_rendertarget_texture2darray.ts b/types/three/test/integration/three-examples/webgl2_rendertarget_texture2darray.ts index c918ebdcb..067c6ebf2 100644 --- a/types/three/test/integration/three-examples/webgl2_rendertarget_texture2darray.ts +++ b/types/three/test/integration/three-examples/webgl2_rendertarget_texture2darray.ts @@ -1,7 +1,7 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { unzipSync } from 'three/examples/jsm/libs/fflate.module'; -import WEBGL from 'three/examples/jsm/capabilities/WebGL'; +import WEBGL from "three/examples/jsm/capabilities/WebGL"; +import { unzipSync } from "three/examples/jsm/libs/fflate.module"; const vertextPostProcessingShader = /* glsl */ ` out vec2 vUv; @@ -110,7 +110,7 @@ let renderer: THREE.WebGLRenderer; init(); function init() { - const container = document.createElement('div'); + const container = document.createElement("div"); document.body.appendChild(container); camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 2000); @@ -131,15 +131,15 @@ function init() { renderer.setSize(window.innerWidth, window.innerHeight); container.appendChild(renderer.domElement); - renderer.domElement.addEventListener('mousedown', onMouseDown); + renderer.domElement.addEventListener("mousedown", onMouseDown); - window.addEventListener('resize', onWindowResize, false); + window.addEventListener("resize", onWindowResize, false); // width 256, height 256, depth 109, 8-bit, zip archived raw data - new THREE.FileLoader().setResponseType('arraybuffer').load('textures/3d/head256x256x109.zip', data => { + new THREE.FileLoader().setResponseType("arraybuffer").load("textures/3d/head256x256x109.zip", data => { const zip = unzipSync(new Uint8Array(data as ArrayBuffer)); - const array = new Uint8Array(zip['head256x256x109'].buffer); + const array = new Uint8Array(zip["head256x256x109"].buffer); const texture = new THREE.DataArrayTexture(array, DIMENSIONS.width, DIMENSIONS.height, DIMENSIONS.depth); texture.format = THREE.RedFormat; @@ -168,15 +168,15 @@ function init() { } function onMouseDown(e: MouseEvent) { - renderer.domElement.addEventListener('mouseup', onMouseUp); - renderer.domElement.addEventListener('mousemove', onMouseMove); + renderer.domElement.addEventListener("mouseup", onMouseUp); + renderer.domElement.addEventListener("mousemove", onMouseMove); App.mousePrevious.set(e.clientX, e.clientY); } function onMouseUp() { - renderer.domElement.removeEventListener('mousemove', onMouseMove); - renderer.domElement.removeEventListener('mouseup', onMouseUp); + renderer.domElement.removeEventListener("mousemove", onMouseMove); + renderer.domElement.removeEventListener("mouseup", onMouseUp); } function onMouseMove(e: MouseEvent) { @@ -200,7 +200,7 @@ function onWindowResize() { function animate() { requestAnimationFrame(animate); - let value = (mesh.material as THREE.ShaderMaterial).uniforms['depth'].value; + let value = (mesh.material as THREE.ShaderMaterial).uniforms["depth"].value; value += depthStep; @@ -211,7 +211,7 @@ function animate() { depthStep = -depthStep; } - (mesh.material as THREE.ShaderMaterial).uniforms['depth'].value = value; + (mesh.material as THREE.ShaderMaterial).uniforms["depth"].value = value; render(); } @@ -220,7 +220,7 @@ function animate() { * Renders the 2D array into the render target `renderTarget`. */ function renderToArrayTexture() { - const layer = Math.floor((mesh.material as THREE.ShaderMaterial).uniforms['depth'].value); + const layer = Math.floor((mesh.material as THREE.ShaderMaterial).uniforms["depth"].value); postProcessMaterial.uniforms.uDepth.value = layer; renderer.setRenderTarget(renderTarget, layer); renderer.render(postProcessScene, postProcessCamera); diff --git a/types/three/test/integration/three-examples/webgl_camera_array.ts b/types/three/test/integration/three-examples/webgl_camera_array.ts index ac90d2f33..57c40f250 100644 --- a/types/three/test/integration/three-examples/webgl_camera_array.ts +++ b/types/three/test/integration/three-examples/webgl_camera_array.ts @@ -1,4 +1,4 @@ -import * as THREE from 'three'; +import * as THREE from "three"; const scene = new THREE.Scene(); const renderer = new THREE.WebGLRenderer(); @@ -73,7 +73,7 @@ function init() { // - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { diff --git a/types/three/test/integration/three-examples/webgl_camera_cinematic.ts b/types/three/test/integration/three-examples/webgl_camera_cinematic.ts index fd74b4360..a8301b22d 100644 --- a/types/three/test/integration/three-examples/webgl_camera_cinematic.ts +++ b/types/three/test/integration/three-examples/webgl_camera_cinematic.ts @@ -1,7 +1,7 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { CinematicCamera } from 'three/examples/jsm/cameras/CinematicCamera'; -import { BokehShaderUniforms } from 'three/examples/jsm/shaders/BokehShader2'; +import { CinematicCamera } from "three/examples/jsm/cameras/CinematicCamera"; +import { BokehShaderUniforms } from "three/examples/jsm/shaders/BokehShader2"; const camera = new CinematicCamera(60, window.innerWidth / window.innerHeight, 1, 1000); const scene = new THREE.Scene(); @@ -44,9 +44,9 @@ function init() { renderer.setSize(window.innerWidth, window.innerHeight); document.body.appendChild(renderer.domElement); - document.addEventListener('mousemove', onDocumentMouseMove); + document.addEventListener("mousemove", onDocumentMouseMove); - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); const effectController: { [key: string]: any } = { focalLength: 15, @@ -62,17 +62,17 @@ function init() { } } - camera.postprocessing.bokeh_uniforms['znear'].value = camera.near; - camera.postprocessing.bokeh_uniforms['zfar'].value = camera.far; + camera.postprocessing.bokeh_uniforms["znear"].value = camera.near; + camera.postprocessing.bokeh_uniforms["zfar"].value = camera.far; camera.setLens(effectController.focalLength, undefined, effectController.fstop, camera.coc); - effectController['focalDepth'] = camera.postprocessing.bokeh_uniforms['focalDepth'].value; + effectController["focalDepth"] = camera.postprocessing.bokeh_uniforms["focalDepth"].value; }; // matChanger(); - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { diff --git a/types/three/test/integration/three-examples/webgl_loader_ldraw.ts b/types/three/test/integration/three-examples/webgl_loader_ldraw.ts index cb4a53aa7..5123dfaf4 100644 --- a/types/three/test/integration/three-examples/webgl_loader_ldraw.ts +++ b/types/three/test/integration/three-examples/webgl_loader_ldraw.ts @@ -1,10 +1,10 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; -import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment'; +import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; +import { RoomEnvironment } from "three/examples/jsm/environments/RoomEnvironment"; -import { LDrawLoader } from 'three/examples/jsm/loaders/LDrawLoader'; -import { LDrawUtils } from 'three/examples/jsm/utils/LDrawUtils'; +import { LDrawLoader } from "three/examples/jsm/loaders/LDrawLoader"; +import { LDrawUtils } from "three/examples/jsm/utils/LDrawUtils"; let container: HTMLDivElement; let progressBarDiv: HTMLDivElement; @@ -16,32 +16,32 @@ let controls: OrbitControls; let model: THREE.Group | null; -const ldrawPath = 'models/ldraw/officialLibrary/'; +const ldrawPath = "models/ldraw/officialLibrary/"; const modelFileList = { - Car: 'models/car.ldr_Packed.mpd', - 'Lunar Vehicle': 'models/1621-1-LunarMPVVehicle.mpd_Packed.mpd', - 'Radar Truck': 'models/889-1-RadarTruck.mpd_Packed.mpd', - Trailer: 'models/4838-1-MiniVehicles.mpd_Packed.mpd', - Bulldozer: 'models/4915-1-MiniConstruction.mpd_Packed.mpd', - Helicopter: 'models/4918-1-MiniFlyers.mpd_Packed.mpd', - Plane: 'models/5935-1-IslandHopper.mpd_Packed.mpd', - Lighthouse: 'models/30023-1-Lighthouse.ldr_Packed.mpd', - 'X-Wing mini': 'models/30051-1-X-wingFighter-Mini.mpd_Packed.mpd', - 'AT-ST mini': 'models/30054-1-AT-ST-Mini.mpd_Packed.mpd', - 'AT-AT mini': 'models/4489-1-AT-AT-Mini.mpd_Packed.mpd', - Shuttle: 'models/4494-1-Imperial Shuttle-Mini.mpd_Packed.mpd', - 'TIE Interceptor': 'models/6965-1-TIEIntercep_4h4MXk5.mpd_Packed.mpd', - 'Star fighter': 'models/6966-1-JediStarfighter-Mini.mpd_Packed.mpd', - 'X-Wing': 'models/7140-1-X-wingFighter.mpd_Packed.mpd', - 'AT-ST': 'models/10174-1-ImperialAT-ST-UCS.mpd_Packed.mpd', + Car: "models/car.ldr_Packed.mpd", + "Lunar Vehicle": "models/1621-1-LunarMPVVehicle.mpd_Packed.mpd", + "Radar Truck": "models/889-1-RadarTruck.mpd_Packed.mpd", + Trailer: "models/4838-1-MiniVehicles.mpd_Packed.mpd", + Bulldozer: "models/4915-1-MiniConstruction.mpd_Packed.mpd", + Helicopter: "models/4918-1-MiniFlyers.mpd_Packed.mpd", + Plane: "models/5935-1-IslandHopper.mpd_Packed.mpd", + Lighthouse: "models/30023-1-Lighthouse.ldr_Packed.mpd", + "X-Wing mini": "models/30051-1-X-wingFighter-Mini.mpd_Packed.mpd", + "AT-ST mini": "models/30054-1-AT-ST-Mini.mpd_Packed.mpd", + "AT-AT mini": "models/4489-1-AT-AT-Mini.mpd_Packed.mpd", + Shuttle: "models/4494-1-Imperial Shuttle-Mini.mpd_Packed.mpd", + "TIE Interceptor": "models/6965-1-TIEIntercep_4h4MXk5.mpd_Packed.mpd", + "Star fighter": "models/6966-1-JediStarfighter-Mini.mpd_Packed.mpd", + "X-Wing": "models/7140-1-X-wingFighter.mpd_Packed.mpd", + "AT-ST": "models/10174-1-ImperialAT-ST-UCS.mpd_Packed.mpd", }; init(); animate(); function init() { - container = document.createElement('div'); + container = document.createElement("div"); document.body.appendChild(container); camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 1, 10000); @@ -67,17 +67,17 @@ function init() { // - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); - progressBarDiv = document.createElement('div'); - progressBarDiv.innerText = 'Loading...'; - progressBarDiv.style.fontSize = '3em'; - progressBarDiv.style.color = '#888'; - progressBarDiv.style.display = 'block'; - progressBarDiv.style.position = 'absolute'; - progressBarDiv.style.top = '50%'; - progressBarDiv.style.width = '100%'; - progressBarDiv.style.textAlign = 'center'; + progressBarDiv = document.createElement("div"); + progressBarDiv.innerText = "Loading..."; + progressBarDiv.style.fontSize = "3em"; + progressBarDiv.style.color = "#888"; + progressBarDiv.style.display = "block"; + progressBarDiv.style.position = "absolute"; + progressBarDiv.style.top = "50%"; + progressBarDiv.style.width = "100%"; + progressBarDiv.style.textAlign = "center"; // load materials and then the model @@ -97,7 +97,7 @@ function reloadObject(resetCamera: boolean) { // only smooth when not rendering with flat colors to improve processing time const lDrawLoader = new LDrawLoader(); lDrawLoader.setPath(ldrawPath).load( - '', + "", group2 => { if (model) { scene.remove(model); @@ -156,7 +156,7 @@ function onProgress(xhr: ProgressEvent) { } function onError(error: unknown) { - const message = 'Error loading model'; + const message = "Error loading model"; progressBarDiv.innerText = message; console.log(message); console.error(error); diff --git a/types/three/test/integration/three-examples/webgl_loader_mmd.ts b/types/three/test/integration/three-examples/webgl_loader_mmd.ts index 18897d8c5..baa09ced9 100644 --- a/types/three/test/integration/three-examples/webgl_loader_mmd.ts +++ b/types/three/test/integration/three-examples/webgl_loader_mmd.ts @@ -1,11 +1,11 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; -import { OutlineEffect } from 'three/examples/jsm/effects/OutlineEffect'; -import { MMDLoader } from 'three/examples/jsm/loaders/MMDLoader'; -import { MMDAnimationHelper } from 'three/examples/jsm/animation/MMDAnimationHelper'; -import { MMDPhysicsHelper } from 'three/examples/jsm/animation/MMDPhysics'; -import { CCDIKHelper } from 'three/examples/jsm/animation/CCDIKSolver'; +import { CCDIKHelper } from "three/examples/jsm/animation/CCDIKSolver"; +import { MMDAnimationHelper } from "three/examples/jsm/animation/MMDAnimationHelper"; +import { MMDPhysicsHelper } from "three/examples/jsm/animation/MMDPhysics"; +import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; +import { OutlineEffect } from "three/examples/jsm/effects/OutlineEffect"; +import { MMDLoader } from "three/examples/jsm/loaders/MMDLoader"; let mesh: THREE.SkinnedMesh; let camera: THREE.PerspectiveCamera; @@ -19,7 +19,7 @@ let physicsHelper: MMDPhysicsHelper; const clock = new THREE.Clock(); function init() { - const container = document.createElement('div'); + const container = document.createElement("div"); document.body.appendChild(container); camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 1, 2000); @@ -52,8 +52,8 @@ function init() { // model - const modelFile = 'models/mmd/miku/miku_v2.pmd'; - const vmdFiles = ['models/mmd/vmds/wavefile_v2.vmd']; + const modelFile = "models/mmd/miku/miku_v2.pmd"; + const vmdFiles = ["models/mmd/vmds/wavefile_v2.vmd"]; helper = new MMDAnimationHelper({ afterglow: 2.0, @@ -87,7 +87,7 @@ function init() { xhr => { if (xhr.lengthComputable) { const percentComplete = (xhr.loaded / xhr.total) * 100; - console.log(Math.round(percentComplete) + '% downloaded'); + console.log(Math.round(percentComplete) + "% downloaded"); } }, ); @@ -96,7 +96,7 @@ function init() { controls.minDistance = 10; controls.maxDistance = 100; - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { diff --git a/types/three/test/integration/three-examples/webgl_materials_channels.ts b/types/three/test/integration/three-examples/webgl_materials_channels.ts index 0a9167003..cb58f7ccc 100644 --- a/types/three/test/integration/three-examples/webgl_materials_channels.ts +++ b/types/three/test/integration/three-examples/webgl_materials_channels.ts @@ -1,8 +1,8 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader'; -import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; -import { VelocityShader } from 'three/examples/jsm/shaders/VelocityShader'; +import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; +import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader"; +import { VelocityShader } from "three/examples/jsm/shaders/VelocityShader"; let camera: THREE.PerspectiveCamera | THREE.OrthographicCamera; let scene: THREE.Scene; @@ -13,9 +13,9 @@ const params: { camera: string; side: keyof typeof sides; } = { - material: 'normal', - camera: 'perspective', - side: 'double', + material: "normal", + camera: "perspective", + side: "double", }; const sides = { @@ -46,7 +46,7 @@ init(); animate(); function init() { - const container = document.createElement('div'); + const container = document.createElement("div"); document.body.appendChild(container); renderer = new THREE.WebGLRenderer(); @@ -102,9 +102,9 @@ function init() { // textures const textureLoader = new THREE.TextureLoader(); - const normalMap = textureLoader.load('models/obj/ninja/normal.png'); - const aoMap = textureLoader.load('models/obj/ninja/ao.jpg'); - const displacementMap = textureLoader.load('models/obj/ninja/displacement.jpg'); + const normalMap = textureLoader.load("models/obj/ninja/normal.png"); + const aoMap = textureLoader.load("models/obj/ninja/ao.jpg"); + const displacementMap = textureLoader.load("models/obj/ninja/displacement.jpg"); // material @@ -171,7 +171,7 @@ function init() { // const loader = new OBJLoader(); - loader.load('models/obj/ninja/ninjaHead_Low.obj', group => { + loader.load("models/obj/ninja/ninjaHead_Low.obj", group => { const geometry = (group.children[0] as THREE.Mesh).geometry; geometry.attributes.uv2 = geometry.attributes.uv; geometry.center(); @@ -184,7 +184,7 @@ function init() { // - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { @@ -217,32 +217,32 @@ function render() { let material = mesh.material; switch (params.material) { - case 'standard': + case "standard": material = materialStandard; break; - case 'depthBasic': + case "depthBasic": material = materialDepthBasic; break; - case 'depthRGBA': + case "depthRGBA": material = materialDepthRGBA; break; - case 'normal': + case "normal": material = materialNormal; break; - case 'velocity': + case "velocity": material = materialVelocity; break; } if (sides[params.side] !== material.side) { switch (params.side) { - case 'front': + case "front": material.side = THREE.FrontSide; break; - case 'back': + case "back": material.side = THREE.BackSide; break; - case 'double': + case "double": material.side = THREE.DoubleSide; break; } @@ -254,10 +254,10 @@ function render() { } switch (params.camera) { - case 'perspective': + case "perspective": camera = cameraPerspective; break; - case 'ortho': + case "ortho": camera = cameraOrtho; break; } diff --git a/types/three/test/integration/three-examples/webxr_vr_handinput_cubes.ts b/types/three/test/integration/three-examples/webxr_vr_handinput_cubes.ts index 0b26fcb90..ab83cc20c 100644 --- a/types/three/test/integration/three-examples/webxr_vr_handinput_cubes.ts +++ b/types/three/test/integration/three-examples/webxr_vr_handinput_cubes.ts @@ -1,15 +1,15 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; -import { VRButton } from 'three/examples/jsm/webxr/VRButton'; -import { XRControllerModelFactory } from 'three/examples/jsm/webxr/XRControllerModelFactory'; -import { XRHandModelFactory } from 'three/examples/jsm/webxr/XRHandModelFactory'; +import { OrbitControls } from "three/examples/jsm/controls/OrbitControls"; +import { VRButton } from "three/examples/jsm/webxr/VRButton"; +import { XRControllerModelFactory } from "three/examples/jsm/webxr/XRControllerModelFactory"; +import { XRHandModelFactory } from "three/examples/jsm/webxr/XRHandModelFactory"; interface Hand extends THREE.Group { joints: { [key: string]: any }; } -const container = document.createElement('div'); +const container = document.createElement("div"); let camera: THREE.PerspectiveCamera; let scene: THREE.Scene; let renderer: THREE.WebGLRenderer; @@ -99,7 +99,7 @@ function init() { scene.add(controller2); const controllerModelFactory = new XRControllerModelFactory(); - const handModelFactory = new XRHandModelFactory().setPath('./models/fbx/'); + const handModelFactory = new XRHandModelFactory().setPath("./models/fbx/"); // Hand 1 controllerGrip1 = renderer.xr.getControllerGrip(0); @@ -107,8 +107,8 @@ function init() { scene.add(controllerGrip1); hand1 = renderer.xr.getHand(0) as Hand; - hand1.addEventListener('pinchstart', onPinchStartLeft); - hand1.addEventListener('pinchend', () => { + hand1.addEventListener("pinchstart", onPinchStartLeft); + hand1.addEventListener("pinchend", () => { scaling.active = false; }); hand1.add(handModelFactory.createHandModel(hand1)); @@ -121,8 +121,8 @@ function init() { scene.add(controllerGrip2); hand2 = renderer.xr.getHand(1) as Hand; - hand2.addEventListener('pinchstart', onPinchStartRight); - hand2.addEventListener('pinchend', onPinchEndRight); + hand2.addEventListener("pinchstart", onPinchStartRight); + hand2.addEventListener("pinchend", onPinchEndRight); hand2.add(handModelFactory.createHandModel(hand2)); scene.add(hand2); @@ -134,7 +134,7 @@ function init() { ]); const line = new THREE.Line(geometry); - line.name = 'line'; + line.name = "line"; line.scale.z = 5; controller1.add(line.clone()); @@ -142,7 +142,7 @@ function init() { // - window.addEventListener('resize', onWindowResize); + window.addEventListener("resize", onWindowResize); } function onWindowResize() { @@ -153,21 +153,21 @@ function onWindowResize() { } const SphereRadius = 0.05; -function onPinchStartLeft(event: THREE.Event<'pinchstart', Hand>) { +function onPinchStartLeft(event: THREE.Event<"pinchstart", Hand>) { const controller = event.target; if (grabbing) { - const indexTip = controller.joints['index-finger-tip']; + const indexTip = controller.joints["index-finger-tip"]; const sphere = collideObject(indexTip); if (sphere) { const sphere2 = hand2.userData.selected; - console.log('sphere1', sphere, 'sphere2', sphere2); + console.log("sphere1", sphere, "sphere2", sphere2); if (sphere === sphere2) { scaling.active = true; scaling.object = sphere; scaling.initialScale = sphere.scale.x; - scaling.initialDistance = indexTip.position.distanceTo(hand2.joints['index-finger-tip'].position); + scaling.initialDistance = indexTip.position.distanceTo(hand2.joints["index-finger-tip"].position); return; } } @@ -182,7 +182,7 @@ function onPinchStartLeft(event: THREE.Event<'pinchstart', Hand>) { const spawn = new THREE.Mesh(geometry, material); spawn.geometry.computeBoundingSphere(); - const indexTip = controller.joints['index-finger-tip']; + const indexTip = controller.joints["index-finger-tip"]; spawn.position.copy(indexTip.position); spawn.quaternion.copy(indexTip.quaternion); @@ -203,19 +203,19 @@ function collideObject(indexTip: THREE.Group) { return null; } -function onPinchStartRight(event: THREE.Event<'pinchstart', Hand>) { +function onPinchStartRight(event: THREE.Event<"pinchstart", Hand>) { const controller = event.target; - const indexTip = controller.joints['index-finger-tip']; + const indexTip = controller.joints["index-finger-tip"]; const object = collideObject(indexTip); if (object) { grabbing = true; indexTip.attach(object); controller.userData.selected = object; - console.log('Selected', object); + console.log("Selected", object); } } -function onPinchEndRight(event: THREE.Event<'pinchend', Hand>) { +function onPinchEndRight(event: THREE.Event<"pinchend", Hand>) { const controller = event.target; if (controller.userData.selected !== undefined) { @@ -238,8 +238,8 @@ function animate() { function render() { if (scaling.active && scaling.object) { - const indexTip1Pos = hand1.joints['index-finger-tip'].position; - const indexTip2Pos = hand2.joints['index-finger-tip'].position; + const indexTip1Pos = hand1.joints["index-finger-tip"].position; + const indexTip2Pos = hand2.joints["index-finger-tip"].position; const distance = indexTip1Pos.distanceTo(indexTip2Pos); const newScale = scaling.initialScale + distance / scaling.initialDistance - 1; scaling.object.scale.setScalar(newScale); diff --git a/types/three/test/integration/webxr-cube.ts b/types/three/test/integration/webxr-cube.ts index efcc0b442..bca3f9be3 100644 --- a/types/three/test/integration/webxr-cube.ts +++ b/types/three/test/integration/webxr-cube.ts @@ -1,9 +1,9 @@ // A simple WebXR VR example that just shows a cube. -import * as THREE from 'three'; -import { XRButton } from 'three/examples/jsm/webxr/XRButton'; +import * as THREE from "three"; +import { XRButton } from "three/examples/jsm/webxr/XRButton"; -const container = document.createElement('div'); +const container = document.createElement("div"); const renderer = new THREE.WebGLRenderer({ antialias: true }); const camera = new THREE.PerspectiveCamera(50, 2, 0.1, 10); @@ -15,7 +15,7 @@ let mesh: THREE.Mesh; init(); async function onSessionStarted(session: XRSession): Promise { - session.addEventListener('end', onSessionEnded); + session.addEventListener("end", onSessionEnded); await renderer.xr.setSession(session); currentSession = session; @@ -25,14 +25,14 @@ async function onSessionEnded(): Promise { if (currentSession == null) { return; } - currentSession.removeEventListener('end', onSessionEnded); + currentSession.removeEventListener("end", onSessionEnded); await renderer.xr.setSession(null); currentSession = null; } async function checkVRSupport(): Promise { - if ('xr' in navigator && navigator.xr) { - const isSupported = await navigator.xr.isSessionSupported('immersive-vr').catch(() => false); + if ("xr" in navigator && navigator.xr) { + const isSupported = await navigator.xr.isSessionSupported("immersive-vr").catch(() => false); if (isSupported) { return navigator.xr; } else { diff --git a/types/three/test/unit/examples/jsm/exporters/PLYExporter.ts b/types/three/test/unit/examples/jsm/exporters/PLYExporter.ts index acf1b0807..4e47ee3de 100644 --- a/types/three/test/unit/examples/jsm/exporters/PLYExporter.ts +++ b/types/three/test/unit/examples/jsm/exporters/PLYExporter.ts @@ -1,13 +1,13 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { PLYExporter } from 'three/examples/jsm/exporters/PLYExporter'; +import { PLYExporter } from "three/examples/jsm/exporters/PLYExporter"; const exporter = new PLYExporter(); declare const mesh: THREE.Mesh; function exportASCII() { exporter.parse(mesh, result => { - saveString(result, 'box.ply'); + saveString(result, "box.ply"); }); } @@ -15,7 +15,7 @@ function exportBinaryBigEndian() { exporter.parse( mesh, result => { - saveArrayBuffer(result, 'box.ply'); + saveArrayBuffer(result, "box.ply"); }, { binary: true }, ); @@ -25,14 +25,14 @@ function exportBinaryLittleEndian() { exporter.parse( mesh, result => { - saveArrayBuffer(result, 'box.ply'); + saveArrayBuffer(result, "box.ply"); }, { binary: true, littleEndian: true }, ); } -const link = document.createElement('a'); -link.style.display = 'none'; +const link = document.createElement("a"); +link.style.display = "none"; document.body.appendChild(link); function save(blob: Blob, filename: string) { @@ -42,9 +42,9 @@ function save(blob: Blob, filename: string) { } function saveString(text: string, filename: string) { - save(new Blob([text], { type: 'text/plain' }), filename); + save(new Blob([text], { type: "text/plain" }), filename); } function saveArrayBuffer(buffer: BufferSource, filename: string) { - save(new Blob([buffer], { type: 'application/octet-stream' }), filename); + save(new Blob([buffer], { type: "application/octet-stream" }), filename); } diff --git a/types/three/test/unit/examples/jsm/exporters/STLExporter.ts b/types/three/test/unit/examples/jsm/exporters/STLExporter.ts index 936f5971c..33fc9e11e 100644 --- a/types/three/test/unit/examples/jsm/exporters/STLExporter.ts +++ b/types/three/test/unit/examples/jsm/exporters/STLExporter.ts @@ -1,22 +1,22 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { STLExporter } from 'three/examples/jsm/exporters/STLExporter'; +import { STLExporter } from "three/examples/jsm/exporters/STLExporter"; const exporter = new STLExporter(); declare const mesh: THREE.Mesh; function exportASCII() { const result = exporter.parse(mesh); - saveString(result, 'box.stl'); + saveString(result, "box.stl"); } function exportBinary() { const result = exporter.parse(mesh, { binary: true }); - saveArrayBuffer(result, 'box.stl'); + saveArrayBuffer(result, "box.stl"); } -const link = document.createElement('a'); -link.style.display = 'none'; +const link = document.createElement("a"); +link.style.display = "none"; document.body.appendChild(link); function save(blob: Blob, filename: string) { @@ -26,9 +26,9 @@ function save(blob: Blob, filename: string) { } function saveString(text: string, filename: string) { - save(new Blob([text], { type: 'text/plain' }), filename); + save(new Blob([text], { type: "text/plain" }), filename); } function saveArrayBuffer(buffer: BufferSource, filename: string) { - save(new Blob([buffer], { type: 'application/octet-stream' }), filename); + save(new Blob([buffer], { type: "application/octet-stream" }), filename); } diff --git a/types/three/test/unit/examples/jsm/helpers/ViewHelper.ts b/types/three/test/unit/examples/jsm/helpers/ViewHelper.ts index 309e1ecda..2a71ea21b 100644 --- a/types/three/test/unit/examples/jsm/helpers/ViewHelper.ts +++ b/types/three/test/unit/examples/jsm/helpers/ViewHelper.ts @@ -1,6 +1,6 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { ViewHelper } from 'three/examples/jsm/helpers/ViewHelper'; +import { ViewHelper } from "three/examples/jsm/helpers/ViewHelper"; const camera = new THREE.PerspectiveCamera(); const viewHelper = new ViewHelper(camera, document.body); // $ExpectType ViewHelper @@ -19,4 +19,4 @@ const renderer = new THREE.WebGLRenderer(); viewHelper.render(renderer); // $ExpectType void viewHelper.update(0); // $ExpectType void viewHelper.dispose(); // $ExpectType void -viewHelper.handleClick(new MouseEvent('click')); // $ExpectType boolean +viewHelper.handleClick(new MouseEvent("click")); // $ExpectType boolean diff --git a/types/three/test/unit/examples/jsm/libs/lil-gui.ts b/types/three/test/unit/examples/jsm/libs/lil-gui.ts index cb6ff1203..3b3744fe9 100644 --- a/types/three/test/unit/examples/jsm/libs/lil-gui.ts +++ b/types/three/test/unit/examples/jsm/libs/lil-gui.ts @@ -1,27 +1,27 @@ -import * as THREE from 'three'; -import { GUI } from 'three/examples/jsm/libs/lil-gui.module.min'; +import * as THREE from "three"; +import { GUI } from "three/examples/jsm/libs/lil-gui.module.min"; const camera = new THREE.PerspectiveCamera(45, window.innerWidth / window.innerHeight, 0.1, 200); const layers = { - 'Toggle Name'() { + "Toggle Name"() { camera.layers.toggle(0); }, - 'Toggle Mass'() { + "Toggle Mass"() { camera.layers.toggle(1); }, - 'Enable All'() { + "Enable All"() { camera.layers.enableAll(); }, - 'Disable All'() { + "Disable All"() { camera.layers.disableAll(); }, }; const gui = new GUI(); -gui.add(layers, 'Toggle Name'); -gui.add(layers, 'Toggle Mass'); -gui.add(layers, 'Enable All'); -gui.add(layers, 'Disable All'); +gui.add(layers, "Toggle Name"); +gui.add(layers, "Toggle Mass"); +gui.add(layers, "Enable All"); +gui.add(layers, "Disable All"); diff --git a/types/three/test/unit/examples/jsm/libs/tween.ts b/types/three/test/unit/examples/jsm/libs/tween.ts index b1decbab9..441c4014e 100644 --- a/types/three/test/unit/examples/jsm/libs/tween.ts +++ b/types/three/test/unit/examples/jsm/libs/tween.ts @@ -1,6 +1,6 @@ -import * as THREE from 'three'; -import TWEEN from 'three/examples/jsm/libs/tween.module'; -import { CSS3DObject, CSS3DRenderer } from 'three/examples/jsm/renderers/CSS3DRenderer'; +import * as THREE from "three"; +import TWEEN from "three/examples/jsm/libs/tween.module"; +import { CSS3DObject, CSS3DRenderer } from "three/examples/jsm/renderers/CSS3DRenderer"; declare const camera: THREE.PerspectiveCamera; declare const scene: THREE.Scene; diff --git a/types/three/test/unit/examples/jsm/lines/LineMaterial.ts b/types/three/test/unit/examples/jsm/lines/LineMaterial.ts index 4b00d165e..b4065c114 100644 --- a/types/three/test/unit/examples/jsm/lines/LineMaterial.ts +++ b/types/three/test/unit/examples/jsm/lines/LineMaterial.ts @@ -1,13 +1,13 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -import { LineMaterial } from 'three/examples/jsm/lines/LineMaterial'; +import { LineMaterial } from "three/examples/jsm/lines/LineMaterial"; const color1 = new LineMaterial({ - color: new THREE.Color('blue'), + color: new THREE.Color("blue"), }); const color2 = new LineMaterial({ - color: 'red', + color: "red", }); const color3 = new LineMaterial({ diff --git a/types/three/test/unit/examples/jsm/nodes/ShaderNode/ShaderNode.ts b/types/three/test/unit/examples/jsm/nodes/ShaderNode/ShaderNode.ts index 4c5f307f0..68e7aa03c 100644 --- a/types/three/test/unit/examples/jsm/nodes/ShaderNode/ShaderNode.ts +++ b/types/three/test/unit/examples/jsm/nodes/ShaderNode/ShaderNode.ts @@ -3,21 +3,21 @@ */ import { - Node, + ConstNode, MaterialNode, MathNode, - OscNode, - PropertyNode, - RotateUVNode, - OperatorNode, + Node, nodeArray, nodeImmutable, nodeProxy, + OperatorNode, + OscNode, + PropertyNode, + RotateUVNode, ShaderNode, - ConstNode, -} from 'three/examples/jsm/nodes/Nodes'; +} from "three/examples/jsm/nodes/Nodes"; -import { color, ShaderNodeObject, Swizzable, tslFn, vec3 } from 'three/examples/jsm/nodes/shadernode/ShaderNode'; +import { color, ShaderNodeObject, Swizzable, tslFn, vec3 } from "three/examples/jsm/nodes/shadernode/ShaderNode"; // just to type check // eslint-disable-next-line @definitelytyped/no-unnecessary-generics @@ -26,17 +26,17 @@ function assertSwizzable(_s: Swizzable) {} const s = color(1); s.xyz; -const aa = nodeArray([1, 2, 'hello']); +const aa = nodeArray([1, 2, "hello"]); aa[0].xy = s; aa[1].w = s; -aa[2] = 'hello'; +aa[2] = "hello"; export const rotateUV = nodeProxy(RotateUVNode); assertSwizzable(rotateUV(s, s, s)); const oscNode0 = nodeProxy(OscNode); -assertSwizzable(oscNode0('sawtooth', s)); +assertSwizzable(oscNode0("sawtooth", s)); const oscNode1 = nodeProxy(OscNode, OscNode.SAWTOOTH); assertSwizzable(oscNode1(s)); @@ -51,16 +51,16 @@ assertSwizzable(oscSine0()); export const mix0 = nodeProxy(MathNode, MathNode.MIX, 1); assertSwizzable(mix0(s, new ConstNode(1))); -export const sub = nodeProxy(OperatorNode, '-'); +export const sub = nodeProxy(OperatorNode, "-"); assertSwizzable(sub(s, new ConstNode(1), new ConstNode(1), new ConstNode(1), new ConstNode(1))); -export const remainder = nodeProxy(OperatorNode, '%'); +export const remainder = nodeProxy(OperatorNode, "%"); assertSwizzable(remainder(s, new ConstNode(1), new ConstNode(1), new ConstNode(1), new ConstNode(1))); assertSwizzable(nodeImmutable(MaterialNode, MaterialNode.ROTATION)); -assertSwizzable(nodeImmutable(PropertyNode, 'vec4', 'DiffuseColor')); -assertSwizzable(nodeImmutable(MathNode, 'abs', 1)); +assertSwizzable(nodeImmutable(PropertyNode, "vec4", "DiffuseColor")); +assertSwizzable(nodeImmutable(MathNode, "abs", 1)); -export const shiftRight = nodeProxy(OperatorNode, '>>'); +export const shiftRight = nodeProxy(OperatorNode, ">>"); assertSwizzable(shiftRight(s, s, s, s)); const shader = new ShaderNode<{ a: Node; b: Node }>(params => { diff --git a/types/three/test/unit/examples/jsm/nodes/core/FunctionNode.ts b/types/three/test/unit/examples/jsm/nodes/core/FunctionNode.ts index dd2389226..56a55cdd4 100644 --- a/types/three/test/unit/examples/jsm/nodes/core/FunctionNode.ts +++ b/types/three/test/unit/examples/jsm/nodes/core/FunctionNode.ts @@ -3,20 +3,20 @@ */ import { + call, code, fn, - uv, func, - Node, + FunctionCallNode, FunctionNode, - call, + Node, Swizzable, - FunctionCallNode, -} from 'three/examples/jsm/nodes/Nodes'; + uv, +} from "three/examples/jsm/nodes/Nodes"; -import { ProxiedObject } from 'three/examples/jsm/nodes/shadernode/ShaderNode'; +import { ProxiedObject } from "three/examples/jsm/nodes/shadernode/ShaderNode"; -export const mx_noise = code('whatever'); +export const mx_noise = code("whatever"); const includes = [mx_noise]; const someFunc1 = new FunctionNode<[a: Node]>(); @@ -34,23 +34,23 @@ assertSwizzable>(call(someFunc2, { a: 1 })); assertSwizzable>(call(someFunc2, { a: uv() })); assertSwizzable>(call(someFunc2, { a: uv().xy })); -export const mx_cell_noise_float_call = func<[Node]>('float mx_cell_noise_float( vec3 p )', includes); +export const mx_cell_noise_float_call = func<[Node]>("float mx_cell_noise_float( vec3 p )", includes); export const mx_worley_noise_float_call = func<[Node, Node, Node]>( - 'float mx_worley_noise_float( vec3 p, float jitter, int metric )', + "float mx_worley_noise_float( vec3 p, float jitter, int metric )", includes, ); -export const ab_call = func<{ a: Node; b: Node }>('float mx_cell_noise_float( vec3 p )', includes); +export const ab_call = func<{ a: Node; b: Node }>("float mx_cell_noise_float( vec3 p )", includes); assertSwizzable(mx_cell_noise_float_call.call(uv())); assertSwizzable(mx_worley_noise_float_call.call(uv(), 1, 1)); assertSwizzable(ab_call.call({ a: 1, b: uv() })); -export const mx_cell_noise_float = fn<[Node]>('float mx_cell_noise_float( vec3 p )', includes); +export const mx_cell_noise_float = fn<[Node]>("float mx_cell_noise_float( vec3 p )", includes); export const mx_worley_noise_float = fn<[Node, Node, Node]>( - 'float mx_worley_noise_float( vec3 p, float jitter, int metric )', + "float mx_worley_noise_float( vec3 p, float jitter, int metric )", includes, ); -export const ab = fn<{ a: Node; b: Node }>('float mx_cell_noise_float( vec3 p )', includes); +export const ab = fn<{ a: Node; b: Node }>("float mx_cell_noise_float( vec3 p )", includes); assertSwizzable(mx_cell_noise_float(uv())); assertSwizzable(mx_worley_noise_float(uv(), 1, 1)); diff --git a/types/three/test/unit/examples/jsm/nodes/display/ColorAdjustmentNode.ts b/types/three/test/unit/examples/jsm/nodes/display/ColorAdjustmentNode.ts index 8ec397856..fab88bac7 100644 --- a/types/three/test/unit/examples/jsm/nodes/display/ColorAdjustmentNode.ts +++ b/types/three/test/unit/examples/jsm/nodes/display/ColorAdjustmentNode.ts @@ -6,24 +6,24 @@ */ import { - dot, - mix, - ShaderNode, - vec3, - Node, - div, add, - max, - mul, - sub, - mat3, atan2, - sqrt, cos, + div, + dot, + float, + mat3, + max, + mix, + mul, + Node, + ShaderNode, sin, + sqrt, + sub, TempNode, - float, -} from 'three/examples/jsm/nodes/Nodes'; + vec3, +} from "three/examples/jsm/nodes/Nodes"; const luminanceNode = new ShaderNode<{ color: Node }>(({ color }) => { const LUMA = vec3(0.2125, 0.7154, 0.0721); @@ -59,15 +59,15 @@ const hueNode = new ShaderNode<{ color: Node; adjustment: Node }>(({ color, adju }); class TestNode extends TempNode { - static SATURATION = 'saturation'; - static VIBRANCE = 'vibrance'; - static HUE = 'hue'; + static SATURATION = "saturation"; + static VIBRANCE = "vibrance"; + static HUE = "hue"; method: string; colorNode: Node; adjustmentNode: Node; constructor(method: string, colorNode: Node, adjustmentNode = float(1)) { - super('vec3'); + super("vec3"); this.method = method; diff --git a/types/three/test/unit/examples/jsm/nodes/materials/lib/mx_noise.ts b/types/three/test/unit/examples/jsm/nodes/materials/lib/mx_noise.ts index 536a004d7..afdd6f379 100644 --- a/types/three/test/unit/examples/jsm/nodes/materials/lib/mx_noise.ts +++ b/types/three/test/unit/examples/jsm/nodes/materials/lib/mx_noise.ts @@ -1,11 +1,11 @@ import { - mx_perlin_noise_float, mx_cell_noise_float, - mx_worley_noise_float, mx_fractal_noise_float, -} from 'three/examples/jsm/nodes/materialx/lib/mx_noise'; + mx_perlin_noise_float, + mx_worley_noise_float, +} from "three/examples/jsm/nodes/materialx/lib/mx_noise"; -import { mx_hsvtorgb, mx_rgbtohsv } from 'three/examples/jsm/nodes/materialx/MaterialXNodes'; +import { mx_hsvtorgb, mx_rgbtohsv } from "three/examples/jsm/nodes/materialx/MaterialXNodes"; mx_perlin_noise_float(1); mx_cell_noise_float(1); diff --git a/types/three/test/unit/examples/jsm/postprocessing/EffectComposer.ts b/types/three/test/unit/examples/jsm/postprocessing/EffectComposer.ts index 796347892..7104b9b2d 100644 --- a/types/three/test/unit/examples/jsm/postprocessing/EffectComposer.ts +++ b/types/three/test/unit/examples/jsm/postprocessing/EffectComposer.ts @@ -1,5 +1,5 @@ -import * as THREE from 'three'; -import { EffectComposer, Pass, FullScreenQuad } from 'three/examples/jsm/postprocessing/EffectComposer'; +import * as THREE from "three"; +import { EffectComposer, FullScreenQuad, Pass } from "three/examples/jsm/postprocessing/EffectComposer"; class FooPass extends Pass { fsQuad: FullScreenQuad; @@ -39,6 +39,6 @@ function resize(w = 0, h = 0, dpr = devicePixelRatio) { composer.setPixelRatio(dpr); composer.setSize(w, h); } -addEventListener('resize', () => resize(innerWidth, innerHeight)); -dispatchEvent(new Event('resize')); +addEventListener("resize", () => resize(innerWidth, innerHeight)); +dispatchEvent(new Event("resize")); document.body.prepend(renderer.domElement); diff --git a/types/three/test/unit/examples/jsm/postprocessing/SavePass.ts b/types/three/test/unit/examples/jsm/postprocessing/SavePass.ts index 4515f7fa5..75d18e625 100644 --- a/types/three/test/unit/examples/jsm/postprocessing/SavePass.ts +++ b/types/three/test/unit/examples/jsm/postprocessing/SavePass.ts @@ -1,5 +1,5 @@ -import * as THREE from 'three'; -import { SavePass } from 'three/examples/jsm/postprocessing/SavePass'; +import * as THREE from "three"; +import { SavePass } from "three/examples/jsm/postprocessing/SavePass"; let pass = new SavePass(); // $ExpectType SavePass let rt = pass.renderTarget; // $ExpectType WebGLRenderTarget diff --git a/types/three/test/unit/examples/jsm/shaders/ACESFilmicToneMappingShader.ts b/types/three/test/unit/examples/jsm/shaders/ACESFilmicToneMappingShader.ts index 2820d1d75..c10ecb405 100644 --- a/types/three/test/unit/examples/jsm/shaders/ACESFilmicToneMappingShader.ts +++ b/types/three/test/unit/examples/jsm/shaders/ACESFilmicToneMappingShader.ts @@ -1,7 +1,7 @@ -import * as THREE from 'three'; -import { EffectComposer } from 'three/examples/jsm/postprocessing/EffectComposer'; -import { ShaderPass } from 'three/examples/jsm/postprocessing/ShaderPass'; -import { ACESFilmicToneMappingShader } from 'three/examples/jsm/shaders/ACESFilmicToneMappingShader'; +import * as THREE from "three"; +import { EffectComposer } from "three/examples/jsm/postprocessing/EffectComposer"; +import { ShaderPass } from "three/examples/jsm/postprocessing/ShaderPass"; +import { ACESFilmicToneMappingShader } from "three/examples/jsm/shaders/ACESFilmicToneMappingShader"; const renderer = new THREE.WebGLRenderer(); const composer = new EffectComposer(renderer); diff --git a/types/three/test/unit/src/audio/AudioContext.ts b/types/three/test/unit/src/audio/AudioContext.ts index 0835f444f..39c556c3b 100644 --- a/types/three/test/unit/src/audio/AudioContext.ts +++ b/types/three/test/unit/src/audio/AudioContext.ts @@ -1,4 +1,4 @@ -import * as THREE from 'three'; +import * as THREE from "three"; const context = new AudioContext(); THREE.AudioContext.setContext(context); diff --git a/types/three/test/unit/src/core/EventDispatcher.ts b/types/three/test/unit/src/core/EventDispatcher.ts index 2811a39aa..c6001d58c 100644 --- a/types/three/test/unit/src/core/EventDispatcher.ts +++ b/types/three/test/unit/src/core/EventDispatcher.ts @@ -1,21 +1,21 @@ -import * as THREE from 'three'; +import * as THREE from "three"; // Test for legacy usage const eveDisForAnyEvent = new THREE.EventDispatcher>(); -eveDisForAnyEvent.addEventListener('eventA', e => { +eveDisForAnyEvent.addEventListener("eventA", e => { e.type; // $ExpectType "eventA" e.target; // $ExpectType EventDispatcher> // @ts-expect-error e.bar(); }); -eveDisForAnyEvent.dispatchEvent({ type: 'eventA' }); -eveDisForAnyEvent.dispatchEvent({ type: 'eventB', otherProp: 42 }); +eveDisForAnyEvent.dispatchEvent({ type: "eventA" }); +eveDisForAnyEvent.dispatchEvent({ type: "eventB", otherProp: 42 }); -eveDisForAnyEvent.removeEventListener('eventA', e => { +eveDisForAnyEvent.removeEventListener("eventA", e => { e.type; // $ExpectType "eventA" e.target; // $ExpectType EventDispatcher> }); -eveDisForAnyEvent.hasEventListener('eventA', e => { +eveDisForAnyEvent.hasEventListener("eventA", e => { e.type; // $ExpectType "eventA" e.target; // $ExpectType EventDispatcher> }); @@ -27,7 +27,7 @@ interface TestEvent { } const eveDisForTestEvent = new THREE.EventDispatcher(); -eveDisForTestEvent.addEventListener('foo', e => { +eveDisForTestEvent.addEventListener("foo", e => { e.type; // $ExpectType "foo" e.target; // $ExpectType EventDispatcher e.foo; // $ExpectType number @@ -37,7 +37,7 @@ eveDisForTestEvent.addEventListener('foo', e => { // @ts-expect-error e.bar; }); -eveDisForTestEvent.addEventListener('bar', e => { +eveDisForTestEvent.addEventListener("bar", e => { e.type; // $ExpectType "bar" e.target; // $ExpectType EventDispatcher e.bar; // $ExpectType string @@ -46,7 +46,7 @@ eveDisForTestEvent.addEventListener('bar', e => { }); // call addEventListener with an unknown event. The typing should allow you listen any unknown event. -eveDisForTestEvent.addEventListener('baz', e => { +eveDisForTestEvent.addEventListener("baz", e => { e.type; // $ExpectType "baz" e.target; // $ExpectType EventDispatcher // @ts-expect-error @@ -56,7 +56,7 @@ eveDisForTestEvent.addEventListener('baz', e => { // @ts-expect-error e.bar(); }); -eveDisForTestEvent.addEventListener('NotRegistered', e => { +eveDisForTestEvent.addEventListener("NotRegistered", e => { e.type; // $ExpectType "NotRegistered" e.target; // $ExpectType EventDispatcher // @ts-expect-error @@ -67,22 +67,22 @@ eveDisForTestEvent.addEventListener('NotRegistered', e => { e.bar(); }); -eveDisForTestEvent.dispatchEvent({ type: 'foo', foo: 42 }); -eveDisForTestEvent.dispatchEvent({ type: 'bar', bar: '42' }); +eveDisForTestEvent.dispatchEvent({ type: "foo", foo: 42 }); +eveDisForTestEvent.dispatchEvent({ type: "bar", bar: "42" }); // @ts-expect-error -eveDisForTestEvent.dispatchEvent({ type: 'zzzz', shouldWork: '42' }); +eveDisForTestEvent.dispatchEvent({ type: "zzzz", shouldWork: "42" }); // @ts-expect-error -eveDisForTestEvent.dispatchEvent({ type: 'eventA' }); +eveDisForTestEvent.dispatchEvent({ type: "eventA" }); // call dispatchEvent with an invalid event // @ts-expect-error -eveDisForTestEvent.dispatchEvent({ type: 'foo', foo: '42' }); +eveDisForTestEvent.dispatchEvent({ type: "foo", foo: "42" }); // @ts-expect-error -eveDisForTestEvent.dispatchEvent({ type: 'foo', bar: '42' }); +eveDisForTestEvent.dispatchEvent({ type: "foo", bar: "42" }); // @ts-expect-error -eveDisForTestEvent.dispatchEvent({ type: 'bar', bar: 42 }); +eveDisForTestEvent.dispatchEvent({ type: "bar", bar: 42 }); // @ts-expect-error eveDisForTestEvent.dispatchEvent({ bar: 42 }); -eveDisForTestEvent.removeEventListener('bar', () => {}); -eveDisForTestEvent.hasEventListener('bar', () => {}); +eveDisForTestEvent.removeEventListener("bar", () => {}); +eveDisForTestEvent.hasEventListener("bar", () => {}); diff --git a/types/three/test/unit/src/core/Uniform.ts b/types/three/test/unit/src/core/Uniform.ts index 1dd8f8d4b..1d7b5bc5e 100644 --- a/types/three/test/unit/src/core/Uniform.ts +++ b/types/three/test/unit/src/core/Uniform.ts @@ -1,5 +1,5 @@ -import * as THREE from 'three'; +import * as THREE from "three"; -const unknownUniform = new THREE.Uniform('abc' as unknown); +const unknownUniform = new THREE.Uniform("abc" as unknown); const genericUniform = new THREE.Uniform(4); const inferredUniform = new THREE.Uniform(4); diff --git a/types/three/test/unit/src/extras/Earcut.ts b/types/three/test/unit/src/extras/Earcut.ts index 4c2c065f6..41b3b8234 100644 --- a/types/three/test/unit/src/extras/Earcut.ts +++ b/types/three/test/unit/src/extras/Earcut.ts @@ -1,3 +1,3 @@ -import { Earcut } from 'three/src/extras/Earcut'; +import { Earcut } from "three/src/extras/Earcut"; const triangles = Earcut.triangulate([0, 0, 1, 0, 1, 1, 0, 1]); // $ExpectType number[] diff --git a/types/three/test/unit/src/renderers/webgl/WebGLUtils.ts b/types/three/test/unit/src/renderers/webgl/WebGLUtils.ts index 23916d69b..eee381423 100644 --- a/types/three/test/unit/src/renderers/webgl/WebGLUtils.ts +++ b/types/three/test/unit/src/renderers/webgl/WebGLUtils.ts @@ -1,4 +1,4 @@ -import { WebGLUtils, WebGLRenderer, RGBAFormat } from 'three'; +import { RGBAFormat, WebGLRenderer, WebGLUtils } from "three"; const renderer = new WebGLRenderer(); diff --git a/types/three/test/unit/src/textures/Texture.ts b/types/three/test/unit/src/textures/Texture.ts index 2e5090fdf..ddd30d62f 100644 --- a/types/three/test/unit/src/textures/Texture.ts +++ b/types/three/test/unit/src/textures/Texture.ts @@ -1,9 +1,9 @@ -import * as THREE from 'three'; +import * as THREE from "three"; // part of the code is taken from https://github.com/mrdoob/three.js/pull/22846 const imageLoader = new THREE.ImageLoader(); -imageLoader.load('/path/to/image.png', image => { +imageLoader.load("/path/to/image.png", image => { const source = new THREE.Source(image); const material = new THREE.MeshBasicMaterial(); diff --git a/types/three/three-tests.ts b/types/three/three-tests.ts index 478e1d933..dcdff089d 100644 --- a/types/three/three-tests.ts +++ b/types/three/three-tests.ts @@ -1,4 +1,4 @@ -import * as THREE from 'three'; +import * as THREE from "three"; const scene = new THREE.Scene(); const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); From c1fc267156cf4398713709aeb9d607629599244c Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Wed, 31 Jan 2024 12:51:58 -0500 Subject: [PATCH 2/2] Clean up --- .dprint.jsonc | 7 ------- 1 file changed, 7 deletions(-) diff --git a/.dprint.jsonc b/.dprint.jsonc index 8f7446884..c295cabf1 100644 --- a/.dprint.jsonc +++ b/.dprint.jsonc @@ -1,14 +1,7 @@ { "excludes": [ - // These files are auto-generated and don't need to be formatted. - // NOTE: We generally prefer that packages be formatted with dprint. - // Packages are generally only listed if they predate our using dprint (August 2023). - // If your package is listed, please consider adding dprint fmt to its generation. "./examples-testing", "./three.js", - - // Machine-generated files. - "./docs/support-window.json", "pnpm-lock.yaml" ], "prettier": {