G-code Preview — API Reference
    Preparing search index...

    Reduces render detail during camera interaction and restores it on settle. Off by default — no behavior change until switched to 'auto'. The detail factor is clamped to [MIN_INTERACTION_FACTOR, 1] and adapted by a bounded frame-interval hysteresis.

    Index
    • Move the resting ratio to ratio (the owner's pixel-ratio option changed, or the display's DPR did). At rest the renderer goes straight to it. Mid-gesture the current reduction factor is kept and applied to the new base, the next adaptation step scales from it, and the settle restores exactly it. Works in either mode.

      Parameters

      • ratio: number

      Returns void

    • Toggle the mode. 'off' clears any pending settle and, if a gesture had reduced detail, restores the resting ratio immediately; otherwise it leaves the renderer's pixel ratio untouched.

      Parameters

      • mode: "auto" | "off"

      Returns void