We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems the GeneratedWrapper can not work with canvas, it will cause type convertion error.
Env: FireForx/Chrome + Polymer + Plupload
Code Example: var ctx = canvas.getContext('2d'); var tmpCanvas = document.createElement('canvas'); ctx.drawImage(tmpCanvas, 0, 0, 1024, 1024, 0, 0, 251, 251);
Error Log: Argument 1 of CanvasRenderingContext2D.drawImage could not be converted to any of: HTMLImageElement, HTMLCanvasElement, HTMLVideoElement.
The text was updated successfully, but these errors were encountered:
+@arv
Sorry, something went wrong.
Try this:
var tmpCanvas = document.createElement('canvas'); var nativeCanvas = unwrap(tmpCanvas); ctx.drawImage(nativeCanvas, 0, 0, 1024, 1024, 0, 0, 251, 251);
Someone needs to manually forward these. The canvas context API is pretty large. Patches welcome.
On Mon, Sep 23, 2013 at 10:02 PM, Scott J. Miles notifications@github.comwrote:
Try this: var tmpCanvas = document.createElement('canvas');var nativeCanvas = unwrap(tmpCanvas);ctx.drawImage(nativeCanvas, 0, 0, 1024, 1024, 0, 0, 251, 251); — Reply to this email directly or view it on GitHubhttps://github.com//issues/288#issuecomment-24974906 .
var tmpCanvas = document.createElement('canvas');var nativeCanvas = unwrap(tmpCanvas);ctx.drawImage(nativeCanvas, 0, 0, 1024, 1024, 0, 0, 251, 251);
— Reply to this email directly or view it on GitHubhttps://github.com//issues/288#issuecomment-24974906 .
erik
This looks supported as of googlearchive/ShadowDOM@80b8152
dfreedm
No branches or pull requests
Seems the GeneratedWrapper can not work with canvas, it will cause type convertion error.
Env:
FireForx/Chrome + Polymer + Plupload
Code Example:
var ctx = canvas.getContext('2d');
var tmpCanvas = document.createElement('canvas');
ctx.drawImage(tmpCanvas, 0, 0, 1024, 1024, 0, 0, 251, 251);
Error Log:
Argument 1 of CanvasRenderingContext2D.drawImage could not be converted to any of: HTMLImageElement, HTMLCanvasElement, HTMLVideoElement.
The text was updated successfully, but these errors were encountered: