UNPKG

@patricksurry/g3

Version:

A flexible Javascript framework for building steam gauge instrument panels that display live external metrics from flight (or other) simulators like XPlane or MS FS2020

11 lines (10 loc) • 403 B
import type { Fake, LocalHub } from './types'; /** * The in-browser hub a panel uses when it has no url (see doc/API.md#local-hub). * Each fake declares a metric's starting value, either as a constant or as a generator * which is then called once per tick with the metric's current value. */ export declare function localHub(fakes: Record<string, { fake: Fake; unit?: string; }>): LocalHub;