Function zoom

  • Creates a new zoom behavior. The returned behavior, zoom, is both an object and a function, and is typically applied to selected elements via selection.call.

    The first generic refers to the type of reference element to which the zoom behavior is attached. The second generic refers to the type of the datum of the reference element.

    Type Parameters

    • ZoomRefElement extends Element

    • Datum

    Returns ZoomBehavior<ZoomRefElement, Datum>