i would like to serialize only visible elements on my paper.
i have done some research about checking if an element is visible or not andi found an answer on How to know if raphael object is hidden?
i changed raphael.serialize.js file and on line 16 i made this change:
if (node && node.type) {
to
if (node && node.type && node.style.display !== "none") {
but in this way i get null content.
how can i get this working?
update: what i need is to convert a paper to svg. based on: http://www.benbarnett.net/2010/06/04/export-svg-from-raphael-js-to-create-a-png-bitmap/