@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Class GaugePresentationStrategyAbstract

    Abstract base for gauge presentation strategies.

    A strategy receives a GaugeRenderContext and must return a GaugeRenderOutput — either an SVGSVGElement (kind: 'svg') or raw ImageData (kind: 'imagedata').

    Built-in implementations:

    class MyCustomStrategy extends GaugePresentationStrategy {
    public readonly name = 'Custom';
    public render(ctx: GaugeRenderContext): GaugeRenderOutput {
    const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg');
    // … draw your gauge …
    return { kind: 'svg', element: svg };
    }
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    name: string

    Human-readable name for this strategy (e.g. "Analog", "VU Meter").

    Methods