svg - Save and load back to rework a diagram which is created with JointJS over PHP -


i working on tool create new charts in webbrowser @ moement searching way save charts (which differen svgs) in file, store in mysql database (mariadb) , load in browser rework whole diagram. step step: first, searching way save elements file. thought saving xml have no idea how should go on that. have ideas me? apreshiate every helpfull comments realy stuck @ moment.

thanks all!

is diagram joint js diagram ? if so, serialize tojson or load json piece of cake:

to json: graph.tojson()

import: graph.fromjson(json.parse(jsonstring))

for more info: http://resources.jointjs.com/docs/jointjs/v1.0/joint.html#dia.graph.prototype.fromjson

convert json xml shouldn't problem either.


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -