Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    Interface InPageCameraApi

    The in-page camera API installCameraPlacement attaches to window.__luxarE2ECamera. Declared here (types are erased) so the installer's body, the Node-side callers below, and a spec that drives many placements from inside ONE page.evaluate all describe the same shape.

    interface InPageCameraApi {
        pivot(): Vec3Like;
        place(
            position: Vec3Like,
            target?: Vec3Like | null,
            up?: Vec3Like | null,
        ): CameraPlacement | null;
        setDistanceLimits(min: number, max: number): OrbitDistanceLimits | null;
    }
    Index
    • Widen/restore the active orbit controls' distance clamp. Returns the PREVIOUS limits, or null when nothing was changed because the active controls are not orbit-like (or their limits are not numeric) — the caller must not read null as "applied".

      Parameters

      • min: number
      • max: number

      Returns OrbitDistanceLimits | null