Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

v6.2.0

Compare
Choose a tag to compare
@arkon arkon released this 24 Apr 23:35
· 126 commits to master since this release

Added [onSVGLoaded] lifecycle hook which can be used to manipulate the SVG element prior to it being inserted

For example if you're loading an SVG:

<div [inlineSVG]="'img/myicon.svg'" [onSVGLoaded]="handleSVG"></div>

But you want to explicitly change its width attribute:

handleSVG(svg: SVGElement): SVGElement {
  svg.setAttribute('width', '64');
  return svg;
}

(Note that it doesn't work with symbols currently)