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

    Function zoomAt

    • Pure zoom primitive. Returns a new View whose scale is multiplied by factor (per-axis, clamped) and whose translation is adjusted so that the world point currently under anchor (screen coords relative to the canvas top-left) stays under the same screen pixel after the zoom — independently on each axis.

      factor: number means "apply uniformly to both axes". factor: {x, y} applies per-axis factors. Likewise for opts.min / opts.max.

      Parameters

      Returns View