@plastic-software/three 0.181.3 → 0.182.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/README.md +3 -4
- package/build/three.cjs +1192 -522
- package/build/three.core.js +345 -219
- package/build/three.core.min.js +1 -1
- package/build/three.module.js +864 -328
- package/build/three.module.min.js +1 -1
- package/build/three.tsl.js +15 -3
- package/build/three.tsl.min.js +1 -1
- package/build/three.webgpu.js +3660 -1545
- package/build/three.webgpu.min.js +1 -1
- package/build/three.webgpu.nodes.js +3659 -1544
- package/build/three.webgpu.nodes.min.js +1 -1
- package/examples/jsm/controls/MapControls.js +55 -1
- package/examples/jsm/controls/OrbitControls.js +6 -6
- package/examples/jsm/controls/TrackballControls.js +6 -6
- package/examples/jsm/csm/CSM.js +2 -1
- package/examples/jsm/environments/RoomEnvironment.js +2 -0
- package/examples/jsm/geometries/DecalGeometry.js +1 -1
- package/examples/jsm/helpers/LightProbeHelperGPU.js +1 -1
- package/examples/jsm/helpers/TextureHelperGPU.js +1 -1
- package/examples/jsm/inspector/Inspector.js +53 -9
- package/examples/jsm/inspector/RendererInspector.js +12 -2
- package/examples/jsm/inspector/tabs/Console.js +2 -2
- package/examples/jsm/inspector/tabs/Parameters.js +2 -2
- package/examples/jsm/inspector/tabs/Performance.js +2 -2
- package/examples/jsm/inspector/tabs/Viewer.js +4 -4
- package/examples/jsm/inspector/ui/Profiler.js +1836 -31
- package/examples/jsm/inspector/ui/Style.js +948 -13
- package/examples/jsm/inspector/ui/Tab.js +188 -1
- package/examples/jsm/inspector/ui/Values.js +17 -1
- package/examples/jsm/loaders/3DMLoader.js +5 -4
- package/examples/jsm/loaders/DRACOLoader.js +5 -5
- package/examples/jsm/loaders/FBXLoader.js +0 -2
- package/examples/jsm/loaders/HDRLoader.js +0 -1
- package/examples/jsm/loaders/KTX2Loader.js +16 -0
- package/examples/jsm/loaders/LDrawLoader.js +2 -3
- package/examples/jsm/loaders/PCDLoader.js +1 -0
- package/examples/jsm/loaders/SVGLoader.js +1 -1
- package/examples/jsm/loaders/TDSLoader.js +0 -2
- package/examples/jsm/loaders/TGALoader.js +0 -2
- package/examples/jsm/loaders/UltraHDRLoader.js +110 -137
- package/examples/jsm/loaders/VOXLoader.js +660 -117
- package/examples/jsm/loaders/VRMLLoader.js +2 -2
- package/examples/jsm/loaders/usd/USDCParser.js +1 -1
- package/examples/jsm/materials/LDrawConditionalLineNodeMaterial.js +1 -1
- package/examples/jsm/materials/MeshGouraudMaterial.js +0 -1
- package/examples/jsm/materials/WoodNodeMaterial.js +11 -11
- package/examples/jsm/math/Octree.js +131 -1
- package/examples/jsm/misc/Volume.js +0 -1
- package/examples/jsm/misc/VolumeSlice.js +0 -1
- package/examples/jsm/objects/SkyMesh.js +13 -3
- package/examples/jsm/physics/AmmoPhysics.js +12 -7
- package/examples/jsm/physics/JoltPhysics.js +3 -1
- package/examples/jsm/physics/RapierPhysics.js +3 -1
- package/examples/jsm/postprocessing/OutputPass.js +9 -0
- package/examples/jsm/postprocessing/RenderPass.js +10 -0
- package/examples/jsm/postprocessing/UnrealBloomPass.js +48 -18
- package/examples/jsm/renderers/Projector.js +268 -30
- package/examples/jsm/renderers/SVGRenderer.js +191 -58
- package/examples/jsm/shaders/UnpackDepthRGBAShader.js +2 -4
- package/examples/jsm/transpiler/AST.js +44 -0
- package/examples/jsm/transpiler/GLSLDecoder.js +61 -4
- package/examples/jsm/transpiler/ShaderToyDecoder.js +2 -0
- package/examples/jsm/transpiler/TSLEncoder.js +46 -3
- package/examples/jsm/transpiler/TranspilerUtils.js +3 -3
- package/examples/jsm/transpiler/WGSLEncoder.js +27 -0
- package/examples/jsm/tsl/display/AnaglyphPassNode.js +2 -0
- package/examples/jsm/tsl/display/BloomNode.js +11 -1
- package/examples/jsm/tsl/display/GTAONode.js +3 -2
- package/examples/jsm/tsl/display/PixelationPassNode.js +2 -1
- package/examples/jsm/tsl/display/SSGINode.js +7 -19
- package/examples/jsm/tsl/display/SSRNode.js +1 -1
- package/examples/jsm/tsl/display/SSSNode.js +4 -2
- package/examples/jsm/tsl/display/StereoCompositePassNode.js +8 -1
- package/examples/jsm/tsl/display/TRAANode.js +265 -114
- package/examples/jsm/tsl/display/radialBlur.js +68 -0
- package/examples/jsm/utils/ShadowMapViewer.js +24 -10
- package/examples/jsm/utils/ShadowMapViewerGPU.js +1 -1
- package/examples/jsm/utils/WebGPUTextureUtils.js +1 -1
- package/package.json +14 -12
- package/src/Three.Core.js +1 -0
- package/src/Three.TSL.js +14 -2
- package/src/animation/AnimationUtils.js +1 -12
- package/src/animation/KeyframeTrack.js +1 -1
- package/src/animation/tracks/BooleanKeyframeTrack.js +1 -1
- package/src/animation/tracks/ColorKeyframeTrack.js +1 -1
- package/src/animation/tracks/NumberKeyframeTrack.js +1 -1
- package/src/animation/tracks/QuaternionKeyframeTrack.js +1 -1
- package/src/animation/tracks/StringKeyframeTrack.js +1 -1
- package/src/animation/tracks/VectorKeyframeTrack.js +1 -1
- package/src/constants.js +61 -5
- package/src/core/BufferGeometry.js +14 -2
- package/src/core/Raycaster.js +2 -2
- package/src/extras/PMREMGenerator.js +3 -10
- package/src/extras/TextureUtils.js +5 -1
- package/src/geometries/ExtrudeGeometry.js +2 -2
- package/src/geometries/PolyhedronGeometry.js +1 -1
- package/src/helpers/PointLightHelper.js +1 -1
- package/src/lights/DirectionalLight.js +13 -0
- package/src/lights/HemisphereLight.js +10 -0
- package/src/lights/Light.js +1 -11
- package/src/lights/LightProbe.js +0 -15
- package/src/lights/LightShadow.js +0 -3
- package/src/lights/PointLight.js +15 -0
- package/src/lights/PointLightShadow.js +0 -86
- package/src/lights/SpotLight.js +22 -1
- package/src/loaders/MaterialLoader.js +2 -1
- package/src/loaders/ObjectLoader.js +3 -1
- package/src/loaders/nodes/NodeLoader.js +2 -2
- package/src/materials/Material.js +2 -0
- package/src/materials/ShaderMaterial.js +20 -1
- package/src/materials/nodes/Line2NodeMaterial.js +2 -2
- package/src/materials/nodes/MeshPhysicalNodeMaterial.js +3 -2
- package/src/materials/nodes/MeshStandardNodeMaterial.js +5 -4
- package/src/materials/nodes/NodeMaterial.js +59 -3
- package/src/materials/nodes/manager/NodeMaterialObserver.js +1 -1
- package/src/math/Matrix4.js +40 -40
- package/src/math/Sphere.js +1 -1
- package/src/math/Vector3.js +0 -2
- package/src/nodes/TSL.js +4 -1
- package/src/nodes/accessors/BatchNode.js +10 -10
- package/src/nodes/accessors/BufferAttributeNode.js +98 -12
- package/src/nodes/accessors/BufferNode.js +29 -2
- package/src/nodes/accessors/ClippingNode.js +4 -4
- package/src/nodes/accessors/CubeTextureNode.js +20 -1
- package/src/nodes/accessors/InstanceNode.js +69 -29
- package/src/nodes/accessors/MaterialNode.js +9 -1
- package/src/nodes/accessors/MaterialReferenceNode.js +1 -2
- package/src/nodes/accessors/ModelNode.js +1 -1
- package/src/nodes/accessors/Normal.js +2 -2
- package/src/nodes/accessors/ReferenceBaseNode.js +4 -4
- package/src/nodes/accessors/ReferenceNode.js +4 -4
- package/src/nodes/accessors/RendererReferenceNode.js +1 -2
- package/src/nodes/accessors/SkinningNode.js +15 -2
- package/src/nodes/accessors/StorageBufferNode.js +4 -2
- package/src/nodes/accessors/Tangent.js +1 -11
- package/src/nodes/accessors/Texture3DNode.js +26 -1
- package/src/nodes/accessors/UniformArrayNode.js +2 -2
- package/src/nodes/accessors/UserDataNode.js +1 -2
- package/src/nodes/accessors/VertexColorNode.js +1 -2
- package/src/nodes/code/FunctionNode.js +1 -2
- package/src/nodes/core/ArrayNode.js +20 -1
- package/src/nodes/core/AssignNode.js +2 -2
- package/src/nodes/core/AttributeNode.js +2 -2
- package/src/nodes/core/ContextNode.js +103 -4
- package/src/nodes/core/NodeBuilder.js +56 -14
- package/src/nodes/core/NodeFrame.js +12 -4
- package/src/nodes/core/NodeUtils.js +5 -5
- package/src/nodes/core/ParameterNode.js +1 -2
- package/src/nodes/core/PropertyNode.js +19 -3
- package/src/nodes/core/StackNode.js +56 -8
- package/src/nodes/core/StructNode.js +1 -2
- package/src/nodes/core/StructTypeNode.js +11 -17
- package/src/nodes/core/UniformNode.js +19 -4
- package/src/nodes/core/VarNode.js +46 -21
- package/src/nodes/display/NormalMapNode.js +37 -2
- package/src/nodes/display/PassNode.js +77 -7
- package/src/nodes/display/ScreenNode.js +1 -0
- package/src/nodes/functions/BSDF/BRDF_GGX_Multiscatter.js +3 -3
- package/src/nodes/functions/BSDF/DFGLUT.js +56 -0
- package/src/nodes/functions/BSDF/EnvironmentBRDF.js +2 -2
- package/src/nodes/functions/BSDF/V_GGX_SmithCorrelated_Anisotropic.js +1 -1
- package/src/nodes/functions/PhysicalLightingModel.js +102 -43
- package/src/nodes/gpgpu/ComputeBuiltinNode.js +1 -2
- package/src/nodes/gpgpu/SubgroupFunctionNode.js +1 -1
- package/src/nodes/gpgpu/WorkgroupInfoNode.js +2 -3
- package/src/nodes/lighting/AnalyticLightNode.js +53 -0
- package/src/nodes/lighting/LightsNode.js +2 -2
- package/src/nodes/lighting/PointShadowNode.js +141 -140
- package/src/nodes/lighting/ShadowFilterNode.js +53 -37
- package/src/nodes/lighting/ShadowNode.js +53 -19
- package/src/nodes/math/BitcountNode.js +433 -0
- package/src/nodes/math/PackFloatNode.js +98 -0
- package/src/nodes/math/UnpackFloatNode.js +96 -0
- package/src/nodes/pmrem/PMREMNode.js +1 -1
- package/src/nodes/tsl/TSLCore.js +4 -4
- package/src/nodes/utils/ArrayElementNode.js +13 -0
- package/src/nodes/utils/EventNode.js +1 -2
- package/src/nodes/utils/Packing.js +13 -1
- package/src/nodes/utils/PostProcessingUtils.js +33 -1
- package/src/nodes/utils/ReflectorNode.js +1 -1
- package/src/nodes/utils/SampleNode.js +1 -1
- package/src/nodes/utils/UVUtils.js +26 -0
- package/src/objects/BatchedMesh.js +5 -2
- package/src/objects/Line.js +1 -1
- package/src/objects/Mesh.js +1 -1
- package/src/objects/Points.js +1 -1
- package/src/objects/Skeleton.js +9 -0
- package/src/renderers/WebGLRenderer.js +145 -33
- package/src/renderers/common/Backend.js +8 -0
- package/src/renderers/common/Background.js +19 -9
- package/src/renderers/common/Binding.js +11 -0
- package/src/renderers/common/Bindings.js +7 -7
- package/src/renderers/common/Buffer.js +40 -0
- package/src/renderers/common/ChainMap.js +30 -6
- package/src/renderers/common/Geometries.js +12 -0
- package/src/renderers/common/RenderContexts.js +8 -1
- package/src/renderers/common/RenderObject.js +14 -1
- package/src/renderers/common/Renderer.js +53 -35
- package/src/renderers/common/Textures.js +1 -1
- package/src/renderers/common/UniformsGroup.js +1 -0
- package/src/renderers/common/XRManager.js +1 -0
- package/src/renderers/common/extras/PMREMGenerator.js +2 -8
- package/src/renderers/common/nodes/NodeUniformBuffer.js +52 -0
- package/src/renderers/shaders/DFGLUTData.js +19 -34
- package/src/renderers/shaders/ShaderChunk/lights_fragment_begin.glsl.js +5 -2
- package/src/renderers/shaders/ShaderChunk/lights_physical_fragment.glsl.js +8 -4
- package/src/renderers/shaders/ShaderChunk/lights_physical_pars_fragment.glsl.js +90 -51
- package/src/renderers/shaders/ShaderChunk/shadowmap_pars_fragment.glsl.js +194 -186
- 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.js +3 -3
- package/src/renderers/shaders/ShaderLib/depth.glsl.js +3 -0
- package/src/renderers/shaders/ShaderLib/{distanceRGBA.glsl.js → distance.glsl.js} +1 -2
- package/src/renderers/shaders/ShaderLib/meshlambert.glsl.js +0 -1
- package/src/renderers/shaders/ShaderLib/meshnormal.glsl.js +1 -2
- package/src/renderers/shaders/ShaderLib/meshphong.glsl.js +0 -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 +0 -1
- package/src/renderers/shaders/ShaderLib/vsm.glsl.js +4 -6
- package/src/renderers/shaders/ShaderLib.js +3 -3
- package/src/renderers/webgl/WebGLCapabilities.js +3 -4
- package/src/renderers/webgl/WebGLLights.js +18 -1
- package/src/renderers/webgl/WebGLOutput.js +267 -0
- package/src/renderers/webgl/WebGLProgram.js +43 -107
- package/src/renderers/webgl/WebGLPrograms.js +35 -45
- package/src/renderers/webgl/WebGLShadowMap.js +188 -25
- package/src/renderers/webgl/WebGLState.js +20 -20
- package/src/renderers/webgl/WebGLTextures.js +89 -28
- package/src/renderers/webgl/WebGLUniforms.js +40 -3
- package/src/renderers/webgl/WebGLUtils.js +6 -2
- package/src/renderers/webgl-fallback/WebGLBackend.js +79 -13
- package/src/renderers/webgl-fallback/nodes/GLSLNodeBuilder.js +59 -7
- package/src/renderers/webgl-fallback/utils/WebGLState.js +18 -3
- package/src/renderers/webgl-fallback/utils/WebGLTextureUtils.js +5 -3
- package/src/renderers/webgl-fallback/utils/WebGLTimestampQueryPool.js +9 -9
- package/src/renderers/webgl-fallback/utils/WebGLUtils.js +6 -2
- package/src/renderers/webgpu/WebGPUBackend.js +61 -4
- package/src/renderers/webgpu/WebGPURenderer.js +1 -1
- package/src/renderers/webgpu/nodes/WGSLNodeBuilder.js +65 -23
- package/src/renderers/webgpu/utils/WebGPUAttributeUtils.js +4 -17
- package/src/renderers/webgpu/utils/WebGPUBindingUtils.js +354 -186
- package/src/renderers/webgpu/utils/WebGPUConstants.js +2 -0
- package/src/renderers/webgpu/utils/WebGPUPipelineUtils.js +20 -7
- package/src/renderers/webgpu/utils/WebGPUTextureUtils.js +40 -17
- package/src/renderers/webgpu/utils/WebGPUTimestampQueryPool.js +7 -7
- package/src/renderers/webgpu/utils/WebGPUUtils.js +7 -5
- package/src/textures/CubeDepthTexture.js +76 -0
- package/src/textures/Source.js +1 -1
- package/src/textures/Texture.js +1 -1
- package/src/utils.js +13 -1
- package/src/nodes/functions/BSDF/DFGApprox.js +0 -71
|
@@ -36,12 +36,13 @@ export class Style {
|
|
|
36
36
|
right: 15px;
|
|
37
37
|
background-color: rgba(30, 30, 36, 0.85);
|
|
38
38
|
border: 1px solid #4a4a5a54;
|
|
39
|
-
border-radius: 6px
|
|
39
|
+
border-radius: 12px 6px 6px 12px;
|
|
40
40
|
color: var(--text-primary);
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
z-index: 1001;
|
|
43
43
|
transition: all 0.2s ease-in-out;
|
|
44
|
-
font-size: 14px
|
|
44
|
+
/*font-size: 14px;*/
|
|
45
|
+
font-size: 15px;
|
|
45
46
|
backdrop-filter: blur(8px);
|
|
46
47
|
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
|
|
47
48
|
display: flex;
|
|
@@ -92,6 +93,289 @@ export class Style {
|
|
|
92
93
|
color: #999;
|
|
93
94
|
}
|
|
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
|
+
|
|
95
379
|
#profiler-panel {
|
|
96
380
|
position: fixed;
|
|
97
381
|
z-index: 1001 !important;
|
|
@@ -108,11 +392,12 @@ export class Style {
|
|
|
108
392
|
z-index: 1000;
|
|
109
393
|
/*box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);*/
|
|
110
394
|
transform: translateY(100%);
|
|
111
|
-
transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s ease-out;
|
|
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;
|
|
112
396
|
font-family: var(--font-mono);
|
|
113
397
|
}
|
|
114
398
|
|
|
115
|
-
#profiler-panel.resizing
|
|
399
|
+
#profiler-panel.resizing,
|
|
400
|
+
#profiler-panel.dragging {
|
|
116
401
|
transition: none;
|
|
117
402
|
}
|
|
118
403
|
|
|
@@ -124,6 +409,92 @@ export class Style {
|
|
|
124
409
|
height: 100vh;
|
|
125
410
|
}
|
|
126
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
|
+
|
|
127
498
|
|
|
128
499
|
.panel-resizer {
|
|
129
500
|
position: absolute;
|
|
@@ -133,6 +504,30 @@ export class Style {
|
|
|
133
504
|
height: 5px;
|
|
134
505
|
cursor: ns-resize;
|
|
135
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;
|
|
136
531
|
}
|
|
137
532
|
|
|
138
533
|
.profiler-header {
|
|
@@ -145,12 +540,181 @@ export class Style {
|
|
|
145
540
|
|
|
146
541
|
overflow-x: auto;
|
|
147
542
|
overflow-y: hidden;
|
|
148
|
-
width: calc(100% -
|
|
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%;
|
|
149
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;
|
|
150
685
|
}
|
|
151
686
|
|
|
152
687
|
.profiler-tabs {
|
|
153
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;
|
|
154
718
|
}
|
|
155
719
|
|
|
156
720
|
.profiler-controls {
|
|
@@ -164,24 +728,45 @@ export class Style {
|
|
|
164
728
|
}
|
|
165
729
|
|
|
166
730
|
.tab-btn {
|
|
731
|
+
position: relative;
|
|
167
732
|
background: transparent;
|
|
168
733
|
border: none;
|
|
169
734
|
/*border-right: 1px solid var(--profiler-border);*/
|
|
170
735
|
color: var(--text-secondary);
|
|
171
736
|
padding: 8px 18px;
|
|
172
|
-
cursor:
|
|
737
|
+
cursor: default;
|
|
173
738
|
display: flex;
|
|
174
739
|
align-items: center;
|
|
175
740
|
font-family: var(--font-family);
|
|
176
|
-
|
|
741
|
+
font-weight: 600;
|
|
177
742
|
font-size: 14px;
|
|
743
|
+
user-select: none;
|
|
744
|
+
transition: opacity 0.2s, transform 0.2s;
|
|
745
|
+
touch-action: none;
|
|
178
746
|
}
|
|
179
747
|
|
|
180
748
|
.tab-btn.active {
|
|
181
|
-
|
|
749
|
+
border-bottom: 2px solid var(--accent-color);
|
|
182
750
|
color: white;
|
|
183
751
|
}
|
|
184
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,
|
|
185
770
|
#maximize-btn,
|
|
186
771
|
#hide-panel-btn {
|
|
187
772
|
background: transparent;
|
|
@@ -189,19 +774,40 @@ export class Style {
|
|
|
189
774
|
border-left: 1px solid var(--profiler-border);
|
|
190
775
|
color: var(--text-secondary);
|
|
191
776
|
width: 45px;
|
|
777
|
+
height: 100%;
|
|
192
778
|
cursor: pointer;
|
|
193
779
|
transition: all 0.2s;
|
|
194
780
|
display: flex;
|
|
195
781
|
align-items: center;
|
|
196
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;
|
|
197
794
|
}
|
|
198
795
|
|
|
796
|
+
#floating-btn:hover,
|
|
199
797
|
#maximize-btn:hover,
|
|
200
798
|
#hide-panel-btn:hover {
|
|
201
799
|
background-color: rgba(255, 255, 255, 0.1);
|
|
202
800
|
color: var(--text-primary);
|
|
203
801
|
}
|
|
204
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
|
+
|
|
205
811
|
.profiler-content-wrapper {
|
|
206
812
|
flex-grow: 1;
|
|
207
813
|
overflow: hidden;
|
|
@@ -222,6 +828,8 @@ export class Style {
|
|
|
222
828
|
box-sizing: border-box;
|
|
223
829
|
display: flex;
|
|
224
830
|
flex-direction: column;
|
|
831
|
+
user-select: none;
|
|
832
|
+
-webkit-user-select: none;
|
|
225
833
|
}
|
|
226
834
|
|
|
227
835
|
.profiler-content.active {
|
|
@@ -269,11 +877,23 @@ export class Style {
|
|
|
269
877
|
transition: background-color 0.2s;
|
|
270
878
|
gap: 10px;
|
|
271
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;
|
|
272
890
|
}
|
|
273
891
|
|
|
274
892
|
.list-item-wrapper {
|
|
275
893
|
margin-top: 2px;
|
|
276
894
|
margin-bottom: 2px;
|
|
895
|
+
user-select: none;
|
|
896
|
+
-webkit-user-select: none;
|
|
277
897
|
}
|
|
278
898
|
|
|
279
899
|
.list-item-wrapper:first-child {
|
|
@@ -291,6 +911,7 @@ export class Style {
|
|
|
291
911
|
|
|
292
912
|
.list-item-wrapper.header-wrapper>.list-item-row>.list-item-cell:first-child {
|
|
293
913
|
font-weight: 600;
|
|
914
|
+
line-height: 1;
|
|
294
915
|
}
|
|
295
916
|
|
|
296
917
|
.list-item-row.collapsible,
|
|
@@ -300,6 +921,7 @@ export class Style {
|
|
|
300
921
|
|
|
301
922
|
.list-item-row.collapsible {
|
|
302
923
|
background-color: rgba(0, 170, 255, 0.15) !important;
|
|
924
|
+
min-height: 23px;
|
|
303
925
|
}
|
|
304
926
|
|
|
305
927
|
.list-item-row.collapsible.alert,
|
|
@@ -326,6 +948,8 @@ export class Style {
|
|
|
326
948
|
white-space: pre;
|
|
327
949
|
display: flex;
|
|
328
950
|
align-items: center;
|
|
951
|
+
user-select: none;
|
|
952
|
+
-webkit-user-select: none;
|
|
329
953
|
}
|
|
330
954
|
|
|
331
955
|
.list-item-cell:not(:first-child) {
|
|
@@ -343,6 +967,8 @@ export class Style {
|
|
|
343
967
|
border-bottom: 1px solid var(--profiler-border);
|
|
344
968
|
margin-bottom: 5px;
|
|
345
969
|
gap: 10px;
|
|
970
|
+
user-select: none;
|
|
971
|
+
-webkit-user-select: none;
|
|
346
972
|
}
|
|
347
973
|
|
|
348
974
|
.list-item-wrapper.section-start {
|
|
@@ -394,10 +1020,11 @@ export class Style {
|
|
|
394
1020
|
.list-scroll-wrapper {
|
|
395
1021
|
overflow-x: auto;
|
|
396
1022
|
width: 100%;
|
|
1023
|
+
user-select: none;
|
|
1024
|
+
-webkit-user-select: none;
|
|
397
1025
|
}
|
|
398
1026
|
|
|
399
1027
|
.list-container.parameters .list-item-row:not(.collapsible) {
|
|
400
|
-
height: 31px;
|
|
401
1028
|
}
|
|
402
1029
|
|
|
403
1030
|
.graph-container {
|
|
@@ -558,6 +1185,7 @@ export class Style {
|
|
|
558
1185
|
align-items: center;
|
|
559
1186
|
cursor: pointer;
|
|
560
1187
|
gap: 8px;
|
|
1188
|
+
will-change: transform;
|
|
561
1189
|
}
|
|
562
1190
|
|
|
563
1191
|
.custom-checkbox input {
|
|
@@ -567,7 +1195,7 @@ export class Style {
|
|
|
567
1195
|
.custom-checkbox .checkmark {
|
|
568
1196
|
width: 14px;
|
|
569
1197
|
height: 14px;
|
|
570
|
-
border: 1px solid var(--
|
|
1198
|
+
border: 1px solid var(--accent-color);
|
|
571
1199
|
border-radius: 3px;
|
|
572
1200
|
display: inline-flex;
|
|
573
1201
|
justify-content: center;
|
|
@@ -577,8 +1205,8 @@ export class Style {
|
|
|
577
1205
|
|
|
578
1206
|
.custom-checkbox .checkmark::after {
|
|
579
1207
|
content: '';
|
|
580
|
-
width:
|
|
581
|
-
height:
|
|
1208
|
+
width: 6px;
|
|
1209
|
+
height: 6px;
|
|
582
1210
|
background-color: var(--accent-color);
|
|
583
1211
|
border-radius: 1px;
|
|
584
1212
|
display: block;
|
|
@@ -636,13 +1264,320 @@ export class Style {
|
|
|
636
1264
|
border: 1px solid var(--profiler-border);
|
|
637
1265
|
}
|
|
638
1266
|
|
|
639
|
-
|
|
1267
|
+
/* Override .param-control styles for mini-panel-content */
|
|
1268
|
+
.mini-panel-content input,
|
|
1269
|
+
.mini-panel-content select,
|
|
1270
|
+
.mini-panel-content button {
|
|
1271
|
+
padding: 2px 4px;
|
|
1272
|
+
height: 21px;
|
|
1273
|
+
line-height: 1.4;
|
|
1274
|
+
padding-top: 4px;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1277
|
+
.mini-panel-content .param-control input,
|
|
1278
|
+
.mini-panel-content .param-control select,
|
|
1279
|
+
.mini-panel-content .param-control button {
|
|
1280
|
+
background-color: #1e1e24c2;
|
|
1281
|
+
line-height: 1.0;
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
.mini-panel-content .param-control select {
|
|
1285
|
+
padding: 2px 2px;
|
|
1286
|
+
padding-top: 3px;
|
|
1287
|
+
}
|
|
1288
|
+
|
|
1289
|
+
.mini-panel-content .param-control input[type="number"]::-webkit-outer-spin-button,
|
|
1290
|
+
.mini-panel-content .param-control input[type="number"]::-webkit-inner-spin-button {
|
|
1291
|
+
-webkit-appearance: none;
|
|
1292
|
+
margin: 0;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
.mini-panel-content .param-control input[type="number"] {
|
|
1296
|
+
-moz-appearance: textfield;
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
.mini-panel-content .list-item-cell span {
|
|
1300
|
+
position: relative;
|
|
1301
|
+
top: 1px;
|
|
1302
|
+
margin-left: 2px;
|
|
1303
|
+
}
|
|
1304
|
+
|
|
1305
|
+
.mini-panel-content .custom-checkbox .checkmark {
|
|
1306
|
+
width: 12px;
|
|
1307
|
+
height: 12px;
|
|
1308
|
+
margin-bottom: 2px;
|
|
1309
|
+
will-change: transform;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.mini-panel-content .list-container.parameters .list-item-row:not(.collapsible) {
|
|
1313
|
+
margin-bottom: 2px;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
@media screen and (max-width: 450px) and (orientation: portrait) {
|
|
640
1317
|
|
|
641
1318
|
.console-filter-input {
|
|
642
1319
|
max-width: 100px;
|
|
643
1320
|
}
|
|
644
1321
|
|
|
645
1322
|
}
|
|
1323
|
+
|
|
1324
|
+
/* Touch device optimizations */
|
|
1325
|
+
@media (hover: none) and (pointer: coarse) {
|
|
1326
|
+
|
|
1327
|
+
.panel-resizer {
|
|
1328
|
+
top: -10px !important;
|
|
1329
|
+
height: 20px !important;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
#profiler-panel.position-top .panel-resizer {
|
|
1333
|
+
top: auto !important;
|
|
1334
|
+
bottom: -10px !important;
|
|
1335
|
+
height: 20px !important;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
#profiler-panel.position-left .panel-resizer {
|
|
1339
|
+
right: -10px !important;
|
|
1340
|
+
width: 20px !important;
|
|
1341
|
+
height: 100% !important;
|
|
1342
|
+
}
|
|
1343
|
+
|
|
1344
|
+
#profiler-panel.position-right .panel-resizer {
|
|
1345
|
+
left: -10px !important;
|
|
1346
|
+
width: 20px !important;
|
|
1347
|
+
height: 100% !important;
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
.detached-tab-resizer-top,
|
|
1351
|
+
.detached-tab-resizer-bottom {
|
|
1352
|
+
height: 10px !important;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
.detached-tab-resizer-left,
|
|
1356
|
+
.detached-tab-resizer-right {
|
|
1357
|
+
width: 10px !important;
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.drag-preview-indicator {
|
|
1363
|
+
position: fixed;
|
|
1364
|
+
background-color: rgba(0, 170, 255, 0.2);
|
|
1365
|
+
border: 2px dashed var(--accent-color);
|
|
1366
|
+
z-index: 999;
|
|
1367
|
+
pointer-events: none;
|
|
1368
|
+
transition: all 0.2s ease-out;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
/* Detached Tab Windows */
|
|
1372
|
+
.detached-tab-panel {
|
|
1373
|
+
position: fixed;
|
|
1374
|
+
width: 500px;
|
|
1375
|
+
height: 400px;
|
|
1376
|
+
background: var(--profiler-bg);
|
|
1377
|
+
border: 1px solid var(--profiler-border);
|
|
1378
|
+
border-radius: 8px;
|
|
1379
|
+
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
|
|
1380
|
+
z-index: 1002;
|
|
1381
|
+
display: flex;
|
|
1382
|
+
flex-direction: column;
|
|
1383
|
+
backdrop-filter: blur(10px);
|
|
1384
|
+
overflow: hidden;
|
|
1385
|
+
opacity: 1;
|
|
1386
|
+
visibility: visible;
|
|
1387
|
+
transition: opacity 0.2s, visibility 0.2s;
|
|
1388
|
+
}
|
|
1389
|
+
|
|
1390
|
+
#profiler-panel:not(.visible) ~ * .detached-tab-panel,
|
|
1391
|
+
body:has(#profiler-panel:not(.visible)) .detached-tab-panel {
|
|
1392
|
+
opacity: 0;
|
|
1393
|
+
visibility: hidden;
|
|
1394
|
+
pointer-events: none;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
.detached-tab-header {
|
|
1398
|
+
background: var(--profiler-header-bg);
|
|
1399
|
+
padding: 0 7px 0 15px;
|
|
1400
|
+
font-family: var(--font-family);
|
|
1401
|
+
font-size: 14px;
|
|
1402
|
+
color: var(--text-primary);
|
|
1403
|
+
font-weight: 600;
|
|
1404
|
+
display: flex;
|
|
1405
|
+
justify-content: space-between;
|
|
1406
|
+
align-items: center;
|
|
1407
|
+
border-bottom: 1px solid var(--profiler-border);
|
|
1408
|
+
cursor: grab;
|
|
1409
|
+
user-select: none;
|
|
1410
|
+
height: 38px;
|
|
1411
|
+
flex-shrink: 0;
|
|
1412
|
+
-webkit-font-smoothing: antialiased;
|
|
1413
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1414
|
+
touch-action: none;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
.detached-tab-header:active {
|
|
1418
|
+
cursor: grabbing;
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
.detached-header-controls {
|
|
1422
|
+
display: flex;
|
|
1423
|
+
gap: 5px;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
.detached-reattach-btn {
|
|
1427
|
+
background: transparent;
|
|
1428
|
+
border: none;
|
|
1429
|
+
color: var(--text-secondary);
|
|
1430
|
+
font-family: var(--font-family);
|
|
1431
|
+
font-size: 18px;
|
|
1432
|
+
line-height: 1;
|
|
1433
|
+
cursor: pointer;
|
|
1434
|
+
padding: 4px 8px;
|
|
1435
|
+
border-radius: 4px;
|
|
1436
|
+
transition: all 0.2s;
|
|
1437
|
+
display: flex;
|
|
1438
|
+
align-items: center;
|
|
1439
|
+
justify-content: center;
|
|
1440
|
+
-webkit-font-smoothing: antialiased;
|
|
1441
|
+
-moz-osx-font-smoothing: grayscale;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.detached-reattach-btn:hover {
|
|
1445
|
+
background: rgba(0, 170, 255, 0.2);
|
|
1446
|
+
color: var(--accent-color);
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
.detached-tab-content {
|
|
1450
|
+
flex: 1;
|
|
1451
|
+
overflow: auto;
|
|
1452
|
+
position: relative;
|
|
1453
|
+
background: var(--profiler-bg);
|
|
1454
|
+
}
|
|
1455
|
+
|
|
1456
|
+
.detached-tab-content::-webkit-scrollbar {
|
|
1457
|
+
width: 8px;
|
|
1458
|
+
height: 8px;
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1461
|
+
.detached-tab-content::-webkit-scrollbar-track {
|
|
1462
|
+
background: transparent;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
.detached-tab-content::-webkit-scrollbar-thumb {
|
|
1466
|
+
background-color: rgba(0, 0, 0, 0.25);
|
|
1467
|
+
border-radius: 10px;
|
|
1468
|
+
transition: background 0.3s ease;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
.detached-tab-content::-webkit-scrollbar-thumb:hover {
|
|
1472
|
+
background-color: rgba(0, 0, 0, 0.4);
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
.detached-tab-content::-webkit-scrollbar-corner {
|
|
1476
|
+
background: transparent;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
.detached-tab-content .profiler-content {
|
|
1480
|
+
display: block !important;
|
|
1481
|
+
height: 100%;
|
|
1482
|
+
visibility: visible !important;
|
|
1483
|
+
opacity: 1 !important;
|
|
1484
|
+
position: relative !important;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
.detached-tab-content .profiler-content > * {
|
|
1488
|
+
font-family: var(--font-mono);
|
|
1489
|
+
color: var(--text-primary);
|
|
1490
|
+
}
|
|
1491
|
+
|
|
1492
|
+
.detached-tab-resizer {
|
|
1493
|
+
position: absolute;
|
|
1494
|
+
bottom: 0;
|
|
1495
|
+
right: 0;
|
|
1496
|
+
width: 20px;
|
|
1497
|
+
height: 20px;
|
|
1498
|
+
cursor: nwse-resize;
|
|
1499
|
+
z-index: 10;
|
|
1500
|
+
touch-action: none;
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
.detached-tab-resizer::after {
|
|
1504
|
+
content: '';
|
|
1505
|
+
position: absolute;
|
|
1506
|
+
bottom: 2px;
|
|
1507
|
+
right: 2px;
|
|
1508
|
+
width: 12px;
|
|
1509
|
+
height: 12px;
|
|
1510
|
+
border-right: 2px solid var(--profiler-border);
|
|
1511
|
+
border-bottom: 2px solid var(--profiler-border);
|
|
1512
|
+
border-bottom-right-radius: 6px;
|
|
1513
|
+
opacity: 0.5;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.detached-tab-resizer:hover::after {
|
|
1517
|
+
opacity: 1;
|
|
1518
|
+
border-color: var(--accent-color);
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/* Edge resizers */
|
|
1522
|
+
.detached-tab-resizer-top {
|
|
1523
|
+
position: absolute;
|
|
1524
|
+
top: 0;
|
|
1525
|
+
left: 0;
|
|
1526
|
+
right: 0;
|
|
1527
|
+
height: 5px;
|
|
1528
|
+
cursor: ns-resize;
|
|
1529
|
+
z-index: 10;
|
|
1530
|
+
touch-action: none;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.detached-tab-resizer-right {
|
|
1534
|
+
position: absolute;
|
|
1535
|
+
top: 0;
|
|
1536
|
+
right: 0;
|
|
1537
|
+
bottom: 0;
|
|
1538
|
+
width: 5px;
|
|
1539
|
+
cursor: ew-resize;
|
|
1540
|
+
z-index: 10;
|
|
1541
|
+
touch-action: none;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
.detached-tab-resizer-bottom {
|
|
1545
|
+
position: absolute;
|
|
1546
|
+
bottom: 0;
|
|
1547
|
+
left: 0;
|
|
1548
|
+
right: 0;
|
|
1549
|
+
height: 5px;
|
|
1550
|
+
cursor: ns-resize;
|
|
1551
|
+
z-index: 10;
|
|
1552
|
+
touch-action: none;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
.detached-tab-resizer-left {
|
|
1556
|
+
position: absolute;
|
|
1557
|
+
top: 0;
|
|
1558
|
+
left: 0;
|
|
1559
|
+
bottom: 0;
|
|
1560
|
+
width: 5px;
|
|
1561
|
+
cursor: ew-resize;
|
|
1562
|
+
z-index: 10;
|
|
1563
|
+
touch-action: none;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
/* Input number spin buttons - hide arrows */
|
|
1567
|
+
/* Chrome, Safari, Edge, Opera */
|
|
1568
|
+
#profiler-panel input[type="number"]::-webkit-outer-spin-button,
|
|
1569
|
+
#profiler-panel input[type="number"]::-webkit-inner-spin-button,
|
|
1570
|
+
.detached-tab-content input[type="number"]::-webkit-outer-spin-button,
|
|
1571
|
+
.detached-tab-content input[type="number"]::-webkit-inner-spin-button {
|
|
1572
|
+
-webkit-appearance: none;
|
|
1573
|
+
margin: 0;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/* Firefox */
|
|
1577
|
+
#profiler-panel input[type="number"],
|
|
1578
|
+
.detached-tab-content input[type="number"] {
|
|
1579
|
+
-moz-appearance: textfield;
|
|
1580
|
+
}
|
|
646
1581
|
`;
|
|
647
1582
|
const styleElement = document.createElement( 'style' );
|
|
648
1583
|
styleElement.id = 'profiler-styles';
|