Hi all,
I am trying to use HTML canvas element in pcf control by using typescript code. But, I cannot access canvas.toDataURL() function in pcf control. It gives me an error like:
Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
I have also tried
var mapCanvas = document.createElement('canvas') as HTMLCanvasElement;
but it gives same error.Can someone tell me the solution of these? Is pcf support canvas element?
Thanks!