API reference: @salmonui/charts/gauge
GaugeApiinterface
import type { GaugeApi } from '@salmonui/charts/gauge';interface GaugeApi {
readonly element: HTMLElement | null;
export(options?: GaugeExportOptions): Promise<void>;
toBlob(format?: 'png' | 'jpeg' | 'svg'): Promise<Blob>;
toDataURL(format?: 'png' | 'jpeg' | 'svg'): Promise<string>;
toSVGString(): string;
print(): Promise<void>;
focus(): void;
}
Instance reached through ref.
| Name | Signature | Description |
|---|---|---|
element | readonly element: HTMLElement | null; | |
export | export(options?: GaugeExportOptions): Promise<void>; | |
toBlob | toBlob(format?: 'png' | 'jpeg' | 'svg'): Promise<Blob>; | |
toDataURL | toDataURL(format?: 'png' | 'jpeg' | 'svg'): Promise<string>; | |
toSVGString | toSVGString(): string; | |
print | print(): Promise<void>; | |
focus | focus(): void; | Focuses the first slider thumb (draggable pointer or range end). |