Reference·JavaScript · @bimworks/viewercommonJavaScript

normalizeSvgIcon

Function in @bimworks/viewercommon.

API catalogue · @bimworks/viewercommon · Function

TypeScript#
function normalizeSvgIcon

Members#

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): 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