INNER CODE UNIT · TypeScript

mouseScaleFactor

AmrDab/clawdcursor · src/surface/cli.ts:1324

          mouseScaleFactor = lw > LLM_TARGET_WIDTH ? lw / LLM_TARGET_WIDTH : 1;
        } catch {
          mouseScaleFactor = screenshotScaleFactor; // best-effort fallback
        }
      } else {
        mouseScaleFactor = screenshotScaleFactor;
      }
      await a11y.warmup();
      initialized = true;
      console.log(`Subsystems initialized (mouseScale=${mouseScaleFactor}, screenshotScale=${screenshotScaleFactor})`);
    })();
    return initPromise;
  };

  return {
    desktop, a11y, cdp, uiMaps,
    get platform() { return platform; },
    getMouseScaleFactor: () => mouseScaleFactor,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…