weasel API - v0.8.0
    Preparing search index...

    Function viewToTransform

    • Bridge View into the legacy ViewTransform shape so chrome can keep calling worldToScreen / screenToWorld. View and ViewTransform use opposite sign conventions for the translation half (view.x is camera position; panX is canvas translation), so the adapter flips the sign and multiplies by per-axis scale.

      Parameters

      Returns ViewTransform