packageDocumentation module public export class IconSpecUtilities { /** Prefix for an SVG IconSpec */ public static readonly SVG_PREFIX = "svg:" ; /** Create an IconSpec for an SVG */ public static createSvgIconSpec ( svgSrc ) { return `${ IconSpecUtilities . SVG_PREFIX }${ svgSrc }` ; } /** Get the SVG Source from an IconSpec */ public static getSvgSource ( iconSpec ) { if ( iconSpec . startsWith ( IconSpecUtilities . SVG_PREFIX ) && iconSpec . length > 4 ) { return iconSpec . slice ( 4 ) ; } return undefined ; } }