Interface MemoisingPickStrategyOptions

Construction options for MemoisingPickStrategy.

interface MemoisingPickStrategyOptions {
    canvasPosTolerance?: number;
}

Properties

canvasPosTolerance?: number

Pixel tolerance for canvasPos changes — the cache hits when the cursor moved at most this many pixels along either axis since the last call. 0 ⇒ exact match.

Default 0. Larger values amortise GPU pick stalls when the cursor jitters around a still position, but risk returning a stale snap when a closer vertex / edge has come into range at the new position. 2 is usually the most you'd want; higher starts to feel laggy on snap-aware hover UX.