mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
cc3fc18076
* added packages reference menu item. * removed the draft flag. * Updated docs by running script.
792 B
792 B
+++
-----------------------------------------------------------------------
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
Signature
export declare function measureText(text: string, fontSize: number): TextMetrics;
Import
import { measureText } from '@grafana/ui';
Parameters
Parameter | Type | Description |
---|---|---|
text | string |
|
fontSize | number |
Returns:
TextMetrics