loadSVGFromURL function
- @JS('fabric.loadSVGFromURL')
Takes url corresponding to an SVG document, and parses it into a set of fabric objects. Note that SVG is fetched via XMLHttpRequest, so it needs to conform to SOP (Same Origin Policy) /void Function (List
Implementation
@JS('fabric.loadSVGFromURL')
external void loadSVGFromURL(
String url,
void Function(List<dynamic> results, dynamic options, dynamic elements,
dynamic allElements)
callback,
[Function reviver,
dynamic /*{ crossOrigin?: string | undefined }*/ options]);