You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, The library seems to only accept taking in a React svg tree as input, but proceeds to serialize it into string anyway. Would it be more beneficial if it also exposes a method that accepts an input of an svg string instead?
Suggested solution
Split webSvgToPdfSvg into reactSvgToPdfSvg that accepts ReactElement as input, which in turns call svgXmlToPdfSvg that accepts string as input, exposing the svgXmlToPdfSvg function.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Potentially using this with other libraries that emits SVG directly without needing a translation layer in between, e.g. with echarts/highcharts without the their React wrapper package.
Clear and concise description of the problem
Currently, The library seems to only accept taking in a React svg tree as input, but proceeds to serialize it into string anyway. Would it be more beneficial if it also exposes a method that accepts an input of an svg string instead?
Suggested solution
Split
webSvgToPdfSvg
intoreactSvgToPdfSvg
that acceptsReactElement
as input, which in turns callsvgXmlToPdfSvg
that acceptsstring
as input, exposing thesvgXmlToPdfSvg
function.Additional context
No response
The text was updated successfully, but these errors were encountered: