normalizeSvgIcon
Function in @bimworks/viewercommon.
API catalogue · @bimworks/viewercommon · Function
TypeScript#
function normalizeSvgIconMembers#
| Member | Kind | Description |
|---|---|---|
| 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#
TypeScript#
normalizeSvgIcon(text: string): stringThe 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 |