---
title: normalizeSvgIcon
summary: Function in @bimworks/viewercommon.
order: 10
languages: [javascript]
sdk-package: JavaScript · @bimworks/viewercommon
---

# normalizeSvgIcon

[[page:reference/javascript/api|API catalogue]] · `@bimworks/viewercommon` · Function

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
function normalizeSvgIcon
````



## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/javascript/bimworks-viewercommon/normalizesvgicon-d6096f31#member-bimworks-viewercommon-normalizesvgicon-176aa2e5d66b|normalizeSvgIcon]] | Method | The normalised annotation icon for SVG text, as a data: URL (scripts and other active content dropped, fitted in 32 x 32). Throws a message for the user when… |

## `normalizeSvgIcon` {#member-bimworks-viewercommon-normalizesvgicon-176aa2e5d66b}

````typescript sdk=js sdk-namespace="@bimworks/viewercommon"
normalizeSvgIcon(text: string): string
````

The normalised annotation icon for SVG text, as a data: URL (scripts and other active content dropped,
fitted in 32 x 32). Throws a message for the user when the text is not an SVG that draws anything.

### Parameters

| Name | Type | Description |
|---|---|---|
| `text` | `string` |  |
