blessed-components - v1.20.0
    Preparing search index...

    Interface MetricBarValueContext<TMetric>

    Value formatter context for one metric row.

    interface MetricBarValueContext<TMetric extends MetricBarItem> {
        percentage: number;
        value: number;
        metric: TMetric;
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Properties

    percentage: number

    Rounded progress in the inclusive range from 0 to 100.

    value: number

    Numeric value after it has been clamped to the configured range.

    metric: TMetric

    Original metric object supplied by the caller.