Skip to content

@graphty/graphty-element / extend / metricField

Function: metricField() ​

metricField(spec): FieldDescriptor

Defined in: graphty-element/src/algorithms/metrics/fields.ts:26

Add the published path to a field, so no caller spells one out by hand.

Parameters ​

spec ​

Omit<FieldDescriptor, "path">

Everything about the field except its path.

Returns ​

FieldDescriptor

The field with its path filled in.