@shumoku/core · 0.4.0 · function
metricsBindingOf
The metrics-binding attachment on an element, if any. When `activeSourceIds` is given, only a binding whose `sourceId` is active counts — so a binding left behind by a detached/removed metrics source stops driving the mapping.
metricsBindingOf(attachments: { kind: string }[] | undefined, activeSourceIds?: ReadonlySet<string>): MetricsBindingAttachment | undefined Parameters
| Parameter | Type | Description | Default |
|---|---|---|---|
attachments | { kind: string }[] | undefined | No additional description. | — |
activeSourceIds | ReadonlySet<string> | No additional description. | — |
Returns
MetricsBindingAttachment | undefined