<svg>
Draws SVG from a markup string or a URL. Unlike HTML, you can't write SVG tags in the template: pass the markup as text, and give the element a width and height.
Usage
src/app/dot.ts
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Plus the common attributes, such as id, class and style.
Writing the markup
- No CSS variables or page styles. The markup can't use them.
- Draw lines with
<path>.<line>doesn't show on iOS and Android. - Give the root
<svg>xmlns="http://www.w3.org/2000/svg". Without it, the web preview draws nothing. - AngularLynx removes
stroke-dasharrayvalues iOS can't parse, such asnone. They would blank every SVG in the app.
Events
Read the payload from $event.detail. Angular types $event for each event: see Element events.
Plus the common events, such as bindtap.
