Function active

  • Return the active transition on the specified node with the specified name, if any. If no name is specified, null is used. Returns null if there is no such active transition on the specified node. This method is useful for creating chained transitions.

    The first generic "GElement" refers to the type of element on which the returned active transition was defined. The second generic "Datum" refers to the type of the datum, of a selected element on which the transition is defined. The third generic refers to the type of the parent elements in the returned Transition. The fourth generic refers to the type of the datum defined on the parent elements in the returned Transition.

    Type Parameters

    Parameters

    • node: GElement

      Element for which the active transition should be returned.

    • Optional name: string

      Name of the transition.

    Returns Transition<GElement, Datum, PElement, PDatum> | null