Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

problem with Canvg library #251

Open
AStrubitsky opened this issue Jun 22, 2020 · 0 comments
Open

problem with Canvg library #251

AStrubitsky opened this issue Jun 22, 2020 · 0 comments

Comments

@AStrubitsky
Copy link

AStrubitsky commented Jun 22, 2020

Hey. I work on Rtact JS. I connected the canvg library for IE 11 support. The code looks like this:
import Canvg from 'canvg';

svgAsPngUri (svg, {scale: 0.5, canvg: Canvg.fromString}). then (uri => {
iconImage.src = uri;
});
As a result, I get a blank picture. Without library Canvg, it works just fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant