Function transition

  • Start a transition on a selection if transitions are globally enabled (disableTransitions is false) and the duration is greater than zero; otherwise return the selection. Since most operations are the same on a d3 selection and a d3 transition, this allows a common code path for both cases.

    Parameters

    • selection: any

      the selection to be transitioned

    • Optional duration: number

      the duration of the transition in milliseconds, a function returning the duration, or 0 for no transition

    • Optional delay: number

      the delay of the transition in milliseconds, or a function returning the delay, or 0 for no delay

    • Optional name: string

      the name of the transition (if concurrent transitions on the same elements are needed)

    Returns any

Generated using TypeDoc