ducjs - v4.4.2
    Preparing search index...

    Function withBatchedViewerUpdates

    • Runs a sequence of three-cad-viewer mutations with at most one repaint.

      Every viewer setter repaints the whole scene. Restoring a saved view or syncing size after a render runs many of them in one task, and on dense clipped models each repaint redraws every solid plus its stencil caps. The viewer's own _suppressUpdate guard skips the intermediate paints; the final paint only happens if something inside the batch requested one. Nested batches defer to the outermost one.

      Type Parameters

      • T

      Parameters

      • viewer: unknown
      • apply: () => T

      Returns T