renderer

renderer.setMaxScreenFraction

setMaxScreenFraction(value: number): void

Cap how large a single node or edge may appear once it comes close to the camera, as a fraction of the smaller viewport dimension.

Outside map mode apparent size goes as size × 50 / depth, with no upper bound on the edge strip and a 4096 px backstop on the node quad. That is fine while the camera stays outside the graph, and it falls apart the moment a scene animation flies through it: a node passed at a tenth of the focus distance is ten times the size, so one bubble (or one edge band) covers the frame and the shot is unreadable. This cap is what stops that, and because the engine moves the scene rather than the camera it applies to every animation path — CameraDirector shots, flyTo, plain zoom.

0.5 (the default) means a node's diameter never exceeds half the smaller viewport dimension. The curve is the soft knee from map mode: below half the cap it is the identity, so anything that was not already blowing up renders exactly as before, and above it the size asymptotes instead of stopping dead. Pass Infinity to switch the cap off and get the pre-cap behaviour back.

The value fans out to all four shaders that have to agree on the bubble boundary — node, node picking, edge, arrow — so the hitbox, the edge endpoint and the arrow tip stay attached to the capped quad.

valuenumberFraction in (0, 1], or Infinity to disable. Out-of-range values warn and fall back to the default.

Returns: void