Interface Id<Datum>

an accessor for getting ids from node data

The accessor must return an appropriate unique string id for given datum. This operator will only be called once for each input.

index will increment in the order data are processed.

This is used in Stratify#id, Connect#sourceId, and Connect#targetId.

Type Parameters

  • in Datum = never

Hierarchy

  • Id
  • get node id from a datum

    Parameters

    • datum: Datum

      the datum to get the id from

    • index: number

      the index that the data was encountered in

    Returns string

    id - the id corresponding to the node datum

Generated using TypeDoc