How to use the parse function from @fortawesome/fontawesome-svg-core

Find comprehensive JavaScript @fortawesome/fontawesome-svg-core.parse code examples handpicked from public code repositorys.

173
174
175
176
177
178
179
180
181
182

var iconDefinition = {
  prefix: iconOptions.prefix,
  iconName: iconOptions.icon
};
var transform = angular.isString(_this.transform) ? fontawesomeSvgCore.parse.transform(_this.transform) : {};
var mask = angular.isString(_this.mask) ? fontawesomeSvgCore.icon(maskToIcon(_this.mask)) : null;
var params = {
  classes: classList(iconOptions),
  transform: transform,
fork icon0
star icon4
watch icon0