# GaugeApi (@salmonui/charts/gauge)

> The GaugeApi interface of @salmonui/charts/gauge: Instance reached through ref.

Canonical: https://salmonui.dev/docs/reference/charts/gauge/GaugeApi

```ts
import type { GaugeApi } from '@salmonui/charts/gauge';
```

Entry index: https://salmonui.dev/docs/reference/charts/gauge (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/gauge.md).

## Reference

Kind: interface

```ts
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`.

Members (7):

| Name | Signature | Flags | 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). |
