Function transition

  • Returns a new transition with the specified name. If a name is not specified, null is used. The new transition is only exclusive with other transitions of the same name.

    The generic "OldDatum" refers to the type of a previously-set datum of the selected element in the Transition.

    Type Parameters

    • OldDatum

    Parameters

    • Optional name: string

      Name of the transition.

    Returns Transition<BaseType, OldDatum, null, undefined>

  • Returns a new transition from an existing transition.

    When using a transition instance, the returned transition has the same id and name as the specified transition.

    The generic "OldDatum" refers to the type of a previously-set datum of the selected element in the Transition.

    Type Parameters

    • OldDatum

    Parameters

    Returns Transition<BaseType, OldDatum, null, undefined>