I have been working on porting Fabric.Js to Construct 2 i have been stuck in linking the canvas to Fabric canvas. but i got it solved by using rexrainbow Fabric.js plugin as a reference , i was happy when i found he made that plugin because i have been looking for a solution for some days.
i have done some nice progress. ( i know he already done a fabricJS plugin but it was very basic and lack most of the features. and basic canvas features , so i had to make my own that serve my needs.
but i was stuck again with a problem and i wish rexrainbow can help me. i used another fabricJs extension called Fabric-brush.js
which is a small library or custom brushes the problem is , after i draw with this library in free Drawing mode i try to export my image using toDataUrl or toSVG ... all i get is the basic shapes that i drawn like rectangle but not the Brush drawing and also it gets erased from the canvas.
please see the images on my drive to see how i implemented the function for free drawing , and screenshot of the problem.
https://drive.google.com/open?id=0B3inO ... ExFSldXUGs