rustplotlib icon indicating copy to clipboard operation
rustplotlib copied to clipboard

make to_svg public

Open ubamrein opened this issue 4 years ago • 1 comments

No need to have the to_svg function private, or is there?

https://github.com/askanium/rustplotlib/issues/1

ubamrein avatar Aug 07 '20 06:08 ubamrein

I think this is a good idea

here is a use case

I am using leptos ( a rust web framework inspired by react/sycamore )

For normal react applications, when working with d3 modules it is a standard pattern to use a createEffect() to modify the DOM after react has rendered a component.

if to_svg) were public then leptos apps would not have to use the equivalent createEffect() escape hatch

a string could be prepared as part of the normal render flow.

martinfrances107 avatar Aug 14 '23 21:08 martinfrances107