-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
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
Type Convert Error when work with canvas #288
Comments
+@arv |
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 On Mon, Sep 23, 2013 at 10:02 PM, Scott J. Miles
erik |
This looks supported as of googlearchive/ShadowDOM@80b8152 |
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: