@needle-tools/three 0.169.20 → 0.183.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +5 -6
- package/build/three.cjs +54178 -56709
- package/build/three.core.js +59506 -0
- package/build/three.core.min.js +6 -0
- package/build/three.module.js +11645 -73012
- package/build/three.module.min.js +2 -2
- package/build/three.tsl.js +648 -0
- package/build/three.tsl.min.js +6 -0
- package/build/three.webgpu.js +53905 -51657
- package/build/three.webgpu.min.js +2 -2
- package/build/three.webgpu.nodes.js +53884 -51814
- package/build/three.webgpu.nodes.min.js +2 -2
- package/examples/fonts/MPLUSRounded1c/MPLUSRounded1c-Regular.typeface.json.zip +0 -0
- package/examples/fonts/MPLUSRounded1c/OFL.txt +91 -0
- package/examples/jsm/Addons.js +5 -15
- package/examples/jsm/animation/AnimationClipCreator.js +58 -6
- package/examples/jsm/animation/CCDIKSolver.js +152 -45
- package/examples/jsm/capabilities/WebGL.js +28 -29
- package/examples/jsm/capabilities/WebGPU.js +19 -17
- package/examples/jsm/controls/ArcballControls.js +474 -178
- package/examples/jsm/controls/DragControls.js +100 -58
- package/examples/jsm/controls/FirstPersonControls.js +116 -6
- package/examples/jsm/controls/FlyControls.js +50 -2
- package/examples/jsm/controls/MapControls.js +96 -8
- package/examples/jsm/controls/OrbitControls.js +496 -57
- package/examples/jsm/controls/PointerLockControls.js +115 -22
- package/examples/jsm/controls/TrackballControls.js +166 -14
- package/examples/jsm/controls/TransformControls.js +336 -26
- package/examples/jsm/csm/CSM.js +232 -18
- package/examples/jsm/csm/CSMFrustum.js +61 -4
- package/examples/jsm/csm/CSMHelper.js +50 -0
- package/examples/jsm/csm/CSMShader.js +13 -1
- package/examples/jsm/csm/CSMShadowNode.js +599 -0
- package/examples/jsm/curves/CurveExtras.js +303 -31
- package/examples/jsm/curves/NURBSCurve.js +91 -16
- package/examples/jsm/curves/NURBSSurface.js +52 -6
- package/examples/jsm/curves/NURBSUtils.js +102 -112
- package/examples/jsm/curves/NURBSVolume.js +24 -4
- package/examples/jsm/effects/AnaglyphEffect.js +134 -7
- package/examples/jsm/effects/AsciiEffect.js +69 -22
- package/examples/jsm/effects/OutlineEffect.js +61 -111
- package/examples/jsm/effects/ParallaxBarrierEffect.js +30 -0
- package/examples/jsm/effects/StereoEffect.js +31 -0
- package/examples/jsm/environments/ColorEnvironment.js +59 -0
- package/examples/jsm/environments/DebugEnvironment.js +50 -0
- package/examples/jsm/environments/RoomEnvironment.js +83 -42
- package/examples/jsm/exporters/DRACOExporter.js +56 -14
- package/examples/jsm/exporters/EXRExporter.js +40 -9
- package/examples/jsm/exporters/GLTFExporter.js +502 -169
- package/examples/jsm/exporters/OBJExporter.js +21 -1
- package/examples/jsm/exporters/PLYExporter.js +44 -12
- package/examples/jsm/exporters/STLExporter.js +27 -5
- package/examples/jsm/exporters/USDZExporter.js +781 -291
- package/examples/jsm/geometries/BoxLineGeometry.js +23 -0
- package/examples/jsm/geometries/ConvexGeometry.js +19 -0
- package/examples/jsm/geometries/DecalGeometry.js +91 -30
- package/examples/jsm/geometries/ParametricFunctions.js +100 -0
- package/examples/jsm/geometries/ParametricGeometry.js +38 -5
- package/examples/jsm/geometries/RoundedBoxGeometry.js +68 -7
- package/examples/jsm/geometries/TeapotGeometry.js +23 -38
- package/examples/jsm/geometries/TextGeometry.js +48 -29
- package/examples/jsm/gpgpu/BitonicSort.js +715 -0
- package/examples/jsm/helpers/AnimationPathHelper.js +302 -0
- package/examples/jsm/helpers/LightProbeHelper.js +36 -0
- package/examples/jsm/helpers/LightProbeHelperGPU.js +38 -1
- package/examples/jsm/helpers/OctreeHelper.js +36 -0
- package/examples/jsm/helpers/PositionalAudioHelper.js +60 -0
- package/examples/jsm/helpers/RapierHelper.js +59 -0
- package/examples/jsm/helpers/RectAreaLightHelper.js +36 -3
- package/examples/jsm/helpers/TextureHelper.js +28 -0
- package/examples/jsm/helpers/TextureHelperGPU.js +214 -0
- package/examples/jsm/helpers/VertexNormalsHelper.js +61 -2
- package/examples/jsm/helpers/VertexTangentsHelper.js +47 -2
- package/examples/jsm/helpers/ViewHelper.js +181 -9
- package/examples/jsm/inspector/Inspector.js +487 -0
- package/examples/jsm/inspector/RendererInspector.js +425 -0
- package/examples/jsm/inspector/tabs/Console.js +238 -0
- package/examples/jsm/inspector/tabs/Parameters.js +348 -0
- package/examples/jsm/inspector/tabs/Performance.js +268 -0
- package/examples/jsm/inspector/tabs/Viewer.js +166 -0
- package/examples/jsm/inspector/ui/Graph.js +95 -0
- package/examples/jsm/inspector/ui/Item.js +170 -0
- package/examples/jsm/inspector/ui/List.js +75 -0
- package/examples/jsm/inspector/ui/Profiler.js +1975 -0
- package/examples/jsm/inspector/ui/Style.js +1613 -0
- package/examples/jsm/inspector/ui/Tab.js +233 -0
- package/examples/jsm/inspector/ui/Values.js +439 -0
- package/examples/jsm/inspector/ui/utils.js +56 -0
- package/examples/jsm/interactive/HTMLMesh.js +43 -12
- package/examples/jsm/interactive/InteractiveGroup.js +170 -52
- package/examples/jsm/interactive/SelectionBox.js +106 -9
- package/examples/jsm/interactive/SelectionHelper.js +76 -30
- package/examples/jsm/libs/demuxer_mp4.js +109 -0
- package/examples/jsm/libs/meshopt_decoder.module.js +76 -58
- package/examples/jsm/libs/motion-controllers.module.js +1 -1
- package/examples/jsm/lighting/TiledLighting.js +42 -0
- package/examples/jsm/lights/LightProbeGenerator.js +44 -7
- package/examples/jsm/lights/RectAreaLightTexturesLib.js +50 -14
- package/examples/jsm/lights/RectAreaLightUniformsLib.js +16 -0
- package/examples/jsm/lines/Line2.js +41 -4
- package/examples/jsm/lines/LineGeometry.js +80 -2
- package/examples/jsm/lines/LineMaterial.js +105 -5
- package/examples/jsm/lines/LineSegments2.js +54 -4
- package/examples/jsm/lines/LineSegmentsGeometry.js +65 -8
- package/examples/jsm/lines/Wireframe.js +41 -4
- package/examples/jsm/lines/WireframeGeometry2.js +27 -2
- package/examples/jsm/lines/webgpu/Line2.js +28 -2
- package/examples/jsm/lines/webgpu/LineSegments2.js +59 -24
- package/examples/jsm/lines/webgpu/Wireframe.js +86 -0
- package/examples/jsm/loaders/3DMLoader.js +78 -6
- package/examples/jsm/loaders/3MFLoader.js +148 -7
- package/examples/jsm/loaders/AMFLoader.js +34 -14
- package/examples/jsm/loaders/BVHLoader.js +59 -12
- package/examples/jsm/loaders/ColladaLoader.js +61 -4027
- package/examples/jsm/loaders/DDSLoader.js +68 -1
- package/examples/jsm/loaders/DRACOLoader.js +146 -22
- package/examples/jsm/loaders/EXRLoader.js +255 -34
- package/examples/jsm/loaders/FBXLoader.js +80 -42
- package/examples/jsm/loaders/FontLoader.js +83 -6
- package/examples/jsm/loaders/GCodeLoader.js +71 -14
- package/examples/jsm/loaders/GLTFLoader.js +381 -263
- package/examples/jsm/loaders/HDRCubeTextureLoader.js +52 -3
- package/examples/jsm/loaders/HDRLoader.js +485 -0
- package/examples/jsm/loaders/IESLoader.js +42 -0
- package/examples/jsm/loaders/KMZLoader.js +39 -6
- package/examples/jsm/loaders/KTX2Loader.js +124 -48
- package/examples/jsm/loaders/KTXLoader.js +31 -10
- package/examples/jsm/loaders/LDrawLoader.js +192 -145
- package/examples/jsm/loaders/LUT3dlLoader.js +47 -10
- package/examples/jsm/loaders/LUTCubeLoader.js +46 -9
- package/examples/jsm/loaders/LUTImageLoader.js +79 -38
- package/examples/jsm/loaders/LWOLoader.js +54 -59
- package/examples/jsm/loaders/LottieLoader.js +54 -1
- package/examples/jsm/loaders/MD2Loader.js +37 -1
- package/examples/jsm/loaders/MDDLoader.js +57 -12
- package/examples/jsm/loaders/MTLLoader.js +60 -35
- package/examples/jsm/loaders/MaterialXLoader.js +268 -34
- package/examples/jsm/loaders/NRRDLoader.js +40 -8
- package/examples/jsm/loaders/OBJLoader.js +51 -2
- package/examples/jsm/loaders/PCDLoader.js +173 -21
- package/examples/jsm/loaders/PDBLoader.js +41 -2
- package/examples/jsm/loaders/PLYLoader.js +70 -39
- package/examples/jsm/loaders/PVRLoader.js +25 -6
- package/examples/jsm/loaders/RGBELoader.js +6 -438
- package/examples/jsm/loaders/STLLoader.js +48 -38
- package/examples/jsm/loaders/SVGLoader.js +119 -25
- package/examples/jsm/loaders/TDSLoader.js +92 -74
- package/examples/jsm/loaders/TGALoader.js +23 -2
- package/examples/jsm/loaders/TIFFLoader.js +23 -0
- package/examples/jsm/loaders/TTFLoader.js +50 -3
- package/examples/jsm/loaders/USDLoader.js +279 -0
- package/examples/jsm/loaders/USDZLoader.js +4 -858
- package/examples/jsm/loaders/UltraHDRLoader.js +338 -166
- package/examples/jsm/loaders/VOXLoader.js +688 -87
- package/examples/jsm/loaders/VRMLLoader.js +121 -12
- package/examples/jsm/loaders/VTKLoader.js +77 -25
- package/examples/jsm/loaders/XYZLoader.js +36 -0
- package/examples/jsm/loaders/collada/ColladaComposer.js +2950 -0
- package/examples/jsm/loaders/collada/ColladaParser.js +1962 -0
- package/examples/jsm/loaders/lwo/IFFParser.js +77 -77
- package/examples/jsm/loaders/usd/USDAParser.js +822 -0
- package/examples/jsm/loaders/usd/USDCParser.js +1852 -0
- package/examples/jsm/loaders/usd/USDComposer.js +4041 -0
- package/examples/jsm/materials/LDrawConditionalLineMaterial.js +183 -0
- package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +154 -0
- package/examples/jsm/materials/WoodNodeMaterial.js +533 -0
- package/examples/jsm/math/Capsule.js +91 -14
- package/examples/jsm/math/ColorConverter.js +22 -0
- package/examples/jsm/math/ColorSpaces.js +74 -2
- package/examples/jsm/math/ConvexHull.js +517 -93
- package/examples/jsm/math/ImprovedNoise.js +32 -15
- package/examples/jsm/math/Lut.js +113 -0
- package/examples/jsm/math/MeshSurfaceSampler.js +78 -13
- package/examples/jsm/math/OBB.js +141 -29
- package/examples/jsm/math/Octree.js +283 -7
- package/examples/jsm/math/SimplexNoise.js +68 -42
- package/examples/jsm/misc/ConvexObjectBreaker.js +45 -25
- package/examples/jsm/misc/GPUComputationRenderer.js +96 -20
- package/examples/jsm/misc/Gyroscope.js +12 -0
- package/examples/jsm/misc/MD2Character.js +117 -2
- package/examples/jsm/misc/MD2CharacterComplex.js +175 -11
- package/examples/jsm/misc/MorphAnimMesh.js +44 -0
- package/examples/jsm/misc/MorphBlendMesh.js +103 -0
- package/examples/jsm/misc/ProgressiveLightMap.js +100 -54
- package/examples/jsm/misc/ProgressiveLightMapGPU.js +322 -0
- package/examples/jsm/misc/RollerCoaster.js +57 -0
- package/examples/jsm/misc/TubePainter.js +437 -40
- package/examples/jsm/misc/Volume.js +123 -76
- package/examples/jsm/misc/VolumeSlice.js +95 -49
- package/examples/jsm/modifiers/CurveModifier.js +66 -38
- package/examples/jsm/modifiers/CurveModifierGPU.js +42 -19
- package/examples/jsm/modifiers/EdgeSplitModifier.js +20 -0
- package/examples/jsm/modifiers/SimplifyModifier.js +24 -10
- package/examples/jsm/modifiers/TessellateModifier.js +35 -2
- package/examples/jsm/objects/GroundedSkybox.js +25 -6
- package/examples/jsm/objects/Lensflare.js +94 -2
- package/examples/jsm/objects/LensflareMesh.js +64 -10
- package/examples/jsm/objects/MarchingCubes.js +90 -5
- package/examples/jsm/objects/Reflector.js +76 -2
- package/examples/jsm/objects/ReflectorForSSRPass.js +41 -0
- package/examples/jsm/objects/Refractor.js +62 -0
- package/examples/jsm/objects/ShadowMesh.js +54 -4
- package/examples/jsm/objects/Sky.js +106 -16
- package/examples/jsm/objects/SkyMesh.js +211 -38
- package/examples/jsm/objects/Water.js +49 -8
- package/examples/jsm/objects/Water2.js +49 -7
- package/examples/jsm/objects/Water2Mesh.js +50 -9
- package/examples/jsm/objects/WaterMesh.js +136 -43
- package/examples/jsm/physics/AmmoPhysics.js +60 -7
- package/examples/jsm/physics/JoltPhysics.js +65 -12
- package/examples/jsm/physics/RapierPhysics.js +217 -21
- package/examples/jsm/postprocessing/AfterimagePass.js +110 -29
- package/examples/jsm/postprocessing/BloomPass.js +128 -26
- package/examples/jsm/postprocessing/BokehPass.js +99 -22
- package/examples/jsm/postprocessing/ClearPass.js +54 -3
- package/examples/jsm/postprocessing/CubeTexturePass.js +82 -21
- package/examples/jsm/postprocessing/DotScreenPass.js +59 -10
- package/examples/jsm/postprocessing/EffectComposer.js +140 -6
- package/examples/jsm/postprocessing/FXAAPass.js +40 -0
- package/examples/jsm/postprocessing/FilmPass.js +54 -5
- package/examples/jsm/postprocessing/GTAOPass.js +202 -57
- package/examples/jsm/postprocessing/GlitchPass.js +86 -34
- package/examples/jsm/postprocessing/HalftonePass.js +65 -10
- package/examples/jsm/postprocessing/LUTPass.js +38 -8
- package/examples/jsm/postprocessing/MaskPass.js +91 -0
- package/examples/jsm/postprocessing/OutlinePass.js +272 -135
- package/examples/jsm/postprocessing/OutputPass.js +65 -14
- package/examples/jsm/postprocessing/Pass.js +100 -4
- package/examples/jsm/postprocessing/RenderPass.js +94 -0
- package/examples/jsm/postprocessing/RenderPixelatedPass.js +124 -45
- package/examples/jsm/postprocessing/RenderTransitionPass.js +120 -21
- package/examples/jsm/postprocessing/SAOPass.js +128 -55
- package/examples/jsm/postprocessing/SMAAPass.js +106 -75
- package/examples/jsm/postprocessing/SSAARenderPass.js +118 -35
- package/examples/jsm/postprocessing/SSAOPass.js +173 -60
- package/examples/jsm/postprocessing/SSRPass.js +268 -53
- package/examples/jsm/postprocessing/SavePass.js +69 -16
- package/examples/jsm/postprocessing/ShaderPass.js +65 -7
- package/examples/jsm/postprocessing/TAARenderPass.js +79 -24
- package/examples/jsm/postprocessing/TexturePass.js +72 -8
- package/examples/jsm/postprocessing/UnrealBloomPass.js +168 -59
- package/examples/jsm/renderers/CSS2DRenderer.js +98 -5
- package/examples/jsm/renderers/CSS3DRenderer.js +111 -7
- package/examples/jsm/renderers/Projector.js +288 -32
- package/examples/jsm/renderers/SVGRenderer.js +323 -61
- package/examples/jsm/renderers/webgl-legacy/nodes/GLSL1NodeBuilder.js +3 -1
- package/examples/jsm/renderers/webgl-legacy/nodes/SlotNode.js +1 -1
- package/examples/jsm/renderers/webgl-legacy/nodes/WebGLNodeBuilder.js +5 -1
- package/examples/jsm/shaders/ACESFilmicToneMappingShader.js +12 -5
- package/examples/jsm/shaders/AfterimageShader.js +8 -3
- package/examples/jsm/shaders/BasicShader.js +8 -1
- package/examples/jsm/shaders/BleachBypassShader.js +10 -3
- package/examples/jsm/shaders/BlendShader.js +8 -1
- package/examples/jsm/shaders/BokehShader.js +9 -3
- package/examples/jsm/shaders/BokehShader2.js +11 -4
- package/examples/jsm/shaders/BrightnessContrastShader.js +10 -4
- package/examples/jsm/shaders/ColorCorrectionShader.js +8 -1
- package/examples/jsm/shaders/ColorifyShader.js +8 -1
- package/examples/jsm/shaders/ConvolutionShader.js +9 -38
- package/examples/jsm/shaders/CopyShader.js +8 -1
- package/examples/jsm/shaders/DOFMipMapShader.js +10 -3
- package/examples/jsm/shaders/DepthLimitedBlurShader.js +10 -1
- package/examples/jsm/shaders/DigitalGlitch.js +10 -7
- package/examples/jsm/shaders/DotScreenShader.js +8 -3
- package/examples/jsm/shaders/ExposureShader.js +8 -1
- package/examples/jsm/shaders/FXAAShader.js +233 -221
- package/examples/jsm/shaders/FilmShader.js +13 -0
- package/examples/jsm/shaders/FocusShader.js +8 -3
- package/examples/jsm/shaders/FreiChenShader.js +10 -3
- package/examples/jsm/shaders/GTAOShader.js +55 -45
- package/examples/jsm/shaders/GammaCorrectionShader.js +11 -2
- package/examples/jsm/shaders/HalftoneShader.js +24 -4
- package/examples/jsm/shaders/HorizontalBlurShader.js +12 -3
- package/examples/jsm/shaders/HorizontalTiltShiftShader.js +9 -2
- package/examples/jsm/shaders/HueSaturationShader.js +10 -3
- package/examples/jsm/shaders/KaleidoShader.js +11 -4
- package/examples/jsm/shaders/LuminosityHighPassShader.js +8 -4
- package/examples/jsm/shaders/LuminosityShader.js +8 -2
- package/examples/jsm/shaders/MirrorShader.js +10 -4
- package/examples/jsm/shaders/NormalMapShader.js +7 -2
- package/examples/jsm/shaders/OutputShader.js +19 -1
- package/examples/jsm/shaders/PoissonDenoiseShader.js +30 -17
- package/examples/jsm/shaders/RGBShiftShader.js +8 -1
- package/examples/jsm/shaders/SAOShader.js +27 -5
- package/examples/jsm/shaders/SMAAShader.js +24 -1
- package/examples/jsm/shaders/SSAOShader.js +37 -6
- package/examples/jsm/shaders/SSRShader.js +32 -6
- package/examples/jsm/shaders/SepiaShader.js +8 -3
- package/examples/jsm/shaders/SobelOperatorShader.js +9 -3
- package/examples/jsm/shaders/SubsurfaceScatteringShader.js +13 -8
- package/examples/jsm/shaders/TechnicolorShader.js +10 -4
- package/examples/jsm/shaders/ToonShader.js +29 -6
- package/examples/jsm/shaders/TriangleBlurShader.js +9 -4
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +19 -6
- package/examples/jsm/shaders/VelocityShader.js +8 -1
- package/examples/jsm/shaders/VerticalBlurShader.js +9 -2
- package/examples/jsm/shaders/VerticalTiltShiftShader.js +8 -1
- package/examples/jsm/shaders/VignetteShader.js +8 -3
- package/examples/jsm/shaders/VolumeShader.js +11 -2
- package/examples/jsm/shaders/WaterRefractionShader.js +11 -0
- package/examples/jsm/textures/FlakesTexture.js +14 -0
- package/examples/jsm/transpiler/AST.js +436 -31
- package/examples/jsm/transpiler/GLSLDecoder.js +380 -135
- package/examples/jsm/transpiler/Linker.js +327 -0
- package/examples/jsm/transpiler/ShaderToyDecoder.js +3 -1
- package/examples/jsm/transpiler/TSLEncoder.js +363 -97
- package/examples/jsm/transpiler/Transpiler.js +50 -1
- package/examples/jsm/transpiler/TranspilerUtils.js +29 -0
- package/examples/jsm/transpiler/WGSLEncoder.js +839 -0
- package/examples/jsm/tsl/display/AfterImageNode.js +244 -0
- package/examples/jsm/tsl/display/AnaglyphPassNode.js +549 -0
- package/examples/jsm/tsl/display/AnamorphicNode.js +282 -0
- package/examples/jsm/tsl/display/BilateralBlurNode.js +364 -0
- package/{src/nodes → examples/jsm/tsl}/display/BleachBypass.js +11 -4
- package/examples/jsm/tsl/display/BloomNode.js +534 -0
- package/examples/jsm/tsl/display/CRT.js +150 -0
- package/examples/jsm/tsl/display/ChromaticAberrationNode.js +207 -0
- package/examples/jsm/tsl/display/DenoiseNode.js +334 -0
- package/examples/jsm/tsl/display/DepthOfFieldNode.js +554 -0
- package/examples/jsm/tsl/display/DotScreenNode.js +104 -0
- package/examples/jsm/tsl/display/FXAANode.js +365 -0
- package/examples/jsm/tsl/display/FilmNode.js +101 -0
- package/examples/jsm/tsl/display/GTAONode.js +571 -0
- package/examples/jsm/tsl/display/GaussianBlurNode.js +389 -0
- package/examples/jsm/tsl/display/GodraysNode.js +624 -0
- package/examples/jsm/tsl/display/LensflareNode.js +279 -0
- package/examples/jsm/tsl/display/Lut3DNode.js +109 -0
- package/examples/jsm/tsl/display/MotionBlur.js +33 -0
- package/examples/jsm/tsl/display/OutlineNode.js +762 -0
- package/examples/jsm/tsl/display/ParallaxBarrierPassNode.js +89 -0
- package/examples/jsm/tsl/display/PixelationPassNode.js +335 -0
- package/examples/jsm/tsl/display/RGBShiftNode.js +96 -0
- package/examples/jsm/tsl/display/RetroPassNode.js +263 -0
- package/examples/jsm/tsl/display/SMAANode.js +768 -0
- package/{src/nodes → examples/jsm/tsl}/display/SSAAPassNode.js +120 -49
- package/examples/jsm/tsl/display/SSGINode.js +642 -0
- package/examples/jsm/tsl/display/SSRNode.js +656 -0
- package/examples/jsm/tsl/display/SSSNode.js +490 -0
- package/{src/nodes → examples/jsm/tsl}/display/Sepia.js +9 -2
- package/examples/jsm/tsl/display/Shape.js +29 -0
- package/{src/nodes → examples/jsm/tsl}/display/SobelOperatorNode.js +61 -19
- package/examples/jsm/tsl/display/StereoCompositePassNode.js +192 -0
- package/{src/nodes → examples/jsm/tsl}/display/StereoPassNode.js +48 -12
- package/examples/jsm/tsl/display/TRAANode.js +726 -0
- package/examples/jsm/tsl/display/TransitionNode.js +141 -0
- package/examples/jsm/tsl/display/boxBlur.js +65 -0
- package/examples/jsm/tsl/display/depthAwareBlend.js +80 -0
- package/examples/jsm/tsl/display/hashBlur.js +54 -0
- package/examples/jsm/tsl/display/radialBlur.js +68 -0
- package/examples/jsm/tsl/lighting/TiledLightsNode.js +442 -0
- package/examples/jsm/tsl/math/Bayer.js +73 -0
- package/examples/jsm/tsl/shadows/TileShadowNode.js +456 -0
- package/examples/jsm/tsl/shadows/TileShadowNodeHelper.js +212 -0
- package/examples/jsm/tsl/utils/Raymarching.js +70 -0
- package/examples/jsm/utils/BufferGeometryUtils.js +91 -29
- package/examples/jsm/utils/CameraUtils.js +15 -6
- package/examples/jsm/utils/GeometryCompressionUtils.js +23 -30
- package/examples/jsm/utils/GeometryUtils.js +32 -27
- package/examples/jsm/utils/LDrawUtils.js +14 -5
- package/examples/jsm/utils/SceneOptimizer.js +458 -0
- package/examples/jsm/utils/SceneUtils.js +53 -3
- package/examples/jsm/utils/ShadowMapViewer.js +72 -33
- package/examples/jsm/utils/ShadowMapViewerGPU.js +61 -29
- package/examples/jsm/utils/SkeletonUtils.js +48 -0
- package/examples/jsm/utils/SortUtils.js +17 -5
- package/examples/jsm/utils/UVsDebug.js +12 -4
- package/examples/jsm/utils/{TextureUtils.js → WebGLTextureUtils.js} +16 -0
- package/examples/jsm/utils/{TextureUtilsGPU.js → WebGPUTextureUtils.js} +20 -2
- package/examples/jsm/utils/WorkerPool.js +67 -2
- package/examples/jsm/webxr/ARButton.js +19 -0
- package/examples/jsm/webxr/OculusHandModel.js +84 -0
- package/examples/jsm/webxr/OculusHandPointerModel.js +148 -22
- package/examples/jsm/webxr/Text2D.js +20 -6
- package/examples/jsm/webxr/VRButton.js +31 -0
- package/examples/jsm/webxr/XRButton.js +23 -0
- package/examples/jsm/webxr/XRControllerModelFactory.js +94 -3
- package/examples/jsm/webxr/XREstimatedLight.js +35 -4
- package/examples/jsm/webxr/XRHandMeshModel.js +37 -0
- package/examples/jsm/webxr/XRHandModelFactory.js +96 -6
- package/examples/jsm/webxr/XRHandPrimitiveModel.js +44 -0
- package/examples/jsm/webxr/XRPlanes.js +18 -0
- package/package.json +29 -34
- package/src/Three.Core.js +198 -0
- package/src/Three.Legacy.js +0 -21
- package/src/Three.TSL.js +641 -0
- package/src/Three.WebGPU.Nodes.js +14 -186
- package/src/Three.WebGPU.js +16 -186
- package/src/Three.js +2 -197
- package/src/animation/AnimationAction.js +263 -31
- package/src/animation/AnimationClip.js +162 -7
- package/src/animation/AnimationMixer.js +99 -15
- package/src/animation/AnimationObjectGroup.js +45 -21
- package/src/animation/AnimationUtils.js +163 -24
- package/src/animation/KeyframeTrack.js +191 -17
- package/src/animation/PropertyBinding.js +91 -16
- package/src/animation/PropertyMixer.js +72 -5
- package/src/animation/tracks/BooleanKeyframeTrack.js +33 -6
- package/src/animation/tracks/ColorKeyframeTrack.js +26 -5
- package/src/animation/tracks/NumberKeyframeTrack.js +26 -2
- package/src/animation/tracks/QuaternionKeyframeTrack.js +30 -1
- package/src/animation/tracks/StringKeyframeTrack.js +33 -2
- package/src/animation/tracks/VectorKeyframeTrack.js +26 -2
- package/src/audio/Audio.js +386 -8
- package/src/audio/AudioAnalyser.js +58 -1
- package/src/audio/AudioContext.js +15 -0
- package/src/audio/AudioListener.js +94 -13
- package/src/audio/PositionalAudio.js +107 -0
- package/src/cameras/ArrayCamera.js +37 -0
- package/src/cameras/Camera.js +61 -0
- package/src/cameras/CubeCamera.js +86 -0
- package/src/cameras/OrthographicCamera.js +110 -1
- package/src/cameras/PerspectiveCamera.js +174 -35
- package/src/cameras/StereoCamera.js +48 -2
- package/src/constants.js +1546 -11
- package/src/core/BufferAttribute.js +417 -3
- package/src/core/BufferGeometry.js +407 -22
- package/src/core/Clock.js +69 -8
- package/src/core/EventDispatcher.js +52 -8
- package/src/core/GLBufferAttribute.js +113 -2
- package/src/core/InstancedBufferAttribute.js +29 -0
- package/src/core/InstancedBufferGeometry.js +20 -0
- package/src/core/InstancedInterleavedBuffer.js +26 -0
- package/src/core/InterleavedBuffer.js +141 -7
- package/src/core/InterleavedBufferAttribute.js +200 -2
- package/src/core/Layers.js +71 -10
- package/src/core/Object3D.js +673 -26
- package/src/core/Raycaster.js +136 -2
- package/src/core/RenderTarget.js +256 -27
- package/src/core/RenderTarget3D.js +48 -0
- package/src/core/Timer.js +184 -0
- package/src/core/Uniform.js +29 -0
- package/src/core/UniformsGroup.js +84 -2
- package/src/extras/Controls.js +89 -1
- package/src/extras/DataUtils.js +50 -9
- package/src/extras/Earcut.js +18 -779
- package/src/extras/ImageUtils.js +22 -14
- package/src/extras/PMREMGenerator.js +316 -67
- package/src/extras/ShapeUtils.js +24 -2
- package/src/extras/TextureUtils.js +101 -15
- package/src/extras/core/Curve.js +156 -55
- package/src/extras/core/CurvePath.js +63 -22
- package/src/extras/core/Interpolations.js +34 -2
- package/src/extras/core/Path.js +134 -1
- package/src/extras/core/Shape.js +66 -3
- package/src/extras/core/ShapePath.js +80 -4
- package/src/extras/curves/ArcCurve.js +22 -0
- package/src/extras/curves/CatmullRomCurve3.js +89 -18
- package/src/extras/curves/CubicBezierCurve.js +67 -0
- package/src/extras/curves/CubicBezierCurve3.js +50 -0
- package/src/extras/curves/EllipseCurve.js +102 -0
- package/src/extras/curves/LineCurve.js +36 -0
- package/src/extras/curves/LineCurve3.js +36 -0
- package/src/extras/curves/QuadraticBezierCurve.js +59 -0
- package/src/extras/curves/QuadraticBezierCurve3.js +43 -0
- package/src/extras/curves/SplineCurve.js +48 -0
- package/src/extras/lib/earcut.js +685 -0
- package/src/geometries/BoxGeometry.js +39 -0
- package/src/geometries/CapsuleGeometry.js +196 -11
- package/src/geometries/CircleGeometry.js +41 -0
- package/src/geometries/ConeGeometry.js +39 -0
- package/src/geometries/CylinderGeometry.js +42 -2
- package/src/geometries/DodecahedronGeometry.js +33 -0
- package/src/geometries/EdgesGeometry.js +30 -2
- package/src/geometries/ExtrudeGeometry.js +148 -52
- package/src/geometries/IcosahedronGeometry.js +33 -0
- package/src/geometries/LatheGeometry.js +44 -3
- package/src/geometries/OctahedronGeometry.js +33 -0
- package/src/geometries/PlaneGeometry.js +35 -0
- package/src/geometries/PolyhedronGeometry.js +30 -1
- package/src/geometries/RingGeometry.js +37 -0
- package/src/geometries/ShapeGeometry.js +38 -0
- package/src/geometries/SphereGeometry.js +38 -0
- package/src/geometries/TetrahedronGeometry.js +33 -0
- package/src/geometries/TorusGeometry.js +44 -3
- package/src/geometries/TorusKnotGeometry.js +39 -0
- package/src/geometries/TubeGeometry.js +50 -0
- package/src/geometries/WireframeGeometry.js +32 -0
- package/src/helpers/ArrowHelper.js +62 -5
- package/src/helpers/AxesHelper.js +28 -0
- package/src/helpers/Box3Helper.js +28 -0
- package/src/helpers/BoxHelper.js +43 -7
- package/src/helpers/CameraHelper.js +103 -27
- package/src/helpers/DirectionalLightHelper.js +55 -0
- package/src/helpers/GridHelper.js +26 -0
- package/src/helpers/HemisphereLightHelper.js +42 -0
- package/src/helpers/PlaneHelper.js +33 -0
- package/src/helpers/PointLightHelper.js +43 -24
- package/src/helpers/PolarGridHelper.js +30 -0
- package/src/helpers/SkeletonHelper.js +73 -7
- package/src/helpers/SpotLightHelper.js +43 -0
- package/src/lights/AmbientLight.js +25 -0
- package/src/lights/DirectionalLight.js +70 -0
- package/src/lights/DirectionalLightShadow.js +15 -0
- package/src/lights/HemisphereLight.js +42 -0
- package/src/lights/Light.js +37 -11
- package/src/lights/LightProbe.js +37 -9
- package/src/lights/LightShadow.js +202 -7
- package/src/lights/PointLight.js +74 -0
- package/src/lights/PointLightShadow.js +15 -80
- package/src/lights/RectAreaLight.js +59 -0
- package/src/lights/SpotLight.js +124 -1
- package/src/lights/SpotLightShadow.js +33 -3
- package/src/lights/webgpu/IESSpotLight.js +22 -0
- package/src/lights/webgpu/ProjectorLight.js +46 -0
- package/src/loaders/AnimationLoader.js +34 -2
- package/src/loaders/AudioLoader.js +34 -2
- package/src/loaders/BufferGeometryLoader.js +38 -13
- package/src/loaders/Cache.js +75 -2
- package/src/loaders/CompressedTextureLoader.js +36 -3
- package/src/loaders/CubeTextureLoader.js +45 -0
- package/src/loaders/DataTextureLoader.js +45 -4
- package/src/loaders/FileLoader.js +85 -5
- package/src/loaders/ImageBitmapLoader.js +113 -11
- package/src/loaders/ImageLoader.js +85 -8
- package/src/loaders/Loader.js +144 -0
- package/src/loaders/LoaderUtils.js +18 -36
- package/src/loaders/LoadingManager.js +187 -0
- package/src/loaders/MaterialLoader.js +62 -3
- package/src/loaders/ObjectLoader.js +131 -31
- package/src/loaders/TextureLoader.js +33 -0
- package/src/loaders/nodes/NodeLoader.js +68 -4
- package/src/loaders/nodes/NodeMaterialLoader.js +45 -0
- package/src/loaders/nodes/NodeObjectLoader.js +61 -0
- package/src/materials/LineBasicMaterial.js +74 -1
- package/src/materials/LineDashedMaterial.js +52 -1
- package/src/materials/Material.js +502 -8
- package/src/materials/MeshBasicMaterial.js +168 -2
- package/src/materials/MeshDepthMaterial.js +94 -0
- package/src/materials/MeshDistanceMaterial.js +76 -0
- package/src/materials/MeshLambertMaterial.js +283 -0
- package/src/materials/MeshMatcapMaterial.js +164 -0
- package/src/materials/MeshNormalMaterial.js +114 -0
- package/src/materials/MeshPhongMaterial.js +298 -0
- package/src/materials/MeshPhysicalMaterial.js +296 -4
- package/src/materials/MeshStandardMaterial.js +300 -2
- package/src/materials/MeshToonMaterial.js +219 -0
- package/src/materials/PointsMaterial.js +89 -0
- package/src/materials/RawShaderMaterial.js +25 -0
- package/src/materials/ShaderMaterial.js +234 -6
- package/src/materials/ShadowMaterial.js +54 -0
- package/src/materials/SpriteMaterial.js +82 -0
- package/src/materials/nodes/Line2NodeMaterial.js +158 -53
- package/src/materials/nodes/LineBasicNodeMaterial.js +17 -2
- package/src/materials/nodes/LineDashedNodeMaterial.js +81 -6
- package/src/materials/nodes/MeshBasicNodeMaterial.js +59 -2
- package/src/materials/nodes/MeshLambertNodeMaterial.js +35 -0
- package/src/materials/nodes/MeshMatcapNodeMaterial.js +23 -3
- package/src/materials/nodes/MeshNormalNodeMaterial.js +27 -4
- package/src/materials/nodes/MeshPhongNodeMaterial.js +64 -1
- package/src/materials/nodes/MeshPhysicalNodeMaterial.js +276 -3
- package/src/materials/nodes/MeshSSSNodeMaterial.js +98 -10
- package/src/materials/nodes/MeshStandardNodeMaterial.js +83 -4
- package/src/materials/nodes/MeshToonNodeMaterial.js +28 -0
- package/src/materials/nodes/NodeMaterial.js +789 -74
- package/src/materials/nodes/NodeMaterials.js +0 -1
- package/src/materials/nodes/PointsNodeMaterial.js +180 -11
- package/src/materials/nodes/ShadowNodeMaterial.js +38 -0
- package/src/materials/nodes/SpriteNodeMaterial.js +86 -23
- package/src/materials/nodes/VolumeNodeMaterial.js +57 -84
- package/src/materials/nodes/manager/NodeMaterialObserver.js +329 -12
- package/src/math/Box2.js +177 -0
- package/src/math/Box3.js +271 -0
- package/src/math/Color.js +355 -11
- package/src/math/ColorManagement.js +158 -92
- package/src/math/Cylindrical.js +65 -6
- package/src/math/Euler.js +139 -5
- package/src/math/Frustum.js +108 -9
- package/src/math/FrustumArray.js +258 -0
- package/src/math/Interpolant.js +87 -8
- package/src/math/Line3.js +221 -2
- package/src/math/MathUtils.js +408 -20
- package/src/math/Matrix2.js +70 -0
- package/src/math/Matrix3.js +229 -4
- package/src/math/Matrix4.js +489 -94
- package/src/math/Plane.js +164 -2
- package/src/math/Quaternion.js +322 -90
- package/src/math/Ray.js +162 -0
- package/src/math/Sphere.js +175 -0
- package/src/math/Spherical.js +73 -11
- package/src/math/SphericalHarmonics3.js +112 -14
- package/src/math/Triangle.js +206 -2
- package/src/math/Vector2.js +396 -10
- package/src/math/Vector3.js +550 -15
- package/src/math/Vector4.js +415 -9
- package/src/math/interpolants/BezierInterpolant.js +108 -0
- package/src/math/interpolants/CubicInterpolant.js +10 -1
- package/src/math/interpolants/DiscreteInterpolant.js +10 -2
- package/src/math/interpolants/LinearInterpolant.js +13 -0
- package/src/math/interpolants/QuaternionLinearInterpolant.js +10 -1
- package/src/nodes/Nodes.js +91 -88
- package/src/nodes/TSL.js +32 -38
- package/src/nodes/accessors/AccessorsUtils.js +37 -9
- package/src/nodes/accessors/Arrays.js +68 -0
- package/src/nodes/accessors/BatchNode.js +49 -14
- package/src/nodes/accessors/Bitangent.js +82 -13
- package/src/nodes/accessors/BufferAttributeNode.js +269 -8
- package/src/nodes/accessors/BufferNode.js +91 -2
- package/src/nodes/accessors/BuiltinNode.js +63 -0
- package/src/nodes/accessors/Camera.js +400 -10
- package/src/nodes/accessors/ClippingNode.js +149 -45
- package/src/nodes/accessors/CubeTextureNode.js +137 -7
- package/src/nodes/accessors/InstanceNode.js +245 -40
- package/src/nodes/accessors/InstancedMeshNode.js +50 -0
- package/src/nodes/accessors/Lights.js +88 -0
- package/src/nodes/accessors/MaterialNode.js +355 -13
- package/src/nodes/accessors/MaterialProperties.js +57 -1
- package/src/nodes/accessors/MaterialReferenceNode.js +52 -14
- package/src/nodes/accessors/ModelNode.js +117 -5
- package/src/nodes/accessors/ModelViewProjectionNode.js +10 -39
- package/src/nodes/accessors/MorphNode.js +73 -26
- package/src/nodes/accessors/Normal.js +174 -19
- package/src/nodes/accessors/Object3DNode.js +146 -12
- package/src/nodes/accessors/PointUVNode.js +25 -0
- package/src/nodes/accessors/Position.js +119 -7
- package/src/nodes/accessors/ReferenceBaseNode.js +190 -4
- package/src/nodes/accessors/ReferenceNode.js +223 -8
- package/src/nodes/accessors/ReflectVector.js +29 -3
- package/src/nodes/accessors/RendererReferenceNode.js +45 -2
- package/src/nodes/accessors/SceneProperties.js +53 -0
- package/src/nodes/accessors/SkinningNode.js +180 -43
- package/src/nodes/accessors/StorageBufferNode.js +278 -26
- package/src/nodes/accessors/StorageTextureNode.js +205 -12
- package/src/nodes/accessors/Tangent.js +48 -10
- package/src/nodes/accessors/TangentUtils.js +46 -0
- package/src/nodes/accessors/Texture3DNode.js +104 -11
- package/src/nodes/accessors/TextureBicubic.js +31 -4
- package/src/nodes/accessors/TextureNode.js +564 -52
- package/src/nodes/accessors/TextureSizeNode.js +42 -1
- package/src/nodes/accessors/UV.js +9 -1
- package/src/nodes/accessors/UniformArrayNode.js +226 -34
- package/src/nodes/accessors/UserDataNode.js +46 -2
- package/src/nodes/accessors/VelocityNode.js +93 -3
- package/src/nodes/accessors/VertexColorNode.js +39 -4
- package/src/nodes/code/CodeNode.js +101 -8
- package/src/nodes/code/ExpressionNode.js +29 -2
- package/src/nodes/code/FunctionCallNode.js +98 -10
- package/src/nodes/code/FunctionNode.js +69 -2
- package/src/nodes/core/ArrayNode.js +174 -0
- package/src/nodes/core/AssignNode.js +80 -9
- package/src/nodes/core/AttributeNode.js +47 -4
- package/src/nodes/core/BypassNode.js +47 -3
- package/src/nodes/core/ConstNode.js +32 -0
- package/src/nodes/core/ContextNode.js +220 -14
- package/src/nodes/core/IndexNode.js +72 -7
- package/src/nodes/core/InputNode.js +50 -1
- package/src/nodes/core/InspectorNode.js +128 -0
- package/src/nodes/core/IsolateNode.js +133 -0
- package/src/nodes/core/LightingModel.js +65 -5
- package/src/nodes/core/MRTNode.js +113 -2
- package/src/nodes/core/Node.js +595 -36
- package/src/nodes/core/NodeAttribute.js +38 -0
- package/src/nodes/core/NodeBuilder.js +1840 -121
- package/src/nodes/core/NodeCache.js +41 -2
- package/src/nodes/core/NodeCode.js +31 -0
- package/src/nodes/core/NodeError.js +28 -0
- package/src/nodes/core/NodeFrame.js +153 -24
- package/src/nodes/core/NodeFunction.js +48 -1
- package/src/nodes/core/NodeFunctionInput.js +44 -0
- package/src/nodes/core/NodeParser.js +13 -1
- package/src/nodes/core/NodeUniform.js +53 -1
- package/src/nodes/core/NodeUtils.js +201 -51
- package/src/nodes/core/NodeVar.js +47 -1
- package/src/nodes/core/NodeVarying.js +47 -1
- package/src/nodes/core/OutputStructNode.js +54 -12
- package/src/nodes/core/ParameterNode.js +60 -2
- package/src/nodes/core/PropertyNode.js +286 -7
- package/src/nodes/core/StackNode.js +337 -20
- package/src/nodes/core/StackTrace.js +139 -0
- package/src/nodes/core/StructNode.js +134 -0
- package/src/nodes/core/StructType.js +13 -0
- package/src/nodes/core/StructTypeNode.js +126 -6
- package/src/nodes/core/SubBuildNode.js +89 -0
- package/src/nodes/core/TempNode.js +31 -5
- package/src/nodes/core/UniformGroupNode.js +85 -7
- package/src/nodes/core/UniformNode.js +163 -16
- package/src/nodes/core/VarNode.js +317 -10
- package/src/nodes/core/VaryingNode.js +115 -13
- package/src/nodes/core/constants.js +40 -0
- package/src/nodes/display/BlendModes.js +171 -0
- package/src/nodes/display/BumpMapNode.js +38 -2
- package/src/nodes/display/ColorAdjustment.js +118 -6
- package/src/nodes/display/ColorSpaceFunctions.js +22 -6
- package/src/nodes/display/ColorSpaceNode.js +97 -47
- package/src/nodes/display/FrontFacingNode.js +64 -7
- package/src/nodes/display/NormalMapNode.js +101 -54
- package/src/nodes/display/PassNode.js +690 -33
- package/src/nodes/display/RenderOutputNode.js +94 -4
- package/src/nodes/display/ScreenNode.js +138 -27
- package/src/nodes/display/ToneMappingFunctions.js +62 -10
- package/src/nodes/display/ToneMappingNode.js +88 -8
- package/src/nodes/display/ToonOutlinePassNode.js +84 -4
- package/src/nodes/display/ViewportDepthNode.js +227 -10
- package/src/nodes/display/ViewportDepthTextureNode.js +39 -5
- package/src/nodes/display/ViewportSharedTextureNode.js +35 -1
- package/src/nodes/display/ViewportTextureNode.js +171 -7
- package/src/nodes/fog/Fog.js +97 -0
- package/src/nodes/functions/BSDF/BRDF_GGX.js +2 -6
- package/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +52 -0
- package/src/nodes/functions/BSDF/BRDF_Sheen.js +4 -4
- package/src/nodes/functions/BSDF/DFGLUT.js +56 -0
- package/src/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
- package/src/nodes/functions/BSDF/LTC.js +45 -1
- package/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +1 -1
- package/src/nodes/functions/BasicLightingModel.js +28 -6
- package/src/nodes/functions/PhongLightingModel.js +36 -6
- package/src/nodes/functions/PhysicalLightingModel.js +336 -91
- package/src/nodes/functions/ShadowMaskModel.js +30 -3
- package/src/nodes/functions/ToonLightingModel.js +21 -2
- package/src/nodes/functions/VolumetricLightingModel.js +183 -0
- package/src/nodes/functions/material/getAlphaHashThreshold.js +68 -0
- package/src/nodes/functions/material/getGeometryRoughness.js +10 -4
- package/src/nodes/functions/material/getParallaxCorrectNormal.js +37 -0
- package/src/nodes/geometry/RangeNode.js +97 -8
- package/src/nodes/gpgpu/AtomicFunctionNode.js +198 -23
- package/src/nodes/gpgpu/BarrierNode.js +52 -3
- package/src/nodes/gpgpu/ComputeBuiltinNode.js +135 -6
- package/src/nodes/gpgpu/ComputeNode.js +212 -16
- package/src/nodes/gpgpu/SubgroupFunctionNode.js +455 -0
- package/src/nodes/gpgpu/WorkgroupInfoNode.js +143 -9
- package/src/nodes/lighting/AONode.js +18 -0
- package/src/nodes/lighting/AmbientLightNode.js +10 -0
- package/src/nodes/lighting/AnalyticLightNode.js +186 -399
- package/src/nodes/lighting/BasicEnvironmentNode.js +19 -0
- package/src/nodes/lighting/BasicLightMapNode.js +17 -0
- package/src/nodes/lighting/DirectionalLightNode.js +12 -11
- package/src/nodes/lighting/EnvironmentNode.js +59 -19
- package/src/nodes/lighting/HemisphereLightNode.js +33 -2
- package/src/nodes/lighting/IESSpotLightNode.js +13 -1
- package/src/nodes/lighting/IrradianceNode.js +17 -0
- package/src/nodes/lighting/LightProbeNode.js +20 -0
- package/src/nodes/lighting/LightUtils.js +11 -3
- package/src/nodes/lighting/LightingContextNode.js +52 -4
- package/src/nodes/lighting/LightingNode.js +15 -6
- package/src/nodes/lighting/LightsNode.js +238 -35
- package/src/nodes/lighting/PointLightNode.js +60 -25
- package/src/nodes/lighting/PointShadowNode.js +325 -0
- package/src/nodes/lighting/ProjectorLightNode.js +91 -0
- package/src/nodes/lighting/RectAreaLightNode.js +50 -14
- package/src/nodes/lighting/ShadowBaseNode.js +81 -0
- package/src/nodes/lighting/ShadowFilterNode.js +264 -0
- package/src/nodes/lighting/ShadowNode.js +867 -0
- package/src/nodes/lighting/SpotLightNode.js +99 -18
- package/src/nodes/materialx/MaterialXNodes.js +131 -2
- package/src/nodes/materialx/lib/mx_noise.js +166 -2
- package/src/nodes/math/BitcastNode.js +156 -0
- package/src/nodes/math/BitcountNode.js +433 -0
- package/src/nodes/math/ConditionalNode.js +110 -21
- package/src/nodes/math/Hash.js +8 -0
- package/src/nodes/math/MathNode.js +820 -97
- package/src/nodes/math/MathUtils.js +47 -1
- package/src/nodes/math/OperatorNode.js +517 -84
- package/src/nodes/math/PackFloatNode.js +98 -0
- package/src/nodes/math/TriNoise3D.js +17 -7
- package/src/nodes/math/UnpackFloatNode.js +96 -0
- package/src/nodes/parsers/GLSLNodeFunction.js +16 -0
- package/src/nodes/parsers/GLSLNodeParser.js +11 -0
- package/src/nodes/pmrem/PMREMNode.js +180 -23
- package/src/nodes/pmrem/PMREMUtils.js +114 -5
- package/src/nodes/procedural/Checker.js +8 -0
- package/src/nodes/shapes/Shapes.js +33 -0
- package/src/nodes/tsl/TSLBase.js +10 -4
- package/src/nodes/tsl/TSLCore.js +732 -160
- package/src/nodes/utils/ArrayElementNode.js +55 -4
- package/src/nodes/utils/ConvertNode.js +31 -0
- package/src/nodes/utils/CubeMapNode.js +79 -2
- package/src/nodes/utils/DebugNode.js +83 -0
- package/src/nodes/utils/Discard.js +18 -2
- package/src/nodes/utils/EquirectUV.js +27 -0
- package/src/nodes/utils/EventNode.js +118 -0
- package/src/nodes/utils/FlipNode.js +38 -0
- package/src/nodes/utils/FunctionOverloadingNode.js +91 -22
- package/src/nodes/utils/JoinNode.js +57 -4
- package/src/nodes/utils/LoopNode.js +193 -55
- package/src/nodes/utils/MatcapUV.js +22 -0
- package/src/nodes/utils/MaxMipLevelNode.js +49 -1
- package/src/nodes/utils/MemberNode.js +120 -0
- package/src/nodes/utils/Oscillators.js +41 -0
- package/src/nodes/utils/Packing.js +30 -1
- package/src/nodes/utils/PostProcessingUtils.js +154 -0
- package/src/nodes/utils/RTTNode.js +165 -9
- package/src/nodes/utils/ReflectorNode.js +407 -21
- package/src/nodes/utils/RemapNode.js +81 -2
- package/src/nodes/utils/RotateNode.js +41 -1
- package/src/nodes/utils/SampleNode.js +91 -0
- package/src/nodes/utils/SetNode.js +44 -1
- package/src/nodes/utils/SplitNode.js +66 -3
- package/src/nodes/utils/SpriteSheetUV.js +35 -0
- package/src/nodes/utils/SpriteUtils.js +16 -0
- package/src/nodes/utils/StorageArrayElementNode.js +56 -3
- package/src/nodes/utils/Timer.js +26 -0
- package/src/nodes/utils/TriplanarTextures.js +65 -0
- package/src/nodes/utils/UVUtils.js +48 -0
- package/src/nodes/utils/ViewportUtils.js +12 -0
- package/src/objects/BatchedMesh.js +798 -309
- package/src/objects/Bone.js +24 -0
- package/src/objects/ClippingGroup.js +68 -0
- package/src/objects/Group.js +24 -0
- package/src/objects/InstancedMesh.js +131 -2
- package/src/objects/LOD.js +99 -5
- package/src/objects/Line.js +90 -7
- package/src/objects/LineLoop.js +20 -0
- package/src/objects/LineSegments.js +20 -1
- package/src/objects/Mesh.js +84 -0
- package/src/objects/Points.js +60 -0
- package/src/objects/Skeleton.js +120 -5
- package/src/objects/SkinnedMesh.js +102 -6
- package/src/objects/Sprite.js +65 -1
- package/src/renderers/WebGL3DRenderTarget.js +26 -0
- package/src/renderers/WebGLArrayRenderTarget.js +26 -0
- package/src/renderers/WebGLCubeRenderTarget.js +41 -5
- package/src/renderers/WebGLRenderTarget.js +19 -0
- package/src/renderers/WebGLRenderer.js +1016 -278
- package/src/renderers/common/Animation.js +123 -14
- package/src/renderers/common/Attributes.js +41 -1
- package/src/renderers/common/Backend.js +623 -44
- package/src/renderers/common/Background.js +99 -16
- package/src/renderers/common/BindGroup.js +37 -2
- package/src/renderers/common/Binding.js +46 -0
- package/src/renderers/common/Bindings.js +211 -20
- package/src/renderers/common/BlendMode.js +143 -0
- package/src/renderers/common/Buffer.js +89 -0
- package/src/renderers/common/BufferUtils.js +25 -0
- package/src/renderers/common/BundleGroup.js +57 -0
- package/src/renderers/common/CanvasTarget.js +341 -0
- package/src/renderers/common/ChainMap.js +73 -10
- package/src/renderers/common/ClippingContext.js +172 -87
- package/src/renderers/common/Color4.js +40 -0
- package/src/renderers/common/ComputePipeline.js +24 -0
- package/src/renderers/common/Constants.js +2 -1
- package/src/renderers/common/CubeRenderTarget.js +77 -7
- package/src/renderers/common/DataMap.js +37 -1
- package/src/renderers/common/Geometries.js +163 -14
- package/src/renderers/common/IndirectStorageBufferAttribute.js +38 -0
- package/src/renderers/common/Info.js +81 -36
- package/src/renderers/common/InspectorBase.js +146 -0
- package/src/renderers/common/Lighting.js +57 -0
- package/src/renderers/common/Pipeline.js +22 -0
- package/src/renderers/common/Pipelines.js +150 -7
- package/src/renderers/common/PostProcessing.js +22 -84
- package/src/renderers/common/ProgrammableStage.js +60 -2
- package/src/renderers/common/QuadMesh.js +63 -6
- package/src/renderers/common/RenderBundle.js +14 -8
- package/src/renderers/common/RenderBundles.js +40 -10
- package/src/renderers/common/RenderContext.js +219 -4
- package/src/renderers/common/RenderContexts.js +54 -17
- package/src/renderers/common/RenderList.js +233 -24
- package/src/renderers/common/RenderLists.js +46 -6
- package/src/renderers/common/RenderObject.js +548 -46
- package/src/renderers/common/RenderObjectPipeline.js +40 -0
- package/src/renderers/common/RenderObjects.js +133 -15
- package/src/renderers/common/RenderPipeline.js +216 -6
- package/src/renderers/common/Renderer.js +2155 -332
- package/src/renderers/common/RendererUtils.js +200 -0
- package/src/renderers/common/SampledTexture.js +99 -39
- package/src/renderers/common/Sampler.js +148 -1
- package/src/renderers/common/Storage3DTexture.js +100 -0
- package/src/renderers/common/StorageArrayTexture.js +84 -0
- package/src/renderers/common/StorageBuffer.js +38 -2
- package/src/renderers/common/StorageBufferAttribute.js +31 -2
- package/src/renderers/common/StorageInstancedBufferAttribute.js +31 -2
- package/src/renderers/common/StorageTexture.js +65 -0
- package/src/renderers/common/Textures.js +273 -57
- package/src/renderers/common/TimestampQueryPool.js +163 -0
- package/src/renderers/common/Uniform.js +233 -3
- package/src/renderers/common/UniformBuffer.js +19 -0
- package/src/renderers/common/UniformsGroup.js +235 -26
- package/src/renderers/common/XRManager.js +1677 -0
- package/src/renderers/common/XRRenderTarget.js +91 -0
- package/src/renderers/common/extras/PMREMGenerator.js +371 -108
- package/src/renderers/common/nodes/NodeBuilderState.js +100 -6
- package/src/renderers/common/nodes/NodeLibrary.js +95 -17
- package/src/renderers/common/nodes/NodeManager.js +852 -0
- package/src/renderers/common/nodes/NodeSampledTexture.js +84 -8
- package/src/renderers/common/nodes/NodeSampler.js +41 -1
- package/src/renderers/common/nodes/NodeStorageBuffer.js +48 -3
- package/src/renderers/common/nodes/NodeUniform.js +285 -2
- package/src/renderers/common/nodes/NodeUniformBuffer.js +81 -0
- package/src/renderers/common/nodes/NodeUniformsGroup.js +31 -18
- package/src/renderers/shaders/DFGLUTData.js +49 -0
- package/src/renderers/shaders/ShaderChunk/batching_pars_vertex.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk/color_fragment.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_pars_fragment.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_pars_vertex.glsl.js +1 -5
- package/src/renderers/shaders/ShaderChunk/color_vertex.glsl.js +8 -10
- package/src/renderers/shaders/ShaderChunk/colorspace_pars_fragment.glsl.js +4 -24
- package/src/renderers/shaders/ShaderChunk/common.glsl.js +0 -12
- package/src/renderers/shaders/ShaderChunk/emissivemap_fragment.glsl.js +8 -0
- package/src/renderers/shaders/ShaderChunk/envmap_common_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/envmap_fragment.glsl.js +7 -11
- package/src/renderers/shaders/ShaderChunk/envmap_physical_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +5 -2
- package/src/renderers/shaders/ShaderChunk/lights_fragment_end.glsl.js +6 -0
- package/src/renderers/shaders/ShaderChunk/lights_fragment_maps.glsl.js +6 -2
- package/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +8 -4
- package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +154 -59
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_pars_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/logdepthbuf_vertex.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/map_fragment.glsl.js +2 -2
- package/src/renderers/shaders/ShaderChunk/packing.glsl.js +20 -4
- package/src/renderers/shaders/ShaderChunk/premultiplied_alpha_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +230 -181
- package/src/renderers/shaders/ShaderChunk/shadowmask_pars_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/transmission_fragment.glsl.js +1 -1
- package/src/renderers/shaders/ShaderChunk/transmission_pars_fragment.glsl.js +7 -7
- package/src/renderers/shaders/ShaderChunk.js +3 -3
- package/src/renderers/shaders/ShaderLib/background.glsl.js +1 -1
- package/src/renderers/shaders/ShaderLib/depth.glsl.js +14 -2
- package/src/renderers/shaders/ShaderLib/{distanceRGBA.glsl.js → distance.glsl.js} +1 -2
- package/src/renderers/shaders/ShaderLib/meshlambert.glsl.js +2 -1
- package/src/renderers/shaders/ShaderLib/meshnormal.glsl.js +1 -2
- package/src/renderers/shaders/ShaderLib/meshphong.glsl.js +2 -1
- package/src/renderers/shaders/ShaderLib/meshphysical.glsl.js +4 -9
- package/src/renderers/shaders/ShaderLib/meshtoon.glsl.js +0 -1
- package/src/renderers/shaders/ShaderLib/shadow.glsl.js +1 -1
- package/src/renderers/shaders/ShaderLib/vsm.glsl.js +4 -6
- package/src/renderers/shaders/ShaderLib.js +7 -5
- package/src/renderers/shaders/UniformsLib.js +2 -7
- package/src/renderers/shaders/UniformsUtils.js +21 -2
- package/src/renderers/webgl/WebGLAttributes.js +4 -0
- package/src/renderers/webgl/WebGLBackground.js +30 -5
- package/src/renderers/webgl/WebGLBindingStates.js +99 -27
- package/src/renderers/webgl/WebGLBufferRenderer.js +2 -6
- package/src/renderers/webgl/WebGLCapabilities.js +7 -14
- package/src/renderers/webgl/WebGLEnvironments.js +228 -0
- package/src/renderers/webgl/WebGLExtensions.js +2 -25
- package/src/renderers/webgl/WebGLGeometries.js +10 -35
- package/src/renderers/webgl/WebGLIndexedBufferRenderer.js +2 -6
- package/src/renderers/webgl/WebGLInfo.js +3 -1
- package/src/renderers/webgl/WebGLLights.js +18 -1
- package/src/renderers/webgl/WebGLMaterials.js +12 -0
- package/src/renderers/webgl/WebGLObjects.js +3 -1
- package/src/renderers/webgl/WebGLOutput.js +267 -0
- package/src/renderers/webgl/WebGLProgram.js +87 -148
- package/src/renderers/webgl/WebGLPrograms.js +53 -51
- package/src/renderers/webgl/WebGLRenderLists.js +15 -0
- package/src/renderers/webgl/WebGLShadowMap.js +204 -28
- package/src/renderers/webgl/WebGLState.js +88 -56
- package/src/renderers/webgl/WebGLTextures.js +293 -59
- package/src/renderers/webgl/WebGLUniforms.js +40 -3
- package/src/renderers/webgl/WebGLUniformsGroups.js +5 -3
- package/src/renderers/webgl/WebGLUtils.js +7 -5
- package/src/renderers/webgl-fallback/WebGLBackend.js +1416 -293
- package/src/renderers/webgl-fallback/WebGLBufferRenderer.js +5 -10
- package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +785 -92
- package/src/renderers/webgl-fallback/utils/WebGLAttributeUtils.js +62 -1
- package/src/renderers/webgl-fallback/utils/WebGLCapabilities.js +28 -0
- package/src/renderers/webgl-fallback/utils/WebGLConstants.js +3 -3
- package/src/renderers/webgl-fallback/utils/WebGLExtensions.js +45 -0
- package/src/renderers/webgl-fallback/utils/WebGLState.js +584 -20
- package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +468 -80
- package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +396 -0
- package/src/renderers/webgl-fallback/utils/WebGLUtils.js +72 -24
- package/src/renderers/webgpu/WebGPUBackend.js +1517 -428
- package/src/renderers/webgpu/WebGPURenderer.Nodes.js +31 -4
- package/src/renderers/webgpu/WebGPURenderer.js +55 -4
- package/src/renderers/webgpu/nodes/BasicNodeLibrary.js +23 -16
- package/src/renderers/webgpu/nodes/StandardNodeLibrary.js +37 -42
- package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +1335 -241
- package/src/renderers/webgpu/nodes/WGSLNodeFunction.js +32 -4
- package/src/renderers/webgpu/nodes/WGSLNodeParser.js +11 -0
- package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +144 -20
- package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +460 -116
- package/src/renderers/webgpu/utils/WebGPUConstants.js +17 -4
- package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +283 -69
- package/src/renderers/webgpu/utils/WebGPUTexturePassUtils.js +225 -178
- package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +583 -191
- package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +310 -0
- package/src/renderers/webgpu/utils/WebGPUUtils.js +150 -28
- package/src/renderers/webxr/WebXRController.js +87 -2
- package/src/renderers/webxr/WebXRDepthSensing.js +52 -7
- package/src/renderers/webxr/WebXRManager.js +275 -15
- package/src/scenes/Fog.js +60 -0
- package/src/scenes/FogExp2.js +51 -0
- package/src/scenes/Scene.js +88 -0
- package/src/textures/CanvasTexture.js +28 -0
- package/src/textures/CompressedArrayTexture.js +57 -0
- package/src/textures/CompressedCubeTexture.js +29 -0
- package/src/textures/CompressedTexture.js +64 -6
- package/src/textures/CubeDepthTexture.js +76 -0
- package/src/textures/CubeTexture.js +52 -4
- package/src/textures/Data3DTexture.js +79 -2
- package/src/textures/DataArrayTexture.js +93 -0
- package/src/textures/DataTexture.js +65 -0
- package/src/textures/DepthTexture.js +59 -11
- package/src/textures/ExternalTexture.js +56 -0
- package/src/textures/FramebufferTexture.js +62 -0
- package/src/textures/Source.js +106 -4
- package/src/textures/Texture.js +488 -6
- package/src/textures/VideoFrameTexture.js +72 -0
- package/src/textures/VideoTexture.js +78 -6
- package/src/utils.js +322 -3
- package/examples/jsm/animation/MMDAnimationHelper.js +0 -1207
- package/examples/jsm/animation/MMDPhysics.js +0 -1406
- package/examples/jsm/cameras/CinematicCamera.js +0 -208
- package/examples/jsm/effects/PeppersGhostEffect.js +0 -153
- package/examples/jsm/exporters/MMDExporter.js +0 -217
- package/examples/jsm/geometries/InstancedPointsGeometry.js +0 -174
- package/examples/jsm/geometries/ParametricGeometries.js +0 -254
- package/examples/jsm/libs/mmdparser.module.js +0 -11530
- package/examples/jsm/loaders/GLTFLoaderAnimationPointer.js +0 -729
- package/examples/jsm/loaders/MMDLoader.js +0 -2295
- package/examples/jsm/loaders/RGBMLoader.js +0 -1081
- package/examples/jsm/materials/MeshGouraudMaterial.js +0 -432
- package/examples/jsm/materials/MeshPostProcessingMaterial.js +0 -144
- package/examples/jsm/misc/Timer.js +0 -128
- package/examples/jsm/objects/InstancedPoints.js +0 -21
- package/examples/jsm/shaders/GodRaysShader.js +0 -321
- package/examples/jsm/shaders/MMDToonShader.js +0 -134
- package/src/materials/nodes/InstancedPointsNodeMaterial.js +0 -156
- package/src/nodes/accessors/InstancedPointsMaterialNode.js +0 -24
- package/src/nodes/accessors/SceneNode.js +0 -55
- package/src/nodes/code/ScriptableNode.js +0 -505
- package/src/nodes/code/ScriptableValueNode.js +0 -170
- package/src/nodes/core/CacheNode.js +0 -50
- package/src/nodes/core/UniformGroup.js +0 -13
- package/src/nodes/display/AfterImageNode.js +0 -158
- package/src/nodes/display/AnaglyphPassNode.js +0 -67
- package/src/nodes/display/AnamorphicNode.js +0 -151
- package/src/nodes/display/BlendMode.js +0 -54
- package/src/nodes/display/BloomNode.js +0 -341
- package/src/nodes/display/DenoiseNode.js +0 -204
- package/src/nodes/display/DepthOfFieldNode.js +0 -124
- package/src/nodes/display/DotScreenNode.js +0 -66
- package/src/nodes/display/FXAANode.js +0 -332
- package/src/nodes/display/FilmNode.js +0 -56
- package/src/nodes/display/GTAONode.js +0 -331
- package/src/nodes/display/GaussianBlurNode.js +0 -213
- package/src/nodes/display/Lut3DNode.js +0 -57
- package/src/nodes/display/MotionBlur.js +0 -25
- package/src/nodes/display/ParallaxBarrierPassNode.js +0 -58
- package/src/nodes/display/PixelationPassNode.js +0 -213
- package/src/nodes/display/PosterizeNode.js +0 -33
- package/src/nodes/display/RGBShiftNode.js +0 -53
- package/src/nodes/display/StereoCompositePassNode.js +0 -110
- package/src/nodes/display/TransitionNode.js +0 -80
- package/src/nodes/fog/FogExp2Node.js +0 -35
- package/src/nodes/fog/FogNode.js +0 -50
- package/src/nodes/fog/FogRangeNode.js +0 -36
- package/src/nodes/functions/BSDF/DFGApprox.js +0 -30
- package/src/nodes/utils/EquirectUVNode.js +0 -36
- package/src/nodes/utils/MatcapUVNode.js +0 -33
- package/src/nodes/utils/OscNode.js +0 -85
- package/src/nodes/utils/SpriteSheetUVNode.js +0 -45
- package/src/nodes/utils/TimerNode.js +0 -97
- package/src/nodes/utils/TriplanarTexturesNode.js +0 -64
- package/src/renderers/common/nodes/Nodes.js +0 -534
- package/src/renderers/webgl/WebGLCubeMaps.js +0 -99
- package/src/renderers/webgl/WebGLCubeUVMaps.js +0 -136
|
@@ -0,0 +1,1613 @@
|
|
|
1
|
+
export class Style {
|
|
2
|
+
|
|
3
|
+
static init() {
|
|
4
|
+
|
|
5
|
+
if ( document.getElementById( 'profiler-styles' ) ) return;
|
|
6
|
+
|
|
7
|
+
const css = `
|
|
8
|
+
:root {
|
|
9
|
+
--profiler-bg: #1e1e24f5;
|
|
10
|
+
--profiler-header-bg: #2a2a33aa;
|
|
11
|
+
--profiler-header: #2a2a33;
|
|
12
|
+
--profiler-border: #4a4a5a;
|
|
13
|
+
--text-primary: #e0e0e0;
|
|
14
|
+
--text-secondary: #9a9aab;
|
|
15
|
+
--accent-color: #00aaff;
|
|
16
|
+
--color-green: #4caf50;
|
|
17
|
+
--color-yellow: #ffc107;
|
|
18
|
+
--color-red: #f44336;
|
|
19
|
+
--font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
20
|
+
--font-mono: 'Fira Code', 'Courier New', Courier, monospace;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Fira+Code&display=swap');
|
|
24
|
+
|
|
25
|
+
#profiler-panel *, #profiler-toggle * {
|
|
26
|
+
text-transform: initial;
|
|
27
|
+
line-height: normal;
|
|
28
|
+
box-sizing: border-box;
|
|
29
|
+
-webkit-font-smoothing: antialiased;
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#profiler-toggle {
|
|
34
|
+
position: fixed;
|
|
35
|
+
top: 15px;
|
|
36
|
+
right: 15px;
|
|
37
|
+
background-color: rgba(30, 30, 36, 0.85);
|
|
38
|
+
border: 1px solid #4a4a5a54;
|
|
39
|
+
border-radius: 12px 6px 6px 12px;
|
|
40
|
+
color: var(--text-primary);
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
z-index: 1001;
|
|
43
|
+
transition: all 0.2s ease-in-out;
|
|
44
|
+
/*font-size: 14px;*/
|
|
45
|
+
font-size: 15px;
|
|
46
|
+
backdrop-filter: blur(8px);
|
|
47
|
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: stretch;
|
|
50
|
+
padding: 0;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
font-family: var(--font-family);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#profiler-toggle:hover {
|
|
56
|
+
border-color: var(--accent-color);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#profiler-toggle.hidden {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
pointer-events: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
#toggle-icon {
|
|
65
|
+
display: flex;
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
width: 40px;
|
|
69
|
+
font-size: 20px;
|
|
70
|
+
transition: background-color 0.2s;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#profiler-toggle:hover #toggle-icon {
|
|
74
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.toggle-separator {
|
|
78
|
+
width: 1px;
|
|
79
|
+
background-color: var(--profiler-border);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#toggle-text {
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: baseline;
|
|
85
|
+
padding: 8px 14px;
|
|
86
|
+
min-width: 80px;
|
|
87
|
+
justify-content: right;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#toggle-text .fps-label {
|
|
91
|
+
font-size: 0.7em;
|
|
92
|
+
margin-left: 10px;
|
|
93
|
+
color: #999;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#builtin-tabs-container {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: stretch;
|
|
99
|
+
gap: 0;
|
|
100
|
+
border-right: 1px solid #262636;
|
|
101
|
+
order: -1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.builtin-tab-btn {
|
|
105
|
+
background: transparent;
|
|
106
|
+
border: none;
|
|
107
|
+
color: var(--text-secondary);
|
|
108
|
+
cursor: pointer;
|
|
109
|
+
padding: 8px 14px;
|
|
110
|
+
font-family: var(--font-family);
|
|
111
|
+
font-size: 13px;
|
|
112
|
+
font-weight: 600;
|
|
113
|
+
transition: all 0.2s;
|
|
114
|
+
display: flex;
|
|
115
|
+
align-items: center;
|
|
116
|
+
justify-content: center;
|
|
117
|
+
min-width: 32px;
|
|
118
|
+
position: relative;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.builtin-tab-btn svg {
|
|
122
|
+
width: 20px;
|
|
123
|
+
height: 20px;
|
|
124
|
+
stroke: currentColor;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.builtin-tab-btn:hover {
|
|
128
|
+
background-color: rgba(255, 255, 255, 0.08);
|
|
129
|
+
color: var(--accent-color);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.builtin-tab-btn:active {
|
|
133
|
+
background-color: rgba(255, 255, 255, 0.12);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.builtin-tab-btn.active {
|
|
137
|
+
background-color: rgba(0, 170, 255, 0.2);
|
|
138
|
+
color: var(--accent-color);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.builtin-tab-btn.active:hover {
|
|
142
|
+
background-color: rgba(0, 170, 255, 0.3);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
#profiler-mini-panel {
|
|
146
|
+
position: fixed;
|
|
147
|
+
top: 60px;
|
|
148
|
+
right: 15px;
|
|
149
|
+
background-color: rgba(30, 30, 36, 0.85);
|
|
150
|
+
border: 1px solid #4a4a5a54;
|
|
151
|
+
border-radius: 8px;
|
|
152
|
+
color: var(--text-primary);
|
|
153
|
+
z-index: 9999;
|
|
154
|
+
backdrop-filter: blur(8px);
|
|
155
|
+
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
|
|
156
|
+
font-family: var(--font-family);
|
|
157
|
+
font-size: 11px;
|
|
158
|
+
width: 350px;
|
|
159
|
+
max-height: calc(100vh - 100px);
|
|
160
|
+
overflow-y: auto;
|
|
161
|
+
overflow-x: hidden;
|
|
162
|
+
display: none;
|
|
163
|
+
opacity: 0;
|
|
164
|
+
transform: translateY(-10px) scale(0.98);
|
|
165
|
+
transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
|
|
166
|
+
transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
#profiler-mini-panel.visible {
|
|
170
|
+
display: block;
|
|
171
|
+
opacity: 1;
|
|
172
|
+
transform: translateY(0) scale(1);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
#profiler-mini-panel::-webkit-scrollbar {
|
|
176
|
+
width: 6px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
#profiler-mini-panel::-webkit-scrollbar-track {
|
|
180
|
+
background: transparent;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#profiler-mini-panel::-webkit-scrollbar-thumb {
|
|
184
|
+
background: rgba(255, 255, 255, 0.15);
|
|
185
|
+
border-radius: 3px;
|
|
186
|
+
transition: background 0.2s;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
#profiler-mini-panel::-webkit-scrollbar-thumb:hover {
|
|
190
|
+
background: rgba(255, 255, 255, 0.25);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mini-panel-content {
|
|
194
|
+
padding: 0;
|
|
195
|
+
font-size: 11px;
|
|
196
|
+
line-height: 1.5;
|
|
197
|
+
font-family: var(--font-mono);
|
|
198
|
+
letter-spacing: 0.3px;
|
|
199
|
+
user-select: none;
|
|
200
|
+
-webkit-user-select: none;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.mini-panel-content .profiler-content {
|
|
204
|
+
display: block !important;
|
|
205
|
+
background: transparent;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.mini-panel-content .list-scroll-wrapper {
|
|
209
|
+
max-height: calc(100vh - 120px);
|
|
210
|
+
overflow-y: auto;
|
|
211
|
+
overflow-x: hidden;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.mini-panel-content .list-scroll-wrapper::-webkit-scrollbar {
|
|
215
|
+
width: 4px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.mini-panel-content .list-scroll-wrapper::-webkit-scrollbar-track {
|
|
219
|
+
background: transparent;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.mini-panel-content .list-scroll-wrapper::-webkit-scrollbar-thumb {
|
|
223
|
+
background: rgba(255, 255, 255, 0.1);
|
|
224
|
+
border-radius: 2px;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.mini-panel-content .list-scroll-wrapper::-webkit-scrollbar-thumb:hover {
|
|
228
|
+
background: rgba(255, 255, 255, 0.2);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
.mini-panel-content .parameters {
|
|
232
|
+
background: transparent;
|
|
233
|
+
border: none;
|
|
234
|
+
box-shadow: none;
|
|
235
|
+
padding: 4px;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
.mini-panel-content .list-container.parameters {
|
|
239
|
+
padding: 2px 6px 0px 6px !important;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
.mini-panel-content .list-header {
|
|
243
|
+
display: none;
|
|
244
|
+
padding: 2px 4px;
|
|
245
|
+
font-size: 11px;
|
|
246
|
+
font-weight: 600;
|
|
247
|
+
text-transform: uppercase;
|
|
248
|
+
letter-spacing: 0.5px;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.mini-panel-content .list-item {
|
|
252
|
+
border-bottom: 1px solid rgba(74, 74, 90, 0.2);
|
|
253
|
+
transition: background-color 0.15s;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.mini-panel-content .list-item:last-child {
|
|
257
|
+
border-bottom: none;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.mini-panel-content .list-item:hover {
|
|
261
|
+
background-color: rgba(255, 255, 255, 0.04);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.mini-panel-content .list-item.actionable:hover {
|
|
265
|
+
background-color: rgba(255, 255, 255, 0.06);
|
|
266
|
+
cursor: pointer;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Style adjustments for lil-gui look */
|
|
270
|
+
.mini-panel-content .item-row {
|
|
271
|
+
padding: 3px 8px;
|
|
272
|
+
min-height: 24px;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.mini-panel-content .list-item-row {
|
|
276
|
+
padding: 1px 4px;
|
|
277
|
+
gap: 8px;
|
|
278
|
+
min-height: 21px;
|
|
279
|
+
align-items: center;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.mini-panel-content input[type="checkbox"] {
|
|
283
|
+
width: 12px;
|
|
284
|
+
height: 12px;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
.mini-panel-content input[type="range"] {
|
|
288
|
+
height: 18px;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.mini-panel-content .value-number input,
|
|
292
|
+
.mini-panel-content .value-slider input {
|
|
293
|
+
background-color: rgba(0, 0, 0, 0.3);
|
|
294
|
+
border: 1px solid rgba(74, 74, 90, 0.5);
|
|
295
|
+
font-size: 10px;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.mini-panel-content .value-number input:focus,
|
|
299
|
+
.mini-panel-content .value-slider input:focus {
|
|
300
|
+
border-color: var(--accent-color);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.mini-panel-content .value-slider {
|
|
304
|
+
gap: 6px;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/* Compact nested items */
|
|
308
|
+
.mini-panel-content .list-item .list-item {
|
|
309
|
+
margin-left: 8px;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
.mini-panel-content .list-item .list-item .item-row,
|
|
313
|
+
.mini-panel-content .list-item .list-item .list-item-row {
|
|
314
|
+
padding: 2px 6px;
|
|
315
|
+
min-height: 22px;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/* Compact collapsible headers */
|
|
319
|
+
.mini-panel-content .collapsible .item-row,
|
|
320
|
+
.mini-panel-content .list-item-row.collapsible {
|
|
321
|
+
padding: 2px 8px;
|
|
322
|
+
font-weight: 600;
|
|
323
|
+
min-height: 16px;
|
|
324
|
+
display: flex;
|
|
325
|
+
align-items: center;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.mini-panel-content .collapsible-icon {
|
|
329
|
+
font-size: 10px;
|
|
330
|
+
width: 14px;
|
|
331
|
+
height: 14px;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.mini-panel-content .param-control input[type="range"] {
|
|
335
|
+
height: 12px;
|
|
336
|
+
margin-top: 1px;
|
|
337
|
+
padding-top: 5px;
|
|
338
|
+
user-select: none;
|
|
339
|
+
-webkit-user-select: none;
|
|
340
|
+
outline: none;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.mini-panel-content .param-control input[type="range"]::-webkit-slider-thumb {
|
|
344
|
+
width: 14px;
|
|
345
|
+
height: 14px;
|
|
346
|
+
margin-top: -5px;
|
|
347
|
+
user-select: none;
|
|
348
|
+
-webkit-user-select: none;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.mini-panel-content .param-control input[type="range"]::-moz-range-thumb {
|
|
352
|
+
width: 14px;
|
|
353
|
+
height: 14px;
|
|
354
|
+
user-select: none;
|
|
355
|
+
-moz-user-select: none;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.mini-panel-content .list-children-container {
|
|
359
|
+
padding-left: 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.mini-panel-content .param-control input[type="number"] {
|
|
363
|
+
flex-basis: 60px !important;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.mini-panel-content .param-control {
|
|
367
|
+
align-items: center;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.mini-panel-content .param-control select {
|
|
371
|
+
font-size: 11px;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.mini-panel-content .list-item-wrapper {
|
|
375
|
+
margin-top: 0;
|
|
376
|
+
margin-bottom: 0;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
#profiler-panel {
|
|
380
|
+
position: fixed;
|
|
381
|
+
z-index: 1001 !important;
|
|
382
|
+
bottom: 0;
|
|
383
|
+
left: 0;
|
|
384
|
+
right: 0;
|
|
385
|
+
height: 350px;
|
|
386
|
+
background-color: var(--profiler-bg);
|
|
387
|
+
backdrop-filter: blur(8px);
|
|
388
|
+
border-top: 2px solid var(--profiler-border);
|
|
389
|
+
color: var(--text-primary);
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: column;
|
|
392
|
+
z-index: 1000;
|
|
393
|
+
/*box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);*/
|
|
394
|
+
transform: translateY(100%);
|
|
395
|
+
transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s ease-out, width 0.3s ease-out;
|
|
396
|
+
font-family: var(--font-mono);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
#profiler-panel.resizing,
|
|
400
|
+
#profiler-panel.dragging {
|
|
401
|
+
transition: none;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
#profiler-panel.visible {
|
|
405
|
+
transform: translateY(0);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
#profiler-panel.maximized {
|
|
409
|
+
height: 100vh;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/* Position-specific styles */
|
|
413
|
+
#profiler-panel.position-top {
|
|
414
|
+
bottom: auto;
|
|
415
|
+
top: 0;
|
|
416
|
+
border-top: none;
|
|
417
|
+
border-bottom: 2px solid var(--profiler-border);
|
|
418
|
+
transform: translateY(-100%);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
#profiler-panel.position-top.visible {
|
|
422
|
+
transform: translateY(0);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
#profiler-panel.position-bottom {
|
|
426
|
+
/* Default position - already defined above */
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
#profiler-panel.position-left {
|
|
430
|
+
top: 0;
|
|
431
|
+
bottom: 0;
|
|
432
|
+
left: 0;
|
|
433
|
+
right: auto;
|
|
434
|
+
width: 350px;
|
|
435
|
+
height: 100%;
|
|
436
|
+
border-top: none;
|
|
437
|
+
border-right: 2px solid var(--profiler-border);
|
|
438
|
+
transform: translateX(-100%);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
#profiler-panel.position-left.visible {
|
|
442
|
+
transform: translateX(0);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
#profiler-panel.position-right {
|
|
446
|
+
top: 0;
|
|
447
|
+
bottom: 0;
|
|
448
|
+
left: auto;
|
|
449
|
+
right: 0;
|
|
450
|
+
width: 350px;
|
|
451
|
+
height: 100%;
|
|
452
|
+
border-top: none;
|
|
453
|
+
border-left: 2px solid var(--profiler-border);
|
|
454
|
+
transform: translateX(100%);
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
#profiler-panel.position-right.visible {
|
|
458
|
+
transform: translateX(0);
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
#profiler-panel.position-floating {
|
|
462
|
+
border: 2px solid var(--profiler-border);
|
|
463
|
+
border-radius: 8px;
|
|
464
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
465
|
+
transform: none !important;
|
|
466
|
+
overflow: hidden;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
#profiler-panel.position-floating.visible {
|
|
470
|
+
transform: none !important;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
#profiler-panel.position-floating .profiler-header {
|
|
474
|
+
border-radius: 6px 6px 0 0;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
#profiler-panel.position-floating .panel-resizer {
|
|
478
|
+
bottom: 0;
|
|
479
|
+
right: 0;
|
|
480
|
+
top: auto;
|
|
481
|
+
left: auto;
|
|
482
|
+
width: 16px;
|
|
483
|
+
height: 16px;
|
|
484
|
+
cursor: nwse-resize;
|
|
485
|
+
border-radius: 0 0 6px 0;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
#profiler-panel.position-floating .panel-resizer::after {
|
|
489
|
+
content: '';
|
|
490
|
+
position: absolute;
|
|
491
|
+
right: 2px;
|
|
492
|
+
bottom: 2px;
|
|
493
|
+
width: 10px;
|
|
494
|
+
height: 10px;
|
|
495
|
+
background: linear-gradient(135deg, transparent 0%, transparent 45%, var(--profiler-border) 45%, var(--profiler-border) 55%, transparent 55%);
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
.panel-resizer {
|
|
500
|
+
position: absolute;
|
|
501
|
+
top: -2px;
|
|
502
|
+
left: 0;
|
|
503
|
+
width: 100%;
|
|
504
|
+
height: 5px;
|
|
505
|
+
cursor: ns-resize;
|
|
506
|
+
z-index: 1001;
|
|
507
|
+
touch-action: none;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
#profiler-panel.position-top .panel-resizer {
|
|
511
|
+
top: auto;
|
|
512
|
+
bottom: -2px;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
#profiler-panel.position-left .panel-resizer {
|
|
516
|
+
top: 0;
|
|
517
|
+
left: auto;
|
|
518
|
+
right: -2px;
|
|
519
|
+
width: 5px;
|
|
520
|
+
height: 100%;
|
|
521
|
+
cursor: ew-resize;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
#profiler-panel.position-right .panel-resizer {
|
|
525
|
+
top: 0;
|
|
526
|
+
left: -2px;
|
|
527
|
+
right: auto;
|
|
528
|
+
width: 5px;
|
|
529
|
+
height: 100%;
|
|
530
|
+
cursor: ew-resize;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.profiler-header {
|
|
534
|
+
display: flex;
|
|
535
|
+
background-color: var(--profiler-header-bg);
|
|
536
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
537
|
+
flex-shrink: 0;
|
|
538
|
+
justify-content: space-between;
|
|
539
|
+
align-items: stretch;
|
|
540
|
+
|
|
541
|
+
overflow-x: auto;
|
|
542
|
+
overflow-y: hidden;
|
|
543
|
+
width: calc(100% - 134px);
|
|
544
|
+
height: 38px;
|
|
545
|
+
user-select: none;
|
|
546
|
+
-webkit-user-select: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/* Adjust header width based on panel position */
|
|
550
|
+
#profiler-panel.position-right .profiler-header,
|
|
551
|
+
#profiler-panel.position-left .profiler-header {
|
|
552
|
+
width: calc(100% - 134px);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
#profiler-panel.position-bottom .profiler-header,
|
|
556
|
+
#profiler-panel.position-top .profiler-header {
|
|
557
|
+
width: calc(100% - 134px);
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
/* Adjust header width when position toggle button is hidden (mobile) */
|
|
561
|
+
#profiler-panel.hide-position-toggle .profiler-header {
|
|
562
|
+
width: calc(100% - 90px);
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/* ===== RULES FOR WHEN THERE ARE NO TABS ===== */
|
|
566
|
+
|
|
567
|
+
/* Horizontal mode (bottom/top) without tabs */
|
|
568
|
+
#profiler-panel.position-bottom.no-tabs:not(.maximized),
|
|
569
|
+
#profiler-panel.position-top.no-tabs:not(.maximized) {
|
|
570
|
+
height: 38px !important;
|
|
571
|
+
min-height: 38px !important;
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
#profiler-panel.position-bottom.no-tabs .profiler-header,
|
|
575
|
+
#profiler-panel.position-top.no-tabs .profiler-header {
|
|
576
|
+
width: 100%;
|
|
577
|
+
height: 38px;
|
|
578
|
+
border-bottom: none;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
#profiler-panel.position-bottom.no-tabs .profiler-content-wrapper,
|
|
582
|
+
#profiler-panel.position-top.no-tabs .profiler-content-wrapper {
|
|
583
|
+
display: none;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
#profiler-panel.position-bottom.no-tabs .panel-resizer,
|
|
587
|
+
#profiler-panel.position-top.no-tabs .panel-resizer {
|
|
588
|
+
display: none;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
/* Vertical mode (right/left) without tabs */
|
|
592
|
+
#profiler-panel.position-right.no-tabs:not(.maximized),
|
|
593
|
+
#profiler-panel.position-left.no-tabs:not(.maximized) {
|
|
594
|
+
width: 45px !important;
|
|
595
|
+
min-width: 45px !important;
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/* Vertical layout for header when no tabs */
|
|
599
|
+
#profiler-panel.position-right.no-tabs .profiler-header,
|
|
600
|
+
#profiler-panel.position-left.no-tabs .profiler-header {
|
|
601
|
+
width: 100%;
|
|
602
|
+
flex-direction: column;
|
|
603
|
+
height: 100%;
|
|
604
|
+
border-bottom: none;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
/* Vertical layout for controls when no tabs */
|
|
608
|
+
#profiler-panel.position-right.no-tabs .profiler-controls,
|
|
609
|
+
#profiler-panel.position-left.no-tabs .profiler-controls {
|
|
610
|
+
position: static;
|
|
611
|
+
flex-direction: column-reverse;
|
|
612
|
+
justify-content: flex-end;
|
|
613
|
+
width: 100%;
|
|
614
|
+
height: 100%;
|
|
615
|
+
border-bottom: none;
|
|
616
|
+
border-left: none;
|
|
617
|
+
background: transparent;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
#profiler-panel.position-right.no-tabs .profiler-controls button,
|
|
621
|
+
#profiler-panel.position-left.no-tabs .profiler-controls button {
|
|
622
|
+
width: 100%;
|
|
623
|
+
height: 45px;
|
|
624
|
+
border-left: none;
|
|
625
|
+
border-top: none;
|
|
626
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
#profiler-panel.position-right.no-tabs .profiler-content-wrapper,
|
|
630
|
+
#profiler-panel.position-left.no-tabs .profiler-content-wrapper {
|
|
631
|
+
display: none;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
#profiler-panel.position-right.no-tabs .profiler-tabs,
|
|
635
|
+
#profiler-panel.position-left.no-tabs .profiler-tabs {
|
|
636
|
+
display: none;
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
#profiler-panel.position-right.no-tabs .panel-resizer,
|
|
640
|
+
#profiler-panel.position-left.no-tabs .panel-resizer {
|
|
641
|
+
display: none;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
/* Hide position toggle on mobile without tabs */
|
|
645
|
+
#profiler-panel.hide-position-toggle.position-right.no-tabs:not(.maximized),
|
|
646
|
+
#profiler-panel.hide-position-toggle.position-left.no-tabs:not(.maximized) {
|
|
647
|
+
width: 45px !important;
|
|
648
|
+
min-width: 45px !important;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
/* Hide drag indicator on mobile devices */
|
|
652
|
+
#profiler-panel.hide-position-toggle .tab-btn.active::before {
|
|
653
|
+
display: none;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.profiler-header::-webkit-scrollbar {
|
|
657
|
+
width: 8px;
|
|
658
|
+
height: 8px;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
.profiler-header::-webkit-scrollbar-track {
|
|
662
|
+
background: transparent;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
.profiler-header::-webkit-scrollbar-thumb {
|
|
666
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
667
|
+
border-radius: 10px;
|
|
668
|
+
transition: background 0.3s ease;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
.profiler-header::-webkit-scrollbar-thumb:hover {
|
|
672
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
.profiler-header::-webkit-scrollbar-corner {
|
|
676
|
+
background: transparent;
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
#profiler-panel.dragging .profiler-header {
|
|
680
|
+
cursor: grabbing !important;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
#profiler-panel.dragging {
|
|
684
|
+
opacity: 0.8;
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
.profiler-tabs {
|
|
688
|
+
display: flex;
|
|
689
|
+
cursor: grab;
|
|
690
|
+
position: relative;
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
.profiler-tabs:active {
|
|
694
|
+
cursor: grabbing;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.profiler-tabs::-webkit-scrollbar {
|
|
698
|
+
width: 8px;
|
|
699
|
+
height: 8px;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
.profiler-tabs::-webkit-scrollbar-track {
|
|
703
|
+
background: transparent;
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
.profiler-tabs::-webkit-scrollbar-thumb {
|
|
707
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
708
|
+
border-radius: 10px;
|
|
709
|
+
transition: background 0.3s ease;
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
.profiler-tabs::-webkit-scrollbar-thumb:hover {
|
|
713
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
.profiler-tabs::-webkit-scrollbar-corner {
|
|
717
|
+
background: transparent;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
.profiler-controls {
|
|
721
|
+
display: flex;
|
|
722
|
+
position: absolute;
|
|
723
|
+
right: 0;
|
|
724
|
+
top: 0;
|
|
725
|
+
height: 38px;
|
|
726
|
+
background: var(--profiler-header-bg);
|
|
727
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
.tab-btn {
|
|
731
|
+
position: relative;
|
|
732
|
+
background: transparent;
|
|
733
|
+
border: none;
|
|
734
|
+
/*border-right: 1px solid var(--profiler-border);*/
|
|
735
|
+
color: var(--text-secondary);
|
|
736
|
+
padding: 8px 18px;
|
|
737
|
+
cursor: default;
|
|
738
|
+
display: flex;
|
|
739
|
+
align-items: center;
|
|
740
|
+
font-family: var(--font-family);
|
|
741
|
+
font-weight: 600;
|
|
742
|
+
font-size: 14px;
|
|
743
|
+
user-select: none;
|
|
744
|
+
transition: opacity 0.2s, transform 0.2s;
|
|
745
|
+
touch-action: none;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
.tab-btn.active {
|
|
749
|
+
border-bottom: 2px solid var(--accent-color);
|
|
750
|
+
color: white;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.tab-btn.active::before {
|
|
754
|
+
content: '⋮⋮';
|
|
755
|
+
position: absolute;
|
|
756
|
+
left: 3px;
|
|
757
|
+
top: calc(50% - 2px);
|
|
758
|
+
transform: translateY(-50%);
|
|
759
|
+
color: var(--profiler-border);
|
|
760
|
+
font-size: 18px;
|
|
761
|
+
letter-spacing: -2px;
|
|
762
|
+
opacity: 0.6;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
.tab-btn.no-detach.active::before {
|
|
766
|
+
display: none;
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
#floating-btn,
|
|
770
|
+
#maximize-btn,
|
|
771
|
+
#hide-panel-btn {
|
|
772
|
+
background: transparent;
|
|
773
|
+
border: none;
|
|
774
|
+
border-left: 1px solid var(--profiler-border);
|
|
775
|
+
color: var(--text-secondary);
|
|
776
|
+
width: 45px;
|
|
777
|
+
height: 100%;
|
|
778
|
+
cursor: pointer;
|
|
779
|
+
transition: all 0.2s;
|
|
780
|
+
display: flex;
|
|
781
|
+
align-items: center;
|
|
782
|
+
justify-content: center;
|
|
783
|
+
flex-shrink: 0;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/* Disable transitions in vertical mode to avoid broken animations */
|
|
787
|
+
#profiler-panel.position-right #floating-btn,
|
|
788
|
+
#profiler-panel.position-right #maximize-btn,
|
|
789
|
+
#profiler-panel.position-right #hide-panel-btn,
|
|
790
|
+
#profiler-panel.position-left #floating-btn,
|
|
791
|
+
#profiler-panel.position-left #maximize-btn,
|
|
792
|
+
#profiler-panel.position-left #hide-panel-btn {
|
|
793
|
+
transition: background-color 0.2s, color 0.2s;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
#floating-btn:hover,
|
|
797
|
+
#maximize-btn:hover,
|
|
798
|
+
#hide-panel-btn:hover {
|
|
799
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
800
|
+
color: var(--text-primary);
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
/* Hide maximize button when there are no tabs */
|
|
804
|
+
#profiler-panel.position-right.no-tabs #maximize-btn,
|
|
805
|
+
#profiler-panel.position-left.no-tabs #maximize-btn,
|
|
806
|
+
#profiler-panel.position-bottom.no-tabs #maximize-btn,
|
|
807
|
+
#profiler-panel.position-top.no-tabs #maximize-btn {
|
|
808
|
+
display: none !important;
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
.profiler-content-wrapper {
|
|
812
|
+
flex-grow: 1;
|
|
813
|
+
overflow: hidden;
|
|
814
|
+
position: relative;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.profiler-content {
|
|
818
|
+
position: absolute;
|
|
819
|
+
top: 0;
|
|
820
|
+
left: 0;
|
|
821
|
+
width: 100%;
|
|
822
|
+
height: 100%;
|
|
823
|
+
overflow-y: auto;
|
|
824
|
+
font-size: 13px;
|
|
825
|
+
visibility: hidden;
|
|
826
|
+
opacity: 0;
|
|
827
|
+
transition: opacity 0.2s, visibility 0.2s;
|
|
828
|
+
box-sizing: border-box;
|
|
829
|
+
display: flex;
|
|
830
|
+
flex-direction: column;
|
|
831
|
+
user-select: none;
|
|
832
|
+
-webkit-user-select: none;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
.profiler-content.active {
|
|
836
|
+
visibility: visible;
|
|
837
|
+
opacity: 1;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.profiler-content {
|
|
841
|
+
overflow: auto; /* make sure scrollbars can appear */
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.profiler-content::-webkit-scrollbar {
|
|
845
|
+
width: 8px;
|
|
846
|
+
height: 8px;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
.profiler-content::-webkit-scrollbar-track {
|
|
850
|
+
background: transparent;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
.profiler-content::-webkit-scrollbar-thumb {
|
|
854
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
855
|
+
border-radius: 10px;
|
|
856
|
+
transition: background 0.3s ease;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
.profiler-content::-webkit-scrollbar-thumb:hover {
|
|
860
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
861
|
+
}
|
|
862
|
+
|
|
863
|
+
.profiler-content::-webkit-scrollbar-corner {
|
|
864
|
+
background: transparent;
|
|
865
|
+
}
|
|
866
|
+
|
|
867
|
+
.profiler-content {
|
|
868
|
+
scrollbar-width: thin; /* "auto" | "thin" */
|
|
869
|
+
scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
.list-item-row {
|
|
873
|
+
display: grid;
|
|
874
|
+
align-items: center;
|
|
875
|
+
padding: 4px 8px;
|
|
876
|
+
border-radius: 3px;
|
|
877
|
+
transition: background-color 0.2s;
|
|
878
|
+
gap: 10px;
|
|
879
|
+
border-bottom: none;
|
|
880
|
+
user-select: none;
|
|
881
|
+
-webkit-user-select: none;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
.parameters .list-item-row {
|
|
885
|
+
min-height: 31px;
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
.mini-panel-content .parameters .list-item-row {
|
|
889
|
+
min-height: 21px;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
.list-item-wrapper {
|
|
893
|
+
margin-top: 2px;
|
|
894
|
+
margin-bottom: 2px;
|
|
895
|
+
user-select: none;
|
|
896
|
+
-webkit-user-select: none;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
.list-item-wrapper:first-child {
|
|
900
|
+
/*margin-top: 0;*/
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
.list-item-wrapper:not(.header-wrapper):nth-child(odd) > .list-item-row {
|
|
904
|
+
background-color: rgba(0,0,0,0.1);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
.list-item-wrapper.header-wrapper>.list-item-row {
|
|
908
|
+
color: var(--accent-color);
|
|
909
|
+
background-color: rgba(0, 170, 255, 0.1);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.list-item-wrapper.header-wrapper>.list-item-row>.list-item-cell:first-child {
|
|
913
|
+
font-weight: 600;
|
|
914
|
+
line-height: 1;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.list-item-row.collapsible,
|
|
918
|
+
.list-item-row.actionable {
|
|
919
|
+
cursor: pointer;
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
.list-item-row.collapsible {
|
|
923
|
+
background-color: rgba(0, 170, 255, 0.15) !important;
|
|
924
|
+
min-height: 23px;
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
.list-item-row.collapsible.alert,
|
|
928
|
+
.list-item-row.alert {
|
|
929
|
+
background-color: rgba(244, 67, 54, 0.1) !important;
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
@media (hover: hover) {
|
|
933
|
+
|
|
934
|
+
.list-item-row:hover:not(.collapsible):not(.no-hover),
|
|
935
|
+
.list-item-row:hover:not(.no-hover),
|
|
936
|
+
.list-item-row.actionable:hover,
|
|
937
|
+
.list-item-row.collapsible.actionable:hover {
|
|
938
|
+
background-color: rgba(255, 255, 255, 0.05) !important;
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
.list-item-row.collapsible:hover {
|
|
942
|
+
background-color: rgba(0, 170, 255, 0.25) !important;
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
.list-item-cell {
|
|
948
|
+
white-space: pre;
|
|
949
|
+
display: flex;
|
|
950
|
+
align-items: center;
|
|
951
|
+
user-select: none;
|
|
952
|
+
-webkit-user-select: none;
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
.list-item-cell:not(:first-child) {
|
|
956
|
+
justify-content: flex-end;
|
|
957
|
+
font-weight: 600;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
.list-header {
|
|
961
|
+
display: grid;
|
|
962
|
+
align-items: center;
|
|
963
|
+
padding: 4px 8px;
|
|
964
|
+
font-weight: 600;
|
|
965
|
+
color: var(--text-secondary);
|
|
966
|
+
padding-bottom: 6px;
|
|
967
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
968
|
+
margin-bottom: 5px;
|
|
969
|
+
gap: 10px;
|
|
970
|
+
user-select: none;
|
|
971
|
+
-webkit-user-select: none;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
.list-item-wrapper.section-start {
|
|
975
|
+
margin-top: 5px;
|
|
976
|
+
margin-bottom: 5px;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
.list-header .list-header-cell:not(:first-child) {
|
|
980
|
+
text-align: right;
|
|
981
|
+
}
|
|
982
|
+
|
|
983
|
+
.list-children-container {
|
|
984
|
+
padding-left: 1.5em;
|
|
985
|
+
overflow: hidden;
|
|
986
|
+
transition: max-height 0.1s ease-out;
|
|
987
|
+
margin-top: 2px;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
.list-children-container.closed {
|
|
991
|
+
max-height: 0;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
.item-toggler {
|
|
995
|
+
display: inline-block;
|
|
996
|
+
margin-right: 0.8em;
|
|
997
|
+
text-align: left;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
.list-item-row.open .item-toggler::before {
|
|
1001
|
+
content: '-';
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
.list-item-row:not(.open) .item-toggler::before {
|
|
1005
|
+
content: '+';
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.list-item-cell .value.good {
|
|
1009
|
+
color: var(--color-green);
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.list-item-cell .value.warn {
|
|
1013
|
+
color: var(--color-yellow);
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.list-item-cell .value.bad {
|
|
1017
|
+
color: var(--color-red);
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
.list-scroll-wrapper {
|
|
1021
|
+
overflow-x: auto;
|
|
1022
|
+
width: 100%;
|
|
1023
|
+
user-select: none;
|
|
1024
|
+
-webkit-user-select: none;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
.list-container.parameters .list-item-row:not(.collapsible) {
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.graph-container {
|
|
1031
|
+
width: 100%;
|
|
1032
|
+
box-sizing: border-box;
|
|
1033
|
+
padding: 8px 0;
|
|
1034
|
+
position: relative;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.graph-svg {
|
|
1038
|
+
width: 100%;
|
|
1039
|
+
height: 80px;
|
|
1040
|
+
background-color: var(--profiler-header);
|
|
1041
|
+
border: 1px solid var(--profiler-border);
|
|
1042
|
+
border-radius: 4px;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
.graph-path {
|
|
1046
|
+
stroke-width: 2;
|
|
1047
|
+
fill-opacity: 0.4;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
.console-header {
|
|
1051
|
+
padding: 10px;
|
|
1052
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
1053
|
+
display: flex;
|
|
1054
|
+
gap: 20px;
|
|
1055
|
+
flex-shrink: 0;
|
|
1056
|
+
align-items: center;
|
|
1057
|
+
justify-content: space-between;
|
|
1058
|
+
}
|
|
1059
|
+
|
|
1060
|
+
.console-buttons-group {
|
|
1061
|
+
display: flex;
|
|
1062
|
+
gap: 20px;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.console-filter-input {
|
|
1066
|
+
background-color: var(--profiler-bg);
|
|
1067
|
+
border: 1px solid var(--profiler-border);
|
|
1068
|
+
color: var(--text-primary);
|
|
1069
|
+
border-radius: 4px;
|
|
1070
|
+
padding: 4px 8px;
|
|
1071
|
+
font-family: var(--font-mono);
|
|
1072
|
+
flex-grow: 1;
|
|
1073
|
+
max-width: 300px;
|
|
1074
|
+
border-radius: 15px;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
.console-copy-button {
|
|
1078
|
+
background: transparent;
|
|
1079
|
+
border: none;
|
|
1080
|
+
color: var(--text-secondary);
|
|
1081
|
+
cursor: pointer;
|
|
1082
|
+
padding: 4px;
|
|
1083
|
+
display: flex;
|
|
1084
|
+
align-items: center;
|
|
1085
|
+
justify-content: center;
|
|
1086
|
+
border-radius: 4px;
|
|
1087
|
+
transition: color 0.2s, background-color 0.2s;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
.console-copy-button:hover {
|
|
1091
|
+
color: var(--text-primary);
|
|
1092
|
+
background-color: var(--profiler-hover);
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
.console-copy-button.copied {
|
|
1096
|
+
color: var(--color-green);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
#console-log {
|
|
1100
|
+
display: flex;
|
|
1101
|
+
flex-direction: column;
|
|
1102
|
+
gap: 4px;
|
|
1103
|
+
padding: 10px;
|
|
1104
|
+
overflow-y: auto;
|
|
1105
|
+
flex-grow: 1;
|
|
1106
|
+
user-select: text;
|
|
1107
|
+
-webkit-user-select: text;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
.log-message {
|
|
1111
|
+
padding: 2px 5px;
|
|
1112
|
+
white-space: pre-wrap;
|
|
1113
|
+
word-break: break-all;
|
|
1114
|
+
border-radius: 3px;
|
|
1115
|
+
line-height: 1.5 !important;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
.log-message.hidden {
|
|
1119
|
+
display: none;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
.log-message.info {
|
|
1123
|
+
color: var(--text-primary);
|
|
1124
|
+
}
|
|
1125
|
+
|
|
1126
|
+
.log-message.warn {
|
|
1127
|
+
color: var(--color-yellow);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
.log-message.error {
|
|
1131
|
+
color: #f9dedc;
|
|
1132
|
+
background-color: rgba(244, 67, 54, 0.1);
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
.log-prefix {
|
|
1136
|
+
color: var(--text-secondary);
|
|
1137
|
+
margin-right: 8px;
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1140
|
+
.log-code {
|
|
1141
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
1142
|
+
border-radius: 3px;
|
|
1143
|
+
padding: 1px 4px;
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
.thumbnail-container {
|
|
1147
|
+
display: flex;
|
|
1148
|
+
align-items: center;
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.thumbnail-svg {
|
|
1152
|
+
width: 40px;
|
|
1153
|
+
height: 22.5px;
|
|
1154
|
+
flex-shrink: 0;
|
|
1155
|
+
margin-right: 8px;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
.param-control {
|
|
1159
|
+
display: flex;
|
|
1160
|
+
align-items: center;
|
|
1161
|
+
justify-content: flex-end;
|
|
1162
|
+
gap: 10px;
|
|
1163
|
+
width: 100%;
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.param-control input,
|
|
1167
|
+
.param-control select,
|
|
1168
|
+
.param-control button {
|
|
1169
|
+
background-color: var(--profiler-bg);
|
|
1170
|
+
border: 1px solid var(--profiler-border);
|
|
1171
|
+
color: var(--text-primary);
|
|
1172
|
+
border-radius: 4px;
|
|
1173
|
+
padding: 4px 6px;
|
|
1174
|
+
padding-bottom: 2px;
|
|
1175
|
+
font-family: var(--font-mono);
|
|
1176
|
+
width: 100%;
|
|
1177
|
+
box-sizing: border-box;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
.param-control select {
|
|
1181
|
+
padding-top: 3px;
|
|
1182
|
+
padding-bottom: 1px;
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
.param-control input[type="number"] {
|
|
1186
|
+
cursor: ns-resize;
|
|
1187
|
+
}
|
|
1188
|
+
|
|
1189
|
+
.param-control input[type="color"] {
|
|
1190
|
+
padding: 2px;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1193
|
+
.param-control button {
|
|
1194
|
+
cursor: pointer;
|
|
1195
|
+
transition: background-color 0.2s;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.param-control button:hover {
|
|
1199
|
+
background-color: var(--profiler-header);
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
.param-control-vector {
|
|
1203
|
+
display: flex;
|
|
1204
|
+
gap: 5px;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.custom-checkbox {
|
|
1208
|
+
display: inline-flex;
|
|
1209
|
+
align-items: center;
|
|
1210
|
+
cursor: pointer;
|
|
1211
|
+
gap: 8px;
|
|
1212
|
+
will-change: transform;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
.custom-checkbox input {
|
|
1216
|
+
display: none;
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
.custom-checkbox .checkmark {
|
|
1220
|
+
width: 14px;
|
|
1221
|
+
height: 14px;
|
|
1222
|
+
border: 1px solid var(--accent-color);
|
|
1223
|
+
border-radius: 3px;
|
|
1224
|
+
display: inline-flex;
|
|
1225
|
+
justify-content: center;
|
|
1226
|
+
align-items: center;
|
|
1227
|
+
transition: background-color 0.2s, border-color 0.2s;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
.custom-checkbox .checkmark::after {
|
|
1231
|
+
content: '';
|
|
1232
|
+
width: 6px;
|
|
1233
|
+
height: 6px;
|
|
1234
|
+
background-color: var(--accent-color);
|
|
1235
|
+
border-radius: 1px;
|
|
1236
|
+
display: block;
|
|
1237
|
+
transform: scale(0);
|
|
1238
|
+
transition: transform 0.2s;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
.custom-checkbox input:checked+.checkmark {
|
|
1242
|
+
border-color: var(--accent-color);
|
|
1243
|
+
}
|
|
1244
|
+
|
|
1245
|
+
.custom-checkbox input:checked+.checkmark::after {
|
|
1246
|
+
transform: scale(1);
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
.param-control input[type="range"] {
|
|
1250
|
+
-webkit-appearance: none;
|
|
1251
|
+
appearance: none;
|
|
1252
|
+
width: 100%;
|
|
1253
|
+
height: 16px;
|
|
1254
|
+
background: var(--profiler-header);
|
|
1255
|
+
border-radius: 5px;
|
|
1256
|
+
border: 1px solid var(--profiler-border);
|
|
1257
|
+
outline: none;
|
|
1258
|
+
padding: 0px;
|
|
1259
|
+
padding-top: 8px;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
.param-control input[type="range"]::-webkit-slider-thumb {
|
|
1263
|
+
-webkit-appearance: none;
|
|
1264
|
+
appearance: none;
|
|
1265
|
+
width: 18px;
|
|
1266
|
+
height: 18px;
|
|
1267
|
+
background: var(--profiler-bg);
|
|
1268
|
+
border: 1px solid var(--accent-color);
|
|
1269
|
+
border-radius: 3px;
|
|
1270
|
+
cursor: pointer;
|
|
1271
|
+
margin-top: -8px;
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
.param-control input[type="range"]::-moz-range-thumb {
|
|
1275
|
+
width: 18px;
|
|
1276
|
+
height: 18px;
|
|
1277
|
+
background: var(--profiler-bg);
|
|
1278
|
+
border: 2px solid var(--accent-color);
|
|
1279
|
+
border-radius: 3px;
|
|
1280
|
+
cursor: pointer;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.param-control input[type="range"]::-moz-range-track {
|
|
1284
|
+
width: 100%;
|
|
1285
|
+
height: 16px;
|
|
1286
|
+
background: var(--profiler-header);
|
|
1287
|
+
border-radius: 5px;
|
|
1288
|
+
border: 1px solid var(--profiler-border);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/* Override .param-control styles for mini-panel-content */
|
|
1292
|
+
.mini-panel-content input,
|
|
1293
|
+
.mini-panel-content select,
|
|
1294
|
+
.mini-panel-content button {
|
|
1295
|
+
padding: 2px 4px;
|
|
1296
|
+
height: 21px;
|
|
1297
|
+
line-height: 1.4;
|
|
1298
|
+
padding-top: 4px;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
.mini-panel-content .param-control input,
|
|
1302
|
+
.mini-panel-content .param-control select,
|
|
1303
|
+
.mini-panel-content .param-control button {
|
|
1304
|
+
background-color: #1e1e24c2;
|
|
1305
|
+
line-height: 1.0;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.mini-panel-content .param-control select {
|
|
1309
|
+
padding: 2px 2px;
|
|
1310
|
+
padding-top: 3px;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
.mini-panel-content .param-control input[type="number"]::-webkit-outer-spin-button,
|
|
1314
|
+
.mini-panel-content .param-control input[type="number"]::-webkit-inner-spin-button {
|
|
1315
|
+
-webkit-appearance: none;
|
|
1316
|
+
margin: 0;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
.mini-panel-content .param-control input[type="number"] {
|
|
1320
|
+
-moz-appearance: textfield;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.mini-panel-content .list-item-cell span {
|
|
1324
|
+
position: relative;
|
|
1325
|
+
top: 1px;
|
|
1326
|
+
margin-left: 2px;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
.mini-panel-content .custom-checkbox .checkmark {
|
|
1330
|
+
width: 12px;
|
|
1331
|
+
height: 12px;
|
|
1332
|
+
margin-bottom: 2px;
|
|
1333
|
+
will-change: transform;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1336
|
+
.mini-panel-content .list-container.parameters .list-item-row:not(.collapsible) {
|
|
1337
|
+
margin-bottom: 2px;
|
|
1338
|
+
}
|
|
1339
|
+
|
|
1340
|
+
@media screen and (max-width: 450px) and (orientation: portrait) {
|
|
1341
|
+
|
|
1342
|
+
.console-filter-input {
|
|
1343
|
+
max-width: 100px;
|
|
1344
|
+
}
|
|
1345
|
+
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
/* Touch device optimizations */
|
|
1349
|
+
@media (hover: none) and (pointer: coarse) {
|
|
1350
|
+
|
|
1351
|
+
.panel-resizer {
|
|
1352
|
+
top: -10px !important;
|
|
1353
|
+
height: 20px !important;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
#profiler-panel.position-top .panel-resizer {
|
|
1357
|
+
top: auto !important;
|
|
1358
|
+
bottom: -10px !important;
|
|
1359
|
+
height: 20px !important;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
#profiler-panel.position-left .panel-resizer {
|
|
1363
|
+
right: -10px !important;
|
|
1364
|
+
width: 20px !important;
|
|
1365
|
+
height: 100% !important;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
#profiler-panel.position-right .panel-resizer {
|
|
1369
|
+
left: -10px !important;
|
|
1370
|
+
width: 20px !important;
|
|
1371
|
+
height: 100% !important;
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
.detached-tab-resizer-top,
|
|
1375
|
+
.detached-tab-resizer-bottom {
|
|
1376
|
+
height: 10px !important;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
.detached-tab-resizer-left,
|
|
1380
|
+
.detached-tab-resizer-right {
|
|
1381
|
+
width: 10px !important;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
.drag-preview-indicator {
|
|
1387
|
+
position: fixed;
|
|
1388
|
+
background-color: rgba(0, 170, 255, 0.2);
|
|
1389
|
+
border: 2px dashed var(--accent-color);
|
|
1390
|
+
z-index: 999;
|
|
1391
|
+
pointer-events: none;
|
|
1392
|
+
transition: all 0.2s ease-out;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
/* Detached Tab Windows */
|
|
1396
|
+
.detached-tab-panel {
|
|
1397
|
+
position: fixed;
|
|
1398
|
+
width: 500px;
|
|
1399
|
+
height: 400px;
|
|
1400
|
+
background: var(--profiler-bg);
|
|
1401
|
+
border: 1px solid var(--profiler-border);
|
|
1402
|
+
border-radius: 8px;
|
|
1403
|
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
|
1404
|
+
z-index: 1002;
|
|
1405
|
+
display: flex;
|
|
1406
|
+
flex-direction: column;
|
|
1407
|
+
backdrop-filter: blur(10px);
|
|
1408
|
+
overflow: hidden;
|
|
1409
|
+
opacity: 1;
|
|
1410
|
+
visibility: visible;
|
|
1411
|
+
transition: opacity 0.2s, visibility 0.2s;
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
#profiler-panel:not(.visible) ~ * .detached-tab-panel,
|
|
1415
|
+
body:has(#profiler-panel:not(.visible)) .detached-tab-panel {
|
|
1416
|
+
opacity: 0;
|
|
1417
|
+
visibility: hidden;
|
|
1418
|
+
pointer-events: none;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
.detached-tab-header {
|
|
1422
|
+
background: var(--profiler-header-bg);
|
|
1423
|
+
padding: 0 7px 0 15px;
|
|
1424
|
+
font-family: var(--font-family);
|
|
1425
|
+
font-size: 14px;
|
|
1426
|
+
color: var(--text-primary);
|
|
1427
|
+
font-weight: 600;
|
|
1428
|
+
display: flex;
|
|
1429
|
+
justify-content: space-between;
|
|
1430
|
+
align-items: center;
|
|
1431
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
1432
|
+
cursor: grab;
|
|
1433
|
+
user-select: none;
|
|
1434
|
+
height: 38px;
|
|
1435
|
+
flex-shrink: 0;
|
|
1436
|
+
-webkit-font-smoothing: antialiased;
|
|
1437
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1438
|
+
touch-action: none;
|
|
1439
|
+
}
|
|
1440
|
+
|
|
1441
|
+
.detached-tab-header:active {
|
|
1442
|
+
cursor: grabbing;
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
.detached-header-controls {
|
|
1446
|
+
display: flex;
|
|
1447
|
+
gap: 5px;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
.detached-reattach-btn {
|
|
1451
|
+
background: transparent;
|
|
1452
|
+
border: none;
|
|
1453
|
+
color: var(--text-secondary);
|
|
1454
|
+
font-family: var(--font-family);
|
|
1455
|
+
font-size: 18px;
|
|
1456
|
+
line-height: 1;
|
|
1457
|
+
cursor: pointer;
|
|
1458
|
+
padding: 4px 8px;
|
|
1459
|
+
border-radius: 4px;
|
|
1460
|
+
transition: all 0.2s;
|
|
1461
|
+
display: flex;
|
|
1462
|
+
align-items: center;
|
|
1463
|
+
justify-content: center;
|
|
1464
|
+
-webkit-font-smoothing: antialiased;
|
|
1465
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
.detached-reattach-btn:hover {
|
|
1469
|
+
background: rgba(0, 170, 255, 0.2);
|
|
1470
|
+
color: var(--accent-color);
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
.detached-tab-content {
|
|
1474
|
+
flex: 1;
|
|
1475
|
+
overflow: auto;
|
|
1476
|
+
position: relative;
|
|
1477
|
+
background: var(--profiler-bg);
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
.detached-tab-content::-webkit-scrollbar {
|
|
1481
|
+
width: 8px;
|
|
1482
|
+
height: 8px;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
.detached-tab-content::-webkit-scrollbar-track {
|
|
1486
|
+
background: transparent;
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
.detached-tab-content::-webkit-scrollbar-thumb {
|
|
1490
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
1491
|
+
border-radius: 10px;
|
|
1492
|
+
transition: background 0.3s ease;
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1495
|
+
.detached-tab-content::-webkit-scrollbar-thumb:hover {
|
|
1496
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
1497
|
+
}
|
|
1498
|
+
|
|
1499
|
+
.detached-tab-content::-webkit-scrollbar-corner {
|
|
1500
|
+
background: transparent;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
.detached-tab-content .profiler-content {
|
|
1504
|
+
display: block !important;
|
|
1505
|
+
height: 100%;
|
|
1506
|
+
visibility: visible !important;
|
|
1507
|
+
opacity: 1 !important;
|
|
1508
|
+
position: relative !important;
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.detached-tab-content .profiler-content > * {
|
|
1512
|
+
font-family: var(--font-mono);
|
|
1513
|
+
color: var(--text-primary);
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.detached-tab-resizer {
|
|
1517
|
+
position: absolute;
|
|
1518
|
+
bottom: 0;
|
|
1519
|
+
right: 0;
|
|
1520
|
+
width: 20px;
|
|
1521
|
+
height: 20px;
|
|
1522
|
+
cursor: nwse-resize;
|
|
1523
|
+
z-index: 10;
|
|
1524
|
+
touch-action: none;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
.detached-tab-resizer::after {
|
|
1528
|
+
content: '';
|
|
1529
|
+
position: absolute;
|
|
1530
|
+
bottom: 2px;
|
|
1531
|
+
right: 2px;
|
|
1532
|
+
width: 12px;
|
|
1533
|
+
height: 12px;
|
|
1534
|
+
border-right: 2px solid var(--profiler-border);
|
|
1535
|
+
border-bottom: 2px solid var(--profiler-border);
|
|
1536
|
+
border-bottom-right-radius: 6px;
|
|
1537
|
+
opacity: 0.5;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
.detached-tab-resizer:hover::after {
|
|
1541
|
+
opacity: 1;
|
|
1542
|
+
border-color: var(--accent-color);
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/* Edge resizers */
|
|
1546
|
+
.detached-tab-resizer-top {
|
|
1547
|
+
position: absolute;
|
|
1548
|
+
top: 0;
|
|
1549
|
+
left: 0;
|
|
1550
|
+
right: 0;
|
|
1551
|
+
height: 5px;
|
|
1552
|
+
cursor: ns-resize;
|
|
1553
|
+
z-index: 10;
|
|
1554
|
+
touch-action: none;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
.detached-tab-resizer-right {
|
|
1558
|
+
position: absolute;
|
|
1559
|
+
top: 0;
|
|
1560
|
+
right: 0;
|
|
1561
|
+
bottom: 0;
|
|
1562
|
+
width: 5px;
|
|
1563
|
+
cursor: ew-resize;
|
|
1564
|
+
z-index: 10;
|
|
1565
|
+
touch-action: none;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
.detached-tab-resizer-bottom {
|
|
1569
|
+
position: absolute;
|
|
1570
|
+
bottom: 0;
|
|
1571
|
+
left: 0;
|
|
1572
|
+
right: 0;
|
|
1573
|
+
height: 5px;
|
|
1574
|
+
cursor: ns-resize;
|
|
1575
|
+
z-index: 10;
|
|
1576
|
+
touch-action: none;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
.detached-tab-resizer-left {
|
|
1580
|
+
position: absolute;
|
|
1581
|
+
top: 0;
|
|
1582
|
+
left: 0;
|
|
1583
|
+
bottom: 0;
|
|
1584
|
+
width: 5px;
|
|
1585
|
+
cursor: ew-resize;
|
|
1586
|
+
z-index: 10;
|
|
1587
|
+
touch-action: none;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
/* Input number spin buttons - hide arrows */
|
|
1591
|
+
/* Chrome, Safari, Edge, Opera */
|
|
1592
|
+
#profiler-panel input[type="number"]::-webkit-outer-spin-button,
|
|
1593
|
+
#profiler-panel input[type="number"]::-webkit-inner-spin-button,
|
|
1594
|
+
.detached-tab-content input[type="number"]::-webkit-outer-spin-button,
|
|
1595
|
+
.detached-tab-content input[type="number"]::-webkit-inner-spin-button {
|
|
1596
|
+
-webkit-appearance: none;
|
|
1597
|
+
margin: 0;
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
/* Firefox */
|
|
1601
|
+
#profiler-panel input[type="number"],
|
|
1602
|
+
.detached-tab-content input[type="number"] {
|
|
1603
|
+
-moz-appearance: textfield;
|
|
1604
|
+
}
|
|
1605
|
+
`;
|
|
1606
|
+
const styleElement = document.createElement( 'style' );
|
|
1607
|
+
styleElement.id = 'profiler-styles';
|
|
1608
|
+
styleElement.textContent = css;
|
|
1609
|
+
document.head.appendChild( styleElement );
|
|
1610
|
+
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
}
|