mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
35 lines
792 B
Markdown
35 lines
792 B
Markdown
|
+++
|
||
|
# -----------------------------------------------------------------------
|
||
|
# Do not edit this file. It is automatically generated by API Documenter.
|
||
|
# -----------------------------------------------------------------------
|
||
|
title = "measureText"
|
||
|
keywords = ["grafana","documentation","sdk","@grafana/ui"]
|
||
|
type = "docs"
|
||
|
+++
|
||
|
|
||
|
## measureText() function
|
||
|
|
||
|
### measureText() function
|
||
|
|
||
|
<b>Signature</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function measureText(text: string, fontSize: number): TextMetrics;
|
||
|
```
|
||
|
<b>Import</b>
|
||
|
|
||
|
```typescript
|
||
|
import { measureText } from '@grafana/ui';
|
||
|
```
|
||
|
<b>Parameters</b>
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| text | <code>string</code> | |
|
||
|
| fontSize | <code>number</code> | |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
`TextMetrics`
|
||
|
|