javascript - How to export canvas to HTML in Fabric.js? -


is there way export canvas element multiple objects html javascript code using fabricjs?i know can export tojson or toobject isnt html.

i found http://canvimation.github.com/ has function(file>export canvas html) export canvas drawing native html code.is possible fabricjs?

fabric supports export (its own) object representation, json (basically serialization of object representation), , svg.

if goal create in fabric, export use in environment doesn't support canvas, maybe can use svg — long svg supported in environment.

you have understand there's no such thing "native html code". there different versions of html — html4, html5, etc. canvas considered part of current html standard (html5). drawing on canvas considered "using native html code" ;)

if want recreate fabric rendering without canvas and without svg there's nothing fabric can with. unnecessarily complicated try provide canvas-less rendering of complex svg shapes, images (under various transformations, scaling/rotation), , other objects.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -