-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Restore green check on tests #2712
Conversation
I really cannot get what is happening here. It looks like it is not drawing. May it be an async issue? i also tried to disable retina scaling for the canvas test thinking that window.pixelRatio may have some strange value. |
https://ide.c9.io/asturur/nodefabric-nodecanvas @inssein @kangax i put up this example of this problem in nodejs on cloud9. I'm trying to figure out this failing test. In browser is not failing, it renders correctly. If i use toDataUrl i get just blank images. Transparency test is working before apply trasformMatrix ( as expected ), after the pixels i expect to be transparents are not. getImageData looks ok, toDataUrl not. Anyone willing to get a look at it? |
@inssein you look experienced with nodejs + fabricjs, i'm not. |
@jhundley9109 you are welcome to continue here. |
I think I have figured out the problem. There are two issues on the head commit that need fixed. In renderAll for static canvas from commit 8082dae canvasToDrawOn.restore() is extra and I think it can be removed. Additionally in __toDataURL, from commit 520e8e6 var canvasEl = this.upperCanvasEl || this.lowerCanvasEl, was switched to var canvasEl = this.lowerCanvasEl,. I don't know exactly how this works, but switching that line to var canvasEl = this.contextContainer.canvas fixed the problem. Doing both of these changes fixed the toDataURL on node. Since I don't really know the downstream effects of changing that to use the contextContainer.canvas, you guys should review. Let me know what you think. |
I will check personally because i wanna close this story. |
@kangax would you merge this please? I'm working on toDataUrl problem but i would like to check again all the PRs with green marks asap. |
Hm, why the failures? |
What failures? The one before the last? |
Attempt to fix group transformMatrix test on isTransparent function.