loadSVGFromString
loadSVGFromString(
string
,reviver?
,options?
):Promise
<SVGParsingOutput
>
Defined in: src/parser/loadSVGFromString.ts:20
Takes string corresponding to an SVG document, and parses it into a set of fabric objects
Parameters
Section titled “Parameters”string
Section titled “string”string
representing the svg
reviver?
Section titled “reviver?”TSvgReviverCallback
Extra callback for further parsing of SVG elements, called after each fabric object has been created.
Takes as input the original svg element and the generated FabricObject
as arguments. Used to inspect extra properties not parsed by fabric,
or extra custom manipulation
options?
Section titled “options?”Object containing options for parsing
Returns
Section titled “Returns”Promise
<SVGParsingOutput
>
Member Of
Section titled “Member Of”fabric