function resolveGlyphProperty<A extends Annotation, C extends Chart, V extends generic>(property: GlyphProperty <A, C, V>, d: AnnotationDatum <A, C>): V

A utility function that resolves the value from a GlyphProperty. If the property is a callback function, it will be called to retrieve the value. Otherwise, it will just return the value.

Type parameters

  • A: Annotation

  • C: Chart

  • V: generic


  • property: GlyphProperty <A, C, V>

  • d: AnnotationDatum <A, C>

Returns: V